OSDN Git Service

* acinclude.m4 (GLIBCPP_CONFIGURE): Split out
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-multilib       build hella library versions (default)"
16 ac_help="$ac_help
17   --with-target-subdir=SUBDIR
18                           configuring in a subdirectory"
19 ac_help="$ac_help
20   --with-cross-host=HOST  configuring with a cross compiler"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio         enable stdio for target io package. 
40   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale        enable model for target locale package. 
44   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-nls            use Native Language Support (default)"
48 ac_help="$ac_help
49   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
50 ac_help="$ac_help
51   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
52 ac_help="$ac_help
53   --enable-long-long      turns on 'long long' [default=yes]"
54 ac_help="$ac_help
55   --enable-cheaders       construct "C" header files for g++ [default=c_std]"
56 ac_help="$ac_help
57   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
58                                 [default=none]"
59 ac_help="$ac_help
60   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
61 ac_help="$ac_help
62   --enable-libunwind-exceptions  force use of libunwind for exceptions"
63 ac_help="$ac_help
64   --enable-concept-checks use Boost-derived template checks [default=no]"
65 ac_help="$ac_help
66   --enable-symvers=style  enables symbol versioning of the shared library [default=yes]"
67 ac_help="$ac_help
68   --with-gxx-include-dir  the installation directory for include files"
69 ac_help="$ac_help
70   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
71
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
75 build=NONE
76 cache_file=./config.cache
77 exec_prefix=NONE
78 host=NONE
79 no_create=
80 nonopt=NONE
81 no_recursion=
82 prefix=NONE
83 program_prefix=NONE
84 program_suffix=NONE
85 program_transform_name=s,x,x,
86 silent=
87 site=
88 srcdir=
89 target=NONE
90 verbose=
91 x_includes=NONE
92 x_libraries=NONE
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 infodir='${prefix}/info'
104 mandir='${prefix}/man'
105
106 # Initialize some other variables.
107 subdirs=
108 MFLAGS= MAKEFLAGS=
109 SHELL=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
111 ac_max_here_lines=12
112
113 ac_prev=
114 for ac_option
115 do
116
117   # If the previous option needs an argument, assign it.
118   if test -n "$ac_prev"; then
119     eval "$ac_prev=\$ac_option"
120     ac_prev=
121     continue
122   fi
123
124   case "$ac_option" in
125   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126   *) ac_optarg= ;;
127   esac
128
129   # Accept the important Cygnus configure options, so we can diagnose typos.
130
131   case "$ac_option" in
132
133   -bindir | --bindir | --bindi | --bind | --bin | --bi)
134     ac_prev=bindir ;;
135   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136     bindir="$ac_optarg" ;;
137
138   -build | --build | --buil | --bui | --bu)
139     ac_prev=build ;;
140   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141     build="$ac_optarg" ;;
142
143   -cache-file | --cache-file | --cache-fil | --cache-fi \
144   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145     ac_prev=cache_file ;;
146   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148     cache_file="$ac_optarg" ;;
149
150   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151     ac_prev=datadir ;;
152   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153   | --da=*)
154     datadir="$ac_optarg" ;;
155
156   -disable-* | --disable-*)
157     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158     # Reject names that are not valid shell variable names.
159     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161     fi
162     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163     eval "enable_${ac_feature}=no" ;;
164
165   -enable-* | --enable-*)
166     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167     # Reject names that are not valid shell variable names.
168     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170     fi
171     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172     case "$ac_option" in
173       *=*) ;;
174       *) ac_optarg=yes ;;
175     esac
176     eval "enable_${ac_feature}='$ac_optarg'" ;;
177
178   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180   | --exec | --exe | --ex)
181     ac_prev=exec_prefix ;;
182   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184   | --exec=* | --exe=* | --ex=*)
185     exec_prefix="$ac_optarg" ;;
186
187   -gas | --gas | --ga | --g)
188     # Obsolete; use --with-gas.
189     with_gas=yes ;;
190
191   -help | --help | --hel | --he)
192     # Omit some internal or obsolete options to make the list less imposing.
193     # This message is too long to be a string in the A/UX 3.1 sh.
194     cat << EOF
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
197 Configuration:
198   --cache-file=FILE       cache test results in FILE
199   --help                  print this message
200   --no-create             do not create output files
201   --quiet, --silent       do not print \`checking...' messages
202   --version               print the version of autoconf that created configure
203 Directory and file names:
204   --prefix=PREFIX         install architecture-independent files in PREFIX
205                           [$ac_default_prefix]
206   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
207                           [same as prefix]
208   --bindir=DIR            user executables in DIR [EPREFIX/bin]
209   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
210   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
211   --datadir=DIR           read-only architecture-independent data in DIR
212                           [PREFIX/share]
213   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
214   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
215                           [PREFIX/com]
216   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
217   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
218   --includedir=DIR        C header files in DIR [PREFIX/include]
219   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
220   --infodir=DIR           info documentation in DIR [PREFIX/info]
221   --mandir=DIR            man documentation in DIR [PREFIX/man]
222   --srcdir=DIR            find the sources in DIR [configure dir or ..]
223   --program-prefix=PREFIX prepend PREFIX to installed program names
224   --program-suffix=SUFFIX append SUFFIX to installed program names
225   --program-transform-name=PROGRAM
226                           run sed PROGRAM on installed program names
227 EOF
228     cat << EOF
229 Host type:
230   --build=BUILD           configure for building on BUILD [BUILD=HOST]
231   --host=HOST             configure for HOST [guessed]
232   --target=TARGET         configure for TARGET [TARGET=HOST]
233 Features and packages:
234   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
235   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
236   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
237   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
238   --x-includes=DIR        X include files are in DIR
239   --x-libraries=DIR       X library files are in DIR
240 EOF
241     if test -n "$ac_help"; then
242       echo "--enable and --with options recognized:$ac_help"
243     fi
244     exit 0 ;;
245
246   -host | --host | --hos | --ho)
247     ac_prev=host ;;
248   -host=* | --host=* | --hos=* | --ho=*)
249     host="$ac_optarg" ;;
250
251   -includedir | --includedir | --includedi | --included | --include \
252   | --includ | --inclu | --incl | --inc)
253     ac_prev=includedir ;;
254   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255   | --includ=* | --inclu=* | --incl=* | --inc=*)
256     includedir="$ac_optarg" ;;
257
258   -infodir | --infodir | --infodi | --infod | --info | --inf)
259     ac_prev=infodir ;;
260   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261     infodir="$ac_optarg" ;;
262
263   -libdir | --libdir | --libdi | --libd)
264     ac_prev=libdir ;;
265   -libdir=* | --libdir=* | --libdi=* | --libd=*)
266     libdir="$ac_optarg" ;;
267
268   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269   | --libexe | --libex | --libe)
270     ac_prev=libexecdir ;;
271   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272   | --libexe=* | --libex=* | --libe=*)
273     libexecdir="$ac_optarg" ;;
274
275   -localstatedir | --localstatedir | --localstatedi | --localstated \
276   | --localstate | --localstat | --localsta | --localst \
277   | --locals | --local | --loca | --loc | --lo)
278     ac_prev=localstatedir ;;
279   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282     localstatedir="$ac_optarg" ;;
283
284   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285     ac_prev=mandir ;;
286   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287     mandir="$ac_optarg" ;;
288
289   -nfp | --nfp | --nf)
290     # Obsolete; use --without-fp.
291     with_fp=no ;;
292
293   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294   | --no-cr | --no-c)
295     no_create=yes ;;
296
297   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299     no_recursion=yes ;;
300
301   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303   | --oldin | --oldi | --old | --ol | --o)
304     ac_prev=oldincludedir ;;
305   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308     oldincludedir="$ac_optarg" ;;
309
310   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311     ac_prev=prefix ;;
312   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313     prefix="$ac_optarg" ;;
314
315   -program-prefix | --program-prefix | --program-prefi | --program-pref \
316   | --program-pre | --program-pr | --program-p)
317     ac_prev=program_prefix ;;
318   -program-prefix=* | --program-prefix=* | --program-prefi=* \
319   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320     program_prefix="$ac_optarg" ;;
321
322   -program-suffix | --program-suffix | --program-suffi | --program-suff \
323   | --program-suf | --program-su | --program-s)
324     ac_prev=program_suffix ;;
325   -program-suffix=* | --program-suffix=* | --program-suffi=* \
326   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327     program_suffix="$ac_optarg" ;;
328
329   -program-transform-name | --program-transform-name \
330   | --program-transform-nam | --program-transform-na \
331   | --program-transform-n | --program-transform- \
332   | --program-transform | --program-transfor \
333   | --program-transfo | --program-transf \
334   | --program-trans | --program-tran \
335   | --progr-tra | --program-tr | --program-t)
336     ac_prev=program_transform_name ;;
337   -program-transform-name=* | --program-transform-name=* \
338   | --program-transform-nam=* | --program-transform-na=* \
339   | --program-transform-n=* | --program-transform-=* \
340   | --program-transform=* | --program-transfor=* \
341   | --program-transfo=* | --program-transf=* \
342   | --program-trans=* | --program-tran=* \
343   | --progr-tra=* | --program-tr=* | --program-t=*)
344     program_transform_name="$ac_optarg" ;;
345
346   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347   | -silent | --silent | --silen | --sile | --sil)
348     silent=yes ;;
349
350   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351     ac_prev=sbindir ;;
352   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353   | --sbi=* | --sb=*)
354     sbindir="$ac_optarg" ;;
355
356   -sharedstatedir | --sharedstatedir | --sharedstatedi \
357   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358   | --sharedst | --shareds | --shared | --share | --shar \
359   | --sha | --sh)
360     ac_prev=sharedstatedir ;;
361   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364   | --sha=* | --sh=*)
365     sharedstatedir="$ac_optarg" ;;
366
367   -site | --site | --sit)
368     ac_prev=site ;;
369   -site=* | --site=* | --sit=*)
370     site="$ac_optarg" ;;
371
372   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373     ac_prev=srcdir ;;
374   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375     srcdir="$ac_optarg" ;;
376
377   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378   | --syscon | --sysco | --sysc | --sys | --sy)
379     ac_prev=sysconfdir ;;
380   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382     sysconfdir="$ac_optarg" ;;
383
384   -target | --target | --targe | --targ | --tar | --ta | --t)
385     ac_prev=target ;;
386   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387     target="$ac_optarg" ;;
388
389   -v | -verbose | --verbose | --verbos | --verbo | --verb)
390     verbose=yes ;;
391
392   -version | --version | --versio | --versi | --vers)
393     echo "configure generated by autoconf version 2.13"
394     exit 0 ;;
395
396   -with-* | --with-*)
397     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398     # Reject names that are not valid shell variable names.
399     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401     fi
402     ac_package=`echo $ac_package| sed 's/-/_/g'`
403     case "$ac_option" in
404       *=*) ;;
405       *) ac_optarg=yes ;;
406     esac
407     eval "with_${ac_package}='$ac_optarg'" ;;
408
409   -without-* | --without-*)
410     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411     # Reject names that are not valid shell variable names.
412     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414     fi
415     ac_package=`echo $ac_package| sed 's/-/_/g'`
416     eval "with_${ac_package}=no" ;;
417
418   --x)
419     # Obsolete; use --with-x.
420     with_x=yes ;;
421
422   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423   | --x-incl | --x-inc | --x-in | --x-i)
424     ac_prev=x_includes ;;
425   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427     x_includes="$ac_optarg" ;;
428
429   -x-libraries | --x-libraries | --x-librarie | --x-librari \
430   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431     ac_prev=x_libraries ;;
432   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434     x_libraries="$ac_optarg" ;;
435
436   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437     ;;
438
439   *)
440     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441       echo "configure: warning: $ac_option: invalid host type" 1>&2
442     fi
443     if test "x$nonopt" != xNONE; then
444       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
445     fi
446     nonopt="$ac_option"
447     ;;
448
449   esac
450 done
451
452 if test -n "$ac_prev"; then
453   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
454 fi
455
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
457
458 # File descriptor usage:
459 # 0 standard input
460 # 1 file creation
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
467   exec 6>/dev/null
468 else
469   exec 6>&1
470 fi
471 exec 5>./config.log
472
473 echo "\
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
476 " 1>&5
477
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
480 ac_configure_args=
481 for ac_arg
482 do
483   case "$ac_arg" in
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c) ;;
486   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491   esac
492 done
493
494 # NLS nuisances.
495 # Only set these to C if already set.  These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
503
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 echo > confdefs.h
508
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=src/ios.cc
512
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515   ac_srcdir_defaulted=yes
516   # Try the directory containing this script, then its parent.
517   ac_prog=$0
518   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520   srcdir=$ac_confdir
521   if test ! -r $srcdir/$ac_unique_file; then
522     srcdir=..
523   fi
524 else
525   ac_srcdir_defaulted=no
526 fi
527 if test ! -r $srcdir/$ac_unique_file; then
528   if test "$ac_srcdir_defaulted" = yes; then
529     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530   else
531     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
532   fi
533 fi
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
535
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538   if test "x$prefix" != xNONE; then
539     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540   else
541     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
542   fi
543 fi
544 for ac_site_file in $CONFIG_SITE; do
545   if test -r "$ac_site_file"; then
546     echo "loading site script $ac_site_file"
547     . "$ac_site_file"
548   fi
549 done
550
551 if test -r "$cache_file"; then
552   echo "loading cache $cache_file"
553   . $cache_file
554 else
555   echo "creating cache $cache_file"
556   > $cache_file
557 fi
558
559 ac_ext=c
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
565
566 ac_exeext=
567 ac_objext=o
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571     ac_n= ac_c='
572 ' ac_t='        '
573   else
574     ac_n=-n ac_c= ac_t=
575   fi
576 else
577   ac_n= ac_c='\c' ac_t=
578 fi
579
580
581
582 # This works around the fact that libtool configuration may change LD
583 # for this particular configuration, but some shells, instead of
584 # keeping the changes in LD private, export them just because LD is
585 # exported.  Only used at the end of this file.
586 ORIGINAL_LD_FOR_MULTILIBS=$LD
587
588 PACKAGE=libstdc++
589
590 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
591 release_VERSION=3.1.1
592
593 # For libtool versioning info, format is CURRENT:REVISION:AGE
594 libtool_VERSION=4:1:0
595
596
597
598       # Check whether --enable-multilib or --disable-multilib was given.
599 if test "${enable_multilib+set}" = set; then
600   enableval="$enable_multilib"
601   case "${enableval}" in
602     yes) multilib=yes ;;
603     no)  multilib=no ;;
604     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
605    esac
606 else
607   multilib=yes
608 fi
609
610   # When building with srcdir == objdir, links to the source files will
611   # be created in directories within the target_subdir.  We have to
612   # adjust toplevel_srcdir accordingly, so that configure finds
613   # install-sh and other auxiliary files that live in the top-level
614   # source directory.
615   if test "${srcdir}" = "."; then
616     if test -z "${with_target_subdir}"; then
617       toprel=".."
618     else
619       if test "${with_target_subdir}" != "."; then
620         toprel="${with_multisrctop}../.."
621       else
622         toprel="${with_multisrctop}.."
623       fi
624     fi
625   else
626     toprel=".."
627   fi
628   ac_aux_dir=
629 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
630   if test -f $ac_dir/install-sh; then
631     ac_aux_dir=$ac_dir
632     ac_install_sh="$ac_aux_dir/install-sh -c"
633     break
634   elif test -f $ac_dir/install.sh; then
635     ac_aux_dir=$ac_dir
636     ac_install_sh="$ac_aux_dir/install.sh -c"
637     break
638   fi
639 done
640 if test -z "$ac_aux_dir"; then
641   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
642 fi
643 ac_config_guess=$ac_aux_dir/config.guess
644 ac_config_sub=$ac_aux_dir/config.sub
645 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
646
647   toplevel_srcdir=\${top_srcdir}/$toprel
648   
649
650
651 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
652 #
653 # You will slowly go insane if you do not grok the following fact:  when
654 # building v3 as part of the compiler, the top-level /target/ becomes the
655 # library's /host/.  `configure' then causes --target to default to --host,
656 # exactly like any other package using autoconf.  Therefore, 'target' and
657 # 'host' will always be the same.  This makes sense both for native and
658 # cross compilers, just think about it for a little while.  :-)
659 #
660 # Also, if v3 is being configured as part of a cross compiler, the top-level
661 # configure script will pass the "real" host as $with_cross_host.
662 #
663 # AC 2.5x sets target_alias iff the user specified --target, but we use it
664 # everywhere, so we set it here just to be sure.  In AC 2.13
665 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
666
667 # Do some error checking and defaulting for the host and target type.
668 # The inputs are:
669 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
670 #
671 # The rules are:
672 # 1. You are not allowed to specify --host, --target, and nonopt at the
673 #    same time.
674 # 2. Host defaults to nonopt.
675 # 3. If nonopt is not specified, then host defaults to the current host,
676 #    as determined by config.guess.
677 # 4. Target and build default to nonopt.
678 # 5. If nonopt is not specified, then target and build default to host.
679
680 # The aliases save the names the user supplied, while $host etc.
681 # will get canonicalized.
682 case $host---$target---$nonopt in
683 NONE---*---* | *---NONE---* | *---*---NONE) ;;
684 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
685 esac
686
687
688 # Make sure we can run config.sub.
689 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
691 fi
692
693 echo $ac_n "checking host system type""... $ac_c" 1>&6
694 echo "configure:695: checking host system type" >&5
695
696 host_alias=$host
697 case "$host_alias" in
698 NONE)
699   case $nonopt in
700   NONE)
701     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
702     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
703     fi ;;
704   *) host_alias=$nonopt ;;
705   esac ;;
706 esac
707
708 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
709 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
710 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
711 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo "$ac_t""$host" 1>&6
713
714 echo $ac_n "checking target system type""... $ac_c" 1>&6
715 echo "configure:716: checking target system type" >&5
716
717 target_alias=$target
718 case "$target_alias" in
719 NONE)
720   case $nonopt in
721   NONE) target_alias=$host_alias ;;
722   *) target_alias=$nonopt ;;
723   esac ;;
724 esac
725
726 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
727 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
728 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
729 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
730 echo "$ac_t""$target" 1>&6
731
732 echo $ac_n "checking build system type""... $ac_c" 1>&6
733 echo "configure:734: checking build system type" >&5
734
735 build_alias=$build
736 case "$build_alias" in
737 NONE)
738   case $nonopt in
739   NONE) build_alias=$host_alias ;;
740   *) build_alias=$nonopt ;;
741   esac ;;
742 esac
743
744 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
745 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
746 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
747 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
748 echo "$ac_t""$build" 1>&6
749
750 test "$host_alias" != "$target_alias" &&
751   test "$program_prefix$program_suffix$program_transform_name" = \
752     NONENONEs,x,x, &&
753   program_prefix=${target_alias}-
754
755 target_alias=${target_alias-$target}
756
757
758 # Find a good install program.  We prefer a C program (faster),
759 # so one script is as good as another.  But avoid the broken or
760 # incompatible versions:
761 # SysV /etc/install, /usr/sbin/install
762 # SunOS /usr/etc/install
763 # IRIX /sbin/install
764 # AIX /bin/install
765 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
766 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
767 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
768 # ./install, which can be erroneously created by make from ./install.sh.
769 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
770 echo "configure:771: checking for a BSD compatible install" >&5
771 if test -z "$INSTALL"; then
772 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
773   echo $ac_n "(cached) $ac_c" 1>&6
774 else
775     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
776   for ac_dir in $PATH; do
777     # Account for people who put trailing slashes in PATH elements.
778     case "$ac_dir/" in
779     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
780     *)
781       # OSF1 and SCO ODT 3.0 have their own names for install.
782       # Don't use installbsd from OSF since it installs stuff as root
783       # by default.
784       for ac_prog in ginstall scoinst install; do
785         if test -f $ac_dir/$ac_prog; then
786           if test $ac_prog = install &&
787             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
788             # AIX install.  It has an incompatible calling convention.
789             :
790           else
791             ac_cv_path_install="$ac_dir/$ac_prog -c"
792             break 2
793           fi
794         fi
795       done
796       ;;
797     esac
798   done
799   IFS="$ac_save_IFS"
800
801 fi
802   if test "${ac_cv_path_install+set}" = set; then
803     INSTALL="$ac_cv_path_install"
804   else
805     # As a last resort, use the slow shell script.  We don't cache a
806     # path for INSTALL within a source directory, because that will
807     # break other packages using the cache if that directory is
808     # removed, or if the path is relative.
809     INSTALL="$ac_install_sh"
810   fi
811 fi
812 echo "$ac_t""$INSTALL" 1>&6
813
814 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
815 # It thinks the first close brace ends the variable substitution.
816 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
817
818 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
819
820 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
821
822 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
823 echo "configure:824: checking whether build environment is sane" >&5
824 # Just in case
825 sleep 1
826 echo timestamp > conftestfile
827 # Do `set' in a subshell so we don't clobber the current shell's
828 # arguments.  Must try -L first in case configure is actually a
829 # symlink; some systems play weird games with the mod time of symlinks
830 # (eg FreeBSD returns the mod time of the symlink's containing
831 # directory).
832 if (
833    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
834    if test "$*" = "X"; then
835       # -L didn't work.
836       set X `ls -t $srcdir/configure conftestfile`
837    fi
838    if test "$*" != "X $srcdir/configure conftestfile" \
839       && test "$*" != "X conftestfile $srcdir/configure"; then
840
841       # If neither matched, then we have a broken ls.  This can happen
842       # if, for instance, CONFIG_SHELL is bash and it inherits a
843       # broken ls alias from the environment.  This has actually
844       # happened.  Such a system could not be considered "sane".
845       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
846 alias in your environment" 1>&2; exit 1; }
847    fi
848
849    test "$2" = conftestfile
850    )
851 then
852    # Ok.
853    :
854 else
855    { echo "configure: error: newly created file is older than distributed files!
856 Check your system clock" 1>&2; exit 1; }
857 fi
858 rm -f conftest*
859 echo "$ac_t""yes" 1>&6
860 if test "$program_transform_name" = s,x,x,; then
861   program_transform_name=
862 else
863   # Double any \ or $.  echo might interpret backslashes.
864   cat <<\EOF_SED > conftestsed
865 s,\\,\\\\,g; s,\$,$$,g
866 EOF_SED
867   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
868   rm -f conftestsed
869 fi
870 test "$program_prefix" != NONE &&
871   program_transform_name="s,^,${program_prefix},; $program_transform_name"
872 # Use a double $ so make ignores it.
873 test "$program_suffix" != NONE &&
874   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
875
876 # sed with no file args requires a program.
877 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
878
879 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
880 echo "configure:881: checking whether ${MAKE-make} sets \${MAKE}" >&5
881 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
882 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
883   echo $ac_n "(cached) $ac_c" 1>&6
884 else
885   cat > conftestmake <<\EOF
886 all:
887         @echo 'ac_maketemp="${MAKE}"'
888 EOF
889 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
890 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
891 if test -n "$ac_maketemp"; then
892   eval ac_cv_prog_make_${ac_make}_set=yes
893 else
894   eval ac_cv_prog_make_${ac_make}_set=no
895 fi
896 rm -f conftestmake
897 fi
898 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
899   echo "$ac_t""yes" 1>&6
900   SET_MAKE=
901 else
902   echo "$ac_t""no" 1>&6
903   SET_MAKE="MAKE=${MAKE-make}"
904 fi
905
906
907 PACKAGE=$PACKAGE
908
909 VERSION=$release_VERSION
910
911 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
912   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
913 fi
914 cat >> confdefs.h <<EOF
915 #define PACKAGE "$PACKAGE"
916 EOF
917
918 cat >> confdefs.h <<EOF
919 #define VERSION "$VERSION"
920 EOF
921
922
923
924 missing_dir=`cd $ac_aux_dir && pwd`
925 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
926 echo "configure:927: checking for working aclocal" >&5
927 # Run test in a subshell; some versions of sh will print an error if
928 # an executable is not found, even if stderr is redirected.
929 # Redirect stdin to placate older versions of autoconf.  Sigh.
930 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
931    ACLOCAL=aclocal
932    echo "$ac_t""found" 1>&6
933 else
934    ACLOCAL="$missing_dir/missing aclocal"
935    echo "$ac_t""missing" 1>&6
936 fi
937
938 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
939 echo "configure:940: checking for working autoconf" >&5
940 # Run test in a subshell; some versions of sh will print an error if
941 # an executable is not found, even if stderr is redirected.
942 # Redirect stdin to placate older versions of autoconf.  Sigh.
943 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
944    AUTOCONF=autoconf
945    echo "$ac_t""found" 1>&6
946 else
947    AUTOCONF="$missing_dir/missing autoconf"
948    echo "$ac_t""missing" 1>&6
949 fi
950
951 echo $ac_n "checking for working automake""... $ac_c" 1>&6
952 echo "configure:953: checking for working automake" >&5
953 # Run test in a subshell; some versions of sh will print an error if
954 # an executable is not found, even if stderr is redirected.
955 # Redirect stdin to placate older versions of autoconf.  Sigh.
956 if (automake --version) < /dev/null > /dev/null 2>&1; then
957    AUTOMAKE=automake
958    echo "$ac_t""found" 1>&6
959 else
960    AUTOMAKE="$missing_dir/missing automake"
961    echo "$ac_t""missing" 1>&6
962 fi
963
964 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
965 echo "configure:966: checking for working autoheader" >&5
966 # Run test in a subshell; some versions of sh will print an error if
967 # an executable is not found, even if stderr is redirected.
968 # Redirect stdin to placate older versions of autoconf.  Sigh.
969 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
970    AUTOHEADER=autoheader
971    echo "$ac_t""found" 1>&6
972 else
973    AUTOHEADER="$missing_dir/missing autoheader"
974    echo "$ac_t""missing" 1>&6
975 fi
976
977 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
978 echo "configure:979: checking for working makeinfo" >&5
979 # Run test in a subshell; some versions of sh will print an error if
980 # an executable is not found, even if stderr is redirected.
981 # Redirect stdin to placate older versions of autoconf.  Sigh.
982 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
983    MAKEINFO=makeinfo
984    echo "$ac_t""found" 1>&6
985 else
986    MAKEINFO="$missing_dir/missing makeinfo"
987    echo "$ac_t""missing" 1>&6
988 fi
989
990
991
992
993
994
995 # Runs configure.target, finds CC, CXX and assorted other critical bits.
996 # Must run this before the GLIBCPP_ENABLE_* macros below.
997 if test $host != $build; then
998   ac_tool_prefix=${host_alias}-
999 else
1000   ac_tool_prefix=
1001 fi
1002
1003 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1004 echo "configure:1005: checking for Cygwin environment" >&5
1005 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1006   echo $ac_n "(cached) $ac_c" 1>&6
1007 else
1008   cat > conftest.$ac_ext <<EOF
1009 #line 1010 "configure"
1010 #include "confdefs.h"
1011
1012 int main() {
1013
1014 #ifndef __CYGWIN__
1015 #define __CYGWIN__ __CYGWIN32__
1016 #endif
1017 return __CYGWIN__;
1018 ; return 0; }
1019 EOF
1020 if { (eval echo configure:1021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1021   rm -rf conftest*
1022   ac_cv_cygwin=yes
1023 else
1024   echo "configure: failed program was:" >&5
1025   cat conftest.$ac_ext >&5
1026   rm -rf conftest*
1027   ac_cv_cygwin=no
1028 fi
1029 rm -f conftest*
1030 rm -f conftest*
1031 fi
1032
1033 echo "$ac_t""$ac_cv_cygwin" 1>&6
1034 CYGWIN=
1035 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1036 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1037 echo "configure:1038: checking for mingw32 environment" >&5
1038 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1039   echo $ac_n "(cached) $ac_c" 1>&6
1040 else
1041   cat > conftest.$ac_ext <<EOF
1042 #line 1043 "configure"
1043 #include "confdefs.h"
1044
1045 int main() {
1046 return __MINGW32__;
1047 ; return 0; }
1048 EOF
1049 if { (eval echo configure:1050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1050   rm -rf conftest*
1051   ac_cv_mingw32=yes
1052 else
1053   echo "configure: failed program was:" >&5
1054   cat conftest.$ac_ext >&5
1055   rm -rf conftest*
1056   ac_cv_mingw32=no
1057 fi
1058 rm -f conftest*
1059 rm -f conftest*
1060 fi
1061
1062 echo "$ac_t""$ac_cv_mingw32" 1>&6
1063 MINGW32=
1064 test "$ac_cv_mingw32" = yes && MINGW32=yes
1065
1066
1067 #possibly test for the presence of the compiler sources here?
1068
1069   # Export build and source directories.
1070   # These need to be absolute paths, yet at the same time need to
1071   # canonicalize only relative paths, because then amd will not unmount
1072   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1073   glibcpp_builddir=`${PWDCMD-pwd}`
1074   case $srcdir in
1075   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1076   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1077   esac
1078   
1079   
1080
1081     
1082
1083   for ac_prog in gawk mawk nawk awk
1084 do
1085 # Extract the first word of "$ac_prog", so it can be a program name with args.
1086 set dummy $ac_prog; ac_word=$2
1087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1088 echo "configure:1089: checking for $ac_word" >&5
1089 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1090   echo $ac_n "(cached) $ac_c" 1>&6
1091 else
1092   if test -n "$AWK"; then
1093   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1094 else
1095   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1096   ac_dummy="$PATH"
1097   for ac_dir in $ac_dummy; do
1098     test -z "$ac_dir" && ac_dir=.
1099     if test -f $ac_dir/$ac_word; then
1100       ac_cv_prog_AWK="$ac_prog"
1101       break
1102     fi
1103   done
1104   IFS="$ac_save_ifs"
1105 fi
1106 fi
1107 AWK="$ac_cv_prog_AWK"
1108 if test -n "$AWK"; then
1109   echo "$ac_t""$AWK" 1>&6
1110 else
1111   echo "$ac_t""no" 1>&6
1112 fi
1113
1114 test -n "$AWK" && break
1115 done
1116
1117   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
1118   # be 'cp -p' if linking isn't available.  Uncomment the next line to
1119   # force a particular method.
1120   #ac_cv_prog_LN_S='cp -p'
1121   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1122 echo "configure:1123: checking whether ln -s works" >&5
1123 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1124   echo $ac_n "(cached) $ac_c" 1>&6
1125 else
1126   rm -f conftestdata
1127 if ln -s X conftestdata 2>/dev/null
1128 then
1129   rm -f conftestdata
1130   ac_cv_prog_LN_S="ln -s"
1131 else
1132   ac_cv_prog_LN_S=ln
1133 fi
1134 fi
1135 LN_S="$ac_cv_prog_LN_S"
1136 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1137   echo "$ac_t""yes" 1>&6
1138 else
1139   echo "$ac_t""no" 1>&6
1140 fi
1141
1142
1143   # We use these options to decide which functions to include.
1144   # Check whether --with-target-subdir or --without-target-subdir was given.
1145 if test "${with_target_subdir+set}" = set; then
1146   withval="$with_target_subdir"
1147   :
1148 fi
1149
1150   # Check whether --with-cross-host or --without-cross-host was given.
1151 if test "${with_cross_host+set}" = set; then
1152   withval="$with_cross_host"
1153   :
1154 fi
1155
1156
1157   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1158   
1159
1160   # Never versions of autoconf add an underscore to these functions.
1161   # Prevent future problems ...
1162   
1163   
1164   
1165   
1166
1167   # AC_PROG_CC
1168   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1169   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1170   # are probably using a cross compiler, which will not be able to fully
1171   # link an executable.  This is addressed in later versions of autoconf.
1172
1173   
1174
1175       
1176   # Extract the first word of "gcc", so it can be a program name with args.
1177 set dummy gcc; ac_word=$2
1178 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1179 echo "configure:1180: checking for $ac_word" >&5
1180 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1181   echo $ac_n "(cached) $ac_c" 1>&6
1182 else
1183   if test -n "$CC"; then
1184   ac_cv_prog_CC="$CC" # Let the user override the test.
1185 else
1186   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1187   ac_dummy="$PATH"
1188   for ac_dir in $ac_dummy; do
1189     test -z "$ac_dir" && ac_dir=.
1190     if test -f $ac_dir/$ac_word; then
1191       ac_cv_prog_CC="gcc"
1192       break
1193     fi
1194   done
1195   IFS="$ac_save_ifs"
1196 fi
1197 fi
1198 CC="$ac_cv_prog_CC"
1199 if test -n "$CC"; then
1200   echo "$ac_t""$CC" 1>&6
1201 else
1202   echo "$ac_t""no" 1>&6
1203 fi
1204
1205   if test -z "$CC"; then
1206     # Extract the first word of "cc", so it can be a program name with args.
1207 set dummy cc; ac_word=$2
1208 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1209 echo "configure:1210: checking for $ac_word" >&5
1210 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1211   echo $ac_n "(cached) $ac_c" 1>&6
1212 else
1213   if test -n "$CC"; then
1214   ac_cv_prog_CC="$CC" # Let the user override the test.
1215 else
1216   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1217   ac_prog_rejected=no
1218   ac_dummy="$PATH"
1219   for ac_dir in $ac_dummy; do
1220     test -z "$ac_dir" && ac_dir=.
1221     if test -f $ac_dir/$ac_word; then
1222       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1223         ac_prog_rejected=yes
1224         continue
1225       fi
1226       ac_cv_prog_CC="cc"
1227       break
1228     fi
1229   done
1230   IFS="$ac_save_ifs"
1231 if test $ac_prog_rejected = yes; then
1232   # We found a bogon in the path, so make sure we never use it.
1233   set dummy $ac_cv_prog_CC
1234   shift
1235   if test $# -gt 0; then
1236     # We chose a different compiler from the bogus one.
1237     # However, it has the same basename, so the bogon will be chosen
1238     # first if we set CC to just the basename; use the full file name.
1239     shift
1240     set dummy "$ac_dir/$ac_word" "$@"
1241     shift
1242     ac_cv_prog_CC="$@"
1243   fi
1244 fi
1245 fi
1246 fi
1247 CC="$ac_cv_prog_CC"
1248 if test -n "$CC"; then
1249   echo "$ac_t""$CC" 1>&6
1250 else
1251   echo "$ac_t""no" 1>&6
1252 fi
1253
1254     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1255   fi
1256
1257   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1258 echo "configure:1259: checking whether we are using GNU C" >&5
1259 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1260   echo $ac_n "(cached) $ac_c" 1>&6
1261 else
1262   cat > conftest.c <<EOF
1263 #ifdef __GNUC__
1264   yes;
1265 #endif
1266 EOF
1267 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1268   ac_cv_prog_gcc=yes
1269 else
1270   ac_cv_prog_gcc=no
1271 fi
1272 fi
1273
1274 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1275
1276   if test $ac_cv_prog_gcc = yes; then
1277     GCC=yes
1278           ac_test_CFLAGS="${CFLAGS+set}"
1279     ac_save_CFLAGS="$CFLAGS"
1280     CFLAGS=
1281     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1282 echo "configure:1283: checking whether ${CC-cc} accepts -g" >&5
1283 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1284   echo $ac_n "(cached) $ac_c" 1>&6
1285 else
1286   echo 'void f(){}' > conftest.c
1287 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1288   ac_cv_prog_cc_g=yes
1289 else
1290   ac_cv_prog_cc_g=no
1291 fi
1292 rm -f conftest*
1293
1294 fi
1295
1296 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1297     if test "$ac_test_CFLAGS" = set; then
1298       CFLAGS="$ac_save_CFLAGS"
1299     elif test $ac_cv_prog_cc_g = yes; then
1300       CFLAGS="-g -O2"
1301     else
1302       CFLAGS="-O2"
1303     fi
1304   else
1305     GCC=
1306     test "${CFLAGS+set}" = set || CFLAGS="-g"
1307   fi
1308   
1309
1310   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1311   # will try to link in libstdc++.
1312   
1313
1314       
1315   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1316   # flags that come in CXX while configuring libstdc++.  They're different
1317   # from those used for all other target libraries.  If CXX is set in
1318   # the environment, respect that here.
1319   glibcpp_CXX=$CXX
1320   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1321 do
1322 # Extract the first word of "$ac_prog", so it can be a program name with args.
1323 set dummy $ac_prog; ac_word=$2
1324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1325 echo "configure:1326: checking for $ac_word" >&5
1326 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1327   echo $ac_n "(cached) $ac_c" 1>&6
1328 else
1329   if test -n "$glibcpp_CXX"; then
1330   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1331 else
1332   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1333   ac_dummy="$PATH"
1334   for ac_dir in $ac_dummy; do
1335     test -z "$ac_dir" && ac_dir=.
1336     if test -f $ac_dir/$ac_word; then
1337       ac_cv_prog_glibcpp_CXX="$ac_prog"
1338       break
1339     fi
1340   done
1341   IFS="$ac_save_ifs"
1342 fi
1343 fi
1344 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1345 if test -n "$glibcpp_CXX"; then
1346   echo "$ac_t""$glibcpp_CXX" 1>&6
1347 else
1348   echo "$ac_t""no" 1>&6
1349 fi
1350
1351 test -n "$glibcpp_CXX" && break
1352 done
1353 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1354
1355   
1356   CXX=$glibcpp_CXX
1357   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1358
1359   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1360 echo "configure:1361: checking whether we are using GNU C++" >&5
1361 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1362   echo $ac_n "(cached) $ac_c" 1>&6
1363 else
1364   cat > conftest.C <<EOF
1365 #ifdef __GNUC__
1366   yes;
1367 #endif
1368 EOF
1369 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1370   ac_cv_prog_gxx=yes
1371 else
1372   ac_cv_prog_gxx=no
1373 fi
1374 fi
1375
1376 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1377
1378   if test $ac_cv_prog_gxx = yes; then
1379     GXX=yes
1380                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1381     ac_save_CXXFLAGS="$CXXFLAGS"
1382     CXXFLAGS=
1383     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1384 echo "configure:1385: checking whether ${CXX-g++} accepts -g" >&5
1385 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1386   echo $ac_n "(cached) $ac_c" 1>&6
1387 else
1388   echo 'void f(){}' > conftest.cc
1389 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1390   ac_cv_prog_cxx_g=yes
1391 else
1392   ac_cv_prog_cxx_g=no
1393 fi
1394 rm -f conftest*
1395
1396 fi
1397
1398 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1399     if test "$ac_test_CXXFLAGS" = set; then
1400       CXXFLAGS="$ac_save_CXXFLAGS"
1401     elif test $ac_cv_prog_cxx_g = yes; then
1402       CXXFLAGS="-g -O2"
1403     else
1404       CXXFLAGS="-O2"
1405     fi
1406   else
1407     GXX=
1408     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1409   fi
1410   
1411
1412   # For some reason, gettext needs this.
1413   
1414         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1415 echo "configure:1416: checking for strerror in -lcposix" >&5
1416 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1418   echo $ac_n "(cached) $ac_c" 1>&6
1419 else
1420   ac_save_LIBS="$LIBS"
1421 LIBS="-lcposix  $LIBS"
1422 cat > conftest.$ac_ext <<EOF
1423 #line 1424 "configure"
1424 #include "confdefs.h"
1425 /* Override any gcc2 internal prototype to avoid an error.  */
1426 /* We use char because int might match the return type of a gcc2
1427     builtin and then its argument prototype would still apply.  */
1428 char strerror();
1429
1430 int main() {
1431 strerror()
1432 ; return 0; }
1433 EOF
1434 if { (eval echo configure:1435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1435   rm -rf conftest*
1436   eval "ac_cv_lib_$ac_lib_var=yes"
1437 else
1438   echo "configure: failed program was:" >&5
1439   cat conftest.$ac_ext >&5
1440   rm -rf conftest*
1441   eval "ac_cv_lib_$ac_lib_var=no"
1442 fi
1443 rm -f conftest*
1444 LIBS="$ac_save_LIBS"
1445
1446 fi
1447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1448   echo "$ac_t""yes" 1>&6
1449   LIBS="$LIBS -lcposix"
1450 else
1451   echo "$ac_t""no" 1>&6
1452 fi
1453
1454   
1455
1456
1457   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1458 set dummy ${ac_tool_prefix}as; ac_word=$2
1459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1460 echo "configure:1461: checking for $ac_word" >&5
1461 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1462   echo $ac_n "(cached) $ac_c" 1>&6
1463 else
1464   if test -n "$AS"; then
1465   ac_cv_prog_AS="$AS" # Let the user override the test.
1466 else
1467   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1468   ac_dummy="$PATH"
1469   for ac_dir in $ac_dummy; do
1470     test -z "$ac_dir" && ac_dir=.
1471     if test -f $ac_dir/$ac_word; then
1472       ac_cv_prog_AS="${ac_tool_prefix}as"
1473       break
1474     fi
1475   done
1476   IFS="$ac_save_ifs"
1477   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1478 fi
1479 fi
1480 AS="$ac_cv_prog_AS"
1481 if test -n "$AS"; then
1482   echo "$ac_t""$AS" 1>&6
1483 else
1484   echo "$ac_t""no" 1>&6
1485 fi
1486
1487
1488
1489   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1490 set dummy ${ac_tool_prefix}ar; ac_word=$2
1491 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1492 echo "configure:1493: checking for $ac_word" >&5
1493 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1494   echo $ac_n "(cached) $ac_c" 1>&6
1495 else
1496   if test -n "$AR"; then
1497   ac_cv_prog_AR="$AR" # Let the user override the test.
1498 else
1499   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1500   ac_dummy="$PATH"
1501   for ac_dir in $ac_dummy; do
1502     test -z "$ac_dir" && ac_dir=.
1503     if test -f $ac_dir/$ac_word; then
1504       ac_cv_prog_AR="${ac_tool_prefix}ar"
1505       break
1506     fi
1507   done
1508   IFS="$ac_save_ifs"
1509   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1510 fi
1511 fi
1512 AR="$ac_cv_prog_AR"
1513 if test -n "$AR"; then
1514   echo "$ac_t""$AR" 1>&6
1515 else
1516   echo "$ac_t""no" 1>&6
1517 fi
1518
1519
1520
1521   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1522 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1524 echo "configure:1525: checking for $ac_word" >&5
1525 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1526   echo $ac_n "(cached) $ac_c" 1>&6
1527 else
1528   if test -n "$RANLIB"; then
1529   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1530 else
1531   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1532   ac_dummy="$PATH"
1533   for ac_dir in $ac_dummy; do
1534     test -z "$ac_dir" && ac_dir=.
1535     if test -f $ac_dir/$ac_word; then
1536       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1537       break
1538     fi
1539   done
1540   IFS="$ac_save_ifs"
1541 fi
1542 fi
1543 RANLIB="$ac_cv_prog_RANLIB"
1544 if test -n "$RANLIB"; then
1545   echo "$ac_t""$RANLIB" 1>&6
1546 else
1547   echo "$ac_t""no" 1>&6
1548 fi
1549
1550
1551 if test -z "$ac_cv_prog_RANLIB"; then
1552 if test -n "$ac_tool_prefix"; then
1553   # Extract the first word of "ranlib", so it can be a program name with args.
1554 set dummy ranlib; ac_word=$2
1555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1556 echo "configure:1557: checking for $ac_word" >&5
1557 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1558   echo $ac_n "(cached) $ac_c" 1>&6
1559 else
1560   if test -n "$RANLIB"; then
1561   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1562 else
1563   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1564   ac_dummy="$PATH"
1565   for ac_dir in $ac_dummy; do
1566     test -z "$ac_dir" && ac_dir=.
1567     if test -f $ac_dir/$ac_word; then
1568       ac_cv_prog_RANLIB="ranlib"
1569       break
1570     fi
1571   done
1572   IFS="$ac_save_ifs"
1573   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1574 fi
1575 fi
1576 RANLIB="$ac_cv_prog_RANLIB"
1577 if test -n "$RANLIB"; then
1578   echo "$ac_t""$RANLIB" 1>&6
1579 else
1580   echo "$ac_t""no" 1>&6
1581 fi
1582
1583 else
1584   RANLIB="ranlib-not-found-in-path-error"
1585 fi
1586 fi
1587
1588   # Find a good install program.  We prefer a C program (faster),
1589 # so one script is as good as another.  But avoid the broken or
1590 # incompatible versions:
1591 # SysV /etc/install, /usr/sbin/install
1592 # SunOS /usr/etc/install
1593 # IRIX /sbin/install
1594 # AIX /bin/install
1595 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1596 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1597 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1598 # ./install, which can be erroneously created by make from ./install.sh.
1599 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1600 echo "configure:1601: checking for a BSD compatible install" >&5
1601 if test -z "$INSTALL"; then
1602 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1603   echo $ac_n "(cached) $ac_c" 1>&6
1604 else
1605     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1606   for ac_dir in $PATH; do
1607     # Account for people who put trailing slashes in PATH elements.
1608     case "$ac_dir/" in
1609     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1610     *)
1611       # OSF1 and SCO ODT 3.0 have their own names for install.
1612       # Don't use installbsd from OSF since it installs stuff as root
1613       # by default.
1614       for ac_prog in ginstall scoinst install; do
1615         if test -f $ac_dir/$ac_prog; then
1616           if test $ac_prog = install &&
1617             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1618             # AIX install.  It has an incompatible calling convention.
1619             :
1620           else
1621             ac_cv_path_install="$ac_dir/$ac_prog -c"
1622             break 2
1623           fi
1624         fi
1625       done
1626       ;;
1627     esac
1628   done
1629   IFS="$ac_save_IFS"
1630
1631 fi
1632   if test "${ac_cv_path_install+set}" = set; then
1633     INSTALL="$ac_cv_path_install"
1634   else
1635     # As a last resort, use the slow shell script.  We don't cache a
1636     # path for INSTALL within a source directory, because that will
1637     # break other packages using the cache if that directory is
1638     # removed, or if the path is relative.
1639     INSTALL="$ac_install_sh"
1640   fi
1641 fi
1642 echo "$ac_t""$INSTALL" 1>&6
1643
1644 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1645 # It thinks the first close brace ends the variable substitution.
1646 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1647
1648 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1649
1650 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1651
1652
1653   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1654 echo "configure:1655: checking whether to enable maintainer-specific portions of Makefiles" >&5
1655     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1656 if test "${enable_maintainer_mode+set}" = set; then
1657   enableval="$enable_maintainer_mode"
1658   USE_MAINTAINER_MODE=$enableval
1659 else
1660   USE_MAINTAINER_MODE=no
1661 fi
1662
1663   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1664   
1665
1666 if test $USE_MAINTAINER_MODE = yes; then
1667   MAINTAINER_MODE_TRUE=
1668   MAINTAINER_MODE_FALSE='#'
1669 else
1670   MAINTAINER_MODE_TRUE='#'
1671   MAINTAINER_MODE_FALSE=
1672 fi
1673   MAINT=$MAINTAINER_MODE_TRUE
1674   
1675
1676
1677   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1678   # at least currently, we never actually build a program, so we never
1679   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1680   # fails, because we are probably configuring with a cross compiler
1681   # which can't create executables.  So we include AC_EXEEXT to keep
1682   # automake happy, but we don't execute it, since we don't care about
1683   # the result.
1684   if false; then
1685     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1686     # to nothing, so nothing would remain between `then' and `fi' if it
1687     # were not for the `:' below.
1688     :
1689     
1690
1691 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1692 echo "configure:1693: checking for executable suffix" >&5
1693 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1694   echo $ac_n "(cached) $ac_c" 1>&6
1695 else
1696   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1697   ac_cv_exeext=.exe
1698 else
1699   rm -f conftest*
1700   echo 'int main () { return 0; }' > conftest.$ac_ext
1701   ac_cv_exeext=
1702   if { (eval echo configure:1703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1703     for file in conftest.*; do
1704       case $file in
1705       *.c | *.o | *.obj) ;;
1706       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1707       esac
1708     done
1709   else
1710     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1711   fi
1712   rm -f conftest*
1713   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1714 fi
1715 fi
1716
1717 EXEEXT=""
1718 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1719 echo "$ac_t""${ac_cv_exeext}" 1>&6
1720 ac_exeext=$EXEEXT
1721
1722   fi
1723
1724   case ${glibcpp_basedir} in
1725     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1726     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1727   esac
1728
1729   # Find platform-specific directories containing configuration info.  In
1730   # addition to possibly modifying the same flags, it also sets up symlinks.
1731   
1732     . ${glibcpp_basedir}/configure.target
1733     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1734     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1735
1736
1737
1738
1739
1740 # Check whether --enable-shared or --disable-shared was given.
1741 if test "${enable_shared+set}" = set; then
1742   enableval="$enable_shared"
1743   p=${PACKAGE-default}
1744 case $enableval in
1745 yes) enable_shared=yes ;;
1746 no) enable_shared=no ;;
1747 *)
1748   enable_shared=no
1749   # Look at the argument we got.  We use all the common list separators.
1750   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1751   for pkg in $enableval; do
1752     if test "X$pkg" = "X$p"; then
1753       enable_shared=yes
1754     fi
1755   done
1756   IFS="$ac_save_ifs"
1757   ;;
1758 esac
1759 else
1760   enable_shared=yes
1761 fi
1762
1763 # Check whether --enable-static or --disable-static was given.
1764 if test "${enable_static+set}" = set; then
1765   enableval="$enable_static"
1766   p=${PACKAGE-default}
1767 case $enableval in
1768 yes) enable_static=yes ;;
1769 no) enable_static=no ;;
1770 *)
1771   enable_static=no
1772   # Look at the argument we got.  We use all the common list separators.
1773   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1774   for pkg in $enableval; do
1775     if test "X$pkg" = "X$p"; then
1776       enable_static=yes
1777     fi
1778   done
1779   IFS="$ac_save_ifs"
1780   ;;
1781 esac
1782 else
1783   enable_static=yes
1784 fi
1785
1786 # Check whether --enable-fast-install or --disable-fast-install was given.
1787 if test "${enable_fast_install+set}" = set; then
1788   enableval="$enable_fast_install"
1789   p=${PACKAGE-default}
1790 case $enableval in
1791 yes) enable_fast_install=yes ;;
1792 no) enable_fast_install=no ;;
1793 *)
1794   enable_fast_install=no
1795   # Look at the argument we got.  We use all the common list separators.
1796   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1797   for pkg in $enableval; do
1798     if test "X$pkg" = "X$p"; then
1799       enable_fast_install=yes
1800     fi
1801   done
1802   IFS="$ac_save_ifs"
1803   ;;
1804 esac
1805 else
1806   enable_fast_install=yes
1807 fi
1808
1809 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1810 if test "${with_gnu_ld+set}" = set; then
1811   withval="$with_gnu_ld"
1812   test "$withval" = no || with_gnu_ld=yes
1813 else
1814   with_gnu_ld=no
1815 fi
1816
1817 ac_prog=ld
1818 if test "$GCC" = yes; then
1819   # Check if gcc -print-prog-name=ld gives a path.
1820   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1821 echo "configure:1822: checking for ld used by GCC" >&5
1822   case $host in
1823   *-*-mingw*)
1824     # gcc leaves a trailing carriage return which upsets mingw
1825     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1826   *)
1827     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1828   esac
1829   case $ac_prog in
1830     # Accept absolute paths.
1831     [\\/]* | [A-Za-z]:[\\/]*)
1832       re_direlt='/[^/][^/]*/\.\./'
1833       # Canonicalize the path of ld
1834       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1835       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1836         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1837       done
1838       test -z "$LD" && LD="$ac_prog"
1839       ;;
1840   "")
1841     # If it fails, then pretend we aren't using GCC.
1842     ac_prog=ld
1843     ;;
1844   *)
1845     # If it is relative, then search for the first ld in PATH.
1846     with_gnu_ld=unknown
1847     ;;
1848   esac
1849 elif test "$with_gnu_ld" = yes; then
1850   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1851 echo "configure:1852: checking for GNU ld" >&5
1852 else
1853   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1854 echo "configure:1855: checking for non-GNU ld" >&5
1855 fi
1856 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1857   echo $ac_n "(cached) $ac_c" 1>&6
1858 else
1859   if test -z "$LD"; then
1860   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1861   for ac_dir in $PATH; do
1862     test -z "$ac_dir" && ac_dir=.
1863     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1864       lt_cv_path_LD="$ac_dir/$ac_prog"
1865       # Check to see if the program is GNU ld.  I'd rather use --version,
1866       # but apparently some GNU ld's only accept -v.
1867       # Break only if it was the GNU/non-GNU ld that we prefer.
1868       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1869         test "$with_gnu_ld" != no && break
1870       else
1871         test "$with_gnu_ld" != yes && break
1872       fi
1873     fi
1874   done
1875   IFS="$ac_save_ifs"
1876 else
1877   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1878 fi
1879 fi
1880
1881 LD="$lt_cv_path_LD"
1882 if test -n "$LD"; then
1883   echo "$ac_t""$LD" 1>&6
1884 else
1885   echo "$ac_t""no" 1>&6
1886 fi
1887 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1888 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1889 echo "configure:1890: checking if the linker ($LD) is GNU ld" >&5
1890 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1891   echo $ac_n "(cached) $ac_c" 1>&6
1892 else
1893   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1894 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1895   lt_cv_prog_gnu_ld=yes
1896 else
1897   lt_cv_prog_gnu_ld=no
1898 fi
1899 fi
1900
1901 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1902 with_gnu_ld=$lt_cv_prog_gnu_ld
1903
1904
1905 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1906 echo "configure:1907: checking for $LD option to reload object files" >&5
1907 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1908   echo $ac_n "(cached) $ac_c" 1>&6
1909 else
1910   lt_cv_ld_reload_flag='-r'
1911 fi
1912
1913 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1914 reload_flag=$lt_cv_ld_reload_flag
1915 test -n "$reload_flag" && reload_flag=" $reload_flag"
1916
1917 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1918 echo "configure:1919: checking for BSD-compatible nm" >&5
1919 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1920   echo $ac_n "(cached) $ac_c" 1>&6
1921 else
1922   if test -n "$NM"; then
1923   # Let the user override the test.
1924   lt_cv_path_NM="$NM"
1925 else
1926   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1927   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1928     test -z "$ac_dir" && ac_dir=.
1929     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1930     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1931       # Check to see if the nm accepts a BSD-compat flag.
1932       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1933       #   nm: unknown option "B" ignored
1934       # Tru64's nm complains that /dev/null is an invalid object file
1935       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1936         lt_cv_path_NM="$tmp_nm -B"
1937         break
1938       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1939         lt_cv_path_NM="$tmp_nm -p"
1940         break
1941       else
1942         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1943         continue # so that we can try to find one that supports BSD flags
1944       fi
1945     fi
1946   done
1947   IFS="$ac_save_ifs"
1948   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1949 fi
1950 fi
1951
1952 NM="$lt_cv_path_NM"
1953 echo "$ac_t""$NM" 1>&6
1954
1955 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1956 echo "configure:1957: checking how to recognise dependant libraries" >&5
1957 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1958   echo $ac_n "(cached) $ac_c" 1>&6
1959 else
1960   lt_cv_file_magic_cmd='$MAGIC_CMD'
1961 lt_cv_file_magic_test_file=
1962 lt_cv_deplibs_check_method='unknown'
1963 # Need to set the preceding variable on all platforms that support
1964 # interlibrary dependencies.
1965 # 'none' -- dependencies not supported.
1966 # `unknown' -- same as none, but documents that we really don't know.
1967 # 'pass_all' -- all dependencies passed with no checks.
1968 # 'test_compile' -- check by making test program.
1969 # 'file_magic [regex]' -- check by looking for files in library path
1970 # which responds to the $file_magic_cmd with a given egrep regex.
1971 # If you have `file' or equivalent on your system and you're not sure
1972 # whether `pass_all' will *always* work, you probably want this one.
1973
1974 case $host_os in
1975 aix*)
1976   lt_cv_deplibs_check_method=pass_all
1977   ;;
1978
1979 beos*)
1980   lt_cv_deplibs_check_method=pass_all
1981   ;;
1982
1983 bsdi4*)
1984   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1985   lt_cv_file_magic_cmd='/usr/bin/file -L'
1986   lt_cv_file_magic_test_file=/shlib/libc.so
1987   ;;
1988
1989 cygwin* | mingw* |pw32*)
1990   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1991   lt_cv_file_magic_cmd='$OBJDUMP -f'
1992   ;;
1993
1994 darwin* | rhapsody*)
1995   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1996   lt_cv_file_magic_cmd='/usr/bin/file -L'
1997   case "$host_os" in
1998   rhapsody* | darwin1.012)
1999     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2000     ;;
2001   *) # Darwin 1.3 on
2002     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2003     ;;
2004   esac
2005   ;;
2006
2007 freebsd* )
2008   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2009     case $host_cpu in
2010     i*86 )
2011       # Not sure whether the presence of OpenBSD here was a mistake.
2012       # Let's accept both of them until this is cleared up.
2013       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2014       lt_cv_file_magic_cmd=/usr/bin/file
2015       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2016       ;;
2017     esac
2018   else
2019     lt_cv_deplibs_check_method=pass_all
2020   fi
2021   ;;
2022
2023 gnu*)
2024   lt_cv_deplibs_check_method=pass_all
2025   ;;
2026
2027 hpux10.20*|hpux11*)
2028   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2029   lt_cv_file_magic_cmd=/usr/bin/file
2030   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2031   ;;
2032
2033 irix5* | irix6*)
2034   case $host_os in
2035   irix5*)
2036     # this will be overridden with pass_all, but let us keep it just in case
2037     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2038     ;;
2039   *)
2040     case $LD in
2041     *-32|*"-32 ") libmagic=32-bit;;
2042     *-n32|*"-n32 ") libmagic=N32;;
2043     *-64|*"-64 ") libmagic=64-bit;;
2044     *) libmagic=never-match;;
2045     esac
2046     # this will be overridden with pass_all, but let us keep it just in case
2047     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2048     ;;
2049   esac
2050   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2051   lt_cv_deplibs_check_method=pass_all
2052   ;;
2053
2054 # This must be Linux ELF.
2055 linux-gnu*)
2056   case $host_cpu in
2057   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2058     lt_cv_deplibs_check_method=pass_all ;;
2059   *)
2060     # glibc up to 2.1.1 does not perform some relocations on ARM
2061     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2062   esac
2063   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2064   ;;
2065
2066 netbsd*)
2067   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2068     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2069   else
2070     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2071   fi
2072   ;;
2073
2074 newsos6)
2075   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2076   lt_cv_file_magic_cmd=/usr/bin/file
2077   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2078   ;;
2079
2080 osf3* | osf4* | osf5*)
2081   # this will be overridden with pass_all, but let us keep it just in case
2082   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2083   lt_cv_file_magic_test_file=/shlib/libc.so
2084   lt_cv_deplibs_check_method=pass_all
2085   ;;
2086
2087 sco3.2v5*)
2088   lt_cv_deplibs_check_method=pass_all
2089   ;;
2090
2091 solaris*)
2092   lt_cv_deplibs_check_method=pass_all
2093   lt_cv_file_magic_test_file=/lib/libc.so
2094   ;;
2095
2096 sysv5uw[78]* | sysv4*uw2*)
2097   lt_cv_deplibs_check_method=pass_all
2098   ;;
2099
2100 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2101   case $host_vendor in
2102   ncr)
2103     lt_cv_deplibs_check_method=pass_all
2104     ;;
2105   motorola)
2106     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]'
2107     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2108     ;;
2109   esac
2110   ;;
2111 esac
2112
2113 fi
2114
2115 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2116 file_magic_cmd=$lt_cv_file_magic_cmd
2117 deplibs_check_method=$lt_cv_deplibs_check_method
2118
2119 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2120 echo "configure:2121: checking for object suffix" >&5
2121 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2122   echo $ac_n "(cached) $ac_c" 1>&6
2123 else
2124   rm -f conftest*
2125 echo 'int i = 1;' > conftest.$ac_ext
2126 if { (eval echo configure:2127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2127   for ac_file in conftest.*; do
2128     case $ac_file in
2129     *.c) ;;
2130     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2131     esac
2132   done
2133 else
2134   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2135 fi
2136 rm -f conftest*
2137 fi
2138
2139 echo "$ac_t""$ac_cv_objext" 1>&6
2140 OBJEXT=$ac_cv_objext
2141 ac_objext=$ac_cv_objext
2142
2143 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2144
2145 # Only perform the check for file, if the check method requires it
2146 case $deplibs_check_method in
2147 file_magic*)
2148   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2149     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2150 echo "configure:2151: checking for ${ac_tool_prefix}file" >&5
2151 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2152   echo $ac_n "(cached) $ac_c" 1>&6
2153 else
2154   case $MAGIC_CMD in
2155   /*)
2156   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2157   ;;
2158   ?:/*)
2159   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2160   ;;
2161   *)
2162   ac_save_MAGIC_CMD="$MAGIC_CMD"
2163   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2164   ac_dummy="/usr/bin:$PATH"
2165   for ac_dir in $ac_dummy; do
2166     test -z "$ac_dir" && ac_dir=.
2167     if test -f $ac_dir/${ac_tool_prefix}file; then
2168       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2169       if test -n "$file_magic_test_file"; then
2170         case $deplibs_check_method in
2171         "file_magic "*)
2172           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2173           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2174           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2175             egrep "$file_magic_regex" > /dev/null; then
2176             :
2177           else
2178             cat <<EOF 1>&2
2179
2180 *** Warning: the command libtool uses to detect shared libraries,
2181 *** $file_magic_cmd, produces output that libtool cannot recognize.
2182 *** The result is that libtool may fail to recognize shared libraries
2183 *** as such.  This will affect the creation of libtool libraries that
2184 *** depend on shared libraries, but programs linked with such libtool
2185 *** libraries will work regardless of this problem.  Nevertheless, you
2186 *** may want to report the problem to your system manager and/or to
2187 *** bug-libtool@gnu.org
2188
2189 EOF
2190           fi ;;
2191         esac
2192       fi
2193       break
2194     fi
2195   done
2196   IFS="$ac_save_ifs"
2197   MAGIC_CMD="$ac_save_MAGIC_CMD"
2198   ;;
2199 esac
2200 fi
2201
2202 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2203 if test -n "$MAGIC_CMD"; then
2204   echo "$ac_t""$MAGIC_CMD" 1>&6
2205 else
2206   echo "$ac_t""no" 1>&6
2207 fi
2208
2209 if test -z "$lt_cv_path_MAGIC_CMD"; then
2210   if test -n "$ac_tool_prefix"; then
2211     echo $ac_n "checking for file""... $ac_c" 1>&6
2212 echo "configure:2213: checking for file" >&5
2213 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2214   echo $ac_n "(cached) $ac_c" 1>&6
2215 else
2216   case $MAGIC_CMD in
2217   /*)
2218   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2219   ;;
2220   ?:/*)
2221   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2222   ;;
2223   *)
2224   ac_save_MAGIC_CMD="$MAGIC_CMD"
2225   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2226   ac_dummy="/usr/bin:$PATH"
2227   for ac_dir in $ac_dummy; do
2228     test -z "$ac_dir" && ac_dir=.
2229     if test -f $ac_dir/file; then
2230       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2231       if test -n "$file_magic_test_file"; then
2232         case $deplibs_check_method in
2233         "file_magic "*)
2234           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2235           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2236           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2237             egrep "$file_magic_regex" > /dev/null; then
2238             :
2239           else
2240             cat <<EOF 1>&2
2241
2242 *** Warning: the command libtool uses to detect shared libraries,
2243 *** $file_magic_cmd, produces output that libtool cannot recognize.
2244 *** The result is that libtool may fail to recognize shared libraries
2245 *** as such.  This will affect the creation of libtool libraries that
2246 *** depend on shared libraries, but programs linked with such libtool
2247 *** libraries will work regardless of this problem.  Nevertheless, you
2248 *** may want to report the problem to your system manager and/or to
2249 *** bug-libtool@gnu.org
2250
2251 EOF
2252           fi ;;
2253         esac
2254       fi
2255       break
2256     fi
2257   done
2258   IFS="$ac_save_ifs"
2259   MAGIC_CMD="$ac_save_MAGIC_CMD"
2260   ;;
2261 esac
2262 fi
2263
2264 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2265 if test -n "$MAGIC_CMD"; then
2266   echo "$ac_t""$MAGIC_CMD" 1>&6
2267 else
2268   echo "$ac_t""no" 1>&6
2269 fi
2270
2271   else
2272     MAGIC_CMD=:
2273   fi
2274 fi
2275
2276   fi
2277   ;;
2278 esac
2279
2280 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2281 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2283 echo "configure:2284: checking for $ac_word" >&5
2284 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2285   echo $ac_n "(cached) $ac_c" 1>&6
2286 else
2287   if test -n "$RANLIB"; then
2288   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2289 else
2290   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2291   ac_dummy="$PATH"
2292   for ac_dir in $ac_dummy; do
2293     test -z "$ac_dir" && ac_dir=.
2294     if test -f $ac_dir/$ac_word; then
2295       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2296       break
2297     fi
2298   done
2299   IFS="$ac_save_ifs"
2300 fi
2301 fi
2302 RANLIB="$ac_cv_prog_RANLIB"
2303 if test -n "$RANLIB"; then
2304   echo "$ac_t""$RANLIB" 1>&6
2305 else
2306   echo "$ac_t""no" 1>&6
2307 fi
2308
2309
2310 if test -z "$ac_cv_prog_RANLIB"; then
2311 if test -n "$ac_tool_prefix"; then
2312   # Extract the first word of "ranlib", so it can be a program name with args.
2313 set dummy ranlib; ac_word=$2
2314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2315 echo "configure:2316: checking for $ac_word" >&5
2316 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2317   echo $ac_n "(cached) $ac_c" 1>&6
2318 else
2319   if test -n "$RANLIB"; then
2320   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2321 else
2322   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2323   ac_dummy="$PATH"
2324   for ac_dir in $ac_dummy; do
2325     test -z "$ac_dir" && ac_dir=.
2326     if test -f $ac_dir/$ac_word; then
2327       ac_cv_prog_RANLIB="ranlib"
2328       break
2329     fi
2330   done
2331   IFS="$ac_save_ifs"
2332   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2333 fi
2334 fi
2335 RANLIB="$ac_cv_prog_RANLIB"
2336 if test -n "$RANLIB"; then
2337   echo "$ac_t""$RANLIB" 1>&6
2338 else
2339   echo "$ac_t""no" 1>&6
2340 fi
2341
2342 else
2343   RANLIB=":"
2344 fi
2345 fi
2346
2347 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2348 set dummy ${ac_tool_prefix}strip; ac_word=$2
2349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2350 echo "configure:2351: checking for $ac_word" >&5
2351 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2352   echo $ac_n "(cached) $ac_c" 1>&6
2353 else
2354   if test -n "$STRIP"; then
2355   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2356 else
2357   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2358   ac_dummy="$PATH"
2359   for ac_dir in $ac_dummy; do
2360     test -z "$ac_dir" && ac_dir=.
2361     if test -f $ac_dir/$ac_word; then
2362       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2363       break
2364     fi
2365   done
2366   IFS="$ac_save_ifs"
2367 fi
2368 fi
2369 STRIP="$ac_cv_prog_STRIP"
2370 if test -n "$STRIP"; then
2371   echo "$ac_t""$STRIP" 1>&6
2372 else
2373   echo "$ac_t""no" 1>&6
2374 fi
2375
2376
2377 if test -z "$ac_cv_prog_STRIP"; then
2378 if test -n "$ac_tool_prefix"; then
2379   # Extract the first word of "strip", so it can be a program name with args.
2380 set dummy strip; ac_word=$2
2381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2382 echo "configure:2383: checking for $ac_word" >&5
2383 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2384   echo $ac_n "(cached) $ac_c" 1>&6
2385 else
2386   if test -n "$STRIP"; then
2387   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2388 else
2389   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2390   ac_dummy="$PATH"
2391   for ac_dir in $ac_dummy; do
2392     test -z "$ac_dir" && ac_dir=.
2393     if test -f $ac_dir/$ac_word; then
2394       ac_cv_prog_STRIP="strip"
2395       break
2396     fi
2397   done
2398   IFS="$ac_save_ifs"
2399   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2400 fi
2401 fi
2402 STRIP="$ac_cv_prog_STRIP"
2403 if test -n "$STRIP"; then
2404   echo "$ac_t""$STRIP" 1>&6
2405 else
2406   echo "$ac_t""no" 1>&6
2407 fi
2408
2409 else
2410   STRIP=":"
2411 fi
2412 fi
2413
2414
2415 # Check for any special flags to pass to ltconfig.
2416 libtool_flags="--cache-file=$cache_file"
2417 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2418 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2419 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2420 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2421 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2422 libtool_flags="$libtool_flags --enable-dlopen"
2423
2424 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2425 if test "${enable_libtool_lock+set}" = set; then
2426   enableval="$enable_libtool_lock"
2427   :
2428 fi
2429
2430 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2431 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2432
2433 # Check whether --with-pic or --without-pic was given.
2434 if test "${with_pic+set}" = set; then
2435   withval="$with_pic"
2436   pic_mode="$withval"
2437 else
2438   pic_mode=default
2439 fi
2440
2441 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2442 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2443
2444 # Some flags need to be propagated to the compiler or linker for good
2445 # libtool support.
2446 case $host in
2447 *-*-irix6*)
2448   # Find out which ABI we are using.
2449   echo '#line 2450 "configure"' > conftest.$ac_ext
2450   if { (eval echo configure:2451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2451     case `/usr/bin/file conftest.$ac_objext` in
2452     *32-bit*)
2453       LD="${LD-ld} -32"
2454       ;;
2455     *N32*)
2456       LD="${LD-ld} -n32"
2457       ;;
2458     *64-bit*)
2459       LD="${LD-ld} -64"
2460       ;;
2461     esac
2462   fi
2463   rm -rf conftest*
2464   ;;
2465
2466 *-*-sco3.2v5*)
2467   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2468   SAVE_CFLAGS="$CFLAGS"
2469   CFLAGS="$CFLAGS -belf"
2470   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2471 echo "configure:2472: checking whether the C compiler needs -belf" >&5
2472 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2473   echo $ac_n "(cached) $ac_c" 1>&6
2474 else
2475   
2476      ac_ext=c
2477 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2478 ac_cpp='$CPP $CPPFLAGS'
2479 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2480 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2481 cross_compiling=$ac_cv_prog_cc_cross
2482
2483      cat > conftest.$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2486
2487 int main() {
2488
2489 ; return 0; }
2490 EOF
2491 if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2492   rm -rf conftest*
2493   lt_cv_cc_needs_belf=yes
2494 else
2495   echo "configure: failed program was:" >&5
2496   cat conftest.$ac_ext >&5
2497   rm -rf conftest*
2498   lt_cv_cc_needs_belf=no
2499 fi
2500 rm -f conftest*
2501      ac_ext=c
2502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2503 ac_cpp='$CPP $CPPFLAGS'
2504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2506 cross_compiling=$ac_cv_prog_cc_cross
2507
2508 fi
2509
2510 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2511   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2512     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2513     CFLAGS="$SAVE_CFLAGS"
2514   fi
2515   ;;
2516
2517
2518 esac
2519
2520 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2521 echo "configure:2522: checking how to run the C++ preprocessor" >&5
2522 if test -z "$CXXCPP"; then
2523 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2524   echo $ac_n "(cached) $ac_c" 1>&6
2525 else
2526   ac_ext=C
2527 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2528 ac_cpp='$CXXCPP $CPPFLAGS'
2529 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2530 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2531 cross_compiling=$ac_cv_prog_cxx_cross
2532   CXXCPP="${CXX-g++} -E"
2533   cat > conftest.$ac_ext <<EOF
2534 #line 2535 "configure"
2535 #include "confdefs.h"
2536 #include <stdlib.h>
2537 EOF
2538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2539 { (eval echo configure:2540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2541 if test -z "$ac_err"; then
2542   :
2543 else
2544   echo "$ac_err" >&5
2545   echo "configure: failed program was:" >&5
2546   cat conftest.$ac_ext >&5
2547   rm -rf conftest*
2548   CXXCPP=/lib/cpp
2549 fi
2550 rm -f conftest*
2551   ac_cv_prog_CXXCPP="$CXXCPP"
2552 ac_ext=c
2553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2557 cross_compiling=$ac_cv_prog_cc_cross
2558 fi
2559 fi
2560 CXXCPP="$ac_cv_prog_CXXCPP"
2561 echo "$ac_t""$CXXCPP" 1>&6
2562
2563
2564 # Save cache, so that ltconfig can load it
2565 cat > confcache <<\EOF
2566 # This file is a shell script that caches the results of configure
2567 # tests run on this system so they can be shared between configure
2568 # scripts and configure runs.  It is not useful on other systems.
2569 # If it contains results you don't want to keep, you may remove or edit it.
2570 #
2571 # By default, configure uses ./config.cache as the cache file,
2572 # creating it if it does not exist already.  You can give configure
2573 # the --cache-file=FILE option to use a different cache file; that is
2574 # what configure does when it calls configure scripts in
2575 # subdirectories, so they share the cache.
2576 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2577 # config.status only pays attention to the cache file if you give it the
2578 # --recheck option to rerun configure.
2579 #
2580 EOF
2581 # The following way of writing the cache mishandles newlines in values,
2582 # but we know of no workaround that is simple, portable, and efficient.
2583 # So, don't put newlines in cache variables' values.
2584 # Ultrix sh set writes to stderr and can't be redirected directly,
2585 # and sets the high bit in the cache file unless we assign to the vars.
2586 (set) 2>&1 |
2587   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2588   *ac_space=\ *)
2589     # `set' does not quote correctly, so add quotes (double-quote substitution
2590     # turns \\\\ into \\, and sed turns \\ into \).
2591     sed -n \
2592       -e "s/'/'\\\\''/g" \
2593       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2594     ;;
2595   *)
2596     # `set' quotes correctly as required by POSIX, so do not add quotes.
2597     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2598     ;;
2599   esac >> confcache
2600 if cmp -s $cache_file confcache; then
2601   :
2602 else
2603   if test -w $cache_file; then
2604     echo "updating cache $cache_file"
2605     cat confcache > $cache_file
2606   else
2607     echo "not updating unwritable cache $cache_file"
2608   fi
2609 fi
2610 rm -f confcache
2611
2612
2613 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2614 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2615 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2616 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2617 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2618 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2619 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2620 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2621 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2622 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2623
2624 # Reload cache, that may have been modified by ltconfig
2625 if test -r "$cache_file"; then
2626   echo "loading cache $cache_file"
2627   . $cache_file
2628 else
2629   echo "creating cache $cache_file"
2630   > $cache_file
2631 fi
2632
2633
2634 # This can be used to rebuild libtool when needed
2635 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2636
2637 # Always use our own libtool.
2638 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2639
2640 # Redirect the config.log output again, so that the ltconfig log is not
2641 # clobbered by the next message.
2642 exec 5>>./config.log
2643
2644
2645
2646 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2647 lt_save_CC="$CC"
2648 lt_save_CFLAGS="$CFLAGS"
2649 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2650 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2651 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2652 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2653 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2654 deplibs_check_method="$deplibs_check_method" \
2655 file_magic_cmd="$file_magic_cmd" \
2656 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2657 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2658 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2659 CC="$lt_save_CC"
2660 CFLAGS="$lt_save_CFLAGS"
2661
2662 # Redirect the config.log output again, so that the ltconfig log is not
2663 # clobbered by the next message.
2664 exec 5>>./config.log
2665
2666   
2667
2668   
2669          
2670          
2671
2672
2673
2674 # Check for c++ or library specific bits that don't require linking.
2675 #GLIBCPP_CHECK_COMPILER_VERSION
2676 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2677 echo "configure:2678: checking for GNU make" >&5
2678 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2679   echo $ac_n "(cached) $ac_c" 1>&6
2680 else
2681   _cv_gnu_make_command='' ;
2682           for a in "${MAKE-make}" make gmake gnumake ; do
2683                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2684                   then
2685                           _cv_gnu_make_command=$a ;
2686                           break;
2687                   fi
2688           done ;
2689   
2690 fi
2691
2692 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2693   if test  "x$_cv_gnu_make_command" != "x"  ; then
2694           ifGNUmake='' ;
2695   else
2696           ifGNUmake='#' ;
2697   fi
2698   
2699
2700
2701 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2702 # Check whether --enable-debug or --disable-debug was given.
2703 if test "${enable_debug+set}" = set; then
2704   enableval="$enable_debug"
2705   case "${enableval}" in
2706  yes) enable_debug=yes ;;
2707  no)  enable_debug=no ;;
2708  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2709  esac
2710 else
2711   enable_debug=no
2712 fi
2713
2714 case "${enable_debug}" in
2715     yes) 
2716         DEBUG_FLAGS='-O0 -ggdb3'                        
2717         ;; 
2718     no)   
2719         DEBUG_FLAGS='-g'
2720         ;;
2721 esac
2722
2723
2724 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2725 echo "configure:2726: checking how to run the C preprocessor" >&5
2726 # On Suns, sometimes $CPP names a directory.
2727 if test -n "$CPP" && test -d "$CPP"; then
2728   CPP=
2729 fi
2730 if test -z "$CPP"; then
2731 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2732   echo $ac_n "(cached) $ac_c" 1>&6
2733 else
2734     # This must be in double quotes, not single quotes, because CPP may get
2735   # substituted into the Makefile and "${CC-cc}" will confuse make.
2736   CPP="${CC-cc} -E"
2737   # On the NeXT, cc -E runs the code through the compiler's parser,
2738   # not just through cpp.
2739   cat > conftest.$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2742 #include <assert.h>
2743 Syntax Error
2744 EOF
2745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2746 { (eval echo configure:2747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2748 if test -z "$ac_err"; then
2749   :
2750 else
2751   echo "$ac_err" >&5
2752   echo "configure: failed program was:" >&5
2753   cat conftest.$ac_ext >&5
2754   rm -rf conftest*
2755   CPP="${CC-cc} -E -traditional-cpp"
2756   cat > conftest.$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2759 #include <assert.h>
2760 Syntax Error
2761 EOF
2762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2763 { (eval echo configure:2764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2765 if test -z "$ac_err"; then
2766   :
2767 else
2768   echo "$ac_err" >&5
2769   echo "configure: failed program was:" >&5
2770   cat conftest.$ac_ext >&5
2771   rm -rf conftest*
2772   CPP="${CC-cc} -nologo -E"
2773   cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 #include <assert.h>
2777 Syntax Error
2778 EOF
2779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2780 { (eval echo configure:2781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2782 if test -z "$ac_err"; then
2783   :
2784 else
2785   echo "$ac_err" >&5
2786   echo "configure: failed program was:" >&5
2787   cat conftest.$ac_ext >&5
2788   rm -rf conftest*
2789   CPP=/lib/cpp
2790 fi
2791 rm -f conftest*
2792 fi
2793 rm -f conftest*
2794 fi
2795 rm -f conftest*
2796   ac_cv_prog_CPP="$CPP"
2797 fi
2798   CPP="$ac_cv_prog_CPP"
2799 else
2800   ac_cv_prog_CPP="$CPP"
2801 fi
2802 echo "$ac_t""$CPP" 1>&6
2803
2804
2805   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2806 echo "configure:2807: checking for cstdio to use" >&5
2807   # Check whether --enable-cstdio or --disable-cstdio was given.
2808 if test "${enable_cstdio+set}" = set; then
2809   enableval="$enable_cstdio"
2810   if test x$enable_cstdio = xno; then
2811      enable_cstdio=stdio
2812   fi
2813 else
2814   enable_cstdio=stdio
2815 fi
2816
2817
2818   enable_cstdio_flag=$enable_cstdio
2819
2820     case x${enable_cstdio_flag} in
2821     xlibio)
2822       CSTDIO_H=config/io/c_io_libio.h
2823       BASIC_FILE_H=config/io/basic_file_libio.h
2824       BASIC_FILE_CC=config/io/basic_file_libio.cc
2825       echo "$ac_t""libio" 1>&6
2826
2827       # see if we are on a system with libio native (ie, linux)
2828       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2829 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2830 echo "configure:2831: checking for libio.h" >&5
2831 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2832   echo $ac_n "(cached) $ac_c" 1>&6
2833 else
2834   cat > conftest.$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2837 #include <libio.h>
2838 EOF
2839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2840 { (eval echo configure:2841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2842 if test -z "$ac_err"; then
2843   rm -rf conftest*
2844   eval "ac_cv_header_$ac_safe=yes"
2845 else
2846   echo "$ac_err" >&5
2847   echo "configure: failed program was:" >&5
2848   cat conftest.$ac_ext >&5
2849   rm -rf conftest*
2850   eval "ac_cv_header_$ac_safe=no"
2851 fi
2852 rm -f conftest*
2853 fi
2854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2855   echo "$ac_t""yes" 1>&6
2856   has_libio=yes
2857 else
2858   echo "$ac_t""no" 1>&6
2859 has_libio=no
2860 fi
2861
2862
2863       # Need to check and see what version of glibc is being used. If
2864       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2865       # compile most of libio for linux systems.
2866       if test x$has_libio = x"yes"; then
2867         case "$target" in
2868           *-*-linux*)
2869               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2870 echo "configure:2871: checking for glibc version >= 2.2" >&5
2871               cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2874
2875             #include <features.h>
2876               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2877                     ok
2878               #endif
2879               
2880 EOF
2881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2882   egrep "ok" >/dev/null 2>&1; then
2883   rm -rf conftest*
2884   glibc_satisfactory=yes
2885 else
2886   rm -rf conftest*
2887   glibc_satisfactory=no
2888 fi
2889 rm -f conftest*
2890
2891               echo "$ac_t""$glibc_satisfactory" 1>&6
2892             ;;
2893         esac
2894
2895         # XXX at the moment, admit defeat and force the recompilation
2896         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2897         glibc_satisfactory=no        
2898
2899         if test x$glibc_satisfactory = x"yes"; then
2900            need_libio=no
2901            need_wlibio=no        
2902         else
2903            need_libio=yes
2904            # bkoz XXX need to add checks to enable this
2905            # pme XXX here's a first pass at such a check
2906            if test x$enable_c_mbchar != xno; then
2907               need_wlibio=yes
2908            else
2909               need_wlibio=no
2910            fi
2911         fi
2912
2913       else
2914          # Using libio, but <libio.h> doesn't exist on the target system. . .
2915          need_libio=yes
2916          # bkoz XXX need to add checks to enable this
2917          # pme XXX here's a first pass at such a check
2918          if test x$enable_c_mbchar != xno; then
2919              need_wlibio=yes
2920          else
2921              need_wlibio=no
2922          fi
2923       fi
2924       ;;
2925     xstdio | x | xno | xnone | xyes)
2926       # default
2927       CSTDIO_H=config/io/c_io_stdio.h
2928       BASIC_FILE_H=config/io/basic_file_stdio.h
2929       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2930       echo "$ac_t""stdio" 1>&6
2931
2932       # We're not using stdio.
2933       need_libio=no
2934       need_wlibio=no
2935       ;;
2936     *)
2937       echo "$enable_cstdio is an unknown io package" 1>&2
2938       exit 1
2939       ;;
2940   esac
2941   
2942   
2943   
2944
2945   # 2000-08-04 bkoz hack
2946   CCODECVT_C=config/io/c_io_libio_codecvt.c
2947   
2948   # 2000-08-04 bkoz hack
2949
2950   
2951
2952 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2953   GLIBCPP_BUILD_LIBIO_TRUE=
2954   GLIBCPP_BUILD_LIBIO_FALSE='#'
2955 else
2956   GLIBCPP_BUILD_LIBIO_TRUE='#'
2957   GLIBCPP_BUILD_LIBIO_FALSE=
2958 fi
2959   
2960
2961 if test "$need_libio" = yes; then
2962   GLIBCPP_NEED_LIBIO_TRUE=
2963   GLIBCPP_NEED_LIBIO_FALSE='#'
2964 else
2965   GLIBCPP_NEED_LIBIO_TRUE='#'
2966   GLIBCPP_NEED_LIBIO_FALSE=
2967 fi
2968   
2969
2970 if test "$need_wlibio" = yes; then
2971   GLIBCPP_NEED_WLIBIO_TRUE=
2972   GLIBCPP_NEED_WLIBIO_FALSE='#'
2973 else
2974   GLIBCPP_NEED_WLIBIO_TRUE='#'
2975   GLIBCPP_NEED_WLIBIO_FALSE=
2976 fi
2977   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2978     libio_la=../libio/libio.la
2979   else
2980     libio_la=
2981   fi
2982   
2983
2984
2985   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2986 echo "configure:2987: checking for clocale to use" >&5
2987   # Check whether --enable-clocale or --disable-clocale was given.
2988 if test "${enable_clocale+set}" = set; then
2989   enableval="$enable_clocale"
2990   if test x$enable_clocale = xno; then
2991      enable_clocale=no
2992   fi
2993 else
2994   enable_clocale=no
2995 fi
2996
2997
2998   enable_clocale_flag=$enable_clocale
2999
3000       if test x$enable_clocale_flag = xno; then
3001     case x${target_os} in
3002       xlinux* | xgnu*)
3003         cat > conftest.$ac_ext <<EOF
3004 #line 3005 "configure"
3005 #include "confdefs.h"
3006
3007         #include <features.h>
3008         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
3009           _GLIBCPP_ok
3010         #endif
3011         
3012 EOF
3013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3014   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3015   rm -rf conftest*
3016   enable_clocale_flag=gnu
3017 else
3018   rm -rf conftest*
3019   enable_clocale_flag=generic
3020 fi
3021 rm -f conftest*
3022
3023
3024         # Test for bugs early in glibc-2.2.x series
3025         if test x$enable_clocale_flag = xgnu; then
3026           if test "$cross_compiling" = yes; then
3027   enable_clocale_flag=generic
3028 else
3029   cat > conftest.$ac_ext <<EOF
3030 #line 3031 "configure"
3031 #include "confdefs.h"
3032
3033           #define _GNU_SOURCE 1
3034           #include <locale.h>
3035           int main()
3036           {
3037             const char __one[] = "Äuglein Augmen";
3038             const char __two[] = "Äuglein";
3039             int i;
3040             int j;
3041             __locale_t  loc;
3042             __locale_t  loc_dup;
3043             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3044             loc_dup = __duplocale(loc);
3045             i = __strcoll_l(__one, __two, loc);
3046             j = __strcoll_l(__one, __two, loc_dup);
3047             return 0;
3048           }
3049           
3050 EOF
3051 if { (eval echo configure:3052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3052 then
3053   enable_clocale_flag=gnu
3054 else
3055   echo "configure: failed program was:" >&5
3056   cat conftest.$ac_ext >&5
3057   rm -fr conftest*
3058   enable_clocale_flag=generic
3059 fi
3060 rm -fr conftest*
3061 fi
3062
3063         fi
3064
3065         # ... at some point put __strxfrm_l tests in as well.
3066         ;;
3067       *)
3068         enable_clocale_flag=generic
3069         ;;
3070     esac
3071   fi
3072
3073     # Check whether --enable-nls or --disable-nls was given.
3074 if test "${enable_nls+set}" = set; then
3075   enableval="$enable_nls"
3076   :
3077 else
3078   enable_nls=yes
3079 fi
3080
3081   USE_NLS=no
3082
3083     case x${enable_clocale_flag} in
3084     xgeneric)
3085       echo "$ac_t""generic" 1>&6
3086
3087       CLOCALE_H=config/locale/generic/c_locale.h
3088       CLOCALE_CC=config/locale/generic/c_locale.cc
3089       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3090       CCOLLATE_CC=config/locale/generic/collate_members.cc
3091       CCTYPE_CC=config/locale/generic/ctype_members.cc
3092       CMESSAGES_H=config/locale/generic/messages_members.h
3093       CMESSAGES_CC=config/locale/generic/messages_members.cc
3094       CMONEY_CC=config/locale/generic/monetary_members.cc
3095       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3096       CTIME_CC=config/locale/generic/time_members.cc
3097       ;;
3098     xgnu)
3099       echo "$ac_t""gnu" 1>&6
3100
3101       # Declare intention to use gettext, and add support for specific
3102       # languages.
3103       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3104       ALL_LINGUAS="de fr"
3105
3106       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3107       # Extract the first word of "msgfmt", so it can be a program name with args.
3108 set dummy msgfmt; ac_word=$2
3109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3110 echo "configure:3111: checking for $ac_word" >&5
3111 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3112   echo $ac_n "(cached) $ac_c" 1>&6
3113 else
3114   if test -n "$check_msgfmt"; then
3115   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3116 else
3117   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3118   ac_dummy="$PATH"
3119   for ac_dir in $ac_dummy; do
3120     test -z "$ac_dir" && ac_dir=.
3121     if test -f $ac_dir/$ac_word; then
3122       ac_cv_prog_check_msgfmt="yes"
3123       break
3124     fi
3125   done
3126   IFS="$ac_save_ifs"
3127   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3128 fi
3129 fi
3130 check_msgfmt="$ac_cv_prog_check_msgfmt"
3131 if test -n "$check_msgfmt"; then
3132   echo "$ac_t""$check_msgfmt" 1>&6
3133 else
3134   echo "$ac_t""no" 1>&6
3135 fi
3136
3137       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3138         USE_NLS=yes
3139       fi
3140       # Export the build objects.
3141       for ling in $ALL_LINGUAS; do \
3142         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3143         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3144       done
3145       
3146       
3147
3148       CLOCALE_H=config/locale/gnu/c_locale.h
3149       CLOCALE_CC=config/locale/gnu/c_locale.cc
3150       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3151       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3152       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3153       CMESSAGES_H=config/locale/gnu/messages_members.h
3154       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3155       CMONEY_CC=config/locale/gnu/monetary_members.cc
3156       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3157       CTIME_CC=config/locale/gnu/time_members.cc
3158       ;;
3159     xieee_1003.1-2001)
3160       echo "$ac_t""generic" 1>&6
3161
3162       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3163       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3164       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3165       CCOLLATE_CC=config/locale/generic/collate_members.cc
3166       CCTYPE_CC=config/locale/generic/ctype_members.cc
3167       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3168       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3169       CMONEY_CC=config/locale/generic/monetary_members.cc
3170       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3171       CTIME_CC=config/locale/generic/time_members.cc
3172       ;;
3173     *)
3174       echo "$enable_clocale is an unknown locale package" 1>&2
3175       exit 1
3176       ;;
3177   esac
3178
3179   # This is where the testsuite looks for locale catalogs, using the
3180   # -DLOCALEDIR define during testsuite compilation.
3181   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3182   
3183
3184   
3185   
3186   
3187   
3188   
3189   
3190   
3191   
3192   
3193   
3194   
3195
3196 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3197 if test "${enable_c_mbchar+set}" = set; then
3198   enableval="$enable_c_mbchar"
3199   case "$enableval" in
3200  yes) enable_c_mbchar=yes ;;
3201  no)  enable_c_mbchar=no ;;
3202  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3203  esac
3204 else
3205   enable_c_mbchar=yes
3206 fi
3207
3208   
3209   # Check whether --enable-c99 or --disable-c99 was given.
3210 if test "${enable_c99+set}" = set; then
3211   enableval="$enable_c99"
3212     case "$enableval" in
3213    yes) enable_c99=yes ;;
3214    no)  enable_c99=no ;;
3215    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3216    esac
3217 else
3218   enable_c99=yes
3219 fi
3220  
3221   
3222   ac_ext=C
3223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3224 ac_cpp='$CXXCPP $CPPFLAGS'
3225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3227 cross_compiling=$ac_cv_prog_cxx_cross
3228
3229
3230   # Check for the existence of <math.h> functions used if C99 is enabled.
3231   ac_c99_math=yes;
3232   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3233 echo "configure:3234: checking for ISO C99 support in <math.h>" >&5
3234   cat > conftest.$ac_ext <<EOF
3235 #line 3236 "configure"
3236 #include "confdefs.h"
3237 #include <math.h>
3238 int main() {
3239 fpclassify(0.0);
3240 ; return 0; }
3241 EOF
3242 if { (eval echo configure:3243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3243   :
3244 else
3245   echo "configure: failed program was:" >&5
3246   cat conftest.$ac_ext >&5
3247   rm -rf conftest*
3248   ac_c99_math=no
3249 fi
3250 rm -f conftest*
3251   cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3254 #include <math.h>
3255 int main() {
3256 isfinite(0.0);
3257 ; return 0; }
3258 EOF
3259 if { (eval echo configure:3260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3260   :
3261 else
3262   echo "configure: failed program was:" >&5
3263   cat conftest.$ac_ext >&5
3264   rm -rf conftest*
3265   ac_c99_math=no
3266 fi
3267 rm -f conftest*
3268   cat > conftest.$ac_ext <<EOF
3269 #line 3270 "configure"
3270 #include "confdefs.h"
3271 #include <math.h>
3272 int main() {
3273 isinf(0.0);
3274 ; return 0; }
3275 EOF
3276 if { (eval echo configure:3277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3277   :
3278 else
3279   echo "configure: failed program was:" >&5
3280   cat conftest.$ac_ext >&5
3281   rm -rf conftest*
3282   ac_c99_math=no
3283 fi
3284 rm -f conftest*
3285   cat > conftest.$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3288 #include <math.h>
3289 int main() {
3290 isnan(0.0);
3291 ; return 0; }
3292 EOF
3293 if { (eval echo configure:3294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3294   :
3295 else
3296   echo "configure: failed program was:" >&5
3297   cat conftest.$ac_ext >&5
3298   rm -rf conftest*
3299   ac_c99_math=no
3300 fi
3301 rm -f conftest*
3302   cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3305 #include <math.h>
3306 int main() {
3307 isnormal(0.0);
3308 ; return 0; }
3309 EOF
3310 if { (eval echo configure:3311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3311   :
3312 else
3313   echo "configure: failed program was:" >&5
3314   cat conftest.$ac_ext >&5
3315   rm -rf conftest*
3316   ac_c99_math=no
3317 fi
3318 rm -f conftest*
3319   cat > conftest.$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3322 #include <math.h>
3323 int main() {
3324 signbit(0.0);
3325 ; return 0; }
3326 EOF
3327 if { (eval echo configure:3328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3328   :
3329 else
3330   echo "configure: failed program was:" >&5
3331   cat conftest.$ac_ext >&5
3332   rm -rf conftest*
3333   ac_c99_math=no
3334 fi
3335 rm -f conftest*
3336   cat > conftest.$ac_ext <<EOF
3337 #line 3338 "configure"
3338 #include "confdefs.h"
3339 #include <math.h>
3340 int main() {
3341 isgreater(0.0,0.0);
3342 ; return 0; }
3343 EOF
3344 if { (eval echo configure:3345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3345   :
3346 else
3347   echo "configure: failed program was:" >&5
3348   cat conftest.$ac_ext >&5
3349   rm -rf conftest*
3350   ac_c99_math=no
3351 fi
3352 rm -f conftest*
3353   cat > conftest.$ac_ext <<EOF
3354 #line 3355 "configure"
3355 #include "confdefs.h"
3356 #include <math.h>
3357 int main() {
3358 isgreaterequal(0.0,0.0);
3359 ; return 0; }
3360 EOF
3361 if { (eval echo configure:3362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3362   :
3363 else
3364   echo "configure: failed program was:" >&5
3365   cat conftest.$ac_ext >&5
3366   rm -rf conftest*
3367   ac_c99_math=no
3368 fi
3369 rm -f conftest*
3370   cat > conftest.$ac_ext <<EOF
3371 #line 3372 "configure"
3372 #include "confdefs.h"
3373 #include <math.h>
3374 int main() {
3375 isless(0.0,0.0);
3376 ; return 0; }
3377 EOF
3378 if { (eval echo configure:3379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3379   :
3380 else
3381   echo "configure: failed program was:" >&5
3382   cat conftest.$ac_ext >&5
3383   rm -rf conftest*
3384   ac_c99_math=no
3385 fi
3386 rm -f conftest*
3387   cat > conftest.$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3390 #include <math.h>
3391 int main() {
3392 islessequal(0.0,0.0);
3393 ; return 0; }
3394 EOF
3395 if { (eval echo configure:3396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3396   :
3397 else
3398   echo "configure: failed program was:" >&5
3399   cat conftest.$ac_ext >&5
3400   rm -rf conftest*
3401   ac_c99_math=no
3402 fi
3403 rm -f conftest*
3404   cat > conftest.$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3407 #include <math.h>
3408 int main() {
3409 islessgreater(0.0,0.0);
3410 ; return 0; }
3411 EOF
3412 if { (eval echo configure:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3413   :
3414 else
3415   echo "configure: failed program was:" >&5
3416   cat conftest.$ac_ext >&5
3417   rm -rf conftest*
3418   ac_c99_math=no
3419 fi
3420 rm -f conftest*
3421   cat > conftest.$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3424 #include <math.h>
3425 int main() {
3426 isunordered(0.0,0.0);
3427 ; return 0; }
3428 EOF
3429 if { (eval echo configure:3430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3430   :
3431 else
3432   echo "configure: failed program was:" >&5
3433   cat conftest.$ac_ext >&5
3434   rm -rf conftest*
3435   ac_c99_math=no
3436 fi
3437 rm -f conftest*
3438   echo "$ac_t""$ac_c99_math" 1>&6
3439
3440   # Check for the existence in <stdio.h> of vscanf, et. al.
3441   ac_c99_stdio=yes;
3442   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3443 echo "configure:3444: checking for ISO C99 support in <stdio.h>" >&5
3444   cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3447 #include <stdio.h>
3448 int main() {
3449 snprintf("12", 0, "%i");
3450 ; return 0; }
3451 EOF
3452 if { (eval echo configure:3453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3453   :
3454 else
3455   echo "configure: failed program was:" >&5
3456   cat conftest.$ac_ext >&5
3457   rm -rf conftest*
3458   ac_c99_stdio=no
3459 fi
3460 rm -f conftest*
3461   cat > conftest.$ac_ext <<EOF
3462 #line 3463 "configure"
3463 #include "confdefs.h"
3464 #include <stdio.h>
3465                   #include <stdarg.h>
3466                   void foo(char* fmt, ...)
3467                   {va_list args; va_start(args, fmt);
3468                   vfscanf(stderr, "%i", args);}
3469 int main() {
3470
3471 ; return 0; }
3472 EOF
3473 if { (eval echo configure:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3474   :
3475 else
3476   echo "configure: failed program was:" >&5
3477   cat conftest.$ac_ext >&5
3478   rm -rf conftest*
3479   ac_c99_stdio=no
3480 fi
3481 rm -f conftest*
3482   cat > conftest.$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3485 #include <stdio.h>
3486                   #include <stdarg.h>
3487                   void foo(char* fmt, ...)
3488                   {va_list args; va_start(args, fmt);
3489                   vscanf("%i", args);}
3490 int main() {
3491
3492 ; return 0; }
3493 EOF
3494 if { (eval echo configure:3495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3495   :
3496 else
3497   echo "configure: failed program was:" >&5
3498   cat conftest.$ac_ext >&5
3499   rm -rf conftest*
3500   ac_c99_stdio=no
3501 fi
3502 rm -f conftest*
3503   cat > conftest.$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3506 #include <stdio.h>
3507                   #include <stdarg.h>
3508                   void foo(char* fmt, ...)
3509                   {va_list args; va_start(args, fmt);
3510                   vsnprintf(fmt, 0, "%i", args);}
3511 int main() {
3512
3513 ; return 0; }
3514 EOF
3515 if { (eval echo configure:3516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3516   :
3517 else
3518   echo "configure: failed program was:" >&5
3519   cat conftest.$ac_ext >&5
3520   rm -rf conftest*
3521   ac_c99_stdio=no
3522 fi
3523 rm -f conftest*
3524   cat > conftest.$ac_ext <<EOF
3525 #line 3526 "configure"
3526 #include "confdefs.h"
3527 #include <stdio.h>
3528                   #include <stdarg.h>
3529                   void foo(char* fmt, ...)
3530                   {va_list args; va_start(args, fmt);
3531                   vsscanf(fmt, "%i", args);}
3532 int main() {
3533
3534 ; return 0; }
3535 EOF
3536 if { (eval echo configure:3537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3537   :
3538 else
3539   echo "configure: failed program was:" >&5
3540   cat conftest.$ac_ext >&5
3541   rm -rf conftest*
3542   ac_c99_stdio=no
3543 fi
3544 rm -f conftest*
3545   echo "$ac_t""$ac_c99_stdio" 1>&6
3546
3547   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3548   ac_c99_stdlib=yes;
3549   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3550 echo "configure:3551: checking for lldiv_t declaration" >&5
3551   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3552   echo $ac_n "(cached) $ac_c" 1>&6
3553 else
3554   
3555   cat > conftest.$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 #include <stdlib.h>
3559 int main() {
3560  lldiv_t mydivt;
3561 ; return 0; }
3562 EOF
3563 if { (eval echo configure:3564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3564   rm -rf conftest*
3565   ac_c99_lldiv_t=yes
3566 else
3567   echo "configure: failed program was:" >&5
3568   cat conftest.$ac_ext >&5
3569   rm -rf conftest*
3570   ac_c99_lldiv_t=no
3571 fi
3572 rm -f conftest*
3573   
3574 fi
3575
3576   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3577
3578   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3579 echo "configure:3580: checking for ISO C99 support in <stdlib.h>" >&5
3580   cat > conftest.$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3583 #include <stdlib.h>
3584 int main() {
3585 char* tmp; strtof("gnu", &tmp);
3586 ; return 0; }
3587 EOF
3588 if { (eval echo configure:3589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3589   :
3590 else
3591   echo "configure: failed program was:" >&5
3592   cat conftest.$ac_ext >&5
3593   rm -rf conftest*
3594   ac_c99_stdlib=no
3595 fi
3596 rm -f conftest*
3597   cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 #include <stdlib.h>
3601 int main() {
3602 char* tmp; strtold("gnu", &tmp);
3603 ; return 0; }
3604 EOF
3605 if { (eval echo configure:3606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3606   :
3607 else
3608   echo "configure: failed program was:" >&5
3609   cat conftest.$ac_ext >&5
3610   rm -rf conftest*
3611   ac_c99_stdlib=no
3612 fi
3613 rm -f conftest*
3614   cat > conftest.$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3617 #include <stdlib.h>
3618 int main() {
3619 llabs(10);
3620 ; return 0; }
3621 EOF
3622 if { (eval echo configure:3623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3623   :
3624 else
3625   echo "configure: failed program was:" >&5
3626   cat conftest.$ac_ext >&5
3627   rm -rf conftest*
3628   ac_c99_stdlib=no
3629 fi
3630 rm -f conftest*
3631   cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 #include <stdlib.h>
3635 int main() {
3636 lldiv(10,1);
3637 ; return 0; }
3638 EOF
3639 if { (eval echo configure:3640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3640   :
3641 else
3642   echo "configure: failed program was:" >&5
3643   cat conftest.$ac_ext >&5
3644   rm -rf conftest*
3645   ac_c99_stdlib=no
3646 fi
3647 rm -f conftest*
3648   cat > conftest.$ac_ext <<EOF
3649 #line 3650 "configure"
3650 #include "confdefs.h"
3651 #include <stdlib.h>
3652 int main() {
3653 atoll("10");
3654 ; return 0; }
3655 EOF
3656 if { (eval echo configure:3657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3657   :
3658 else
3659   echo "configure: failed program was:" >&5
3660   cat conftest.$ac_ext >&5
3661   rm -rf conftest*
3662   ac_c99_stdlib=no
3663 fi
3664 rm -f conftest*
3665   cat > conftest.$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 #include <stdlib.h>
3669 int main() {
3670 _Exit(0);
3671 ; return 0; }
3672 EOF
3673 if { (eval echo configure:3674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3674   :
3675 else
3676   echo "configure: failed program was:" >&5
3677   cat conftest.$ac_ext >&5
3678   rm -rf conftest*
3679   ac_c99_stdlib=no
3680 fi
3681 rm -f conftest*
3682   if test x"$ac_c99_lldiv_t" = x"no"; then
3683     ac_c99_stdlib=no; 
3684   fi; 
3685   echo "$ac_t""$ac_c99_stdlib" 1>&6
3686
3687   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3688   # XXX the wchar.h checks should be rolled into the general C99 bits.
3689   ac_c99_wchar=yes;
3690   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3691 echo "configure:3692: checking for additional ISO C99 support in <wchar.h>" >&5
3692   cat > conftest.$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3695 #include <wchar.h>
3696 int main() {
3697 wcstold(L"10.0", NULL);
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_wchar=no
3707 fi
3708 rm -f conftest*
3709   cat > conftest.$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3712 #include <wchar.h>
3713 int main() {
3714 wcstoll(L"10", NULL, 10);
3715 ; return 0; }
3716 EOF
3717 if { (eval echo configure:3718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3718   :
3719 else
3720   echo "configure: failed program was:" >&5
3721   cat conftest.$ac_ext >&5
3722   rm -rf conftest*
3723   ac_c99_wchar=no
3724 fi
3725 rm -f conftest*
3726   cat > conftest.$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3729 #include <wchar.h>
3730 int main() {
3731 wcstoull(L"10", NULL, 10);
3732 ; return 0; }
3733 EOF
3734 if { (eval echo configure:3735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3735   :
3736 else
3737   echo "configure: failed program was:" >&5
3738   cat conftest.$ac_ext >&5
3739   rm -rf conftest*
3740   ac_c99_wchar=no
3741 fi
3742 rm -f conftest*
3743   echo "$ac_t""$ac_c99_wchar" 1>&6
3744
3745   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3746 echo "configure:3747: checking for enabled ISO C99 support" >&5
3747   if test x"$ac_c99_math" = x"no" ||
3748      test x"$ac_c99_stdio" = x"no" ||
3749      test x"$ac_c99_stdlib" = x"no" ||
3750      test x"$ac_c99_wchar" = x"no"; then
3751     enable_c99=no; 
3752   fi; 
3753   echo "$ac_t""$enable_c99" 1>&6
3754
3755   # Option parsed, now set things appropriately
3756   if test x"$enable_c99" = x"yes"; then
3757     cat >> confdefs.h <<\EOF
3758 #define _GLIBCPP_USE_C99 1
3759 EOF
3760
3761   fi
3762
3763   ac_ext=c
3764 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3765 ac_cpp='$CPP $CPPFLAGS'
3766 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3767 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3768 cross_compiling=$ac_cv_prog_cc_cross
3769
3770
3771   
3772   # Check whether --enable-long-long or --disable-long-long was given.
3773 if test "${enable_long_long+set}" = set; then
3774   enableval="$enable_long_long"
3775     case "$enableval" in
3776    yes) enable_long_long=yes ;;
3777    no)  enable_long_long=no ;;
3778    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3779    esac
3780 else
3781   enable_long_long=yes
3782 fi
3783
3784   
3785   ac_ext=C
3786 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3787 ac_cpp='$CXXCPP $CPPFLAGS'
3788 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3789 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3790 cross_compiling=$ac_cv_prog_cxx_cross
3791
3792
3793   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3794 echo "configure:3795: checking for enabled long long I/O support" >&5
3795   # iostreams require strtoll, strtoull to compile
3796   cat > conftest.$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3799 #include <stdlib.h>
3800 int main() {
3801 char* tmp; strtoll("gnu", &tmp, 10);
3802 ; return 0; }
3803 EOF
3804 if { (eval echo configure:3805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3805   :
3806 else
3807   echo "configure: failed program was:" >&5
3808   cat conftest.$ac_ext >&5
3809   rm -rf conftest*
3810   enable_long_long=no
3811 fi
3812 rm -f conftest*
3813   cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 #include <stdlib.h>
3817 int main() {
3818 char* tmp; strtoull("gnu", &tmp, 10);
3819 ; return 0; }
3820 EOF
3821 if { (eval echo configure:3822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3822   :
3823 else
3824   echo "configure: failed program was:" >&5
3825   cat conftest.$ac_ext >&5
3826   rm -rf conftest*
3827   enable_long_long=no
3828 fi
3829 rm -f conftest*
3830
3831   # Option parsed, now set things appropriately
3832   if test x"$enable_long_long" = xyes; then
3833     cat >> confdefs.h <<\EOF
3834 #define _GLIBCPP_USE_LONG_LONG 1
3835 EOF
3836
3837   fi
3838   echo "$ac_t""$enable_long_long" 1>&6
3839
3840   ac_ext=c
3841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3842 ac_cpp='$CPP $CPPFLAGS'
3843 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3844 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3845 cross_compiling=$ac_cv_prog_cc_cross
3846
3847
3848 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3849 echo "configure:3850: checking for c header strategy to use" >&5
3850 # Check whether --enable-cheaders or --disable-cheaders was given.
3851 if test "${enable_cheaders+set}" = set; then
3852   enableval="$enable_cheaders"
3853   
3854   case "$enableval" in
3855    c) 
3856         enable_cheaders=c 
3857         ;;
3858    c_std)  
3859         enable_cheaders=c_std 
3860         ;;
3861    c_shadow)  
3862         enable_cheaders=c_shadow 
3863         ;;
3864    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3865         ;;
3866   esac
3867 else
3868   enable_cheaders=c_std
3869 fi
3870
3871   echo "$ac_t""$enable_cheaders" 1>&6
3872
3873     case "$enable_cheaders" in
3874     c_shadow) 
3875         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3876         ;;
3877     c_std)   
3878         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3879         ;;
3880     c)   
3881         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3882         ;;
3883   esac
3884
3885   
3886   
3887
3888 if test "$enable_cheaders" = c; then
3889   GLIBCPP_C_HEADERS_C_TRUE=
3890   GLIBCPP_C_HEADERS_C_FALSE='#'
3891 else
3892   GLIBCPP_C_HEADERS_C_TRUE='#'
3893   GLIBCPP_C_HEADERS_C_FALSE=
3894 fi
3895   
3896
3897 if test "$enable_cheaders" = c_std; then
3898   GLIBCPP_C_HEADERS_C_STD_TRUE=
3899   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3900 else
3901   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3902   GLIBCPP_C_HEADERS_C_STD_FALSE=
3903 fi
3904   
3905
3906 if test "$c_compatibility" = yes; then
3907   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3908   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3909 else
3910   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3911   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3912 fi
3913
3914
3915   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3916 echo "configure:3917: checking for thread model used by GCC" >&5
3917   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3918   echo "$ac_t""$target_thread_file" 1>&6
3919
3920   if test $target_thread_file != single; then
3921     cat >> confdefs.h <<\EOF
3922 #define HAVE_GTHR_DEFAULT 1
3923 EOF
3924
3925     cat >> confdefs.h <<\EOF
3926 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3927 EOF
3928
3929   fi
3930
3931   glibcpp_thread_h=gthr-$target_thread_file.h
3932   
3933
3934 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3935 if test "${enable_cxx_flags+set}" = set; then
3936   enableval="$enable_cxx_flags"
3937   case "x$enableval" in
3938  xyes)   
3939         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3940  xno|x)  
3941         enable_cxx_flags='' ;;
3942  *)      
3943         enable_cxx_flags="$enableval" ;;
3944  esac
3945 else
3946   enable_cxx_flags='none'
3947 fi
3948
3949
3950 if test "$enable_cxx_flags" = "none"; then 
3951   enable_cxx_flags=''; 
3952 fi
3953
3954 if test -n "$enable_cxx_flags"; then
3955     for f in $enable_cxx_flags; do
3956         case "$f" in
3957             -fhonor-std)  ;;
3958             -*)  ;;
3959             *)   # and we're trying to pass /what/ exactly?
3960                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3961         esac
3962     done
3963 fi
3964 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3965
3966
3967
3968   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3969 echo "configure:3970: checking for exception model to use" >&5
3970   
3971   ac_ext=C
3972 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3973 ac_cpp='$CXXCPP $CPPFLAGS'
3974 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3975 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3976 cross_compiling=$ac_cv_prog_cxx_cross
3977
3978   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3979 if test "${enable_sjlj_exceptions+set}" = set; then
3980   enableval="$enable_sjlj_exceptions"
3981   :
3982 else
3983                        cat > conftest.$ac_ext << EOF
3984 #line 3985 "configure"
3985 struct S { ~S(); };
3986 void bar();
3987 void foo()
3988 {
3989   S s;
3990   bar();
3991 }
3992 EOF
3993    old_CXXFLAGS="$CXXFLAGS"  
3994    CXXFLAGS=-S
3995    if { (eval echo configure:3996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3996      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3997        enable_sjlj_exceptions=yes
3998      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3999        enable_sjlj_exceptions=no
4000      fi
4001    fi
4002    CXXFLAGS="$old_CXXFLAGS"
4003    rm -f conftest*
4004 fi
4005
4006    if test x$enable_sjlj_exceptions = xyes; then
4007      cat >> confdefs.h <<\EOF
4008 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4009 EOF
4010
4011      ac_exception_model_name=sjlj
4012    elif test x$enable_sjlj_exceptions = xno; then
4013      ac_exception_model_name="call frame"
4014    else
4015      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4016    fi
4017    ac_ext=c
4018 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4021 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4022 cross_compiling=$ac_cv_prog_cc_cross
4023
4024    echo "$ac_t""$ac_exception_model_name" 1>&6
4025
4026
4027   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4028 echo "configure:4029: checking for use of libunwind" >&5
4029   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4030 if test "${enable_libunwind_exceptions+set}" = set; then
4031   enableval="$enable_libunwind_exceptions"
4032   use_libunwind_exceptions=$enableval
4033 else
4034   use_libunwind_exceptions=no
4035 fi
4036
4037   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4038     if test x"$use_libunwind_exceptions" = xyes; then
4039     LIBUNWIND_FLAG="-lunwind"
4040   else
4041     LIBUNWIND_FLAG=""
4042   fi
4043   
4044
4045 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4046 if test "${enable_concept_checks+set}" = set; then
4047   enableval="$enable_concept_checks"
4048   case "$enableval" in
4049  yes) enable_concept_checks=yes ;;
4050  no)  enable_concept_checks=no ;;
4051  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4052  esac
4053 else
4054   enable_concept_checks=no
4055 fi
4056 if test x"$enable_concept_checks" = xyes; then
4057   cat >> confdefs.h <<\EOF
4058 #define _GLIBCPP_CONCEPT_CHECKS 1
4059 EOF
4060
4061 fi
4062
4063
4064 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4065 for ac_hdr in string.h stdlib.h
4066 do
4067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4069 echo "configure:4070: checking for $ac_hdr" >&5
4070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4071   echo $ac_n "(cached) $ac_c" 1>&6
4072 else
4073   cat > conftest.$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4076 #include <$ac_hdr>
4077 EOF
4078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4079 { (eval echo configure:4080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4081 if test -z "$ac_err"; then
4082   rm -rf conftest*
4083   eval "ac_cv_header_$ac_safe=yes"
4084 else
4085   echo "$ac_err" >&5
4086   echo "configure: failed program was:" >&5
4087   cat conftest.$ac_ext >&5
4088   rm -rf conftest*
4089   eval "ac_cv_header_$ac_safe=no"
4090 fi
4091 rm -f conftest*
4092 fi
4093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4094   echo "$ac_t""yes" 1>&6
4095     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4096   cat >> confdefs.h <<EOF
4097 #define $ac_tr_hdr 1
4098 EOF
4099  
4100 else
4101   echo "$ac_t""no" 1>&6
4102 fi
4103 done
4104
4105
4106 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4107
4108   # We are being configured with some form of cross compiler.
4109   GLIBCPP_IS_CROSS_COMPILING=1
4110
4111   # This lets us hard-code the functionality we know we'll have in the cross
4112   # target environment.  "Let" is a sugar-coated word placed on an especially
4113   # dull and tedious hack, actually.
4114   #
4115   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4116   # that involve linking, can't be used:
4117   #    "cannot open sim-crt0.o"
4118   #    "cannot open crt0.o"
4119   # etc.  All this is because there currently exists no unified, consistent
4120   # way for top level CC information to be passed down to target directories:
4121   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4122   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4123   # crosses can be removed.
4124
4125   # If Canadian cross, then don't pick up tools from the build directory.
4126   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4127   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4128     CANADIAN=yes
4129   else
4130     CANADIAN=no
4131   fi
4132
4133   # Construct crosses by hand, eliminating bits that need ld...
4134   # GLIBCPP_CHECK_COMPILER_FEATURES
4135   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4136   # GLIBCPP_CHECK_MATH_SUPPORT
4137
4138   case "$target_alias" in
4139     *-linux*)
4140       os_include_dir="os/gnu-linux"
4141       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4142         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4143         fp.h locale.h float.h inttypes.h
4144 do
4145 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4146 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4147 echo "configure:4148: checking for $ac_hdr" >&5
4148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4149   echo $ac_n "(cached) $ac_c" 1>&6
4150 else
4151   cat > conftest.$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4154 #include <$ac_hdr>
4155 EOF
4156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4157 { (eval echo configure:4158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4159 if test -z "$ac_err"; then
4160   rm -rf conftest*
4161   eval "ac_cv_header_$ac_safe=yes"
4162 else
4163   echo "$ac_err" >&5
4164   echo "configure: failed program was:" >&5
4165   cat conftest.$ac_ext >&5
4166   rm -rf conftest*
4167   eval "ac_cv_header_$ac_safe=no"
4168 fi
4169 rm -f conftest*
4170 fi
4171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4172   echo "$ac_t""yes" 1>&6
4173     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4174   cat >> confdefs.h <<EOF
4175 #define $ac_tr_hdr 1
4176 EOF
4177  
4178 else
4179   echo "$ac_t""no" 1>&6
4180 fi
4181 done
4182
4183       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4184       
4185       
4186   # If we're not using GNU ld, then there's no point in even trying these
4187   # tests.  Check for that first.  We should have already tested for gld
4188   # by now (in libtool), but require it now just to be safe...
4189   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4190   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4191   
4192
4193   # The name set by libtool depends on the version of libtool.  Shame on us
4194   # for depending on an impl detail, but c'est la vie.  Older versions used
4195   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4196   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4197   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4198   # set (hence we're using an older libtool), then set it.
4199   if test x${with_gnu_ld+set} != xset; then
4200     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4201       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4202       with_gnu_ld=no
4203     else
4204       with_gnu_ld=$ac_cv_prog_gnu_ld
4205     fi
4206   fi
4207
4208   # Start by getting the version number.  I think the libtool test already
4209   # does some of this, but throws away the result.
4210   
4211   ldver=`$LD --version 2>/dev/null | head -1 | \
4212          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4213   
4214   glibcpp_gnu_ld_version=`echo $ldver | \
4215          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4216
4217   # Set --gc-sections.
4218   if test "$with_gnu_ld" = "notbroken"; then
4219     # GNU ld it is!  Joy and bunny rabbits!
4220
4221     # All these tests are for C++; save the language and the compiler flags.
4222     # Need to do this so that g++ won't try to link in libstdc++
4223     ac_test_CFLAGS="${CFLAGS+set}"
4224     ac_save_CFLAGS="$CFLAGS"
4225     CFLAGS='-x c++  -Wl,--gc-sections'
4226
4227     # Check for -Wl,--gc-sections
4228     # XXX This test is broken at the moment, as symbols required for
4229     # linking are now in libsupc++ (not built yet.....). In addition, 
4230     # this test has cored on solaris in the past. In addition,
4231     # --gc-sections doesn't really work at the moment (keeps on discarding
4232     # used sections, first .eh_frame and now some of the glibc sections for
4233     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4234     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4235 echo "configure:4236: checking for ld that supports -Wl,--gc-sections" >&5
4236     if test "$cross_compiling" = yes; then
4237   ac_sectionLDflags=yes
4238 else
4239   cat > conftest.$ac_ext <<EOF
4240 #line 4241 "configure"
4241 #include "confdefs.h"
4242
4243      int main(void) 
4244      {
4245        try { throw 1; }
4246        catch (...) { };
4247        return 0;
4248      }
4249     
4250 EOF
4251 if { (eval echo configure:4252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4252 then
4253   ac_sectionLDflags=yes
4254 else
4255   echo "configure: failed program was:" >&5
4256   cat conftest.$ac_ext >&5
4257   rm -fr conftest*
4258   ac_sectionLDflags=no
4259 fi
4260 rm -fr conftest*
4261 fi
4262
4263     if test "$ac_test_CFLAGS" = set; then
4264       CFLAGS="$ac_save_CFLAGS"
4265     else
4266       # this is the suspicious part
4267       CFLAGS=''
4268     fi
4269     if test "$ac_sectionLDflags" = "yes"; then
4270       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4271     fi
4272     echo "$ac_t""$ac_sectionLDflags" 1>&6
4273   fi
4274
4275   # Set linker optimization flags.
4276   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4277     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4278   fi
4279
4280   
4281   
4282
4283       
4284     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4285 echo "configure:4286: checking for main in -lm" >&5
4286 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4288   echo $ac_n "(cached) $ac_c" 1>&6
4289 else
4290   ac_save_LIBS="$LIBS"
4291 LIBS="-lm  $LIBS"
4292 cat > conftest.$ac_ext <<EOF
4293 #line 4294 "configure"
4294 #include "confdefs.h"
4295
4296 int main() {
4297 main()
4298 ; return 0; }
4299 EOF
4300 if { (eval echo configure:4301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4301   rm -rf conftest*
4302   eval "ac_cv_lib_$ac_lib_var=yes"
4303 else
4304   echo "configure: failed program was:" >&5
4305   cat conftest.$ac_ext >&5
4306   rm -rf conftest*
4307   eval "ac_cv_lib_$ac_lib_var=no"
4308 fi
4309 rm -f conftest*
4310 LIBS="$ac_save_LIBS"
4311
4312 fi
4313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4314   echo "$ac_t""yes" 1>&6
4315     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4316     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4317   cat >> confdefs.h <<EOF
4318 #define $ac_tr_lib 1
4319 EOF
4320
4321   LIBS="-lm $LIBS"
4322
4323 else
4324   echo "$ac_t""no" 1>&6
4325 fi
4326
4327   for ac_func in nan copysignf
4328 do
4329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4330 echo "configure:4331: checking for $ac_func" >&5
4331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4332   echo $ac_n "(cached) $ac_c" 1>&6
4333 else
4334   cat > conftest.$ac_ext <<EOF
4335 #line 4336 "configure"
4336 #include "confdefs.h"
4337 /* System header to define __stub macros and hopefully few prototypes,
4338     which can conflict with char $ac_func(); below.  */
4339 #include <assert.h>
4340 /* Override any gcc2 internal prototype to avoid an error.  */
4341 /* We use char because int might match the return type of a gcc2
4342     builtin and then its argument prototype would still apply.  */
4343 char $ac_func();
4344
4345 int main() {
4346
4347 /* The GNU C library defines this for functions which it implements
4348     to always fail with ENOSYS.  Some functions are actually named
4349     something starting with __ and the normal name is an alias.  */
4350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4351 choke me
4352 #else
4353 $ac_func();
4354 #endif
4355
4356 ; return 0; }
4357 EOF
4358 if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4359   rm -rf conftest*
4360   eval "ac_cv_func_$ac_func=yes"
4361 else
4362   echo "configure: failed program was:" >&5
4363   cat conftest.$ac_ext >&5
4364   rm -rf conftest*
4365   eval "ac_cv_func_$ac_func=no"
4366 fi
4367 rm -f conftest*
4368 fi
4369
4370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4371   echo "$ac_t""yes" 1>&6
4372     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4373   cat >> confdefs.h <<EOF
4374 #define $ac_tr_func 1
4375 EOF
4376  
4377 else
4378   echo "$ac_t""no" 1>&6
4379 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4380 fi
4381 done
4382
4383
4384     for ac_func in __signbit
4385 do
4386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4387 echo "configure:4388: checking for $ac_func" >&5
4388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4389   echo $ac_n "(cached) $ac_c" 1>&6
4390 else
4391   cat > conftest.$ac_ext <<EOF
4392 #line 4393 "configure"
4393 #include "confdefs.h"
4394 /* System header to define __stub macros and hopefully few prototypes,
4395     which can conflict with char $ac_func(); below.  */
4396 #include <assert.h>
4397 /* Override any gcc2 internal prototype to avoid an error.  */
4398 /* We use char because int might match the return type of a gcc2
4399     builtin and then its argument prototype would still apply.  */
4400 char $ac_func();
4401
4402 int main() {
4403
4404 /* The GNU C library defines this for functions which it implements
4405     to always fail with ENOSYS.  Some functions are actually named
4406     something starting with __ and the normal name is an alias.  */
4407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4408 choke me
4409 #else
4410 $ac_func();
4411 #endif
4412
4413 ; return 0; }
4414 EOF
4415 if { (eval echo configure:4416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4416   rm -rf conftest*
4417   eval "ac_cv_func_$ac_func=yes"
4418 else
4419   echo "configure: failed program was:" >&5
4420   cat conftest.$ac_ext >&5
4421   rm -rf conftest*
4422   eval "ac_cv_func_$ac_func=no"
4423 fi
4424 rm -f conftest*
4425 fi
4426
4427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4428   echo "$ac_t""yes" 1>&6
4429     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4430   cat >> confdefs.h <<EOF
4431 #define $ac_tr_func 1
4432 EOF
4433  
4434 else
4435   echo "$ac_t""no" 1>&6
4436 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4437 fi
4438 done
4439
4440   for ac_func in __signbitf
4441 do
4442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4443 echo "configure:4444: checking for $ac_func" >&5
4444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4445   echo $ac_n "(cached) $ac_c" 1>&6
4446 else
4447   cat > conftest.$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4450 /* System header to define __stub macros and hopefully few prototypes,
4451     which can conflict with char $ac_func(); below.  */
4452 #include <assert.h>
4453 /* Override any gcc2 internal prototype to avoid an error.  */
4454 /* We use char because int might match the return type of a gcc2
4455     builtin and then its argument prototype would still apply.  */
4456 char $ac_func();
4457
4458 int main() {
4459
4460 /* The GNU C library defines this for functions which it implements
4461     to always fail with ENOSYS.  Some functions are actually named
4462     something starting with __ and the normal name is an alias.  */
4463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4464 choke me
4465 #else
4466 $ac_func();
4467 #endif
4468
4469 ; return 0; }
4470 EOF
4471 if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4472   rm -rf conftest*
4473   eval "ac_cv_func_$ac_func=yes"
4474 else
4475   echo "configure: failed program was:" >&5
4476   cat conftest.$ac_ext >&5
4477   rm -rf conftest*
4478   eval "ac_cv_func_$ac_func=no"
4479 fi
4480 rm -f conftest*
4481 fi
4482
4483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4484   echo "$ac_t""yes" 1>&6
4485     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4486   cat >> confdefs.h <<EOF
4487 #define $ac_tr_func 1
4488 EOF
4489  
4490 else
4491   echo "$ac_t""no" 1>&6
4492 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4493 fi
4494 done
4495
4496
4497           if test x$ac_cv_func_copysignl = x"yes"; then
4498     for ac_func in __signbitl
4499 do
4500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4501 echo "configure:4502: checking for $ac_func" >&5
4502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4503   echo $ac_n "(cached) $ac_c" 1>&6
4504 else
4505   cat > conftest.$ac_ext <<EOF
4506 #line 4507 "configure"
4507 #include "confdefs.h"
4508 /* System header to define __stub macros and hopefully few prototypes,
4509     which can conflict with char $ac_func(); below.  */
4510 #include <assert.h>
4511 /* Override any gcc2 internal prototype to avoid an error.  */
4512 /* We use char because int might match the return type of a gcc2
4513     builtin and then its argument prototype would still apply.  */
4514 char $ac_func();
4515
4516 int main() {
4517
4518 /* The GNU C library defines this for functions which it implements
4519     to always fail with ENOSYS.  Some functions are actually named
4520     something starting with __ and the normal name is an alias.  */
4521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4522 choke me
4523 #else
4524 $ac_func();
4525 #endif
4526
4527 ; return 0; }
4528 EOF
4529 if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4530   rm -rf conftest*
4531   eval "ac_cv_func_$ac_func=yes"
4532 else
4533   echo "configure: failed program was:" >&5
4534   cat conftest.$ac_ext >&5
4535   rm -rf conftest*
4536   eval "ac_cv_func_$ac_func=no"
4537 fi
4538 rm -f conftest*
4539 fi
4540
4541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4542   echo "$ac_t""yes" 1>&6
4543     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4544   cat >> confdefs.h <<EOF
4545 #define $ac_tr_func 1
4546 EOF
4547  
4548 else
4549   echo "$ac_t""no" 1>&6
4550 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4551 fi
4552 done
4553
4554   fi
4555
4556   
4557
4558       
4559
4560       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4561 echo "configure:4562: checking for mbstate_t" >&5
4562   cat > conftest.$ac_ext <<EOF
4563 #line 4564 "configure"
4564 #include "confdefs.h"
4565 #include <wchar.h>
4566 int main() {
4567 mbstate_t teststate;
4568 ; return 0; }
4569 EOF
4570 if { (eval echo configure:4571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4571   rm -rf conftest*
4572   have_mbstate_t=yes
4573 else
4574   echo "configure: failed program was:" >&5
4575   cat conftest.$ac_ext >&5
4576   rm -rf conftest*
4577   have_mbstate_t=no
4578 fi
4579 rm -f conftest*
4580   echo "$ac_t""$have_mbstate_t" 1>&6
4581   if test x"$have_mbstate_t" = xyes; then
4582     cat >> confdefs.h <<\EOF
4583 #define HAVE_MBSTATE_T 1
4584 EOF
4585
4586   fi
4587
4588     for ac_hdr in wchar.h
4589 do
4590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4592 echo "configure:4593: checking for $ac_hdr" >&5
4593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4594   echo $ac_n "(cached) $ac_c" 1>&6
4595 else
4596   cat > conftest.$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4599 #include <$ac_hdr>
4600 EOF
4601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4602 { (eval echo configure:4603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4604 if test -z "$ac_err"; then
4605   rm -rf conftest*
4606   eval "ac_cv_header_$ac_safe=yes"
4607 else
4608   echo "$ac_err" >&5
4609   echo "configure: failed program was:" >&5
4610   cat conftest.$ac_ext >&5
4611   rm -rf conftest*
4612   eval "ac_cv_header_$ac_safe=no"
4613 fi
4614 rm -f conftest*
4615 fi
4616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4617   echo "$ac_t""yes" 1>&6
4618     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4619   cat >> confdefs.h <<EOF
4620 #define $ac_tr_hdr 1
4621 EOF
4622  ac_has_wchar_h=yes
4623 else
4624   echo "$ac_t""no" 1>&6
4625 ac_has_wchar_h=no
4626 fi
4627 done
4628
4629   for ac_hdr in wctype.h
4630 do
4631 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4632 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4633 echo "configure:4634: checking for $ac_hdr" >&5
4634 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4635   echo $ac_n "(cached) $ac_c" 1>&6
4636 else
4637   cat > conftest.$ac_ext <<EOF
4638 #line 4639 "configure"
4639 #include "confdefs.h"
4640 #include <$ac_hdr>
4641 EOF
4642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4643 { (eval echo configure:4644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4645 if test -z "$ac_err"; then
4646   rm -rf conftest*
4647   eval "ac_cv_header_$ac_safe=yes"
4648 else
4649   echo "$ac_err" >&5
4650   echo "configure: failed program was:" >&5
4651   cat conftest.$ac_ext >&5
4652   rm -rf conftest*
4653   eval "ac_cv_header_$ac_safe=no"
4654 fi
4655 rm -f conftest*
4656 fi
4657 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4658   echo "$ac_t""yes" 1>&6
4659     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4660   cat >> confdefs.h <<EOF
4661 #define $ac_tr_hdr 1
4662 EOF
4663  ac_has_wctype_h=yes
4664 else
4665   echo "$ac_t""no" 1>&6
4666 ac_has_wctype_h=no
4667 fi
4668 done
4669
4670   
4671     if test x"$ac_has_wchar_h" = xyes &&
4672      test x"$ac_has_wctype_h" = xyes &&
4673      test x"$enable_c_mbchar" != xno; then
4674       
4675             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4676 echo "configure:4677: checking for WCHAR_MIN and WCHAR_MAX" >&5
4677     cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4680 #include <wchar.h>
4681 int main() {
4682 int i = WCHAR_MIN; int j = WCHAR_MAX;
4683 ; return 0; }
4684 EOF
4685 if { (eval echo configure:4686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4686   rm -rf conftest*
4687   has_wchar_minmax=yes
4688 else
4689   echo "configure: failed program was:" >&5
4690   cat conftest.$ac_ext >&5
4691   rm -rf conftest*
4692   has_wchar_minmax=no
4693 fi
4694 rm -f conftest*
4695     echo "$ac_t""$has_wchar_minmax" 1>&6
4696     
4697             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4698 echo "configure:4699: checking for WEOF" >&5
4699     cat > conftest.$ac_ext <<EOF
4700 #line 4701 "configure"
4701 #include "confdefs.h"
4702
4703       #include <wchar.h>
4704       #include <stddef.h>
4705 int main() {
4706 wint_t i = WEOF;
4707 ; return 0; }
4708 EOF
4709 if { (eval echo configure:4710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4710   rm -rf conftest*
4711   has_weof=yes
4712 else
4713   echo "configure: failed program was:" >&5
4714   cat conftest.$ac_ext >&5
4715   rm -rf conftest*
4716   has_weof=no
4717 fi
4718 rm -f conftest*
4719     echo "$ac_t""$has_weof" 1>&6
4720   
4721         ac_wfuncs=yes
4722     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4723 do
4724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4725 echo "configure:4726: checking for $ac_func" >&5
4726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4727   echo $ac_n "(cached) $ac_c" 1>&6
4728 else
4729   cat > conftest.$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4732 /* System header to define __stub macros and hopefully few prototypes,
4733     which can conflict with char $ac_func(); below.  */
4734 #include <assert.h>
4735 /* Override any gcc2 internal prototype to avoid an error.  */
4736 /* We use char because int might match the return type of a gcc2
4737     builtin and then its argument prototype would still apply.  */
4738 char $ac_func();
4739
4740 int main() {
4741
4742 /* The GNU C library defines this for functions which it implements
4743     to always fail with ENOSYS.  Some functions are actually named
4744     something starting with __ and the normal name is an alias.  */
4745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4746 choke me
4747 #else
4748 $ac_func();
4749 #endif
4750
4751 ; return 0; }
4752 EOF
4753 if { (eval echo configure:4754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4754   rm -rf conftest*
4755   eval "ac_cv_func_$ac_func=yes"
4756 else
4757   echo "configure: failed program was:" >&5
4758   cat conftest.$ac_ext >&5
4759   rm -rf conftest*
4760   eval "ac_cv_func_$ac_func=no"
4761 fi
4762 rm -f conftest*
4763 fi
4764
4765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4766   echo "$ac_t""yes" 1>&6
4767     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4768   cat >> confdefs.h <<EOF
4769 #define $ac_tr_func 1
4770 EOF
4771  
4772 else
4773   echo "$ac_t""no" 1>&6
4774 \
4775     ac_wfuncs=no
4776 fi
4777 done
4778
4779   
4780         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4781     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4782     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4783     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4784     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4785     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4786 do
4787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4788 echo "configure:4789: checking for $ac_func" >&5
4789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4790   echo $ac_n "(cached) $ac_c" 1>&6
4791 else
4792   cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 /* System header to define __stub macros and hopefully few prototypes,
4796     which can conflict with char $ac_func(); below.  */
4797 #include <assert.h>
4798 /* Override any gcc2 internal prototype to avoid an error.  */
4799 /* We use char because int might match the return type of a gcc2
4800     builtin and then its argument prototype would still apply.  */
4801 char $ac_func();
4802
4803 int main() {
4804
4805 /* The GNU C library defines this for functions which it implements
4806     to always fail with ENOSYS.  Some functions are actually named
4807     something starting with __ and the normal name is an alias.  */
4808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4809 choke me
4810 #else
4811 $ac_func();
4812 #endif
4813
4814 ; return 0; }
4815 EOF
4816 if { (eval echo configure:4817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4817   rm -rf conftest*
4818   eval "ac_cv_func_$ac_func=yes"
4819 else
4820   echo "configure: failed program was:" >&5
4821   cat conftest.$ac_ext >&5
4822   rm -rf conftest*
4823   eval "ac_cv_func_$ac_func=no"
4824 fi
4825 rm -f conftest*
4826 fi
4827
4828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4829   echo "$ac_t""yes" 1>&6
4830     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4831   cat >> confdefs.h <<EOF
4832 #define $ac_tr_func 1
4833 EOF
4834  
4835 else
4836   echo "$ac_t""no" 1>&6
4837 \
4838     ac_wfuncs=no
4839 fi
4840 done
4841
4842
4843     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4844 echo "configure:4845: checking for ISO C99 wchar_t support" >&5
4845     if test x"$has_weof" = xyes &&
4846        test x"$has_wchar_minmax" = xyes &&
4847        test x"$ac_wfuncs" = xyes; then
4848       ac_isoC99_wchar_t=yes
4849     else
4850       ac_isoC99_wchar_t=no
4851     fi
4852     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4853   
4854             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4855 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4856 echo "configure:4857: checking for iconv.h" >&5
4857 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4858   echo $ac_n "(cached) $ac_c" 1>&6
4859 else
4860   cat > conftest.$ac_ext <<EOF
4861 #line 4862 "configure"
4862 #include "confdefs.h"
4863 #include <iconv.h>
4864 EOF
4865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4866 { (eval echo configure:4867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4868 if test -z "$ac_err"; then
4869   rm -rf conftest*
4870   eval "ac_cv_header_$ac_safe=yes"
4871 else
4872   echo "$ac_err" >&5
4873   echo "configure: failed program was:" >&5
4874   cat conftest.$ac_ext >&5
4875   rm -rf conftest*
4876   eval "ac_cv_header_$ac_safe=no"
4877 fi
4878 rm -f conftest*
4879 fi
4880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4881   echo "$ac_t""yes" 1>&6
4882   ac_has_iconv_h=yes
4883 else
4884   echo "$ac_t""no" 1>&6
4885 ac_has_iconv_h=no
4886 fi
4887
4888     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4889 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4890 echo "configure:4891: checking for langinfo.h" >&5
4891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4892   echo $ac_n "(cached) $ac_c" 1>&6
4893 else
4894   cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4897 #include <langinfo.h>
4898 EOF
4899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4900 { (eval echo configure:4901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4902 if test -z "$ac_err"; then
4903   rm -rf conftest*
4904   eval "ac_cv_header_$ac_safe=yes"
4905 else
4906   echo "$ac_err" >&5
4907   echo "configure: failed program was:" >&5
4908   cat conftest.$ac_ext >&5
4909   rm -rf conftest*
4910   eval "ac_cv_header_$ac_safe=no"
4911 fi
4912 rm -f conftest*
4913 fi
4914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4915   echo "$ac_t""yes" 1>&6
4916   ac_has_langinfo_h=yes
4917 else
4918   echo "$ac_t""no" 1>&6
4919 ac_has_langinfo_h=no
4920 fi
4921
4922
4923         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4924 echo "configure:4925: checking for iconv in -liconv" >&5
4925 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4926 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4927   echo $ac_n "(cached) $ac_c" 1>&6
4928 else
4929   ac_save_LIBS="$LIBS"
4930 LIBS="-liconv  $LIBS"
4931 cat > conftest.$ac_ext <<EOF
4932 #line 4933 "configure"
4933 #include "confdefs.h"
4934 /* Override any gcc2 internal prototype to avoid an error.  */
4935 /* We use char because int might match the return type of a gcc2
4936     builtin and then its argument prototype would still apply.  */
4937 char iconv();
4938
4939 int main() {
4940 iconv()
4941 ; return 0; }
4942 EOF
4943 if { (eval echo configure:4944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4944   rm -rf conftest*
4945   eval "ac_cv_lib_$ac_lib_var=yes"
4946 else
4947   echo "configure: failed program was:" >&5
4948   cat conftest.$ac_ext >&5
4949   rm -rf conftest*
4950   eval "ac_cv_lib_$ac_lib_var=no"
4951 fi
4952 rm -f conftest*
4953 LIBS="$ac_save_LIBS"
4954
4955 fi
4956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4957   echo "$ac_t""yes" 1>&6
4958   libiconv="-liconv"
4959 else
4960   echo "$ac_t""no" 1>&6
4961 fi
4962
4963     ac_save_LIBS="$LIBS"
4964     LIBS="$LIBS $libiconv"
4965
4966     for ac_func in iconv_open iconv_close iconv nl_langinfo
4967 do
4968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4969 echo "configure:4970: checking for $ac_func" >&5
4970 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4971   echo $ac_n "(cached) $ac_c" 1>&6
4972 else
4973   cat > conftest.$ac_ext <<EOF
4974 #line 4975 "configure"
4975 #include "confdefs.h"
4976 /* System header to define __stub macros and hopefully few prototypes,
4977     which can conflict with char $ac_func(); below.  */
4978 #include <assert.h>
4979 /* Override any gcc2 internal prototype to avoid an error.  */
4980 /* We use char because int might match the return type of a gcc2
4981     builtin and then its argument prototype would still apply.  */
4982 char $ac_func();
4983
4984 int main() {
4985
4986 /* The GNU C library defines this for functions which it implements
4987     to always fail with ENOSYS.  Some functions are actually named
4988     something starting with __ and the normal name is an alias.  */
4989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4990 choke me
4991 #else
4992 $ac_func();
4993 #endif
4994
4995 ; return 0; }
4996 EOF
4997 if { (eval echo configure:4998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4998   rm -rf conftest*
4999   eval "ac_cv_func_$ac_func=yes"
5000 else
5001   echo "configure: failed program was:" >&5
5002   cat conftest.$ac_ext >&5
5003   rm -rf conftest*
5004   eval "ac_cv_func_$ac_func=no"
5005 fi
5006 rm -f conftest*
5007 fi
5008
5009 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5010   echo "$ac_t""yes" 1>&6
5011     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5012   cat >> confdefs.h <<EOF
5013 #define $ac_tr_func 1
5014 EOF
5015  \
5016     ac_XPG2funcs=yes
5017 else
5018   echo "$ac_t""no" 1>&6
5019 ac_XPG2funcs=no
5020 fi
5021 done
5022
5023   
5024     LIBS="$ac_save_LIBS"
5025
5026     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5027 echo "configure:5028: checking for XPG2 wchar_t support" >&5
5028     if test x"$ac_has_iconv_h" = xyes &&
5029        test x"$ac_has_langinfo_h" = xyes &&
5030        test x"$ac_XPG2funcs" = xyes; then
5031       ac_XPG2_wchar_t=yes
5032     else
5033       ac_XPG2_wchar_t=no
5034     fi
5035     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5036   
5037             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5038 echo "configure:5039: checking for enabled wchar_t specializations" >&5
5039     if test x"$ac_isoC99_wchar_t" = xyes &&
5040        test x"$ac_XPG2_wchar_t" = xyes; then
5041       cat >> confdefs.h <<\EOF
5042 #define _GLIBCPP_USE_WCHAR_T 1
5043 EOF
5044
5045       echo "$ac_t"""yes"" 1>&6
5046     else
5047       echo "$ac_t"""no"" 1>&6
5048     fi
5049   else
5050         echo "configure: warning: wchar_t support disabled." 1>&2
5051   fi
5052
5053       cat >> confdefs.h <<\EOF
5054 #define HAVE_COPYSIGN 1
5055 EOF
5056
5057       cat >> confdefs.h <<\EOF
5058 #define HAVE_COPYSIGNF 1
5059 EOF
5060
5061       cat >> confdefs.h <<\EOF
5062 #define HAVE_FINITE 1
5063 EOF
5064
5065       cat >> confdefs.h <<\EOF
5066 #define HAVE_FINITEF 1
5067 EOF
5068
5069       cat >> confdefs.h <<\EOF
5070 #define HAVE_FREXPF 1
5071 EOF
5072
5073       cat >> confdefs.h <<\EOF
5074 #define HAVE_HYPOTF 1
5075 EOF
5076
5077       cat >> confdefs.h <<\EOF
5078 #define HAVE_ISINF 1
5079 EOF
5080
5081       cat >> confdefs.h <<\EOF
5082 #define HAVE_ISINFF 1
5083 EOF
5084
5085       cat >> confdefs.h <<\EOF
5086 #define HAVE_ISNAN 1
5087 EOF
5088
5089       cat >> confdefs.h <<\EOF
5090 #define HAVE_ISNANF 1
5091 EOF
5092
5093       cat >> confdefs.h <<\EOF
5094 #define HAVE_SINCOS 1
5095 EOF
5096
5097       cat >> confdefs.h <<\EOF
5098 #define HAVE_SINCOSF 1
5099 EOF
5100
5101       if test x"long_double_math_on_this_cpu" = x"yes"; then
5102         cat >> confdefs.h <<\EOF
5103 #define HAVE_FINITEL 1
5104 EOF
5105
5106         cat >> confdefs.h <<\EOF
5107 #define HAVE_HYPOTL 1
5108 EOF
5109
5110         cat >> confdefs.h <<\EOF
5111 #define HAVE_ISINFL 1
5112 EOF
5113
5114         cat >> confdefs.h <<\EOF
5115 #define HAVE_ISNANL 1
5116 EOF
5117
5118       fi
5119       ;;
5120     *-hpux*)
5121       # Check for available headers.
5122       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5123         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5124         fp.h locale.h float.h inttypes.h
5125 do
5126 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5127 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5128 echo "configure:5129: checking for $ac_hdr" >&5
5129 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5130   echo $ac_n "(cached) $ac_c" 1>&6
5131 else
5132   cat > conftest.$ac_ext <<EOF
5133 #line 5134 "configure"
5134 #include "confdefs.h"
5135 #include <$ac_hdr>
5136 EOF
5137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5138 { (eval echo configure:5139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5140 if test -z "$ac_err"; then
5141   rm -rf conftest*
5142   eval "ac_cv_header_$ac_safe=yes"
5143 else
5144   echo "$ac_err" >&5
5145   echo "configure: failed program was:" >&5
5146   cat conftest.$ac_ext >&5
5147   rm -rf conftest*
5148   eval "ac_cv_header_$ac_safe=no"
5149 fi
5150 rm -f conftest*
5151 fi
5152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5153   echo "$ac_t""yes" 1>&6
5154     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5155   cat >> confdefs.h <<EOF
5156 #define $ac_tr_hdr 1
5157 EOF
5158  
5159 else
5160   echo "$ac_t""no" 1>&6
5161 fi
5162 done
5163
5164       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5165       
5166       
5167   # If we're not using GNU ld, then there's no point in even trying these
5168   # tests.  Check for that first.  We should have already tested for gld
5169   # by now (in libtool), but require it now just to be safe...
5170   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5171   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5172   
5173
5174   # The name set by libtool depends on the version of libtool.  Shame on us
5175   # for depending on an impl detail, but c'est la vie.  Older versions used
5176   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5177   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5178   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5179   # set (hence we're using an older libtool), then set it.
5180   if test x${with_gnu_ld+set} != xset; then
5181     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5182       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5183       with_gnu_ld=no
5184     else
5185       with_gnu_ld=$ac_cv_prog_gnu_ld
5186     fi
5187   fi
5188
5189   # Start by getting the version number.  I think the libtool test already
5190   # does some of this, but throws away the result.
5191   
5192   ldver=`$LD --version 2>/dev/null | head -1 | \
5193          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5194   
5195   glibcpp_gnu_ld_version=`echo $ldver | \
5196          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5197
5198   # Set --gc-sections.
5199   if test "$with_gnu_ld" = "notbroken"; then
5200     # GNU ld it is!  Joy and bunny rabbits!
5201
5202     # All these tests are for C++; save the language and the compiler flags.
5203     # Need to do this so that g++ won't try to link in libstdc++
5204     ac_test_CFLAGS="${CFLAGS+set}"
5205     ac_save_CFLAGS="$CFLAGS"
5206     CFLAGS='-x c++  -Wl,--gc-sections'
5207
5208     # Check for -Wl,--gc-sections
5209     # XXX This test is broken at the moment, as symbols required for
5210     # linking are now in libsupc++ (not built yet.....). In addition, 
5211     # this test has cored on solaris in the past. In addition,
5212     # --gc-sections doesn't really work at the moment (keeps on discarding
5213     # used sections, first .eh_frame and now some of the glibc sections for
5214     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5215     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5216 echo "configure:5217: checking for ld that supports -Wl,--gc-sections" >&5
5217     if test "$cross_compiling" = yes; then
5218   ac_sectionLDflags=yes
5219 else
5220   cat > conftest.$ac_ext <<EOF
5221 #line 5222 "configure"
5222 #include "confdefs.h"
5223
5224      int main(void) 
5225      {
5226        try { throw 1; }
5227        catch (...) { };
5228        return 0;
5229      }
5230     
5231 EOF
5232 if { (eval echo configure:5233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5233 then
5234   ac_sectionLDflags=yes
5235 else
5236   echo "configure: failed program was:" >&5
5237   cat conftest.$ac_ext >&5
5238   rm -fr conftest*
5239   ac_sectionLDflags=no
5240 fi
5241 rm -fr conftest*
5242 fi
5243
5244     if test "$ac_test_CFLAGS" = set; then
5245       CFLAGS="$ac_save_CFLAGS"
5246     else
5247       # this is the suspicious part
5248       CFLAGS=''
5249     fi
5250     if test "$ac_sectionLDflags" = "yes"; then
5251       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5252     fi
5253     echo "$ac_t""$ac_sectionLDflags" 1>&6
5254   fi
5255
5256   # Set linker optimization flags.
5257   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5258     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5259   fi
5260
5261   
5262   
5263
5264       
5265     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5266 echo "configure:5267: checking for main in -lm" >&5
5267 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5269   echo $ac_n "(cached) $ac_c" 1>&6
5270 else
5271   ac_save_LIBS="$LIBS"
5272 LIBS="-lm  $LIBS"
5273 cat > conftest.$ac_ext <<EOF
5274 #line 5275 "configure"
5275 #include "confdefs.h"
5276
5277 int main() {
5278 main()
5279 ; return 0; }
5280 EOF
5281 if { (eval echo configure:5282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5282   rm -rf conftest*
5283   eval "ac_cv_lib_$ac_lib_var=yes"
5284 else
5285   echo "configure: failed program was:" >&5
5286   cat conftest.$ac_ext >&5
5287   rm -rf conftest*
5288   eval "ac_cv_lib_$ac_lib_var=no"
5289 fi
5290 rm -f conftest*
5291 LIBS="$ac_save_LIBS"
5292
5293 fi
5294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5295   echo "$ac_t""yes" 1>&6
5296     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5297     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5298   cat >> confdefs.h <<EOF
5299 #define $ac_tr_lib 1
5300 EOF
5301
5302   LIBS="-lm $LIBS"
5303
5304 else
5305   echo "$ac_t""no" 1>&6
5306 fi
5307
5308   for ac_func in nan copysignf
5309 do
5310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5311 echo "configure:5312: checking for $ac_func" >&5
5312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5313   echo $ac_n "(cached) $ac_c" 1>&6
5314 else
5315   cat > conftest.$ac_ext <<EOF
5316 #line 5317 "configure"
5317 #include "confdefs.h"
5318 /* System header to define __stub macros and hopefully few prototypes,
5319     which can conflict with char $ac_func(); below.  */
5320 #include <assert.h>
5321 /* Override any gcc2 internal prototype to avoid an error.  */
5322 /* We use char because int might match the return type of a gcc2
5323     builtin and then its argument prototype would still apply.  */
5324 char $ac_func();
5325
5326 int main() {
5327
5328 /* The GNU C library defines this for functions which it implements
5329     to always fail with ENOSYS.  Some functions are actually named
5330     something starting with __ and the normal name is an alias.  */
5331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5332 choke me
5333 #else
5334 $ac_func();
5335 #endif
5336
5337 ; return 0; }
5338 EOF
5339 if { (eval echo configure:5340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5340   rm -rf conftest*
5341   eval "ac_cv_func_$ac_func=yes"
5342 else
5343   echo "configure: failed program was:" >&5
5344   cat conftest.$ac_ext >&5
5345   rm -rf conftest*
5346   eval "ac_cv_func_$ac_func=no"
5347 fi
5348 rm -f conftest*
5349 fi
5350
5351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5352   echo "$ac_t""yes" 1>&6
5353     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5354   cat >> confdefs.h <<EOF
5355 #define $ac_tr_func 1
5356 EOF
5357  
5358 else
5359   echo "$ac_t""no" 1>&6
5360 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5361 fi
5362 done
5363
5364
5365     for ac_func in __signbit
5366 do
5367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5368 echo "configure:5369: checking for $ac_func" >&5
5369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5370   echo $ac_n "(cached) $ac_c" 1>&6
5371 else
5372   cat > conftest.$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5375 /* System header to define __stub macros and hopefully few prototypes,
5376     which can conflict with char $ac_func(); below.  */
5377 #include <assert.h>
5378 /* Override any gcc2 internal prototype to avoid an error.  */
5379 /* We use char because int might match the return type of a gcc2
5380     builtin and then its argument prototype would still apply.  */
5381 char $ac_func();
5382
5383 int main() {
5384
5385 /* The GNU C library defines this for functions which it implements
5386     to always fail with ENOSYS.  Some functions are actually named
5387     something starting with __ and the normal name is an alias.  */
5388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5389 choke me
5390 #else
5391 $ac_func();
5392 #endif
5393
5394 ; return 0; }
5395 EOF
5396 if { (eval echo configure:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5397   rm -rf conftest*
5398   eval "ac_cv_func_$ac_func=yes"
5399 else
5400   echo "configure: failed program was:" >&5
5401   cat conftest.$ac_ext >&5
5402   rm -rf conftest*
5403   eval "ac_cv_func_$ac_func=no"
5404 fi
5405 rm -f conftest*
5406 fi
5407
5408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5409   echo "$ac_t""yes" 1>&6
5410     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5411   cat >> confdefs.h <<EOF
5412 #define $ac_tr_func 1
5413 EOF
5414  
5415 else
5416   echo "$ac_t""no" 1>&6
5417 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5418 fi
5419 done
5420
5421   for ac_func in __signbitf
5422 do
5423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5424 echo "configure:5425: checking for $ac_func" >&5
5425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5426   echo $ac_n "(cached) $ac_c" 1>&6
5427 else
5428   cat > conftest.$ac_ext <<EOF
5429 #line 5430 "configure"
5430 #include "confdefs.h"
5431 /* System header to define __stub macros and hopefully few prototypes,
5432     which can conflict with char $ac_func(); below.  */
5433 #include <assert.h>
5434 /* Override any gcc2 internal prototype to avoid an error.  */
5435 /* We use char because int might match the return type of a gcc2
5436     builtin and then its argument prototype would still apply.  */
5437 char $ac_func();
5438
5439 int main() {
5440
5441 /* The GNU C library defines this for functions which it implements
5442     to always fail with ENOSYS.  Some functions are actually named
5443     something starting with __ and the normal name is an alias.  */
5444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5445 choke me
5446 #else
5447 $ac_func();
5448 #endif
5449
5450 ; return 0; }
5451 EOF
5452 if { (eval echo configure:5453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5453   rm -rf conftest*
5454   eval "ac_cv_func_$ac_func=yes"
5455 else
5456   echo "configure: failed program was:" >&5
5457   cat conftest.$ac_ext >&5
5458   rm -rf conftest*
5459   eval "ac_cv_func_$ac_func=no"
5460 fi
5461 rm -f conftest*
5462 fi
5463
5464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5465   echo "$ac_t""yes" 1>&6
5466     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5467   cat >> confdefs.h <<EOF
5468 #define $ac_tr_func 1
5469 EOF
5470  
5471 else
5472   echo "$ac_t""no" 1>&6
5473 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5474 fi
5475 done
5476
5477
5478           if test x$ac_cv_func_copysignl = x"yes"; then
5479     for ac_func in __signbitl
5480 do
5481 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5482 echo "configure:5483: checking for $ac_func" >&5
5483 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5484   echo $ac_n "(cached) $ac_c" 1>&6
5485 else
5486   cat > conftest.$ac_ext <<EOF
5487 #line 5488 "configure"
5488 #include "confdefs.h"
5489 /* System header to define __stub macros and hopefully few prototypes,
5490     which can conflict with char $ac_func(); below.  */
5491 #include <assert.h>
5492 /* Override any gcc2 internal prototype to avoid an error.  */
5493 /* We use char because int might match the return type of a gcc2
5494     builtin and then its argument prototype would still apply.  */
5495 char $ac_func();
5496
5497 int main() {
5498
5499 /* The GNU C library defines this for functions which it implements
5500     to always fail with ENOSYS.  Some functions are actually named
5501     something starting with __ and the normal name is an alias.  */
5502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5503 choke me
5504 #else
5505 $ac_func();
5506 #endif
5507
5508 ; return 0; }
5509 EOF
5510 if { (eval echo configure:5511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5511   rm -rf conftest*
5512   eval "ac_cv_func_$ac_func=yes"
5513 else
5514   echo "configure: failed program was:" >&5
5515   cat conftest.$ac_ext >&5
5516   rm -rf conftest*
5517   eval "ac_cv_func_$ac_func=no"
5518 fi
5519 rm -f conftest*
5520 fi
5521
5522 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5523   echo "$ac_t""yes" 1>&6
5524     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5525   cat >> confdefs.h <<EOF
5526 #define $ac_tr_func 1
5527 EOF
5528  
5529 else
5530   echo "$ac_t""no" 1>&6
5531 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5532 fi
5533 done
5534
5535   fi
5536
5537   
5538
5539       
5540
5541       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5542 echo "configure:5543: checking for mbstate_t" >&5
5543   cat > conftest.$ac_ext <<EOF
5544 #line 5545 "configure"
5545 #include "confdefs.h"
5546 #include <wchar.h>
5547 int main() {
5548 mbstate_t teststate;
5549 ; return 0; }
5550 EOF
5551 if { (eval echo configure:5552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5552   rm -rf conftest*
5553   have_mbstate_t=yes
5554 else
5555   echo "configure: failed program was:" >&5
5556   cat conftest.$ac_ext >&5
5557   rm -rf conftest*
5558   have_mbstate_t=no
5559 fi
5560 rm -f conftest*
5561   echo "$ac_t""$have_mbstate_t" 1>&6
5562   if test x"$have_mbstate_t" = xyes; then
5563     cat >> confdefs.h <<\EOF
5564 #define HAVE_MBSTATE_T 1
5565 EOF
5566
5567   fi
5568
5569     for ac_hdr in wchar.h
5570 do
5571 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5573 echo "configure:5574: checking for $ac_hdr" >&5
5574 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5575   echo $ac_n "(cached) $ac_c" 1>&6
5576 else
5577   cat > conftest.$ac_ext <<EOF
5578 #line 5579 "configure"
5579 #include "confdefs.h"
5580 #include <$ac_hdr>
5581 EOF
5582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5583 { (eval echo configure:5584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5585 if test -z "$ac_err"; then
5586   rm -rf conftest*
5587   eval "ac_cv_header_$ac_safe=yes"
5588 else
5589   echo "$ac_err" >&5
5590   echo "configure: failed program was:" >&5
5591   cat conftest.$ac_ext >&5
5592   rm -rf conftest*
5593   eval "ac_cv_header_$ac_safe=no"
5594 fi
5595 rm -f conftest*
5596 fi
5597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5598   echo "$ac_t""yes" 1>&6
5599     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5600   cat >> confdefs.h <<EOF
5601 #define $ac_tr_hdr 1
5602 EOF
5603  ac_has_wchar_h=yes
5604 else
5605   echo "$ac_t""no" 1>&6
5606 ac_has_wchar_h=no
5607 fi
5608 done
5609
5610   for ac_hdr in wctype.h
5611 do
5612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5614 echo "configure:5615: checking for $ac_hdr" >&5
5615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5616   echo $ac_n "(cached) $ac_c" 1>&6
5617 else
5618   cat > conftest.$ac_ext <<EOF
5619 #line 5620 "configure"
5620 #include "confdefs.h"
5621 #include <$ac_hdr>
5622 EOF
5623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5624 { (eval echo configure:5625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5626 if test -z "$ac_err"; then
5627   rm -rf conftest*
5628   eval "ac_cv_header_$ac_safe=yes"
5629 else
5630   echo "$ac_err" >&5
5631   echo "configure: failed program was:" >&5
5632   cat conftest.$ac_ext >&5
5633   rm -rf conftest*
5634   eval "ac_cv_header_$ac_safe=no"
5635 fi
5636 rm -f conftest*
5637 fi
5638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5639   echo "$ac_t""yes" 1>&6
5640     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5641   cat >> confdefs.h <<EOF
5642 #define $ac_tr_hdr 1
5643 EOF
5644  ac_has_wctype_h=yes
5645 else
5646   echo "$ac_t""no" 1>&6
5647 ac_has_wctype_h=no
5648 fi
5649 done
5650
5651   
5652     if test x"$ac_has_wchar_h" = xyes &&
5653      test x"$ac_has_wctype_h" = xyes &&
5654      test x"$enable_c_mbchar" != xno; then
5655       
5656             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5657 echo "configure:5658: checking for WCHAR_MIN and WCHAR_MAX" >&5
5658     cat > conftest.$ac_ext <<EOF
5659 #line 5660 "configure"
5660 #include "confdefs.h"
5661 #include <wchar.h>
5662 int main() {
5663 int i = WCHAR_MIN; int j = WCHAR_MAX;
5664 ; return 0; }
5665 EOF
5666 if { (eval echo configure:5667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5667   rm -rf conftest*
5668   has_wchar_minmax=yes
5669 else
5670   echo "configure: failed program was:" >&5
5671   cat conftest.$ac_ext >&5
5672   rm -rf conftest*
5673   has_wchar_minmax=no
5674 fi
5675 rm -f conftest*
5676     echo "$ac_t""$has_wchar_minmax" 1>&6
5677     
5678             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5679 echo "configure:5680: checking for WEOF" >&5
5680     cat > conftest.$ac_ext <<EOF
5681 #line 5682 "configure"
5682 #include "confdefs.h"
5683
5684       #include <wchar.h>
5685       #include <stddef.h>
5686 int main() {
5687 wint_t i = WEOF;
5688 ; return 0; }
5689 EOF
5690 if { (eval echo configure:5691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5691   rm -rf conftest*
5692   has_weof=yes
5693 else
5694   echo "configure: failed program was:" >&5
5695   cat conftest.$ac_ext >&5
5696   rm -rf conftest*
5697   has_weof=no
5698 fi
5699 rm -f conftest*
5700     echo "$ac_t""$has_weof" 1>&6
5701   
5702         ac_wfuncs=yes
5703     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5704 do
5705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5706 echo "configure:5707: checking for $ac_func" >&5
5707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5708   echo $ac_n "(cached) $ac_c" 1>&6
5709 else
5710   cat > conftest.$ac_ext <<EOF
5711 #line 5712 "configure"
5712 #include "confdefs.h"
5713 /* System header to define __stub macros and hopefully few prototypes,
5714     which can conflict with char $ac_func(); below.  */
5715 #include <assert.h>
5716 /* Override any gcc2 internal prototype to avoid an error.  */
5717 /* We use char because int might match the return type of a gcc2
5718     builtin and then its argument prototype would still apply.  */
5719 char $ac_func();
5720
5721 int main() {
5722
5723 /* The GNU C library defines this for functions which it implements
5724     to always fail with ENOSYS.  Some functions are actually named
5725     something starting with __ and the normal name is an alias.  */
5726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5727 choke me
5728 #else
5729 $ac_func();
5730 #endif
5731
5732 ; return 0; }
5733 EOF
5734 if { (eval echo configure:5735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5735   rm -rf conftest*
5736   eval "ac_cv_func_$ac_func=yes"
5737 else
5738   echo "configure: failed program was:" >&5
5739   cat conftest.$ac_ext >&5
5740   rm -rf conftest*
5741   eval "ac_cv_func_$ac_func=no"
5742 fi
5743 rm -f conftest*
5744 fi
5745
5746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5747   echo "$ac_t""yes" 1>&6
5748     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5749   cat >> confdefs.h <<EOF
5750 #define $ac_tr_func 1
5751 EOF
5752  
5753 else
5754   echo "$ac_t""no" 1>&6
5755 \
5756     ac_wfuncs=no
5757 fi
5758 done
5759
5760   
5761         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5762     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5763     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5764     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5765     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5766     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5767 do
5768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5769 echo "configure:5770: checking for $ac_func" >&5
5770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5771   echo $ac_n "(cached) $ac_c" 1>&6
5772 else
5773   cat > conftest.$ac_ext <<EOF
5774 #line 5775 "configure"
5775 #include "confdefs.h"
5776 /* System header to define __stub macros and hopefully few prototypes,
5777     which can conflict with char $ac_func(); below.  */
5778 #include <assert.h>
5779 /* Override any gcc2 internal prototype to avoid an error.  */
5780 /* We use char because int might match the return type of a gcc2
5781     builtin and then its argument prototype would still apply.  */
5782 char $ac_func();
5783
5784 int main() {
5785
5786 /* The GNU C library defines this for functions which it implements
5787     to always fail with ENOSYS.  Some functions are actually named
5788     something starting with __ and the normal name is an alias.  */
5789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5790 choke me
5791 #else
5792 $ac_func();
5793 #endif
5794
5795 ; return 0; }
5796 EOF
5797 if { (eval echo configure:5798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5798   rm -rf conftest*
5799   eval "ac_cv_func_$ac_func=yes"
5800 else
5801   echo "configure: failed program was:" >&5
5802   cat conftest.$ac_ext >&5
5803   rm -rf conftest*
5804   eval "ac_cv_func_$ac_func=no"
5805 fi
5806 rm -f conftest*
5807 fi
5808
5809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5810   echo "$ac_t""yes" 1>&6
5811     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5812   cat >> confdefs.h <<EOF
5813 #define $ac_tr_func 1
5814 EOF
5815  
5816 else
5817   echo "$ac_t""no" 1>&6
5818 \
5819     ac_wfuncs=no
5820 fi
5821 done
5822
5823
5824     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5825 echo "configure:5826: checking for ISO C99 wchar_t support" >&5
5826     if test x"$has_weof" = xyes &&
5827        test x"$has_wchar_minmax" = xyes &&
5828        test x"$ac_wfuncs" = xyes; then
5829       ac_isoC99_wchar_t=yes
5830     else
5831       ac_isoC99_wchar_t=no
5832     fi
5833     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5834   
5835             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5836 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5837 echo "configure:5838: checking for iconv.h" >&5
5838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5839   echo $ac_n "(cached) $ac_c" 1>&6
5840 else
5841   cat > conftest.$ac_ext <<EOF
5842 #line 5843 "configure"
5843 #include "confdefs.h"
5844 #include <iconv.h>
5845 EOF
5846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5847 { (eval echo configure:5848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5849 if test -z "$ac_err"; then
5850   rm -rf conftest*
5851   eval "ac_cv_header_$ac_safe=yes"
5852 else
5853   echo "$ac_err" >&5
5854   echo "configure: failed program was:" >&5
5855   cat conftest.$ac_ext >&5
5856   rm -rf conftest*
5857   eval "ac_cv_header_$ac_safe=no"
5858 fi
5859 rm -f conftest*
5860 fi
5861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5862   echo "$ac_t""yes" 1>&6
5863   ac_has_iconv_h=yes
5864 else
5865   echo "$ac_t""no" 1>&6
5866 ac_has_iconv_h=no
5867 fi
5868
5869     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5870 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5871 echo "configure:5872: checking for langinfo.h" >&5
5872 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5873   echo $ac_n "(cached) $ac_c" 1>&6
5874 else
5875   cat > conftest.$ac_ext <<EOF
5876 #line 5877 "configure"
5877 #include "confdefs.h"
5878 #include <langinfo.h>
5879 EOF
5880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5881 { (eval echo configure:5882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5883 if test -z "$ac_err"; then
5884   rm -rf conftest*
5885   eval "ac_cv_header_$ac_safe=yes"
5886 else
5887   echo "$ac_err" >&5
5888   echo "configure: failed program was:" >&5
5889   cat conftest.$ac_ext >&5
5890   rm -rf conftest*
5891   eval "ac_cv_header_$ac_safe=no"
5892 fi
5893 rm -f conftest*
5894 fi
5895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5896   echo "$ac_t""yes" 1>&6
5897   ac_has_langinfo_h=yes
5898 else
5899   echo "$ac_t""no" 1>&6
5900 ac_has_langinfo_h=no
5901 fi
5902
5903
5904         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5905 echo "configure:5906: checking for iconv in -liconv" >&5
5906 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5908   echo $ac_n "(cached) $ac_c" 1>&6
5909 else
5910   ac_save_LIBS="$LIBS"
5911 LIBS="-liconv  $LIBS"
5912 cat > conftest.$ac_ext <<EOF
5913 #line 5914 "configure"
5914 #include "confdefs.h"
5915 /* Override any gcc2 internal prototype to avoid an error.  */
5916 /* We use char because int might match the return type of a gcc2
5917     builtin and then its argument prototype would still apply.  */
5918 char iconv();
5919
5920 int main() {
5921 iconv()
5922 ; return 0; }
5923 EOF
5924 if { (eval echo configure:5925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5925   rm -rf conftest*
5926   eval "ac_cv_lib_$ac_lib_var=yes"
5927 else
5928   echo "configure: failed program was:" >&5
5929   cat conftest.$ac_ext >&5
5930   rm -rf conftest*
5931   eval "ac_cv_lib_$ac_lib_var=no"
5932 fi
5933 rm -f conftest*
5934 LIBS="$ac_save_LIBS"
5935
5936 fi
5937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5938   echo "$ac_t""yes" 1>&6
5939   libiconv="-liconv"
5940 else
5941   echo "$ac_t""no" 1>&6
5942 fi
5943
5944     ac_save_LIBS="$LIBS"
5945     LIBS="$LIBS $libiconv"
5946
5947     for ac_func in iconv_open iconv_close iconv nl_langinfo
5948 do
5949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5950 echo "configure:5951: checking for $ac_func" >&5
5951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5952   echo $ac_n "(cached) $ac_c" 1>&6
5953 else
5954   cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure"
5956 #include "confdefs.h"
5957 /* System header to define __stub macros and hopefully few prototypes,
5958     which can conflict with char $ac_func(); below.  */
5959 #include <assert.h>
5960 /* Override any gcc2 internal prototype to avoid an error.  */
5961 /* We use char because int might match the return type of a gcc2
5962     builtin and then its argument prototype would still apply.  */
5963 char $ac_func();
5964
5965 int main() {
5966
5967 /* The GNU C library defines this for functions which it implements
5968     to always fail with ENOSYS.  Some functions are actually named
5969     something starting with __ and the normal name is an alias.  */
5970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5971 choke me
5972 #else
5973 $ac_func();
5974 #endif
5975
5976 ; return 0; }
5977 EOF
5978 if { (eval echo configure:5979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5979   rm -rf conftest*
5980   eval "ac_cv_func_$ac_func=yes"
5981 else
5982   echo "configure: failed program was:" >&5
5983   cat conftest.$ac_ext >&5
5984   rm -rf conftest*
5985   eval "ac_cv_func_$ac_func=no"
5986 fi
5987 rm -f conftest*
5988 fi
5989
5990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5991   echo "$ac_t""yes" 1>&6
5992     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5993   cat >> confdefs.h <<EOF
5994 #define $ac_tr_func 1
5995 EOF
5996  \
5997     ac_XPG2funcs=yes
5998 else
5999   echo "$ac_t""no" 1>&6
6000 ac_XPG2funcs=no
6001 fi
6002 done
6003
6004   
6005     LIBS="$ac_save_LIBS"
6006
6007     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6008 echo "configure:6009: checking for XPG2 wchar_t support" >&5
6009     if test x"$ac_has_iconv_h" = xyes &&
6010        test x"$ac_has_langinfo_h" = xyes &&
6011        test x"$ac_XPG2funcs" = xyes; then
6012       ac_XPG2_wchar_t=yes
6013     else
6014       ac_XPG2_wchar_t=no
6015     fi
6016     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6017   
6018             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6019 echo "configure:6020: checking for enabled wchar_t specializations" >&5
6020     if test x"$ac_isoC99_wchar_t" = xyes &&
6021        test x"$ac_XPG2_wchar_t" = xyes; then
6022       cat >> confdefs.h <<\EOF
6023 #define _GLIBCPP_USE_WCHAR_T 1
6024 EOF
6025
6026       echo "$ac_t"""yes"" 1>&6
6027     else
6028       echo "$ac_t"""no"" 1>&6
6029     fi
6030   else
6031         echo "configure: warning: wchar_t support disabled." 1>&2
6032   fi
6033
6034       os_include_dir="os/hpux"
6035       cat >> confdefs.h <<\EOF
6036 #define HAVE_COPYSIGN 1
6037 EOF
6038
6039       cat >> confdefs.h <<\EOF
6040 #define HAVE_COPYSIGNF 1
6041 EOF
6042
6043       cat >> confdefs.h <<\EOF
6044 #define HAVE_FREXPF 1
6045 EOF
6046
6047       cat >> confdefs.h <<\EOF
6048 #define HAVE_HYPOT 1
6049 EOF
6050
6051       case "$target_alias" in
6052         *-hpux10*)
6053           cat >> confdefs.h <<\EOF
6054 #define HAVE_FINITE 1
6055 EOF
6056
6057           cat >> confdefs.h <<\EOF
6058 #define HAVE_FINITEF 1
6059 EOF
6060
6061           cat >> confdefs.h <<\EOF
6062 #define HAVE_ISINF 1
6063 EOF
6064
6065           cat >> confdefs.h <<\EOF
6066 #define HAVE_ISINFF 1
6067 EOF
6068
6069           cat >> confdefs.h <<\EOF
6070 #define HAVE_ISNAN 1
6071 EOF
6072
6073           cat >> confdefs.h <<\EOF
6074 #define HAVE_ISNANF 1
6075 EOF
6076
6077           ;;
6078       esac
6079
6080       ;;
6081     *-netbsd*)
6082       # Check for available headers.
6083       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6084         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6085         fp.h locale.h float.h inttypes.h
6086 do
6087 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6089 echo "configure:6090: checking for $ac_hdr" >&5
6090 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6091   echo $ac_n "(cached) $ac_c" 1>&6
6092 else
6093   cat > conftest.$ac_ext <<EOF
6094 #line 6095 "configure"
6095 #include "confdefs.h"
6096 #include <$ac_hdr>
6097 EOF
6098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6099 { (eval echo configure:6100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6100 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6101 if test -z "$ac_err"; then
6102   rm -rf conftest*
6103   eval "ac_cv_header_$ac_safe=yes"
6104 else
6105   echo "$ac_err" >&5
6106   echo "configure: failed program was:" >&5
6107   cat conftest.$ac_ext >&5
6108   rm -rf conftest*
6109   eval "ac_cv_header_$ac_safe=no"
6110 fi
6111 rm -f conftest*
6112 fi
6113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6114   echo "$ac_t""yes" 1>&6
6115     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6116   cat >> confdefs.h <<EOF
6117 #define $ac_tr_hdr 1
6118 EOF
6119  
6120 else
6121   echo "$ac_t""no" 1>&6
6122 fi
6123 done
6124
6125       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6126        
6127       
6128   # If we're not using GNU ld, then there's no point in even trying these
6129   # tests.  Check for that first.  We should have already tested for gld
6130   # by now (in libtool), but require it now just to be safe...
6131   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6132   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6133   
6134
6135   # The name set by libtool depends on the version of libtool.  Shame on us
6136   # for depending on an impl detail, but c'est la vie.  Older versions used
6137   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6138   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6139   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6140   # set (hence we're using an older libtool), then set it.
6141   if test x${with_gnu_ld+set} != xset; then
6142     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6143       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6144       with_gnu_ld=no
6145     else
6146       with_gnu_ld=$ac_cv_prog_gnu_ld
6147     fi
6148   fi
6149
6150   # Start by getting the version number.  I think the libtool test already
6151   # does some of this, but throws away the result.
6152   
6153   ldver=`$LD --version 2>/dev/null | head -1 | \
6154          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6155   
6156   glibcpp_gnu_ld_version=`echo $ldver | \
6157          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6158
6159   # Set --gc-sections.
6160   if test "$with_gnu_ld" = "notbroken"; then
6161     # GNU ld it is!  Joy and bunny rabbits!
6162
6163     # All these tests are for C++; save the language and the compiler flags.
6164     # Need to do this so that g++ won't try to link in libstdc++
6165     ac_test_CFLAGS="${CFLAGS+set}"
6166     ac_save_CFLAGS="$CFLAGS"
6167     CFLAGS='-x c++  -Wl,--gc-sections'
6168
6169     # Check for -Wl,--gc-sections
6170     # XXX This test is broken at the moment, as symbols required for
6171     # linking are now in libsupc++ (not built yet.....). In addition, 
6172     # this test has cored on solaris in the past. In addition,
6173     # --gc-sections doesn't really work at the moment (keeps on discarding
6174     # used sections, first .eh_frame and now some of the glibc sections for
6175     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6176     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6177 echo "configure:6178: checking for ld that supports -Wl,--gc-sections" >&5
6178     if test "$cross_compiling" = yes; then
6179   ac_sectionLDflags=yes
6180 else
6181   cat > conftest.$ac_ext <<EOF
6182 #line 6183 "configure"
6183 #include "confdefs.h"
6184
6185      int main(void) 
6186      {
6187        try { throw 1; }
6188        catch (...) { };
6189        return 0;
6190      }
6191     
6192 EOF
6193 if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6194 then
6195   ac_sectionLDflags=yes
6196 else
6197   echo "configure: failed program was:" >&5
6198   cat conftest.$ac_ext >&5
6199   rm -fr conftest*
6200   ac_sectionLDflags=no
6201 fi
6202 rm -fr conftest*
6203 fi
6204
6205     if test "$ac_test_CFLAGS" = set; then
6206       CFLAGS="$ac_save_CFLAGS"
6207     else
6208       # this is the suspicious part
6209       CFLAGS=''
6210     fi
6211     if test "$ac_sectionLDflags" = "yes"; then
6212       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6213     fi
6214     echo "$ac_t""$ac_sectionLDflags" 1>&6
6215   fi
6216
6217   # Set linker optimization flags.
6218   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6219     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6220   fi
6221
6222   
6223   
6224
6225       
6226     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6227 echo "configure:6228: checking for main in -lm" >&5
6228 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6230   echo $ac_n "(cached) $ac_c" 1>&6
6231 else
6232   ac_save_LIBS="$LIBS"
6233 LIBS="-lm  $LIBS"
6234 cat > conftest.$ac_ext <<EOF
6235 #line 6236 "configure"
6236 #include "confdefs.h"
6237
6238 int main() {
6239 main()
6240 ; return 0; }
6241 EOF
6242 if { (eval echo configure:6243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6243   rm -rf conftest*
6244   eval "ac_cv_lib_$ac_lib_var=yes"
6245 else
6246   echo "configure: failed program was:" >&5
6247   cat conftest.$ac_ext >&5
6248   rm -rf conftest*
6249   eval "ac_cv_lib_$ac_lib_var=no"
6250 fi
6251 rm -f conftest*
6252 LIBS="$ac_save_LIBS"
6253
6254 fi
6255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6256   echo "$ac_t""yes" 1>&6
6257     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6258     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6259   cat >> confdefs.h <<EOF
6260 #define $ac_tr_lib 1
6261 EOF
6262
6263   LIBS="-lm $LIBS"
6264
6265 else
6266   echo "$ac_t""no" 1>&6
6267 fi
6268
6269   for ac_func in nan copysignf
6270 do
6271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6272 echo "configure:6273: checking for $ac_func" >&5
6273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6274   echo $ac_n "(cached) $ac_c" 1>&6
6275 else
6276   cat > conftest.$ac_ext <<EOF
6277 #line 6278 "configure"
6278 #include "confdefs.h"
6279 /* System header to define __stub macros and hopefully few prototypes,
6280     which can conflict with char $ac_func(); below.  */
6281 #include <assert.h>
6282 /* Override any gcc2 internal prototype to avoid an error.  */
6283 /* We use char because int might match the return type of a gcc2
6284     builtin and then its argument prototype would still apply.  */
6285 char $ac_func();
6286
6287 int main() {
6288
6289 /* The GNU C library defines this for functions which it implements
6290     to always fail with ENOSYS.  Some functions are actually named
6291     something starting with __ and the normal name is an alias.  */
6292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6293 choke me
6294 #else
6295 $ac_func();
6296 #endif
6297
6298 ; return 0; }
6299 EOF
6300 if { (eval echo configure:6301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6301   rm -rf conftest*
6302   eval "ac_cv_func_$ac_func=yes"
6303 else
6304   echo "configure: failed program was:" >&5
6305   cat conftest.$ac_ext >&5
6306   rm -rf conftest*
6307   eval "ac_cv_func_$ac_func=no"
6308 fi
6309 rm -f conftest*
6310 fi
6311
6312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6313   echo "$ac_t""yes" 1>&6
6314     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6315   cat >> confdefs.h <<EOF
6316 #define $ac_tr_func 1
6317 EOF
6318  
6319 else
6320   echo "$ac_t""no" 1>&6
6321 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6322 fi
6323 done
6324
6325
6326     for ac_func in __signbit
6327 do
6328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6329 echo "configure:6330: checking for $ac_func" >&5
6330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6331   echo $ac_n "(cached) $ac_c" 1>&6
6332 else
6333   cat > conftest.$ac_ext <<EOF
6334 #line 6335 "configure"
6335 #include "confdefs.h"
6336 /* System header to define __stub macros and hopefully few prototypes,
6337     which can conflict with char $ac_func(); below.  */
6338 #include <assert.h>
6339 /* Override any gcc2 internal prototype to avoid an error.  */
6340 /* We use char because int might match the return type of a gcc2
6341     builtin and then its argument prototype would still apply.  */
6342 char $ac_func();
6343
6344 int main() {
6345
6346 /* The GNU C library defines this for functions which it implements
6347     to always fail with ENOSYS.  Some functions are actually named
6348     something starting with __ and the normal name is an alias.  */
6349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6350 choke me
6351 #else
6352 $ac_func();
6353 #endif
6354
6355 ; return 0; }
6356 EOF
6357 if { (eval echo configure:6358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6358   rm -rf conftest*
6359   eval "ac_cv_func_$ac_func=yes"
6360 else
6361   echo "configure: failed program was:" >&5
6362   cat conftest.$ac_ext >&5
6363   rm -rf conftest*
6364   eval "ac_cv_func_$ac_func=no"
6365 fi
6366 rm -f conftest*
6367 fi
6368
6369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6370   echo "$ac_t""yes" 1>&6
6371     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6372   cat >> confdefs.h <<EOF
6373 #define $ac_tr_func 1
6374 EOF
6375  
6376 else
6377   echo "$ac_t""no" 1>&6
6378 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6379 fi
6380 done
6381
6382   for ac_func in __signbitf
6383 do
6384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6385 echo "configure:6386: checking for $ac_func" >&5
6386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6387   echo $ac_n "(cached) $ac_c" 1>&6
6388 else
6389   cat > conftest.$ac_ext <<EOF
6390 #line 6391 "configure"
6391 #include "confdefs.h"
6392 /* System header to define __stub macros and hopefully few prototypes,
6393     which can conflict with char $ac_func(); below.  */
6394 #include <assert.h>
6395 /* Override any gcc2 internal prototype to avoid an error.  */
6396 /* We use char because int might match the return type of a gcc2
6397     builtin and then its argument prototype would still apply.  */
6398 char $ac_func();
6399
6400 int main() {
6401
6402 /* The GNU C library defines this for functions which it implements
6403     to always fail with ENOSYS.  Some functions are actually named
6404     something starting with __ and the normal name is an alias.  */
6405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6406 choke me
6407 #else
6408 $ac_func();
6409 #endif
6410
6411 ; return 0; }
6412 EOF
6413 if { (eval echo configure:6414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6414   rm -rf conftest*
6415   eval "ac_cv_func_$ac_func=yes"
6416 else
6417   echo "configure: failed program was:" >&5
6418   cat conftest.$ac_ext >&5
6419   rm -rf conftest*
6420   eval "ac_cv_func_$ac_func=no"
6421 fi
6422 rm -f conftest*
6423 fi
6424
6425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6426   echo "$ac_t""yes" 1>&6
6427     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6428   cat >> confdefs.h <<EOF
6429 #define $ac_tr_func 1
6430 EOF
6431  
6432 else
6433   echo "$ac_t""no" 1>&6
6434 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6435 fi
6436 done
6437
6438
6439           if test x$ac_cv_func_copysignl = x"yes"; then
6440     for ac_func in __signbitl
6441 do
6442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6443 echo "configure:6444: checking for $ac_func" >&5
6444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6445   echo $ac_n "(cached) $ac_c" 1>&6
6446 else
6447   cat > conftest.$ac_ext <<EOF
6448 #line 6449 "configure"
6449 #include "confdefs.h"
6450 /* System header to define __stub macros and hopefully few prototypes,
6451     which can conflict with char $ac_func(); below.  */
6452 #include <assert.h>
6453 /* Override any gcc2 internal prototype to avoid an error.  */
6454 /* We use char because int might match the return type of a gcc2
6455     builtin and then its argument prototype would still apply.  */
6456 char $ac_func();
6457
6458 int main() {
6459
6460 /* The GNU C library defines this for functions which it implements
6461     to always fail with ENOSYS.  Some functions are actually named
6462     something starting with __ and the normal name is an alias.  */
6463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6464 choke me
6465 #else
6466 $ac_func();
6467 #endif
6468
6469 ; return 0; }
6470 EOF
6471 if { (eval echo configure:6472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6472   rm -rf conftest*
6473   eval "ac_cv_func_$ac_func=yes"
6474 else
6475   echo "configure: failed program was:" >&5
6476   cat conftest.$ac_ext >&5
6477   rm -rf conftest*
6478   eval "ac_cv_func_$ac_func=no"
6479 fi
6480 rm -f conftest*
6481 fi
6482
6483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6484   echo "$ac_t""yes" 1>&6
6485     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6486   cat >> confdefs.h <<EOF
6487 #define $ac_tr_func 1
6488 EOF
6489  
6490 else
6491   echo "$ac_t""no" 1>&6
6492 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6493 fi
6494 done
6495
6496   fi
6497
6498   
6499
6500       
6501
6502       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6503 echo "configure:6504: checking for mbstate_t" >&5
6504   cat > conftest.$ac_ext <<EOF
6505 #line 6506 "configure"
6506 #include "confdefs.h"
6507 #include <wchar.h>
6508 int main() {
6509 mbstate_t teststate;
6510 ; return 0; }
6511 EOF
6512 if { (eval echo configure:6513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6513   rm -rf conftest*
6514   have_mbstate_t=yes
6515 else
6516   echo "configure: failed program was:" >&5
6517   cat conftest.$ac_ext >&5
6518   rm -rf conftest*
6519   have_mbstate_t=no
6520 fi
6521 rm -f conftest*
6522   echo "$ac_t""$have_mbstate_t" 1>&6
6523   if test x"$have_mbstate_t" = xyes; then
6524     cat >> confdefs.h <<\EOF
6525 #define HAVE_MBSTATE_T 1
6526 EOF
6527
6528   fi
6529
6530     for ac_hdr in wchar.h
6531 do
6532 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6534 echo "configure:6535: checking for $ac_hdr" >&5
6535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6536   echo $ac_n "(cached) $ac_c" 1>&6
6537 else
6538   cat > conftest.$ac_ext <<EOF
6539 #line 6540 "configure"
6540 #include "confdefs.h"
6541 #include <$ac_hdr>
6542 EOF
6543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6544 { (eval echo configure:6545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6546 if test -z "$ac_err"; then
6547   rm -rf conftest*
6548   eval "ac_cv_header_$ac_safe=yes"
6549 else
6550   echo "$ac_err" >&5
6551   echo "configure: failed program was:" >&5
6552   cat conftest.$ac_ext >&5
6553   rm -rf conftest*
6554   eval "ac_cv_header_$ac_safe=no"
6555 fi
6556 rm -f conftest*
6557 fi
6558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6559   echo "$ac_t""yes" 1>&6
6560     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6561   cat >> confdefs.h <<EOF
6562 #define $ac_tr_hdr 1
6563 EOF
6564  ac_has_wchar_h=yes
6565 else
6566   echo "$ac_t""no" 1>&6
6567 ac_has_wchar_h=no
6568 fi
6569 done
6570
6571   for ac_hdr in wctype.h
6572 do
6573 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6574 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6575 echo "configure:6576: checking for $ac_hdr" >&5
6576 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6577   echo $ac_n "(cached) $ac_c" 1>&6
6578 else
6579   cat > conftest.$ac_ext <<EOF
6580 #line 6581 "configure"
6581 #include "confdefs.h"
6582 #include <$ac_hdr>
6583 EOF
6584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6585 { (eval echo configure:6586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6587 if test -z "$ac_err"; then
6588   rm -rf conftest*
6589   eval "ac_cv_header_$ac_safe=yes"
6590 else
6591   echo "$ac_err" >&5
6592   echo "configure: failed program was:" >&5
6593   cat conftest.$ac_ext >&5
6594   rm -rf conftest*
6595   eval "ac_cv_header_$ac_safe=no"
6596 fi
6597 rm -f conftest*
6598 fi
6599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6600   echo "$ac_t""yes" 1>&6
6601     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6602   cat >> confdefs.h <<EOF
6603 #define $ac_tr_hdr 1
6604 EOF
6605  ac_has_wctype_h=yes
6606 else
6607   echo "$ac_t""no" 1>&6
6608 ac_has_wctype_h=no
6609 fi
6610 done
6611
6612   
6613     if test x"$ac_has_wchar_h" = xyes &&
6614      test x"$ac_has_wctype_h" = xyes &&
6615      test x"$enable_c_mbchar" != xno; then
6616       
6617             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6618 echo "configure:6619: checking for WCHAR_MIN and WCHAR_MAX" >&5
6619     cat > conftest.$ac_ext <<EOF
6620 #line 6621 "configure"
6621 #include "confdefs.h"
6622 #include <wchar.h>
6623 int main() {
6624 int i = WCHAR_MIN; int j = WCHAR_MAX;
6625 ; return 0; }
6626 EOF
6627 if { (eval echo configure:6628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6628   rm -rf conftest*
6629   has_wchar_minmax=yes
6630 else
6631   echo "configure: failed program was:" >&5
6632   cat conftest.$ac_ext >&5
6633   rm -rf conftest*
6634   has_wchar_minmax=no
6635 fi
6636 rm -f conftest*
6637     echo "$ac_t""$has_wchar_minmax" 1>&6
6638     
6639             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6640 echo "configure:6641: checking for WEOF" >&5
6641     cat > conftest.$ac_ext <<EOF
6642 #line 6643 "configure"
6643 #include "confdefs.h"
6644
6645       #include <wchar.h>
6646       #include <stddef.h>
6647 int main() {
6648 wint_t i = WEOF;
6649 ; return 0; }
6650 EOF
6651 if { (eval echo configure:6652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6652   rm -rf conftest*
6653   has_weof=yes
6654 else
6655   echo "configure: failed program was:" >&5
6656   cat conftest.$ac_ext >&5
6657   rm -rf conftest*
6658   has_weof=no
6659 fi
6660 rm -f conftest*
6661     echo "$ac_t""$has_weof" 1>&6
6662   
6663         ac_wfuncs=yes
6664     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6665 do
6666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6667 echo "configure:6668: checking for $ac_func" >&5
6668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6669   echo $ac_n "(cached) $ac_c" 1>&6
6670 else
6671   cat > conftest.$ac_ext <<EOF
6672 #line 6673 "configure"
6673 #include "confdefs.h"
6674 /* System header to define __stub macros and hopefully few prototypes,
6675     which can conflict with char $ac_func(); below.  */
6676 #include <assert.h>
6677 /* Override any gcc2 internal prototype to avoid an error.  */
6678 /* We use char because int might match the return type of a gcc2
6679     builtin and then its argument prototype would still apply.  */
6680 char $ac_func();
6681
6682 int main() {
6683
6684 /* The GNU C library defines this for functions which it implements
6685     to always fail with ENOSYS.  Some functions are actually named
6686     something starting with __ and the normal name is an alias.  */
6687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6688 choke me
6689 #else
6690 $ac_func();
6691 #endif
6692
6693 ; return 0; }
6694 EOF
6695 if { (eval echo configure:6696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6696   rm -rf conftest*
6697   eval "ac_cv_func_$ac_func=yes"
6698 else
6699   echo "configure: failed program was:" >&5
6700   cat conftest.$ac_ext >&5
6701   rm -rf conftest*
6702   eval "ac_cv_func_$ac_func=no"
6703 fi
6704 rm -f conftest*
6705 fi
6706
6707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6708   echo "$ac_t""yes" 1>&6
6709     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6710   cat >> confdefs.h <<EOF
6711 #define $ac_tr_func 1
6712 EOF
6713  
6714 else
6715   echo "$ac_t""no" 1>&6
6716 \
6717     ac_wfuncs=no
6718 fi
6719 done
6720
6721   
6722         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6723     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6724     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6725     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6726     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6727     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6728 do
6729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6730 echo "configure:6731: checking for $ac_func" >&5
6731 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6732   echo $ac_n "(cached) $ac_c" 1>&6
6733 else
6734   cat > conftest.$ac_ext <<EOF
6735 #line 6736 "configure"
6736 #include "confdefs.h"
6737 /* System header to define __stub macros and hopefully few prototypes,
6738     which can conflict with char $ac_func(); below.  */
6739 #include <assert.h>
6740 /* Override any gcc2 internal prototype to avoid an error.  */
6741 /* We use char because int might match the return type of a gcc2
6742     builtin and then its argument prototype would still apply.  */
6743 char $ac_func();
6744
6745 int main() {
6746
6747 /* The GNU C library defines this for functions which it implements
6748     to always fail with ENOSYS.  Some functions are actually named
6749     something starting with __ and the normal name is an alias.  */
6750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6751 choke me
6752 #else
6753 $ac_func();
6754 #endif
6755
6756 ; return 0; }
6757 EOF
6758 if { (eval echo configure:6759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6759   rm -rf conftest*
6760   eval "ac_cv_func_$ac_func=yes"
6761 else
6762   echo "configure: failed program was:" >&5
6763   cat conftest.$ac_ext >&5
6764   rm -rf conftest*
6765   eval "ac_cv_func_$ac_func=no"
6766 fi
6767 rm -f conftest*
6768 fi
6769
6770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6771   echo "$ac_t""yes" 1>&6
6772     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6773   cat >> confdefs.h <<EOF
6774 #define $ac_tr_func 1
6775 EOF
6776  
6777 else
6778   echo "$ac_t""no" 1>&6
6779 \
6780     ac_wfuncs=no
6781 fi
6782 done
6783
6784
6785     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6786 echo "configure:6787: checking for ISO C99 wchar_t support" >&5
6787     if test x"$has_weof" = xyes &&
6788        test x"$has_wchar_minmax" = xyes &&
6789        test x"$ac_wfuncs" = xyes; then
6790       ac_isoC99_wchar_t=yes
6791     else
6792       ac_isoC99_wchar_t=no
6793     fi
6794     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6795   
6796             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6797 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6798 echo "configure:6799: checking for iconv.h" >&5
6799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6800   echo $ac_n "(cached) $ac_c" 1>&6
6801 else
6802   cat > conftest.$ac_ext <<EOF
6803 #line 6804 "configure"
6804 #include "confdefs.h"
6805 #include <iconv.h>
6806 EOF
6807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6808 { (eval echo configure:6809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6810 if test -z "$ac_err"; then
6811   rm -rf conftest*
6812   eval "ac_cv_header_$ac_safe=yes"
6813 else
6814   echo "$ac_err" >&5
6815   echo "configure: failed program was:" >&5
6816   cat conftest.$ac_ext >&5
6817   rm -rf conftest*
6818   eval "ac_cv_header_$ac_safe=no"
6819 fi
6820 rm -f conftest*
6821 fi
6822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6823   echo "$ac_t""yes" 1>&6
6824   ac_has_iconv_h=yes
6825 else
6826   echo "$ac_t""no" 1>&6
6827 ac_has_iconv_h=no
6828 fi
6829
6830     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6831 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6832 echo "configure:6833: checking for langinfo.h" >&5
6833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6834   echo $ac_n "(cached) $ac_c" 1>&6
6835 else
6836   cat > conftest.$ac_ext <<EOF
6837 #line 6838 "configure"
6838 #include "confdefs.h"
6839 #include <langinfo.h>
6840 EOF
6841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6842 { (eval echo configure:6843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6844 if test -z "$ac_err"; then
6845   rm -rf conftest*
6846   eval "ac_cv_header_$ac_safe=yes"
6847 else
6848   echo "$ac_err" >&5
6849   echo "configure: failed program was:" >&5
6850   cat conftest.$ac_ext >&5
6851   rm -rf conftest*
6852   eval "ac_cv_header_$ac_safe=no"
6853 fi
6854 rm -f conftest*
6855 fi
6856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6857   echo "$ac_t""yes" 1>&6
6858   ac_has_langinfo_h=yes
6859 else
6860   echo "$ac_t""no" 1>&6
6861 ac_has_langinfo_h=no
6862 fi
6863
6864
6865         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6866 echo "configure:6867: checking for iconv in -liconv" >&5
6867 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6869   echo $ac_n "(cached) $ac_c" 1>&6
6870 else
6871   ac_save_LIBS="$LIBS"
6872 LIBS="-liconv  $LIBS"
6873 cat > conftest.$ac_ext <<EOF
6874 #line 6875 "configure"
6875 #include "confdefs.h"
6876 /* Override any gcc2 internal prototype to avoid an error.  */
6877 /* We use char because int might match the return type of a gcc2
6878     builtin and then its argument prototype would still apply.  */
6879 char iconv();
6880
6881 int main() {
6882 iconv()
6883 ; return 0; }
6884 EOF
6885 if { (eval echo configure:6886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6886   rm -rf conftest*
6887   eval "ac_cv_lib_$ac_lib_var=yes"
6888 else
6889   echo "configure: failed program was:" >&5
6890   cat conftest.$ac_ext >&5
6891   rm -rf conftest*
6892   eval "ac_cv_lib_$ac_lib_var=no"
6893 fi
6894 rm -f conftest*
6895 LIBS="$ac_save_LIBS"
6896
6897 fi
6898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6899   echo "$ac_t""yes" 1>&6
6900   libiconv="-liconv"
6901 else
6902   echo "$ac_t""no" 1>&6
6903 fi
6904
6905     ac_save_LIBS="$LIBS"
6906     LIBS="$LIBS $libiconv"
6907
6908     for ac_func in iconv_open iconv_close iconv nl_langinfo
6909 do
6910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6911 echo "configure:6912: checking for $ac_func" >&5
6912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6913   echo $ac_n "(cached) $ac_c" 1>&6
6914 else
6915   cat > conftest.$ac_ext <<EOF
6916 #line 6917 "configure"
6917 #include "confdefs.h"
6918 /* System header to define __stub macros and hopefully few prototypes,
6919     which can conflict with char $ac_func(); below.  */
6920 #include <assert.h>
6921 /* Override any gcc2 internal prototype to avoid an error.  */
6922 /* We use char because int might match the return type of a gcc2
6923     builtin and then its argument prototype would still apply.  */
6924 char $ac_func();
6925
6926 int main() {
6927
6928 /* The GNU C library defines this for functions which it implements
6929     to always fail with ENOSYS.  Some functions are actually named
6930     something starting with __ and the normal name is an alias.  */
6931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6932 choke me
6933 #else
6934 $ac_func();
6935 #endif
6936
6937 ; return 0; }
6938 EOF
6939 if { (eval echo configure:6940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6940   rm -rf conftest*
6941   eval "ac_cv_func_$ac_func=yes"
6942 else
6943   echo "configure: failed program was:" >&5
6944   cat conftest.$ac_ext >&5
6945   rm -rf conftest*
6946   eval "ac_cv_func_$ac_func=no"
6947 fi
6948 rm -f conftest*
6949 fi
6950
6951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6952   echo "$ac_t""yes" 1>&6
6953     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6954   cat >> confdefs.h <<EOF
6955 #define $ac_tr_func 1
6956 EOF
6957  \
6958     ac_XPG2funcs=yes
6959 else
6960   echo "$ac_t""no" 1>&6
6961 ac_XPG2funcs=no
6962 fi
6963 done
6964
6965   
6966     LIBS="$ac_save_LIBS"
6967
6968     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6969 echo "configure:6970: checking for XPG2 wchar_t support" >&5
6970     if test x"$ac_has_iconv_h" = xyes &&
6971        test x"$ac_has_langinfo_h" = xyes &&
6972        test x"$ac_XPG2funcs" = xyes; then
6973       ac_XPG2_wchar_t=yes
6974     else
6975       ac_XPG2_wchar_t=no
6976     fi
6977     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6978   
6979             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6980 echo "configure:6981: checking for enabled wchar_t specializations" >&5
6981     if test x"$ac_isoC99_wchar_t" = xyes &&
6982        test x"$ac_XPG2_wchar_t" = xyes; then
6983       cat >> confdefs.h <<\EOF
6984 #define _GLIBCPP_USE_WCHAR_T 1
6985 EOF
6986
6987       echo "$ac_t"""yes"" 1>&6
6988     else
6989       echo "$ac_t"""no"" 1>&6
6990     fi
6991   else
6992         echo "configure: warning: wchar_t support disabled." 1>&2
6993   fi
6994
6995       os_include_dir="os/bsd/netbsd"
6996       cat >> confdefs.h <<\EOF
6997 #define HAVE_COPYSIGN 1
6998 EOF
6999
7000       cat >> confdefs.h <<\EOF
7001 #define HAVE_COPYSIGNF 1
7002 EOF
7003
7004       cat >> confdefs.h <<\EOF
7005 #define HAVE_FINITEF 1
7006 EOF
7007
7008       cat >> confdefs.h <<\EOF
7009 #define HAVE_FINITE 1
7010 EOF
7011
7012       cat >> confdefs.h <<\EOF
7013 #define HAVE_FREXPF 1
7014 EOF
7015
7016       cat >> confdefs.h <<\EOF
7017 #define HAVE_HYPOTF 1
7018 EOF
7019
7020       cat >> confdefs.h <<\EOF
7021 #define HAVE_ISINF 1
7022 EOF
7023
7024       cat >> confdefs.h <<\EOF
7025 #define HAVE_ISINFF 1
7026 EOF
7027
7028       cat >> confdefs.h <<\EOF
7029 #define HAVE_ISNAN 1
7030 EOF
7031
7032       cat >> confdefs.h <<\EOF
7033 #define HAVE_ISNANF 1
7034 EOF
7035
7036       if test x"long_double_math_on_this_cpu" = x"yes"; then
7037         cat >> confdefs.h <<\EOF
7038 #define HAVE_FINITEL 1
7039 EOF
7040
7041         cat >> confdefs.h <<\EOF
7042 #define HAVE_ISINFL 1
7043 EOF
7044
7045         cat >> confdefs.h <<\EOF
7046 #define HAVE_ISNANL 1
7047 EOF
7048
7049       fi
7050       ;;
7051     *-mingw32*)
7052       for ac_hdr in sys/types.h locale.h float.h
7053 do
7054 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7055 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7056 echo "configure:7057: checking for $ac_hdr" >&5
7057 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7058   echo $ac_n "(cached) $ac_c" 1>&6
7059 else
7060   cat > conftest.$ac_ext <<EOF
7061 #line 7062 "configure"
7062 #include "confdefs.h"
7063 #include <$ac_hdr>
7064 EOF
7065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7066 { (eval echo configure:7067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7068 if test -z "$ac_err"; then
7069   rm -rf conftest*
7070   eval "ac_cv_header_$ac_safe=yes"
7071 else
7072   echo "$ac_err" >&5
7073   echo "configure: failed program was:" >&5
7074   cat conftest.$ac_ext >&5
7075   rm -rf conftest*
7076   eval "ac_cv_header_$ac_safe=no"
7077 fi
7078 rm -f conftest*
7079 fi
7080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7081   echo "$ac_t""yes" 1>&6
7082     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7083   cat >> confdefs.h <<EOF
7084 #define $ac_tr_hdr 1
7085 EOF
7086  
7087 else
7088   echo "$ac_t""no" 1>&6
7089 fi
7090 done
7091
7092       
7093   # If we're not using GNU ld, then there's no point in even trying these
7094   # tests.  Check for that first.  We should have already tested for gld
7095   # by now (in libtool), but require it now just to be safe...
7096   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7097   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7098   
7099
7100   # The name set by libtool depends on the version of libtool.  Shame on us
7101   # for depending on an impl detail, but c'est la vie.  Older versions used
7102   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7103   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7104   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7105   # set (hence we're using an older libtool), then set it.
7106   if test x${with_gnu_ld+set} != xset; then
7107     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7108       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7109       with_gnu_ld=no
7110     else
7111       with_gnu_ld=$ac_cv_prog_gnu_ld
7112     fi
7113   fi
7114
7115   # Start by getting the version number.  I think the libtool test already
7116   # does some of this, but throws away the result.
7117   
7118   ldver=`$LD --version 2>/dev/null | head -1 | \
7119          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7120   
7121   glibcpp_gnu_ld_version=`echo $ldver | \
7122          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7123
7124   # Set --gc-sections.
7125   if test "$with_gnu_ld" = "notbroken"; then
7126     # GNU ld it is!  Joy and bunny rabbits!
7127
7128     # All these tests are for C++; save the language and the compiler flags.
7129     # Need to do this so that g++ won't try to link in libstdc++
7130     ac_test_CFLAGS="${CFLAGS+set}"
7131     ac_save_CFLAGS="$CFLAGS"
7132     CFLAGS='-x c++  -Wl,--gc-sections'
7133
7134     # Check for -Wl,--gc-sections
7135     # XXX This test is broken at the moment, as symbols required for
7136     # linking are now in libsupc++ (not built yet.....). In addition, 
7137     # this test has cored on solaris in the past. In addition,
7138     # --gc-sections doesn't really work at the moment (keeps on discarding
7139     # used sections, first .eh_frame and now some of the glibc sections for
7140     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7141     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7142 echo "configure:7143: checking for ld that supports -Wl,--gc-sections" >&5
7143     if test "$cross_compiling" = yes; then
7144   ac_sectionLDflags=yes
7145 else
7146   cat > conftest.$ac_ext <<EOF
7147 #line 7148 "configure"
7148 #include "confdefs.h"
7149
7150      int main(void) 
7151      {
7152        try { throw 1; }
7153        catch (...) { };
7154        return 0;
7155      }
7156     
7157 EOF
7158 if { (eval echo configure:7159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7159 then
7160   ac_sectionLDflags=yes
7161 else
7162   echo "configure: failed program was:" >&5
7163   cat conftest.$ac_ext >&5
7164   rm -fr conftest*
7165   ac_sectionLDflags=no
7166 fi
7167 rm -fr conftest*
7168 fi
7169
7170     if test "$ac_test_CFLAGS" = set; then
7171       CFLAGS="$ac_save_CFLAGS"
7172     else
7173       # this is the suspicious part
7174       CFLAGS=''
7175     fi
7176     if test "$ac_sectionLDflags" = "yes"; then
7177       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7178     fi
7179     echo "$ac_t""$ac_sectionLDflags" 1>&6
7180   fi
7181
7182   # Set linker optimization flags.
7183   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7184     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7185   fi
7186
7187   
7188   
7189
7190       
7191     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7192 echo "configure:7193: checking for main in -lm" >&5
7193 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7194 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7195   echo $ac_n "(cached) $ac_c" 1>&6
7196 else
7197   ac_save_LIBS="$LIBS"
7198 LIBS="-lm  $LIBS"
7199 cat > conftest.$ac_ext <<EOF
7200 #line 7201 "configure"
7201 #include "confdefs.h"
7202
7203 int main() {
7204 main()
7205 ; return 0; }
7206 EOF
7207 if { (eval echo configure:7208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7208   rm -rf conftest*
7209   eval "ac_cv_lib_$ac_lib_var=yes"
7210 else
7211   echo "configure: failed program was:" >&5
7212   cat conftest.$ac_ext >&5
7213   rm -rf conftest*
7214   eval "ac_cv_lib_$ac_lib_var=no"
7215 fi
7216 rm -f conftest*
7217 LIBS="$ac_save_LIBS"
7218
7219 fi
7220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7221   echo "$ac_t""yes" 1>&6
7222     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7223     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7224   cat >> confdefs.h <<EOF
7225 #define $ac_tr_lib 1
7226 EOF
7227
7228   LIBS="-lm $LIBS"
7229
7230 else
7231   echo "$ac_t""no" 1>&6
7232 fi
7233
7234   for ac_func in nan copysignf
7235 do
7236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7237 echo "configure:7238: checking for $ac_func" >&5
7238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7239   echo $ac_n "(cached) $ac_c" 1>&6
7240 else
7241   cat > conftest.$ac_ext <<EOF
7242 #line 7243 "configure"
7243 #include "confdefs.h"
7244 /* System header to define __stub macros and hopefully few prototypes,
7245     which can conflict with char $ac_func(); below.  */
7246 #include <assert.h>
7247 /* Override any gcc2 internal prototype to avoid an error.  */
7248 /* We use char because int might match the return type of a gcc2
7249     builtin and then its argument prototype would still apply.  */
7250 char $ac_func();
7251
7252 int main() {
7253
7254 /* The GNU C library defines this for functions which it implements
7255     to always fail with ENOSYS.  Some functions are actually named
7256     something starting with __ and the normal name is an alias.  */
7257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7258 choke me
7259 #else
7260 $ac_func();
7261 #endif
7262
7263 ; return 0; }
7264 EOF
7265 if { (eval echo configure:7266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7266   rm -rf conftest*
7267   eval "ac_cv_func_$ac_func=yes"
7268 else
7269   echo "configure: failed program was:" >&5
7270   cat conftest.$ac_ext >&5
7271   rm -rf conftest*
7272   eval "ac_cv_func_$ac_func=no"
7273 fi
7274 rm -f conftest*
7275 fi
7276
7277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7278   echo "$ac_t""yes" 1>&6
7279     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7280   cat >> confdefs.h <<EOF
7281 #define $ac_tr_func 1
7282 EOF
7283  
7284 else
7285   echo "$ac_t""no" 1>&6
7286 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7287 fi
7288 done
7289
7290
7291     for ac_func in __signbit
7292 do
7293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7294 echo "configure:7295: checking for $ac_func" >&5
7295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7296   echo $ac_n "(cached) $ac_c" 1>&6
7297 else
7298   cat > conftest.$ac_ext <<EOF
7299 #line 7300 "configure"
7300 #include "confdefs.h"
7301 /* System header to define __stub macros and hopefully few prototypes,
7302     which can conflict with char $ac_func(); below.  */
7303 #include <assert.h>
7304 /* Override any gcc2 internal prototype to avoid an error.  */
7305 /* We use char because int might match the return type of a gcc2
7306     builtin and then its argument prototype would still apply.  */
7307 char $ac_func();
7308
7309 int main() {
7310
7311 /* The GNU C library defines this for functions which it implements
7312     to always fail with ENOSYS.  Some functions are actually named
7313     something starting with __ and the normal name is an alias.  */
7314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7315 choke me
7316 #else
7317 $ac_func();
7318 #endif
7319
7320 ; return 0; }
7321 EOF
7322 if { (eval echo configure:7323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7323   rm -rf conftest*
7324   eval "ac_cv_func_$ac_func=yes"
7325 else
7326   echo "configure: failed program was:" >&5
7327   cat conftest.$ac_ext >&5
7328   rm -rf conftest*
7329   eval "ac_cv_func_$ac_func=no"
7330 fi
7331 rm -f conftest*
7332 fi
7333
7334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7335   echo "$ac_t""yes" 1>&6
7336     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7337   cat >> confdefs.h <<EOF
7338 #define $ac_tr_func 1
7339 EOF
7340  
7341 else
7342   echo "$ac_t""no" 1>&6
7343 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7344 fi
7345 done
7346
7347   for ac_func in __signbitf
7348 do
7349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7350 echo "configure:7351: checking for $ac_func" >&5
7351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7352   echo $ac_n "(cached) $ac_c" 1>&6
7353 else
7354   cat > conftest.$ac_ext <<EOF
7355 #line 7356 "configure"
7356 #include "confdefs.h"
7357 /* System header to define __stub macros and hopefully few prototypes,
7358     which can conflict with char $ac_func(); below.  */
7359 #include <assert.h>
7360 /* Override any gcc2 internal prototype to avoid an error.  */
7361 /* We use char because int might match the return type of a gcc2
7362     builtin and then its argument prototype would still apply.  */
7363 char $ac_func();
7364
7365 int main() {
7366
7367 /* The GNU C library defines this for functions which it implements
7368     to always fail with ENOSYS.  Some functions are actually named
7369     something starting with __ and the normal name is an alias.  */
7370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7371 choke me
7372 #else
7373 $ac_func();
7374 #endif
7375
7376 ; return 0; }
7377 EOF
7378 if { (eval echo configure:7379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7379   rm -rf conftest*
7380   eval "ac_cv_func_$ac_func=yes"
7381 else
7382   echo "configure: failed program was:" >&5
7383   cat conftest.$ac_ext >&5
7384   rm -rf conftest*
7385   eval "ac_cv_func_$ac_func=no"
7386 fi
7387 rm -f conftest*
7388 fi
7389
7390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7391   echo "$ac_t""yes" 1>&6
7392     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7393   cat >> confdefs.h <<EOF
7394 #define $ac_tr_func 1
7395 EOF
7396  
7397 else
7398   echo "$ac_t""no" 1>&6
7399 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7400 fi
7401 done
7402
7403
7404           if test x$ac_cv_func_copysignl = x"yes"; then
7405     for ac_func in __signbitl
7406 do
7407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7408 echo "configure:7409: checking for $ac_func" >&5
7409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7410   echo $ac_n "(cached) $ac_c" 1>&6
7411 else
7412   cat > conftest.$ac_ext <<EOF
7413 #line 7414 "configure"
7414 #include "confdefs.h"
7415 /* System header to define __stub macros and hopefully few prototypes,
7416     which can conflict with char $ac_func(); below.  */
7417 #include <assert.h>
7418 /* Override any gcc2 internal prototype to avoid an error.  */
7419 /* We use char because int might match the return type of a gcc2
7420     builtin and then its argument prototype would still apply.  */
7421 char $ac_func();
7422
7423 int main() {
7424
7425 /* The GNU C library defines this for functions which it implements
7426     to always fail with ENOSYS.  Some functions are actually named
7427     something starting with __ and the normal name is an alias.  */
7428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7429 choke me
7430 #else
7431 $ac_func();
7432 #endif
7433
7434 ; return 0; }
7435 EOF
7436 if { (eval echo configure:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7437   rm -rf conftest*
7438   eval "ac_cv_func_$ac_func=yes"
7439 else
7440   echo "configure: failed program was:" >&5
7441   cat conftest.$ac_ext >&5
7442   rm -rf conftest*
7443   eval "ac_cv_func_$ac_func=no"
7444 fi
7445 rm -f conftest*
7446 fi
7447
7448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7449   echo "$ac_t""yes" 1>&6
7450     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7451   cat >> confdefs.h <<EOF
7452 #define $ac_tr_func 1
7453 EOF
7454  
7455 else
7456   echo "$ac_t""no" 1>&6
7457 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7458 fi
7459 done
7460
7461   fi
7462
7463   
7464
7465       
7466
7467       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7468 echo "configure:7469: checking for mbstate_t" >&5
7469   cat > conftest.$ac_ext <<EOF
7470 #line 7471 "configure"
7471 #include "confdefs.h"
7472 #include <wchar.h>
7473 int main() {
7474 mbstate_t teststate;
7475 ; return 0; }
7476 EOF
7477 if { (eval echo configure:7478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7478   rm -rf conftest*
7479   have_mbstate_t=yes
7480 else
7481   echo "configure: failed program was:" >&5
7482   cat conftest.$ac_ext >&5
7483   rm -rf conftest*
7484   have_mbstate_t=no
7485 fi
7486 rm -f conftest*
7487   echo "$ac_t""$have_mbstate_t" 1>&6
7488   if test x"$have_mbstate_t" = xyes; then
7489     cat >> confdefs.h <<\EOF
7490 #define HAVE_MBSTATE_T 1
7491 EOF
7492
7493   fi
7494
7495     for ac_hdr in wchar.h
7496 do
7497 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7499 echo "configure:7500: checking for $ac_hdr" >&5
7500 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7501   echo $ac_n "(cached) $ac_c" 1>&6
7502 else
7503   cat > conftest.$ac_ext <<EOF
7504 #line 7505 "configure"
7505 #include "confdefs.h"
7506 #include <$ac_hdr>
7507 EOF
7508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7509 { (eval echo configure:7510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7511 if test -z "$ac_err"; then
7512   rm -rf conftest*
7513   eval "ac_cv_header_$ac_safe=yes"
7514 else
7515   echo "$ac_err" >&5
7516   echo "configure: failed program was:" >&5
7517   cat conftest.$ac_ext >&5
7518   rm -rf conftest*
7519   eval "ac_cv_header_$ac_safe=no"
7520 fi
7521 rm -f conftest*
7522 fi
7523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7524   echo "$ac_t""yes" 1>&6
7525     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7526   cat >> confdefs.h <<EOF
7527 #define $ac_tr_hdr 1
7528 EOF
7529  ac_has_wchar_h=yes
7530 else
7531   echo "$ac_t""no" 1>&6
7532 ac_has_wchar_h=no
7533 fi
7534 done
7535
7536   for ac_hdr in wctype.h
7537 do
7538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7540 echo "configure:7541: checking for $ac_hdr" >&5
7541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7542   echo $ac_n "(cached) $ac_c" 1>&6
7543 else
7544   cat > conftest.$ac_ext <<EOF
7545 #line 7546 "configure"
7546 #include "confdefs.h"
7547 #include <$ac_hdr>
7548 EOF
7549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7550 { (eval echo configure:7551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7552 if test -z "$ac_err"; then
7553   rm -rf conftest*
7554   eval "ac_cv_header_$ac_safe=yes"
7555 else
7556   echo "$ac_err" >&5
7557   echo "configure: failed program was:" >&5
7558   cat conftest.$ac_ext >&5
7559   rm -rf conftest*
7560   eval "ac_cv_header_$ac_safe=no"
7561 fi
7562 rm -f conftest*
7563 fi
7564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7565   echo "$ac_t""yes" 1>&6
7566     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7567   cat >> confdefs.h <<EOF
7568 #define $ac_tr_hdr 1
7569 EOF
7570  ac_has_wctype_h=yes
7571 else
7572   echo "$ac_t""no" 1>&6
7573 ac_has_wctype_h=no
7574 fi
7575 done
7576
7577   
7578     if test x"$ac_has_wchar_h" = xyes &&
7579      test x"$ac_has_wctype_h" = xyes &&
7580      test x"$enable_c_mbchar" != xno; then
7581       
7582             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7583 echo "configure:7584: checking for WCHAR_MIN and WCHAR_MAX" >&5
7584     cat > conftest.$ac_ext <<EOF
7585 #line 7586 "configure"
7586 #include "confdefs.h"
7587 #include <wchar.h>
7588 int main() {
7589 int i = WCHAR_MIN; int j = WCHAR_MAX;
7590 ; return 0; }
7591 EOF
7592 if { (eval echo configure:7593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7593   rm -rf conftest*
7594   has_wchar_minmax=yes
7595 else
7596   echo "configure: failed program was:" >&5
7597   cat conftest.$ac_ext >&5
7598   rm -rf conftest*
7599   has_wchar_minmax=no
7600 fi
7601 rm -f conftest*
7602     echo "$ac_t""$has_wchar_minmax" 1>&6
7603     
7604             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7605 echo "configure:7606: checking for WEOF" >&5
7606     cat > conftest.$ac_ext <<EOF
7607 #line 7608 "configure"
7608 #include "confdefs.h"
7609
7610       #include <wchar.h>
7611       #include <stddef.h>
7612 int main() {
7613 wint_t i = WEOF;
7614 ; return 0; }
7615 EOF
7616 if { (eval echo configure:7617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7617   rm -rf conftest*
7618   has_weof=yes
7619 else
7620   echo "configure: failed program was:" >&5
7621   cat conftest.$ac_ext >&5
7622   rm -rf conftest*
7623   has_weof=no
7624 fi
7625 rm -f conftest*
7626     echo "$ac_t""$has_weof" 1>&6
7627   
7628         ac_wfuncs=yes
7629     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7630 do
7631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7632 echo "configure:7633: checking for $ac_func" >&5
7633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7634   echo $ac_n "(cached) $ac_c" 1>&6
7635 else
7636   cat > conftest.$ac_ext <<EOF
7637 #line 7638 "configure"
7638 #include "confdefs.h"
7639 /* System header to define __stub macros and hopefully few prototypes,
7640     which can conflict with char $ac_func(); below.  */
7641 #include <assert.h>
7642 /* Override any gcc2 internal prototype to avoid an error.  */
7643 /* We use char because int might match the return type of a gcc2
7644     builtin and then its argument prototype would still apply.  */
7645 char $ac_func();
7646
7647 int main() {
7648
7649 /* The GNU C library defines this for functions which it implements
7650     to always fail with ENOSYS.  Some functions are actually named
7651     something starting with __ and the normal name is an alias.  */
7652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7653 choke me
7654 #else
7655 $ac_func();
7656 #endif
7657
7658 ; return 0; }
7659 EOF
7660 if { (eval echo configure:7661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7661   rm -rf conftest*
7662   eval "ac_cv_func_$ac_func=yes"
7663 else
7664   echo "configure: failed program was:" >&5
7665   cat conftest.$ac_ext >&5
7666   rm -rf conftest*
7667   eval "ac_cv_func_$ac_func=no"
7668 fi
7669 rm -f conftest*
7670 fi
7671
7672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7673   echo "$ac_t""yes" 1>&6
7674     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7675   cat >> confdefs.h <<EOF
7676 #define $ac_tr_func 1
7677 EOF
7678  
7679 else
7680   echo "$ac_t""no" 1>&6
7681 \
7682     ac_wfuncs=no
7683 fi
7684 done
7685
7686   
7687         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7688     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7689     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7690     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7691     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7692     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7693 do
7694 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7695 echo "configure:7696: checking for $ac_func" >&5
7696 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7697   echo $ac_n "(cached) $ac_c" 1>&6
7698 else
7699   cat > conftest.$ac_ext <<EOF
7700 #line 7701 "configure"
7701 #include "confdefs.h"
7702 /* System header to define __stub macros and hopefully few prototypes,
7703     which can conflict with char $ac_func(); below.  */
7704 #include <assert.h>
7705 /* Override any gcc2 internal prototype to avoid an error.  */
7706 /* We use char because int might match the return type of a gcc2
7707     builtin and then its argument prototype would still apply.  */
7708 char $ac_func();
7709
7710 int main() {
7711
7712 /* The GNU C library defines this for functions which it implements
7713     to always fail with ENOSYS.  Some functions are actually named
7714     something starting with __ and the normal name is an alias.  */
7715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7716 choke me
7717 #else
7718 $ac_func();
7719 #endif
7720
7721 ; return 0; }
7722 EOF
7723 if { (eval echo configure:7724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7724   rm -rf conftest*
7725   eval "ac_cv_func_$ac_func=yes"
7726 else
7727   echo "configure: failed program was:" >&5
7728   cat conftest.$ac_ext >&5
7729   rm -rf conftest*
7730   eval "ac_cv_func_$ac_func=no"
7731 fi
7732 rm -f conftest*
7733 fi
7734
7735 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7736   echo "$ac_t""yes" 1>&6
7737     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7738   cat >> confdefs.h <<EOF
7739 #define $ac_tr_func 1
7740 EOF
7741  
7742 else
7743   echo "$ac_t""no" 1>&6
7744 \
7745     ac_wfuncs=no
7746 fi
7747 done
7748
7749
7750     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7751 echo "configure:7752: checking for ISO C99 wchar_t support" >&5
7752     if test x"$has_weof" = xyes &&
7753        test x"$has_wchar_minmax" = xyes &&
7754        test x"$ac_wfuncs" = xyes; then
7755       ac_isoC99_wchar_t=yes
7756     else
7757       ac_isoC99_wchar_t=no
7758     fi
7759     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7760   
7761             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7762 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7763 echo "configure:7764: checking for iconv.h" >&5
7764 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7765   echo $ac_n "(cached) $ac_c" 1>&6
7766 else
7767   cat > conftest.$ac_ext <<EOF
7768 #line 7769 "configure"
7769 #include "confdefs.h"
7770 #include <iconv.h>
7771 EOF
7772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7773 { (eval echo configure:7774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7775 if test -z "$ac_err"; then
7776   rm -rf conftest*
7777   eval "ac_cv_header_$ac_safe=yes"
7778 else
7779   echo "$ac_err" >&5
7780   echo "configure: failed program was:" >&5
7781   cat conftest.$ac_ext >&5
7782   rm -rf conftest*
7783   eval "ac_cv_header_$ac_safe=no"
7784 fi
7785 rm -f conftest*
7786 fi
7787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7788   echo "$ac_t""yes" 1>&6
7789   ac_has_iconv_h=yes
7790 else
7791   echo "$ac_t""no" 1>&6
7792 ac_has_iconv_h=no
7793 fi
7794
7795     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7796 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7797 echo "configure:7798: checking for langinfo.h" >&5
7798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7799   echo $ac_n "(cached) $ac_c" 1>&6
7800 else
7801   cat > conftest.$ac_ext <<EOF
7802 #line 7803 "configure"
7803 #include "confdefs.h"
7804 #include <langinfo.h>
7805 EOF
7806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7807 { (eval echo configure:7808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7809 if test -z "$ac_err"; then
7810   rm -rf conftest*
7811   eval "ac_cv_header_$ac_safe=yes"
7812 else
7813   echo "$ac_err" >&5
7814   echo "configure: failed program was:" >&5
7815   cat conftest.$ac_ext >&5
7816   rm -rf conftest*
7817   eval "ac_cv_header_$ac_safe=no"
7818 fi
7819 rm -f conftest*
7820 fi
7821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7822   echo "$ac_t""yes" 1>&6
7823   ac_has_langinfo_h=yes
7824 else
7825   echo "$ac_t""no" 1>&6
7826 ac_has_langinfo_h=no
7827 fi
7828
7829
7830         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7831 echo "configure:7832: checking for iconv in -liconv" >&5
7832 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7834   echo $ac_n "(cached) $ac_c" 1>&6
7835 else
7836   ac_save_LIBS="$LIBS"
7837 LIBS="-liconv  $LIBS"
7838 cat > conftest.$ac_ext <<EOF
7839 #line 7840 "configure"
7840 #include "confdefs.h"
7841 /* Override any gcc2 internal prototype to avoid an error.  */
7842 /* We use char because int might match the return type of a gcc2
7843     builtin and then its argument prototype would still apply.  */
7844 char iconv();
7845
7846 int main() {
7847 iconv()
7848 ; return 0; }
7849 EOF
7850 if { (eval echo configure:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7851   rm -rf conftest*
7852   eval "ac_cv_lib_$ac_lib_var=yes"
7853 else
7854   echo "configure: failed program was:" >&5
7855   cat conftest.$ac_ext >&5
7856   rm -rf conftest*
7857   eval "ac_cv_lib_$ac_lib_var=no"
7858 fi
7859 rm -f conftest*
7860 LIBS="$ac_save_LIBS"
7861
7862 fi
7863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7864   echo "$ac_t""yes" 1>&6
7865   libiconv="-liconv"
7866 else
7867   echo "$ac_t""no" 1>&6
7868 fi
7869
7870     ac_save_LIBS="$LIBS"
7871     LIBS="$LIBS $libiconv"
7872
7873     for ac_func in iconv_open iconv_close iconv nl_langinfo
7874 do
7875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7876 echo "configure:7877: checking for $ac_func" >&5
7877 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7878   echo $ac_n "(cached) $ac_c" 1>&6
7879 else
7880   cat > conftest.$ac_ext <<EOF
7881 #line 7882 "configure"
7882 #include "confdefs.h"
7883 /* System header to define __stub macros and hopefully few prototypes,
7884     which can conflict with char $ac_func(); below.  */
7885 #include <assert.h>
7886 /* Override any gcc2 internal prototype to avoid an error.  */
7887 /* We use char because int might match the return type of a gcc2
7888     builtin and then its argument prototype would still apply.  */
7889 char $ac_func();
7890
7891 int main() {
7892
7893 /* The GNU C library defines this for functions which it implements
7894     to always fail with ENOSYS.  Some functions are actually named
7895     something starting with __ and the normal name is an alias.  */
7896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7897 choke me
7898 #else
7899 $ac_func();
7900 #endif
7901
7902 ; return 0; }
7903 EOF
7904 if { (eval echo configure:7905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7905   rm -rf conftest*
7906   eval "ac_cv_func_$ac_func=yes"
7907 else
7908   echo "configure: failed program was:" >&5
7909   cat conftest.$ac_ext >&5
7910   rm -rf conftest*
7911   eval "ac_cv_func_$ac_func=no"
7912 fi
7913 rm -f conftest*
7914 fi
7915
7916 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7917   echo "$ac_t""yes" 1>&6
7918     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7919   cat >> confdefs.h <<EOF
7920 #define $ac_tr_func 1
7921 EOF
7922  \
7923     ac_XPG2funcs=yes
7924 else
7925   echo "$ac_t""no" 1>&6
7926 ac_XPG2funcs=no
7927 fi
7928 done
7929
7930   
7931     LIBS="$ac_save_LIBS"
7932
7933     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7934 echo "configure:7935: checking for XPG2 wchar_t support" >&5
7935     if test x"$ac_has_iconv_h" = xyes &&
7936        test x"$ac_has_langinfo_h" = xyes &&
7937        test x"$ac_XPG2funcs" = xyes; then
7938       ac_XPG2_wchar_t=yes
7939     else
7940       ac_XPG2_wchar_t=no
7941     fi
7942     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7943   
7944             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7945 echo "configure:7946: checking for enabled wchar_t specializations" >&5
7946     if test x"$ac_isoC99_wchar_t" = xyes &&
7947        test x"$ac_XPG2_wchar_t" = xyes; then
7948       cat >> confdefs.h <<\EOF
7949 #define _GLIBCPP_USE_WCHAR_T 1
7950 EOF
7951
7952       echo "$ac_t"""yes"" 1>&6
7953     else
7954       echo "$ac_t"""no"" 1>&6
7955     fi
7956   else
7957         echo "configure: warning: wchar_t support disabled." 1>&2
7958   fi
7959
7960       os_include_dir="os/mingw32"
7961       ;;
7962     *-windiss*)
7963       os_include_dir="os/windiss"
7964       ;;
7965     *-qnx6.[12]*)
7966       SECTION_FLAGS='-ffunction-sections -fdata-sections'
7967        
7968       
7969   # If we're not using GNU ld, then there's no point in even trying these
7970   # tests.  Check for that first.  We should have already tested for gld
7971   # by now (in libtool), but require it now just to be safe...
7972   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7973   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7974   
7975
7976   # The name set by libtool depends on the version of libtool.  Shame on us
7977   # for depending on an impl detail, but c'est la vie.  Older versions used
7978   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7979   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7980   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7981   # set (hence we're using an older libtool), then set it.
7982   if test x${with_gnu_ld+set} != xset; then
7983     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7984       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7985       with_gnu_ld=no
7986     else
7987       with_gnu_ld=$ac_cv_prog_gnu_ld
7988     fi
7989   fi
7990
7991   # Start by getting the version number.  I think the libtool test already
7992   # does some of this, but throws away the result.
7993   
7994   ldver=`$LD --version 2>/dev/null | head -1 | \
7995          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7996   
7997   glibcpp_gnu_ld_version=`echo $ldver | \
7998          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7999
8000   # Set --gc-sections.
8001   if test "$with_gnu_ld" = "notbroken"; then
8002     # GNU ld it is!  Joy and bunny rabbits!
8003
8004     # All these tests are for C++; save the language and the compiler flags.
8005     # Need to do this so that g++ won't try to link in libstdc++
8006     ac_test_CFLAGS="${CFLAGS+set}"
8007     ac_save_CFLAGS="$CFLAGS"
8008     CFLAGS='-x c++  -Wl,--gc-sections'
8009
8010     # Check for -Wl,--gc-sections
8011     # XXX This test is broken at the moment, as symbols required for
8012     # linking are now in libsupc++ (not built yet.....). In addition, 
8013     # this test has cored on solaris in the past. In addition,
8014     # --gc-sections doesn't really work at the moment (keeps on discarding
8015     # used sections, first .eh_frame and now some of the glibc sections for
8016     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8017     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8018 echo "configure:8019: checking for ld that supports -Wl,--gc-sections" >&5
8019     if test "$cross_compiling" = yes; then
8020   ac_sectionLDflags=yes
8021 else
8022   cat > conftest.$ac_ext <<EOF
8023 #line 8024 "configure"
8024 #include "confdefs.h"
8025
8026      int main(void) 
8027      {
8028        try { throw 1; }
8029        catch (...) { };
8030        return 0;
8031      }
8032     
8033 EOF
8034 if { (eval echo configure:8035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8035 then
8036   ac_sectionLDflags=yes
8037 else
8038   echo "configure: failed program was:" >&5
8039   cat conftest.$ac_ext >&5
8040   rm -fr conftest*
8041   ac_sectionLDflags=no
8042 fi
8043 rm -fr conftest*
8044 fi
8045
8046     if test "$ac_test_CFLAGS" = set; then
8047       CFLAGS="$ac_save_CFLAGS"
8048     else
8049       # this is the suspicious part
8050       CFLAGS=''
8051     fi
8052     if test "$ac_sectionLDflags" = "yes"; then
8053       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8054     fi
8055     echo "$ac_t""$ac_sectionLDflags" 1>&6
8056   fi
8057
8058   # Set linker optimization flags.
8059   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
8060     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8061   fi
8062
8063   
8064   
8065
8066       
8067     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8068 echo "configure:8069: checking for main in -lm" >&5
8069 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8071   echo $ac_n "(cached) $ac_c" 1>&6
8072 else
8073   ac_save_LIBS="$LIBS"
8074 LIBS="-lm  $LIBS"
8075 cat > conftest.$ac_ext <<EOF
8076 #line 8077 "configure"
8077 #include "confdefs.h"
8078
8079 int main() {
8080 main()
8081 ; return 0; }
8082 EOF
8083 if { (eval echo configure:8084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8084   rm -rf conftest*
8085   eval "ac_cv_lib_$ac_lib_var=yes"
8086 else
8087   echo "configure: failed program was:" >&5
8088   cat conftest.$ac_ext >&5
8089   rm -rf conftest*
8090   eval "ac_cv_lib_$ac_lib_var=no"
8091 fi
8092 rm -f conftest*
8093 LIBS="$ac_save_LIBS"
8094
8095 fi
8096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8097   echo "$ac_t""yes" 1>&6
8098     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8099     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8100   cat >> confdefs.h <<EOF
8101 #define $ac_tr_lib 1
8102 EOF
8103
8104   LIBS="-lm $LIBS"
8105
8106 else
8107   echo "$ac_t""no" 1>&6
8108 fi
8109
8110   for ac_func in nan copysignf
8111 do
8112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8113 echo "configure:8114: checking for $ac_func" >&5
8114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8115   echo $ac_n "(cached) $ac_c" 1>&6
8116 else
8117   cat > conftest.$ac_ext <<EOF
8118 #line 8119 "configure"
8119 #include "confdefs.h"
8120 /* System header to define __stub macros and hopefully few prototypes,
8121     which can conflict with char $ac_func(); below.  */
8122 #include <assert.h>
8123 /* Override any gcc2 internal prototype to avoid an error.  */
8124 /* We use char because int might match the return type of a gcc2
8125     builtin and then its argument prototype would still apply.  */
8126 char $ac_func();
8127
8128 int main() {
8129
8130 /* The GNU C library defines this for functions which it implements
8131     to always fail with ENOSYS.  Some functions are actually named
8132     something starting with __ and the normal name is an alias.  */
8133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8134 choke me
8135 #else
8136 $ac_func();
8137 #endif
8138
8139 ; return 0; }
8140 EOF
8141 if { (eval echo configure:8142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8142   rm -rf conftest*
8143   eval "ac_cv_func_$ac_func=yes"
8144 else
8145   echo "configure: failed program was:" >&5
8146   cat conftest.$ac_ext >&5
8147   rm -rf conftest*
8148   eval "ac_cv_func_$ac_func=no"
8149 fi
8150 rm -f conftest*
8151 fi
8152
8153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8154   echo "$ac_t""yes" 1>&6
8155     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8156   cat >> confdefs.h <<EOF
8157 #define $ac_tr_func 1
8158 EOF
8159  
8160 else
8161   echo "$ac_t""no" 1>&6
8162 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8163 fi
8164 done
8165
8166
8167     for ac_func in __signbit
8168 do
8169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8170 echo "configure:8171: checking for $ac_func" >&5
8171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8172   echo $ac_n "(cached) $ac_c" 1>&6
8173 else
8174   cat > conftest.$ac_ext <<EOF
8175 #line 8176 "configure"
8176 #include "confdefs.h"
8177 /* System header to define __stub macros and hopefully few prototypes,
8178     which can conflict with char $ac_func(); below.  */
8179 #include <assert.h>
8180 /* Override any gcc2 internal prototype to avoid an error.  */
8181 /* We use char because int might match the return type of a gcc2
8182     builtin and then its argument prototype would still apply.  */
8183 char $ac_func();
8184
8185 int main() {
8186
8187 /* The GNU C library defines this for functions which it implements
8188     to always fail with ENOSYS.  Some functions are actually named
8189     something starting with __ and the normal name is an alias.  */
8190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8191 choke me
8192 #else
8193 $ac_func();
8194 #endif
8195
8196 ; return 0; }
8197 EOF
8198 if { (eval echo configure:8199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8199   rm -rf conftest*
8200   eval "ac_cv_func_$ac_func=yes"
8201 else
8202   echo "configure: failed program was:" >&5
8203   cat conftest.$ac_ext >&5
8204   rm -rf conftest*
8205   eval "ac_cv_func_$ac_func=no"
8206 fi
8207 rm -f conftest*
8208 fi
8209
8210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8211   echo "$ac_t""yes" 1>&6
8212     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8213   cat >> confdefs.h <<EOF
8214 #define $ac_tr_func 1
8215 EOF
8216  
8217 else
8218   echo "$ac_t""no" 1>&6
8219 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8220 fi
8221 done
8222
8223   for ac_func in __signbitf
8224 do
8225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8226 echo "configure:8227: checking for $ac_func" >&5
8227 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8228   echo $ac_n "(cached) $ac_c" 1>&6
8229 else
8230   cat > conftest.$ac_ext <<EOF
8231 #line 8232 "configure"
8232 #include "confdefs.h"
8233 /* System header to define __stub macros and hopefully few prototypes,
8234     which can conflict with char $ac_func(); below.  */
8235 #include <assert.h>
8236 /* Override any gcc2 internal prototype to avoid an error.  */
8237 /* We use char because int might match the return type of a gcc2
8238     builtin and then its argument prototype would still apply.  */
8239 char $ac_func();
8240
8241 int main() {
8242
8243 /* The GNU C library defines this for functions which it implements
8244     to always fail with ENOSYS.  Some functions are actually named
8245     something starting with __ and the normal name is an alias.  */
8246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8247 choke me
8248 #else
8249 $ac_func();
8250 #endif
8251
8252 ; return 0; }
8253 EOF
8254 if { (eval echo configure:8255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8255   rm -rf conftest*
8256   eval "ac_cv_func_$ac_func=yes"
8257 else
8258   echo "configure: failed program was:" >&5
8259   cat conftest.$ac_ext >&5
8260   rm -rf conftest*
8261   eval "ac_cv_func_$ac_func=no"
8262 fi
8263 rm -f conftest*
8264 fi
8265
8266 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8267   echo "$ac_t""yes" 1>&6
8268     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8269   cat >> confdefs.h <<EOF
8270 #define $ac_tr_func 1
8271 EOF
8272  
8273 else
8274   echo "$ac_t""no" 1>&6
8275 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8276 fi
8277 done
8278
8279
8280           if test x$ac_cv_func_copysignl = x"yes"; then
8281     for ac_func in __signbitl
8282 do
8283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8284 echo "configure:8285: checking for $ac_func" >&5
8285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8286   echo $ac_n "(cached) $ac_c" 1>&6
8287 else
8288   cat > conftest.$ac_ext <<EOF
8289 #line 8290 "configure"
8290 #include "confdefs.h"
8291 /* System header to define __stub macros and hopefully few prototypes,
8292     which can conflict with char $ac_func(); below.  */
8293 #include <assert.h>
8294 /* Override any gcc2 internal prototype to avoid an error.  */
8295 /* We use char because int might match the return type of a gcc2
8296     builtin and then its argument prototype would still apply.  */
8297 char $ac_func();
8298
8299 int main() {
8300
8301 /* The GNU C library defines this for functions which it implements
8302     to always fail with ENOSYS.  Some functions are actually named
8303     something starting with __ and the normal name is an alias.  */
8304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8305 choke me
8306 #else
8307 $ac_func();
8308 #endif
8309
8310 ; return 0; }
8311 EOF
8312 if { (eval echo configure:8313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8313   rm -rf conftest*
8314   eval "ac_cv_func_$ac_func=yes"
8315 else
8316   echo "configure: failed program was:" >&5
8317   cat conftest.$ac_ext >&5
8318   rm -rf conftest*
8319   eval "ac_cv_func_$ac_func=no"
8320 fi
8321 rm -f conftest*
8322 fi
8323
8324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8325   echo "$ac_t""yes" 1>&6
8326     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8327   cat >> confdefs.h <<EOF
8328 #define $ac_tr_func 1
8329 EOF
8330  
8331 else
8332   echo "$ac_t""no" 1>&6
8333 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8334 fi
8335 done
8336
8337   fi
8338
8339   
8340
8341       
8342
8343       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8344 echo "configure:8345: checking for mbstate_t" >&5
8345   cat > conftest.$ac_ext <<EOF
8346 #line 8347 "configure"
8347 #include "confdefs.h"
8348 #include <wchar.h>
8349 int main() {
8350 mbstate_t teststate;
8351 ; return 0; }
8352 EOF
8353 if { (eval echo configure:8354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8354   rm -rf conftest*
8355   have_mbstate_t=yes
8356 else
8357   echo "configure: failed program was:" >&5
8358   cat conftest.$ac_ext >&5
8359   rm -rf conftest*
8360   have_mbstate_t=no
8361 fi
8362 rm -f conftest*
8363   echo "$ac_t""$have_mbstate_t" 1>&6
8364   if test x"$have_mbstate_t" = xyes; then
8365     cat >> confdefs.h <<\EOF
8366 #define HAVE_MBSTATE_T 1
8367 EOF
8368
8369   fi
8370
8371     for ac_hdr in wchar.h
8372 do
8373 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8374 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8375 echo "configure:8376: checking for $ac_hdr" >&5
8376 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8377   echo $ac_n "(cached) $ac_c" 1>&6
8378 else
8379   cat > conftest.$ac_ext <<EOF
8380 #line 8381 "configure"
8381 #include "confdefs.h"
8382 #include <$ac_hdr>
8383 EOF
8384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8385 { (eval echo configure:8386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8387 if test -z "$ac_err"; then
8388   rm -rf conftest*
8389   eval "ac_cv_header_$ac_safe=yes"
8390 else
8391   echo "$ac_err" >&5
8392   echo "configure: failed program was:" >&5
8393   cat conftest.$ac_ext >&5
8394   rm -rf conftest*
8395   eval "ac_cv_header_$ac_safe=no"
8396 fi
8397 rm -f conftest*
8398 fi
8399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8400   echo "$ac_t""yes" 1>&6
8401     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8402   cat >> confdefs.h <<EOF
8403 #define $ac_tr_hdr 1
8404 EOF
8405  ac_has_wchar_h=yes
8406 else
8407   echo "$ac_t""no" 1>&6
8408 ac_has_wchar_h=no
8409 fi
8410 done
8411
8412   for ac_hdr in wctype.h
8413 do
8414 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8416 echo "configure:8417: checking for $ac_hdr" >&5
8417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8418   echo $ac_n "(cached) $ac_c" 1>&6
8419 else
8420   cat > conftest.$ac_ext <<EOF
8421 #line 8422 "configure"
8422 #include "confdefs.h"
8423 #include <$ac_hdr>
8424 EOF
8425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8426 { (eval echo configure:8427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8428 if test -z "$ac_err"; then
8429   rm -rf conftest*
8430   eval "ac_cv_header_$ac_safe=yes"
8431 else
8432   echo "$ac_err" >&5
8433   echo "configure: failed program was:" >&5
8434   cat conftest.$ac_ext >&5
8435   rm -rf conftest*
8436   eval "ac_cv_header_$ac_safe=no"
8437 fi
8438 rm -f conftest*
8439 fi
8440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8441   echo "$ac_t""yes" 1>&6
8442     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8443   cat >> confdefs.h <<EOF
8444 #define $ac_tr_hdr 1
8445 EOF
8446  ac_has_wctype_h=yes
8447 else
8448   echo "$ac_t""no" 1>&6
8449 ac_has_wctype_h=no
8450 fi
8451 done
8452
8453   
8454     if test x"$ac_has_wchar_h" = xyes &&
8455      test x"$ac_has_wctype_h" = xyes &&
8456      test x"$enable_c_mbchar" != xno; then
8457       
8458             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8459 echo "configure:8460: checking for WCHAR_MIN and WCHAR_MAX" >&5
8460     cat > conftest.$ac_ext <<EOF
8461 #line 8462 "configure"
8462 #include "confdefs.h"
8463 #include <wchar.h>
8464 int main() {
8465 int i = WCHAR_MIN; int j = WCHAR_MAX;
8466 ; return 0; }
8467 EOF
8468 if { (eval echo configure:8469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8469   rm -rf conftest*
8470   has_wchar_minmax=yes
8471 else
8472   echo "configure: failed program was:" >&5
8473   cat conftest.$ac_ext >&5
8474   rm -rf conftest*
8475   has_wchar_minmax=no
8476 fi
8477 rm -f conftest*
8478     echo "$ac_t""$has_wchar_minmax" 1>&6
8479     
8480             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8481 echo "configure:8482: checking for WEOF" >&5
8482     cat > conftest.$ac_ext <<EOF
8483 #line 8484 "configure"
8484 #include "confdefs.h"
8485
8486       #include <wchar.h>
8487       #include <stddef.h>
8488 int main() {
8489 wint_t i = WEOF;
8490 ; return 0; }
8491 EOF
8492 if { (eval echo configure:8493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8493   rm -rf conftest*
8494   has_weof=yes
8495 else
8496   echo "configure: failed program was:" >&5
8497   cat conftest.$ac_ext >&5
8498   rm -rf conftest*
8499   has_weof=no
8500 fi
8501 rm -f conftest*
8502     echo "$ac_t""$has_weof" 1>&6
8503   
8504         ac_wfuncs=yes
8505     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8506 do
8507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8508 echo "configure:8509: checking for $ac_func" >&5
8509 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8510   echo $ac_n "(cached) $ac_c" 1>&6
8511 else
8512   cat > conftest.$ac_ext <<EOF
8513 #line 8514 "configure"
8514 #include "confdefs.h"
8515 /* System header to define __stub macros and hopefully few prototypes,
8516     which can conflict with char $ac_func(); below.  */
8517 #include <assert.h>
8518 /* Override any gcc2 internal prototype to avoid an error.  */
8519 /* We use char because int might match the return type of a gcc2
8520     builtin and then its argument prototype would still apply.  */
8521 char $ac_func();
8522
8523 int main() {
8524
8525 /* The GNU C library defines this for functions which it implements
8526     to always fail with ENOSYS.  Some functions are actually named
8527     something starting with __ and the normal name is an alias.  */
8528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8529 choke me
8530 #else
8531 $ac_func();
8532 #endif
8533
8534 ; return 0; }
8535 EOF
8536 if { (eval echo configure:8537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8537   rm -rf conftest*
8538   eval "ac_cv_func_$ac_func=yes"
8539 else
8540   echo "configure: failed program was:" >&5
8541   cat conftest.$ac_ext >&5
8542   rm -rf conftest*
8543   eval "ac_cv_func_$ac_func=no"
8544 fi
8545 rm -f conftest*
8546 fi
8547
8548 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8549   echo "$ac_t""yes" 1>&6
8550     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8551   cat >> confdefs.h <<EOF
8552 #define $ac_tr_func 1
8553 EOF
8554  
8555 else
8556   echo "$ac_t""no" 1>&6
8557 \
8558     ac_wfuncs=no
8559 fi
8560 done
8561
8562   
8563         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8564     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8565     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8566     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8567     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8568     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8569 do
8570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8571 echo "configure:8572: checking for $ac_func" >&5
8572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8573   echo $ac_n "(cached) $ac_c" 1>&6
8574 else
8575   cat > conftest.$ac_ext <<EOF
8576 #line 8577 "configure"
8577 #include "confdefs.h"
8578 /* System header to define __stub macros and hopefully few prototypes,
8579     which can conflict with char $ac_func(); below.  */
8580 #include <assert.h>
8581 /* Override any gcc2 internal prototype to avoid an error.  */
8582 /* We use char because int might match the return type of a gcc2
8583     builtin and then its argument prototype would still apply.  */
8584 char $ac_func();
8585
8586 int main() {
8587
8588 /* The GNU C library defines this for functions which it implements
8589     to always fail with ENOSYS.  Some functions are actually named
8590     something starting with __ and the normal name is an alias.  */
8591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8592 choke me
8593 #else
8594 $ac_func();
8595 #endif
8596
8597 ; return 0; }
8598 EOF
8599 if { (eval echo configure:8600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8600   rm -rf conftest*
8601   eval "ac_cv_func_$ac_func=yes"
8602 else
8603   echo "configure: failed program was:" >&5
8604   cat conftest.$ac_ext >&5
8605   rm -rf conftest*
8606   eval "ac_cv_func_$ac_func=no"
8607 fi
8608 rm -f conftest*
8609 fi
8610
8611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8612   echo "$ac_t""yes" 1>&6
8613     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8614   cat >> confdefs.h <<EOF
8615 #define $ac_tr_func 1
8616 EOF
8617  
8618 else
8619   echo "$ac_t""no" 1>&6
8620 \
8621     ac_wfuncs=no
8622 fi
8623 done
8624
8625
8626     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8627 echo "configure:8628: checking for ISO C99 wchar_t support" >&5
8628     if test x"$has_weof" = xyes &&
8629        test x"$has_wchar_minmax" = xyes &&
8630        test x"$ac_wfuncs" = xyes; then
8631       ac_isoC99_wchar_t=yes
8632     else
8633       ac_isoC99_wchar_t=no
8634     fi
8635     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8636   
8637             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8638 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8639 echo "configure:8640: checking for iconv.h" >&5
8640 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8641   echo $ac_n "(cached) $ac_c" 1>&6
8642 else
8643   cat > conftest.$ac_ext <<EOF
8644 #line 8645 "configure"
8645 #include "confdefs.h"
8646 #include <iconv.h>
8647 EOF
8648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8649 { (eval echo configure:8650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8651 if test -z "$ac_err"; then
8652   rm -rf conftest*
8653   eval "ac_cv_header_$ac_safe=yes"
8654 else
8655   echo "$ac_err" >&5
8656   echo "configure: failed program was:" >&5
8657   cat conftest.$ac_ext >&5
8658   rm -rf conftest*
8659   eval "ac_cv_header_$ac_safe=no"
8660 fi
8661 rm -f conftest*
8662 fi
8663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8664   echo "$ac_t""yes" 1>&6
8665   ac_has_iconv_h=yes
8666 else
8667   echo "$ac_t""no" 1>&6
8668 ac_has_iconv_h=no
8669 fi
8670
8671     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8672 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8673 echo "configure:8674: checking for langinfo.h" >&5
8674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8675   echo $ac_n "(cached) $ac_c" 1>&6
8676 else
8677   cat > conftest.$ac_ext <<EOF
8678 #line 8679 "configure"
8679 #include "confdefs.h"
8680 #include <langinfo.h>
8681 EOF
8682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8683 { (eval echo configure:8684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8685 if test -z "$ac_err"; then
8686   rm -rf conftest*
8687   eval "ac_cv_header_$ac_safe=yes"
8688 else
8689   echo "$ac_err" >&5
8690   echo "configure: failed program was:" >&5
8691   cat conftest.$ac_ext >&5
8692   rm -rf conftest*
8693   eval "ac_cv_header_$ac_safe=no"
8694 fi
8695 rm -f conftest*
8696 fi
8697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8698   echo "$ac_t""yes" 1>&6
8699   ac_has_langinfo_h=yes
8700 else
8701   echo "$ac_t""no" 1>&6
8702 ac_has_langinfo_h=no
8703 fi
8704
8705
8706         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8707 echo "configure:8708: checking for iconv in -liconv" >&5
8708 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8710   echo $ac_n "(cached) $ac_c" 1>&6
8711 else
8712   ac_save_LIBS="$LIBS"
8713 LIBS="-liconv  $LIBS"
8714 cat > conftest.$ac_ext <<EOF
8715 #line 8716 "configure"
8716 #include "confdefs.h"
8717 /* Override any gcc2 internal prototype to avoid an error.  */
8718 /* We use char because int might match the return type of a gcc2
8719     builtin and then its argument prototype would still apply.  */
8720 char iconv();
8721
8722 int main() {
8723 iconv()
8724 ; return 0; }
8725 EOF
8726 if { (eval echo configure:8727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8727   rm -rf conftest*
8728   eval "ac_cv_lib_$ac_lib_var=yes"
8729 else
8730   echo "configure: failed program was:" >&5
8731   cat conftest.$ac_ext >&5
8732   rm -rf conftest*
8733   eval "ac_cv_lib_$ac_lib_var=no"
8734 fi
8735 rm -f conftest*
8736 LIBS="$ac_save_LIBS"
8737
8738 fi
8739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8740   echo "$ac_t""yes" 1>&6
8741   libiconv="-liconv"
8742 else
8743   echo "$ac_t""no" 1>&6
8744 fi
8745
8746     ac_save_LIBS="$LIBS"
8747     LIBS="$LIBS $libiconv"
8748
8749     for ac_func in iconv_open iconv_close iconv nl_langinfo
8750 do
8751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8752 echo "configure:8753: checking for $ac_func" >&5
8753 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8754   echo $ac_n "(cached) $ac_c" 1>&6
8755 else
8756   cat > conftest.$ac_ext <<EOF
8757 #line 8758 "configure"
8758 #include "confdefs.h"
8759 /* System header to define __stub macros and hopefully few prototypes,
8760     which can conflict with char $ac_func(); below.  */
8761 #include <assert.h>
8762 /* Override any gcc2 internal prototype to avoid an error.  */
8763 /* We use char because int might match the return type of a gcc2
8764     builtin and then its argument prototype would still apply.  */
8765 char $ac_func();
8766
8767 int main() {
8768
8769 /* The GNU C library defines this for functions which it implements
8770     to always fail with ENOSYS.  Some functions are actually named
8771     something starting with __ and the normal name is an alias.  */
8772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8773 choke me
8774 #else
8775 $ac_func();
8776 #endif
8777
8778 ; return 0; }
8779 EOF
8780 if { (eval echo configure:8781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8781   rm -rf conftest*
8782   eval "ac_cv_func_$ac_func=yes"
8783 else
8784   echo "configure: failed program was:" >&5
8785   cat conftest.$ac_ext >&5
8786   rm -rf conftest*
8787   eval "ac_cv_func_$ac_func=no"
8788 fi
8789 rm -f conftest*
8790 fi
8791
8792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8793   echo "$ac_t""yes" 1>&6
8794     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8795   cat >> confdefs.h <<EOF
8796 #define $ac_tr_func 1
8797 EOF
8798  \
8799     ac_XPG2funcs=yes
8800 else
8801   echo "$ac_t""no" 1>&6
8802 ac_XPG2funcs=no
8803 fi
8804 done
8805
8806   
8807     LIBS="$ac_save_LIBS"
8808
8809     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8810 echo "configure:8811: checking for XPG2 wchar_t support" >&5
8811     if test x"$ac_has_iconv_h" = xyes &&
8812        test x"$ac_has_langinfo_h" = xyes &&
8813        test x"$ac_XPG2funcs" = xyes; then
8814       ac_XPG2_wchar_t=yes
8815     else
8816       ac_XPG2_wchar_t=no
8817     fi
8818     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8819   
8820             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8821 echo "configure:8822: checking for enabled wchar_t specializations" >&5
8822     if test x"$ac_isoC99_wchar_t" = xyes &&
8823        test x"$ac_XPG2_wchar_t" = xyes; then
8824       cat >> confdefs.h <<\EOF
8825 #define _GLIBCPP_USE_WCHAR_T 1
8826 EOF
8827
8828       echo "$ac_t"""yes"" 1>&6
8829     else
8830       echo "$ac_t"""no"" 1>&6
8831     fi
8832   else
8833         echo "configure: warning: wchar_t support disabled." 1>&2
8834   fi
8835
8836       os_include_dir="os/qnx/qnx6.1"
8837       cat >> confdefs.h <<\EOF
8838 #define HAVE_COSF 1
8839 EOF
8840
8841       cat >> confdefs.h <<\EOF
8842 #define HAVE_COSL 1
8843 EOF
8844
8845       cat >> confdefs.h <<\EOF
8846 #define HAVE_COSHF 1
8847 EOF
8848
8849       cat >> confdefs.h <<\EOF
8850 #define HAVE_COSHL 1
8851 EOF
8852
8853       cat >> confdefs.h <<\EOF
8854 #define HAVE_LOGF 1
8855 EOF
8856
8857       cat >> confdefs.h <<\EOF
8858 #define HAVE_LOGL 1
8859 EOF
8860
8861       cat >> confdefs.h <<\EOF
8862 #define HAVE_LOG10F 1
8863 EOF
8864
8865       cat >> confdefs.h <<\EOF
8866 #define HAVE_LOG10L 1
8867 EOF
8868
8869       cat >> confdefs.h <<\EOF
8870 #define HAVE_SINF 1
8871 EOF
8872
8873       cat >> confdefs.h <<\EOF
8874 #define HAVE_SINL 1
8875 EOF
8876
8877       cat >> confdefs.h <<\EOF
8878 #define HAVE_SINHF 1
8879 EOF
8880
8881       cat >> confdefs.h <<\EOF
8882 #define HAVE_SINHL 1
8883 EOF
8884
8885       ;;
8886     *)
8887       os_include_dir="os/newlib"
8888       cat >> confdefs.h <<\EOF
8889 #define HAVE_HYPOT 1
8890 EOF
8891
8892       ;;
8893   esac
8894
8895   case "$target_alias" in
8896     *-mingw32*)
8897       ;;
8898     *-windiss*)
8899       cat >> confdefs.h <<\EOF
8900 #define HAVE_ACOSF 1
8901 EOF
8902
8903       cat >> confdefs.h <<\EOF
8904 #define HAVE_ASINF 1
8905 EOF
8906
8907       cat >> confdefs.h <<\EOF
8908 #define HAVE_ATAN2F 1
8909 EOF
8910
8911       cat >> confdefs.h <<\EOF
8912 #define HAVE_ATANF 1
8913 EOF
8914
8915       cat >> confdefs.h <<\EOF
8916 #define HAVE_CEILF 1
8917 EOF
8918
8919       cat >> confdefs.h <<\EOF
8920 #define HAVE_COPYSIGN 1
8921 EOF
8922
8923       cat >> confdefs.h <<\EOF
8924 #define HAVE_COPYSIGNF 1
8925 EOF
8926
8927       cat >> confdefs.h <<\EOF
8928 #define HAVE_COSF 1
8929 EOF
8930
8931       cat >> confdefs.h <<\EOF
8932 #define HAVE_COSHF 1
8933 EOF
8934
8935       cat >> confdefs.h <<\EOF
8936 #define HAVE_EXPF 1
8937 EOF
8938
8939       cat >> confdefs.h <<\EOF
8940 #define HAVE_FABSF 1
8941 EOF
8942
8943       cat >> confdefs.h <<\EOF
8944 #define HAVE_FLOORF 1
8945 EOF
8946
8947       cat >> confdefs.h <<\EOF
8948 #define HAVE_FMODF 1
8949 EOF
8950
8951       cat >> confdefs.h <<\EOF
8952 #define HAVE_FREXPF 1
8953 EOF
8954
8955       cat >> confdefs.h <<\EOF
8956 #define HAVE_LDEXPF 1
8957 EOF
8958
8959       cat >> confdefs.h <<\EOF
8960 #define HAVE_LOG10F 1
8961 EOF
8962
8963       cat >> confdefs.h <<\EOF
8964 #define HAVE_LOGF 1
8965 EOF
8966
8967       cat >> confdefs.h <<\EOF
8968 #define HAVE_MODFF 1
8969 EOF
8970
8971       cat >> confdefs.h <<\EOF
8972 #define HAVE_POWF 1
8973 EOF
8974
8975       cat >> confdefs.h <<\EOF
8976 #define HAVE_SINF 1
8977 EOF
8978
8979       cat >> confdefs.h <<\EOF
8980 #define HAVE_SINHF 1
8981 EOF
8982
8983       cat >> confdefs.h <<\EOF
8984 #define HAVE_SQRTF 1
8985 EOF
8986
8987       cat >> confdefs.h <<\EOF
8988 #define HAVE_TANF 1
8989 EOF
8990
8991       cat >> confdefs.h <<\EOF
8992 #define HAVE_TANHF 1
8993 EOF
8994
8995       ;;
8996     *)
8997       # GLIBCPP_CHECK_STDLIB_SUPPORT
8998       cat >> confdefs.h <<\EOF
8999 #define HAVE_STRTOF 1
9000 EOF
9001         
9002       cat >> confdefs.h <<\EOF
9003 #define HAVE_STRTOLD 1
9004 EOF
9005         
9006       # AC_FUNC_MMAP
9007       cat >> confdefs.h <<\EOF
9008 #define HAVE_MMAP 1
9009 EOF
9010
9011
9012       cat >> confdefs.h <<\EOF
9013 #define HAVE_ACOSF 1
9014 EOF
9015
9016       cat >> confdefs.h <<\EOF
9017 #define HAVE_ASINF 1
9018 EOF
9019
9020       cat >> confdefs.h <<\EOF
9021 #define HAVE_ATAN2F 1
9022 EOF
9023
9024       cat >> confdefs.h <<\EOF
9025 #define HAVE_ATANF 1
9026 EOF
9027
9028       cat >> confdefs.h <<\EOF
9029 #define HAVE_CEILF 1
9030 EOF
9031
9032       cat >> confdefs.h <<\EOF
9033 #define HAVE_COPYSIGN 1
9034 EOF
9035
9036       cat >> confdefs.h <<\EOF
9037 #define HAVE_COPYSIGNF 1
9038 EOF
9039
9040       cat >> confdefs.h <<\EOF
9041 #define HAVE_COSF 1
9042 EOF
9043
9044       cat >> confdefs.h <<\EOF
9045 #define HAVE_COSHF 1
9046 EOF
9047
9048       cat >> confdefs.h <<\EOF
9049 #define HAVE_EXPF 1
9050 EOF
9051
9052       cat >> confdefs.h <<\EOF
9053 #define HAVE_FABSF 1
9054 EOF
9055
9056       cat >> confdefs.h <<\EOF
9057 #define HAVE_FLOORF 1
9058 EOF
9059
9060       cat >> confdefs.h <<\EOF
9061 #define HAVE_FMODF 1
9062 EOF
9063
9064       cat >> confdefs.h <<\EOF
9065 #define HAVE_FREXPF 1
9066 EOF
9067
9068       cat >> confdefs.h <<\EOF
9069 #define HAVE_LDEXPF 1
9070 EOF
9071
9072       cat >> confdefs.h <<\EOF
9073 #define HAVE_LOG10F 1
9074 EOF
9075
9076       cat >> confdefs.h <<\EOF
9077 #define HAVE_LOGF 1
9078 EOF
9079
9080       cat >> confdefs.h <<\EOF
9081 #define HAVE_MODFF 1
9082 EOF
9083
9084       cat >> confdefs.h <<\EOF
9085 #define HAVE_POWF 1
9086 EOF
9087
9088       cat >> confdefs.h <<\EOF
9089 #define HAVE_SINF 1
9090 EOF
9091
9092       cat >> confdefs.h <<\EOF
9093 #define HAVE_SINHF 1
9094 EOF
9095
9096       cat >> confdefs.h <<\EOF
9097 #define HAVE_SQRTF 1
9098 EOF
9099
9100       cat >> confdefs.h <<\EOF
9101 #define HAVE_TANF 1
9102 EOF
9103
9104       cat >> confdefs.h <<\EOF
9105 #define HAVE_TANHF 1
9106 EOF
9107
9108       ;;
9109   esac
9110
9111   # At some point, we should differentiate between architectures
9112   # like x86, which have long double versions, and alpha/powerpc/etc.,
9113   # which don't. For the time being, punt.
9114   if test x"long_double_math_on_this_cpu" = x"yes"; then
9115     cat >> confdefs.h <<\EOF
9116 #define HAVE_ACOSL 1
9117 EOF
9118
9119     cat >> confdefs.h <<\EOF
9120 #define HAVE_ASINL 1
9121 EOF
9122
9123     cat >> confdefs.h <<\EOF
9124 #define HAVE_ATAN2L 1
9125 EOF
9126
9127     cat >> confdefs.h <<\EOF
9128 #define HAVE_ATANL 1
9129 EOF
9130
9131     cat >> confdefs.h <<\EOF
9132 #define HAVE_CEILL 1
9133 EOF
9134
9135     cat >> confdefs.h <<\EOF
9136 #define HAVE_COPYSIGNL 1
9137 EOF
9138
9139     cat >> confdefs.h <<\EOF
9140 #define HAVE_COSL 1
9141 EOF
9142
9143     cat >> confdefs.h <<\EOF
9144 #define HAVE_COSHL 1
9145 EOF
9146
9147     cat >> confdefs.h <<\EOF
9148 #define HAVE_EXPL 1
9149 EOF
9150
9151     cat >> confdefs.h <<\EOF
9152 #define HAVE_FABSL 1
9153 EOF
9154
9155     cat >> confdefs.h <<\EOF
9156 #define HAVE_FLOORL 1
9157 EOF
9158
9159     cat >> confdefs.h <<\EOF
9160 #define HAVE_FMODL 1
9161 EOF
9162
9163     cat >> confdefs.h <<\EOF
9164 #define HAVE_FREXPL 1
9165 EOF
9166
9167     cat >> confdefs.h <<\EOF
9168 #define HAVE_LDEXPL 1
9169 EOF
9170
9171     cat >> confdefs.h <<\EOF
9172 #define HAVE_LOG10L 1
9173 EOF
9174
9175     cat >> confdefs.h <<\EOF
9176 #define HAVE_LOGL 1
9177 EOF
9178
9179     cat >> confdefs.h <<\EOF
9180 #define HAVE_MODFL 1
9181 EOF
9182
9183     cat >> confdefs.h <<\EOF
9184 #define HAVE_POWL 1
9185 EOF
9186
9187     cat >> confdefs.h <<\EOF
9188 #define HAVE_SINCOSL 1
9189 EOF
9190
9191     cat >> confdefs.h <<\EOF
9192 #define HAVE_SINL 1
9193 EOF
9194
9195     cat >> confdefs.h <<\EOF
9196 #define HAVE_SINHL 1
9197 EOF
9198
9199     cat >> confdefs.h <<\EOF
9200 #define HAVE_SQRTL 1
9201 EOF
9202
9203     cat >> confdefs.h <<\EOF
9204 #define HAVE_TANL 1
9205 EOF
9206
9207     cat >> confdefs.h <<\EOF
9208 #define HAVE_TANHL 1
9209 EOF
9210
9211   fi
9212
9213 else
9214
9215   # We are being configured natively. We can do more elaborate tests
9216   # that include AC_TRY_COMPILE now, as the linker is assumed to be
9217   # working.
9218   GLIBCPP_IS_CROSS_COMPILING=0
9219   CANADIAN=no
9220
9221   # Check for available headers.
9222   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
9223   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
9224 do
9225 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9227 echo "configure:9228: checking for $ac_hdr" >&5
9228 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9229   echo $ac_n "(cached) $ac_c" 1>&6
9230 else
9231   cat > conftest.$ac_ext <<EOF
9232 #line 9233 "configure"
9233 #include "confdefs.h"
9234 #include <$ac_hdr>
9235 EOF
9236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9237 { (eval echo configure:9238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9239 if test -z "$ac_err"; then
9240   rm -rf conftest*
9241   eval "ac_cv_header_$ac_safe=yes"
9242 else
9243   echo "$ac_err" >&5
9244   echo "configure: failed program was:" >&5
9245   cat conftest.$ac_ext >&5
9246   rm -rf conftest*
9247   eval "ac_cv_header_$ac_safe=no"
9248 fi
9249 rm -f conftest*
9250 fi
9251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9252   echo "$ac_t""yes" 1>&6
9253     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9254   cat >> confdefs.h <<EOF
9255 #define $ac_tr_hdr 1
9256 EOF
9257  
9258 else
9259   echo "$ac_t""no" 1>&6
9260 fi
9261 done
9262
9263
9264   
9265   # All these tests are for C++; save the language and the compiler flags.
9266   # The CXXFLAGS thing is suspicious, but based on similar bits previously
9267   # found in GLIBCPP_CONFIGURE.
9268   
9269   ac_ext=C
9270 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9271 ac_cpp='$CXXCPP $CPPFLAGS'
9272 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9273 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9274 cross_compiling=$ac_cv_prog_cxx_cross
9275
9276   ac_test_CXXFLAGS="${CXXFLAGS+set}"
9277   ac_save_CXXFLAGS="$CXXFLAGS"
9278
9279   # Check for maintainer-mode bits.
9280   if test x"$USE_MAINTAINER_MODE" = xno; then
9281     WERROR=''
9282   else
9283     WERROR='-Werror'
9284   fi
9285
9286   # Check for -ffunction-sections -fdata-sections
9287   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
9288 echo "configure:9289: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
9289   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
9290   cat > conftest.$ac_ext <<EOF
9291 #line 9292 "configure"
9292 #include "confdefs.h"
9293
9294 int main() {
9295 int foo;
9296   
9297 ; return 0; }
9298 EOF
9299 if { (eval echo configure:9300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9300   rm -rf conftest*
9301   ac_fdsections=yes
9302 else
9303   echo "configure: failed program was:" >&5
9304   cat conftest.$ac_ext >&5
9305   rm -rf conftest*
9306   ac_fdsections=no
9307 fi
9308 rm -f conftest*
9309   if test "$ac_test_CXXFLAGS" = set; then
9310     CXXFLAGS="$ac_save_CXXFLAGS"
9311   else
9312     # this is the suspicious part
9313     CXXFLAGS=''
9314   fi
9315   if test x"$ac_fdsections" = x"yes" &&
9316      test x"$enable_debug" = x"no"; then
9317     SECTION_FLAGS='-ffunction-sections -fdata-sections'
9318   fi
9319   echo "$ac_t""$ac_fdsections" 1>&6
9320
9321   ac_ext=c
9322 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9323 ac_cpp='$CPP $CPPFLAGS'
9324 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9325 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9326 cross_compiling=$ac_cv_prog_cc_cross
9327
9328   
9329   
9330
9331   
9332   # If we're not using GNU ld, then there's no point in even trying these
9333   # tests.  Check for that first.  We should have already tested for gld
9334   # by now (in libtool), but require it now just to be safe...
9335   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9336   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9337   
9338
9339   # The name set by libtool depends on the version of libtool.  Shame on us
9340   # for depending on an impl detail, but c'est la vie.  Older versions used
9341   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9342   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9343   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9344   # set (hence we're using an older libtool), then set it.
9345   if test x${with_gnu_ld+set} != xset; then
9346     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9347       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9348       with_gnu_ld=no
9349     else
9350       with_gnu_ld=$ac_cv_prog_gnu_ld
9351     fi
9352   fi
9353
9354   # Start by getting the version number.  I think the libtool test already
9355   # does some of this, but throws away the result.
9356   
9357   ldver=`$LD --version 2>/dev/null | head -1 | \
9358          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9359   
9360   glibcpp_gnu_ld_version=`echo $ldver | \
9361          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9362
9363   # Set --gc-sections.
9364   if test "$with_gnu_ld" = "notbroken"; then
9365     # GNU ld it is!  Joy and bunny rabbits!
9366
9367     # All these tests are for C++; save the language and the compiler flags.
9368     # Need to do this so that g++ won't try to link in libstdc++
9369     ac_test_CFLAGS="${CFLAGS+set}"
9370     ac_save_CFLAGS="$CFLAGS"
9371     CFLAGS='-x c++  -Wl,--gc-sections'
9372
9373     # Check for -Wl,--gc-sections
9374     # XXX This test is broken at the moment, as symbols required for
9375     # linking are now in libsupc++ (not built yet.....). In addition, 
9376     # this test has cored on solaris in the past. In addition,
9377     # --gc-sections doesn't really work at the moment (keeps on discarding
9378     # used sections, first .eh_frame and now some of the glibc sections for
9379     # iconv). Bzzzzt. Thanks for playing, maybe next time.
9380     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9381 echo "configure:9382: checking for ld that supports -Wl,--gc-sections" >&5
9382     if test "$cross_compiling" = yes; then
9383   ac_sectionLDflags=yes
9384 else
9385   cat > conftest.$ac_ext <<EOF
9386 #line 9387 "configure"
9387 #include "confdefs.h"
9388
9389      int main(void) 
9390      {
9391        try { throw 1; }
9392        catch (...) { };
9393        return 0;
9394      }
9395     
9396 EOF
9397 if { (eval echo configure:9398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9398 then
9399   ac_sectionLDflags=yes
9400 else
9401   echo "configure: failed program was:" >&5
9402   cat conftest.$ac_ext >&5
9403   rm -fr conftest*
9404   ac_sectionLDflags=no
9405 fi
9406 rm -fr conftest*
9407 fi
9408
9409     if test "$ac_test_CFLAGS" = set; then
9410       CFLAGS="$ac_save_CFLAGS"
9411     else
9412       # this is the suspicious part
9413       CFLAGS=''
9414     fi
9415     if test "$ac_sectionLDflags" = "yes"; then
9416       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9417     fi
9418     echo "$ac_t""$ac_sectionLDflags" 1>&6
9419   fi
9420
9421   # Set linker optimization flags.
9422   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9423     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9424   fi
9425
9426   
9427   
9428
9429   
9430       
9431   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
9432 echo "configure:9433: checking for __builtin_abs declaration" >&5
9433   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
9434     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
9435   echo $ac_n "(cached) $ac_c" 1>&6
9436 else
9437   
9438       
9439       ac_ext=C
9440 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9441 ac_cpp='$CXXCPP $CPPFLAGS'
9442 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9443 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9444 cross_compiling=$ac_cv_prog_cxx_cross
9445
9446       cat > conftest.$ac_ext <<EOF
9447 #line 9448 "configure"
9448 #include "confdefs.h"
9449 #include <math.h>
9450 int main() {
9451  __builtin_abs(0);
9452 ; return 0; }
9453 EOF
9454 if { (eval echo configure:9455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9455   rm -rf conftest*
9456   glibcpp_cv_func___builtin_abs_use=yes
9457 else
9458   echo "configure: failed program was:" >&5
9459   cat conftest.$ac_ext >&5
9460   rm -rf conftest*
9461   glibcpp_cv_func___builtin_abs_use=no
9462 fi
9463 rm -f conftest*
9464       ac_ext=c
9465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9466 ac_cpp='$CPP $CPPFLAGS'
9467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9469 cross_compiling=$ac_cv_prog_cc_cross
9470
9471     
9472 fi
9473
9474   fi
9475   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
9476   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
9477     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
9478 echo "configure:9479: checking for __builtin_abs linkage" >&5
9479     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
9480       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
9481   echo $ac_n "(cached) $ac_c" 1>&6
9482 else
9483   
9484         cat > conftest.$ac_ext <<EOF
9485 #line 9486 "configure"
9486 #include "confdefs.h"
9487 #include <math.h>
9488 int main() {
9489  __builtin_abs(0);
9490 ; return 0; }
9491 EOF
9492 if { (eval echo configure:9493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9493   rm -rf conftest*
9494   glibcpp_cv_func___builtin_abs_link=yes
9495 else
9496   echo "configure: failed program was:" >&5
9497   cat conftest.$ac_ext >&5
9498   rm -rf conftest*
9499   glibcpp_cv_func___builtin_abs_link=no
9500 fi
9501 rm -f conftest*
9502       
9503 fi
9504
9505     fi
9506     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
9507     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
9508       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9509       cat >> confdefs.h <<EOF
9510 #define ${ac_tr_func} 1
9511 EOF
9512
9513     fi
9514   fi
9515
9516   
9517   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
9518 echo "configure:9519: checking for __builtin_fabsf declaration" >&5
9519   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
9520     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
9521   echo $ac_n "(cached) $ac_c" 1>&6
9522 else
9523   
9524       
9525       ac_ext=C
9526 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9527 ac_cpp='$CXXCPP $CPPFLAGS'
9528 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9529 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9530 cross_compiling=$ac_cv_prog_cxx_cross
9531
9532       cat > conftest.$ac_ext <<EOF
9533 #line 9534 "configure"
9534 #include "confdefs.h"
9535 #include <math.h>
9536 int main() {
9537  __builtin_fabsf(0);
9538 ; return 0; }
9539 EOF
9540 if { (eval echo configure:9541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9541   rm -rf conftest*
9542   glibcpp_cv_func___builtin_fabsf_use=yes
9543 else
9544   echo "configure: failed program was:" >&5
9545   cat conftest.$ac_ext >&5
9546   rm -rf conftest*
9547   glibcpp_cv_func___builtin_fabsf_use=no
9548 fi
9549 rm -f conftest*
9550       ac_ext=c
9551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9552 ac_cpp='$CPP $CPPFLAGS'
9553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9555 cross_compiling=$ac_cv_prog_cc_cross
9556
9557     
9558 fi
9559
9560   fi
9561   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
9562   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
9563     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
9564 echo "configure:9565: checking for __builtin_fabsf linkage" >&5
9565     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
9566       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
9567   echo $ac_n "(cached) $ac_c" 1>&6
9568 else
9569   
9570         cat > conftest.$ac_ext <<EOF
9571 #line 9572 "configure"
9572 #include "confdefs.h"
9573 #include <math.h>
9574 int main() {
9575  __builtin_fabsf(0);
9576 ; return 0; }
9577 EOF
9578 if { (eval echo configure:9579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9579   rm -rf conftest*
9580   glibcpp_cv_func___builtin_fabsf_link=yes
9581 else
9582   echo "configure: failed program was:" >&5
9583   cat conftest.$ac_ext >&5
9584   rm -rf conftest*
9585   glibcpp_cv_func___builtin_fabsf_link=no
9586 fi
9587 rm -f conftest*
9588       
9589 fi
9590
9591     fi
9592     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
9593     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
9594       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9595       cat >> confdefs.h <<EOF
9596 #define ${ac_tr_func} 1
9597 EOF
9598
9599     fi
9600   fi
9601
9602   
9603   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
9604 echo "configure:9605: checking for __builtin_fabs declaration" >&5
9605   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
9606     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
9607   echo $ac_n "(cached) $ac_c" 1>&6
9608 else
9609   
9610       
9611       ac_ext=C
9612 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9613 ac_cpp='$CXXCPP $CPPFLAGS'
9614 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9615 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9616 cross_compiling=$ac_cv_prog_cxx_cross
9617
9618       cat > conftest.$ac_ext <<EOF
9619 #line 9620 "configure"
9620 #include "confdefs.h"
9621 #include <math.h>
9622 int main() {
9623  __builtin_fabs(0);
9624 ; return 0; }
9625 EOF
9626 if { (eval echo configure:9627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9627   rm -rf conftest*
9628   glibcpp_cv_func___builtin_fabs_use=yes
9629 else
9630   echo "configure: failed program was:" >&5
9631   cat conftest.$ac_ext >&5
9632   rm -rf conftest*
9633   glibcpp_cv_func___builtin_fabs_use=no
9634 fi
9635 rm -f conftest*
9636       ac_ext=c
9637 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9638 ac_cpp='$CPP $CPPFLAGS'
9639 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9640 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9641 cross_compiling=$ac_cv_prog_cc_cross
9642
9643     
9644 fi
9645
9646   fi
9647   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
9648   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
9649     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
9650 echo "configure:9651: checking for __builtin_fabs linkage" >&5
9651     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
9652       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
9653   echo $ac_n "(cached) $ac_c" 1>&6
9654 else
9655   
9656         cat > conftest.$ac_ext <<EOF
9657 #line 9658 "configure"
9658 #include "confdefs.h"
9659 #include <math.h>
9660 int main() {
9661  __builtin_fabs(0);
9662 ; return 0; }
9663 EOF
9664 if { (eval echo configure:9665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9665   rm -rf conftest*
9666   glibcpp_cv_func___builtin_fabs_link=yes
9667 else
9668   echo "configure: failed program was:" >&5
9669   cat conftest.$ac_ext >&5
9670   rm -rf conftest*
9671   glibcpp_cv_func___builtin_fabs_link=no
9672 fi
9673 rm -f conftest*
9674       
9675 fi
9676
9677     fi
9678     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
9679     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
9680       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9681       cat >> confdefs.h <<EOF
9682 #define ${ac_tr_func} 1
9683 EOF
9684
9685     fi
9686   fi
9687
9688   
9689   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
9690 echo "configure:9691: checking for __builtin_fabsl declaration" >&5
9691   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
9692     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
9693   echo $ac_n "(cached) $ac_c" 1>&6
9694 else
9695   
9696       
9697       ac_ext=C
9698 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9699 ac_cpp='$CXXCPP $CPPFLAGS'
9700 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9701 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9702 cross_compiling=$ac_cv_prog_cxx_cross
9703
9704       cat > conftest.$ac_ext <<EOF
9705 #line 9706 "configure"
9706 #include "confdefs.h"
9707 #include <math.h>
9708 int main() {
9709  __builtin_fabsl(0);
9710 ; return 0; }
9711 EOF
9712 if { (eval echo configure:9713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9713   rm -rf conftest*
9714   glibcpp_cv_func___builtin_fabsl_use=yes
9715 else
9716   echo "configure: failed program was:" >&5
9717   cat conftest.$ac_ext >&5
9718   rm -rf conftest*
9719   glibcpp_cv_func___builtin_fabsl_use=no
9720 fi
9721 rm -f conftest*
9722       ac_ext=c
9723 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9724 ac_cpp='$CPP $CPPFLAGS'
9725 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9726 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9727 cross_compiling=$ac_cv_prog_cc_cross
9728
9729     
9730 fi
9731
9732   fi
9733   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
9734   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
9735     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
9736 echo "configure:9737: checking for __builtin_fabsl linkage" >&5
9737     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
9738       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
9739   echo $ac_n "(cached) $ac_c" 1>&6
9740 else
9741   
9742         cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure"
9744 #include "confdefs.h"
9745 #include <math.h>
9746 int main() {
9747  __builtin_fabsl(0);
9748 ; return 0; }
9749 EOF
9750 if { (eval echo configure:9751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9751   rm -rf conftest*
9752   glibcpp_cv_func___builtin_fabsl_link=yes
9753 else
9754   echo "configure: failed program was:" >&5
9755   cat conftest.$ac_ext >&5
9756   rm -rf conftest*
9757   glibcpp_cv_func___builtin_fabsl_link=no
9758 fi
9759 rm -f conftest*
9760       
9761 fi
9762
9763     fi
9764     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
9765     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
9766       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9767       cat >> confdefs.h <<EOF
9768 #define ${ac_tr_func} 1
9769 EOF
9770
9771     fi
9772   fi
9773
9774   
9775   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
9776 echo "configure:9777: checking for __builtin_labs declaration" >&5
9777   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
9778     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
9779   echo $ac_n "(cached) $ac_c" 1>&6
9780 else
9781   
9782       
9783       ac_ext=C
9784 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9785 ac_cpp='$CXXCPP $CPPFLAGS'
9786 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9787 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9788 cross_compiling=$ac_cv_prog_cxx_cross
9789
9790       cat > conftest.$ac_ext <<EOF
9791 #line 9792 "configure"
9792 #include "confdefs.h"
9793 #include <math.h>
9794 int main() {
9795  __builtin_labs(0);
9796 ; return 0; }
9797 EOF
9798 if { (eval echo configure:9799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9799   rm -rf conftest*
9800   glibcpp_cv_func___builtin_labs_use=yes
9801 else
9802   echo "configure: failed program was:" >&5
9803   cat conftest.$ac_ext >&5
9804   rm -rf conftest*
9805   glibcpp_cv_func___builtin_labs_use=no
9806 fi
9807 rm -f conftest*
9808       ac_ext=c
9809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9810 ac_cpp='$CPP $CPPFLAGS'
9811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9813 cross_compiling=$ac_cv_prog_cc_cross
9814
9815     
9816 fi
9817
9818   fi
9819   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
9820   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
9821     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
9822 echo "configure:9823: checking for __builtin_labs linkage" >&5
9823     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
9824       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
9825   echo $ac_n "(cached) $ac_c" 1>&6
9826 else
9827   
9828         cat > conftest.$ac_ext <<EOF
9829 #line 9830 "configure"
9830 #include "confdefs.h"
9831 #include <math.h>
9832 int main() {
9833  __builtin_labs(0);
9834 ; return 0; }
9835 EOF
9836 if { (eval echo configure:9837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9837   rm -rf conftest*
9838   glibcpp_cv_func___builtin_labs_link=yes
9839 else
9840   echo "configure: failed program was:" >&5
9841   cat conftest.$ac_ext >&5
9842   rm -rf conftest*
9843   glibcpp_cv_func___builtin_labs_link=no
9844 fi
9845 rm -f conftest*
9846       
9847 fi
9848
9849     fi
9850     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
9851     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
9852       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9853       cat >> confdefs.h <<EOF
9854 #define ${ac_tr_func} 1
9855 EOF
9856
9857     fi
9858   fi
9859
9860
9861   
9862   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
9863 echo "configure:9864: checking for __builtin_sqrtf declaration" >&5
9864   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
9865     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
9866   echo $ac_n "(cached) $ac_c" 1>&6
9867 else
9868   
9869       
9870       ac_ext=C
9871 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9872 ac_cpp='$CXXCPP $CPPFLAGS'
9873 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9874 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9875 cross_compiling=$ac_cv_prog_cxx_cross
9876
9877       cat > conftest.$ac_ext <<EOF
9878 #line 9879 "configure"
9879 #include "confdefs.h"
9880 #include <math.h>
9881 int main() {
9882  __builtin_sqrtf(0);
9883 ; return 0; }
9884 EOF
9885 if { (eval echo configure:9886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9886   rm -rf conftest*
9887   glibcpp_cv_func___builtin_sqrtf_use=yes
9888 else
9889   echo "configure: failed program was:" >&5
9890   cat conftest.$ac_ext >&5
9891   rm -rf conftest*
9892   glibcpp_cv_func___builtin_sqrtf_use=no
9893 fi
9894 rm -f conftest*
9895       ac_ext=c
9896 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9897 ac_cpp='$CPP $CPPFLAGS'
9898 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9899 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9900 cross_compiling=$ac_cv_prog_cc_cross
9901
9902     
9903 fi
9904
9905   fi
9906   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
9907   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
9908     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
9909 echo "configure:9910: checking for __builtin_sqrtf linkage" >&5
9910     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
9911       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
9912   echo $ac_n "(cached) $ac_c" 1>&6
9913 else
9914   
9915         cat > conftest.$ac_ext <<EOF
9916 #line 9917 "configure"
9917 #include "confdefs.h"
9918 #include <math.h>
9919 int main() {
9920  __builtin_sqrtf(0);
9921 ; return 0; }
9922 EOF
9923 if { (eval echo configure:9924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9924   rm -rf conftest*
9925   glibcpp_cv_func___builtin_sqrtf_link=yes
9926 else
9927   echo "configure: failed program was:" >&5
9928   cat conftest.$ac_ext >&5
9929   rm -rf conftest*
9930   glibcpp_cv_func___builtin_sqrtf_link=no
9931 fi
9932 rm -f conftest*
9933       
9934 fi
9935
9936     fi
9937     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
9938     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
9939       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9940       cat >> confdefs.h <<EOF
9941 #define ${ac_tr_func} 1
9942 EOF
9943
9944     fi
9945   fi
9946
9947   
9948   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
9949 echo "configure:9950: checking for __builtin_sqrt declaration" >&5
9950   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
9951     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
9952   echo $ac_n "(cached) $ac_c" 1>&6
9953 else
9954   
9955       
9956       ac_ext=C
9957 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9958 ac_cpp='$CXXCPP $CPPFLAGS'
9959 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9960 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9961 cross_compiling=$ac_cv_prog_cxx_cross
9962
9963       cat > conftest.$ac_ext <<EOF
9964 #line 9965 "configure"
9965 #include "confdefs.h"
9966 #include <math.h>
9967 int main() {
9968  __builtin_sqrt(0);
9969 ; return 0; }
9970 EOF
9971 if { (eval echo configure:9972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9972   rm -rf conftest*
9973   glibcpp_cv_func___builtin_sqrt_use=yes
9974 else
9975   echo "configure: failed program was:" >&5
9976   cat conftest.$ac_ext >&5
9977   rm -rf conftest*
9978   glibcpp_cv_func___builtin_sqrt_use=no
9979 fi
9980 rm -f conftest*
9981       ac_ext=c
9982 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9983 ac_cpp='$CPP $CPPFLAGS'
9984 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9985 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9986 cross_compiling=$ac_cv_prog_cc_cross
9987
9988     
9989 fi
9990
9991   fi
9992   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
9993   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
9994     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
9995 echo "configure:9996: checking for __builtin_sqrt linkage" >&5
9996     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
9997       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
9998   echo $ac_n "(cached) $ac_c" 1>&6
9999 else
10000   
10001         cat > conftest.$ac_ext <<EOF
10002 #line 10003 "configure"
10003 #include "confdefs.h"
10004 #include <math.h>
10005 int main() {
10006  __builtin_sqrt(0);
10007 ; return 0; }
10008 EOF
10009 if { (eval echo configure:10010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10010   rm -rf conftest*
10011   glibcpp_cv_func___builtin_sqrt_link=yes
10012 else
10013   echo "configure: failed program was:" >&5
10014   cat conftest.$ac_ext >&5
10015   rm -rf conftest*
10016   glibcpp_cv_func___builtin_sqrt_link=no
10017 fi
10018 rm -f conftest*
10019       
10020 fi
10021
10022     fi
10023     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
10024     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
10025       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10026       cat >> confdefs.h <<EOF
10027 #define ${ac_tr_func} 1
10028 EOF
10029
10030     fi
10031   fi
10032
10033   
10034   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
10035 echo "configure:10036: checking for __builtin_sqrtl declaration" >&5
10036   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
10037     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
10038   echo $ac_n "(cached) $ac_c" 1>&6
10039 else
10040   
10041       
10042       ac_ext=C
10043 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10044 ac_cpp='$CXXCPP $CPPFLAGS'
10045 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10046 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10047 cross_compiling=$ac_cv_prog_cxx_cross
10048
10049       cat > conftest.$ac_ext <<EOF
10050 #line 10051 "configure"
10051 #include "confdefs.h"
10052 #include <math.h>
10053 int main() {
10054  __builtin_sqrtl(0);
10055 ; return 0; }
10056 EOF
10057 if { (eval echo configure:10058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10058   rm -rf conftest*
10059   glibcpp_cv_func___builtin_sqrtl_use=yes
10060 else
10061   echo "configure: failed program was:" >&5
10062   cat conftest.$ac_ext >&5
10063   rm -rf conftest*
10064   glibcpp_cv_func___builtin_sqrtl_use=no
10065 fi
10066 rm -f conftest*
10067       ac_ext=c
10068 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10069 ac_cpp='$CPP $CPPFLAGS'
10070 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10071 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10072 cross_compiling=$ac_cv_prog_cc_cross
10073
10074     
10075 fi
10076
10077   fi
10078   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
10079   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
10080     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
10081 echo "configure:10082: checking for __builtin_sqrtl linkage" >&5
10082     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
10083       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
10084   echo $ac_n "(cached) $ac_c" 1>&6
10085 else
10086   
10087         cat > conftest.$ac_ext <<EOF
10088 #line 10089 "configure"
10089 #include "confdefs.h"
10090 #include <math.h>
10091 int main() {
10092  __builtin_sqrtl(0);
10093 ; return 0; }
10094 EOF
10095 if { (eval echo configure:10096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10096   rm -rf conftest*
10097   glibcpp_cv_func___builtin_sqrtl_link=yes
10098 else
10099   echo "configure: failed program was:" >&5
10100   cat conftest.$ac_ext >&5
10101   rm -rf conftest*
10102   glibcpp_cv_func___builtin_sqrtl_link=no
10103 fi
10104 rm -f conftest*
10105       
10106 fi
10107
10108     fi
10109     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
10110     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
10111       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10112       cat >> confdefs.h <<EOF
10113 #define ${ac_tr_func} 1
10114 EOF
10115
10116     fi
10117   fi
10118
10119
10120   
10121   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
10122 echo "configure:10123: checking for __builtin_sinf declaration" >&5
10123   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
10124     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
10125   echo $ac_n "(cached) $ac_c" 1>&6
10126 else
10127   
10128       
10129       ac_ext=C
10130 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10131 ac_cpp='$CXXCPP $CPPFLAGS'
10132 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10133 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10134 cross_compiling=$ac_cv_prog_cxx_cross
10135
10136       cat > conftest.$ac_ext <<EOF
10137 #line 10138 "configure"
10138 #include "confdefs.h"
10139 #include <math.h>
10140 int main() {
10141  __builtin_sinf(0);
10142 ; return 0; }
10143 EOF
10144 if { (eval echo configure:10145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10145   rm -rf conftest*
10146   glibcpp_cv_func___builtin_sinf_use=yes
10147 else
10148   echo "configure: failed program was:" >&5
10149   cat conftest.$ac_ext >&5
10150   rm -rf conftest*
10151   glibcpp_cv_func___builtin_sinf_use=no
10152 fi
10153 rm -f conftest*
10154       ac_ext=c
10155 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10156 ac_cpp='$CPP $CPPFLAGS'
10157 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10158 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10159 cross_compiling=$ac_cv_prog_cc_cross
10160
10161     
10162 fi
10163
10164   fi
10165   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
10166   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
10167     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
10168 echo "configure:10169: checking for __builtin_sinf linkage" >&5
10169     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
10170       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
10171   echo $ac_n "(cached) $ac_c" 1>&6
10172 else
10173   
10174         cat > conftest.$ac_ext <<EOF
10175 #line 10176 "configure"
10176 #include "confdefs.h"
10177 #include <math.h>
10178 int main() {
10179  __builtin_sinf(0);
10180 ; return 0; }
10181 EOF
10182 if { (eval echo configure:10183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10183   rm -rf conftest*
10184   glibcpp_cv_func___builtin_sinf_link=yes
10185 else
10186   echo "configure: failed program was:" >&5
10187   cat conftest.$ac_ext >&5
10188   rm -rf conftest*
10189   glibcpp_cv_func___builtin_sinf_link=no
10190 fi
10191 rm -f conftest*
10192       
10193 fi
10194
10195     fi
10196     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
10197     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
10198       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10199       cat >> confdefs.h <<EOF
10200 #define ${ac_tr_func} 1
10201 EOF
10202
10203     fi
10204   fi
10205
10206   
10207   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
10208 echo "configure:10209: checking for __builtin_sin declaration" >&5
10209   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
10210     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
10211   echo $ac_n "(cached) $ac_c" 1>&6
10212 else
10213   
10214       
10215       ac_ext=C
10216 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10217 ac_cpp='$CXXCPP $CPPFLAGS'
10218 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10219 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10220 cross_compiling=$ac_cv_prog_cxx_cross
10221
10222       cat > conftest.$ac_ext <<EOF
10223 #line 10224 "configure"
10224 #include "confdefs.h"
10225 #include <math.h>
10226 int main() {
10227  __builtin_sin(0);
10228 ; return 0; }
10229 EOF
10230 if { (eval echo configure:10231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10231   rm -rf conftest*
10232   glibcpp_cv_func___builtin_sin_use=yes
10233 else
10234   echo "configure: failed program was:" >&5
10235   cat conftest.$ac_ext >&5
10236   rm -rf conftest*
10237   glibcpp_cv_func___builtin_sin_use=no
10238 fi
10239 rm -f conftest*
10240       ac_ext=c
10241 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10242 ac_cpp='$CPP $CPPFLAGS'
10243 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10244 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10245 cross_compiling=$ac_cv_prog_cc_cross
10246
10247     
10248 fi
10249
10250   fi
10251   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
10252   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
10253     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
10254 echo "configure:10255: checking for __builtin_sin linkage" >&5
10255     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
10256       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
10257   echo $ac_n "(cached) $ac_c" 1>&6
10258 else
10259   
10260         cat > conftest.$ac_ext <<EOF
10261 #line 10262 "configure"
10262 #include "confdefs.h"
10263 #include <math.h>
10264 int main() {
10265  __builtin_sin(0);
10266 ; return 0; }
10267 EOF
10268 if { (eval echo configure:10269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10269   rm -rf conftest*
10270   glibcpp_cv_func___builtin_sin_link=yes
10271 else
10272   echo "configure: failed program was:" >&5
10273   cat conftest.$ac_ext >&5
10274   rm -rf conftest*
10275   glibcpp_cv_func___builtin_sin_link=no
10276 fi
10277 rm -f conftest*
10278       
10279 fi
10280
10281     fi
10282     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
10283     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
10284       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10285       cat >> confdefs.h <<EOF
10286 #define ${ac_tr_func} 1
10287 EOF
10288
10289     fi
10290   fi
10291
10292   
10293   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
10294 echo "configure:10295: checking for __builtin_sinl declaration" >&5
10295   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
10296     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
10297   echo $ac_n "(cached) $ac_c" 1>&6
10298 else
10299   
10300       
10301       ac_ext=C
10302 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10303 ac_cpp='$CXXCPP $CPPFLAGS'
10304 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10305 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10306 cross_compiling=$ac_cv_prog_cxx_cross
10307
10308       cat > conftest.$ac_ext <<EOF
10309 #line 10310 "configure"
10310 #include "confdefs.h"
10311 #include <math.h>
10312 int main() {
10313  __builtin_sinl(0);
10314 ; return 0; }
10315 EOF
10316 if { (eval echo configure:10317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10317   rm -rf conftest*
10318   glibcpp_cv_func___builtin_sinl_use=yes
10319 else
10320   echo "configure: failed program was:" >&5
10321   cat conftest.$ac_ext >&5
10322   rm -rf conftest*
10323   glibcpp_cv_func___builtin_sinl_use=no
10324 fi
10325 rm -f conftest*
10326       ac_ext=c
10327 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10328 ac_cpp='$CPP $CPPFLAGS'
10329 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10330 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10331 cross_compiling=$ac_cv_prog_cc_cross
10332
10333     
10334 fi
10335
10336   fi
10337   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
10338   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
10339     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
10340 echo "configure:10341: checking for __builtin_sinl linkage" >&5
10341     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
10342       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
10343   echo $ac_n "(cached) $ac_c" 1>&6
10344 else
10345   
10346         cat > conftest.$ac_ext <<EOF
10347 #line 10348 "configure"
10348 #include "confdefs.h"
10349 #include <math.h>
10350 int main() {
10351  __builtin_sinl(0);
10352 ; return 0; }
10353 EOF
10354 if { (eval echo configure:10355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10355   rm -rf conftest*
10356   glibcpp_cv_func___builtin_sinl_link=yes
10357 else
10358   echo "configure: failed program was:" >&5
10359   cat conftest.$ac_ext >&5
10360   rm -rf conftest*
10361   glibcpp_cv_func___builtin_sinl_link=no
10362 fi
10363 rm -f conftest*
10364       
10365 fi
10366
10367     fi
10368     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
10369     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
10370       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10371       cat >> confdefs.h <<EOF
10372 #define ${ac_tr_func} 1
10373 EOF
10374
10375     fi
10376   fi
10377
10378
10379   
10380   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
10381 echo "configure:10382: checking for __builtin_cosf declaration" >&5
10382   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
10383     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
10384   echo $ac_n "(cached) $ac_c" 1>&6
10385 else
10386   
10387       
10388       ac_ext=C
10389 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10390 ac_cpp='$CXXCPP $CPPFLAGS'
10391 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10392 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10393 cross_compiling=$ac_cv_prog_cxx_cross
10394
10395       cat > conftest.$ac_ext <<EOF
10396 #line 10397 "configure"
10397 #include "confdefs.h"
10398 #include <math.h>
10399 int main() {
10400  __builtin_cosf(0);
10401 ; return 0; }
10402 EOF
10403 if { (eval echo configure:10404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10404   rm -rf conftest*
10405   glibcpp_cv_func___builtin_cosf_use=yes
10406 else
10407   echo "configure: failed program was:" >&5
10408   cat conftest.$ac_ext >&5
10409   rm -rf conftest*
10410   glibcpp_cv_func___builtin_cosf_use=no
10411 fi
10412 rm -f conftest*
10413       ac_ext=c
10414 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10415 ac_cpp='$CPP $CPPFLAGS'
10416 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10417 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10418 cross_compiling=$ac_cv_prog_cc_cross
10419
10420     
10421 fi
10422
10423   fi
10424   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
10425   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
10426     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
10427 echo "configure:10428: checking for __builtin_cosf linkage" >&5
10428     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
10429       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
10430   echo $ac_n "(cached) $ac_c" 1>&6
10431 else
10432   
10433         cat > conftest.$ac_ext <<EOF
10434 #line 10435 "configure"
10435 #include "confdefs.h"
10436 #include <math.h>
10437 int main() {
10438  __builtin_cosf(0);
10439 ; return 0; }
10440 EOF
10441 if { (eval echo configure:10442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10442   rm -rf conftest*
10443   glibcpp_cv_func___builtin_cosf_link=yes
10444 else
10445   echo "configure: failed program was:" >&5
10446   cat conftest.$ac_ext >&5
10447   rm -rf conftest*
10448   glibcpp_cv_func___builtin_cosf_link=no
10449 fi
10450 rm -f conftest*
10451       
10452 fi
10453
10454     fi
10455     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
10456     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
10457       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10458       cat >> confdefs.h <<EOF
10459 #define ${ac_tr_func} 1
10460 EOF
10461
10462     fi
10463   fi
10464
10465   
10466   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
10467 echo "configure:10468: checking for __builtin_cos declaration" >&5
10468   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
10469     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
10470   echo $ac_n "(cached) $ac_c" 1>&6
10471 else
10472   
10473       
10474       ac_ext=C
10475 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10476 ac_cpp='$CXXCPP $CPPFLAGS'
10477 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10478 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10479 cross_compiling=$ac_cv_prog_cxx_cross
10480
10481       cat > conftest.$ac_ext <<EOF
10482 #line 10483 "configure"
10483 #include "confdefs.h"
10484 #include <math.h>
10485 int main() {
10486  __builtin_cos(0);
10487 ; return 0; }
10488 EOF
10489 if { (eval echo configure:10490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10490   rm -rf conftest*
10491   glibcpp_cv_func___builtin_cos_use=yes
10492 else
10493   echo "configure: failed program was:" >&5
10494   cat conftest.$ac_ext >&5
10495   rm -rf conftest*
10496   glibcpp_cv_func___builtin_cos_use=no
10497 fi
10498 rm -f conftest*
10499       ac_ext=c
10500 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10501 ac_cpp='$CPP $CPPFLAGS'
10502 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10503 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10504 cross_compiling=$ac_cv_prog_cc_cross
10505
10506     
10507 fi
10508
10509   fi
10510   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
10511   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
10512     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
10513 echo "configure:10514: checking for __builtin_cos linkage" >&5
10514     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
10515       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
10516   echo $ac_n "(cached) $ac_c" 1>&6
10517 else
10518   
10519         cat > conftest.$ac_ext <<EOF
10520 #line 10521 "configure"
10521 #include "confdefs.h"
10522 #include <math.h>
10523 int main() {
10524  __builtin_cos(0);
10525 ; return 0; }
10526 EOF
10527 if { (eval echo configure:10528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10528   rm -rf conftest*
10529   glibcpp_cv_func___builtin_cos_link=yes
10530 else
10531   echo "configure: failed program was:" >&5
10532   cat conftest.$ac_ext >&5
10533   rm -rf conftest*
10534   glibcpp_cv_func___builtin_cos_link=no
10535 fi
10536 rm -f conftest*
10537       
10538 fi
10539
10540     fi
10541     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
10542     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
10543       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10544       cat >> confdefs.h <<EOF
10545 #define ${ac_tr_func} 1
10546 EOF
10547
10548     fi
10549   fi
10550
10551   
10552   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
10553 echo "configure:10554: checking for __builtin_cosl declaration" >&5
10554   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
10555     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
10556   echo $ac_n "(cached) $ac_c" 1>&6
10557 else
10558   
10559       
10560       ac_ext=C
10561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10562 ac_cpp='$CXXCPP $CPPFLAGS'
10563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10565 cross_compiling=$ac_cv_prog_cxx_cross
10566
10567       cat > conftest.$ac_ext <<EOF
10568 #line 10569 "configure"
10569 #include "confdefs.h"
10570 #include <math.h>
10571 int main() {
10572  __builtin_cosl(0);
10573 ; return 0; }
10574 EOF
10575 if { (eval echo configure:10576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10576   rm -rf conftest*
10577   glibcpp_cv_func___builtin_cosl_use=yes
10578 else
10579   echo "configure: failed program was:" >&5
10580   cat conftest.$ac_ext >&5
10581   rm -rf conftest*
10582   glibcpp_cv_func___builtin_cosl_use=no
10583 fi
10584 rm -f conftest*
10585       ac_ext=c
10586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10587 ac_cpp='$CPP $CPPFLAGS'
10588 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10589 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10590 cross_compiling=$ac_cv_prog_cc_cross
10591
10592     
10593 fi
10594
10595   fi
10596   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
10597   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
10598     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
10599 echo "configure:10600: checking for __builtin_cosl linkage" >&5
10600     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
10601       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
10602   echo $ac_n "(cached) $ac_c" 1>&6
10603 else
10604   
10605         cat > conftest.$ac_ext <<EOF
10606 #line 10607 "configure"
10607 #include "confdefs.h"
10608 #include <math.h>
10609 int main() {
10610  __builtin_cosl(0);
10611 ; return 0; }
10612 EOF
10613 if { (eval echo configure:10614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10614   rm -rf conftest*
10615   glibcpp_cv_func___builtin_cosl_link=yes
10616 else
10617   echo "configure: failed program was:" >&5
10618   cat conftest.$ac_ext >&5
10619   rm -rf conftest*
10620   glibcpp_cv_func___builtin_cosl_link=no
10621 fi
10622 rm -f conftest*
10623       
10624 fi
10625
10626     fi
10627     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
10628     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
10629       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10630       cat >> confdefs.h <<EOF
10631 #define ${ac_tr_func} 1
10632 EOF
10633
10634     fi
10635   fi
10636
10637
10638               dummyvar=no
10639   if test x$dummyvar = x"yes"; then
10640     cat >> confdefs.h <<\EOF
10641 #define HAVE___BUILTIN_ABS 1
10642 EOF
10643
10644     cat >> confdefs.h <<\EOF
10645 #define HAVE___BUILTIN_LABS 1
10646 EOF
10647
10648     cat >> confdefs.h <<\EOF
10649 #define HAVE___BUILTIN_COS 1
10650 EOF
10651
10652     cat >> confdefs.h <<\EOF
10653 #define HAVE___BUILTIN_COSF 1
10654 EOF
10655
10656     cat >> confdefs.h <<\EOF
10657 #define HAVE___BUILTIN_COSL 1
10658 EOF
10659
10660     cat >> confdefs.h <<\EOF
10661 #define HAVE___BUILTIN_FABS 1
10662 EOF
10663
10664     cat >> confdefs.h <<\EOF
10665 #define HAVE___BUILTIN_FABSF 1
10666 EOF
10667
10668     cat >> confdefs.h <<\EOF
10669 #define HAVE___BUILTIN_FABSL 1
10670 EOF
10671
10672     cat >> confdefs.h <<\EOF
10673 #define HAVE___BUILTIN_SIN 1
10674 EOF
10675
10676     cat >> confdefs.h <<\EOF
10677 #define HAVE___BUILTIN_SINF 1
10678 EOF
10679
10680     cat >> confdefs.h <<\EOF
10681 #define HAVE___BUILTIN_SINL 1
10682 EOF
10683
10684     cat >> confdefs.h <<\EOF
10685 #define HAVE___BUILTIN_SQRT 1
10686 EOF
10687
10688     cat >> confdefs.h <<\EOF
10689 #define HAVE___BUILTIN_SQRTF 1
10690 EOF
10691
10692     cat >> confdefs.h <<\EOF
10693 #define HAVE___BUILTIN_SQRTL 1
10694 EOF
10695
10696   fi
10697
10698   
10699   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10700   ac_save_CXXFLAGS="$CXXFLAGS"
10701   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10702
10703     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10704 echo "configure:10705: checking for sin in -lm" >&5
10705 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10706 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10707   echo $ac_n "(cached) $ac_c" 1>&6
10708 else
10709   ac_save_LIBS="$LIBS"
10710 LIBS="-lm  $LIBS"
10711 cat > conftest.$ac_ext <<EOF
10712 #line 10713 "configure"
10713 #include "confdefs.h"
10714 /* Override any gcc2 internal prototype to avoid an error.  */
10715 /* We use char because int might match the return type of a gcc2
10716     builtin and then its argument prototype would still apply.  */
10717 char sin();
10718
10719 int main() {
10720 sin()
10721 ; return 0; }
10722 EOF
10723 if { (eval echo configure:10724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10724   rm -rf conftest*
10725   eval "ac_cv_lib_$ac_lib_var=yes"
10726 else
10727   echo "configure: failed program was:" >&5
10728   cat conftest.$ac_ext >&5
10729   rm -rf conftest*
10730   eval "ac_cv_lib_$ac_lib_var=no"
10731 fi
10732 rm -f conftest*
10733 LIBS="$ac_save_LIBS"
10734
10735 fi
10736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10737   echo "$ac_t""yes" 1>&6
10738   libm="-lm"
10739 else
10740   echo "$ac_t""no" 1>&6
10741 fi
10742
10743   ac_save_LIBS="$LIBS"
10744   LIBS="$LIBS $libm"
10745
10746     
10747   
10748   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10749 echo "configure:10750: checking for isinf declaration" >&5
10750   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10751     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10752   echo $ac_n "(cached) $ac_c" 1>&6
10753 else
10754   
10755       
10756       ac_ext=C
10757 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10758 ac_cpp='$CXXCPP $CPPFLAGS'
10759 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10760 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10761 cross_compiling=$ac_cv_prog_cxx_cross
10762
10763       cat > conftest.$ac_ext <<EOF
10764 #line 10765 "configure"
10765 #include "confdefs.h"
10766 #include <math.h>
10767                       #ifdef HAVE_IEEEFP_H
10768                       #include <ieeefp.h>
10769                       #endif
10770                      
10771 int main() {
10772  isinf(0);
10773 ; return 0; }
10774 EOF
10775 if { (eval echo configure:10776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10776   rm -rf conftest*
10777   glibcpp_cv_func_isinf_use=yes
10778 else
10779   echo "configure: failed program was:" >&5
10780   cat conftest.$ac_ext >&5
10781   rm -rf conftest*
10782   glibcpp_cv_func_isinf_use=no
10783 fi
10784 rm -f conftest*
10785       ac_ext=c
10786 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10787 ac_cpp='$CPP $CPPFLAGS'
10788 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10789 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10790 cross_compiling=$ac_cv_prog_cc_cross
10791
10792     
10793 fi
10794
10795   fi
10796   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10797
10798   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10799     for ac_func in isinf
10800 do
10801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10802 echo "configure:10803: checking for $ac_func" >&5
10803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10804   echo $ac_n "(cached) $ac_c" 1>&6
10805 else
10806   cat > conftest.$ac_ext <<EOF
10807 #line 10808 "configure"
10808 #include "confdefs.h"
10809 /* System header to define __stub macros and hopefully few prototypes,
10810     which can conflict with char $ac_func(); below.  */
10811 #include <assert.h>
10812 /* Override any gcc2 internal prototype to avoid an error.  */
10813 /* We use char because int might match the return type of a gcc2
10814     builtin and then its argument prototype would still apply.  */
10815 char $ac_func();
10816
10817 int main() {
10818
10819 /* The GNU C library defines this for functions which it implements
10820     to always fail with ENOSYS.  Some functions are actually named
10821     something starting with __ and the normal name is an alias.  */
10822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10823 choke me
10824 #else
10825 $ac_func();
10826 #endif
10827
10828 ; return 0; }
10829 EOF
10830 if { (eval echo configure:10831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10831   rm -rf conftest*
10832   eval "ac_cv_func_$ac_func=yes"
10833 else
10834   echo "configure: failed program was:" >&5
10835   cat conftest.$ac_ext >&5
10836   rm -rf conftest*
10837   eval "ac_cv_func_$ac_func=no"
10838 fi
10839 rm -f conftest*
10840 fi
10841
10842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10843   echo "$ac_t""yes" 1>&6
10844     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10845   cat >> confdefs.h <<EOF
10846 #define $ac_tr_func 1
10847 EOF
10848  
10849 else
10850   echo "$ac_t""no" 1>&6
10851 fi
10852 done
10853     
10854   else
10855     
10856   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10857 echo "configure:10858: checking for _isinf declaration" >&5
10858   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10859     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10860   echo $ac_n "(cached) $ac_c" 1>&6
10861 else
10862   
10863       
10864       ac_ext=C
10865 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10866 ac_cpp='$CXXCPP $CPPFLAGS'
10867 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10868 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10869 cross_compiling=$ac_cv_prog_cxx_cross
10870
10871       cat > conftest.$ac_ext <<EOF
10872 #line 10873 "configure"
10873 #include "confdefs.h"
10874 #include <math.h>
10875                       #ifdef HAVE_IEEEFP_H
10876                       #include <ieeefp.h>
10877                       #endif
10878                      
10879 int main() {
10880  _isinf(0);
10881 ; return 0; }
10882 EOF
10883 if { (eval echo configure:10884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10884   rm -rf conftest*
10885   glibcpp_cv_func__isinf_use=yes
10886 else
10887   echo "configure: failed program was:" >&5
10888   cat conftest.$ac_ext >&5
10889   rm -rf conftest*
10890   glibcpp_cv_func__isinf_use=no
10891 fi
10892 rm -f conftest*
10893       ac_ext=c
10894 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10895 ac_cpp='$CPP $CPPFLAGS'
10896 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10897 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10898 cross_compiling=$ac_cv_prog_cc_cross
10899
10900     
10901 fi
10902
10903   fi
10904   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10905
10906     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10907       for ac_func in _isinf
10908 do
10909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10910 echo "configure:10911: checking for $ac_func" >&5
10911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10912   echo $ac_n "(cached) $ac_c" 1>&6
10913 else
10914   cat > conftest.$ac_ext <<EOF
10915 #line 10916 "configure"
10916 #include "confdefs.h"
10917 /* System header to define __stub macros and hopefully few prototypes,
10918     which can conflict with char $ac_func(); below.  */
10919 #include <assert.h>
10920 /* Override any gcc2 internal prototype to avoid an error.  */
10921 /* We use char because int might match the return type of a gcc2
10922     builtin and then its argument prototype would still apply.  */
10923 char $ac_func();
10924
10925 int main() {
10926
10927 /* The GNU C library defines this for functions which it implements
10928     to always fail with ENOSYS.  Some functions are actually named
10929     something starting with __ and the normal name is an alias.  */
10930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10931 choke me
10932 #else
10933 $ac_func();
10934 #endif
10935
10936 ; return 0; }
10937 EOF
10938 if { (eval echo configure:10939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10939   rm -rf conftest*
10940   eval "ac_cv_func_$ac_func=yes"
10941 else
10942   echo "configure: failed program was:" >&5
10943   cat conftest.$ac_ext >&5
10944   rm -rf conftest*
10945   eval "ac_cv_func_$ac_func=no"
10946 fi
10947 rm -f conftest*
10948 fi
10949
10950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10951   echo "$ac_t""yes" 1>&6
10952     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10953   cat >> confdefs.h <<EOF
10954 #define $ac_tr_func 1
10955 EOF
10956  
10957 else
10958   echo "$ac_t""no" 1>&6
10959 fi
10960 done
10961     
10962     fi
10963   fi
10964
10965   
10966   
10967   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10968 echo "configure:10969: checking for isnan declaration" >&5
10969   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10970     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10971   echo $ac_n "(cached) $ac_c" 1>&6
10972 else
10973   
10974       
10975       ac_ext=C
10976 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10977 ac_cpp='$CXXCPP $CPPFLAGS'
10978 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10979 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10980 cross_compiling=$ac_cv_prog_cxx_cross
10981
10982       cat > conftest.$ac_ext <<EOF
10983 #line 10984 "configure"
10984 #include "confdefs.h"
10985 #include <math.h>
10986                       #ifdef HAVE_IEEEFP_H
10987                       #include <ieeefp.h>
10988                       #endif
10989                      
10990 int main() {
10991  isnan(0);
10992 ; return 0; }
10993 EOF
10994 if { (eval echo configure:10995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10995   rm -rf conftest*
10996   glibcpp_cv_func_isnan_use=yes
10997 else
10998   echo "configure: failed program was:" >&5
10999   cat conftest.$ac_ext >&5
11000   rm -rf conftest*
11001   glibcpp_cv_func_isnan_use=no
11002 fi
11003 rm -f conftest*
11004       ac_ext=c
11005 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11006 ac_cpp='$CPP $CPPFLAGS'
11007 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11008 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11009 cross_compiling=$ac_cv_prog_cc_cross
11010
11011     
11012 fi
11013
11014   fi
11015   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
11016
11017   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
11018     for ac_func in isnan
11019 do
11020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11021 echo "configure:11022: checking for $ac_func" >&5
11022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11023   echo $ac_n "(cached) $ac_c" 1>&6
11024 else
11025   cat > conftest.$ac_ext <<EOF
11026 #line 11027 "configure"
11027 #include "confdefs.h"
11028 /* System header to define __stub macros and hopefully few prototypes,
11029     which can conflict with char $ac_func(); below.  */
11030 #include <assert.h>
11031 /* Override any gcc2 internal prototype to avoid an error.  */
11032 /* We use char because int might match the return type of a gcc2
11033     builtin and then its argument prototype would still apply.  */
11034 char $ac_func();
11035
11036 int main() {
11037
11038 /* The GNU C library defines this for functions which it implements
11039     to always fail with ENOSYS.  Some functions are actually named
11040     something starting with __ and the normal name is an alias.  */
11041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11042 choke me
11043 #else
11044 $ac_func();
11045 #endif
11046
11047 ; return 0; }
11048 EOF
11049 if { (eval echo configure:11050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11050   rm -rf conftest*
11051   eval "ac_cv_func_$ac_func=yes"
11052 else
11053   echo "configure: failed program was:" >&5
11054   cat conftest.$ac_ext >&5
11055   rm -rf conftest*
11056   eval "ac_cv_func_$ac_func=no"
11057 fi
11058 rm -f conftest*
11059 fi
11060
11061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11062   echo "$ac_t""yes" 1>&6
11063     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11064   cat >> confdefs.h <<EOF
11065 #define $ac_tr_func 1
11066 EOF
11067  
11068 else
11069   echo "$ac_t""no" 1>&6
11070 fi
11071 done
11072     
11073   else
11074     
11075   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11076 echo "configure:11077: checking for _isnan declaration" >&5
11077   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11078     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11079   echo $ac_n "(cached) $ac_c" 1>&6
11080 else
11081   
11082       
11083       ac_ext=C
11084 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11085 ac_cpp='$CXXCPP $CPPFLAGS'
11086 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11087 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11088 cross_compiling=$ac_cv_prog_cxx_cross
11089
11090       cat > conftest.$ac_ext <<EOF
11091 #line 11092 "configure"
11092 #include "confdefs.h"
11093 #include <math.h>
11094                       #ifdef HAVE_IEEEFP_H
11095                       #include <ieeefp.h>
11096                       #endif
11097                      
11098 int main() {
11099  _isnan(0);
11100 ; return 0; }
11101 EOF
11102 if { (eval echo configure:11103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11103   rm -rf conftest*
11104   glibcpp_cv_func__isnan_use=yes
11105 else
11106   echo "configure: failed program was:" >&5
11107   cat conftest.$ac_ext >&5
11108   rm -rf conftest*
11109   glibcpp_cv_func__isnan_use=no
11110 fi
11111 rm -f conftest*
11112       ac_ext=c
11113 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11114 ac_cpp='$CPP $CPPFLAGS'
11115 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11116 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11117 cross_compiling=$ac_cv_prog_cc_cross
11118
11119     
11120 fi
11121
11122   fi
11123   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11124
11125     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11126       for ac_func in _isnan
11127 do
11128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11129 echo "configure:11130: checking for $ac_func" >&5
11130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11131   echo $ac_n "(cached) $ac_c" 1>&6
11132 else
11133   cat > conftest.$ac_ext <<EOF
11134 #line 11135 "configure"
11135 #include "confdefs.h"
11136 /* System header to define __stub macros and hopefully few prototypes,
11137     which can conflict with char $ac_func(); below.  */
11138 #include <assert.h>
11139 /* Override any gcc2 internal prototype to avoid an error.  */
11140 /* We use char because int might match the return type of a gcc2
11141     builtin and then its argument prototype would still apply.  */
11142 char $ac_func();
11143
11144 int main() {
11145
11146 /* The GNU C library defines this for functions which it implements
11147     to always fail with ENOSYS.  Some functions are actually named
11148     something starting with __ and the normal name is an alias.  */
11149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11150 choke me
11151 #else
11152 $ac_func();
11153 #endif
11154
11155 ; return 0; }
11156 EOF
11157 if { (eval echo configure:11158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11158   rm -rf conftest*
11159   eval "ac_cv_func_$ac_func=yes"
11160 else
11161   echo "configure: failed program was:" >&5
11162   cat conftest.$ac_ext >&5
11163   rm -rf conftest*
11164   eval "ac_cv_func_$ac_func=no"
11165 fi
11166 rm -f conftest*
11167 fi
11168
11169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11170   echo "$ac_t""yes" 1>&6
11171     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11172   cat >> confdefs.h <<EOF
11173 #define $ac_tr_func 1
11174 EOF
11175  
11176 else
11177   echo "$ac_t""no" 1>&6
11178 fi
11179 done
11180     
11181     fi
11182   fi
11183
11184   
11185   
11186   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11187 echo "configure:11188: checking for finite declaration" >&5
11188   if test x${glibcpp_cv_func_finite_use+set} != xset; then
11189     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11190   echo $ac_n "(cached) $ac_c" 1>&6
11191 else
11192   
11193       
11194       ac_ext=C
11195 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11196 ac_cpp='$CXXCPP $CPPFLAGS'
11197 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11198 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11199 cross_compiling=$ac_cv_prog_cxx_cross
11200
11201       cat > conftest.$ac_ext <<EOF
11202 #line 11203 "configure"
11203 #include "confdefs.h"
11204 #include <math.h>
11205                       #ifdef HAVE_IEEEFP_H
11206                       #include <ieeefp.h>
11207                       #endif
11208                      
11209 int main() {
11210  finite(0);
11211 ; return 0; }
11212 EOF
11213 if { (eval echo configure:11214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11214   rm -rf conftest*
11215   glibcpp_cv_func_finite_use=yes
11216 else
11217   echo "configure: failed program was:" >&5
11218   cat conftest.$ac_ext >&5
11219   rm -rf conftest*
11220   glibcpp_cv_func_finite_use=no
11221 fi
11222 rm -f conftest*
11223       ac_ext=c
11224 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11225 ac_cpp='$CPP $CPPFLAGS'
11226 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11227 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11228 cross_compiling=$ac_cv_prog_cc_cross
11229
11230     
11231 fi
11232
11233   fi
11234   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11235
11236   if test x$glibcpp_cv_func_finite_use = x"yes"; then
11237     for ac_func in finite
11238 do
11239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11240 echo "configure:11241: checking for $ac_func" >&5
11241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11242   echo $ac_n "(cached) $ac_c" 1>&6
11243 else
11244   cat > conftest.$ac_ext <<EOF
11245 #line 11246 "configure"
11246 #include "confdefs.h"
11247 /* System header to define __stub macros and hopefully few prototypes,
11248     which can conflict with char $ac_func(); below.  */
11249 #include <assert.h>
11250 /* Override any gcc2 internal prototype to avoid an error.  */
11251 /* We use char because int might match the return type of a gcc2
11252     builtin and then its argument prototype would still apply.  */
11253 char $ac_func();
11254
11255 int main() {
11256
11257 /* The GNU C library defines this for functions which it implements
11258     to always fail with ENOSYS.  Some functions are actually named
11259     something starting with __ and the normal name is an alias.  */
11260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11261 choke me
11262 #else
11263 $ac_func();
11264 #endif
11265
11266 ; return 0; }
11267 EOF
11268 if { (eval echo configure:11269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11269   rm -rf conftest*
11270   eval "ac_cv_func_$ac_func=yes"
11271 else
11272   echo "configure: failed program was:" >&5
11273   cat conftest.$ac_ext >&5
11274   rm -rf conftest*
11275   eval "ac_cv_func_$ac_func=no"
11276 fi
11277 rm -f conftest*
11278 fi
11279
11280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11281   echo "$ac_t""yes" 1>&6
11282     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11283   cat >> confdefs.h <<EOF
11284 #define $ac_tr_func 1
11285 EOF
11286  
11287 else
11288   echo "$ac_t""no" 1>&6
11289 fi
11290 done
11291     
11292   else
11293     
11294   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11295 echo "configure:11296: checking for _finite declaration" >&5
11296   if test x${glibcpp_cv_func__finite_use+set} != xset; then
11297     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11298   echo $ac_n "(cached) $ac_c" 1>&6
11299 else
11300   
11301       
11302       ac_ext=C
11303 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11304 ac_cpp='$CXXCPP $CPPFLAGS'
11305 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11306 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11307 cross_compiling=$ac_cv_prog_cxx_cross
11308
11309       cat > conftest.$ac_ext <<EOF
11310 #line 11311 "configure"
11311 #include "confdefs.h"
11312 #include <math.h>
11313                       #ifdef HAVE_IEEEFP_H
11314                       #include <ieeefp.h>
11315                       #endif
11316                      
11317 int main() {
11318  _finite(0);
11319 ; return 0; }
11320 EOF
11321 if { (eval echo configure:11322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11322   rm -rf conftest*
11323   glibcpp_cv_func__finite_use=yes
11324 else
11325   echo "configure: failed program was:" >&5
11326   cat conftest.$ac_ext >&5
11327   rm -rf conftest*
11328   glibcpp_cv_func__finite_use=no
11329 fi
11330 rm -f conftest*
11331       ac_ext=c
11332 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11333 ac_cpp='$CPP $CPPFLAGS'
11334 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11335 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11336 cross_compiling=$ac_cv_prog_cc_cross
11337
11338     
11339 fi
11340
11341   fi
11342   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11343
11344     if test x$glibcpp_cv_func__finite_use = x"yes"; then
11345       for ac_func in _finite
11346 do
11347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11348 echo "configure:11349: checking for $ac_func" >&5
11349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11350   echo $ac_n "(cached) $ac_c" 1>&6
11351 else
11352   cat > conftest.$ac_ext <<EOF
11353 #line 11354 "configure"
11354 #include "confdefs.h"
11355 /* System header to define __stub macros and hopefully few prototypes,
11356     which can conflict with char $ac_func(); below.  */
11357 #include <assert.h>
11358 /* Override any gcc2 internal prototype to avoid an error.  */
11359 /* We use char because int might match the return type of a gcc2
11360     builtin and then its argument prototype would still apply.  */
11361 char $ac_func();
11362
11363 int main() {
11364
11365 /* The GNU C library defines this for functions which it implements
11366     to always fail with ENOSYS.  Some functions are actually named
11367     something starting with __ and the normal name is an alias.  */
11368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11369 choke me
11370 #else
11371 $ac_func();
11372 #endif
11373
11374 ; return 0; }
11375 EOF
11376 if { (eval echo configure:11377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11377   rm -rf conftest*
11378   eval "ac_cv_func_$ac_func=yes"
11379 else
11380   echo "configure: failed program was:" >&5
11381   cat conftest.$ac_ext >&5
11382   rm -rf conftest*
11383   eval "ac_cv_func_$ac_func=no"
11384 fi
11385 rm -f conftest*
11386 fi
11387
11388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11389   echo "$ac_t""yes" 1>&6
11390     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11391   cat >> confdefs.h <<EOF
11392 #define $ac_tr_func 1
11393 EOF
11394  
11395 else
11396   echo "$ac_t""no" 1>&6
11397 fi
11398 done
11399     
11400     fi
11401   fi
11402
11403   
11404   
11405   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11406 echo "configure:11407: checking for copysign declaration" >&5
11407   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11408     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11409   echo $ac_n "(cached) $ac_c" 1>&6
11410 else
11411   
11412       
11413       ac_ext=C
11414 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11415 ac_cpp='$CXXCPP $CPPFLAGS'
11416 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11417 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11418 cross_compiling=$ac_cv_prog_cxx_cross
11419
11420       cat > conftest.$ac_ext <<EOF
11421 #line 11422 "configure"
11422 #include "confdefs.h"
11423 #include <math.h>
11424 int main() {
11425  copysign(0, 0);
11426 ; return 0; }
11427 EOF
11428 if { (eval echo configure:11429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11429   rm -rf conftest*
11430   glibcpp_cv_func_copysign_use=yes
11431 else
11432   echo "configure: failed program was:" >&5
11433   cat conftest.$ac_ext >&5
11434   rm -rf conftest*
11435   glibcpp_cv_func_copysign_use=no
11436 fi
11437 rm -f conftest*
11438       ac_ext=c
11439 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11440 ac_cpp='$CPP $CPPFLAGS'
11441 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11442 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11443 cross_compiling=$ac_cv_prog_cc_cross
11444
11445     
11446 fi
11447
11448   fi
11449   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11450
11451   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11452     for ac_func in copysign
11453 do
11454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11455 echo "configure:11456: checking for $ac_func" >&5
11456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11457   echo $ac_n "(cached) $ac_c" 1>&6
11458 else
11459   cat > conftest.$ac_ext <<EOF
11460 #line 11461 "configure"
11461 #include "confdefs.h"
11462 /* System header to define __stub macros and hopefully few prototypes,
11463     which can conflict with char $ac_func(); below.  */
11464 #include <assert.h>
11465 /* Override any gcc2 internal prototype to avoid an error.  */
11466 /* We use char because int might match the return type of a gcc2
11467     builtin and then its argument prototype would still apply.  */
11468 char $ac_func();
11469
11470 int main() {
11471
11472 /* The GNU C library defines this for functions which it implements
11473     to always fail with ENOSYS.  Some functions are actually named
11474     something starting with __ and the normal name is an alias.  */
11475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11476 choke me
11477 #else
11478 $ac_func();
11479 #endif
11480
11481 ; return 0; }
11482 EOF
11483 if { (eval echo configure:11484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11484   rm -rf conftest*
11485   eval "ac_cv_func_$ac_func=yes"
11486 else
11487   echo "configure: failed program was:" >&5
11488   cat conftest.$ac_ext >&5
11489   rm -rf conftest*
11490   eval "ac_cv_func_$ac_func=no"
11491 fi
11492 rm -f conftest*
11493 fi
11494
11495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11496   echo "$ac_t""yes" 1>&6
11497     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11498   cat >> confdefs.h <<EOF
11499 #define $ac_tr_func 1
11500 EOF
11501  
11502 else
11503   echo "$ac_t""no" 1>&6
11504 fi
11505 done
11506     
11507   else
11508     
11509   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11510 echo "configure:11511: checking for _copysign declaration" >&5
11511   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11512     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11513   echo $ac_n "(cached) $ac_c" 1>&6
11514 else
11515   
11516       
11517       ac_ext=C
11518 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11519 ac_cpp='$CXXCPP $CPPFLAGS'
11520 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11521 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11522 cross_compiling=$ac_cv_prog_cxx_cross
11523
11524       cat > conftest.$ac_ext <<EOF
11525 #line 11526 "configure"
11526 #include "confdefs.h"
11527 #include <math.h>
11528 int main() {
11529  _copysign(0, 0);
11530 ; return 0; }
11531 EOF
11532 if { (eval echo configure:11533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11533   rm -rf conftest*
11534   glibcpp_cv_func__copysign_use=yes
11535 else
11536   echo "configure: failed program was:" >&5
11537   cat conftest.$ac_ext >&5
11538   rm -rf conftest*
11539   glibcpp_cv_func__copysign_use=no
11540 fi
11541 rm -f conftest*
11542       ac_ext=c
11543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11544 ac_cpp='$CPP $CPPFLAGS'
11545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11547 cross_compiling=$ac_cv_prog_cc_cross
11548
11549     
11550 fi
11551
11552   fi
11553   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11554
11555     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11556       for ac_func in _copysign
11557 do
11558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11559 echo "configure:11560: checking for $ac_func" >&5
11560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11561   echo $ac_n "(cached) $ac_c" 1>&6
11562 else
11563   cat > conftest.$ac_ext <<EOF
11564 #line 11565 "configure"
11565 #include "confdefs.h"
11566 /* System header to define __stub macros and hopefully few prototypes,
11567     which can conflict with char $ac_func(); below.  */
11568 #include <assert.h>
11569 /* Override any gcc2 internal prototype to avoid an error.  */
11570 /* We use char because int might match the return type of a gcc2
11571     builtin and then its argument prototype would still apply.  */
11572 char $ac_func();
11573
11574 int main() {
11575
11576 /* The GNU C library defines this for functions which it implements
11577     to always fail with ENOSYS.  Some functions are actually named
11578     something starting with __ and the normal name is an alias.  */
11579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11580 choke me
11581 #else
11582 $ac_func();
11583 #endif
11584
11585 ; return 0; }
11586 EOF
11587 if { (eval echo configure:11588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11588   rm -rf conftest*
11589   eval "ac_cv_func_$ac_func=yes"
11590 else
11591   echo "configure: failed program was:" >&5
11592   cat conftest.$ac_ext >&5
11593   rm -rf conftest*
11594   eval "ac_cv_func_$ac_func=no"
11595 fi
11596 rm -f conftest*
11597 fi
11598
11599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11600   echo "$ac_t""yes" 1>&6
11601     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11602   cat >> confdefs.h <<EOF
11603 #define $ac_tr_func 1
11604 EOF
11605  
11606 else
11607   echo "$ac_t""no" 1>&6
11608 fi
11609 done
11610     
11611     fi
11612   fi
11613
11614   
11615   
11616   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11617 echo "configure:11618: checking for sincos declaration" >&5
11618   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11619     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11620   echo $ac_n "(cached) $ac_c" 1>&6
11621 else
11622   
11623       
11624       ac_ext=C
11625 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11626 ac_cpp='$CXXCPP $CPPFLAGS'
11627 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11628 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11629 cross_compiling=$ac_cv_prog_cxx_cross
11630
11631       cat > conftest.$ac_ext <<EOF
11632 #line 11633 "configure"
11633 #include "confdefs.h"
11634 #include <math.h>
11635 int main() {
11636  sincos(0, 0, 0);
11637 ; return 0; }
11638 EOF
11639 if { (eval echo configure:11640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11640   rm -rf conftest*
11641   glibcpp_cv_func_sincos_use=yes
11642 else
11643   echo "configure: failed program was:" >&5
11644   cat conftest.$ac_ext >&5
11645   rm -rf conftest*
11646   glibcpp_cv_func_sincos_use=no
11647 fi
11648 rm -f conftest*
11649       ac_ext=c
11650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11651 ac_cpp='$CPP $CPPFLAGS'
11652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11654 cross_compiling=$ac_cv_prog_cc_cross
11655
11656     
11657 fi
11658
11659   fi
11660   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11661
11662   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11663     for ac_func in sincos
11664 do
11665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11666 echo "configure:11667: checking for $ac_func" >&5
11667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11668   echo $ac_n "(cached) $ac_c" 1>&6
11669 else
11670   cat > conftest.$ac_ext <<EOF
11671 #line 11672 "configure"
11672 #include "confdefs.h"
11673 /* System header to define __stub macros and hopefully few prototypes,
11674     which can conflict with char $ac_func(); below.  */
11675 #include <assert.h>
11676 /* Override any gcc2 internal prototype to avoid an error.  */
11677 /* We use char because int might match the return type of a gcc2
11678     builtin and then its argument prototype would still apply.  */
11679 char $ac_func();
11680
11681 int main() {
11682
11683 /* The GNU C library defines this for functions which it implements
11684     to always fail with ENOSYS.  Some functions are actually named
11685     something starting with __ and the normal name is an alias.  */
11686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11687 choke me
11688 #else
11689 $ac_func();
11690 #endif
11691
11692 ; return 0; }
11693 EOF
11694 if { (eval echo configure:11695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11695   rm -rf conftest*
11696   eval "ac_cv_func_$ac_func=yes"
11697 else
11698   echo "configure: failed program was:" >&5
11699   cat conftest.$ac_ext >&5
11700   rm -rf conftest*
11701   eval "ac_cv_func_$ac_func=no"
11702 fi
11703 rm -f conftest*
11704 fi
11705
11706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11707   echo "$ac_t""yes" 1>&6
11708     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11709   cat >> confdefs.h <<EOF
11710 #define $ac_tr_func 1
11711 EOF
11712  
11713 else
11714   echo "$ac_t""no" 1>&6
11715 fi
11716 done
11717     
11718   else
11719     
11720   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11721 echo "configure:11722: checking for _sincos declaration" >&5
11722   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11723     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11724   echo $ac_n "(cached) $ac_c" 1>&6
11725 else
11726   
11727       
11728       ac_ext=C
11729 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11730 ac_cpp='$CXXCPP $CPPFLAGS'
11731 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11732 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11733 cross_compiling=$ac_cv_prog_cxx_cross
11734
11735       cat > conftest.$ac_ext <<EOF
11736 #line 11737 "configure"
11737 #include "confdefs.h"
11738 #include <math.h>
11739 int main() {
11740  _sincos(0, 0, 0);
11741 ; return 0; }
11742 EOF
11743 if { (eval echo configure:11744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11744   rm -rf conftest*
11745   glibcpp_cv_func__sincos_use=yes
11746 else
11747   echo "configure: failed program was:" >&5
11748   cat conftest.$ac_ext >&5
11749   rm -rf conftest*
11750   glibcpp_cv_func__sincos_use=no
11751 fi
11752 rm -f conftest*
11753       ac_ext=c
11754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11755 ac_cpp='$CPP $CPPFLAGS'
11756 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11757 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11758 cross_compiling=$ac_cv_prog_cc_cross
11759
11760     
11761 fi
11762
11763   fi
11764   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11765
11766     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11767       for ac_func in _sincos
11768 do
11769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11770 echo "configure:11771: checking for $ac_func" >&5
11771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11772   echo $ac_n "(cached) $ac_c" 1>&6
11773 else
11774   cat > conftest.$ac_ext <<EOF
11775 #line 11776 "configure"
11776 #include "confdefs.h"
11777 /* System header to define __stub macros and hopefully few prototypes,
11778     which can conflict with char $ac_func(); below.  */
11779 #include <assert.h>
11780 /* Override any gcc2 internal prototype to avoid an error.  */
11781 /* We use char because int might match the return type of a gcc2
11782     builtin and then its argument prototype would still apply.  */
11783 char $ac_func();
11784
11785 int main() {
11786
11787 /* The GNU C library defines this for functions which it implements
11788     to always fail with ENOSYS.  Some functions are actually named
11789     something starting with __ and the normal name is an alias.  */
11790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11791 choke me
11792 #else
11793 $ac_func();
11794 #endif
11795
11796 ; return 0; }
11797 EOF
11798 if { (eval echo configure:11799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11799   rm -rf conftest*
11800   eval "ac_cv_func_$ac_func=yes"
11801 else
11802   echo "configure: failed program was:" >&5
11803   cat conftest.$ac_ext >&5
11804   rm -rf conftest*
11805   eval "ac_cv_func_$ac_func=no"
11806 fi
11807 rm -f conftest*
11808 fi
11809
11810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11811   echo "$ac_t""yes" 1>&6
11812     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11813   cat >> confdefs.h <<EOF
11814 #define $ac_tr_func 1
11815 EOF
11816  
11817 else
11818   echo "$ac_t""no" 1>&6
11819 fi
11820 done
11821     
11822     fi
11823   fi
11824
11825   
11826   
11827   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11828 echo "configure:11829: checking for fpclass declaration" >&5
11829   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11830     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11831   echo $ac_n "(cached) $ac_c" 1>&6
11832 else
11833   
11834       
11835       ac_ext=C
11836 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11837 ac_cpp='$CXXCPP $CPPFLAGS'
11838 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11839 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11840 cross_compiling=$ac_cv_prog_cxx_cross
11841
11842       cat > conftest.$ac_ext <<EOF
11843 #line 11844 "configure"
11844 #include "confdefs.h"
11845 #include <math.h>
11846                       #ifdef HAVE_IEEEFP_H
11847                       #include <ieeefp.h>
11848                       #endif
11849                      
11850 int main() {
11851  fpclass(0);
11852 ; return 0; }
11853 EOF
11854 if { (eval echo configure:11855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11855   rm -rf conftest*
11856   glibcpp_cv_func_fpclass_use=yes
11857 else
11858   echo "configure: failed program was:" >&5
11859   cat conftest.$ac_ext >&5
11860   rm -rf conftest*
11861   glibcpp_cv_func_fpclass_use=no
11862 fi
11863 rm -f conftest*
11864       ac_ext=c
11865 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11866 ac_cpp='$CPP $CPPFLAGS'
11867 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11868 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11869 cross_compiling=$ac_cv_prog_cc_cross
11870
11871     
11872 fi
11873
11874   fi
11875   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11876
11877   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11878     for ac_func in fpclass
11879 do
11880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11881 echo "configure:11882: checking for $ac_func" >&5
11882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11883   echo $ac_n "(cached) $ac_c" 1>&6
11884 else
11885   cat > conftest.$ac_ext <<EOF
11886 #line 11887 "configure"
11887 #include "confdefs.h"
11888 /* System header to define __stub macros and hopefully few prototypes,
11889     which can conflict with char $ac_func(); below.  */
11890 #include <assert.h>
11891 /* Override any gcc2 internal prototype to avoid an error.  */
11892 /* We use char because int might match the return type of a gcc2
11893     builtin and then its argument prototype would still apply.  */
11894 char $ac_func();
11895
11896 int main() {
11897
11898 /* The GNU C library defines this for functions which it implements
11899     to always fail with ENOSYS.  Some functions are actually named
11900     something starting with __ and the normal name is an alias.  */
11901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11902 choke me
11903 #else
11904 $ac_func();
11905 #endif
11906
11907 ; return 0; }
11908 EOF
11909 if { (eval echo configure:11910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11910   rm -rf conftest*
11911   eval "ac_cv_func_$ac_func=yes"
11912 else
11913   echo "configure: failed program was:" >&5
11914   cat conftest.$ac_ext >&5
11915   rm -rf conftest*
11916   eval "ac_cv_func_$ac_func=no"
11917 fi
11918 rm -f conftest*
11919 fi
11920
11921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11922   echo "$ac_t""yes" 1>&6
11923     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11924   cat >> confdefs.h <<EOF
11925 #define $ac_tr_func 1
11926 EOF
11927  
11928 else
11929   echo "$ac_t""no" 1>&6
11930 fi
11931 done
11932     
11933   else
11934     
11935   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11936 echo "configure:11937: checking for _fpclass declaration" >&5
11937   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11938     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11939   echo $ac_n "(cached) $ac_c" 1>&6
11940 else
11941   
11942       
11943       ac_ext=C
11944 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11945 ac_cpp='$CXXCPP $CPPFLAGS'
11946 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11947 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11948 cross_compiling=$ac_cv_prog_cxx_cross
11949
11950       cat > conftest.$ac_ext <<EOF
11951 #line 11952 "configure"
11952 #include "confdefs.h"
11953 #include <math.h>
11954                       #ifdef HAVE_IEEEFP_H
11955                       #include <ieeefp.h>
11956                       #endif
11957                      
11958 int main() {
11959  _fpclass(0);
11960 ; return 0; }
11961 EOF
11962 if { (eval echo configure:11963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11963   rm -rf conftest*
11964   glibcpp_cv_func__fpclass_use=yes
11965 else
11966   echo "configure: failed program was:" >&5
11967   cat conftest.$ac_ext >&5
11968   rm -rf conftest*
11969   glibcpp_cv_func__fpclass_use=no
11970 fi
11971 rm -f conftest*
11972       ac_ext=c
11973 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11974 ac_cpp='$CPP $CPPFLAGS'
11975 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11976 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11977 cross_compiling=$ac_cv_prog_cc_cross
11978
11979     
11980 fi
11981
11982   fi
11983   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11984
11985     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11986       for ac_func in _fpclass
11987 do
11988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11989 echo "configure:11990: checking for $ac_func" >&5
11990 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11991   echo $ac_n "(cached) $ac_c" 1>&6
11992 else
11993   cat > conftest.$ac_ext <<EOF
11994 #line 11995 "configure"
11995 #include "confdefs.h"
11996 /* System header to define __stub macros and hopefully few prototypes,
11997     which can conflict with char $ac_func(); below.  */
11998 #include <assert.h>
11999 /* Override any gcc2 internal prototype to avoid an error.  */
12000 /* We use char because int might match the return type of a gcc2
12001     builtin and then its argument prototype would still apply.  */
12002 char $ac_func();
12003
12004 int main() {
12005
12006 /* The GNU C library defines this for functions which it implements
12007     to always fail with ENOSYS.  Some functions are actually named
12008     something starting with __ and the normal name is an alias.  */
12009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12010 choke me
12011 #else
12012 $ac_func();
12013 #endif
12014
12015 ; return 0; }
12016 EOF
12017 if { (eval echo configure:12018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12018   rm -rf conftest*
12019   eval "ac_cv_func_$ac_func=yes"
12020 else
12021   echo "configure: failed program was:" >&5
12022   cat conftest.$ac_ext >&5
12023   rm -rf conftest*
12024   eval "ac_cv_func_$ac_func=no"
12025 fi
12026 rm -f conftest*
12027 fi
12028
12029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12030   echo "$ac_t""yes" 1>&6
12031     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12032   cat >> confdefs.h <<EOF
12033 #define $ac_tr_func 1
12034 EOF
12035  
12036 else
12037   echo "$ac_t""no" 1>&6
12038 fi
12039 done
12040     
12041     fi
12042   fi
12043
12044   
12045   
12046   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12047 echo "configure:12048: checking for qfpclass declaration" >&5
12048   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12049     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12050   echo $ac_n "(cached) $ac_c" 1>&6
12051 else
12052   
12053       
12054       ac_ext=C
12055 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12056 ac_cpp='$CXXCPP $CPPFLAGS'
12057 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12058 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12059 cross_compiling=$ac_cv_prog_cxx_cross
12060
12061       cat > conftest.$ac_ext <<EOF
12062 #line 12063 "configure"
12063 #include "confdefs.h"
12064 #include <math.h>
12065                       #ifdef HAVE_IEEEFP_H
12066                       #include <ieeefp.h>
12067                       #endif
12068                      
12069 int main() {
12070  qfpclass(0);
12071 ; return 0; }
12072 EOF
12073 if { (eval echo configure:12074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12074   rm -rf conftest*
12075   glibcpp_cv_func_qfpclass_use=yes
12076 else
12077   echo "configure: failed program was:" >&5
12078   cat conftest.$ac_ext >&5
12079   rm -rf conftest*
12080   glibcpp_cv_func_qfpclass_use=no
12081 fi
12082 rm -f conftest*
12083       ac_ext=c
12084 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12085 ac_cpp='$CPP $CPPFLAGS'
12086 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12087 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12088 cross_compiling=$ac_cv_prog_cc_cross
12089
12090     
12091 fi
12092
12093   fi
12094   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12095
12096   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12097     for ac_func in qfpclass
12098 do
12099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12100 echo "configure:12101: checking for $ac_func" >&5
12101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12102   echo $ac_n "(cached) $ac_c" 1>&6
12103 else
12104   cat > conftest.$ac_ext <<EOF
12105 #line 12106 "configure"
12106 #include "confdefs.h"
12107 /* System header to define __stub macros and hopefully few prototypes,
12108     which can conflict with char $ac_func(); below.  */
12109 #include <assert.h>
12110 /* Override any gcc2 internal prototype to avoid an error.  */
12111 /* We use char because int might match the return type of a gcc2
12112     builtin and then its argument prototype would still apply.  */
12113 char $ac_func();
12114
12115 int main() {
12116
12117 /* The GNU C library defines this for functions which it implements
12118     to always fail with ENOSYS.  Some functions are actually named
12119     something starting with __ and the normal name is an alias.  */
12120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12121 choke me
12122 #else
12123 $ac_func();
12124 #endif
12125
12126 ; return 0; }
12127 EOF
12128 if { (eval echo configure:12129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12129   rm -rf conftest*
12130   eval "ac_cv_func_$ac_func=yes"
12131 else
12132   echo "configure: failed program was:" >&5
12133   cat conftest.$ac_ext >&5
12134   rm -rf conftest*
12135   eval "ac_cv_func_$ac_func=no"
12136 fi
12137 rm -f conftest*
12138 fi
12139
12140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12141   echo "$ac_t""yes" 1>&6
12142     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12143   cat >> confdefs.h <<EOF
12144 #define $ac_tr_func 1
12145 EOF
12146  
12147 else
12148   echo "$ac_t""no" 1>&6
12149 fi
12150 done
12151     
12152   else
12153     
12154   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12155 echo "configure:12156: checking for _qfpclass declaration" >&5
12156   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12157     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12158   echo $ac_n "(cached) $ac_c" 1>&6
12159 else
12160   
12161       
12162       ac_ext=C
12163 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12164 ac_cpp='$CXXCPP $CPPFLAGS'
12165 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12166 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12167 cross_compiling=$ac_cv_prog_cxx_cross
12168
12169       cat > conftest.$ac_ext <<EOF
12170 #line 12171 "configure"
12171 #include "confdefs.h"
12172 #include <math.h>
12173                       #ifdef HAVE_IEEEFP_H
12174                       #include <ieeefp.h>
12175                       #endif
12176                      
12177 int main() {
12178  _qfpclass(0);
12179 ; return 0; }
12180 EOF
12181 if { (eval echo configure:12182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12182   rm -rf conftest*
12183   glibcpp_cv_func__qfpclass_use=yes
12184 else
12185   echo "configure: failed program was:" >&5
12186   cat conftest.$ac_ext >&5
12187   rm -rf conftest*
12188   glibcpp_cv_func__qfpclass_use=no
12189 fi
12190 rm -f conftest*
12191       ac_ext=c
12192 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12193 ac_cpp='$CPP $CPPFLAGS'
12194 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12195 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12196 cross_compiling=$ac_cv_prog_cc_cross
12197
12198     
12199 fi
12200
12201   fi
12202   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12203
12204     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12205       for ac_func in _qfpclass
12206 do
12207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12208 echo "configure:12209: checking for $ac_func" >&5
12209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12210   echo $ac_n "(cached) $ac_c" 1>&6
12211 else
12212   cat > conftest.$ac_ext <<EOF
12213 #line 12214 "configure"
12214 #include "confdefs.h"
12215 /* System header to define __stub macros and hopefully few prototypes,
12216     which can conflict with char $ac_func(); below.  */
12217 #include <assert.h>
12218 /* Override any gcc2 internal prototype to avoid an error.  */
12219 /* We use char because int might match the return type of a gcc2
12220     builtin and then its argument prototype would still apply.  */
12221 char $ac_func();
12222
12223 int main() {
12224
12225 /* The GNU C library defines this for functions which it implements
12226     to always fail with ENOSYS.  Some functions are actually named
12227     something starting with __ and the normal name is an alias.  */
12228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12229 choke me
12230 #else
12231 $ac_func();
12232 #endif
12233
12234 ; return 0; }
12235 EOF
12236 if { (eval echo configure:12237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12237   rm -rf conftest*
12238   eval "ac_cv_func_$ac_func=yes"
12239 else
12240   echo "configure: failed program was:" >&5
12241   cat conftest.$ac_ext >&5
12242   rm -rf conftest*
12243   eval "ac_cv_func_$ac_func=no"
12244 fi
12245 rm -f conftest*
12246 fi
12247
12248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12249   echo "$ac_t""yes" 1>&6
12250     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12251   cat >> confdefs.h <<EOF
12252 #define $ac_tr_func 1
12253 EOF
12254  
12255 else
12256   echo "$ac_t""no" 1>&6
12257 fi
12258 done
12259     
12260     fi
12261   fi
12262
12263   
12264   
12265   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12266 echo "configure:12267: checking for hypot declaration" >&5
12267   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12268     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12269   echo $ac_n "(cached) $ac_c" 1>&6
12270 else
12271   
12272       
12273       ac_ext=C
12274 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12275 ac_cpp='$CXXCPP $CPPFLAGS'
12276 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12277 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12278 cross_compiling=$ac_cv_prog_cxx_cross
12279
12280       cat > conftest.$ac_ext <<EOF
12281 #line 12282 "configure"
12282 #include "confdefs.h"
12283 #include <math.h>
12284 int main() {
12285  hypot(0, 0);
12286 ; return 0; }
12287 EOF
12288 if { (eval echo configure:12289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12289   rm -rf conftest*
12290   glibcpp_cv_func_hypot_use=yes
12291 else
12292   echo "configure: failed program was:" >&5
12293   cat conftest.$ac_ext >&5
12294   rm -rf conftest*
12295   glibcpp_cv_func_hypot_use=no
12296 fi
12297 rm -f conftest*
12298       ac_ext=c
12299 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12300 ac_cpp='$CPP $CPPFLAGS'
12301 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12302 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12303 cross_compiling=$ac_cv_prog_cc_cross
12304
12305     
12306 fi
12307
12308   fi
12309   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12310
12311   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12312     for ac_func in hypot
12313 do
12314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12315 echo "configure:12316: checking for $ac_func" >&5
12316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12317   echo $ac_n "(cached) $ac_c" 1>&6
12318 else
12319   cat > conftest.$ac_ext <<EOF
12320 #line 12321 "configure"
12321 #include "confdefs.h"
12322 /* System header to define __stub macros and hopefully few prototypes,
12323     which can conflict with char $ac_func(); below.  */
12324 #include <assert.h>
12325 /* Override any gcc2 internal prototype to avoid an error.  */
12326 /* We use char because int might match the return type of a gcc2
12327     builtin and then its argument prototype would still apply.  */
12328 char $ac_func();
12329
12330 int main() {
12331
12332 /* The GNU C library defines this for functions which it implements
12333     to always fail with ENOSYS.  Some functions are actually named
12334     something starting with __ and the normal name is an alias.  */
12335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12336 choke me
12337 #else
12338 $ac_func();
12339 #endif
12340
12341 ; return 0; }
12342 EOF
12343 if { (eval echo configure:12344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12344   rm -rf conftest*
12345   eval "ac_cv_func_$ac_func=yes"
12346 else
12347   echo "configure: failed program was:" >&5
12348   cat conftest.$ac_ext >&5
12349   rm -rf conftest*
12350   eval "ac_cv_func_$ac_func=no"
12351 fi
12352 rm -f conftest*
12353 fi
12354
12355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12356   echo "$ac_t""yes" 1>&6
12357     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12358   cat >> confdefs.h <<EOF
12359 #define $ac_tr_func 1
12360 EOF
12361  
12362 else
12363   echo "$ac_t""no" 1>&6
12364 fi
12365 done
12366     
12367   else
12368     
12369   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12370 echo "configure:12371: checking for _hypot declaration" >&5
12371   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12372     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12373   echo $ac_n "(cached) $ac_c" 1>&6
12374 else
12375   
12376       
12377       ac_ext=C
12378 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12379 ac_cpp='$CXXCPP $CPPFLAGS'
12380 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12381 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12382 cross_compiling=$ac_cv_prog_cxx_cross
12383
12384       cat > conftest.$ac_ext <<EOF
12385 #line 12386 "configure"
12386 #include "confdefs.h"
12387 #include <math.h>
12388 int main() {
12389  _hypot(0, 0);
12390 ; return 0; }
12391 EOF
12392 if { (eval echo configure:12393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12393   rm -rf conftest*
12394   glibcpp_cv_func__hypot_use=yes
12395 else
12396   echo "configure: failed program was:" >&5
12397   cat conftest.$ac_ext >&5
12398   rm -rf conftest*
12399   glibcpp_cv_func__hypot_use=no
12400 fi
12401 rm -f conftest*
12402       ac_ext=c
12403 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12404 ac_cpp='$CPP $CPPFLAGS'
12405 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12406 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12407 cross_compiling=$ac_cv_prog_cc_cross
12408
12409     
12410 fi
12411
12412   fi
12413   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12414
12415     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12416       for ac_func in _hypot
12417 do
12418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12419 echo "configure:12420: checking for $ac_func" >&5
12420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12421   echo $ac_n "(cached) $ac_c" 1>&6
12422 else
12423   cat > conftest.$ac_ext <<EOF
12424 #line 12425 "configure"
12425 #include "confdefs.h"
12426 /* System header to define __stub macros and hopefully few prototypes,
12427     which can conflict with char $ac_func(); below.  */
12428 #include <assert.h>
12429 /* Override any gcc2 internal prototype to avoid an error.  */
12430 /* We use char because int might match the return type of a gcc2
12431     builtin and then its argument prototype would still apply.  */
12432 char $ac_func();
12433
12434 int main() {
12435
12436 /* The GNU C library defines this for functions which it implements
12437     to always fail with ENOSYS.  Some functions are actually named
12438     something starting with __ and the normal name is an alias.  */
12439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12440 choke me
12441 #else
12442 $ac_func();
12443 #endif
12444
12445 ; return 0; }
12446 EOF
12447 if { (eval echo configure:12448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12448   rm -rf conftest*
12449   eval "ac_cv_func_$ac_func=yes"
12450 else
12451   echo "configure: failed program was:" >&5
12452   cat conftest.$ac_ext >&5
12453   rm -rf conftest*
12454   eval "ac_cv_func_$ac_func=no"
12455 fi
12456 rm -f conftest*
12457 fi
12458
12459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12460   echo "$ac_t""yes" 1>&6
12461     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12462   cat >> confdefs.h <<EOF
12463 #define $ac_tr_func 1
12464 EOF
12465  
12466 else
12467   echo "$ac_t""no" 1>&6
12468 fi
12469 done
12470     
12471     fi
12472   fi
12473
12474
12475     
12476   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12477 echo "configure:12478: checking for float trig functions" >&5
12478   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12479   echo $ac_n "(cached) $ac_c" 1>&6
12480 else
12481   
12482     
12483     ac_ext=C
12484 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12485 ac_cpp='$CXXCPP $CPPFLAGS'
12486 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12487 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12488 cross_compiling=$ac_cv_prog_cxx_cross
12489
12490     cat > conftest.$ac_ext <<EOF
12491 #line 12492 "configure"
12492 #include "confdefs.h"
12493 #include <math.h>
12494 int main() {
12495  `for x in acosf asinf atanf \
12496                                           cosf sinf tanf \
12497                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
12498 ; return 0; }
12499 EOF
12500 if { (eval echo configure:12501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12501   rm -rf conftest*
12502   glibcpp_cv_func_float_trig_use=yes
12503 else
12504   echo "configure: failed program was:" >&5
12505   cat conftest.$ac_ext >&5
12506   rm -rf conftest*
12507   glibcpp_cv_func_float_trig_use=no
12508 fi
12509 rm -f conftest*
12510     ac_ext=c
12511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12512 ac_cpp='$CPP $CPPFLAGS'
12513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12514 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12515 cross_compiling=$ac_cv_prog_cc_cross
12516
12517 fi
12518
12519   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12520   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12521     for ac_func in acosf asinf atanf \
12522                                           cosf sinf tanf \
12523                                           coshf sinhf tanhf
12524 do
12525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12526 echo "configure:12527: checking for $ac_func" >&5
12527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12528   echo $ac_n "(cached) $ac_c" 1>&6
12529 else
12530   cat > conftest.$ac_ext <<EOF
12531 #line 12532 "configure"
12532 #include "confdefs.h"
12533 /* System header to define __stub macros and hopefully few prototypes,
12534     which can conflict with char $ac_func(); below.  */
12535 #include <assert.h>
12536 /* Override any gcc2 internal prototype to avoid an error.  */
12537 /* We use char because int might match the return type of a gcc2
12538     builtin and then its argument prototype would still apply.  */
12539 char $ac_func();
12540
12541 int main() {
12542
12543 /* The GNU C library defines this for functions which it implements
12544     to always fail with ENOSYS.  Some functions are actually named
12545     something starting with __ and the normal name is an alias.  */
12546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12547 choke me
12548 #else
12549 $ac_func();
12550 #endif
12551
12552 ; return 0; }
12553 EOF
12554 if { (eval echo configure:12555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12555   rm -rf conftest*
12556   eval "ac_cv_func_$ac_func=yes"
12557 else
12558   echo "configure: failed program was:" >&5
12559   cat conftest.$ac_ext >&5
12560   rm -rf conftest*
12561   eval "ac_cv_func_$ac_func=no"
12562 fi
12563 rm -f conftest*
12564 fi
12565
12566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12567   echo "$ac_t""yes" 1>&6
12568     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12569   cat >> confdefs.h <<EOF
12570 #define $ac_tr_func 1
12571 EOF
12572  
12573 else
12574   echo "$ac_t""no" 1>&6
12575 fi
12576 done
12577
12578   fi
12579
12580   
12581   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12582 echo "configure:12583: checking for float round functions" >&5
12583   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12584   echo $ac_n "(cached) $ac_c" 1>&6
12585 else
12586   
12587     
12588     ac_ext=C
12589 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12590 ac_cpp='$CXXCPP $CPPFLAGS'
12591 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12592 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12593 cross_compiling=$ac_cv_prog_cxx_cross
12594
12595     cat > conftest.$ac_ext <<EOF
12596 #line 12597 "configure"
12597 #include "confdefs.h"
12598 #include <math.h>
12599 int main() {
12600  `for x in ceilf floorf; do echo "$x (0);"; done` 
12601 ; return 0; }
12602 EOF
12603 if { (eval echo configure:12604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12604   rm -rf conftest*
12605   glibcpp_cv_func_float_round_use=yes
12606 else
12607   echo "configure: failed program was:" >&5
12608   cat conftest.$ac_ext >&5
12609   rm -rf conftest*
12610   glibcpp_cv_func_float_round_use=no
12611 fi
12612 rm -f conftest*
12613     ac_ext=c
12614 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12615 ac_cpp='$CPP $CPPFLAGS'
12616 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12617 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12618 cross_compiling=$ac_cv_prog_cc_cross
12619
12620 fi
12621
12622   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12623   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12624     for ac_func in ceilf floorf
12625 do
12626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12627 echo "configure:12628: checking for $ac_func" >&5
12628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12629   echo $ac_n "(cached) $ac_c" 1>&6
12630 else
12631   cat > conftest.$ac_ext <<EOF
12632 #line 12633 "configure"
12633 #include "confdefs.h"
12634 /* System header to define __stub macros and hopefully few prototypes,
12635     which can conflict with char $ac_func(); below.  */
12636 #include <assert.h>
12637 /* Override any gcc2 internal prototype to avoid an error.  */
12638 /* We use char because int might match the return type of a gcc2
12639     builtin and then its argument prototype would still apply.  */
12640 char $ac_func();
12641
12642 int main() {
12643
12644 /* The GNU C library defines this for functions which it implements
12645     to always fail with ENOSYS.  Some functions are actually named
12646     something starting with __ and the normal name is an alias.  */
12647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12648 choke me
12649 #else
12650 $ac_func();
12651 #endif
12652
12653 ; return 0; }
12654 EOF
12655 if { (eval echo configure:12656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12656   rm -rf conftest*
12657   eval "ac_cv_func_$ac_func=yes"
12658 else
12659   echo "configure: failed program was:" >&5
12660   cat conftest.$ac_ext >&5
12661   rm -rf conftest*
12662   eval "ac_cv_func_$ac_func=no"
12663 fi
12664 rm -f conftest*
12665 fi
12666
12667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12668   echo "$ac_t""yes" 1>&6
12669     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12670   cat >> confdefs.h <<EOF
12671 #define $ac_tr_func 1
12672 EOF
12673  
12674 else
12675   echo "$ac_t""no" 1>&6
12676 fi
12677 done
12678
12679   fi
12680
12681   
12682   
12683   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12684 echo "configure:12685: checking for expf declaration" >&5
12685   if test x${glibcpp_cv_func_expf_use+set} != xset; then
12686     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12687   echo $ac_n "(cached) $ac_c" 1>&6
12688 else
12689   
12690       
12691       ac_ext=C
12692 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12693 ac_cpp='$CXXCPP $CPPFLAGS'
12694 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12695 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12696 cross_compiling=$ac_cv_prog_cxx_cross
12697
12698       cat > conftest.$ac_ext <<EOF
12699 #line 12700 "configure"
12700 #include "confdefs.h"
12701 #include <math.h>
12702                       #ifdef HAVE_IEEEFP_H
12703                       #include <ieeefp.h>
12704                       #endif
12705                      
12706 int main() {
12707  expf(0);
12708 ; return 0; }
12709 EOF
12710 if { (eval echo configure:12711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12711   rm -rf conftest*
12712   glibcpp_cv_func_expf_use=yes
12713 else
12714   echo "configure: failed program was:" >&5
12715   cat conftest.$ac_ext >&5
12716   rm -rf conftest*
12717   glibcpp_cv_func_expf_use=no
12718 fi
12719 rm -f conftest*
12720       ac_ext=c
12721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12722 ac_cpp='$CPP $CPPFLAGS'
12723 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12724 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12725 cross_compiling=$ac_cv_prog_cc_cross
12726
12727     
12728 fi
12729
12730   fi
12731   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12732
12733   if test x$glibcpp_cv_func_expf_use = x"yes"; then
12734     for ac_func in expf
12735 do
12736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12737 echo "configure:12738: checking for $ac_func" >&5
12738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12739   echo $ac_n "(cached) $ac_c" 1>&6
12740 else
12741   cat > conftest.$ac_ext <<EOF
12742 #line 12743 "configure"
12743 #include "confdefs.h"
12744 /* System header to define __stub macros and hopefully few prototypes,
12745     which can conflict with char $ac_func(); below.  */
12746 #include <assert.h>
12747 /* Override any gcc2 internal prototype to avoid an error.  */
12748 /* We use char because int might match the return type of a gcc2
12749     builtin and then its argument prototype would still apply.  */
12750 char $ac_func();
12751
12752 int main() {
12753
12754 /* The GNU C library defines this for functions which it implements
12755     to always fail with ENOSYS.  Some functions are actually named
12756     something starting with __ and the normal name is an alias.  */
12757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12758 choke me
12759 #else
12760 $ac_func();
12761 #endif
12762
12763 ; return 0; }
12764 EOF
12765 if { (eval echo configure:12766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12766   rm -rf conftest*
12767   eval "ac_cv_func_$ac_func=yes"
12768 else
12769   echo "configure: failed program was:" >&5
12770   cat conftest.$ac_ext >&5
12771   rm -rf conftest*
12772   eval "ac_cv_func_$ac_func=no"
12773 fi
12774 rm -f conftest*
12775 fi
12776
12777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12778   echo "$ac_t""yes" 1>&6
12779     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12780   cat >> confdefs.h <<EOF
12781 #define $ac_tr_func 1
12782 EOF
12783  
12784 else
12785   echo "$ac_t""no" 1>&6
12786 fi
12787 done
12788     
12789   else
12790     
12791   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12792 echo "configure:12793: checking for _expf declaration" >&5
12793   if test x${glibcpp_cv_func__expf_use+set} != xset; then
12794     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12795   echo $ac_n "(cached) $ac_c" 1>&6
12796 else
12797   
12798       
12799       ac_ext=C
12800 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12801 ac_cpp='$CXXCPP $CPPFLAGS'
12802 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12803 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12804 cross_compiling=$ac_cv_prog_cxx_cross
12805
12806       cat > conftest.$ac_ext <<EOF
12807 #line 12808 "configure"
12808 #include "confdefs.h"
12809 #include <math.h>
12810                       #ifdef HAVE_IEEEFP_H
12811                       #include <ieeefp.h>
12812                       #endif
12813                      
12814 int main() {
12815  _expf(0);
12816 ; return 0; }
12817 EOF
12818 if { (eval echo configure:12819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12819   rm -rf conftest*
12820   glibcpp_cv_func__expf_use=yes
12821 else
12822   echo "configure: failed program was:" >&5
12823   cat conftest.$ac_ext >&5
12824   rm -rf conftest*
12825   glibcpp_cv_func__expf_use=no
12826 fi
12827 rm -f conftest*
12828       ac_ext=c
12829 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12830 ac_cpp='$CPP $CPPFLAGS'
12831 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12832 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12833 cross_compiling=$ac_cv_prog_cc_cross
12834
12835     
12836 fi
12837
12838   fi
12839   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12840
12841     if test x$glibcpp_cv_func__expf_use = x"yes"; then
12842       for ac_func in _expf
12843 do
12844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12845 echo "configure:12846: checking for $ac_func" >&5
12846 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12847   echo $ac_n "(cached) $ac_c" 1>&6
12848 else
12849   cat > conftest.$ac_ext <<EOF
12850 #line 12851 "configure"
12851 #include "confdefs.h"
12852 /* System header to define __stub macros and hopefully few prototypes,
12853     which can conflict with char $ac_func(); below.  */
12854 #include <assert.h>
12855 /* Override any gcc2 internal prototype to avoid an error.  */
12856 /* We use char because int might match the return type of a gcc2
12857     builtin and then its argument prototype would still apply.  */
12858 char $ac_func();
12859
12860 int main() {
12861
12862 /* The GNU C library defines this for functions which it implements
12863     to always fail with ENOSYS.  Some functions are actually named
12864     something starting with __ and the normal name is an alias.  */
12865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12866 choke me
12867 #else
12868 $ac_func();
12869 #endif
12870
12871 ; return 0; }
12872 EOF
12873 if { (eval echo configure:12874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12874   rm -rf conftest*
12875   eval "ac_cv_func_$ac_func=yes"
12876 else
12877   echo "configure: failed program was:" >&5
12878   cat conftest.$ac_ext >&5
12879   rm -rf conftest*
12880   eval "ac_cv_func_$ac_func=no"
12881 fi
12882 rm -f conftest*
12883 fi
12884
12885 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12886   echo "$ac_t""yes" 1>&6
12887     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12888   cat >> confdefs.h <<EOF
12889 #define $ac_tr_func 1
12890 EOF
12891  
12892 else
12893   echo "$ac_t""no" 1>&6
12894 fi
12895 done
12896     
12897     fi
12898   fi
12899
12900   
12901   
12902   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12903 echo "configure:12904: checking for isnanf declaration" >&5
12904   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12905     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12906   echo $ac_n "(cached) $ac_c" 1>&6
12907 else
12908   
12909       
12910       ac_ext=C
12911 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12912 ac_cpp='$CXXCPP $CPPFLAGS'
12913 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12914 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12915 cross_compiling=$ac_cv_prog_cxx_cross
12916
12917       cat > conftest.$ac_ext <<EOF
12918 #line 12919 "configure"
12919 #include "confdefs.h"
12920 #include <math.h>
12921                       #ifdef HAVE_IEEEFP_H
12922                       #include <ieeefp.h>
12923                       #endif
12924                      
12925 int main() {
12926  isnanf(0);
12927 ; return 0; }
12928 EOF
12929 if { (eval echo configure:12930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12930   rm -rf conftest*
12931   glibcpp_cv_func_isnanf_use=yes
12932 else
12933   echo "configure: failed program was:" >&5
12934   cat conftest.$ac_ext >&5
12935   rm -rf conftest*
12936   glibcpp_cv_func_isnanf_use=no
12937 fi
12938 rm -f conftest*
12939       ac_ext=c
12940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12941 ac_cpp='$CPP $CPPFLAGS'
12942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12944 cross_compiling=$ac_cv_prog_cc_cross
12945
12946     
12947 fi
12948
12949   fi
12950   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12951
12952   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12953     for ac_func in isnanf
12954 do
12955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12956 echo "configure:12957: checking for $ac_func" >&5
12957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12958   echo $ac_n "(cached) $ac_c" 1>&6
12959 else
12960   cat > conftest.$ac_ext <<EOF
12961 #line 12962 "configure"
12962 #include "confdefs.h"
12963 /* System header to define __stub macros and hopefully few prototypes,
12964     which can conflict with char $ac_func(); below.  */
12965 #include <assert.h>
12966 /* Override any gcc2 internal prototype to avoid an error.  */
12967 /* We use char because int might match the return type of a gcc2
12968     builtin and then its argument prototype would still apply.  */
12969 char $ac_func();
12970
12971 int main() {
12972
12973 /* The GNU C library defines this for functions which it implements
12974     to always fail with ENOSYS.  Some functions are actually named
12975     something starting with __ and the normal name is an alias.  */
12976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12977 choke me
12978 #else
12979 $ac_func();
12980 #endif
12981
12982 ; return 0; }
12983 EOF
12984 if { (eval echo configure:12985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12985   rm -rf conftest*
12986   eval "ac_cv_func_$ac_func=yes"
12987 else
12988   echo "configure: failed program was:" >&5
12989   cat conftest.$ac_ext >&5
12990   rm -rf conftest*
12991   eval "ac_cv_func_$ac_func=no"
12992 fi
12993 rm -f conftest*
12994 fi
12995
12996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12997   echo "$ac_t""yes" 1>&6
12998     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12999   cat >> confdefs.h <<EOF
13000 #define $ac_tr_func 1
13001 EOF
13002  
13003 else
13004   echo "$ac_t""no" 1>&6
13005 fi
13006 done
13007     
13008   else
13009     
13010   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
13011 echo "configure:13012: checking for _isnanf declaration" >&5
13012   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
13013     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
13014   echo $ac_n "(cached) $ac_c" 1>&6
13015 else
13016   
13017       
13018       ac_ext=C
13019 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13020 ac_cpp='$CXXCPP $CPPFLAGS'
13021 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13022 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13023 cross_compiling=$ac_cv_prog_cxx_cross
13024
13025       cat > conftest.$ac_ext <<EOF
13026 #line 13027 "configure"
13027 #include "confdefs.h"
13028 #include <math.h>
13029                       #ifdef HAVE_IEEEFP_H
13030                       #include <ieeefp.h>
13031                       #endif
13032                      
13033 int main() {
13034  _isnanf(0);
13035 ; return 0; }
13036 EOF
13037 if { (eval echo configure:13038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13038   rm -rf conftest*
13039   glibcpp_cv_func__isnanf_use=yes
13040 else
13041   echo "configure: failed program was:" >&5
13042   cat conftest.$ac_ext >&5
13043   rm -rf conftest*
13044   glibcpp_cv_func__isnanf_use=no
13045 fi
13046 rm -f conftest*
13047       ac_ext=c
13048 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13049 ac_cpp='$CPP $CPPFLAGS'
13050 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13051 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13052 cross_compiling=$ac_cv_prog_cc_cross
13053
13054     
13055 fi
13056
13057   fi
13058   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13059
13060     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13061       for ac_func in _isnanf
13062 do
13063 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13064 echo "configure:13065: checking for $ac_func" >&5
13065 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13066   echo $ac_n "(cached) $ac_c" 1>&6
13067 else
13068   cat > conftest.$ac_ext <<EOF
13069 #line 13070 "configure"
13070 #include "confdefs.h"
13071 /* System header to define __stub macros and hopefully few prototypes,
13072     which can conflict with char $ac_func(); below.  */
13073 #include <assert.h>
13074 /* Override any gcc2 internal prototype to avoid an error.  */
13075 /* We use char because int might match the return type of a gcc2
13076     builtin and then its argument prototype would still apply.  */
13077 char $ac_func();
13078
13079 int main() {
13080
13081 /* The GNU C library defines this for functions which it implements
13082     to always fail with ENOSYS.  Some functions are actually named
13083     something starting with __ and the normal name is an alias.  */
13084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13085 choke me
13086 #else
13087 $ac_func();
13088 #endif
13089
13090 ; return 0; }
13091 EOF
13092 if { (eval echo configure:13093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13093   rm -rf conftest*
13094   eval "ac_cv_func_$ac_func=yes"
13095 else
13096   echo "configure: failed program was:" >&5
13097   cat conftest.$ac_ext >&5
13098   rm -rf conftest*
13099   eval "ac_cv_func_$ac_func=no"
13100 fi
13101 rm -f conftest*
13102 fi
13103
13104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13105   echo "$ac_t""yes" 1>&6
13106     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13107   cat >> confdefs.h <<EOF
13108 #define $ac_tr_func 1
13109 EOF
13110  
13111 else
13112   echo "$ac_t""no" 1>&6
13113 fi
13114 done
13115     
13116     fi
13117   fi
13118
13119   
13120   
13121   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13122 echo "configure:13123: checking for isinff declaration" >&5
13123   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13124     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13125   echo $ac_n "(cached) $ac_c" 1>&6
13126 else
13127   
13128       
13129       ac_ext=C
13130 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13131 ac_cpp='$CXXCPP $CPPFLAGS'
13132 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13133 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13134 cross_compiling=$ac_cv_prog_cxx_cross
13135
13136       cat > conftest.$ac_ext <<EOF
13137 #line 13138 "configure"
13138 #include "confdefs.h"
13139 #include <math.h>
13140                       #ifdef HAVE_IEEEFP_H
13141                       #include <ieeefp.h>
13142                       #endif
13143                      
13144 int main() {
13145  isinff(0);
13146 ; return 0; }
13147 EOF
13148 if { (eval echo configure:13149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13149   rm -rf conftest*
13150   glibcpp_cv_func_isinff_use=yes
13151 else
13152   echo "configure: failed program was:" >&5
13153   cat conftest.$ac_ext >&5
13154   rm -rf conftest*
13155   glibcpp_cv_func_isinff_use=no
13156 fi
13157 rm -f conftest*
13158       ac_ext=c
13159 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13160 ac_cpp='$CPP $CPPFLAGS'
13161 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13162 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13163 cross_compiling=$ac_cv_prog_cc_cross
13164
13165     
13166 fi
13167
13168   fi
13169   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13170
13171   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13172     for ac_func in isinff
13173 do
13174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13175 echo "configure:13176: checking for $ac_func" >&5
13176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13177   echo $ac_n "(cached) $ac_c" 1>&6
13178 else
13179   cat > conftest.$ac_ext <<EOF
13180 #line 13181 "configure"
13181 #include "confdefs.h"
13182 /* System header to define __stub macros and hopefully few prototypes,
13183     which can conflict with char $ac_func(); below.  */
13184 #include <assert.h>
13185 /* Override any gcc2 internal prototype to avoid an error.  */
13186 /* We use char because int might match the return type of a gcc2
13187     builtin and then its argument prototype would still apply.  */
13188 char $ac_func();
13189
13190 int main() {
13191
13192 /* The GNU C library defines this for functions which it implements
13193     to always fail with ENOSYS.  Some functions are actually named
13194     something starting with __ and the normal name is an alias.  */
13195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13196 choke me
13197 #else
13198 $ac_func();
13199 #endif
13200
13201 ; return 0; }
13202 EOF
13203 if { (eval echo configure:13204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13204   rm -rf conftest*
13205   eval "ac_cv_func_$ac_func=yes"
13206 else
13207   echo "configure: failed program was:" >&5
13208   cat conftest.$ac_ext >&5
13209   rm -rf conftest*
13210   eval "ac_cv_func_$ac_func=no"
13211 fi
13212 rm -f conftest*
13213 fi
13214
13215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13216   echo "$ac_t""yes" 1>&6
13217     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13218   cat >> confdefs.h <<EOF
13219 #define $ac_tr_func 1
13220 EOF
13221  
13222 else
13223   echo "$ac_t""no" 1>&6
13224 fi
13225 done
13226     
13227   else
13228     
13229   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13230 echo "configure:13231: checking for _isinff declaration" >&5
13231   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13232     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13233   echo $ac_n "(cached) $ac_c" 1>&6
13234 else
13235   
13236       
13237       ac_ext=C
13238 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13239 ac_cpp='$CXXCPP $CPPFLAGS'
13240 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13241 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13242 cross_compiling=$ac_cv_prog_cxx_cross
13243
13244       cat > conftest.$ac_ext <<EOF
13245 #line 13246 "configure"
13246 #include "confdefs.h"
13247 #include <math.h>
13248                       #ifdef HAVE_IEEEFP_H
13249                       #include <ieeefp.h>
13250                       #endif
13251                      
13252 int main() {
13253  _isinff(0);
13254 ; return 0; }
13255 EOF
13256 if { (eval echo configure:13257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13257   rm -rf conftest*
13258   glibcpp_cv_func__isinff_use=yes
13259 else
13260   echo "configure: failed program was:" >&5
13261   cat conftest.$ac_ext >&5
13262   rm -rf conftest*
13263   glibcpp_cv_func__isinff_use=no
13264 fi
13265 rm -f conftest*
13266       ac_ext=c
13267 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13268 ac_cpp='$CPP $CPPFLAGS'
13269 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13270 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13271 cross_compiling=$ac_cv_prog_cc_cross
13272
13273     
13274 fi
13275
13276   fi
13277   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13278
13279     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13280       for ac_func in _isinff
13281 do
13282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13283 echo "configure:13284: checking for $ac_func" >&5
13284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13285   echo $ac_n "(cached) $ac_c" 1>&6
13286 else
13287   cat > conftest.$ac_ext <<EOF
13288 #line 13289 "configure"
13289 #include "confdefs.h"
13290 /* System header to define __stub macros and hopefully few prototypes,
13291     which can conflict with char $ac_func(); below.  */
13292 #include <assert.h>
13293 /* Override any gcc2 internal prototype to avoid an error.  */
13294 /* We use char because int might match the return type of a gcc2
13295     builtin and then its argument prototype would still apply.  */
13296 char $ac_func();
13297
13298 int main() {
13299
13300 /* The GNU C library defines this for functions which it implements
13301     to always fail with ENOSYS.  Some functions are actually named
13302     something starting with __ and the normal name is an alias.  */
13303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13304 choke me
13305 #else
13306 $ac_func();
13307 #endif
13308
13309 ; return 0; }
13310 EOF
13311 if { (eval echo configure:13312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13312   rm -rf conftest*
13313   eval "ac_cv_func_$ac_func=yes"
13314 else
13315   echo "configure: failed program was:" >&5
13316   cat conftest.$ac_ext >&5
13317   rm -rf conftest*
13318   eval "ac_cv_func_$ac_func=no"
13319 fi
13320 rm -f conftest*
13321 fi
13322
13323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13324   echo "$ac_t""yes" 1>&6
13325     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13326   cat >> confdefs.h <<EOF
13327 #define $ac_tr_func 1
13328 EOF
13329  
13330 else
13331   echo "$ac_t""no" 1>&6
13332 fi
13333 done
13334     
13335     fi
13336   fi
13337
13338   
13339   
13340   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13341 echo "configure:13342: checking for atan2f declaration" >&5
13342   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13343     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13344   echo $ac_n "(cached) $ac_c" 1>&6
13345 else
13346   
13347       
13348       ac_ext=C
13349 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13350 ac_cpp='$CXXCPP $CPPFLAGS'
13351 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13352 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13353 cross_compiling=$ac_cv_prog_cxx_cross
13354
13355       cat > conftest.$ac_ext <<EOF
13356 #line 13357 "configure"
13357 #include "confdefs.h"
13358 #include <math.h>
13359 int main() {
13360  atan2f(0, 0);
13361 ; return 0; }
13362 EOF
13363 if { (eval echo configure:13364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13364   rm -rf conftest*
13365   glibcpp_cv_func_atan2f_use=yes
13366 else
13367   echo "configure: failed program was:" >&5
13368   cat conftest.$ac_ext >&5
13369   rm -rf conftest*
13370   glibcpp_cv_func_atan2f_use=no
13371 fi
13372 rm -f conftest*
13373       ac_ext=c
13374 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13375 ac_cpp='$CPP $CPPFLAGS'
13376 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13377 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13378 cross_compiling=$ac_cv_prog_cc_cross
13379
13380     
13381 fi
13382
13383   fi
13384   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13385
13386   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13387     for ac_func in atan2f
13388 do
13389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13390 echo "configure:13391: checking for $ac_func" >&5
13391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13392   echo $ac_n "(cached) $ac_c" 1>&6
13393 else
13394   cat > conftest.$ac_ext <<EOF
13395 #line 13396 "configure"
13396 #include "confdefs.h"
13397 /* System header to define __stub macros and hopefully few prototypes,
13398     which can conflict with char $ac_func(); below.  */
13399 #include <assert.h>
13400 /* Override any gcc2 internal prototype to avoid an error.  */
13401 /* We use char because int might match the return type of a gcc2
13402     builtin and then its argument prototype would still apply.  */
13403 char $ac_func();
13404
13405 int main() {
13406
13407 /* The GNU C library defines this for functions which it implements
13408     to always fail with ENOSYS.  Some functions are actually named
13409     something starting with __ and the normal name is an alias.  */
13410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13411 choke me
13412 #else
13413 $ac_func();
13414 #endif
13415
13416 ; return 0; }
13417 EOF
13418 if { (eval echo configure:13419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13419   rm -rf conftest*
13420   eval "ac_cv_func_$ac_func=yes"
13421 else
13422   echo "configure: failed program was:" >&5
13423   cat conftest.$ac_ext >&5
13424   rm -rf conftest*
13425   eval "ac_cv_func_$ac_func=no"
13426 fi
13427 rm -f conftest*
13428 fi
13429
13430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13431   echo "$ac_t""yes" 1>&6
13432     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13433   cat >> confdefs.h <<EOF
13434 #define $ac_tr_func 1
13435 EOF
13436  
13437 else
13438   echo "$ac_t""no" 1>&6
13439 fi
13440 done
13441     
13442   else
13443     
13444   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13445 echo "configure:13446: checking for _atan2f declaration" >&5
13446   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13447     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13448   echo $ac_n "(cached) $ac_c" 1>&6
13449 else
13450   
13451       
13452       ac_ext=C
13453 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13454 ac_cpp='$CXXCPP $CPPFLAGS'
13455 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13456 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13457 cross_compiling=$ac_cv_prog_cxx_cross
13458
13459       cat > conftest.$ac_ext <<EOF
13460 #line 13461 "configure"
13461 #include "confdefs.h"
13462 #include <math.h>
13463 int main() {
13464  _atan2f(0, 0);
13465 ; return 0; }
13466 EOF
13467 if { (eval echo configure:13468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13468   rm -rf conftest*
13469   glibcpp_cv_func__atan2f_use=yes
13470 else
13471   echo "configure: failed program was:" >&5
13472   cat conftest.$ac_ext >&5
13473   rm -rf conftest*
13474   glibcpp_cv_func__atan2f_use=no
13475 fi
13476 rm -f conftest*
13477       ac_ext=c
13478 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13479 ac_cpp='$CPP $CPPFLAGS'
13480 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13481 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13482 cross_compiling=$ac_cv_prog_cc_cross
13483
13484     
13485 fi
13486
13487   fi
13488   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13489
13490     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13491       for ac_func in _atan2f
13492 do
13493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13494 echo "configure:13495: checking for $ac_func" >&5
13495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13496   echo $ac_n "(cached) $ac_c" 1>&6
13497 else
13498   cat > conftest.$ac_ext <<EOF
13499 #line 13500 "configure"
13500 #include "confdefs.h"
13501 /* System header to define __stub macros and hopefully few prototypes,
13502     which can conflict with char $ac_func(); below.  */
13503 #include <assert.h>
13504 /* Override any gcc2 internal prototype to avoid an error.  */
13505 /* We use char because int might match the return type of a gcc2
13506     builtin and then its argument prototype would still apply.  */
13507 char $ac_func();
13508
13509 int main() {
13510
13511 /* The GNU C library defines this for functions which it implements
13512     to always fail with ENOSYS.  Some functions are actually named
13513     something starting with __ and the normal name is an alias.  */
13514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13515 choke me
13516 #else
13517 $ac_func();
13518 #endif
13519
13520 ; return 0; }
13521 EOF
13522 if { (eval echo configure:13523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13523   rm -rf conftest*
13524   eval "ac_cv_func_$ac_func=yes"
13525 else
13526   echo "configure: failed program was:" >&5
13527   cat conftest.$ac_ext >&5
13528   rm -rf conftest*
13529   eval "ac_cv_func_$ac_func=no"
13530 fi
13531 rm -f conftest*
13532 fi
13533
13534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13535   echo "$ac_t""yes" 1>&6
13536     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13537   cat >> confdefs.h <<EOF
13538 #define $ac_tr_func 1
13539 EOF
13540  
13541 else
13542   echo "$ac_t""no" 1>&6
13543 fi
13544 done
13545     
13546     fi
13547   fi
13548
13549   
13550   
13551   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13552 echo "configure:13553: checking for fabsf declaration" >&5
13553   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13554     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13555   echo $ac_n "(cached) $ac_c" 1>&6
13556 else
13557   
13558       
13559       ac_ext=C
13560 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13561 ac_cpp='$CXXCPP $CPPFLAGS'
13562 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13563 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13564 cross_compiling=$ac_cv_prog_cxx_cross
13565
13566       cat > conftest.$ac_ext <<EOF
13567 #line 13568 "configure"
13568 #include "confdefs.h"
13569 #include <math.h>
13570                       #ifdef HAVE_IEEEFP_H
13571                       #include <ieeefp.h>
13572                       #endif
13573                      
13574 int main() {
13575  fabsf(0);
13576 ; return 0; }
13577 EOF
13578 if { (eval echo configure:13579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13579   rm -rf conftest*
13580   glibcpp_cv_func_fabsf_use=yes
13581 else
13582   echo "configure: failed program was:" >&5
13583   cat conftest.$ac_ext >&5
13584   rm -rf conftest*
13585   glibcpp_cv_func_fabsf_use=no
13586 fi
13587 rm -f conftest*
13588       ac_ext=c
13589 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13590 ac_cpp='$CPP $CPPFLAGS'
13591 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13592 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13593 cross_compiling=$ac_cv_prog_cc_cross
13594
13595     
13596 fi
13597
13598   fi
13599   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13600
13601   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13602     for ac_func in fabsf
13603 do
13604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13605 echo "configure:13606: checking for $ac_func" >&5
13606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13607   echo $ac_n "(cached) $ac_c" 1>&6
13608 else
13609   cat > conftest.$ac_ext <<EOF
13610 #line 13611 "configure"
13611 #include "confdefs.h"
13612 /* System header to define __stub macros and hopefully few prototypes,
13613     which can conflict with char $ac_func(); below.  */
13614 #include <assert.h>
13615 /* Override any gcc2 internal prototype to avoid an error.  */
13616 /* We use char because int might match the return type of a gcc2
13617     builtin and then its argument prototype would still apply.  */
13618 char $ac_func();
13619
13620 int main() {
13621
13622 /* The GNU C library defines this for functions which it implements
13623     to always fail with ENOSYS.  Some functions are actually named
13624     something starting with __ and the normal name is an alias.  */
13625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13626 choke me
13627 #else
13628 $ac_func();
13629 #endif
13630
13631 ; return 0; }
13632 EOF
13633 if { (eval echo configure:13634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13634   rm -rf conftest*
13635   eval "ac_cv_func_$ac_func=yes"
13636 else
13637   echo "configure: failed program was:" >&5
13638   cat conftest.$ac_ext >&5
13639   rm -rf conftest*
13640   eval "ac_cv_func_$ac_func=no"
13641 fi
13642 rm -f conftest*
13643 fi
13644
13645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13646   echo "$ac_t""yes" 1>&6
13647     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13648   cat >> confdefs.h <<EOF
13649 #define $ac_tr_func 1
13650 EOF
13651  
13652 else
13653   echo "$ac_t""no" 1>&6
13654 fi
13655 done
13656     
13657   else
13658     
13659   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13660 echo "configure:13661: checking for _fabsf declaration" >&5
13661   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13662     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13663   echo $ac_n "(cached) $ac_c" 1>&6
13664 else
13665   
13666       
13667       ac_ext=C
13668 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13669 ac_cpp='$CXXCPP $CPPFLAGS'
13670 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13671 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13672 cross_compiling=$ac_cv_prog_cxx_cross
13673
13674       cat > conftest.$ac_ext <<EOF
13675 #line 13676 "configure"
13676 #include "confdefs.h"
13677 #include <math.h>
13678                       #ifdef HAVE_IEEEFP_H
13679                       #include <ieeefp.h>
13680                       #endif
13681                      
13682 int main() {
13683  _fabsf(0);
13684 ; return 0; }
13685 EOF
13686 if { (eval echo configure:13687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13687   rm -rf conftest*
13688   glibcpp_cv_func__fabsf_use=yes
13689 else
13690   echo "configure: failed program was:" >&5
13691   cat conftest.$ac_ext >&5
13692   rm -rf conftest*
13693   glibcpp_cv_func__fabsf_use=no
13694 fi
13695 rm -f conftest*
13696       ac_ext=c
13697 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13698 ac_cpp='$CPP $CPPFLAGS'
13699 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13700 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13701 cross_compiling=$ac_cv_prog_cc_cross
13702
13703     
13704 fi
13705
13706   fi
13707   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13708
13709     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13710       for ac_func in _fabsf
13711 do
13712 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13713 echo "configure:13714: checking for $ac_func" >&5
13714 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13715   echo $ac_n "(cached) $ac_c" 1>&6
13716 else
13717   cat > conftest.$ac_ext <<EOF
13718 #line 13719 "configure"
13719 #include "confdefs.h"
13720 /* System header to define __stub macros and hopefully few prototypes,
13721     which can conflict with char $ac_func(); below.  */
13722 #include <assert.h>
13723 /* Override any gcc2 internal prototype to avoid an error.  */
13724 /* We use char because int might match the return type of a gcc2
13725     builtin and then its argument prototype would still apply.  */
13726 char $ac_func();
13727
13728 int main() {
13729
13730 /* The GNU C library defines this for functions which it implements
13731     to always fail with ENOSYS.  Some functions are actually named
13732     something starting with __ and the normal name is an alias.  */
13733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13734 choke me
13735 #else
13736 $ac_func();
13737 #endif
13738
13739 ; return 0; }
13740 EOF
13741 if { (eval echo configure:13742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13742   rm -rf conftest*
13743   eval "ac_cv_func_$ac_func=yes"
13744 else
13745   echo "configure: failed program was:" >&5
13746   cat conftest.$ac_ext >&5
13747   rm -rf conftest*
13748   eval "ac_cv_func_$ac_func=no"
13749 fi
13750 rm -f conftest*
13751 fi
13752
13753 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13754   echo "$ac_t""yes" 1>&6
13755     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13756   cat >> confdefs.h <<EOF
13757 #define $ac_tr_func 1
13758 EOF
13759  
13760 else
13761   echo "$ac_t""no" 1>&6
13762 fi
13763 done
13764     
13765     fi
13766   fi
13767
13768   
13769   
13770   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13771 echo "configure:13772: checking for fmodf declaration" >&5
13772   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13773     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13774   echo $ac_n "(cached) $ac_c" 1>&6
13775 else
13776   
13777       
13778       ac_ext=C
13779 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13780 ac_cpp='$CXXCPP $CPPFLAGS'
13781 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13782 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13783 cross_compiling=$ac_cv_prog_cxx_cross
13784
13785       cat > conftest.$ac_ext <<EOF
13786 #line 13787 "configure"
13787 #include "confdefs.h"
13788 #include <math.h>
13789 int main() {
13790  fmodf(0, 0);
13791 ; return 0; }
13792 EOF
13793 if { (eval echo configure:13794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13794   rm -rf conftest*
13795   glibcpp_cv_func_fmodf_use=yes
13796 else
13797   echo "configure: failed program was:" >&5
13798   cat conftest.$ac_ext >&5
13799   rm -rf conftest*
13800   glibcpp_cv_func_fmodf_use=no
13801 fi
13802 rm -f conftest*
13803       ac_ext=c
13804 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13805 ac_cpp='$CPP $CPPFLAGS'
13806 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13807 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13808 cross_compiling=$ac_cv_prog_cc_cross
13809
13810     
13811 fi
13812
13813   fi
13814   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13815
13816   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13817     for ac_func in fmodf
13818 do
13819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13820 echo "configure:13821: checking for $ac_func" >&5
13821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13822   echo $ac_n "(cached) $ac_c" 1>&6
13823 else
13824   cat > conftest.$ac_ext <<EOF
13825 #line 13826 "configure"
13826 #include "confdefs.h"
13827 /* System header to define __stub macros and hopefully few prototypes,
13828     which can conflict with char $ac_func(); below.  */
13829 #include <assert.h>
13830 /* Override any gcc2 internal prototype to avoid an error.  */
13831 /* We use char because int might match the return type of a gcc2
13832     builtin and then its argument prototype would still apply.  */
13833 char $ac_func();
13834
13835 int main() {
13836
13837 /* The GNU C library defines this for functions which it implements
13838     to always fail with ENOSYS.  Some functions are actually named
13839     something starting with __ and the normal name is an alias.  */
13840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13841 choke me
13842 #else
13843 $ac_func();
13844 #endif
13845
13846 ; return 0; }
13847 EOF
13848 if { (eval echo configure:13849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13849   rm -rf conftest*
13850   eval "ac_cv_func_$ac_func=yes"
13851 else
13852   echo "configure: failed program was:" >&5
13853   cat conftest.$ac_ext >&5
13854   rm -rf conftest*
13855   eval "ac_cv_func_$ac_func=no"
13856 fi
13857 rm -f conftest*
13858 fi
13859
13860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13861   echo "$ac_t""yes" 1>&6
13862     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13863   cat >> confdefs.h <<EOF
13864 #define $ac_tr_func 1
13865 EOF
13866  
13867 else
13868   echo "$ac_t""no" 1>&6
13869 fi
13870 done
13871     
13872   else
13873     
13874   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13875 echo "configure:13876: checking for _fmodf declaration" >&5
13876   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13877     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13878   echo $ac_n "(cached) $ac_c" 1>&6
13879 else
13880   
13881       
13882       ac_ext=C
13883 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13884 ac_cpp='$CXXCPP $CPPFLAGS'
13885 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13886 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13887 cross_compiling=$ac_cv_prog_cxx_cross
13888
13889       cat > conftest.$ac_ext <<EOF
13890 #line 13891 "configure"
13891 #include "confdefs.h"
13892 #include <math.h>
13893 int main() {
13894  _fmodf(0, 0);
13895 ; return 0; }
13896 EOF
13897 if { (eval echo configure:13898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13898   rm -rf conftest*
13899   glibcpp_cv_func__fmodf_use=yes
13900 else
13901   echo "configure: failed program was:" >&5
13902   cat conftest.$ac_ext >&5
13903   rm -rf conftest*
13904   glibcpp_cv_func__fmodf_use=no
13905 fi
13906 rm -f conftest*
13907       ac_ext=c
13908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13909 ac_cpp='$CPP $CPPFLAGS'
13910 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13911 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13912 cross_compiling=$ac_cv_prog_cc_cross
13913
13914     
13915 fi
13916
13917   fi
13918   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13919
13920     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13921       for ac_func in _fmodf
13922 do
13923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13924 echo "configure:13925: checking for $ac_func" >&5
13925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13926   echo $ac_n "(cached) $ac_c" 1>&6
13927 else
13928   cat > conftest.$ac_ext <<EOF
13929 #line 13930 "configure"
13930 #include "confdefs.h"
13931 /* System header to define __stub macros and hopefully few prototypes,
13932     which can conflict with char $ac_func(); below.  */
13933 #include <assert.h>
13934 /* Override any gcc2 internal prototype to avoid an error.  */
13935 /* We use char because int might match the return type of a gcc2
13936     builtin and then its argument prototype would still apply.  */
13937 char $ac_func();
13938
13939 int main() {
13940
13941 /* The GNU C library defines this for functions which it implements
13942     to always fail with ENOSYS.  Some functions are actually named
13943     something starting with __ and the normal name is an alias.  */
13944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13945 choke me
13946 #else
13947 $ac_func();
13948 #endif
13949
13950 ; return 0; }
13951 EOF
13952 if { (eval echo configure:13953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13953   rm -rf conftest*
13954   eval "ac_cv_func_$ac_func=yes"
13955 else
13956   echo "configure: failed program was:" >&5
13957   cat conftest.$ac_ext >&5
13958   rm -rf conftest*
13959   eval "ac_cv_func_$ac_func=no"
13960 fi
13961 rm -f conftest*
13962 fi
13963
13964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13965   echo "$ac_t""yes" 1>&6
13966     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13967   cat >> confdefs.h <<EOF
13968 #define $ac_tr_func 1
13969 EOF
13970  
13971 else
13972   echo "$ac_t""no" 1>&6
13973 fi
13974 done
13975     
13976     fi
13977   fi
13978
13979   
13980   
13981   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13982 echo "configure:13983: checking for frexpf declaration" >&5
13983   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13984     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13985   echo $ac_n "(cached) $ac_c" 1>&6
13986 else
13987   
13988       
13989       ac_ext=C
13990 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13991 ac_cpp='$CXXCPP $CPPFLAGS'
13992 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13993 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13994 cross_compiling=$ac_cv_prog_cxx_cross
13995
13996       cat > conftest.$ac_ext <<EOF
13997 #line 13998 "configure"
13998 #include "confdefs.h"
13999 #include <math.h>
14000 int main() {
14001  frexpf(0, 0);
14002 ; return 0; }
14003 EOF
14004 if { (eval echo configure:14005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14005   rm -rf conftest*
14006   glibcpp_cv_func_frexpf_use=yes
14007 else
14008   echo "configure: failed program was:" >&5
14009   cat conftest.$ac_ext >&5
14010   rm -rf conftest*
14011   glibcpp_cv_func_frexpf_use=no
14012 fi
14013 rm -f conftest*
14014       ac_ext=c
14015 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14016 ac_cpp='$CPP $CPPFLAGS'
14017 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14018 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14019 cross_compiling=$ac_cv_prog_cc_cross
14020
14021     
14022 fi
14023
14024   fi
14025   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
14026
14027   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
14028     for ac_func in frexpf
14029 do
14030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14031 echo "configure:14032: checking for $ac_func" >&5
14032 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14033   echo $ac_n "(cached) $ac_c" 1>&6
14034 else
14035   cat > conftest.$ac_ext <<EOF
14036 #line 14037 "configure"
14037 #include "confdefs.h"
14038 /* System header to define __stub macros and hopefully few prototypes,
14039     which can conflict with char $ac_func(); below.  */
14040 #include <assert.h>
14041 /* Override any gcc2 internal prototype to avoid an error.  */
14042 /* We use char because int might match the return type of a gcc2
14043     builtin and then its argument prototype would still apply.  */
14044 char $ac_func();
14045
14046 int main() {
14047
14048 /* The GNU C library defines this for functions which it implements
14049     to always fail with ENOSYS.  Some functions are actually named
14050     something starting with __ and the normal name is an alias.  */
14051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14052 choke me
14053 #else
14054 $ac_func();
14055 #endif
14056
14057 ; return 0; }
14058 EOF
14059 if { (eval echo configure:14060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14060   rm -rf conftest*
14061   eval "ac_cv_func_$ac_func=yes"
14062 else
14063   echo "configure: failed program was:" >&5
14064   cat conftest.$ac_ext >&5
14065   rm -rf conftest*
14066   eval "ac_cv_func_$ac_func=no"
14067 fi
14068 rm -f conftest*
14069 fi
14070
14071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14072   echo "$ac_t""yes" 1>&6
14073     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14074   cat >> confdefs.h <<EOF
14075 #define $ac_tr_func 1
14076 EOF
14077  
14078 else
14079   echo "$ac_t""no" 1>&6
14080 fi
14081 done
14082     
14083   else
14084     
14085   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14086 echo "configure:14087: checking for _frexpf declaration" >&5
14087   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14088     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14089   echo $ac_n "(cached) $ac_c" 1>&6
14090 else
14091   
14092       
14093       ac_ext=C
14094 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14095 ac_cpp='$CXXCPP $CPPFLAGS'
14096 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14097 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14098 cross_compiling=$ac_cv_prog_cxx_cross
14099
14100       cat > conftest.$ac_ext <<EOF
14101 #line 14102 "configure"
14102 #include "confdefs.h"
14103 #include <math.h>
14104 int main() {
14105  _frexpf(0, 0);
14106 ; return 0; }
14107 EOF
14108 if { (eval echo configure:14109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14109   rm -rf conftest*
14110   glibcpp_cv_func__frexpf_use=yes
14111 else
14112   echo "configure: failed program was:" >&5
14113   cat conftest.$ac_ext >&5
14114   rm -rf conftest*
14115   glibcpp_cv_func__frexpf_use=no
14116 fi
14117 rm -f conftest*
14118       ac_ext=c
14119 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14120 ac_cpp='$CPP $CPPFLAGS'
14121 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14122 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14123 cross_compiling=$ac_cv_prog_cc_cross
14124
14125     
14126 fi
14127
14128   fi
14129   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14130
14131     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14132       for ac_func in _frexpf
14133 do
14134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14135 echo "configure:14136: checking for $ac_func" >&5
14136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14137   echo $ac_n "(cached) $ac_c" 1>&6
14138 else
14139   cat > conftest.$ac_ext <<EOF
14140 #line 14141 "configure"
14141 #include "confdefs.h"
14142 /* System header to define __stub macros and hopefully few prototypes,
14143     which can conflict with char $ac_func(); below.  */
14144 #include <assert.h>
14145 /* Override any gcc2 internal prototype to avoid an error.  */
14146 /* We use char because int might match the return type of a gcc2
14147     builtin and then its argument prototype would still apply.  */
14148 char $ac_func();
14149
14150 int main() {
14151
14152 /* The GNU C library defines this for functions which it implements
14153     to always fail with ENOSYS.  Some functions are actually named
14154     something starting with __ and the normal name is an alias.  */
14155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14156 choke me
14157 #else
14158 $ac_func();
14159 #endif
14160
14161 ; return 0; }
14162 EOF
14163 if { (eval echo configure:14164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14164   rm -rf conftest*
14165   eval "ac_cv_func_$ac_func=yes"
14166 else
14167   echo "configure: failed program was:" >&5
14168   cat conftest.$ac_ext >&5
14169   rm -rf conftest*
14170   eval "ac_cv_func_$ac_func=no"
14171 fi
14172 rm -f conftest*
14173 fi
14174
14175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14176   echo "$ac_t""yes" 1>&6
14177     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14178   cat >> confdefs.h <<EOF
14179 #define $ac_tr_func 1
14180 EOF
14181  
14182 else
14183   echo "$ac_t""no" 1>&6
14184 fi
14185 done
14186     
14187     fi
14188   fi
14189
14190   
14191   
14192   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14193 echo "configure:14194: checking for hypotf declaration" >&5
14194   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14195     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14196   echo $ac_n "(cached) $ac_c" 1>&6
14197 else
14198   
14199       
14200       ac_ext=C
14201 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14202 ac_cpp='$CXXCPP $CPPFLAGS'
14203 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14204 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14205 cross_compiling=$ac_cv_prog_cxx_cross
14206
14207       cat > conftest.$ac_ext <<EOF
14208 #line 14209 "configure"
14209 #include "confdefs.h"
14210 #include <math.h>
14211 int main() {
14212  hypotf(0, 0);
14213 ; return 0; }
14214 EOF
14215 if { (eval echo configure:14216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14216   rm -rf conftest*
14217   glibcpp_cv_func_hypotf_use=yes
14218 else
14219   echo "configure: failed program was:" >&5
14220   cat conftest.$ac_ext >&5
14221   rm -rf conftest*
14222   glibcpp_cv_func_hypotf_use=no
14223 fi
14224 rm -f conftest*
14225       ac_ext=c
14226 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14227 ac_cpp='$CPP $CPPFLAGS'
14228 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14229 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14230 cross_compiling=$ac_cv_prog_cc_cross
14231
14232     
14233 fi
14234
14235   fi
14236   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14237
14238   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14239     for ac_func in hypotf
14240 do
14241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14242 echo "configure:14243: checking for $ac_func" >&5
14243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14244   echo $ac_n "(cached) $ac_c" 1>&6
14245 else
14246   cat > conftest.$ac_ext <<EOF
14247 #line 14248 "configure"
14248 #include "confdefs.h"
14249 /* System header to define __stub macros and hopefully few prototypes,
14250     which can conflict with char $ac_func(); below.  */
14251 #include <assert.h>
14252 /* Override any gcc2 internal prototype to avoid an error.  */
14253 /* We use char because int might match the return type of a gcc2
14254     builtin and then its argument prototype would still apply.  */
14255 char $ac_func();
14256
14257 int main() {
14258
14259 /* The GNU C library defines this for functions which it implements
14260     to always fail with ENOSYS.  Some functions are actually named
14261     something starting with __ and the normal name is an alias.  */
14262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14263 choke me
14264 #else
14265 $ac_func();
14266 #endif
14267
14268 ; return 0; }
14269 EOF
14270 if { (eval echo configure:14271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14271   rm -rf conftest*
14272   eval "ac_cv_func_$ac_func=yes"
14273 else
14274   echo "configure: failed program was:" >&5
14275   cat conftest.$ac_ext >&5
14276   rm -rf conftest*
14277   eval "ac_cv_func_$ac_func=no"
14278 fi
14279 rm -f conftest*
14280 fi
14281
14282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14283   echo "$ac_t""yes" 1>&6
14284     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14285   cat >> confdefs.h <<EOF
14286 #define $ac_tr_func 1
14287 EOF
14288  
14289 else
14290   echo "$ac_t""no" 1>&6
14291 fi
14292 done
14293     
14294   else
14295     
14296   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14297 echo "configure:14298: checking for _hypotf declaration" >&5
14298   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14299     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14300   echo $ac_n "(cached) $ac_c" 1>&6
14301 else
14302   
14303       
14304       ac_ext=C
14305 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14306 ac_cpp='$CXXCPP $CPPFLAGS'
14307 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14308 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14309 cross_compiling=$ac_cv_prog_cxx_cross
14310
14311       cat > conftest.$ac_ext <<EOF
14312 #line 14313 "configure"
14313 #include "confdefs.h"
14314 #include <math.h>
14315 int main() {
14316  _hypotf(0, 0);
14317 ; return 0; }
14318 EOF
14319 if { (eval echo configure:14320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14320   rm -rf conftest*
14321   glibcpp_cv_func__hypotf_use=yes
14322 else
14323   echo "configure: failed program was:" >&5
14324   cat conftest.$ac_ext >&5
14325   rm -rf conftest*
14326   glibcpp_cv_func__hypotf_use=no
14327 fi
14328 rm -f conftest*
14329       ac_ext=c
14330 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14331 ac_cpp='$CPP $CPPFLAGS'
14332 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14333 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14334 cross_compiling=$ac_cv_prog_cc_cross
14335
14336     
14337 fi
14338
14339   fi
14340   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14341
14342     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14343       for ac_func in _hypotf
14344 do
14345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14346 echo "configure:14347: checking for $ac_func" >&5
14347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14348   echo $ac_n "(cached) $ac_c" 1>&6
14349 else
14350   cat > conftest.$ac_ext <<EOF
14351 #line 14352 "configure"
14352 #include "confdefs.h"
14353 /* System header to define __stub macros and hopefully few prototypes,
14354     which can conflict with char $ac_func(); below.  */
14355 #include <assert.h>
14356 /* Override any gcc2 internal prototype to avoid an error.  */
14357 /* We use char because int might match the return type of a gcc2
14358     builtin and then its argument prototype would still apply.  */
14359 char $ac_func();
14360
14361 int main() {
14362
14363 /* The GNU C library defines this for functions which it implements
14364     to always fail with ENOSYS.  Some functions are actually named
14365     something starting with __ and the normal name is an alias.  */
14366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14367 choke me
14368 #else
14369 $ac_func();
14370 #endif
14371
14372 ; return 0; }
14373 EOF
14374 if { (eval echo configure:14375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14375   rm -rf conftest*
14376   eval "ac_cv_func_$ac_func=yes"
14377 else
14378   echo "configure: failed program was:" >&5
14379   cat conftest.$ac_ext >&5
14380   rm -rf conftest*
14381   eval "ac_cv_func_$ac_func=no"
14382 fi
14383 rm -f conftest*
14384 fi
14385
14386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14387   echo "$ac_t""yes" 1>&6
14388     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14389   cat >> confdefs.h <<EOF
14390 #define $ac_tr_func 1
14391 EOF
14392  
14393 else
14394   echo "$ac_t""no" 1>&6
14395 fi
14396 done
14397     
14398     fi
14399   fi
14400
14401   
14402   
14403   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14404 echo "configure:14405: checking for ldexpf declaration" >&5
14405   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14406     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14407   echo $ac_n "(cached) $ac_c" 1>&6
14408 else
14409   
14410       
14411       ac_ext=C
14412 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14413 ac_cpp='$CXXCPP $CPPFLAGS'
14414 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14415 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14416 cross_compiling=$ac_cv_prog_cxx_cross
14417
14418       cat > conftest.$ac_ext <<EOF
14419 #line 14420 "configure"
14420 #include "confdefs.h"
14421 #include <math.h>
14422 int main() {
14423  ldexpf(0, 0);
14424 ; return 0; }
14425 EOF
14426 if { (eval echo configure:14427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14427   rm -rf conftest*
14428   glibcpp_cv_func_ldexpf_use=yes
14429 else
14430   echo "configure: failed program was:" >&5
14431   cat conftest.$ac_ext >&5
14432   rm -rf conftest*
14433   glibcpp_cv_func_ldexpf_use=no
14434 fi
14435 rm -f conftest*
14436       ac_ext=c
14437 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14438 ac_cpp='$CPP $CPPFLAGS'
14439 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14440 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14441 cross_compiling=$ac_cv_prog_cc_cross
14442
14443     
14444 fi
14445
14446   fi
14447   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14448
14449   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14450     for ac_func in ldexpf
14451 do
14452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14453 echo "configure:14454: checking for $ac_func" >&5
14454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14455   echo $ac_n "(cached) $ac_c" 1>&6
14456 else
14457   cat > conftest.$ac_ext <<EOF
14458 #line 14459 "configure"
14459 #include "confdefs.h"
14460 /* System header to define __stub macros and hopefully few prototypes,
14461     which can conflict with char $ac_func(); below.  */
14462 #include <assert.h>
14463 /* Override any gcc2 internal prototype to avoid an error.  */
14464 /* We use char because int might match the return type of a gcc2
14465     builtin and then its argument prototype would still apply.  */
14466 char $ac_func();
14467
14468 int main() {
14469
14470 /* The GNU C library defines this for functions which it implements
14471     to always fail with ENOSYS.  Some functions are actually named
14472     something starting with __ and the normal name is an alias.  */
14473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14474 choke me
14475 #else
14476 $ac_func();
14477 #endif
14478
14479 ; return 0; }
14480 EOF
14481 if { (eval echo configure:14482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14482   rm -rf conftest*
14483   eval "ac_cv_func_$ac_func=yes"
14484 else
14485   echo "configure: failed program was:" >&5
14486   cat conftest.$ac_ext >&5
14487   rm -rf conftest*
14488   eval "ac_cv_func_$ac_func=no"
14489 fi
14490 rm -f conftest*
14491 fi
14492
14493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14494   echo "$ac_t""yes" 1>&6
14495     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14496   cat >> confdefs.h <<EOF
14497 #define $ac_tr_func 1
14498 EOF
14499  
14500 else
14501   echo "$ac_t""no" 1>&6
14502 fi
14503 done
14504     
14505   else
14506     
14507   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14508 echo "configure:14509: checking for _ldexpf declaration" >&5
14509   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14510     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14511   echo $ac_n "(cached) $ac_c" 1>&6
14512 else
14513   
14514       
14515       ac_ext=C
14516 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14517 ac_cpp='$CXXCPP $CPPFLAGS'
14518 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14519 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14520 cross_compiling=$ac_cv_prog_cxx_cross
14521
14522       cat > conftest.$ac_ext <<EOF
14523 #line 14524 "configure"
14524 #include "confdefs.h"
14525 #include <math.h>
14526 int main() {
14527  _ldexpf(0, 0);
14528 ; return 0; }
14529 EOF
14530 if { (eval echo configure:14531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14531   rm -rf conftest*
14532   glibcpp_cv_func__ldexpf_use=yes
14533 else
14534   echo "configure: failed program was:" >&5
14535   cat conftest.$ac_ext >&5
14536   rm -rf conftest*
14537   glibcpp_cv_func__ldexpf_use=no
14538 fi
14539 rm -f conftest*
14540       ac_ext=c
14541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14542 ac_cpp='$CPP $CPPFLAGS'
14543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14545 cross_compiling=$ac_cv_prog_cc_cross
14546
14547     
14548 fi
14549
14550   fi
14551   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14552
14553     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14554       for ac_func in _ldexpf
14555 do
14556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14557 echo "configure:14558: checking for $ac_func" >&5
14558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14559   echo $ac_n "(cached) $ac_c" 1>&6
14560 else
14561   cat > conftest.$ac_ext <<EOF
14562 #line 14563 "configure"
14563 #include "confdefs.h"
14564 /* System header to define __stub macros and hopefully few prototypes,
14565     which can conflict with char $ac_func(); below.  */
14566 #include <assert.h>
14567 /* Override any gcc2 internal prototype to avoid an error.  */
14568 /* We use char because int might match the return type of a gcc2
14569     builtin and then its argument prototype would still apply.  */
14570 char $ac_func();
14571
14572 int main() {
14573
14574 /* The GNU C library defines this for functions which it implements
14575     to always fail with ENOSYS.  Some functions are actually named
14576     something starting with __ and the normal name is an alias.  */
14577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14578 choke me
14579 #else
14580 $ac_func();
14581 #endif
14582
14583 ; return 0; }
14584 EOF
14585 if { (eval echo configure:14586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14586   rm -rf conftest*
14587   eval "ac_cv_func_$ac_func=yes"
14588 else
14589   echo "configure: failed program was:" >&5
14590   cat conftest.$ac_ext >&5
14591   rm -rf conftest*
14592   eval "ac_cv_func_$ac_func=no"
14593 fi
14594 rm -f conftest*
14595 fi
14596
14597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14598   echo "$ac_t""yes" 1>&6
14599     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14600   cat >> confdefs.h <<EOF
14601 #define $ac_tr_func 1
14602 EOF
14603  
14604 else
14605   echo "$ac_t""no" 1>&6
14606 fi
14607 done
14608     
14609     fi
14610   fi
14611
14612   
14613   
14614   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14615 echo "configure:14616: checking for logf declaration" >&5
14616   if test x${glibcpp_cv_func_logf_use+set} != xset; then
14617     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14618   echo $ac_n "(cached) $ac_c" 1>&6
14619 else
14620   
14621       
14622       ac_ext=C
14623 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14624 ac_cpp='$CXXCPP $CPPFLAGS'
14625 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14626 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14627 cross_compiling=$ac_cv_prog_cxx_cross
14628
14629       cat > conftest.$ac_ext <<EOF
14630 #line 14631 "configure"
14631 #include "confdefs.h"
14632 #include <math.h>
14633                       #ifdef HAVE_IEEEFP_H
14634                       #include <ieeefp.h>
14635                       #endif
14636                      
14637 int main() {
14638  logf(0);
14639 ; return 0; }
14640 EOF
14641 if { (eval echo configure:14642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14642   rm -rf conftest*
14643   glibcpp_cv_func_logf_use=yes
14644 else
14645   echo "configure: failed program was:" >&5
14646   cat conftest.$ac_ext >&5
14647   rm -rf conftest*
14648   glibcpp_cv_func_logf_use=no
14649 fi
14650 rm -f conftest*
14651       ac_ext=c
14652 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14653 ac_cpp='$CPP $CPPFLAGS'
14654 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14655 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14656 cross_compiling=$ac_cv_prog_cc_cross
14657
14658     
14659 fi
14660
14661   fi
14662   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14663
14664   if test x$glibcpp_cv_func_logf_use = x"yes"; then
14665     for ac_func in logf
14666 do
14667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14668 echo "configure:14669: checking for $ac_func" >&5
14669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14670   echo $ac_n "(cached) $ac_c" 1>&6
14671 else
14672   cat > conftest.$ac_ext <<EOF
14673 #line 14674 "configure"
14674 #include "confdefs.h"
14675 /* System header to define __stub macros and hopefully few prototypes,
14676     which can conflict with char $ac_func(); below.  */
14677 #include <assert.h>
14678 /* Override any gcc2 internal prototype to avoid an error.  */
14679 /* We use char because int might match the return type of a gcc2
14680     builtin and then its argument prototype would still apply.  */
14681 char $ac_func();
14682
14683 int main() {
14684
14685 /* The GNU C library defines this for functions which it implements
14686     to always fail with ENOSYS.  Some functions are actually named
14687     something starting with __ and the normal name is an alias.  */
14688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14689 choke me
14690 #else
14691 $ac_func();
14692 #endif
14693
14694 ; return 0; }
14695 EOF
14696 if { (eval echo configure:14697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14697   rm -rf conftest*
14698   eval "ac_cv_func_$ac_func=yes"
14699 else
14700   echo "configure: failed program was:" >&5
14701   cat conftest.$ac_ext >&5
14702   rm -rf conftest*
14703   eval "ac_cv_func_$ac_func=no"
14704 fi
14705 rm -f conftest*
14706 fi
14707
14708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14709   echo "$ac_t""yes" 1>&6
14710     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14711   cat >> confdefs.h <<EOF
14712 #define $ac_tr_func 1
14713 EOF
14714  
14715 else
14716   echo "$ac_t""no" 1>&6
14717 fi
14718 done
14719     
14720   else
14721     
14722   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14723 echo "configure:14724: checking for _logf declaration" >&5
14724   if test x${glibcpp_cv_func__logf_use+set} != xset; then
14725     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14726   echo $ac_n "(cached) $ac_c" 1>&6
14727 else
14728   
14729       
14730       ac_ext=C
14731 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14732 ac_cpp='$CXXCPP $CPPFLAGS'
14733 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14734 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14735 cross_compiling=$ac_cv_prog_cxx_cross
14736
14737       cat > conftest.$ac_ext <<EOF
14738 #line 14739 "configure"
14739 #include "confdefs.h"
14740 #include <math.h>
14741                       #ifdef HAVE_IEEEFP_H
14742                       #include <ieeefp.h>
14743                       #endif
14744                      
14745 int main() {
14746  _logf(0);
14747 ; return 0; }
14748 EOF
14749 if { (eval echo configure:14750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14750   rm -rf conftest*
14751   glibcpp_cv_func__logf_use=yes
14752 else
14753   echo "configure: failed program was:" >&5
14754   cat conftest.$ac_ext >&5
14755   rm -rf conftest*
14756   glibcpp_cv_func__logf_use=no
14757 fi
14758 rm -f conftest*
14759       ac_ext=c
14760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14761 ac_cpp='$CPP $CPPFLAGS'
14762 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14763 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14764 cross_compiling=$ac_cv_prog_cc_cross
14765
14766     
14767 fi
14768
14769   fi
14770   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14771
14772     if test x$glibcpp_cv_func__logf_use = x"yes"; then
14773       for ac_func in _logf
14774 do
14775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14776 echo "configure:14777: checking for $ac_func" >&5
14777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14778   echo $ac_n "(cached) $ac_c" 1>&6
14779 else
14780   cat > conftest.$ac_ext <<EOF
14781 #line 14782 "configure"
14782 #include "confdefs.h"
14783 /* System header to define __stub macros and hopefully few prototypes,
14784     which can conflict with char $ac_func(); below.  */
14785 #include <assert.h>
14786 /* Override any gcc2 internal prototype to avoid an error.  */
14787 /* We use char because int might match the return type of a gcc2
14788     builtin and then its argument prototype would still apply.  */
14789 char $ac_func();
14790
14791 int main() {
14792
14793 /* The GNU C library defines this for functions which it implements
14794     to always fail with ENOSYS.  Some functions are actually named
14795     something starting with __ and the normal name is an alias.  */
14796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14797 choke me
14798 #else
14799 $ac_func();
14800 #endif
14801
14802 ; return 0; }
14803 EOF
14804 if { (eval echo configure:14805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14805   rm -rf conftest*
14806   eval "ac_cv_func_$ac_func=yes"
14807 else
14808   echo "configure: failed program was:" >&5
14809   cat conftest.$ac_ext >&5
14810   rm -rf conftest*
14811   eval "ac_cv_func_$ac_func=no"
14812 fi
14813 rm -f conftest*
14814 fi
14815
14816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14817   echo "$ac_t""yes" 1>&6
14818     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14819   cat >> confdefs.h <<EOF
14820 #define $ac_tr_func 1
14821 EOF
14822  
14823 else
14824   echo "$ac_t""no" 1>&6
14825 fi
14826 done
14827     
14828     fi
14829   fi
14830
14831   
14832   
14833   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14834 echo "configure:14835: checking for log10f declaration" >&5
14835   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14836     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14837   echo $ac_n "(cached) $ac_c" 1>&6
14838 else
14839   
14840       
14841       ac_ext=C
14842 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14843 ac_cpp='$CXXCPP $CPPFLAGS'
14844 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14845 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14846 cross_compiling=$ac_cv_prog_cxx_cross
14847
14848       cat > conftest.$ac_ext <<EOF
14849 #line 14850 "configure"
14850 #include "confdefs.h"
14851 #include <math.h>
14852                       #ifdef HAVE_IEEEFP_H
14853                       #include <ieeefp.h>
14854                       #endif
14855                      
14856 int main() {
14857  log10f(0);
14858 ; return 0; }
14859 EOF
14860 if { (eval echo configure:14861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14861   rm -rf conftest*
14862   glibcpp_cv_func_log10f_use=yes
14863 else
14864   echo "configure: failed program was:" >&5
14865   cat conftest.$ac_ext >&5
14866   rm -rf conftest*
14867   glibcpp_cv_func_log10f_use=no
14868 fi
14869 rm -f conftest*
14870       ac_ext=c
14871 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14872 ac_cpp='$CPP $CPPFLAGS'
14873 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14874 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14875 cross_compiling=$ac_cv_prog_cc_cross
14876
14877     
14878 fi
14879
14880   fi
14881   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14882
14883   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14884     for ac_func in log10f
14885 do
14886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14887 echo "configure:14888: checking for $ac_func" >&5
14888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14889   echo $ac_n "(cached) $ac_c" 1>&6
14890 else
14891   cat > conftest.$ac_ext <<EOF
14892 #line 14893 "configure"
14893 #include "confdefs.h"
14894 /* System header to define __stub macros and hopefully few prototypes,
14895     which can conflict with char $ac_func(); below.  */
14896 #include <assert.h>
14897 /* Override any gcc2 internal prototype to avoid an error.  */
14898 /* We use char because int might match the return type of a gcc2
14899     builtin and then its argument prototype would still apply.  */
14900 char $ac_func();
14901
14902 int main() {
14903
14904 /* The GNU C library defines this for functions which it implements
14905     to always fail with ENOSYS.  Some functions are actually named
14906     something starting with __ and the normal name is an alias.  */
14907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14908 choke me
14909 #else
14910 $ac_func();
14911 #endif
14912
14913 ; return 0; }
14914 EOF
14915 if { (eval echo configure:14916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14916   rm -rf conftest*
14917   eval "ac_cv_func_$ac_func=yes"
14918 else
14919   echo "configure: failed program was:" >&5
14920   cat conftest.$ac_ext >&5
14921   rm -rf conftest*
14922   eval "ac_cv_func_$ac_func=no"
14923 fi
14924 rm -f conftest*
14925 fi
14926
14927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14928   echo "$ac_t""yes" 1>&6
14929     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14930   cat >> confdefs.h <<EOF
14931 #define $ac_tr_func 1
14932 EOF
14933  
14934 else
14935   echo "$ac_t""no" 1>&6
14936 fi
14937 done
14938     
14939   else
14940     
14941   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14942 echo "configure:14943: checking for _log10f declaration" >&5
14943   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14944     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14945   echo $ac_n "(cached) $ac_c" 1>&6
14946 else
14947   
14948       
14949       ac_ext=C
14950 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14951 ac_cpp='$CXXCPP $CPPFLAGS'
14952 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14953 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14954 cross_compiling=$ac_cv_prog_cxx_cross
14955
14956       cat > conftest.$ac_ext <<EOF
14957 #line 14958 "configure"
14958 #include "confdefs.h"
14959 #include <math.h>
14960                       #ifdef HAVE_IEEEFP_H
14961                       #include <ieeefp.h>
14962                       #endif
14963                      
14964 int main() {
14965  _log10f(0);
14966 ; return 0; }
14967 EOF
14968 if { (eval echo configure:14969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14969   rm -rf conftest*
14970   glibcpp_cv_func__log10f_use=yes
14971 else
14972   echo "configure: failed program was:" >&5
14973   cat conftest.$ac_ext >&5
14974   rm -rf conftest*
14975   glibcpp_cv_func__log10f_use=no
14976 fi
14977 rm -f conftest*
14978       ac_ext=c
14979 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14980 ac_cpp='$CPP $CPPFLAGS'
14981 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14982 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14983 cross_compiling=$ac_cv_prog_cc_cross
14984
14985     
14986 fi
14987
14988   fi
14989   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14990
14991     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14992       for ac_func in _log10f
14993 do
14994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14995 echo "configure:14996: checking for $ac_func" >&5
14996 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14997   echo $ac_n "(cached) $ac_c" 1>&6
14998 else
14999   cat > conftest.$ac_ext <<EOF
15000 #line 15001 "configure"
15001 #include "confdefs.h"
15002 /* System header to define __stub macros and hopefully few prototypes,
15003     which can conflict with char $ac_func(); below.  */
15004 #include <assert.h>
15005 /* Override any gcc2 internal prototype to avoid an error.  */
15006 /* We use char because int might match the return type of a gcc2
15007     builtin and then its argument prototype would still apply.  */
15008 char $ac_func();
15009
15010 int main() {
15011
15012 /* The GNU C library defines this for functions which it implements
15013     to always fail with ENOSYS.  Some functions are actually named
15014     something starting with __ and the normal name is an alias.  */
15015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15016 choke me
15017 #else
15018 $ac_func();
15019 #endif
15020
15021 ; return 0; }
15022 EOF
15023 if { (eval echo configure:15024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15024   rm -rf conftest*
15025   eval "ac_cv_func_$ac_func=yes"
15026 else
15027   echo "configure: failed program was:" >&5
15028   cat conftest.$ac_ext >&5
15029   rm -rf conftest*
15030   eval "ac_cv_func_$ac_func=no"
15031 fi
15032 rm -f conftest*
15033 fi
15034
15035 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15036   echo "$ac_t""yes" 1>&6
15037     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15038   cat >> confdefs.h <<EOF
15039 #define $ac_tr_func 1
15040 EOF
15041  
15042 else
15043   echo "$ac_t""no" 1>&6
15044 fi
15045 done
15046     
15047     fi
15048   fi
15049
15050   
15051   
15052   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15053 echo "configure:15054: checking for modff declaration" >&5
15054   if test x${glibcpp_cv_func_modff_use+set} != xset; then
15055     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15056   echo $ac_n "(cached) $ac_c" 1>&6
15057 else
15058   
15059       
15060       ac_ext=C
15061 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15062 ac_cpp='$CXXCPP $CPPFLAGS'
15063 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15064 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15065 cross_compiling=$ac_cv_prog_cxx_cross
15066
15067       cat > conftest.$ac_ext <<EOF
15068 #line 15069 "configure"
15069 #include "confdefs.h"
15070 #include <math.h>
15071 int main() {
15072  modff(0, 0);
15073 ; return 0; }
15074 EOF
15075 if { (eval echo configure:15076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15076   rm -rf conftest*
15077   glibcpp_cv_func_modff_use=yes
15078 else
15079   echo "configure: failed program was:" >&5
15080   cat conftest.$ac_ext >&5
15081   rm -rf conftest*
15082   glibcpp_cv_func_modff_use=no
15083 fi
15084 rm -f conftest*
15085       ac_ext=c
15086 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15087 ac_cpp='$CPP $CPPFLAGS'
15088 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15089 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15090 cross_compiling=$ac_cv_prog_cc_cross
15091
15092     
15093 fi
15094
15095   fi
15096   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15097
15098   if test x$glibcpp_cv_func_modff_use = x"yes"; then
15099     for ac_func in modff
15100 do
15101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15102 echo "configure:15103: checking for $ac_func" >&5
15103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15104   echo $ac_n "(cached) $ac_c" 1>&6
15105 else
15106   cat > conftest.$ac_ext <<EOF
15107 #line 15108 "configure"
15108 #include "confdefs.h"
15109 /* System header to define __stub macros and hopefully few prototypes,
15110     which can conflict with char $ac_func(); below.  */
15111 #include <assert.h>
15112 /* Override any gcc2 internal prototype to avoid an error.  */
15113 /* We use char because int might match the return type of a gcc2
15114     builtin and then its argument prototype would still apply.  */
15115 char $ac_func();
15116
15117 int main() {
15118
15119 /* The GNU C library defines this for functions which it implements
15120     to always fail with ENOSYS.  Some functions are actually named
15121     something starting with __ and the normal name is an alias.  */
15122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15123 choke me
15124 #else
15125 $ac_func();
15126 #endif
15127
15128 ; return 0; }
15129 EOF
15130 if { (eval echo configure:15131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15131   rm -rf conftest*
15132   eval "ac_cv_func_$ac_func=yes"
15133 else
15134   echo "configure: failed program was:" >&5
15135   cat conftest.$ac_ext >&5
15136   rm -rf conftest*
15137   eval "ac_cv_func_$ac_func=no"
15138 fi
15139 rm -f conftest*
15140 fi
15141
15142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15143   echo "$ac_t""yes" 1>&6
15144     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15145   cat >> confdefs.h <<EOF
15146 #define $ac_tr_func 1
15147 EOF
15148  
15149 else
15150   echo "$ac_t""no" 1>&6
15151 fi
15152 done
15153     
15154   else
15155     
15156   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15157 echo "configure:15158: checking for _modff declaration" >&5
15158   if test x${glibcpp_cv_func__modff_use+set} != xset; then
15159     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15160   echo $ac_n "(cached) $ac_c" 1>&6
15161 else
15162   
15163       
15164       ac_ext=C
15165 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15166 ac_cpp='$CXXCPP $CPPFLAGS'
15167 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15168 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15169 cross_compiling=$ac_cv_prog_cxx_cross
15170
15171       cat > conftest.$ac_ext <<EOF
15172 #line 15173 "configure"
15173 #include "confdefs.h"
15174 #include <math.h>
15175 int main() {
15176  _modff(0, 0);
15177 ; return 0; }
15178 EOF
15179 if { (eval echo configure:15180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15180   rm -rf conftest*
15181   glibcpp_cv_func__modff_use=yes
15182 else
15183   echo "configure: failed program was:" >&5
15184   cat conftest.$ac_ext >&5
15185   rm -rf conftest*
15186   glibcpp_cv_func__modff_use=no
15187 fi
15188 rm -f conftest*
15189       ac_ext=c
15190 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15191 ac_cpp='$CPP $CPPFLAGS'
15192 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15193 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15194 cross_compiling=$ac_cv_prog_cc_cross
15195
15196     
15197 fi
15198
15199   fi
15200   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15201
15202     if test x$glibcpp_cv_func__modff_use = x"yes"; then
15203       for ac_func in _modff
15204 do
15205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15206 echo "configure:15207: checking for $ac_func" >&5
15207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15208   echo $ac_n "(cached) $ac_c" 1>&6
15209 else
15210   cat > conftest.$ac_ext <<EOF
15211 #line 15212 "configure"
15212 #include "confdefs.h"
15213 /* System header to define __stub macros and hopefully few prototypes,
15214     which can conflict with char $ac_func(); below.  */
15215 #include <assert.h>
15216 /* Override any gcc2 internal prototype to avoid an error.  */
15217 /* We use char because int might match the return type of a gcc2
15218     builtin and then its argument prototype would still apply.  */
15219 char $ac_func();
15220
15221 int main() {
15222
15223 /* The GNU C library defines this for functions which it implements
15224     to always fail with ENOSYS.  Some functions are actually named
15225     something starting with __ and the normal name is an alias.  */
15226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15227 choke me
15228 #else
15229 $ac_func();
15230 #endif
15231
15232 ; return 0; }
15233 EOF
15234 if { (eval echo configure:15235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15235   rm -rf conftest*
15236   eval "ac_cv_func_$ac_func=yes"
15237 else
15238   echo "configure: failed program was:" >&5
15239   cat conftest.$ac_ext >&5
15240   rm -rf conftest*
15241   eval "ac_cv_func_$ac_func=no"
15242 fi
15243 rm -f conftest*
15244 fi
15245
15246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15247   echo "$ac_t""yes" 1>&6
15248     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15249   cat >> confdefs.h <<EOF
15250 #define $ac_tr_func 1
15251 EOF
15252  
15253 else
15254   echo "$ac_t""no" 1>&6
15255 fi
15256 done
15257     
15258     fi
15259   fi
15260
15261   
15262   
15263   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15264 echo "configure:15265: checking for powf declaration" >&5
15265   if test x${glibcpp_cv_func_powf_use+set} != xset; then
15266     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15267   echo $ac_n "(cached) $ac_c" 1>&6
15268 else
15269   
15270       
15271       ac_ext=C
15272 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15273 ac_cpp='$CXXCPP $CPPFLAGS'
15274 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15275 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15276 cross_compiling=$ac_cv_prog_cxx_cross
15277
15278       cat > conftest.$ac_ext <<EOF
15279 #line 15280 "configure"
15280 #include "confdefs.h"
15281 #include <math.h>
15282 int main() {
15283  powf(0, 0);
15284 ; return 0; }
15285 EOF
15286 if { (eval echo configure:15287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15287   rm -rf conftest*
15288   glibcpp_cv_func_powf_use=yes
15289 else
15290   echo "configure: failed program was:" >&5
15291   cat conftest.$ac_ext >&5
15292   rm -rf conftest*
15293   glibcpp_cv_func_powf_use=no
15294 fi
15295 rm -f conftest*
15296       ac_ext=c
15297 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15298 ac_cpp='$CPP $CPPFLAGS'
15299 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15300 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15301 cross_compiling=$ac_cv_prog_cc_cross
15302
15303     
15304 fi
15305
15306   fi
15307   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15308
15309   if test x$glibcpp_cv_func_powf_use = x"yes"; then
15310     for ac_func in powf
15311 do
15312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15313 echo "configure:15314: checking for $ac_func" >&5
15314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15315   echo $ac_n "(cached) $ac_c" 1>&6
15316 else
15317   cat > conftest.$ac_ext <<EOF
15318 #line 15319 "configure"
15319 #include "confdefs.h"
15320 /* System header to define __stub macros and hopefully few prototypes,
15321     which can conflict with char $ac_func(); below.  */
15322 #include <assert.h>
15323 /* Override any gcc2 internal prototype to avoid an error.  */
15324 /* We use char because int might match the return type of a gcc2
15325     builtin and then its argument prototype would still apply.  */
15326 char $ac_func();
15327
15328 int main() {
15329
15330 /* The GNU C library defines this for functions which it implements
15331     to always fail with ENOSYS.  Some functions are actually named
15332     something starting with __ and the normal name is an alias.  */
15333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15334 choke me
15335 #else
15336 $ac_func();
15337 #endif
15338
15339 ; return 0; }
15340 EOF
15341 if { (eval echo configure:15342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15342   rm -rf conftest*
15343   eval "ac_cv_func_$ac_func=yes"
15344 else
15345   echo "configure: failed program was:" >&5
15346   cat conftest.$ac_ext >&5
15347   rm -rf conftest*
15348   eval "ac_cv_func_$ac_func=no"
15349 fi
15350 rm -f conftest*
15351 fi
15352
15353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15354   echo "$ac_t""yes" 1>&6
15355     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15356   cat >> confdefs.h <<EOF
15357 #define $ac_tr_func 1
15358 EOF
15359  
15360 else
15361   echo "$ac_t""no" 1>&6
15362 fi
15363 done
15364     
15365   else
15366     
15367   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15368 echo "configure:15369: checking for _powf declaration" >&5
15369   if test x${glibcpp_cv_func__powf_use+set} != xset; then
15370     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15371   echo $ac_n "(cached) $ac_c" 1>&6
15372 else
15373   
15374       
15375       ac_ext=C
15376 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15377 ac_cpp='$CXXCPP $CPPFLAGS'
15378 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15379 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15380 cross_compiling=$ac_cv_prog_cxx_cross
15381
15382       cat > conftest.$ac_ext <<EOF
15383 #line 15384 "configure"
15384 #include "confdefs.h"
15385 #include <math.h>
15386 int main() {
15387  _powf(0, 0);
15388 ; return 0; }
15389 EOF
15390 if { (eval echo configure:15391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15391   rm -rf conftest*
15392   glibcpp_cv_func__powf_use=yes
15393 else
15394   echo "configure: failed program was:" >&5
15395   cat conftest.$ac_ext >&5
15396   rm -rf conftest*
15397   glibcpp_cv_func__powf_use=no
15398 fi
15399 rm -f conftest*
15400       ac_ext=c
15401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15402 ac_cpp='$CPP $CPPFLAGS'
15403 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15404 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15405 cross_compiling=$ac_cv_prog_cc_cross
15406
15407     
15408 fi
15409
15410   fi
15411   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15412
15413     if test x$glibcpp_cv_func__powf_use = x"yes"; then
15414       for ac_func in _powf
15415 do
15416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15417 echo "configure:15418: checking for $ac_func" >&5
15418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15419   echo $ac_n "(cached) $ac_c" 1>&6
15420 else
15421   cat > conftest.$ac_ext <<EOF
15422 #line 15423 "configure"
15423 #include "confdefs.h"
15424 /* System header to define __stub macros and hopefully few prototypes,
15425     which can conflict with char $ac_func(); below.  */
15426 #include <assert.h>
15427 /* Override any gcc2 internal prototype to avoid an error.  */
15428 /* We use char because int might match the return type of a gcc2
15429     builtin and then its argument prototype would still apply.  */
15430 char $ac_func();
15431
15432 int main() {
15433
15434 /* The GNU C library defines this for functions which it implements
15435     to always fail with ENOSYS.  Some functions are actually named
15436     something starting with __ and the normal name is an alias.  */
15437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15438 choke me
15439 #else
15440 $ac_func();
15441 #endif
15442
15443 ; return 0; }
15444 EOF
15445 if { (eval echo configure:15446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15446   rm -rf conftest*
15447   eval "ac_cv_func_$ac_func=yes"
15448 else
15449   echo "configure: failed program was:" >&5
15450   cat conftest.$ac_ext >&5
15451   rm -rf conftest*
15452   eval "ac_cv_func_$ac_func=no"
15453 fi
15454 rm -f conftest*
15455 fi
15456
15457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15458   echo "$ac_t""yes" 1>&6
15459     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15460   cat >> confdefs.h <<EOF
15461 #define $ac_tr_func 1
15462 EOF
15463  
15464 else
15465   echo "$ac_t""no" 1>&6
15466 fi
15467 done
15468     
15469     fi
15470   fi
15471
15472   
15473   
15474   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15475 echo "configure:15476: checking for sqrtf declaration" >&5
15476   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15477     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15478   echo $ac_n "(cached) $ac_c" 1>&6
15479 else
15480   
15481       
15482       ac_ext=C
15483 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15484 ac_cpp='$CXXCPP $CPPFLAGS'
15485 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15486 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15487 cross_compiling=$ac_cv_prog_cxx_cross
15488
15489       cat > conftest.$ac_ext <<EOF
15490 #line 15491 "configure"
15491 #include "confdefs.h"
15492 #include <math.h>
15493                       #ifdef HAVE_IEEEFP_H
15494                       #include <ieeefp.h>
15495                       #endif
15496                      
15497 int main() {
15498  sqrtf(0);
15499 ; return 0; }
15500 EOF
15501 if { (eval echo configure:15502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15502   rm -rf conftest*
15503   glibcpp_cv_func_sqrtf_use=yes
15504 else
15505   echo "configure: failed program was:" >&5
15506   cat conftest.$ac_ext >&5
15507   rm -rf conftest*
15508   glibcpp_cv_func_sqrtf_use=no
15509 fi
15510 rm -f conftest*
15511       ac_ext=c
15512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15513 ac_cpp='$CPP $CPPFLAGS'
15514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15516 cross_compiling=$ac_cv_prog_cc_cross
15517
15518     
15519 fi
15520
15521   fi
15522   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15523
15524   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15525     for ac_func in sqrtf
15526 do
15527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15528 echo "configure:15529: checking for $ac_func" >&5
15529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15530   echo $ac_n "(cached) $ac_c" 1>&6
15531 else
15532   cat > conftest.$ac_ext <<EOF
15533 #line 15534 "configure"
15534 #include "confdefs.h"
15535 /* System header to define __stub macros and hopefully few prototypes,
15536     which can conflict with char $ac_func(); below.  */
15537 #include <assert.h>
15538 /* Override any gcc2 internal prototype to avoid an error.  */
15539 /* We use char because int might match the return type of a gcc2
15540     builtin and then its argument prototype would still apply.  */
15541 char $ac_func();
15542
15543 int main() {
15544
15545 /* The GNU C library defines this for functions which it implements
15546     to always fail with ENOSYS.  Some functions are actually named
15547     something starting with __ and the normal name is an alias.  */
15548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15549 choke me
15550 #else
15551 $ac_func();
15552 #endif
15553
15554 ; return 0; }
15555 EOF
15556 if { (eval echo configure:15557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15557   rm -rf conftest*
15558   eval "ac_cv_func_$ac_func=yes"
15559 else
15560   echo "configure: failed program was:" >&5
15561   cat conftest.$ac_ext >&5
15562   rm -rf conftest*
15563   eval "ac_cv_func_$ac_func=no"
15564 fi
15565 rm -f conftest*
15566 fi
15567
15568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15569   echo "$ac_t""yes" 1>&6
15570     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15571   cat >> confdefs.h <<EOF
15572 #define $ac_tr_func 1
15573 EOF
15574  
15575 else
15576   echo "$ac_t""no" 1>&6
15577 fi
15578 done
15579     
15580   else
15581     
15582   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15583 echo "configure:15584: checking for _sqrtf declaration" >&5
15584   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15585     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15586   echo $ac_n "(cached) $ac_c" 1>&6
15587 else
15588   
15589       
15590       ac_ext=C
15591 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15592 ac_cpp='$CXXCPP $CPPFLAGS'
15593 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15594 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15595 cross_compiling=$ac_cv_prog_cxx_cross
15596
15597       cat > conftest.$ac_ext <<EOF
15598 #line 15599 "configure"
15599 #include "confdefs.h"
15600 #include <math.h>
15601                       #ifdef HAVE_IEEEFP_H
15602                       #include <ieeefp.h>
15603                       #endif
15604                      
15605 int main() {
15606  _sqrtf(0);
15607 ; return 0; }
15608 EOF
15609 if { (eval echo configure:15610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15610   rm -rf conftest*
15611   glibcpp_cv_func__sqrtf_use=yes
15612 else
15613   echo "configure: failed program was:" >&5
15614   cat conftest.$ac_ext >&5
15615   rm -rf conftest*
15616   glibcpp_cv_func__sqrtf_use=no
15617 fi
15618 rm -f conftest*
15619       ac_ext=c
15620 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15621 ac_cpp='$CPP $CPPFLAGS'
15622 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15623 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15624 cross_compiling=$ac_cv_prog_cc_cross
15625
15626     
15627 fi
15628
15629   fi
15630   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15631
15632     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15633       for ac_func in _sqrtf
15634 do
15635 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15636 echo "configure:15637: checking for $ac_func" >&5
15637 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15638   echo $ac_n "(cached) $ac_c" 1>&6
15639 else
15640   cat > conftest.$ac_ext <<EOF
15641 #line 15642 "configure"
15642 #include "confdefs.h"
15643 /* System header to define __stub macros and hopefully few prototypes,
15644     which can conflict with char $ac_func(); below.  */
15645 #include <assert.h>
15646 /* Override any gcc2 internal prototype to avoid an error.  */
15647 /* We use char because int might match the return type of a gcc2
15648     builtin and then its argument prototype would still apply.  */
15649 char $ac_func();
15650
15651 int main() {
15652
15653 /* The GNU C library defines this for functions which it implements
15654     to always fail with ENOSYS.  Some functions are actually named
15655     something starting with __ and the normal name is an alias.  */
15656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15657 choke me
15658 #else
15659 $ac_func();
15660 #endif
15661
15662 ; return 0; }
15663 EOF
15664 if { (eval echo configure:15665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15665   rm -rf conftest*
15666   eval "ac_cv_func_$ac_func=yes"
15667 else
15668   echo "configure: failed program was:" >&5
15669   cat conftest.$ac_ext >&5
15670   rm -rf conftest*
15671   eval "ac_cv_func_$ac_func=no"
15672 fi
15673 rm -f conftest*
15674 fi
15675
15676 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15677   echo "$ac_t""yes" 1>&6
15678     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15679   cat >> confdefs.h <<EOF
15680 #define $ac_tr_func 1
15681 EOF
15682  
15683 else
15684   echo "$ac_t""no" 1>&6
15685 fi
15686 done
15687     
15688     fi
15689   fi
15690
15691   
15692   
15693   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15694 echo "configure:15695: checking for sincosf declaration" >&5
15695   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15696     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15697   echo $ac_n "(cached) $ac_c" 1>&6
15698 else
15699   
15700       
15701       ac_ext=C
15702 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15703 ac_cpp='$CXXCPP $CPPFLAGS'
15704 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15705 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15706 cross_compiling=$ac_cv_prog_cxx_cross
15707
15708       cat > conftest.$ac_ext <<EOF
15709 #line 15710 "configure"
15710 #include "confdefs.h"
15711 #include <math.h>
15712 int main() {
15713  sincosf(0, 0, 0);
15714 ; return 0; }
15715 EOF
15716 if { (eval echo configure:15717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15717   rm -rf conftest*
15718   glibcpp_cv_func_sincosf_use=yes
15719 else
15720   echo "configure: failed program was:" >&5
15721   cat conftest.$ac_ext >&5
15722   rm -rf conftest*
15723   glibcpp_cv_func_sincosf_use=no
15724 fi
15725 rm -f conftest*
15726       ac_ext=c
15727 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15728 ac_cpp='$CPP $CPPFLAGS'
15729 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15730 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15731 cross_compiling=$ac_cv_prog_cc_cross
15732
15733     
15734 fi
15735
15736   fi
15737   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15738
15739   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15740     for ac_func in sincosf
15741 do
15742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15743 echo "configure:15744: checking for $ac_func" >&5
15744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15745   echo $ac_n "(cached) $ac_c" 1>&6
15746 else
15747   cat > conftest.$ac_ext <<EOF
15748 #line 15749 "configure"
15749 #include "confdefs.h"
15750 /* System header to define __stub macros and hopefully few prototypes,
15751     which can conflict with char $ac_func(); below.  */
15752 #include <assert.h>
15753 /* Override any gcc2 internal prototype to avoid an error.  */
15754 /* We use char because int might match the return type of a gcc2
15755     builtin and then its argument prototype would still apply.  */
15756 char $ac_func();
15757
15758 int main() {
15759
15760 /* The GNU C library defines this for functions which it implements
15761     to always fail with ENOSYS.  Some functions are actually named
15762     something starting with __ and the normal name is an alias.  */
15763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15764 choke me
15765 #else
15766 $ac_func();
15767 #endif
15768
15769 ; return 0; }
15770 EOF
15771 if { (eval echo configure:15772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15772   rm -rf conftest*
15773   eval "ac_cv_func_$ac_func=yes"
15774 else
15775   echo "configure: failed program was:" >&5
15776   cat conftest.$ac_ext >&5
15777   rm -rf conftest*
15778   eval "ac_cv_func_$ac_func=no"
15779 fi
15780 rm -f conftest*
15781 fi
15782
15783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15784   echo "$ac_t""yes" 1>&6
15785     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15786   cat >> confdefs.h <<EOF
15787 #define $ac_tr_func 1
15788 EOF
15789  
15790 else
15791   echo "$ac_t""no" 1>&6
15792 fi
15793 done
15794     
15795   else
15796     
15797   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15798 echo "configure:15799: checking for _sincosf declaration" >&5
15799   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15800     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15801   echo $ac_n "(cached) $ac_c" 1>&6
15802 else
15803   
15804       
15805       ac_ext=C
15806 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15807 ac_cpp='$CXXCPP $CPPFLAGS'
15808 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15809 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15810 cross_compiling=$ac_cv_prog_cxx_cross
15811
15812       cat > conftest.$ac_ext <<EOF
15813 #line 15814 "configure"
15814 #include "confdefs.h"
15815 #include <math.h>
15816 int main() {
15817  _sincosf(0, 0, 0);
15818 ; return 0; }
15819 EOF
15820 if { (eval echo configure:15821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15821   rm -rf conftest*
15822   glibcpp_cv_func__sincosf_use=yes
15823 else
15824   echo "configure: failed program was:" >&5
15825   cat conftest.$ac_ext >&5
15826   rm -rf conftest*
15827   glibcpp_cv_func__sincosf_use=no
15828 fi
15829 rm -f conftest*
15830       ac_ext=c
15831 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15832 ac_cpp='$CPP $CPPFLAGS'
15833 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15834 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15835 cross_compiling=$ac_cv_prog_cc_cross
15836
15837     
15838 fi
15839
15840   fi
15841   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15842
15843     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15844       for ac_func in _sincosf
15845 do
15846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15847 echo "configure:15848: checking for $ac_func" >&5
15848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15849   echo $ac_n "(cached) $ac_c" 1>&6
15850 else
15851   cat > conftest.$ac_ext <<EOF
15852 #line 15853 "configure"
15853 #include "confdefs.h"
15854 /* System header to define __stub macros and hopefully few prototypes,
15855     which can conflict with char $ac_func(); below.  */
15856 #include <assert.h>
15857 /* Override any gcc2 internal prototype to avoid an error.  */
15858 /* We use char because int might match the return type of a gcc2
15859     builtin and then its argument prototype would still apply.  */
15860 char $ac_func();
15861
15862 int main() {
15863
15864 /* The GNU C library defines this for functions which it implements
15865     to always fail with ENOSYS.  Some functions are actually named
15866     something starting with __ and the normal name is an alias.  */
15867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15868 choke me
15869 #else
15870 $ac_func();
15871 #endif
15872
15873 ; return 0; }
15874 EOF
15875 if { (eval echo configure:15876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15876   rm -rf conftest*
15877   eval "ac_cv_func_$ac_func=yes"
15878 else
15879   echo "configure: failed program was:" >&5
15880   cat conftest.$ac_ext >&5
15881   rm -rf conftest*
15882   eval "ac_cv_func_$ac_func=no"
15883 fi
15884 rm -f conftest*
15885 fi
15886
15887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15888   echo "$ac_t""yes" 1>&6
15889     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15890   cat >> confdefs.h <<EOF
15891 #define $ac_tr_func 1
15892 EOF
15893  
15894 else
15895   echo "$ac_t""no" 1>&6
15896 fi
15897 done
15898     
15899     fi
15900   fi
15901
15902   
15903   
15904   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15905 echo "configure:15906: checking for finitef declaration" >&5
15906   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15907     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15908   echo $ac_n "(cached) $ac_c" 1>&6
15909 else
15910   
15911       
15912       ac_ext=C
15913 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15914 ac_cpp='$CXXCPP $CPPFLAGS'
15915 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15916 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15917 cross_compiling=$ac_cv_prog_cxx_cross
15918
15919       cat > conftest.$ac_ext <<EOF
15920 #line 15921 "configure"
15921 #include "confdefs.h"
15922 #include <math.h>
15923                       #ifdef HAVE_IEEEFP_H
15924                       #include <ieeefp.h>
15925                       #endif
15926                      
15927 int main() {
15928  finitef(0);
15929 ; return 0; }
15930 EOF
15931 if { (eval echo configure:15932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15932   rm -rf conftest*
15933   glibcpp_cv_func_finitef_use=yes
15934 else
15935   echo "configure: failed program was:" >&5
15936   cat conftest.$ac_ext >&5
15937   rm -rf conftest*
15938   glibcpp_cv_func_finitef_use=no
15939 fi
15940 rm -f conftest*
15941       ac_ext=c
15942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15943 ac_cpp='$CPP $CPPFLAGS'
15944 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15945 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15946 cross_compiling=$ac_cv_prog_cc_cross
15947
15948     
15949 fi
15950
15951   fi
15952   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15953
15954   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15955     for ac_func in finitef
15956 do
15957 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15958 echo "configure:15959: checking for $ac_func" >&5
15959 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15960   echo $ac_n "(cached) $ac_c" 1>&6
15961 else
15962   cat > conftest.$ac_ext <<EOF
15963 #line 15964 "configure"
15964 #include "confdefs.h"
15965 /* System header to define __stub macros and hopefully few prototypes,
15966     which can conflict with char $ac_func(); below.  */
15967 #include <assert.h>
15968 /* Override any gcc2 internal prototype to avoid an error.  */
15969 /* We use char because int might match the return type of a gcc2
15970     builtin and then its argument prototype would still apply.  */
15971 char $ac_func();
15972
15973 int main() {
15974
15975 /* The GNU C library defines this for functions which it implements
15976     to always fail with ENOSYS.  Some functions are actually named
15977     something starting with __ and the normal name is an alias.  */
15978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15979 choke me
15980 #else
15981 $ac_func();
15982 #endif
15983
15984 ; return 0; }
15985 EOF
15986 if { (eval echo configure:15987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15987   rm -rf conftest*
15988   eval "ac_cv_func_$ac_func=yes"
15989 else
15990   echo "configure: failed program was:" >&5
15991   cat conftest.$ac_ext >&5
15992   rm -rf conftest*
15993   eval "ac_cv_func_$ac_func=no"
15994 fi
15995 rm -f conftest*
15996 fi
15997
15998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15999   echo "$ac_t""yes" 1>&6
16000     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16001   cat >> confdefs.h <<EOF
16002 #define $ac_tr_func 1
16003 EOF
16004  
16005 else
16006   echo "$ac_t""no" 1>&6
16007 fi
16008 done
16009     
16010   else
16011     
16012   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
16013 echo "configure:16014: checking for _finitef declaration" >&5
16014   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
16015     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
16016   echo $ac_n "(cached) $ac_c" 1>&6
16017 else
16018   
16019       
16020       ac_ext=C
16021 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16022 ac_cpp='$CXXCPP $CPPFLAGS'
16023 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16024 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16025 cross_compiling=$ac_cv_prog_cxx_cross
16026
16027       cat > conftest.$ac_ext <<EOF
16028 #line 16029 "configure"
16029 #include "confdefs.h"
16030 #include <math.h>
16031                       #ifdef HAVE_IEEEFP_H
16032                       #include <ieeefp.h>
16033                       #endif
16034                      
16035 int main() {
16036  _finitef(0);
16037 ; return 0; }
16038 EOF
16039 if { (eval echo configure:16040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16040   rm -rf conftest*
16041   glibcpp_cv_func__finitef_use=yes
16042 else
16043   echo "configure: failed program was:" >&5
16044   cat conftest.$ac_ext >&5
16045   rm -rf conftest*
16046   glibcpp_cv_func__finitef_use=no
16047 fi
16048 rm -f conftest*
16049       ac_ext=c
16050 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16051 ac_cpp='$CPP $CPPFLAGS'
16052 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16053 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16054 cross_compiling=$ac_cv_prog_cc_cross
16055
16056     
16057 fi
16058
16059   fi
16060   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16061
16062     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16063       for ac_func in _finitef
16064 do
16065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16066 echo "configure:16067: checking for $ac_func" >&5
16067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16068   echo $ac_n "(cached) $ac_c" 1>&6
16069 else
16070   cat > conftest.$ac_ext <<EOF
16071 #line 16072 "configure"
16072 #include "confdefs.h"
16073 /* System header to define __stub macros and hopefully few prototypes,
16074     which can conflict with char $ac_func(); below.  */
16075 #include <assert.h>
16076 /* Override any gcc2 internal prototype to avoid an error.  */
16077 /* We use char because int might match the return type of a gcc2
16078     builtin and then its argument prototype would still apply.  */
16079 char $ac_func();
16080
16081 int main() {
16082
16083 /* The GNU C library defines this for functions which it implements
16084     to always fail with ENOSYS.  Some functions are actually named
16085     something starting with __ and the normal name is an alias.  */
16086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16087 choke me
16088 #else
16089 $ac_func();
16090 #endif
16091
16092 ; return 0; }
16093 EOF
16094 if { (eval echo configure:16095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16095   rm -rf conftest*
16096   eval "ac_cv_func_$ac_func=yes"
16097 else
16098   echo "configure: failed program was:" >&5
16099   cat conftest.$ac_ext >&5
16100   rm -rf conftest*
16101   eval "ac_cv_func_$ac_func=no"
16102 fi
16103 rm -f conftest*
16104 fi
16105
16106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16107   echo "$ac_t""yes" 1>&6
16108     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16109   cat >> confdefs.h <<EOF
16110 #define $ac_tr_func 1
16111 EOF
16112  
16113 else
16114   echo "$ac_t""no" 1>&6
16115 fi
16116 done
16117     
16118     fi
16119   fi
16120
16121
16122     
16123   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16124 echo "configure:16125: checking for long double trig functions" >&5
16125   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16126   echo $ac_n "(cached) $ac_c" 1>&6
16127 else
16128   
16129     
16130     ac_ext=C
16131 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16132 ac_cpp='$CXXCPP $CPPFLAGS'
16133 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16134 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16135 cross_compiling=$ac_cv_prog_cxx_cross
16136
16137     cat > conftest.$ac_ext <<EOF
16138 #line 16139 "configure"
16139 #include "confdefs.h"
16140 #include <math.h>
16141 int main() {
16142  `for x in acosl asinl atanl \
16143                                           cosl sinl tanl \
16144                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
16145 ; return 0; }
16146 EOF
16147 if { (eval echo configure:16148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16148   rm -rf conftest*
16149   glibcpp_cv_func_long_double_trig_use=yes
16150 else
16151   echo "configure: failed program was:" >&5
16152   cat conftest.$ac_ext >&5
16153   rm -rf conftest*
16154   glibcpp_cv_func_long_double_trig_use=no
16155 fi
16156 rm -f conftest*
16157     ac_ext=c
16158 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16159 ac_cpp='$CPP $CPPFLAGS'
16160 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16161 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16162 cross_compiling=$ac_cv_prog_cc_cross
16163
16164 fi
16165
16166   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16167   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16168     for ac_func in acosl asinl atanl \
16169                                           cosl sinl tanl \
16170                                           coshl sinhl tanhl
16171 do
16172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16173 echo "configure:16174: checking for $ac_func" >&5
16174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16175   echo $ac_n "(cached) $ac_c" 1>&6
16176 else
16177   cat > conftest.$ac_ext <<EOF
16178 #line 16179 "configure"
16179 #include "confdefs.h"
16180 /* System header to define __stub macros and hopefully few prototypes,
16181     which can conflict with char $ac_func(); below.  */
16182 #include <assert.h>
16183 /* Override any gcc2 internal prototype to avoid an error.  */
16184 /* We use char because int might match the return type of a gcc2
16185     builtin and then its argument prototype would still apply.  */
16186 char $ac_func();
16187
16188 int main() {
16189
16190 /* The GNU C library defines this for functions which it implements
16191     to always fail with ENOSYS.  Some functions are actually named
16192     something starting with __ and the normal name is an alias.  */
16193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16194 choke me
16195 #else
16196 $ac_func();
16197 #endif
16198
16199 ; return 0; }
16200 EOF
16201 if { (eval echo configure:16202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16202   rm -rf conftest*
16203   eval "ac_cv_func_$ac_func=yes"
16204 else
16205   echo "configure: failed program was:" >&5
16206   cat conftest.$ac_ext >&5
16207   rm -rf conftest*
16208   eval "ac_cv_func_$ac_func=no"
16209 fi
16210 rm -f conftest*
16211 fi
16212
16213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16214   echo "$ac_t""yes" 1>&6
16215     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16216   cat >> confdefs.h <<EOF
16217 #define $ac_tr_func 1
16218 EOF
16219  
16220 else
16221   echo "$ac_t""no" 1>&6
16222 fi
16223 done
16224
16225   fi
16226
16227   
16228   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16229 echo "configure:16230: checking for long double round functions" >&5
16230   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16231   echo $ac_n "(cached) $ac_c" 1>&6
16232 else
16233   
16234     
16235     ac_ext=C
16236 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16237 ac_cpp='$CXXCPP $CPPFLAGS'
16238 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16239 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16240 cross_compiling=$ac_cv_prog_cxx_cross
16241
16242     cat > conftest.$ac_ext <<EOF
16243 #line 16244 "configure"
16244 #include "confdefs.h"
16245 #include <math.h>
16246 int main() {
16247  `for x in ceill floorl; do echo "$x (0);"; done` 
16248 ; return 0; }
16249 EOF
16250 if { (eval echo configure:16251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16251   rm -rf conftest*
16252   glibcpp_cv_func_long_double_round_use=yes
16253 else
16254   echo "configure: failed program was:" >&5
16255   cat conftest.$ac_ext >&5
16256   rm -rf conftest*
16257   glibcpp_cv_func_long_double_round_use=no
16258 fi
16259 rm -f conftest*
16260     ac_ext=c
16261 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16262 ac_cpp='$CPP $CPPFLAGS'
16263 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16264 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16265 cross_compiling=$ac_cv_prog_cc_cross
16266
16267 fi
16268
16269   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16270   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16271     for ac_func in ceill floorl
16272 do
16273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16274 echo "configure:16275: checking for $ac_func" >&5
16275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16276   echo $ac_n "(cached) $ac_c" 1>&6
16277 else
16278   cat > conftest.$ac_ext <<EOF
16279 #line 16280 "configure"
16280 #include "confdefs.h"
16281 /* System header to define __stub macros and hopefully few prototypes,
16282     which can conflict with char $ac_func(); below.  */
16283 #include <assert.h>
16284 /* Override any gcc2 internal prototype to avoid an error.  */
16285 /* We use char because int might match the return type of a gcc2
16286     builtin and then its argument prototype would still apply.  */
16287 char $ac_func();
16288
16289 int main() {
16290
16291 /* The GNU C library defines this for functions which it implements
16292     to always fail with ENOSYS.  Some functions are actually named
16293     something starting with __ and the normal name is an alias.  */
16294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16295 choke me
16296 #else
16297 $ac_func();
16298 #endif
16299
16300 ; return 0; }
16301 EOF
16302 if { (eval echo configure:16303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16303   rm -rf conftest*
16304   eval "ac_cv_func_$ac_func=yes"
16305 else
16306   echo "configure: failed program was:" >&5
16307   cat conftest.$ac_ext >&5
16308   rm -rf conftest*
16309   eval "ac_cv_func_$ac_func=no"
16310 fi
16311 rm -f conftest*
16312 fi
16313
16314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16315   echo "$ac_t""yes" 1>&6
16316     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16317   cat >> confdefs.h <<EOF
16318 #define $ac_tr_func 1
16319 EOF
16320  
16321 else
16322   echo "$ac_t""no" 1>&6
16323 fi
16324 done
16325
16326   fi
16327
16328   
16329   
16330   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16331 echo "configure:16332: checking for isnanl declaration" >&5
16332   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16333     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16334   echo $ac_n "(cached) $ac_c" 1>&6
16335 else
16336   
16337       
16338       ac_ext=C
16339 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16340 ac_cpp='$CXXCPP $CPPFLAGS'
16341 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16342 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16343 cross_compiling=$ac_cv_prog_cxx_cross
16344
16345       cat > conftest.$ac_ext <<EOF
16346 #line 16347 "configure"
16347 #include "confdefs.h"
16348 #include <math.h>
16349                       #ifdef HAVE_IEEEFP_H
16350                       #include <ieeefp.h>
16351                       #endif
16352                      
16353 int main() {
16354  isnanl(0);
16355 ; return 0; }
16356 EOF
16357 if { (eval echo configure:16358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16358   rm -rf conftest*
16359   glibcpp_cv_func_isnanl_use=yes
16360 else
16361   echo "configure: failed program was:" >&5
16362   cat conftest.$ac_ext >&5
16363   rm -rf conftest*
16364   glibcpp_cv_func_isnanl_use=no
16365 fi
16366 rm -f conftest*
16367       ac_ext=c
16368 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16369 ac_cpp='$CPP $CPPFLAGS'
16370 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16371 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16372 cross_compiling=$ac_cv_prog_cc_cross
16373
16374     
16375 fi
16376
16377   fi
16378   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16379
16380   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16381     for ac_func in isnanl
16382 do
16383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16384 echo "configure:16385: checking for $ac_func" >&5
16385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16386   echo $ac_n "(cached) $ac_c" 1>&6
16387 else
16388   cat > conftest.$ac_ext <<EOF
16389 #line 16390 "configure"
16390 #include "confdefs.h"
16391 /* System header to define __stub macros and hopefully few prototypes,
16392     which can conflict with char $ac_func(); below.  */
16393 #include <assert.h>
16394 /* Override any gcc2 internal prototype to avoid an error.  */
16395 /* We use char because int might match the return type of a gcc2
16396     builtin and then its argument prototype would still apply.  */
16397 char $ac_func();
16398
16399 int main() {
16400
16401 /* The GNU C library defines this for functions which it implements
16402     to always fail with ENOSYS.  Some functions are actually named
16403     something starting with __ and the normal name is an alias.  */
16404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16405 choke me
16406 #else
16407 $ac_func();
16408 #endif
16409
16410 ; return 0; }
16411 EOF
16412 if { (eval echo configure:16413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16413   rm -rf conftest*
16414   eval "ac_cv_func_$ac_func=yes"
16415 else
16416   echo "configure: failed program was:" >&5
16417   cat conftest.$ac_ext >&5
16418   rm -rf conftest*
16419   eval "ac_cv_func_$ac_func=no"
16420 fi
16421 rm -f conftest*
16422 fi
16423
16424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16425   echo "$ac_t""yes" 1>&6
16426     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16427   cat >> confdefs.h <<EOF
16428 #define $ac_tr_func 1
16429 EOF
16430  
16431 else
16432   echo "$ac_t""no" 1>&6
16433 fi
16434 done
16435     
16436   else
16437     
16438   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16439 echo "configure:16440: checking for _isnanl declaration" >&5
16440   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16441     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16442   echo $ac_n "(cached) $ac_c" 1>&6
16443 else
16444   
16445       
16446       ac_ext=C
16447 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16448 ac_cpp='$CXXCPP $CPPFLAGS'
16449 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16450 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16451 cross_compiling=$ac_cv_prog_cxx_cross
16452
16453       cat > conftest.$ac_ext <<EOF
16454 #line 16455 "configure"
16455 #include "confdefs.h"
16456 #include <math.h>
16457                       #ifdef HAVE_IEEEFP_H
16458                       #include <ieeefp.h>
16459                       #endif
16460                      
16461 int main() {
16462  _isnanl(0);
16463 ; return 0; }
16464 EOF
16465 if { (eval echo configure:16466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16466   rm -rf conftest*
16467   glibcpp_cv_func__isnanl_use=yes
16468 else
16469   echo "configure: failed program was:" >&5
16470   cat conftest.$ac_ext >&5
16471   rm -rf conftest*
16472   glibcpp_cv_func__isnanl_use=no
16473 fi
16474 rm -f conftest*
16475       ac_ext=c
16476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16477 ac_cpp='$CPP $CPPFLAGS'
16478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16480 cross_compiling=$ac_cv_prog_cc_cross
16481
16482     
16483 fi
16484
16485   fi
16486   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16487
16488     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16489       for ac_func in _isnanl
16490 do
16491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16492 echo "configure:16493: checking for $ac_func" >&5
16493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16494   echo $ac_n "(cached) $ac_c" 1>&6
16495 else
16496   cat > conftest.$ac_ext <<EOF
16497 #line 16498 "configure"
16498 #include "confdefs.h"
16499 /* System header to define __stub macros and hopefully few prototypes,
16500     which can conflict with char $ac_func(); below.  */
16501 #include <assert.h>
16502 /* Override any gcc2 internal prototype to avoid an error.  */
16503 /* We use char because int might match the return type of a gcc2
16504     builtin and then its argument prototype would still apply.  */
16505 char $ac_func();
16506
16507 int main() {
16508
16509 /* The GNU C library defines this for functions which it implements
16510     to always fail with ENOSYS.  Some functions are actually named
16511     something starting with __ and the normal name is an alias.  */
16512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16513 choke me
16514 #else
16515 $ac_func();
16516 #endif
16517
16518 ; return 0; }
16519 EOF
16520 if { (eval echo configure:16521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16521   rm -rf conftest*
16522   eval "ac_cv_func_$ac_func=yes"
16523 else
16524   echo "configure: failed program was:" >&5
16525   cat conftest.$ac_ext >&5
16526   rm -rf conftest*
16527   eval "ac_cv_func_$ac_func=no"
16528 fi
16529 rm -f conftest*
16530 fi
16531
16532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16533   echo "$ac_t""yes" 1>&6
16534     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16535   cat >> confdefs.h <<EOF
16536 #define $ac_tr_func 1
16537 EOF
16538  
16539 else
16540   echo "$ac_t""no" 1>&6
16541 fi
16542 done
16543     
16544     fi
16545   fi
16546
16547   
16548   
16549   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16550 echo "configure:16551: checking for isinfl declaration" >&5
16551   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16552     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16553   echo $ac_n "(cached) $ac_c" 1>&6
16554 else
16555   
16556       
16557       ac_ext=C
16558 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16559 ac_cpp='$CXXCPP $CPPFLAGS'
16560 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16561 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16562 cross_compiling=$ac_cv_prog_cxx_cross
16563
16564       cat > conftest.$ac_ext <<EOF
16565 #line 16566 "configure"
16566 #include "confdefs.h"
16567 #include <math.h>
16568                       #ifdef HAVE_IEEEFP_H
16569                       #include <ieeefp.h>
16570                       #endif
16571                      
16572 int main() {
16573  isinfl(0);
16574 ; return 0; }
16575 EOF
16576 if { (eval echo configure:16577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16577   rm -rf conftest*
16578   glibcpp_cv_func_isinfl_use=yes
16579 else
16580   echo "configure: failed program was:" >&5
16581   cat conftest.$ac_ext >&5
16582   rm -rf conftest*
16583   glibcpp_cv_func_isinfl_use=no
16584 fi
16585 rm -f conftest*
16586       ac_ext=c
16587 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16588 ac_cpp='$CPP $CPPFLAGS'
16589 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16590 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16591 cross_compiling=$ac_cv_prog_cc_cross
16592
16593     
16594 fi
16595
16596   fi
16597   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16598
16599   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16600     for ac_func in isinfl
16601 do
16602 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16603 echo "configure:16604: checking for $ac_func" >&5
16604 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16605   echo $ac_n "(cached) $ac_c" 1>&6
16606 else
16607   cat > conftest.$ac_ext <<EOF
16608 #line 16609 "configure"
16609 #include "confdefs.h"
16610 /* System header to define __stub macros and hopefully few prototypes,
16611     which can conflict with char $ac_func(); below.  */
16612 #include <assert.h>
16613 /* Override any gcc2 internal prototype to avoid an error.  */
16614 /* We use char because int might match the return type of a gcc2
16615     builtin and then its argument prototype would still apply.  */
16616 char $ac_func();
16617
16618 int main() {
16619
16620 /* The GNU C library defines this for functions which it implements
16621     to always fail with ENOSYS.  Some functions are actually named
16622     something starting with __ and the normal name is an alias.  */
16623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16624 choke me
16625 #else
16626 $ac_func();
16627 #endif
16628
16629 ; return 0; }
16630 EOF
16631 if { (eval echo configure:16632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16632   rm -rf conftest*
16633   eval "ac_cv_func_$ac_func=yes"
16634 else
16635   echo "configure: failed program was:" >&5
16636   cat conftest.$ac_ext >&5
16637   rm -rf conftest*
16638   eval "ac_cv_func_$ac_func=no"
16639 fi
16640 rm -f conftest*
16641 fi
16642
16643 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16644   echo "$ac_t""yes" 1>&6
16645     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16646   cat >> confdefs.h <<EOF
16647 #define $ac_tr_func 1
16648 EOF
16649  
16650 else
16651   echo "$ac_t""no" 1>&6
16652 fi
16653 done
16654     
16655   else
16656     
16657   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16658 echo "configure:16659: checking for _isinfl declaration" >&5
16659   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16660     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16661   echo $ac_n "(cached) $ac_c" 1>&6
16662 else
16663   
16664       
16665       ac_ext=C
16666 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16667 ac_cpp='$CXXCPP $CPPFLAGS'
16668 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16669 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16670 cross_compiling=$ac_cv_prog_cxx_cross
16671
16672       cat > conftest.$ac_ext <<EOF
16673 #line 16674 "configure"
16674 #include "confdefs.h"
16675 #include <math.h>
16676                       #ifdef HAVE_IEEEFP_H
16677                       #include <ieeefp.h>
16678                       #endif
16679                      
16680 int main() {
16681  _isinfl(0);
16682 ; return 0; }
16683 EOF
16684 if { (eval echo configure:16685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16685   rm -rf conftest*
16686   glibcpp_cv_func__isinfl_use=yes
16687 else
16688   echo "configure: failed program was:" >&5
16689   cat conftest.$ac_ext >&5
16690   rm -rf conftest*
16691   glibcpp_cv_func__isinfl_use=no
16692 fi
16693 rm -f conftest*
16694       ac_ext=c
16695 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16696 ac_cpp='$CPP $CPPFLAGS'
16697 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16698 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16699 cross_compiling=$ac_cv_prog_cc_cross
16700
16701     
16702 fi
16703
16704   fi
16705   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16706
16707     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16708       for ac_func in _isinfl
16709 do
16710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16711 echo "configure:16712: checking for $ac_func" >&5
16712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16713   echo $ac_n "(cached) $ac_c" 1>&6
16714 else
16715   cat > conftest.$ac_ext <<EOF
16716 #line 16717 "configure"
16717 #include "confdefs.h"
16718 /* System header to define __stub macros and hopefully few prototypes,
16719     which can conflict with char $ac_func(); below.  */
16720 #include <assert.h>
16721 /* Override any gcc2 internal prototype to avoid an error.  */
16722 /* We use char because int might match the return type of a gcc2
16723     builtin and then its argument prototype would still apply.  */
16724 char $ac_func();
16725
16726 int main() {
16727
16728 /* The GNU C library defines this for functions which it implements
16729     to always fail with ENOSYS.  Some functions are actually named
16730     something starting with __ and the normal name is an alias.  */
16731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16732 choke me
16733 #else
16734 $ac_func();
16735 #endif
16736
16737 ; return 0; }
16738 EOF
16739 if { (eval echo configure:16740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16740   rm -rf conftest*
16741   eval "ac_cv_func_$ac_func=yes"
16742 else
16743   echo "configure: failed program was:" >&5
16744   cat conftest.$ac_ext >&5
16745   rm -rf conftest*
16746   eval "ac_cv_func_$ac_func=no"
16747 fi
16748 rm -f conftest*
16749 fi
16750
16751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16752   echo "$ac_t""yes" 1>&6
16753     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16754   cat >> confdefs.h <<EOF
16755 #define $ac_tr_func 1
16756 EOF
16757  
16758 else
16759   echo "$ac_t""no" 1>&6
16760 fi
16761 done
16762     
16763     fi
16764   fi
16765
16766   
16767   
16768   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16769 echo "configure:16770: checking for copysignl declaration" >&5
16770   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16771     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16772   echo $ac_n "(cached) $ac_c" 1>&6
16773 else
16774   
16775       
16776       ac_ext=C
16777 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16778 ac_cpp='$CXXCPP $CPPFLAGS'
16779 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16780 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16781 cross_compiling=$ac_cv_prog_cxx_cross
16782
16783       cat > conftest.$ac_ext <<EOF
16784 #line 16785 "configure"
16785 #include "confdefs.h"
16786 #include <math.h>
16787 int main() {
16788  copysignl(0, 0);
16789 ; return 0; }
16790 EOF
16791 if { (eval echo configure:16792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16792   rm -rf conftest*
16793   glibcpp_cv_func_copysignl_use=yes
16794 else
16795   echo "configure: failed program was:" >&5
16796   cat conftest.$ac_ext >&5
16797   rm -rf conftest*
16798   glibcpp_cv_func_copysignl_use=no
16799 fi
16800 rm -f conftest*
16801       ac_ext=c
16802 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16803 ac_cpp='$CPP $CPPFLAGS'
16804 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16805 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16806 cross_compiling=$ac_cv_prog_cc_cross
16807
16808     
16809 fi
16810
16811   fi
16812   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16813
16814   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16815     for ac_func in copysignl
16816 do
16817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16818 echo "configure:16819: checking for $ac_func" >&5
16819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16820   echo $ac_n "(cached) $ac_c" 1>&6
16821 else
16822   cat > conftest.$ac_ext <<EOF
16823 #line 16824 "configure"
16824 #include "confdefs.h"
16825 /* System header to define __stub macros and hopefully few prototypes,
16826     which can conflict with char $ac_func(); below.  */
16827 #include <assert.h>
16828 /* Override any gcc2 internal prototype to avoid an error.  */
16829 /* We use char because int might match the return type of a gcc2
16830     builtin and then its argument prototype would still apply.  */
16831 char $ac_func();
16832
16833 int main() {
16834
16835 /* The GNU C library defines this for functions which it implements
16836     to always fail with ENOSYS.  Some functions are actually named
16837     something starting with __ and the normal name is an alias.  */
16838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16839 choke me
16840 #else
16841 $ac_func();
16842 #endif
16843
16844 ; return 0; }
16845 EOF
16846 if { (eval echo configure:16847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16847   rm -rf conftest*
16848   eval "ac_cv_func_$ac_func=yes"
16849 else
16850   echo "configure: failed program was:" >&5
16851   cat conftest.$ac_ext >&5
16852   rm -rf conftest*
16853   eval "ac_cv_func_$ac_func=no"
16854 fi
16855 rm -f conftest*
16856 fi
16857
16858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16859   echo "$ac_t""yes" 1>&6
16860     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16861   cat >> confdefs.h <<EOF
16862 #define $ac_tr_func 1
16863 EOF
16864  
16865 else
16866   echo "$ac_t""no" 1>&6
16867 fi
16868 done
16869     
16870   else
16871     
16872   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16873 echo "configure:16874: checking for _copysignl declaration" >&5
16874   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16875     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16876   echo $ac_n "(cached) $ac_c" 1>&6
16877 else
16878   
16879       
16880       ac_ext=C
16881 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16882 ac_cpp='$CXXCPP $CPPFLAGS'
16883 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16884 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16885 cross_compiling=$ac_cv_prog_cxx_cross
16886
16887       cat > conftest.$ac_ext <<EOF
16888 #line 16889 "configure"
16889 #include "confdefs.h"
16890 #include <math.h>
16891 int main() {
16892  _copysignl(0, 0);
16893 ; return 0; }
16894 EOF
16895 if { (eval echo configure:16896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16896   rm -rf conftest*
16897   glibcpp_cv_func__copysignl_use=yes
16898 else
16899   echo "configure: failed program was:" >&5
16900   cat conftest.$ac_ext >&5
16901   rm -rf conftest*
16902   glibcpp_cv_func__copysignl_use=no
16903 fi
16904 rm -f conftest*
16905       ac_ext=c
16906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16907 ac_cpp='$CPP $CPPFLAGS'
16908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16909 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16910 cross_compiling=$ac_cv_prog_cc_cross
16911
16912     
16913 fi
16914
16915   fi
16916   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16917
16918     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16919       for ac_func in _copysignl
16920 do
16921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16922 echo "configure:16923: checking for $ac_func" >&5
16923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16924   echo $ac_n "(cached) $ac_c" 1>&6
16925 else
16926   cat > conftest.$ac_ext <<EOF
16927 #line 16928 "configure"
16928 #include "confdefs.h"
16929 /* System header to define __stub macros and hopefully few prototypes,
16930     which can conflict with char $ac_func(); below.  */
16931 #include <assert.h>
16932 /* Override any gcc2 internal prototype to avoid an error.  */
16933 /* We use char because int might match the return type of a gcc2
16934     builtin and then its argument prototype would still apply.  */
16935 char $ac_func();
16936
16937 int main() {
16938
16939 /* The GNU C library defines this for functions which it implements
16940     to always fail with ENOSYS.  Some functions are actually named
16941     something starting with __ and the normal name is an alias.  */
16942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16943 choke me
16944 #else
16945 $ac_func();
16946 #endif
16947
16948 ; return 0; }
16949 EOF
16950 if { (eval echo configure:16951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16951   rm -rf conftest*
16952   eval "ac_cv_func_$ac_func=yes"
16953 else
16954   echo "configure: failed program was:" >&5
16955   cat conftest.$ac_ext >&5
16956   rm -rf conftest*
16957   eval "ac_cv_func_$ac_func=no"
16958 fi
16959 rm -f conftest*
16960 fi
16961
16962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16963   echo "$ac_t""yes" 1>&6
16964     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16965   cat >> confdefs.h <<EOF
16966 #define $ac_tr_func 1
16967 EOF
16968  
16969 else
16970   echo "$ac_t""no" 1>&6
16971 fi
16972 done
16973     
16974     fi
16975   fi
16976
16977   
16978   
16979   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16980 echo "configure:16981: checking for atan2l declaration" >&5
16981   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16982     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16983   echo $ac_n "(cached) $ac_c" 1>&6
16984 else
16985   
16986       
16987       ac_ext=C
16988 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16989 ac_cpp='$CXXCPP $CPPFLAGS'
16990 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16991 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16992 cross_compiling=$ac_cv_prog_cxx_cross
16993
16994       cat > conftest.$ac_ext <<EOF
16995 #line 16996 "configure"
16996 #include "confdefs.h"
16997 #include <math.h>
16998 int main() {
16999  atan2l(0, 0);
17000 ; return 0; }
17001 EOF
17002 if { (eval echo configure:17003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17003   rm -rf conftest*
17004   glibcpp_cv_func_atan2l_use=yes
17005 else
17006   echo "configure: failed program was:" >&5
17007   cat conftest.$ac_ext >&5
17008   rm -rf conftest*
17009   glibcpp_cv_func_atan2l_use=no
17010 fi
17011 rm -f conftest*
17012       ac_ext=c
17013 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17014 ac_cpp='$CPP $CPPFLAGS'
17015 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17016 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17017 cross_compiling=$ac_cv_prog_cc_cross
17018
17019     
17020 fi
17021
17022   fi
17023   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
17024
17025   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
17026     for ac_func in atan2l
17027 do
17028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17029 echo "configure:17030: checking for $ac_func" >&5
17030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17031   echo $ac_n "(cached) $ac_c" 1>&6
17032 else
17033   cat > conftest.$ac_ext <<EOF
17034 #line 17035 "configure"
17035 #include "confdefs.h"
17036 /* System header to define __stub macros and hopefully few prototypes,
17037     which can conflict with char $ac_func(); below.  */
17038 #include <assert.h>
17039 /* Override any gcc2 internal prototype to avoid an error.  */
17040 /* We use char because int might match the return type of a gcc2
17041     builtin and then its argument prototype would still apply.  */
17042 char $ac_func();
17043
17044 int main() {
17045
17046 /* The GNU C library defines this for functions which it implements
17047     to always fail with ENOSYS.  Some functions are actually named
17048     something starting with __ and the normal name is an alias.  */
17049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17050 choke me
17051 #else
17052 $ac_func();
17053 #endif
17054
17055 ; return 0; }
17056 EOF
17057 if { (eval echo configure:17058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17058   rm -rf conftest*
17059   eval "ac_cv_func_$ac_func=yes"
17060 else
17061   echo "configure: failed program was:" >&5
17062   cat conftest.$ac_ext >&5
17063   rm -rf conftest*
17064   eval "ac_cv_func_$ac_func=no"
17065 fi
17066 rm -f conftest*
17067 fi
17068
17069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17070   echo "$ac_t""yes" 1>&6
17071     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17072   cat >> confdefs.h <<EOF
17073 #define $ac_tr_func 1
17074 EOF
17075  
17076 else
17077   echo "$ac_t""no" 1>&6
17078 fi
17079 done
17080     
17081   else
17082     
17083   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17084 echo "configure:17085: checking for _atan2l declaration" >&5
17085   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17086     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17087   echo $ac_n "(cached) $ac_c" 1>&6
17088 else
17089   
17090       
17091       ac_ext=C
17092 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17093 ac_cpp='$CXXCPP $CPPFLAGS'
17094 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17095 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17096 cross_compiling=$ac_cv_prog_cxx_cross
17097
17098       cat > conftest.$ac_ext <<EOF
17099 #line 17100 "configure"
17100 #include "confdefs.h"
17101 #include <math.h>
17102 int main() {
17103  _atan2l(0, 0);
17104 ; return 0; }
17105 EOF
17106 if { (eval echo configure:17107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17107   rm -rf conftest*
17108   glibcpp_cv_func__atan2l_use=yes
17109 else
17110   echo "configure: failed program was:" >&5
17111   cat conftest.$ac_ext >&5
17112   rm -rf conftest*
17113   glibcpp_cv_func__atan2l_use=no
17114 fi
17115 rm -f conftest*
17116       ac_ext=c
17117 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17118 ac_cpp='$CPP $CPPFLAGS'
17119 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17120 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17121 cross_compiling=$ac_cv_prog_cc_cross
17122
17123     
17124 fi
17125
17126   fi
17127   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17128
17129     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17130       for ac_func in _atan2l
17131 do
17132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17133 echo "configure:17134: checking for $ac_func" >&5
17134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17135   echo $ac_n "(cached) $ac_c" 1>&6
17136 else
17137   cat > conftest.$ac_ext <<EOF
17138 #line 17139 "configure"
17139 #include "confdefs.h"
17140 /* System header to define __stub macros and hopefully few prototypes,
17141     which can conflict with char $ac_func(); below.  */
17142 #include <assert.h>
17143 /* Override any gcc2 internal prototype to avoid an error.  */
17144 /* We use char because int might match the return type of a gcc2
17145     builtin and then its argument prototype would still apply.  */
17146 char $ac_func();
17147
17148 int main() {
17149
17150 /* The GNU C library defines this for functions which it implements
17151     to always fail with ENOSYS.  Some functions are actually named
17152     something starting with __ and the normal name is an alias.  */
17153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17154 choke me
17155 #else
17156 $ac_func();
17157 #endif
17158
17159 ; return 0; }
17160 EOF
17161 if { (eval echo configure:17162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17162   rm -rf conftest*
17163   eval "ac_cv_func_$ac_func=yes"
17164 else
17165   echo "configure: failed program was:" >&5
17166   cat conftest.$ac_ext >&5
17167   rm -rf conftest*
17168   eval "ac_cv_func_$ac_func=no"
17169 fi
17170 rm -f conftest*
17171 fi
17172
17173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17174   echo "$ac_t""yes" 1>&6
17175     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17176   cat >> confdefs.h <<EOF
17177 #define $ac_tr_func 1
17178 EOF
17179  
17180 else
17181   echo "$ac_t""no" 1>&6
17182 fi
17183 done
17184     
17185     fi
17186   fi
17187
17188   
17189   
17190   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17191 echo "configure:17192: checking for expl declaration" >&5
17192   if test x${glibcpp_cv_func_expl_use+set} != xset; then
17193     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17194   echo $ac_n "(cached) $ac_c" 1>&6
17195 else
17196   
17197       
17198       ac_ext=C
17199 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17200 ac_cpp='$CXXCPP $CPPFLAGS'
17201 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17202 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17203 cross_compiling=$ac_cv_prog_cxx_cross
17204
17205       cat > conftest.$ac_ext <<EOF
17206 #line 17207 "configure"
17207 #include "confdefs.h"
17208 #include <math.h>
17209                       #ifdef HAVE_IEEEFP_H
17210                       #include <ieeefp.h>
17211                       #endif
17212                      
17213 int main() {
17214  expl(0);
17215 ; return 0; }
17216 EOF
17217 if { (eval echo configure:17218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17218   rm -rf conftest*
17219   glibcpp_cv_func_expl_use=yes
17220 else
17221   echo "configure: failed program was:" >&5
17222   cat conftest.$ac_ext >&5
17223   rm -rf conftest*
17224   glibcpp_cv_func_expl_use=no
17225 fi
17226 rm -f conftest*
17227       ac_ext=c
17228 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17229 ac_cpp='$CPP $CPPFLAGS'
17230 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17231 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17232 cross_compiling=$ac_cv_prog_cc_cross
17233
17234     
17235 fi
17236
17237   fi
17238   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17239
17240   if test x$glibcpp_cv_func_expl_use = x"yes"; then
17241     for ac_func in expl
17242 do
17243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17244 echo "configure:17245: checking for $ac_func" >&5
17245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17246   echo $ac_n "(cached) $ac_c" 1>&6
17247 else
17248   cat > conftest.$ac_ext <<EOF
17249 #line 17250 "configure"
17250 #include "confdefs.h"
17251 /* System header to define __stub macros and hopefully few prototypes,
17252     which can conflict with char $ac_func(); below.  */
17253 #include <assert.h>
17254 /* Override any gcc2 internal prototype to avoid an error.  */
17255 /* We use char because int might match the return type of a gcc2
17256     builtin and then its argument prototype would still apply.  */
17257 char $ac_func();
17258
17259 int main() {
17260
17261 /* The GNU C library defines this for functions which it implements
17262     to always fail with ENOSYS.  Some functions are actually named
17263     something starting with __ and the normal name is an alias.  */
17264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17265 choke me
17266 #else
17267 $ac_func();
17268 #endif
17269
17270 ; return 0; }
17271 EOF
17272 if { (eval echo configure:17273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17273   rm -rf conftest*
17274   eval "ac_cv_func_$ac_func=yes"
17275 else
17276   echo "configure: failed program was:" >&5
17277   cat conftest.$ac_ext >&5
17278   rm -rf conftest*
17279   eval "ac_cv_func_$ac_func=no"
17280 fi
17281 rm -f conftest*
17282 fi
17283
17284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17285   echo "$ac_t""yes" 1>&6
17286     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17287   cat >> confdefs.h <<EOF
17288 #define $ac_tr_func 1
17289 EOF
17290  
17291 else
17292   echo "$ac_t""no" 1>&6
17293 fi
17294 done
17295     
17296   else
17297     
17298   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17299 echo "configure:17300: checking for _expl declaration" >&5
17300   if test x${glibcpp_cv_func__expl_use+set} != xset; then
17301     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17302   echo $ac_n "(cached) $ac_c" 1>&6
17303 else
17304   
17305       
17306       ac_ext=C
17307 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17308 ac_cpp='$CXXCPP $CPPFLAGS'
17309 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17310 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17311 cross_compiling=$ac_cv_prog_cxx_cross
17312
17313       cat > conftest.$ac_ext <<EOF
17314 #line 17315 "configure"
17315 #include "confdefs.h"
17316 #include <math.h>
17317                       #ifdef HAVE_IEEEFP_H
17318                       #include <ieeefp.h>
17319                       #endif
17320                      
17321 int main() {
17322  _expl(0);
17323 ; return 0; }
17324 EOF
17325 if { (eval echo configure:17326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17326   rm -rf conftest*
17327   glibcpp_cv_func__expl_use=yes
17328 else
17329   echo "configure: failed program was:" >&5
17330   cat conftest.$ac_ext >&5
17331   rm -rf conftest*
17332   glibcpp_cv_func__expl_use=no
17333 fi
17334 rm -f conftest*
17335       ac_ext=c
17336 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17337 ac_cpp='$CPP $CPPFLAGS'
17338 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17339 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17340 cross_compiling=$ac_cv_prog_cc_cross
17341
17342     
17343 fi
17344
17345   fi
17346   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17347
17348     if test x$glibcpp_cv_func__expl_use = x"yes"; then
17349       for ac_func in _expl
17350 do
17351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17352 echo "configure:17353: checking for $ac_func" >&5
17353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17354   echo $ac_n "(cached) $ac_c" 1>&6
17355 else
17356   cat > conftest.$ac_ext <<EOF
17357 #line 17358 "configure"
17358 #include "confdefs.h"
17359 /* System header to define __stub macros and hopefully few prototypes,
17360     which can conflict with char $ac_func(); below.  */
17361 #include <assert.h>
17362 /* Override any gcc2 internal prototype to avoid an error.  */
17363 /* We use char because int might match the return type of a gcc2
17364     builtin and then its argument prototype would still apply.  */
17365 char $ac_func();
17366
17367 int main() {
17368
17369 /* The GNU C library defines this for functions which it implements
17370     to always fail with ENOSYS.  Some functions are actually named
17371     something starting with __ and the normal name is an alias.  */
17372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17373 choke me
17374 #else
17375 $ac_func();
17376 #endif
17377
17378 ; return 0; }
17379 EOF
17380 if { (eval echo configure:17381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17381   rm -rf conftest*
17382   eval "ac_cv_func_$ac_func=yes"
17383 else
17384   echo "configure: failed program was:" >&5
17385   cat conftest.$ac_ext >&5
17386   rm -rf conftest*
17387   eval "ac_cv_func_$ac_func=no"
17388 fi
17389 rm -f conftest*
17390 fi
17391
17392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17393   echo "$ac_t""yes" 1>&6
17394     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17395   cat >> confdefs.h <<EOF
17396 #define $ac_tr_func 1
17397 EOF
17398  
17399 else
17400   echo "$ac_t""no" 1>&6
17401 fi
17402 done
17403     
17404     fi
17405   fi
17406
17407   
17408   
17409   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17410 echo "configure:17411: checking for fabsl declaration" >&5
17411   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17412     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17413   echo $ac_n "(cached) $ac_c" 1>&6
17414 else
17415   
17416       
17417       ac_ext=C
17418 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17419 ac_cpp='$CXXCPP $CPPFLAGS'
17420 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17421 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17422 cross_compiling=$ac_cv_prog_cxx_cross
17423
17424       cat > conftest.$ac_ext <<EOF
17425 #line 17426 "configure"
17426 #include "confdefs.h"
17427 #include <math.h>
17428                       #ifdef HAVE_IEEEFP_H
17429                       #include <ieeefp.h>
17430                       #endif
17431                      
17432 int main() {
17433  fabsl(0);
17434 ; return 0; }
17435 EOF
17436 if { (eval echo configure:17437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17437   rm -rf conftest*
17438   glibcpp_cv_func_fabsl_use=yes
17439 else
17440   echo "configure: failed program was:" >&5
17441   cat conftest.$ac_ext >&5
17442   rm -rf conftest*
17443   glibcpp_cv_func_fabsl_use=no
17444 fi
17445 rm -f conftest*
17446       ac_ext=c
17447 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17448 ac_cpp='$CPP $CPPFLAGS'
17449 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17450 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17451 cross_compiling=$ac_cv_prog_cc_cross
17452
17453     
17454 fi
17455
17456   fi
17457   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17458
17459   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17460     for ac_func in fabsl
17461 do
17462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17463 echo "configure:17464: checking for $ac_func" >&5
17464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17465   echo $ac_n "(cached) $ac_c" 1>&6
17466 else
17467   cat > conftest.$ac_ext <<EOF
17468 #line 17469 "configure"
17469 #include "confdefs.h"
17470 /* System header to define __stub macros and hopefully few prototypes,
17471     which can conflict with char $ac_func(); below.  */
17472 #include <assert.h>
17473 /* Override any gcc2 internal prototype to avoid an error.  */
17474 /* We use char because int might match the return type of a gcc2
17475     builtin and then its argument prototype would still apply.  */
17476 char $ac_func();
17477
17478 int main() {
17479
17480 /* The GNU C library defines this for functions which it implements
17481     to always fail with ENOSYS.  Some functions are actually named
17482     something starting with __ and the normal name is an alias.  */
17483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17484 choke me
17485 #else
17486 $ac_func();
17487 #endif
17488
17489 ; return 0; }
17490 EOF
17491 if { (eval echo configure:17492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17492   rm -rf conftest*
17493   eval "ac_cv_func_$ac_func=yes"
17494 else
17495   echo "configure: failed program was:" >&5
17496   cat conftest.$ac_ext >&5
17497   rm -rf conftest*
17498   eval "ac_cv_func_$ac_func=no"
17499 fi
17500 rm -f conftest*
17501 fi
17502
17503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17504   echo "$ac_t""yes" 1>&6
17505     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17506   cat >> confdefs.h <<EOF
17507 #define $ac_tr_func 1
17508 EOF
17509  
17510 else
17511   echo "$ac_t""no" 1>&6
17512 fi
17513 done
17514     
17515   else
17516     
17517   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17518 echo "configure:17519: checking for _fabsl declaration" >&5
17519   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17520     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17521   echo $ac_n "(cached) $ac_c" 1>&6
17522 else
17523   
17524       
17525       ac_ext=C
17526 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17527 ac_cpp='$CXXCPP $CPPFLAGS'
17528 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17529 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17530 cross_compiling=$ac_cv_prog_cxx_cross
17531
17532       cat > conftest.$ac_ext <<EOF
17533 #line 17534 "configure"
17534 #include "confdefs.h"
17535 #include <math.h>
17536                       #ifdef HAVE_IEEEFP_H
17537                       #include <ieeefp.h>
17538                       #endif
17539                      
17540 int main() {
17541  _fabsl(0);
17542 ; return 0; }
17543 EOF
17544 if { (eval echo configure:17545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17545   rm -rf conftest*
17546   glibcpp_cv_func__fabsl_use=yes
17547 else
17548   echo "configure: failed program was:" >&5
17549   cat conftest.$ac_ext >&5
17550   rm -rf conftest*
17551   glibcpp_cv_func__fabsl_use=no
17552 fi
17553 rm -f conftest*
17554       ac_ext=c
17555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17556 ac_cpp='$CPP $CPPFLAGS'
17557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17558 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17559 cross_compiling=$ac_cv_prog_cc_cross
17560
17561     
17562 fi
17563
17564   fi
17565   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17566
17567     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17568       for ac_func in _fabsl
17569 do
17570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17571 echo "configure:17572: checking for $ac_func" >&5
17572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17573   echo $ac_n "(cached) $ac_c" 1>&6
17574 else
17575   cat > conftest.$ac_ext <<EOF
17576 #line 17577 "configure"
17577 #include "confdefs.h"
17578 /* System header to define __stub macros and hopefully few prototypes,
17579     which can conflict with char $ac_func(); below.  */
17580 #include <assert.h>
17581 /* Override any gcc2 internal prototype to avoid an error.  */
17582 /* We use char because int might match the return type of a gcc2
17583     builtin and then its argument prototype would still apply.  */
17584 char $ac_func();
17585
17586 int main() {
17587
17588 /* The GNU C library defines this for functions which it implements
17589     to always fail with ENOSYS.  Some functions are actually named
17590     something starting with __ and the normal name is an alias.  */
17591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17592 choke me
17593 #else
17594 $ac_func();
17595 #endif
17596
17597 ; return 0; }
17598 EOF
17599 if { (eval echo configure:17600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17600   rm -rf conftest*
17601   eval "ac_cv_func_$ac_func=yes"
17602 else
17603   echo "configure: failed program was:" >&5
17604   cat conftest.$ac_ext >&5
17605   rm -rf conftest*
17606   eval "ac_cv_func_$ac_func=no"
17607 fi
17608 rm -f conftest*
17609 fi
17610
17611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17612   echo "$ac_t""yes" 1>&6
17613     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17614   cat >> confdefs.h <<EOF
17615 #define $ac_tr_func 1
17616 EOF
17617  
17618 else
17619   echo "$ac_t""no" 1>&6
17620 fi
17621 done
17622     
17623     fi
17624   fi
17625
17626   
17627   
17628   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17629 echo "configure:17630: checking for fmodl declaration" >&5
17630   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17631     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17632   echo $ac_n "(cached) $ac_c" 1>&6
17633 else
17634   
17635       
17636       ac_ext=C
17637 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17638 ac_cpp='$CXXCPP $CPPFLAGS'
17639 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17640 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17641 cross_compiling=$ac_cv_prog_cxx_cross
17642
17643       cat > conftest.$ac_ext <<EOF
17644 #line 17645 "configure"
17645 #include "confdefs.h"
17646 #include <math.h>
17647 int main() {
17648  fmodl(0, 0);
17649 ; return 0; }
17650 EOF
17651 if { (eval echo configure:17652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17652   rm -rf conftest*
17653   glibcpp_cv_func_fmodl_use=yes
17654 else
17655   echo "configure: failed program was:" >&5
17656   cat conftest.$ac_ext >&5
17657   rm -rf conftest*
17658   glibcpp_cv_func_fmodl_use=no
17659 fi
17660 rm -f conftest*
17661       ac_ext=c
17662 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17663 ac_cpp='$CPP $CPPFLAGS'
17664 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17665 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17666 cross_compiling=$ac_cv_prog_cc_cross
17667
17668     
17669 fi
17670
17671   fi
17672   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17673
17674   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17675     for ac_func in fmodl
17676 do
17677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17678 echo "configure:17679: checking for $ac_func" >&5
17679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17680   echo $ac_n "(cached) $ac_c" 1>&6
17681 else
17682   cat > conftest.$ac_ext <<EOF
17683 #line 17684 "configure"
17684 #include "confdefs.h"
17685 /* System header to define __stub macros and hopefully few prototypes,
17686     which can conflict with char $ac_func(); below.  */
17687 #include <assert.h>
17688 /* Override any gcc2 internal prototype to avoid an error.  */
17689 /* We use char because int might match the return type of a gcc2
17690     builtin and then its argument prototype would still apply.  */
17691 char $ac_func();
17692
17693 int main() {
17694
17695 /* The GNU C library defines this for functions which it implements
17696     to always fail with ENOSYS.  Some functions are actually named
17697     something starting with __ and the normal name is an alias.  */
17698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17699 choke me
17700 #else
17701 $ac_func();
17702 #endif
17703
17704 ; return 0; }
17705 EOF
17706 if { (eval echo configure:17707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17707   rm -rf conftest*
17708   eval "ac_cv_func_$ac_func=yes"
17709 else
17710   echo "configure: failed program was:" >&5
17711   cat conftest.$ac_ext >&5
17712   rm -rf conftest*
17713   eval "ac_cv_func_$ac_func=no"
17714 fi
17715 rm -f conftest*
17716 fi
17717
17718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17719   echo "$ac_t""yes" 1>&6
17720     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17721   cat >> confdefs.h <<EOF
17722 #define $ac_tr_func 1
17723 EOF
17724  
17725 else
17726   echo "$ac_t""no" 1>&6
17727 fi
17728 done
17729     
17730   else
17731     
17732   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17733 echo "configure:17734: checking for _fmodl declaration" >&5
17734   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17735     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17736   echo $ac_n "(cached) $ac_c" 1>&6
17737 else
17738   
17739       
17740       ac_ext=C
17741 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17742 ac_cpp='$CXXCPP $CPPFLAGS'
17743 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17744 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17745 cross_compiling=$ac_cv_prog_cxx_cross
17746
17747       cat > conftest.$ac_ext <<EOF
17748 #line 17749 "configure"
17749 #include "confdefs.h"
17750 #include <math.h>
17751 int main() {
17752  _fmodl(0, 0);
17753 ; return 0; }
17754 EOF
17755 if { (eval echo configure:17756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17756   rm -rf conftest*
17757   glibcpp_cv_func__fmodl_use=yes
17758 else
17759   echo "configure: failed program was:" >&5
17760   cat conftest.$ac_ext >&5
17761   rm -rf conftest*
17762   glibcpp_cv_func__fmodl_use=no
17763 fi
17764 rm -f conftest*
17765       ac_ext=c
17766 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17767 ac_cpp='$CPP $CPPFLAGS'
17768 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17769 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17770 cross_compiling=$ac_cv_prog_cc_cross
17771
17772     
17773 fi
17774
17775   fi
17776   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17777
17778     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17779       for ac_func in _fmodl
17780 do
17781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17782 echo "configure:17783: checking for $ac_func" >&5
17783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17784   echo $ac_n "(cached) $ac_c" 1>&6
17785 else
17786   cat > conftest.$ac_ext <<EOF
17787 #line 17788 "configure"
17788 #include "confdefs.h"
17789 /* System header to define __stub macros and hopefully few prototypes,
17790     which can conflict with char $ac_func(); below.  */
17791 #include <assert.h>
17792 /* Override any gcc2 internal prototype to avoid an error.  */
17793 /* We use char because int might match the return type of a gcc2
17794     builtin and then its argument prototype would still apply.  */
17795 char $ac_func();
17796
17797 int main() {
17798
17799 /* The GNU C library defines this for functions which it implements
17800     to always fail with ENOSYS.  Some functions are actually named
17801     something starting with __ and the normal name is an alias.  */
17802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17803 choke me
17804 #else
17805 $ac_func();
17806 #endif
17807
17808 ; return 0; }
17809 EOF
17810 if { (eval echo configure:17811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17811   rm -rf conftest*
17812   eval "ac_cv_func_$ac_func=yes"
17813 else
17814   echo "configure: failed program was:" >&5
17815   cat conftest.$ac_ext >&5
17816   rm -rf conftest*
17817   eval "ac_cv_func_$ac_func=no"
17818 fi
17819 rm -f conftest*
17820 fi
17821
17822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17823   echo "$ac_t""yes" 1>&6
17824     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17825   cat >> confdefs.h <<EOF
17826 #define $ac_tr_func 1
17827 EOF
17828  
17829 else
17830   echo "$ac_t""no" 1>&6
17831 fi
17832 done
17833     
17834     fi
17835   fi
17836
17837   
17838   
17839   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17840 echo "configure:17841: checking for frexpl declaration" >&5
17841   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17842     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17843   echo $ac_n "(cached) $ac_c" 1>&6
17844 else
17845   
17846       
17847       ac_ext=C
17848 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17849 ac_cpp='$CXXCPP $CPPFLAGS'
17850 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17851 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17852 cross_compiling=$ac_cv_prog_cxx_cross
17853
17854       cat > conftest.$ac_ext <<EOF
17855 #line 17856 "configure"
17856 #include "confdefs.h"
17857 #include <math.h>
17858 int main() {
17859  frexpl(0, 0);
17860 ; return 0; }
17861 EOF
17862 if { (eval echo configure:17863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17863   rm -rf conftest*
17864   glibcpp_cv_func_frexpl_use=yes
17865 else
17866   echo "configure: failed program was:" >&5
17867   cat conftest.$ac_ext >&5
17868   rm -rf conftest*
17869   glibcpp_cv_func_frexpl_use=no
17870 fi
17871 rm -f conftest*
17872       ac_ext=c
17873 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17874 ac_cpp='$CPP $CPPFLAGS'
17875 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17876 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17877 cross_compiling=$ac_cv_prog_cc_cross
17878
17879     
17880 fi
17881
17882   fi
17883   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17884
17885   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17886     for ac_func in frexpl
17887 do
17888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17889 echo "configure:17890: checking for $ac_func" >&5
17890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17891   echo $ac_n "(cached) $ac_c" 1>&6
17892 else
17893   cat > conftest.$ac_ext <<EOF
17894 #line 17895 "configure"
17895 #include "confdefs.h"
17896 /* System header to define __stub macros and hopefully few prototypes,
17897     which can conflict with char $ac_func(); below.  */
17898 #include <assert.h>
17899 /* Override any gcc2 internal prototype to avoid an error.  */
17900 /* We use char because int might match the return type of a gcc2
17901     builtin and then its argument prototype would still apply.  */
17902 char $ac_func();
17903
17904 int main() {
17905
17906 /* The GNU C library defines this for functions which it implements
17907     to always fail with ENOSYS.  Some functions are actually named
17908     something starting with __ and the normal name is an alias.  */
17909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17910 choke me
17911 #else
17912 $ac_func();
17913 #endif
17914
17915 ; return 0; }
17916 EOF
17917 if { (eval echo configure:17918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17918   rm -rf conftest*
17919   eval "ac_cv_func_$ac_func=yes"
17920 else
17921   echo "configure: failed program was:" >&5
17922   cat conftest.$ac_ext >&5
17923   rm -rf conftest*
17924   eval "ac_cv_func_$ac_func=no"
17925 fi
17926 rm -f conftest*
17927 fi
17928
17929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17930   echo "$ac_t""yes" 1>&6
17931     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17932   cat >> confdefs.h <<EOF
17933 #define $ac_tr_func 1
17934 EOF
17935  
17936 else
17937   echo "$ac_t""no" 1>&6
17938 fi
17939 done
17940     
17941   else
17942     
17943   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17944 echo "configure:17945: checking for _frexpl declaration" >&5
17945   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17946     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17947   echo $ac_n "(cached) $ac_c" 1>&6
17948 else
17949   
17950       
17951       ac_ext=C
17952 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17953 ac_cpp='$CXXCPP $CPPFLAGS'
17954 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17955 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17956 cross_compiling=$ac_cv_prog_cxx_cross
17957
17958       cat > conftest.$ac_ext <<EOF
17959 #line 17960 "configure"
17960 #include "confdefs.h"
17961 #include <math.h>
17962 int main() {
17963  _frexpl(0, 0);
17964 ; return 0; }
17965 EOF
17966 if { (eval echo configure:17967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17967   rm -rf conftest*
17968   glibcpp_cv_func__frexpl_use=yes
17969 else
17970   echo "configure: failed program was:" >&5
17971   cat conftest.$ac_ext >&5
17972   rm -rf conftest*
17973   glibcpp_cv_func__frexpl_use=no
17974 fi
17975 rm -f conftest*
17976       ac_ext=c
17977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17978 ac_cpp='$CPP $CPPFLAGS'
17979 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17980 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17981 cross_compiling=$ac_cv_prog_cc_cross
17982
17983     
17984 fi
17985
17986   fi
17987   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17988
17989     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17990       for ac_func in _frexpl
17991 do
17992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17993 echo "configure:17994: checking for $ac_func" >&5
17994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17995   echo $ac_n "(cached) $ac_c" 1>&6
17996 else
17997   cat > conftest.$ac_ext <<EOF
17998 #line 17999 "configure"
17999 #include "confdefs.h"
18000 /* System header to define __stub macros and hopefully few prototypes,
18001     which can conflict with char $ac_func(); below.  */
18002 #include <assert.h>
18003 /* Override any gcc2 internal prototype to avoid an error.  */
18004 /* We use char because int might match the return type of a gcc2
18005     builtin and then its argument prototype would still apply.  */
18006 char $ac_func();
18007
18008 int main() {
18009
18010 /* The GNU C library defines this for functions which it implements
18011     to always fail with ENOSYS.  Some functions are actually named
18012     something starting with __ and the normal name is an alias.  */
18013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18014 choke me
18015 #else
18016 $ac_func();
18017 #endif
18018
18019 ; return 0; }
18020 EOF
18021 if { (eval echo configure:18022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18022   rm -rf conftest*
18023   eval "ac_cv_func_$ac_func=yes"
18024 else
18025   echo "configure: failed program was:" >&5
18026   cat conftest.$ac_ext >&5
18027   rm -rf conftest*
18028   eval "ac_cv_func_$ac_func=no"
18029 fi
18030 rm -f conftest*
18031 fi
18032
18033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18034   echo "$ac_t""yes" 1>&6
18035     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18036   cat >> confdefs.h <<EOF
18037 #define $ac_tr_func 1
18038 EOF
18039  
18040 else
18041   echo "$ac_t""no" 1>&6
18042 fi
18043 done
18044     
18045     fi
18046   fi
18047
18048   
18049   
18050   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18051 echo "configure:18052: checking for hypotl declaration" >&5
18052   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18053     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18054   echo $ac_n "(cached) $ac_c" 1>&6
18055 else
18056   
18057       
18058       ac_ext=C
18059 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18060 ac_cpp='$CXXCPP $CPPFLAGS'
18061 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18062 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18063 cross_compiling=$ac_cv_prog_cxx_cross
18064
18065       cat > conftest.$ac_ext <<EOF
18066 #line 18067 "configure"
18067 #include "confdefs.h"
18068 #include <math.h>
18069 int main() {
18070  hypotl(0, 0);
18071 ; return 0; }
18072 EOF
18073 if { (eval echo configure:18074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18074   rm -rf conftest*
18075   glibcpp_cv_func_hypotl_use=yes
18076 else
18077   echo "configure: failed program was:" >&5
18078   cat conftest.$ac_ext >&5
18079   rm -rf conftest*
18080   glibcpp_cv_func_hypotl_use=no
18081 fi
18082 rm -f conftest*
18083       ac_ext=c
18084 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18085 ac_cpp='$CPP $CPPFLAGS'
18086 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18087 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18088 cross_compiling=$ac_cv_prog_cc_cross
18089
18090     
18091 fi
18092
18093   fi
18094   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18095
18096   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18097     for ac_func in hypotl
18098 do
18099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18100 echo "configure:18101: checking for $ac_func" >&5
18101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18102   echo $ac_n "(cached) $ac_c" 1>&6
18103 else
18104   cat > conftest.$ac_ext <<EOF
18105 #line 18106 "configure"
18106 #include "confdefs.h"
18107 /* System header to define __stub macros and hopefully few prototypes,
18108     which can conflict with char $ac_func(); below.  */
18109 #include <assert.h>
18110 /* Override any gcc2 internal prototype to avoid an error.  */
18111 /* We use char because int might match the return type of a gcc2
18112     builtin and then its argument prototype would still apply.  */
18113 char $ac_func();
18114
18115 int main() {
18116
18117 /* The GNU C library defines this for functions which it implements
18118     to always fail with ENOSYS.  Some functions are actually named
18119     something starting with __ and the normal name is an alias.  */
18120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18121 choke me
18122 #else
18123 $ac_func();
18124 #endif
18125
18126 ; return 0; }
18127 EOF
18128 if { (eval echo configure:18129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18129   rm -rf conftest*
18130   eval "ac_cv_func_$ac_func=yes"
18131 else
18132   echo "configure: failed program was:" >&5
18133   cat conftest.$ac_ext >&5
18134   rm -rf conftest*
18135   eval "ac_cv_func_$ac_func=no"
18136 fi
18137 rm -f conftest*
18138 fi
18139
18140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18141   echo "$ac_t""yes" 1>&6
18142     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18143   cat >> confdefs.h <<EOF
18144 #define $ac_tr_func 1
18145 EOF
18146  
18147 else
18148   echo "$ac_t""no" 1>&6
18149 fi
18150 done
18151     
18152   else
18153     
18154   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18155 echo "configure:18156: checking for _hypotl declaration" >&5
18156   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18157     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18158   echo $ac_n "(cached) $ac_c" 1>&6
18159 else
18160   
18161       
18162       ac_ext=C
18163 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18164 ac_cpp='$CXXCPP $CPPFLAGS'
18165 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18166 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18167 cross_compiling=$ac_cv_prog_cxx_cross
18168
18169       cat > conftest.$ac_ext <<EOF
18170 #line 18171 "configure"
18171 #include "confdefs.h"
18172 #include <math.h>
18173 int main() {
18174  _hypotl(0, 0);
18175 ; return 0; }
18176 EOF
18177 if { (eval echo configure:18178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18178   rm -rf conftest*
18179   glibcpp_cv_func__hypotl_use=yes
18180 else
18181   echo "configure: failed program was:" >&5
18182   cat conftest.$ac_ext >&5
18183   rm -rf conftest*
18184   glibcpp_cv_func__hypotl_use=no
18185 fi
18186 rm -f conftest*
18187       ac_ext=c
18188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18189 ac_cpp='$CPP $CPPFLAGS'
18190 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18191 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18192 cross_compiling=$ac_cv_prog_cc_cross
18193
18194     
18195 fi
18196
18197   fi
18198   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18199
18200     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18201       for ac_func in _hypotl
18202 do
18203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18204 echo "configure:18205: checking for $ac_func" >&5
18205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18206   echo $ac_n "(cached) $ac_c" 1>&6
18207 else
18208   cat > conftest.$ac_ext <<EOF
18209 #line 18210 "configure"
18210 #include "confdefs.h"
18211 /* System header to define __stub macros and hopefully few prototypes,
18212     which can conflict with char $ac_func(); below.  */
18213 #include <assert.h>
18214 /* Override any gcc2 internal prototype to avoid an error.  */
18215 /* We use char because int might match the return type of a gcc2
18216     builtin and then its argument prototype would still apply.  */
18217 char $ac_func();
18218
18219 int main() {
18220
18221 /* The GNU C library defines this for functions which it implements
18222     to always fail with ENOSYS.  Some functions are actually named
18223     something starting with __ and the normal name is an alias.  */
18224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18225 choke me
18226 #else
18227 $ac_func();
18228 #endif
18229
18230 ; return 0; }
18231 EOF
18232 if { (eval echo configure:18233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18233   rm -rf conftest*
18234   eval "ac_cv_func_$ac_func=yes"
18235 else
18236   echo "configure: failed program was:" >&5
18237   cat conftest.$ac_ext >&5
18238   rm -rf conftest*
18239   eval "ac_cv_func_$ac_func=no"
18240 fi
18241 rm -f conftest*
18242 fi
18243
18244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18245   echo "$ac_t""yes" 1>&6
18246     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18247   cat >> confdefs.h <<EOF
18248 #define $ac_tr_func 1
18249 EOF
18250  
18251 else
18252   echo "$ac_t""no" 1>&6
18253 fi
18254 done
18255     
18256     fi
18257   fi
18258
18259   
18260   
18261   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18262 echo "configure:18263: checking for ldexpl declaration" >&5
18263   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18264     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18265   echo $ac_n "(cached) $ac_c" 1>&6
18266 else
18267   
18268       
18269       ac_ext=C
18270 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18271 ac_cpp='$CXXCPP $CPPFLAGS'
18272 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18273 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18274 cross_compiling=$ac_cv_prog_cxx_cross
18275
18276       cat > conftest.$ac_ext <<EOF
18277 #line 18278 "configure"
18278 #include "confdefs.h"
18279 #include <math.h>
18280 int main() {
18281  ldexpl(0, 0);
18282 ; return 0; }
18283 EOF
18284 if { (eval echo configure:18285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18285   rm -rf conftest*
18286   glibcpp_cv_func_ldexpl_use=yes
18287 else
18288   echo "configure: failed program was:" >&5
18289   cat conftest.$ac_ext >&5
18290   rm -rf conftest*
18291   glibcpp_cv_func_ldexpl_use=no
18292 fi
18293 rm -f conftest*
18294       ac_ext=c
18295 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18296 ac_cpp='$CPP $CPPFLAGS'
18297 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18298 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18299 cross_compiling=$ac_cv_prog_cc_cross
18300
18301     
18302 fi
18303
18304   fi
18305   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18306
18307   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18308     for ac_func in ldexpl
18309 do
18310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18311 echo "configure:18312: checking for $ac_func" >&5
18312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18313   echo $ac_n "(cached) $ac_c" 1>&6
18314 else
18315   cat > conftest.$ac_ext <<EOF
18316 #line 18317 "configure"
18317 #include "confdefs.h"
18318 /* System header to define __stub macros and hopefully few prototypes,
18319     which can conflict with char $ac_func(); below.  */
18320 #include <assert.h>
18321 /* Override any gcc2 internal prototype to avoid an error.  */
18322 /* We use char because int might match the return type of a gcc2
18323     builtin and then its argument prototype would still apply.  */
18324 char $ac_func();
18325
18326 int main() {
18327
18328 /* The GNU C library defines this for functions which it implements
18329     to always fail with ENOSYS.  Some functions are actually named
18330     something starting with __ and the normal name is an alias.  */
18331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18332 choke me
18333 #else
18334 $ac_func();
18335 #endif
18336
18337 ; return 0; }
18338 EOF
18339 if { (eval echo configure:18340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18340   rm -rf conftest*
18341   eval "ac_cv_func_$ac_func=yes"
18342 else
18343   echo "configure: failed program was:" >&5
18344   cat conftest.$ac_ext >&5
18345   rm -rf conftest*
18346   eval "ac_cv_func_$ac_func=no"
18347 fi
18348 rm -f conftest*
18349 fi
18350
18351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18352   echo "$ac_t""yes" 1>&6
18353     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18354   cat >> confdefs.h <<EOF
18355 #define $ac_tr_func 1
18356 EOF
18357  
18358 else
18359   echo "$ac_t""no" 1>&6
18360 fi
18361 done
18362     
18363   else
18364     
18365   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18366 echo "configure:18367: checking for _ldexpl declaration" >&5
18367   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18368     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18369   echo $ac_n "(cached) $ac_c" 1>&6
18370 else
18371   
18372       
18373       ac_ext=C
18374 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18375 ac_cpp='$CXXCPP $CPPFLAGS'
18376 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18377 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18378 cross_compiling=$ac_cv_prog_cxx_cross
18379
18380       cat > conftest.$ac_ext <<EOF
18381 #line 18382 "configure"
18382 #include "confdefs.h"
18383 #include <math.h>
18384 int main() {
18385  _ldexpl(0, 0);
18386 ; return 0; }
18387 EOF
18388 if { (eval echo configure:18389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18389   rm -rf conftest*
18390   glibcpp_cv_func__ldexpl_use=yes
18391 else
18392   echo "configure: failed program was:" >&5
18393   cat conftest.$ac_ext >&5
18394   rm -rf conftest*
18395   glibcpp_cv_func__ldexpl_use=no
18396 fi
18397 rm -f conftest*
18398       ac_ext=c
18399 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18400 ac_cpp='$CPP $CPPFLAGS'
18401 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18402 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18403 cross_compiling=$ac_cv_prog_cc_cross
18404
18405     
18406 fi
18407
18408   fi
18409   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18410
18411     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18412       for ac_func in _ldexpl
18413 do
18414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18415 echo "configure:18416: checking for $ac_func" >&5
18416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18417   echo $ac_n "(cached) $ac_c" 1>&6
18418 else
18419   cat > conftest.$ac_ext <<EOF
18420 #line 18421 "configure"
18421 #include "confdefs.h"
18422 /* System header to define __stub macros and hopefully few prototypes,
18423     which can conflict with char $ac_func(); below.  */
18424 #include <assert.h>
18425 /* Override any gcc2 internal prototype to avoid an error.  */
18426 /* We use char because int might match the return type of a gcc2
18427     builtin and then its argument prototype would still apply.  */
18428 char $ac_func();
18429
18430 int main() {
18431
18432 /* The GNU C library defines this for functions which it implements
18433     to always fail with ENOSYS.  Some functions are actually named
18434     something starting with __ and the normal name is an alias.  */
18435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18436 choke me
18437 #else
18438 $ac_func();
18439 #endif
18440
18441 ; return 0; }
18442 EOF
18443 if { (eval echo configure:18444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18444   rm -rf conftest*
18445   eval "ac_cv_func_$ac_func=yes"
18446 else
18447   echo "configure: failed program was:" >&5
18448   cat conftest.$ac_ext >&5
18449   rm -rf conftest*
18450   eval "ac_cv_func_$ac_func=no"
18451 fi
18452 rm -f conftest*
18453 fi
18454
18455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18456   echo "$ac_t""yes" 1>&6
18457     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18458   cat >> confdefs.h <<EOF
18459 #define $ac_tr_func 1
18460 EOF
18461  
18462 else
18463   echo "$ac_t""no" 1>&6
18464 fi
18465 done
18466     
18467     fi
18468   fi
18469
18470   
18471   
18472   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18473 echo "configure:18474: checking for logl declaration" >&5
18474   if test x${glibcpp_cv_func_logl_use+set} != xset; then
18475     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18476   echo $ac_n "(cached) $ac_c" 1>&6
18477 else
18478   
18479       
18480       ac_ext=C
18481 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18482 ac_cpp='$CXXCPP $CPPFLAGS'
18483 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18484 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18485 cross_compiling=$ac_cv_prog_cxx_cross
18486
18487       cat > conftest.$ac_ext <<EOF
18488 #line 18489 "configure"
18489 #include "confdefs.h"
18490 #include <math.h>
18491                       #ifdef HAVE_IEEEFP_H
18492                       #include <ieeefp.h>
18493                       #endif
18494                      
18495 int main() {
18496  logl(0);
18497 ; return 0; }
18498 EOF
18499 if { (eval echo configure:18500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18500   rm -rf conftest*
18501   glibcpp_cv_func_logl_use=yes
18502 else
18503   echo "configure: failed program was:" >&5
18504   cat conftest.$ac_ext >&5
18505   rm -rf conftest*
18506   glibcpp_cv_func_logl_use=no
18507 fi
18508 rm -f conftest*
18509       ac_ext=c
18510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18511 ac_cpp='$CPP $CPPFLAGS'
18512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18513 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18514 cross_compiling=$ac_cv_prog_cc_cross
18515
18516     
18517 fi
18518
18519   fi
18520   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18521
18522   if test x$glibcpp_cv_func_logl_use = x"yes"; then
18523     for ac_func in logl
18524 do
18525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18526 echo "configure:18527: checking for $ac_func" >&5
18527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18528   echo $ac_n "(cached) $ac_c" 1>&6
18529 else
18530   cat > conftest.$ac_ext <<EOF
18531 #line 18532 "configure"
18532 #include "confdefs.h"
18533 /* System header to define __stub macros and hopefully few prototypes,
18534     which can conflict with char $ac_func(); below.  */
18535 #include <assert.h>
18536 /* Override any gcc2 internal prototype to avoid an error.  */
18537 /* We use char because int might match the return type of a gcc2
18538     builtin and then its argument prototype would still apply.  */
18539 char $ac_func();
18540
18541 int main() {
18542
18543 /* The GNU C library defines this for functions which it implements
18544     to always fail with ENOSYS.  Some functions are actually named
18545     something starting with __ and the normal name is an alias.  */
18546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18547 choke me
18548 #else
18549 $ac_func();
18550 #endif
18551
18552 ; return 0; }
18553 EOF
18554 if { (eval echo configure:18555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18555   rm -rf conftest*
18556   eval "ac_cv_func_$ac_func=yes"
18557 else
18558   echo "configure: failed program was:" >&5
18559   cat conftest.$ac_ext >&5
18560   rm -rf conftest*
18561   eval "ac_cv_func_$ac_func=no"
18562 fi
18563 rm -f conftest*
18564 fi
18565
18566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18567   echo "$ac_t""yes" 1>&6
18568     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18569   cat >> confdefs.h <<EOF
18570 #define $ac_tr_func 1
18571 EOF
18572  
18573 else
18574   echo "$ac_t""no" 1>&6
18575 fi
18576 done
18577     
18578   else
18579     
18580   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18581 echo "configure:18582: checking for _logl declaration" >&5
18582   if test x${glibcpp_cv_func__logl_use+set} != xset; then
18583     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18584   echo $ac_n "(cached) $ac_c" 1>&6
18585 else
18586   
18587       
18588       ac_ext=C
18589 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18590 ac_cpp='$CXXCPP $CPPFLAGS'
18591 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18592 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18593 cross_compiling=$ac_cv_prog_cxx_cross
18594
18595       cat > conftest.$ac_ext <<EOF
18596 #line 18597 "configure"
18597 #include "confdefs.h"
18598 #include <math.h>
18599                       #ifdef HAVE_IEEEFP_H
18600                       #include <ieeefp.h>
18601                       #endif
18602                      
18603 int main() {
18604  _logl(0);
18605 ; return 0; }
18606 EOF
18607 if { (eval echo configure:18608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18608   rm -rf conftest*
18609   glibcpp_cv_func__logl_use=yes
18610 else
18611   echo "configure: failed program was:" >&5
18612   cat conftest.$ac_ext >&5
18613   rm -rf conftest*
18614   glibcpp_cv_func__logl_use=no
18615 fi
18616 rm -f conftest*
18617       ac_ext=c
18618 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18619 ac_cpp='$CPP $CPPFLAGS'
18620 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18621 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18622 cross_compiling=$ac_cv_prog_cc_cross
18623
18624     
18625 fi
18626
18627   fi
18628   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18629
18630     if test x$glibcpp_cv_func__logl_use = x"yes"; then
18631       for ac_func in _logl
18632 do
18633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18634 echo "configure:18635: checking for $ac_func" >&5
18635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18636   echo $ac_n "(cached) $ac_c" 1>&6
18637 else
18638   cat > conftest.$ac_ext <<EOF
18639 #line 18640 "configure"
18640 #include "confdefs.h"
18641 /* System header to define __stub macros and hopefully few prototypes,
18642     which can conflict with char $ac_func(); below.  */
18643 #include <assert.h>
18644 /* Override any gcc2 internal prototype to avoid an error.  */
18645 /* We use char because int might match the return type of a gcc2
18646     builtin and then its argument prototype would still apply.  */
18647 char $ac_func();
18648
18649 int main() {
18650
18651 /* The GNU C library defines this for functions which it implements
18652     to always fail with ENOSYS.  Some functions are actually named
18653     something starting with __ and the normal name is an alias.  */
18654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18655 choke me
18656 #else
18657 $ac_func();
18658 #endif
18659
18660 ; return 0; }
18661 EOF
18662 if { (eval echo configure:18663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18663   rm -rf conftest*
18664   eval "ac_cv_func_$ac_func=yes"
18665 else
18666   echo "configure: failed program was:" >&5
18667   cat conftest.$ac_ext >&5
18668   rm -rf conftest*
18669   eval "ac_cv_func_$ac_func=no"
18670 fi
18671 rm -f conftest*
18672 fi
18673
18674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18675   echo "$ac_t""yes" 1>&6
18676     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18677   cat >> confdefs.h <<EOF
18678 #define $ac_tr_func 1
18679 EOF
18680  
18681 else
18682   echo "$ac_t""no" 1>&6
18683 fi
18684 done
18685     
18686     fi
18687   fi
18688
18689   
18690   
18691   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18692 echo "configure:18693: checking for log10l declaration" >&5
18693   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18694     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18695   echo $ac_n "(cached) $ac_c" 1>&6
18696 else
18697   
18698       
18699       ac_ext=C
18700 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18701 ac_cpp='$CXXCPP $CPPFLAGS'
18702 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18703 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18704 cross_compiling=$ac_cv_prog_cxx_cross
18705
18706       cat > conftest.$ac_ext <<EOF
18707 #line 18708 "configure"
18708 #include "confdefs.h"
18709 #include <math.h>
18710                       #ifdef HAVE_IEEEFP_H
18711                       #include <ieeefp.h>
18712                       #endif
18713                      
18714 int main() {
18715  log10l(0);
18716 ; return 0; }
18717 EOF
18718 if { (eval echo configure:18719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18719   rm -rf conftest*
18720   glibcpp_cv_func_log10l_use=yes
18721 else
18722   echo "configure: failed program was:" >&5
18723   cat conftest.$ac_ext >&5
18724   rm -rf conftest*
18725   glibcpp_cv_func_log10l_use=no
18726 fi
18727 rm -f conftest*
18728       ac_ext=c
18729 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18730 ac_cpp='$CPP $CPPFLAGS'
18731 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18732 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18733 cross_compiling=$ac_cv_prog_cc_cross
18734
18735     
18736 fi
18737
18738   fi
18739   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18740
18741   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18742     for ac_func in log10l
18743 do
18744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18745 echo "configure:18746: checking for $ac_func" >&5
18746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18747   echo $ac_n "(cached) $ac_c" 1>&6
18748 else
18749   cat > conftest.$ac_ext <<EOF
18750 #line 18751 "configure"
18751 #include "confdefs.h"
18752 /* System header to define __stub macros and hopefully few prototypes,
18753     which can conflict with char $ac_func(); below.  */
18754 #include <assert.h>
18755 /* Override any gcc2 internal prototype to avoid an error.  */
18756 /* We use char because int might match the return type of a gcc2
18757     builtin and then its argument prototype would still apply.  */
18758 char $ac_func();
18759
18760 int main() {
18761
18762 /* The GNU C library defines this for functions which it implements
18763     to always fail with ENOSYS.  Some functions are actually named
18764     something starting with __ and the normal name is an alias.  */
18765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18766 choke me
18767 #else
18768 $ac_func();
18769 #endif
18770
18771 ; return 0; }
18772 EOF
18773 if { (eval echo configure:18774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18774   rm -rf conftest*
18775   eval "ac_cv_func_$ac_func=yes"
18776 else
18777   echo "configure: failed program was:" >&5
18778   cat conftest.$ac_ext >&5
18779   rm -rf conftest*
18780   eval "ac_cv_func_$ac_func=no"
18781 fi
18782 rm -f conftest*
18783 fi
18784
18785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18786   echo "$ac_t""yes" 1>&6
18787     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18788   cat >> confdefs.h <<EOF
18789 #define $ac_tr_func 1
18790 EOF
18791  
18792 else
18793   echo "$ac_t""no" 1>&6
18794 fi
18795 done
18796     
18797   else
18798     
18799   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18800 echo "configure:18801: checking for _log10l declaration" >&5
18801   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18802     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18803   echo $ac_n "(cached) $ac_c" 1>&6
18804 else
18805   
18806       
18807       ac_ext=C
18808 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18809 ac_cpp='$CXXCPP $CPPFLAGS'
18810 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18811 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18812 cross_compiling=$ac_cv_prog_cxx_cross
18813
18814       cat > conftest.$ac_ext <<EOF
18815 #line 18816 "configure"
18816 #include "confdefs.h"
18817 #include <math.h>
18818                       #ifdef HAVE_IEEEFP_H
18819                       #include <ieeefp.h>
18820                       #endif
18821                      
18822 int main() {
18823  _log10l(0);
18824 ; return 0; }
18825 EOF
18826 if { (eval echo configure:18827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18827   rm -rf conftest*
18828   glibcpp_cv_func__log10l_use=yes
18829 else
18830   echo "configure: failed program was:" >&5
18831   cat conftest.$ac_ext >&5
18832   rm -rf conftest*
18833   glibcpp_cv_func__log10l_use=no
18834 fi
18835 rm -f conftest*
18836       ac_ext=c
18837 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18838 ac_cpp='$CPP $CPPFLAGS'
18839 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18840 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18841 cross_compiling=$ac_cv_prog_cc_cross
18842
18843     
18844 fi
18845
18846   fi
18847   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18848
18849     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18850       for ac_func in _log10l
18851 do
18852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18853 echo "configure:18854: checking for $ac_func" >&5
18854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18855   echo $ac_n "(cached) $ac_c" 1>&6
18856 else
18857   cat > conftest.$ac_ext <<EOF
18858 #line 18859 "configure"
18859 #include "confdefs.h"
18860 /* System header to define __stub macros and hopefully few prototypes,
18861     which can conflict with char $ac_func(); below.  */
18862 #include <assert.h>
18863 /* Override any gcc2 internal prototype to avoid an error.  */
18864 /* We use char because int might match the return type of a gcc2
18865     builtin and then its argument prototype would still apply.  */
18866 char $ac_func();
18867
18868 int main() {
18869
18870 /* The GNU C library defines this for functions which it implements
18871     to always fail with ENOSYS.  Some functions are actually named
18872     something starting with __ and the normal name is an alias.  */
18873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18874 choke me
18875 #else
18876 $ac_func();
18877 #endif
18878
18879 ; return 0; }
18880 EOF
18881 if { (eval echo configure:18882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18882   rm -rf conftest*
18883   eval "ac_cv_func_$ac_func=yes"
18884 else
18885   echo "configure: failed program was:" >&5
18886   cat conftest.$ac_ext >&5
18887   rm -rf conftest*
18888   eval "ac_cv_func_$ac_func=no"
18889 fi
18890 rm -f conftest*
18891 fi
18892
18893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18894   echo "$ac_t""yes" 1>&6
18895     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18896   cat >> confdefs.h <<EOF
18897 #define $ac_tr_func 1
18898 EOF
18899  
18900 else
18901   echo "$ac_t""no" 1>&6
18902 fi
18903 done
18904     
18905     fi
18906   fi
18907
18908   
18909   
18910   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18911 echo "configure:18912: checking for modfl declaration" >&5
18912   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18913     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18914   echo $ac_n "(cached) $ac_c" 1>&6
18915 else
18916   
18917       
18918       ac_ext=C
18919 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18920 ac_cpp='$CXXCPP $CPPFLAGS'
18921 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18922 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18923 cross_compiling=$ac_cv_prog_cxx_cross
18924
18925       cat > conftest.$ac_ext <<EOF
18926 #line 18927 "configure"
18927 #include "confdefs.h"
18928 #include <math.h>
18929 int main() {
18930  modfl(0, 0);
18931 ; return 0; }
18932 EOF
18933 if { (eval echo configure:18934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18934   rm -rf conftest*
18935   glibcpp_cv_func_modfl_use=yes
18936 else
18937   echo "configure: failed program was:" >&5
18938   cat conftest.$ac_ext >&5
18939   rm -rf conftest*
18940   glibcpp_cv_func_modfl_use=no
18941 fi
18942 rm -f conftest*
18943       ac_ext=c
18944 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18945 ac_cpp='$CPP $CPPFLAGS'
18946 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18947 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18948 cross_compiling=$ac_cv_prog_cc_cross
18949
18950     
18951 fi
18952
18953   fi
18954   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18955
18956   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18957     for ac_func in modfl
18958 do
18959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18960 echo "configure:18961: checking for $ac_func" >&5
18961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18962   echo $ac_n "(cached) $ac_c" 1>&6
18963 else
18964   cat > conftest.$ac_ext <<EOF
18965 #line 18966 "configure"
18966 #include "confdefs.h"
18967 /* System header to define __stub macros and hopefully few prototypes,
18968     which can conflict with char $ac_func(); below.  */
18969 #include <assert.h>
18970 /* Override any gcc2 internal prototype to avoid an error.  */
18971 /* We use char because int might match the return type of a gcc2
18972     builtin and then its argument prototype would still apply.  */
18973 char $ac_func();
18974
18975 int main() {
18976
18977 /* The GNU C library defines this for functions which it implements
18978     to always fail with ENOSYS.  Some functions are actually named
18979     something starting with __ and the normal name is an alias.  */
18980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18981 choke me
18982 #else
18983 $ac_func();
18984 #endif
18985
18986 ; return 0; }
18987 EOF
18988 if { (eval echo configure:18989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18989   rm -rf conftest*
18990   eval "ac_cv_func_$ac_func=yes"
18991 else
18992   echo "configure: failed program was:" >&5
18993   cat conftest.$ac_ext >&5
18994   rm -rf conftest*
18995   eval "ac_cv_func_$ac_func=no"
18996 fi
18997 rm -f conftest*
18998 fi
18999
19000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19001   echo "$ac_t""yes" 1>&6
19002     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19003   cat >> confdefs.h <<EOF
19004 #define $ac_tr_func 1
19005 EOF
19006  
19007 else
19008   echo "$ac_t""no" 1>&6
19009 fi
19010 done
19011     
19012   else
19013     
19014   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
19015 echo "configure:19016: checking for _modfl declaration" >&5
19016   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
19017     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
19018   echo $ac_n "(cached) $ac_c" 1>&6
19019 else
19020   
19021       
19022       ac_ext=C
19023 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19024 ac_cpp='$CXXCPP $CPPFLAGS'
19025 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19026 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19027 cross_compiling=$ac_cv_prog_cxx_cross
19028
19029       cat > conftest.$ac_ext <<EOF
19030 #line 19031 "configure"
19031 #include "confdefs.h"
19032 #include <math.h>
19033 int main() {
19034  _modfl(0, 0);
19035 ; return 0; }
19036 EOF
19037 if { (eval echo configure:19038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19038   rm -rf conftest*
19039   glibcpp_cv_func__modfl_use=yes
19040 else
19041   echo "configure: failed program was:" >&5
19042   cat conftest.$ac_ext >&5
19043   rm -rf conftest*
19044   glibcpp_cv_func__modfl_use=no
19045 fi
19046 rm -f conftest*
19047       ac_ext=c
19048 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19049 ac_cpp='$CPP $CPPFLAGS'
19050 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19051 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19052 cross_compiling=$ac_cv_prog_cc_cross
19053
19054     
19055 fi
19056
19057   fi
19058   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19059
19060     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19061       for ac_func in _modfl
19062 do
19063 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19064 echo "configure:19065: checking for $ac_func" >&5
19065 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19066   echo $ac_n "(cached) $ac_c" 1>&6
19067 else
19068   cat > conftest.$ac_ext <<EOF
19069 #line 19070 "configure"
19070 #include "confdefs.h"
19071 /* System header to define __stub macros and hopefully few prototypes,
19072     which can conflict with char $ac_func(); below.  */
19073 #include <assert.h>
19074 /* Override any gcc2 internal prototype to avoid an error.  */
19075 /* We use char because int might match the return type of a gcc2
19076     builtin and then its argument prototype would still apply.  */
19077 char $ac_func();
19078
19079 int main() {
19080
19081 /* The GNU C library defines this for functions which it implements
19082     to always fail with ENOSYS.  Some functions are actually named
19083     something starting with __ and the normal name is an alias.  */
19084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19085 choke me
19086 #else
19087 $ac_func();
19088 #endif
19089
19090 ; return 0; }
19091 EOF
19092 if { (eval echo configure:19093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19093   rm -rf conftest*
19094   eval "ac_cv_func_$ac_func=yes"
19095 else
19096   echo "configure: failed program was:" >&5
19097   cat conftest.$ac_ext >&5
19098   rm -rf conftest*
19099   eval "ac_cv_func_$ac_func=no"
19100 fi
19101 rm -f conftest*
19102 fi
19103
19104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19105   echo "$ac_t""yes" 1>&6
19106     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19107   cat >> confdefs.h <<EOF
19108 #define $ac_tr_func 1
19109 EOF
19110  
19111 else
19112   echo "$ac_t""no" 1>&6
19113 fi
19114 done
19115     
19116     fi
19117   fi
19118
19119   
19120   
19121   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19122 echo "configure:19123: checking for powl declaration" >&5
19123   if test x${glibcpp_cv_func_powl_use+set} != xset; then
19124     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19125   echo $ac_n "(cached) $ac_c" 1>&6
19126 else
19127   
19128       
19129       ac_ext=C
19130 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19131 ac_cpp='$CXXCPP $CPPFLAGS'
19132 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19133 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19134 cross_compiling=$ac_cv_prog_cxx_cross
19135
19136       cat > conftest.$ac_ext <<EOF
19137 #line 19138 "configure"
19138 #include "confdefs.h"
19139 #include <math.h>
19140 int main() {
19141  powl(0, 0);
19142 ; return 0; }
19143 EOF
19144 if { (eval echo configure:19145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19145   rm -rf conftest*
19146   glibcpp_cv_func_powl_use=yes
19147 else
19148   echo "configure: failed program was:" >&5
19149   cat conftest.$ac_ext >&5
19150   rm -rf conftest*
19151   glibcpp_cv_func_powl_use=no
19152 fi
19153 rm -f conftest*
19154       ac_ext=c
19155 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19156 ac_cpp='$CPP $CPPFLAGS'
19157 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19158 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19159 cross_compiling=$ac_cv_prog_cc_cross
19160
19161     
19162 fi
19163
19164   fi
19165   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19166
19167   if test x$glibcpp_cv_func_powl_use = x"yes"; then
19168     for ac_func in powl
19169 do
19170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19171 echo "configure:19172: checking for $ac_func" >&5
19172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19173   echo $ac_n "(cached) $ac_c" 1>&6
19174 else
19175   cat > conftest.$ac_ext <<EOF
19176 #line 19177 "configure"
19177 #include "confdefs.h"
19178 /* System header to define __stub macros and hopefully few prototypes,
19179     which can conflict with char $ac_func(); below.  */
19180 #include <assert.h>
19181 /* Override any gcc2 internal prototype to avoid an error.  */
19182 /* We use char because int might match the return type of a gcc2
19183     builtin and then its argument prototype would still apply.  */
19184 char $ac_func();
19185
19186 int main() {
19187
19188 /* The GNU C library defines this for functions which it implements
19189     to always fail with ENOSYS.  Some functions are actually named
19190     something starting with __ and the normal name is an alias.  */
19191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19192 choke me
19193 #else
19194 $ac_func();
19195 #endif
19196
19197 ; return 0; }
19198 EOF
19199 if { (eval echo configure:19200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19200   rm -rf conftest*
19201   eval "ac_cv_func_$ac_func=yes"
19202 else
19203   echo "configure: failed program was:" >&5
19204   cat conftest.$ac_ext >&5
19205   rm -rf conftest*
19206   eval "ac_cv_func_$ac_func=no"
19207 fi
19208 rm -f conftest*
19209 fi
19210
19211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19212   echo "$ac_t""yes" 1>&6
19213     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19214   cat >> confdefs.h <<EOF
19215 #define $ac_tr_func 1
19216 EOF
19217  
19218 else
19219   echo "$ac_t""no" 1>&6
19220 fi
19221 done
19222     
19223   else
19224     
19225   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19226 echo "configure:19227: checking for _powl declaration" >&5
19227   if test x${glibcpp_cv_func__powl_use+set} != xset; then
19228     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19229   echo $ac_n "(cached) $ac_c" 1>&6
19230 else
19231   
19232       
19233       ac_ext=C
19234 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19235 ac_cpp='$CXXCPP $CPPFLAGS'
19236 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19237 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19238 cross_compiling=$ac_cv_prog_cxx_cross
19239
19240       cat > conftest.$ac_ext <<EOF
19241 #line 19242 "configure"
19242 #include "confdefs.h"
19243 #include <math.h>
19244 int main() {
19245  _powl(0, 0);
19246 ; return 0; }
19247 EOF
19248 if { (eval echo configure:19249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19249   rm -rf conftest*
19250   glibcpp_cv_func__powl_use=yes
19251 else
19252   echo "configure: failed program was:" >&5
19253   cat conftest.$ac_ext >&5
19254   rm -rf conftest*
19255   glibcpp_cv_func__powl_use=no
19256 fi
19257 rm -f conftest*
19258       ac_ext=c
19259 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19260 ac_cpp='$CPP $CPPFLAGS'
19261 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19262 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19263 cross_compiling=$ac_cv_prog_cc_cross
19264
19265     
19266 fi
19267
19268   fi
19269   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19270
19271     if test x$glibcpp_cv_func__powl_use = x"yes"; then
19272       for ac_func in _powl
19273 do
19274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19275 echo "configure:19276: checking for $ac_func" >&5
19276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19277   echo $ac_n "(cached) $ac_c" 1>&6
19278 else
19279   cat > conftest.$ac_ext <<EOF
19280 #line 19281 "configure"
19281 #include "confdefs.h"
19282 /* System header to define __stub macros and hopefully few prototypes,
19283     which can conflict with char $ac_func(); below.  */
19284 #include <assert.h>
19285 /* Override any gcc2 internal prototype to avoid an error.  */
19286 /* We use char because int might match the return type of a gcc2
19287     builtin and then its argument prototype would still apply.  */
19288 char $ac_func();
19289
19290 int main() {
19291
19292 /* The GNU C library defines this for functions which it implements
19293     to always fail with ENOSYS.  Some functions are actually named
19294     something starting with __ and the normal name is an alias.  */
19295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19296 choke me
19297 #else
19298 $ac_func();
19299 #endif
19300
19301 ; return 0; }
19302 EOF
19303 if { (eval echo configure:19304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19304   rm -rf conftest*
19305   eval "ac_cv_func_$ac_func=yes"
19306 else
19307   echo "configure: failed program was:" >&5
19308   cat conftest.$ac_ext >&5
19309   rm -rf conftest*
19310   eval "ac_cv_func_$ac_func=no"
19311 fi
19312 rm -f conftest*
19313 fi
19314
19315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19316   echo "$ac_t""yes" 1>&6
19317     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19318   cat >> confdefs.h <<EOF
19319 #define $ac_tr_func 1
19320 EOF
19321  
19322 else
19323   echo "$ac_t""no" 1>&6
19324 fi
19325 done
19326     
19327     fi
19328   fi
19329
19330   
19331   
19332   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19333 echo "configure:19334: checking for sqrtl declaration" >&5
19334   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19335     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19336   echo $ac_n "(cached) $ac_c" 1>&6
19337 else
19338   
19339       
19340       ac_ext=C
19341 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19342 ac_cpp='$CXXCPP $CPPFLAGS'
19343 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19344 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19345 cross_compiling=$ac_cv_prog_cxx_cross
19346
19347       cat > conftest.$ac_ext <<EOF
19348 #line 19349 "configure"
19349 #include "confdefs.h"
19350 #include <math.h>
19351                       #ifdef HAVE_IEEEFP_H
19352                       #include <ieeefp.h>
19353                       #endif
19354                      
19355 int main() {
19356  sqrtl(0);
19357 ; return 0; }
19358 EOF
19359 if { (eval echo configure:19360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19360   rm -rf conftest*
19361   glibcpp_cv_func_sqrtl_use=yes
19362 else
19363   echo "configure: failed program was:" >&5
19364   cat conftest.$ac_ext >&5
19365   rm -rf conftest*
19366   glibcpp_cv_func_sqrtl_use=no
19367 fi
19368 rm -f conftest*
19369       ac_ext=c
19370 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19371 ac_cpp='$CPP $CPPFLAGS'
19372 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19373 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19374 cross_compiling=$ac_cv_prog_cc_cross
19375
19376     
19377 fi
19378
19379   fi
19380   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19381
19382   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19383     for ac_func in sqrtl
19384 do
19385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19386 echo "configure:19387: checking for $ac_func" >&5
19387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19388   echo $ac_n "(cached) $ac_c" 1>&6
19389 else
19390   cat > conftest.$ac_ext <<EOF
19391 #line 19392 "configure"
19392 #include "confdefs.h"
19393 /* System header to define __stub macros and hopefully few prototypes,
19394     which can conflict with char $ac_func(); below.  */
19395 #include <assert.h>
19396 /* Override any gcc2 internal prototype to avoid an error.  */
19397 /* We use char because int might match the return type of a gcc2
19398     builtin and then its argument prototype would still apply.  */
19399 char $ac_func();
19400
19401 int main() {
19402
19403 /* The GNU C library defines this for functions which it implements
19404     to always fail with ENOSYS.  Some functions are actually named
19405     something starting with __ and the normal name is an alias.  */
19406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19407 choke me
19408 #else
19409 $ac_func();
19410 #endif
19411
19412 ; return 0; }
19413 EOF
19414 if { (eval echo configure:19415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19415   rm -rf conftest*
19416   eval "ac_cv_func_$ac_func=yes"
19417 else
19418   echo "configure: failed program was:" >&5
19419   cat conftest.$ac_ext >&5
19420   rm -rf conftest*
19421   eval "ac_cv_func_$ac_func=no"
19422 fi
19423 rm -f conftest*
19424 fi
19425
19426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19427   echo "$ac_t""yes" 1>&6
19428     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19429   cat >> confdefs.h <<EOF
19430 #define $ac_tr_func 1
19431 EOF
19432  
19433 else
19434   echo "$ac_t""no" 1>&6
19435 fi
19436 done
19437     
19438   else
19439     
19440   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19441 echo "configure:19442: checking for _sqrtl declaration" >&5
19442   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19443     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19444   echo $ac_n "(cached) $ac_c" 1>&6
19445 else
19446   
19447       
19448       ac_ext=C
19449 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19450 ac_cpp='$CXXCPP $CPPFLAGS'
19451 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19452 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19453 cross_compiling=$ac_cv_prog_cxx_cross
19454
19455       cat > conftest.$ac_ext <<EOF
19456 #line 19457 "configure"
19457 #include "confdefs.h"
19458 #include <math.h>
19459                       #ifdef HAVE_IEEEFP_H
19460                       #include <ieeefp.h>
19461                       #endif
19462                      
19463 int main() {
19464  _sqrtl(0);
19465 ; return 0; }
19466 EOF
19467 if { (eval echo configure:19468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19468   rm -rf conftest*
19469   glibcpp_cv_func__sqrtl_use=yes
19470 else
19471   echo "configure: failed program was:" >&5
19472   cat conftest.$ac_ext >&5
19473   rm -rf conftest*
19474   glibcpp_cv_func__sqrtl_use=no
19475 fi
19476 rm -f conftest*
19477       ac_ext=c
19478 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19479 ac_cpp='$CPP $CPPFLAGS'
19480 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19481 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19482 cross_compiling=$ac_cv_prog_cc_cross
19483
19484     
19485 fi
19486
19487   fi
19488   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19489
19490     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19491       for ac_func in _sqrtl
19492 do
19493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19494 echo "configure:19495: checking for $ac_func" >&5
19495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19496   echo $ac_n "(cached) $ac_c" 1>&6
19497 else
19498   cat > conftest.$ac_ext <<EOF
19499 #line 19500 "configure"
19500 #include "confdefs.h"
19501 /* System header to define __stub macros and hopefully few prototypes,
19502     which can conflict with char $ac_func(); below.  */
19503 #include <assert.h>
19504 /* Override any gcc2 internal prototype to avoid an error.  */
19505 /* We use char because int might match the return type of a gcc2
19506     builtin and then its argument prototype would still apply.  */
19507 char $ac_func();
19508
19509 int main() {
19510
19511 /* The GNU C library defines this for functions which it implements
19512     to always fail with ENOSYS.  Some functions are actually named
19513     something starting with __ and the normal name is an alias.  */
19514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19515 choke me
19516 #else
19517 $ac_func();
19518 #endif
19519
19520 ; return 0; }
19521 EOF
19522 if { (eval echo configure:19523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19523   rm -rf conftest*
19524   eval "ac_cv_func_$ac_func=yes"
19525 else
19526   echo "configure: failed program was:" >&5
19527   cat conftest.$ac_ext >&5
19528   rm -rf conftest*
19529   eval "ac_cv_func_$ac_func=no"
19530 fi
19531 rm -f conftest*
19532 fi
19533
19534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19535   echo "$ac_t""yes" 1>&6
19536     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19537   cat >> confdefs.h <<EOF
19538 #define $ac_tr_func 1
19539 EOF
19540  
19541 else
19542   echo "$ac_t""no" 1>&6
19543 fi
19544 done
19545     
19546     fi
19547   fi
19548
19549   
19550   
19551   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19552 echo "configure:19553: checking for sincosl declaration" >&5
19553   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19554     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19555   echo $ac_n "(cached) $ac_c" 1>&6
19556 else
19557   
19558       
19559       ac_ext=C
19560 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19561 ac_cpp='$CXXCPP $CPPFLAGS'
19562 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19563 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19564 cross_compiling=$ac_cv_prog_cxx_cross
19565
19566       cat > conftest.$ac_ext <<EOF
19567 #line 19568 "configure"
19568 #include "confdefs.h"
19569 #include <math.h>
19570 int main() {
19571  sincosl(0, 0, 0);
19572 ; return 0; }
19573 EOF
19574 if { (eval echo configure:19575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19575   rm -rf conftest*
19576   glibcpp_cv_func_sincosl_use=yes
19577 else
19578   echo "configure: failed program was:" >&5
19579   cat conftest.$ac_ext >&5
19580   rm -rf conftest*
19581   glibcpp_cv_func_sincosl_use=no
19582 fi
19583 rm -f conftest*
19584       ac_ext=c
19585 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19586 ac_cpp='$CPP $CPPFLAGS'
19587 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19588 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19589 cross_compiling=$ac_cv_prog_cc_cross
19590
19591     
19592 fi
19593
19594   fi
19595   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19596
19597   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19598     for ac_func in sincosl
19599 do
19600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19601 echo "configure:19602: checking for $ac_func" >&5
19602 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19603   echo $ac_n "(cached) $ac_c" 1>&6
19604 else
19605   cat > conftest.$ac_ext <<EOF
19606 #line 19607 "configure"
19607 #include "confdefs.h"
19608 /* System header to define __stub macros and hopefully few prototypes,
19609     which can conflict with char $ac_func(); below.  */
19610 #include <assert.h>
19611 /* Override any gcc2 internal prototype to avoid an error.  */
19612 /* We use char because int might match the return type of a gcc2
19613     builtin and then its argument prototype would still apply.  */
19614 char $ac_func();
19615
19616 int main() {
19617
19618 /* The GNU C library defines this for functions which it implements
19619     to always fail with ENOSYS.  Some functions are actually named
19620     something starting with __ and the normal name is an alias.  */
19621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19622 choke me
19623 #else
19624 $ac_func();
19625 #endif
19626
19627 ; return 0; }
19628 EOF
19629 if { (eval echo configure:19630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19630   rm -rf conftest*
19631   eval "ac_cv_func_$ac_func=yes"
19632 else
19633   echo "configure: failed program was:" >&5
19634   cat conftest.$ac_ext >&5
19635   rm -rf conftest*
19636   eval "ac_cv_func_$ac_func=no"
19637 fi
19638 rm -f conftest*
19639 fi
19640
19641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19642   echo "$ac_t""yes" 1>&6
19643     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19644   cat >> confdefs.h <<EOF
19645 #define $ac_tr_func 1
19646 EOF
19647  
19648 else
19649   echo "$ac_t""no" 1>&6
19650 fi
19651 done
19652     
19653   else
19654     
19655   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19656 echo "configure:19657: checking for _sincosl declaration" >&5
19657   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19658     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19659   echo $ac_n "(cached) $ac_c" 1>&6
19660 else
19661   
19662       
19663       ac_ext=C
19664 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19665 ac_cpp='$CXXCPP $CPPFLAGS'
19666 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19667 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19668 cross_compiling=$ac_cv_prog_cxx_cross
19669
19670       cat > conftest.$ac_ext <<EOF
19671 #line 19672 "configure"
19672 #include "confdefs.h"
19673 #include <math.h>
19674 int main() {
19675  _sincosl(0, 0, 0);
19676 ; return 0; }
19677 EOF
19678 if { (eval echo configure:19679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19679   rm -rf conftest*
19680   glibcpp_cv_func__sincosl_use=yes
19681 else
19682   echo "configure: failed program was:" >&5
19683   cat conftest.$ac_ext >&5
19684   rm -rf conftest*
19685   glibcpp_cv_func__sincosl_use=no
19686 fi
19687 rm -f conftest*
19688       ac_ext=c
19689 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19690 ac_cpp='$CPP $CPPFLAGS'
19691 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19692 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19693 cross_compiling=$ac_cv_prog_cc_cross
19694
19695     
19696 fi
19697
19698   fi
19699   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19700
19701     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19702       for ac_func in _sincosl
19703 do
19704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19705 echo "configure:19706: checking for $ac_func" >&5
19706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19707   echo $ac_n "(cached) $ac_c" 1>&6
19708 else
19709   cat > conftest.$ac_ext <<EOF
19710 #line 19711 "configure"
19711 #include "confdefs.h"
19712 /* System header to define __stub macros and hopefully few prototypes,
19713     which can conflict with char $ac_func(); below.  */
19714 #include <assert.h>
19715 /* Override any gcc2 internal prototype to avoid an error.  */
19716 /* We use char because int might match the return type of a gcc2
19717     builtin and then its argument prototype would still apply.  */
19718 char $ac_func();
19719
19720 int main() {
19721
19722 /* The GNU C library defines this for functions which it implements
19723     to always fail with ENOSYS.  Some functions are actually named
19724     something starting with __ and the normal name is an alias.  */
19725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19726 choke me
19727 #else
19728 $ac_func();
19729 #endif
19730
19731 ; return 0; }
19732 EOF
19733 if { (eval echo configure:19734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19734   rm -rf conftest*
19735   eval "ac_cv_func_$ac_func=yes"
19736 else
19737   echo "configure: failed program was:" >&5
19738   cat conftest.$ac_ext >&5
19739   rm -rf conftest*
19740   eval "ac_cv_func_$ac_func=no"
19741 fi
19742 rm -f conftest*
19743 fi
19744
19745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19746   echo "$ac_t""yes" 1>&6
19747     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19748   cat >> confdefs.h <<EOF
19749 #define $ac_tr_func 1
19750 EOF
19751  
19752 else
19753   echo "$ac_t""no" 1>&6
19754 fi
19755 done
19756     
19757     fi
19758   fi
19759
19760   
19761   
19762   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19763 echo "configure:19764: checking for finitel declaration" >&5
19764   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19765     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19766   echo $ac_n "(cached) $ac_c" 1>&6
19767 else
19768   
19769       
19770       ac_ext=C
19771 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19772 ac_cpp='$CXXCPP $CPPFLAGS'
19773 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19774 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19775 cross_compiling=$ac_cv_prog_cxx_cross
19776
19777       cat > conftest.$ac_ext <<EOF
19778 #line 19779 "configure"
19779 #include "confdefs.h"
19780 #include <math.h>
19781                       #ifdef HAVE_IEEEFP_H
19782                       #include <ieeefp.h>
19783                       #endif
19784                      
19785 int main() {
19786  finitel(0);
19787 ; return 0; }
19788 EOF
19789 if { (eval echo configure:19790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19790   rm -rf conftest*
19791   glibcpp_cv_func_finitel_use=yes
19792 else
19793   echo "configure: failed program was:" >&5
19794   cat conftest.$ac_ext >&5
19795   rm -rf conftest*
19796   glibcpp_cv_func_finitel_use=no
19797 fi
19798 rm -f conftest*
19799       ac_ext=c
19800 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19801 ac_cpp='$CPP $CPPFLAGS'
19802 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19803 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19804 cross_compiling=$ac_cv_prog_cc_cross
19805
19806     
19807 fi
19808
19809   fi
19810   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19811
19812   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19813     for ac_func in finitel
19814 do
19815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19816 echo "configure:19817: checking for $ac_func" >&5
19817 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19818   echo $ac_n "(cached) $ac_c" 1>&6
19819 else
19820   cat > conftest.$ac_ext <<EOF
19821 #line 19822 "configure"
19822 #include "confdefs.h"
19823 /* System header to define __stub macros and hopefully few prototypes,
19824     which can conflict with char $ac_func(); below.  */
19825 #include <assert.h>
19826 /* Override any gcc2 internal prototype to avoid an error.  */
19827 /* We use char because int might match the return type of a gcc2
19828     builtin and then its argument prototype would still apply.  */
19829 char $ac_func();
19830
19831 int main() {
19832
19833 /* The GNU C library defines this for functions which it implements
19834     to always fail with ENOSYS.  Some functions are actually named
19835     something starting with __ and the normal name is an alias.  */
19836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19837 choke me
19838 #else
19839 $ac_func();
19840 #endif
19841
19842 ; return 0; }
19843 EOF
19844 if { (eval echo configure:19845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19845   rm -rf conftest*
19846   eval "ac_cv_func_$ac_func=yes"
19847 else
19848   echo "configure: failed program was:" >&5
19849   cat conftest.$ac_ext >&5
19850   rm -rf conftest*
19851   eval "ac_cv_func_$ac_func=no"
19852 fi
19853 rm -f conftest*
19854 fi
19855
19856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19857   echo "$ac_t""yes" 1>&6
19858     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19859   cat >> confdefs.h <<EOF
19860 #define $ac_tr_func 1
19861 EOF
19862  
19863 else
19864   echo "$ac_t""no" 1>&6
19865 fi
19866 done
19867     
19868   else
19869     
19870   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19871 echo "configure:19872: checking for _finitel declaration" >&5
19872   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19873     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19874   echo $ac_n "(cached) $ac_c" 1>&6
19875 else
19876   
19877       
19878       ac_ext=C
19879 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19880 ac_cpp='$CXXCPP $CPPFLAGS'
19881 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19882 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19883 cross_compiling=$ac_cv_prog_cxx_cross
19884
19885       cat > conftest.$ac_ext <<EOF
19886 #line 19887 "configure"
19887 #include "confdefs.h"
19888 #include <math.h>
19889                       #ifdef HAVE_IEEEFP_H
19890                       #include <ieeefp.h>
19891                       #endif
19892                      
19893 int main() {
19894  _finitel(0);
19895 ; return 0; }
19896 EOF
19897 if { (eval echo configure:19898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19898   rm -rf conftest*
19899   glibcpp_cv_func__finitel_use=yes
19900 else
19901   echo "configure: failed program was:" >&5
19902   cat conftest.$ac_ext >&5
19903   rm -rf conftest*
19904   glibcpp_cv_func__finitel_use=no
19905 fi
19906 rm -f conftest*
19907       ac_ext=c
19908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19909 ac_cpp='$CPP $CPPFLAGS'
19910 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19911 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19912 cross_compiling=$ac_cv_prog_cc_cross
19913
19914     
19915 fi
19916
19917   fi
19918   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19919
19920     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19921       for ac_func in _finitel
19922 do
19923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19924 echo "configure:19925: checking for $ac_func" >&5
19925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19926   echo $ac_n "(cached) $ac_c" 1>&6
19927 else
19928   cat > conftest.$ac_ext <<EOF
19929 #line 19930 "configure"
19930 #include "confdefs.h"
19931 /* System header to define __stub macros and hopefully few prototypes,
19932     which can conflict with char $ac_func(); below.  */
19933 #include <assert.h>
19934 /* Override any gcc2 internal prototype to avoid an error.  */
19935 /* We use char because int might match the return type of a gcc2
19936     builtin and then its argument prototype would still apply.  */
19937 char $ac_func();
19938
19939 int main() {
19940
19941 /* The GNU C library defines this for functions which it implements
19942     to always fail with ENOSYS.  Some functions are actually named
19943     something starting with __ and the normal name is an alias.  */
19944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19945 choke me
19946 #else
19947 $ac_func();
19948 #endif
19949
19950 ; return 0; }
19951 EOF
19952 if { (eval echo configure:19953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19953   rm -rf conftest*
19954   eval "ac_cv_func_$ac_func=yes"
19955 else
19956   echo "configure: failed program was:" >&5
19957   cat conftest.$ac_ext >&5
19958   rm -rf conftest*
19959   eval "ac_cv_func_$ac_func=no"
19960 fi
19961 rm -f conftest*
19962 fi
19963
19964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19965   echo "$ac_t""yes" 1>&6
19966     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19967   cat >> confdefs.h <<EOF
19968 #define $ac_tr_func 1
19969 EOF
19970  
19971 else
19972   echo "$ac_t""no" 1>&6
19973 fi
19974 done
19975     
19976     fi
19977   fi
19978
19979
19980         
19981     
19982   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19983 echo "configure:19984: checking for _float trig functions" >&5
19984   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19985   echo $ac_n "(cached) $ac_c" 1>&6
19986 else
19987   
19988     
19989     ac_ext=C
19990 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19991 ac_cpp='$CXXCPP $CPPFLAGS'
19992 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19993 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19994 cross_compiling=$ac_cv_prog_cxx_cross
19995
19996     cat > conftest.$ac_ext <<EOF
19997 #line 19998 "configure"
19998 #include "confdefs.h"
19999 #include <math.h>
20000 int main() {
20001  `for x in _acosf _asinf _atanf \
20002                                           _cosf _sinf _tanf \
20003                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
20004 ; return 0; }
20005 EOF
20006 if { (eval echo configure:20007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20007   rm -rf conftest*
20008   glibcpp_cv_func__float_trig_use=yes
20009 else
20010   echo "configure: failed program was:" >&5
20011   cat conftest.$ac_ext >&5
20012   rm -rf conftest*
20013   glibcpp_cv_func__float_trig_use=no
20014 fi
20015 rm -f conftest*
20016     ac_ext=c
20017 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20018 ac_cpp='$CPP $CPPFLAGS'
20019 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20020 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20021 cross_compiling=$ac_cv_prog_cc_cross
20022
20023 fi
20024
20025   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
20026   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
20027     for ac_func in _acosf _asinf _atanf \
20028                                           _cosf _sinf _tanf \
20029                                           _coshf _sinhf _tanhf
20030 do
20031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20032 echo "configure:20033: checking for $ac_func" >&5
20033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20034   echo $ac_n "(cached) $ac_c" 1>&6
20035 else
20036   cat > conftest.$ac_ext <<EOF
20037 #line 20038 "configure"
20038 #include "confdefs.h"
20039 /* System header to define __stub macros and hopefully few prototypes,
20040     which can conflict with char $ac_func(); below.  */
20041 #include <assert.h>
20042 /* Override any gcc2 internal prototype to avoid an error.  */
20043 /* We use char because int might match the return type of a gcc2
20044     builtin and then its argument prototype would still apply.  */
20045 char $ac_func();
20046
20047 int main() {
20048
20049 /* The GNU C library defines this for functions which it implements
20050     to always fail with ENOSYS.  Some functions are actually named
20051     something starting with __ and the normal name is an alias.  */
20052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20053 choke me
20054 #else
20055 $ac_func();
20056 #endif
20057
20058 ; return 0; }
20059 EOF
20060 if { (eval echo configure:20061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20061   rm -rf conftest*
20062   eval "ac_cv_func_$ac_func=yes"
20063 else
20064   echo "configure: failed program was:" >&5
20065   cat conftest.$ac_ext >&5
20066   rm -rf conftest*
20067   eval "ac_cv_func_$ac_func=no"
20068 fi
20069 rm -f conftest*
20070 fi
20071
20072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20073   echo "$ac_t""yes" 1>&6
20074     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20075   cat >> confdefs.h <<EOF
20076 #define $ac_tr_func 1
20077 EOF
20078  
20079 else
20080   echo "$ac_t""no" 1>&6
20081 fi
20082 done
20083
20084   fi
20085
20086   
20087   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20088 echo "configure:20089: checking for _float round functions" >&5
20089   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20090   echo $ac_n "(cached) $ac_c" 1>&6
20091 else
20092   
20093     
20094     ac_ext=C
20095 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20096 ac_cpp='$CXXCPP $CPPFLAGS'
20097 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20098 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20099 cross_compiling=$ac_cv_prog_cxx_cross
20100
20101     cat > conftest.$ac_ext <<EOF
20102 #line 20103 "configure"
20103 #include "confdefs.h"
20104 #include <math.h>
20105 int main() {
20106  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
20107 ; return 0; }
20108 EOF
20109 if { (eval echo configure:20110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20110   rm -rf conftest*
20111   glibcpp_cv_func__float_round_use=yes
20112 else
20113   echo "configure: failed program was:" >&5
20114   cat conftest.$ac_ext >&5
20115   rm -rf conftest*
20116   glibcpp_cv_func__float_round_use=no
20117 fi
20118 rm -f conftest*
20119     ac_ext=c
20120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20121 ac_cpp='$CPP $CPPFLAGS'
20122 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20123 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20124 cross_compiling=$ac_cv_prog_cc_cross
20125
20126 fi
20127
20128   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20129   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20130     for ac_func in _ceilf _floorf
20131 do
20132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20133 echo "configure:20134: checking for $ac_func" >&5
20134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20135   echo $ac_n "(cached) $ac_c" 1>&6
20136 else
20137   cat > conftest.$ac_ext <<EOF
20138 #line 20139 "configure"
20139 #include "confdefs.h"
20140 /* System header to define __stub macros and hopefully few prototypes,
20141     which can conflict with char $ac_func(); below.  */
20142 #include <assert.h>
20143 /* Override any gcc2 internal prototype to avoid an error.  */
20144 /* We use char because int might match the return type of a gcc2
20145     builtin and then its argument prototype would still apply.  */
20146 char $ac_func();
20147
20148 int main() {
20149
20150 /* The GNU C library defines this for functions which it implements
20151     to always fail with ENOSYS.  Some functions are actually named
20152     something starting with __ and the normal name is an alias.  */
20153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20154 choke me
20155 #else
20156 $ac_func();
20157 #endif
20158
20159 ; return 0; }
20160 EOF
20161 if { (eval echo configure:20162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20162   rm -rf conftest*
20163   eval "ac_cv_func_$ac_func=yes"
20164 else
20165   echo "configure: failed program was:" >&5
20166   cat conftest.$ac_ext >&5
20167   rm -rf conftest*
20168   eval "ac_cv_func_$ac_func=no"
20169 fi
20170 rm -f conftest*
20171 fi
20172
20173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20174   echo "$ac_t""yes" 1>&6
20175     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20176   cat >> confdefs.h <<EOF
20177 #define $ac_tr_func 1
20178 EOF
20179  
20180 else
20181   echo "$ac_t""no" 1>&6
20182 fi
20183 done
20184
20185   fi
20186
20187
20188     
20189   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20190 echo "configure:20191: checking for _long double trig functions" >&5
20191   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20192   echo $ac_n "(cached) $ac_c" 1>&6
20193 else
20194   
20195     
20196     ac_ext=C
20197 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20198 ac_cpp='$CXXCPP $CPPFLAGS'
20199 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20200 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20201 cross_compiling=$ac_cv_prog_cxx_cross
20202
20203     cat > conftest.$ac_ext <<EOF
20204 #line 20205 "configure"
20205 #include "confdefs.h"
20206 #include <math.h>
20207 int main() {
20208  `for x in _acosl _asinl _atanl \
20209                                           _cosl _sinl _tanl \
20210                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
20211 ; return 0; }
20212 EOF
20213 if { (eval echo configure:20214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20214   rm -rf conftest*
20215   glibcpp_cv_func__long_double_trig_use=yes
20216 else
20217   echo "configure: failed program was:" >&5
20218   cat conftest.$ac_ext >&5
20219   rm -rf conftest*
20220   glibcpp_cv_func__long_double_trig_use=no
20221 fi
20222 rm -f conftest*
20223     ac_ext=c
20224 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20225 ac_cpp='$CPP $CPPFLAGS'
20226 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20227 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20228 cross_compiling=$ac_cv_prog_cc_cross
20229
20230 fi
20231
20232   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20233   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20234     for ac_func in _acosl _asinl _atanl \
20235                                           _cosl _sinl _tanl \
20236                                           _coshl _sinhl _tanhl
20237 do
20238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20239 echo "configure:20240: checking for $ac_func" >&5
20240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20241   echo $ac_n "(cached) $ac_c" 1>&6
20242 else
20243   cat > conftest.$ac_ext <<EOF
20244 #line 20245 "configure"
20245 #include "confdefs.h"
20246 /* System header to define __stub macros and hopefully few prototypes,
20247     which can conflict with char $ac_func(); below.  */
20248 #include <assert.h>
20249 /* Override any gcc2 internal prototype to avoid an error.  */
20250 /* We use char because int might match the return type of a gcc2
20251     builtin and then its argument prototype would still apply.  */
20252 char $ac_func();
20253
20254 int main() {
20255
20256 /* The GNU C library defines this for functions which it implements
20257     to always fail with ENOSYS.  Some functions are actually named
20258     something starting with __ and the normal name is an alias.  */
20259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20260 choke me
20261 #else
20262 $ac_func();
20263 #endif
20264
20265 ; return 0; }
20266 EOF
20267 if { (eval echo configure:20268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20268   rm -rf conftest*
20269   eval "ac_cv_func_$ac_func=yes"
20270 else
20271   echo "configure: failed program was:" >&5
20272   cat conftest.$ac_ext >&5
20273   rm -rf conftest*
20274   eval "ac_cv_func_$ac_func=no"
20275 fi
20276 rm -f conftest*
20277 fi
20278
20279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20280   echo "$ac_t""yes" 1>&6
20281     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20282   cat >> confdefs.h <<EOF
20283 #define $ac_tr_func 1
20284 EOF
20285  
20286 else
20287   echo "$ac_t""no" 1>&6
20288 fi
20289 done
20290
20291   fi
20292
20293   
20294   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20295 echo "configure:20296: checking for _long double round functions" >&5
20296   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20297   echo $ac_n "(cached) $ac_c" 1>&6
20298 else
20299   
20300     
20301     ac_ext=C
20302 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20303 ac_cpp='$CXXCPP $CPPFLAGS'
20304 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20305 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20306 cross_compiling=$ac_cv_prog_cxx_cross
20307
20308     cat > conftest.$ac_ext <<EOF
20309 #line 20310 "configure"
20310 #include "confdefs.h"
20311 #include <math.h>
20312 int main() {
20313  `for x in _ceill _floorl; do echo "$x (0);"; done` 
20314 ; return 0; }
20315 EOF
20316 if { (eval echo configure:20317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20317   rm -rf conftest*
20318   glibcpp_cv_func__long_double_round_use=yes
20319 else
20320   echo "configure: failed program was:" >&5
20321   cat conftest.$ac_ext >&5
20322   rm -rf conftest*
20323   glibcpp_cv_func__long_double_round_use=no
20324 fi
20325 rm -f conftest*
20326     ac_ext=c
20327 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20328 ac_cpp='$CPP $CPPFLAGS'
20329 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20330 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20331 cross_compiling=$ac_cv_prog_cc_cross
20332
20333 fi
20334
20335   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20336   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20337     for ac_func in _ceill _floorl
20338 do
20339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20340 echo "configure:20341: checking for $ac_func" >&5
20341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20342   echo $ac_n "(cached) $ac_c" 1>&6
20343 else
20344   cat > conftest.$ac_ext <<EOF
20345 #line 20346 "configure"
20346 #include "confdefs.h"
20347 /* System header to define __stub macros and hopefully few prototypes,
20348     which can conflict with char $ac_func(); below.  */
20349 #include <assert.h>
20350 /* Override any gcc2 internal prototype to avoid an error.  */
20351 /* We use char because int might match the return type of a gcc2
20352     builtin and then its argument prototype would still apply.  */
20353 char $ac_func();
20354
20355 int main() {
20356
20357 /* The GNU C library defines this for functions which it implements
20358     to always fail with ENOSYS.  Some functions are actually named
20359     something starting with __ and the normal name is an alias.  */
20360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20361 choke me
20362 #else
20363 $ac_func();
20364 #endif
20365
20366 ; return 0; }
20367 EOF
20368 if { (eval echo configure:20369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20369   rm -rf conftest*
20370   eval "ac_cv_func_$ac_func=yes"
20371 else
20372   echo "configure: failed program was:" >&5
20373   cat conftest.$ac_ext >&5
20374   rm -rf conftest*
20375   eval "ac_cv_func_$ac_func=no"
20376 fi
20377 rm -f conftest*
20378 fi
20379
20380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20381   echo "$ac_t""yes" 1>&6
20382     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20383   cat >> confdefs.h <<EOF
20384 #define $ac_tr_func 1
20385 EOF
20386  
20387 else
20388   echo "$ac_t""no" 1>&6
20389 fi
20390 done
20391
20392   fi
20393
20394
20395   LIBS="$ac_save_LIBS"
20396   CXXFLAGS="$ac_save_CXXFLAGS"
20397
20398   
20399     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
20400 echo "configure:20401: checking for main in -lm" >&5
20401 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
20402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20403   echo $ac_n "(cached) $ac_c" 1>&6
20404 else
20405   ac_save_LIBS="$LIBS"
20406 LIBS="-lm  $LIBS"
20407 cat > conftest.$ac_ext <<EOF
20408 #line 20409 "configure"
20409 #include "confdefs.h"
20410
20411 int main() {
20412 main()
20413 ; return 0; }
20414 EOF
20415 if { (eval echo configure:20416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20416   rm -rf conftest*
20417   eval "ac_cv_lib_$ac_lib_var=yes"
20418 else
20419   echo "configure: failed program was:" >&5
20420   cat conftest.$ac_ext >&5
20421   rm -rf conftest*
20422   eval "ac_cv_lib_$ac_lib_var=no"
20423 fi
20424 rm -f conftest*
20425 LIBS="$ac_save_LIBS"
20426
20427 fi
20428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20429   echo "$ac_t""yes" 1>&6
20430     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
20431     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
20432   cat >> confdefs.h <<EOF
20433 #define $ac_tr_lib 1
20434 EOF
20435
20436   LIBS="-lm $LIBS"
20437
20438 else
20439   echo "$ac_t""no" 1>&6
20440 fi
20441
20442   for ac_func in nan copysignf
20443 do
20444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20445 echo "configure:20446: checking for $ac_func" >&5
20446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20447   echo $ac_n "(cached) $ac_c" 1>&6
20448 else
20449   cat > conftest.$ac_ext <<EOF
20450 #line 20451 "configure"
20451 #include "confdefs.h"
20452 /* System header to define __stub macros and hopefully few prototypes,
20453     which can conflict with char $ac_func(); below.  */
20454 #include <assert.h>
20455 /* Override any gcc2 internal prototype to avoid an error.  */
20456 /* We use char because int might match the return type of a gcc2
20457     builtin and then its argument prototype would still apply.  */
20458 char $ac_func();
20459
20460 int main() {
20461
20462 /* The GNU C library defines this for functions which it implements
20463     to always fail with ENOSYS.  Some functions are actually named
20464     something starting with __ and the normal name is an alias.  */
20465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20466 choke me
20467 #else
20468 $ac_func();
20469 #endif
20470
20471 ; return 0; }
20472 EOF
20473 if { (eval echo configure:20474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20474   rm -rf conftest*
20475   eval "ac_cv_func_$ac_func=yes"
20476 else
20477   echo "configure: failed program was:" >&5
20478   cat conftest.$ac_ext >&5
20479   rm -rf conftest*
20480   eval "ac_cv_func_$ac_func=no"
20481 fi
20482 rm -f conftest*
20483 fi
20484
20485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20486   echo "$ac_t""yes" 1>&6
20487     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20488   cat >> confdefs.h <<EOF
20489 #define $ac_tr_func 1
20490 EOF
20491  
20492 else
20493   echo "$ac_t""no" 1>&6
20494 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
20495 fi
20496 done
20497
20498
20499     for ac_func in __signbit
20500 do
20501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20502 echo "configure:20503: checking for $ac_func" >&5
20503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20504   echo $ac_n "(cached) $ac_c" 1>&6
20505 else
20506   cat > conftest.$ac_ext <<EOF
20507 #line 20508 "configure"
20508 #include "confdefs.h"
20509 /* System header to define __stub macros and hopefully few prototypes,
20510     which can conflict with char $ac_func(); below.  */
20511 #include <assert.h>
20512 /* Override any gcc2 internal prototype to avoid an error.  */
20513 /* We use char because int might match the return type of a gcc2
20514     builtin and then its argument prototype would still apply.  */
20515 char $ac_func();
20516
20517 int main() {
20518
20519 /* The GNU C library defines this for functions which it implements
20520     to always fail with ENOSYS.  Some functions are actually named
20521     something starting with __ and the normal name is an alias.  */
20522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20523 choke me
20524 #else
20525 $ac_func();
20526 #endif
20527
20528 ; return 0; }
20529 EOF
20530 if { (eval echo configure:20531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20531   rm -rf conftest*
20532   eval "ac_cv_func_$ac_func=yes"
20533 else
20534   echo "configure: failed program was:" >&5
20535   cat conftest.$ac_ext >&5
20536   rm -rf conftest*
20537   eval "ac_cv_func_$ac_func=no"
20538 fi
20539 rm -f conftest*
20540 fi
20541
20542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20543   echo "$ac_t""yes" 1>&6
20544     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20545   cat >> confdefs.h <<EOF
20546 #define $ac_tr_func 1
20547 EOF
20548  
20549 else
20550   echo "$ac_t""no" 1>&6
20551 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
20552 fi
20553 done
20554
20555   for ac_func in __signbitf
20556 do
20557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20558 echo "configure:20559: checking for $ac_func" >&5
20559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20560   echo $ac_n "(cached) $ac_c" 1>&6
20561 else
20562   cat > conftest.$ac_ext <<EOF
20563 #line 20564 "configure"
20564 #include "confdefs.h"
20565 /* System header to define __stub macros and hopefully few prototypes,
20566     which can conflict with char $ac_func(); below.  */
20567 #include <assert.h>
20568 /* Override any gcc2 internal prototype to avoid an error.  */
20569 /* We use char because int might match the return type of a gcc2
20570     builtin and then its argument prototype would still apply.  */
20571 char $ac_func();
20572
20573 int main() {
20574
20575 /* The GNU C library defines this for functions which it implements
20576     to always fail with ENOSYS.  Some functions are actually named
20577     something starting with __ and the normal name is an alias.  */
20578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20579 choke me
20580 #else
20581 $ac_func();
20582 #endif
20583
20584 ; return 0; }
20585 EOF
20586 if { (eval echo configure:20587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20587   rm -rf conftest*
20588   eval "ac_cv_func_$ac_func=yes"
20589 else
20590   echo "configure: failed program was:" >&5
20591   cat conftest.$ac_ext >&5
20592   rm -rf conftest*
20593   eval "ac_cv_func_$ac_func=no"
20594 fi
20595 rm -f conftest*
20596 fi
20597
20598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20599   echo "$ac_t""yes" 1>&6
20600     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20601   cat >> confdefs.h <<EOF
20602 #define $ac_tr_func 1
20603 EOF
20604  
20605 else
20606   echo "$ac_t""no" 1>&6
20607 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
20608 fi
20609 done
20610
20611
20612           if test x$ac_cv_func_copysignl = x"yes"; then
20613     for ac_func in __signbitl
20614 do
20615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20616 echo "configure:20617: checking for $ac_func" >&5
20617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20618   echo $ac_n "(cached) $ac_c" 1>&6
20619 else
20620   cat > conftest.$ac_ext <<EOF
20621 #line 20622 "configure"
20622 #include "confdefs.h"
20623 /* System header to define __stub macros and hopefully few prototypes,
20624     which can conflict with char $ac_func(); below.  */
20625 #include <assert.h>
20626 /* Override any gcc2 internal prototype to avoid an error.  */
20627 /* We use char because int might match the return type of a gcc2
20628     builtin and then its argument prototype would still apply.  */
20629 char $ac_func();
20630
20631 int main() {
20632
20633 /* The GNU C library defines this for functions which it implements
20634     to always fail with ENOSYS.  Some functions are actually named
20635     something starting with __ and the normal name is an alias.  */
20636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20637 choke me
20638 #else
20639 $ac_func();
20640 #endif
20641
20642 ; return 0; }
20643 EOF
20644 if { (eval echo configure:20645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20645   rm -rf conftest*
20646   eval "ac_cv_func_$ac_func=yes"
20647 else
20648   echo "configure: failed program was:" >&5
20649   cat conftest.$ac_ext >&5
20650   rm -rf conftest*
20651   eval "ac_cv_func_$ac_func=no"
20652 fi
20653 rm -f conftest*
20654 fi
20655
20656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20657   echo "$ac_t""yes" 1>&6
20658     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20659   cat >> confdefs.h <<EOF
20660 #define $ac_tr_func 1
20661 EOF
20662  
20663 else
20664   echo "$ac_t""no" 1>&6
20665 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
20666 fi
20667 done
20668
20669   fi
20670
20671   
20672
20673   
20674
20675       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
20676 echo "configure:20677: checking for mbstate_t" >&5
20677   cat > conftest.$ac_ext <<EOF
20678 #line 20679 "configure"
20679 #include "confdefs.h"
20680 #include <wchar.h>
20681 int main() {
20682 mbstate_t teststate;
20683 ; return 0; }
20684 EOF
20685 if { (eval echo configure:20686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20686   rm -rf conftest*
20687   have_mbstate_t=yes
20688 else
20689   echo "configure: failed program was:" >&5
20690   cat conftest.$ac_ext >&5
20691   rm -rf conftest*
20692   have_mbstate_t=no
20693 fi
20694 rm -f conftest*
20695   echo "$ac_t""$have_mbstate_t" 1>&6
20696   if test x"$have_mbstate_t" = xyes; then
20697     cat >> confdefs.h <<\EOF
20698 #define HAVE_MBSTATE_T 1
20699 EOF
20700
20701   fi
20702
20703     for ac_hdr in wchar.h
20704 do
20705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20707 echo "configure:20708: checking for $ac_hdr" >&5
20708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20709   echo $ac_n "(cached) $ac_c" 1>&6
20710 else
20711   cat > conftest.$ac_ext <<EOF
20712 #line 20713 "configure"
20713 #include "confdefs.h"
20714 #include <$ac_hdr>
20715 EOF
20716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20717 { (eval echo configure:20718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20719 if test -z "$ac_err"; then
20720   rm -rf conftest*
20721   eval "ac_cv_header_$ac_safe=yes"
20722 else
20723   echo "$ac_err" >&5
20724   echo "configure: failed program was:" >&5
20725   cat conftest.$ac_ext >&5
20726   rm -rf conftest*
20727   eval "ac_cv_header_$ac_safe=no"
20728 fi
20729 rm -f conftest*
20730 fi
20731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20732   echo "$ac_t""yes" 1>&6
20733     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20734   cat >> confdefs.h <<EOF
20735 #define $ac_tr_hdr 1
20736 EOF
20737  ac_has_wchar_h=yes
20738 else
20739   echo "$ac_t""no" 1>&6
20740 ac_has_wchar_h=no
20741 fi
20742 done
20743
20744   for ac_hdr in wctype.h
20745 do
20746 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20747 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20748 echo "configure:20749: checking for $ac_hdr" >&5
20749 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20750   echo $ac_n "(cached) $ac_c" 1>&6
20751 else
20752   cat > conftest.$ac_ext <<EOF
20753 #line 20754 "configure"
20754 #include "confdefs.h"
20755 #include <$ac_hdr>
20756 EOF
20757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20758 { (eval echo configure:20759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20760 if test -z "$ac_err"; then
20761   rm -rf conftest*
20762   eval "ac_cv_header_$ac_safe=yes"
20763 else
20764   echo "$ac_err" >&5
20765   echo "configure: failed program was:" >&5
20766   cat conftest.$ac_ext >&5
20767   rm -rf conftest*
20768   eval "ac_cv_header_$ac_safe=no"
20769 fi
20770 rm -f conftest*
20771 fi
20772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20773   echo "$ac_t""yes" 1>&6
20774     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20775   cat >> confdefs.h <<EOF
20776 #define $ac_tr_hdr 1
20777 EOF
20778  ac_has_wctype_h=yes
20779 else
20780   echo "$ac_t""no" 1>&6
20781 ac_has_wctype_h=no
20782 fi
20783 done
20784
20785   
20786     if test x"$ac_has_wchar_h" = xyes &&
20787      test x"$ac_has_wctype_h" = xyes &&
20788      test x"$enable_c_mbchar" != xno; then
20789       
20790             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
20791 echo "configure:20792: checking for WCHAR_MIN and WCHAR_MAX" >&5
20792     cat > conftest.$ac_ext <<EOF
20793 #line 20794 "configure"
20794 #include "confdefs.h"
20795 #include <wchar.h>
20796 int main() {
20797 int i = WCHAR_MIN; int j = WCHAR_MAX;
20798 ; return 0; }
20799 EOF
20800 if { (eval echo configure:20801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20801   rm -rf conftest*
20802   has_wchar_minmax=yes
20803 else
20804   echo "configure: failed program was:" >&5
20805   cat conftest.$ac_ext >&5
20806   rm -rf conftest*
20807   has_wchar_minmax=no
20808 fi
20809 rm -f conftest*
20810     echo "$ac_t""$has_wchar_minmax" 1>&6
20811     
20812             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
20813 echo "configure:20814: checking for WEOF" >&5
20814     cat > conftest.$ac_ext <<EOF
20815 #line 20816 "configure"
20816 #include "confdefs.h"
20817
20818       #include <wchar.h>
20819       #include <stddef.h>
20820 int main() {
20821 wint_t i = WEOF;
20822 ; return 0; }
20823 EOF
20824 if { (eval echo configure:20825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20825   rm -rf conftest*
20826   has_weof=yes
20827 else
20828   echo "configure: failed program was:" >&5
20829   cat conftest.$ac_ext >&5
20830   rm -rf conftest*
20831   has_weof=no
20832 fi
20833 rm -f conftest*
20834     echo "$ac_t""$has_weof" 1>&6
20835   
20836         ac_wfuncs=yes
20837     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
20838 do
20839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20840 echo "configure:20841: checking for $ac_func" >&5
20841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20842   echo $ac_n "(cached) $ac_c" 1>&6
20843 else
20844   cat > conftest.$ac_ext <<EOF
20845 #line 20846 "configure"
20846 #include "confdefs.h"
20847 /* System header to define __stub macros and hopefully few prototypes,
20848     which can conflict with char $ac_func(); below.  */
20849 #include <assert.h>
20850 /* Override any gcc2 internal prototype to avoid an error.  */
20851 /* We use char because int might match the return type of a gcc2
20852     builtin and then its argument prototype would still apply.  */
20853 char $ac_func();
20854
20855 int main() {
20856
20857 /* The GNU C library defines this for functions which it implements
20858     to always fail with ENOSYS.  Some functions are actually named
20859     something starting with __ and the normal name is an alias.  */
20860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20861 choke me
20862 #else
20863 $ac_func();
20864 #endif
20865
20866 ; return 0; }
20867 EOF
20868 if { (eval echo configure:20869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20869   rm -rf conftest*
20870   eval "ac_cv_func_$ac_func=yes"
20871 else
20872   echo "configure: failed program was:" >&5
20873   cat conftest.$ac_ext >&5
20874   rm -rf conftest*
20875   eval "ac_cv_func_$ac_func=no"
20876 fi
20877 rm -f conftest*
20878 fi
20879
20880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20881   echo "$ac_t""yes" 1>&6
20882     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20883   cat >> confdefs.h <<EOF
20884 #define $ac_tr_func 1
20885 EOF
20886  
20887 else
20888   echo "$ac_t""no" 1>&6
20889 \
20890     ac_wfuncs=no
20891 fi
20892 done
20893
20894   
20895         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
20896     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
20897     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
20898     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
20899     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
20900     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
20901 do
20902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20903 echo "configure:20904: checking for $ac_func" >&5
20904 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20905   echo $ac_n "(cached) $ac_c" 1>&6
20906 else
20907   cat > conftest.$ac_ext <<EOF
20908 #line 20909 "configure"
20909 #include "confdefs.h"
20910 /* System header to define __stub macros and hopefully few prototypes,
20911     which can conflict with char $ac_func(); below.  */
20912 #include <assert.h>
20913 /* Override any gcc2 internal prototype to avoid an error.  */
20914 /* We use char because int might match the return type of a gcc2
20915     builtin and then its argument prototype would still apply.  */
20916 char $ac_func();
20917
20918 int main() {
20919
20920 /* The GNU C library defines this for functions which it implements
20921     to always fail with ENOSYS.  Some functions are actually named
20922     something starting with __ and the normal name is an alias.  */
20923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20924 choke me
20925 #else
20926 $ac_func();
20927 #endif
20928
20929 ; return 0; }
20930 EOF
20931 if { (eval echo configure:20932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20932   rm -rf conftest*
20933   eval "ac_cv_func_$ac_func=yes"
20934 else
20935   echo "configure: failed program was:" >&5
20936   cat conftest.$ac_ext >&5
20937   rm -rf conftest*
20938   eval "ac_cv_func_$ac_func=no"
20939 fi
20940 rm -f conftest*
20941 fi
20942
20943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20944   echo "$ac_t""yes" 1>&6
20945     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20946   cat >> confdefs.h <<EOF
20947 #define $ac_tr_func 1
20948 EOF
20949  
20950 else
20951   echo "$ac_t""no" 1>&6
20952 \
20953     ac_wfuncs=no
20954 fi
20955 done
20956
20957
20958     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
20959 echo "configure:20960: checking for ISO C99 wchar_t support" >&5
20960     if test x"$has_weof" = xyes &&
20961        test x"$has_wchar_minmax" = xyes &&
20962        test x"$ac_wfuncs" = xyes; then
20963       ac_isoC99_wchar_t=yes
20964     else
20965       ac_isoC99_wchar_t=no
20966     fi
20967     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
20968   
20969             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
20970 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
20971 echo "configure:20972: checking for iconv.h" >&5
20972 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20973   echo $ac_n "(cached) $ac_c" 1>&6
20974 else
20975   cat > conftest.$ac_ext <<EOF
20976 #line 20977 "configure"
20977 #include "confdefs.h"
20978 #include <iconv.h>
20979 EOF
20980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20981 { (eval echo configure:20982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20983 if test -z "$ac_err"; then
20984   rm -rf conftest*
20985   eval "ac_cv_header_$ac_safe=yes"
20986 else
20987   echo "$ac_err" >&5
20988   echo "configure: failed program was:" >&5
20989   cat conftest.$ac_ext >&5
20990   rm -rf conftest*
20991   eval "ac_cv_header_$ac_safe=no"
20992 fi
20993 rm -f conftest*
20994 fi
20995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20996   echo "$ac_t""yes" 1>&6
20997   ac_has_iconv_h=yes
20998 else
20999   echo "$ac_t""no" 1>&6
21000 ac_has_iconv_h=no
21001 fi
21002
21003     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
21004 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
21005 echo "configure:21006: checking for langinfo.h" >&5
21006 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21007   echo $ac_n "(cached) $ac_c" 1>&6
21008 else
21009   cat > conftest.$ac_ext <<EOF
21010 #line 21011 "configure"
21011 #include "confdefs.h"
21012 #include <langinfo.h>
21013 EOF
21014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21015 { (eval echo configure:21016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21017 if test -z "$ac_err"; then
21018   rm -rf conftest*
21019   eval "ac_cv_header_$ac_safe=yes"
21020 else
21021   echo "$ac_err" >&5
21022   echo "configure: failed program was:" >&5
21023   cat conftest.$ac_ext >&5
21024   rm -rf conftest*
21025   eval "ac_cv_header_$ac_safe=no"
21026 fi
21027 rm -f conftest*
21028 fi
21029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21030   echo "$ac_t""yes" 1>&6
21031   ac_has_langinfo_h=yes
21032 else
21033   echo "$ac_t""no" 1>&6
21034 ac_has_langinfo_h=no
21035 fi
21036
21037
21038         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
21039 echo "configure:21040: checking for iconv in -liconv" >&5
21040 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
21041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21042   echo $ac_n "(cached) $ac_c" 1>&6
21043 else
21044   ac_save_LIBS="$LIBS"
21045 LIBS="-liconv  $LIBS"
21046 cat > conftest.$ac_ext <<EOF
21047 #line 21048 "configure"
21048 #include "confdefs.h"
21049 /* Override any gcc2 internal prototype to avoid an error.  */
21050 /* We use char because int might match the return type of a gcc2
21051     builtin and then its argument prototype would still apply.  */
21052 char iconv();
21053
21054 int main() {
21055 iconv()
21056 ; return 0; }
21057 EOF
21058 if { (eval echo configure:21059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21059   rm -rf conftest*
21060   eval "ac_cv_lib_$ac_lib_var=yes"
21061 else
21062   echo "configure: failed program was:" >&5
21063   cat conftest.$ac_ext >&5
21064   rm -rf conftest*
21065   eval "ac_cv_lib_$ac_lib_var=no"
21066 fi
21067 rm -f conftest*
21068 LIBS="$ac_save_LIBS"
21069
21070 fi
21071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21072   echo "$ac_t""yes" 1>&6
21073   libiconv="-liconv"
21074 else
21075   echo "$ac_t""no" 1>&6
21076 fi
21077
21078     ac_save_LIBS="$LIBS"
21079     LIBS="$LIBS $libiconv"
21080
21081     for ac_func in iconv_open iconv_close iconv nl_langinfo
21082 do
21083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21084 echo "configure:21085: checking for $ac_func" >&5
21085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21086   echo $ac_n "(cached) $ac_c" 1>&6
21087 else
21088   cat > conftest.$ac_ext <<EOF
21089 #line 21090 "configure"
21090 #include "confdefs.h"
21091 /* System header to define __stub macros and hopefully few prototypes,
21092     which can conflict with char $ac_func(); below.  */
21093 #include <assert.h>
21094 /* Override any gcc2 internal prototype to avoid an error.  */
21095 /* We use char because int might match the return type of a gcc2
21096     builtin and then its argument prototype would still apply.  */
21097 char $ac_func();
21098
21099 int main() {
21100
21101 /* The GNU C library defines this for functions which it implements
21102     to always fail with ENOSYS.  Some functions are actually named
21103     something starting with __ and the normal name is an alias.  */
21104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21105 choke me
21106 #else
21107 $ac_func();
21108 #endif
21109
21110 ; return 0; }
21111 EOF
21112 if { (eval echo configure:21113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21113   rm -rf conftest*
21114   eval "ac_cv_func_$ac_func=yes"
21115 else
21116   echo "configure: failed program was:" >&5
21117   cat conftest.$ac_ext >&5
21118   rm -rf conftest*
21119   eval "ac_cv_func_$ac_func=no"
21120 fi
21121 rm -f conftest*
21122 fi
21123
21124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21125   echo "$ac_t""yes" 1>&6
21126     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21127   cat >> confdefs.h <<EOF
21128 #define $ac_tr_func 1
21129 EOF
21130  \
21131     ac_XPG2funcs=yes
21132 else
21133   echo "$ac_t""no" 1>&6
21134 ac_XPG2funcs=no
21135 fi
21136 done
21137
21138   
21139     LIBS="$ac_save_LIBS"
21140
21141     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
21142 echo "configure:21143: checking for XPG2 wchar_t support" >&5
21143     if test x"$ac_has_iconv_h" = xyes &&
21144        test x"$ac_has_langinfo_h" = xyes &&
21145        test x"$ac_XPG2funcs" = xyes; then
21146       ac_XPG2_wchar_t=yes
21147     else
21148       ac_XPG2_wchar_t=no
21149     fi
21150     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
21151   
21152             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
21153 echo "configure:21154: checking for enabled wchar_t specializations" >&5
21154     if test x"$ac_isoC99_wchar_t" = xyes &&
21155        test x"$ac_XPG2_wchar_t" = xyes; then
21156       cat >> confdefs.h <<\EOF
21157 #define _GLIBCPP_USE_WCHAR_T 1
21158 EOF
21159
21160       echo "$ac_t"""yes"" 1>&6
21161     else
21162       echo "$ac_t"""no"" 1>&6
21163     fi
21164   else
21165         echo "configure: warning: wchar_t support disabled." 1>&2
21166   fi
21167
21168   
21169   ac_test_CXXFLAGS="${CXXFLAGS+set}"
21170   ac_save_CXXFLAGS="$CXXFLAGS"
21171   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
21172
21173   
21174   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
21175 echo "configure:21176: checking for strtold declaration" >&5
21176   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
21177     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
21178   echo $ac_n "(cached) $ac_c" 1>&6
21179 else
21180   
21181       
21182       ac_ext=C
21183 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21184 ac_cpp='$CXXCPP $CPPFLAGS'
21185 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21186 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21187 cross_compiling=$ac_cv_prog_cxx_cross
21188
21189       cat > conftest.$ac_ext <<EOF
21190 #line 21191 "configure"
21191 #include "confdefs.h"
21192 #include <stdlib.h>
21193 int main() {
21194  strtold(0, 0);
21195 ; return 0; }
21196 EOF
21197 if { (eval echo configure:21198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21198   rm -rf conftest*
21199   glibcpp_cv_func_strtold_use=yes
21200 else
21201   echo "configure: failed program was:" >&5
21202   cat conftest.$ac_ext >&5
21203   rm -rf conftest*
21204   glibcpp_cv_func_strtold_use=no
21205 fi
21206 rm -f conftest*
21207       ac_ext=c
21208 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21209 ac_cpp='$CPP $CPPFLAGS'
21210 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21211 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21212 cross_compiling=$ac_cv_prog_cc_cross
21213
21214     
21215 fi
21216
21217   fi
21218   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
21219   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
21220     for ac_func in strtold
21221 do
21222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21223 echo "configure:21224: checking for $ac_func" >&5
21224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21225   echo $ac_n "(cached) $ac_c" 1>&6
21226 else
21227   cat > conftest.$ac_ext <<EOF
21228 #line 21229 "configure"
21229 #include "confdefs.h"
21230 /* System header to define __stub macros and hopefully few prototypes,
21231     which can conflict with char $ac_func(); below.  */
21232 #include <assert.h>
21233 /* Override any gcc2 internal prototype to avoid an error.  */
21234 /* We use char because int might match the return type of a gcc2
21235     builtin and then its argument prototype would still apply.  */
21236 char $ac_func();
21237
21238 int main() {
21239
21240 /* The GNU C library defines this for functions which it implements
21241     to always fail with ENOSYS.  Some functions are actually named
21242     something starting with __ and the normal name is an alias.  */
21243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21244 choke me
21245 #else
21246 $ac_func();
21247 #endif
21248
21249 ; return 0; }
21250 EOF
21251 if { (eval echo configure:21252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21252   rm -rf conftest*
21253   eval "ac_cv_func_$ac_func=yes"
21254 else
21255   echo "configure: failed program was:" >&5
21256   cat conftest.$ac_ext >&5
21257   rm -rf conftest*
21258   eval "ac_cv_func_$ac_func=no"
21259 fi
21260 rm -f conftest*
21261 fi
21262
21263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21264   echo "$ac_t""yes" 1>&6
21265     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21266   cat >> confdefs.h <<EOF
21267 #define $ac_tr_func 1
21268 EOF
21269  
21270 else
21271   echo "$ac_t""no" 1>&6
21272 fi
21273 done
21274     
21275   fi
21276
21277   
21278   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
21279 echo "configure:21280: checking for strtof declaration" >&5
21280   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
21281     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
21282   echo $ac_n "(cached) $ac_c" 1>&6
21283 else
21284   
21285       
21286       ac_ext=C
21287 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21288 ac_cpp='$CXXCPP $CPPFLAGS'
21289 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21290 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21291 cross_compiling=$ac_cv_prog_cxx_cross
21292
21293       cat > conftest.$ac_ext <<EOF
21294 #line 21295 "configure"
21295 #include "confdefs.h"
21296 #include <stdlib.h>
21297 int main() {
21298  strtof(0, 0);
21299 ; return 0; }
21300 EOF
21301 if { (eval echo configure:21302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21302   rm -rf conftest*
21303   glibcpp_cv_func_strtof_use=yes
21304 else
21305   echo "configure: failed program was:" >&5
21306   cat conftest.$ac_ext >&5
21307   rm -rf conftest*
21308   glibcpp_cv_func_strtof_use=no
21309 fi
21310 rm -f conftest*
21311       ac_ext=c
21312 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21313 ac_cpp='$CPP $CPPFLAGS'
21314 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21315 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21316 cross_compiling=$ac_cv_prog_cc_cross
21317
21318     
21319 fi
21320
21321   fi
21322   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
21323   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
21324     for ac_func in strtof
21325 do
21326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21327 echo "configure:21328: checking for $ac_func" >&5
21328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21329   echo $ac_n "(cached) $ac_c" 1>&6
21330 else
21331   cat > conftest.$ac_ext <<EOF
21332 #line 21333 "configure"
21333 #include "confdefs.h"
21334 /* System header to define __stub macros and hopefully few prototypes,
21335     which can conflict with char $ac_func(); below.  */
21336 #include <assert.h>
21337 /* Override any gcc2 internal prototype to avoid an error.  */
21338 /* We use char because int might match the return type of a gcc2
21339     builtin and then its argument prototype would still apply.  */
21340 char $ac_func();
21341
21342 int main() {
21343
21344 /* The GNU C library defines this for functions which it implements
21345     to always fail with ENOSYS.  Some functions are actually named
21346     something starting with __ and the normal name is an alias.  */
21347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21348 choke me
21349 #else
21350 $ac_func();
21351 #endif
21352
21353 ; return 0; }
21354 EOF
21355 if { (eval echo configure:21356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21356   rm -rf conftest*
21357   eval "ac_cv_func_$ac_func=yes"
21358 else
21359   echo "configure: failed program was:" >&5
21360   cat conftest.$ac_ext >&5
21361   rm -rf conftest*
21362   eval "ac_cv_func_$ac_func=no"
21363 fi
21364 rm -f conftest*
21365 fi
21366
21367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21368   echo "$ac_t""yes" 1>&6
21369     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21370   cat >> confdefs.h <<EOF
21371 #define $ac_tr_func 1
21372 EOF
21373  
21374 else
21375   echo "$ac_t""no" 1>&6
21376 fi
21377 done
21378     
21379   fi
21380
21381   for ac_func in drand48
21382 do
21383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21384 echo "configure:21385: checking for $ac_func" >&5
21385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21386   echo $ac_n "(cached) $ac_c" 1>&6
21387 else
21388   cat > conftest.$ac_ext <<EOF
21389 #line 21390 "configure"
21390 #include "confdefs.h"
21391 /* System header to define __stub macros and hopefully few prototypes,
21392     which can conflict with char $ac_func(); below.  */
21393 #include <assert.h>
21394 /* Override any gcc2 internal prototype to avoid an error.  */
21395 /* We use char because int might match the return type of a gcc2
21396     builtin and then its argument prototype would still apply.  */
21397 char $ac_func();
21398
21399 int main() {
21400
21401 /* The GNU C library defines this for functions which it implements
21402     to always fail with ENOSYS.  Some functions are actually named
21403     something starting with __ and the normal name is an alias.  */
21404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21405 choke me
21406 #else
21407 $ac_func();
21408 #endif
21409
21410 ; return 0; }
21411 EOF
21412 if { (eval echo configure:21413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21413   rm -rf conftest*
21414   eval "ac_cv_func_$ac_func=yes"
21415 else
21416   echo "configure: failed program was:" >&5
21417   cat conftest.$ac_ext >&5
21418   rm -rf conftest*
21419   eval "ac_cv_func_$ac_func=no"
21420 fi
21421 rm -f conftest*
21422 fi
21423
21424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21425   echo "$ac_t""yes" 1>&6
21426     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21427   cat >> confdefs.h <<EOF
21428 #define $ac_tr_func 1
21429 EOF
21430  
21431 else
21432   echo "$ac_t""no" 1>&6
21433 fi
21434 done
21435
21436
21437   CXXFLAGS="$ac_save_CXXFLAGS"
21438
21439   
21440   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
21441 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
21442 echo "configure:21443: checking for locale.h" >&5
21443 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21444   echo $ac_n "(cached) $ac_c" 1>&6
21445 else
21446   cat > conftest.$ac_ext <<EOF
21447 #line 21448 "configure"
21448 #include "confdefs.h"
21449 #include <locale.h>
21450 EOF
21451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21452 { (eval echo configure:21453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21454 if test -z "$ac_err"; then
21455   rm -rf conftest*
21456   eval "ac_cv_header_$ac_safe=yes"
21457 else
21458   echo "$ac_err" >&5
21459   echo "configure: failed program was:" >&5
21460   cat conftest.$ac_ext >&5
21461   rm -rf conftest*
21462   eval "ac_cv_header_$ac_safe=no"
21463 fi
21464 rm -f conftest*
21465 fi
21466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21467   echo "$ac_t""yes" 1>&6
21468   
21469     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
21470 echo "configure:21471: checking for LC_MESSAGES" >&5
21471 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
21472   echo $ac_n "(cached) $ac_c" 1>&6
21473 else
21474   cat > conftest.$ac_ext <<EOF
21475 #line 21476 "configure"
21476 #include "confdefs.h"
21477 #include <locale.h>
21478 int main() {
21479 return LC_MESSAGES
21480 ; return 0; }
21481 EOF
21482 if { (eval echo configure:21483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21483   rm -rf conftest*
21484   ac_cv_val_LC_MESSAGES=yes
21485 else
21486   echo "configure: failed program was:" >&5
21487   cat conftest.$ac_ext >&5
21488   rm -rf conftest*
21489   ac_cv_val_LC_MESSAGES=no
21490 fi
21491 rm -f conftest*
21492 fi
21493
21494 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
21495     if test $ac_cv_val_LC_MESSAGES = yes; then
21496       cat >> confdefs.h <<\EOF
21497 #define HAVE_LC_MESSAGES 1
21498 EOF
21499
21500     fi
21501   
21502 else
21503   echo "$ac_t""no" 1>&6
21504 fi
21505
21506
21507
21508   cat > conftest.$ac_ext <<EOF
21509 #line 21510 "configure"
21510 #include "confdefs.h"
21511
21512   #include <setjmp.h>
21513   
21514 int main() {
21515 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21516 ; return 0; }
21517 EOF
21518 if { (eval echo configure:21519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21519   rm -rf conftest*
21520   cat >> confdefs.h <<\EOF
21521 #define HAVE_SIGSETJMP 1
21522 EOF
21523
21524   
21525 else
21526   echo "configure: failed program was:" >&5
21527   cat conftest.$ac_ext >&5
21528 fi
21529 rm -f conftest*
21530
21531   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
21532 do
21533 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21534 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21535 echo "configure:21536: checking for $ac_hdr" >&5
21536 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21537   echo $ac_n "(cached) $ac_c" 1>&6
21538 else
21539   cat > conftest.$ac_ext <<EOF
21540 #line 21541 "configure"
21541 #include "confdefs.h"
21542 #include <$ac_hdr>
21543 EOF
21544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21545 { (eval echo configure:21546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21547 if test -z "$ac_err"; then
21548   rm -rf conftest*
21549   eval "ac_cv_header_$ac_safe=yes"
21550 else
21551   echo "$ac_err" >&5
21552   echo "configure: failed program was:" >&5
21553   cat conftest.$ac_ext >&5
21554   rm -rf conftest*
21555   eval "ac_cv_header_$ac_safe=no"
21556 fi
21557 rm -f conftest*
21558 fi
21559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21560   echo "$ac_t""yes" 1>&6
21561     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21562   cat >> confdefs.h <<EOF
21563 #define $ac_tr_hdr 1
21564 EOF
21565  
21566 else
21567   echo "$ac_t""no" 1>&6
21568 fi
21569 done
21570
21571 for ac_func in getpagesize
21572 do
21573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21574 echo "configure:21575: checking for $ac_func" >&5
21575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21576   echo $ac_n "(cached) $ac_c" 1>&6
21577 else
21578   cat > conftest.$ac_ext <<EOF
21579 #line 21580 "configure"
21580 #include "confdefs.h"
21581 /* System header to define __stub macros and hopefully few prototypes,
21582     which can conflict with char $ac_func(); below.  */
21583 #include <assert.h>
21584 /* Override any gcc2 internal prototype to avoid an error.  */
21585 /* We use char because int might match the return type of a gcc2
21586     builtin and then its argument prototype would still apply.  */
21587 char $ac_func();
21588
21589 int main() {
21590
21591 /* The GNU C library defines this for functions which it implements
21592     to always fail with ENOSYS.  Some functions are actually named
21593     something starting with __ and the normal name is an alias.  */
21594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21595 choke me
21596 #else
21597 $ac_func();
21598 #endif
21599
21600 ; return 0; }
21601 EOF
21602 if { (eval echo configure:21603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21603   rm -rf conftest*
21604   eval "ac_cv_func_$ac_func=yes"
21605 else
21606   echo "configure: failed program was:" >&5
21607   cat conftest.$ac_ext >&5
21608   rm -rf conftest*
21609   eval "ac_cv_func_$ac_func=no"
21610 fi
21611 rm -f conftest*
21612 fi
21613
21614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21615   echo "$ac_t""yes" 1>&6
21616     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21617   cat >> confdefs.h <<EOF
21618 #define $ac_tr_func 1
21619 EOF
21620  
21621 else
21622   echo "$ac_t""no" 1>&6
21623 fi
21624 done
21625
21626 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
21627 echo "configure:21628: checking for working mmap" >&5
21628 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
21629   echo $ac_n "(cached) $ac_c" 1>&6
21630 else
21631   if test "$cross_compiling" = yes; then
21632   ac_cv_func_mmap_fixed_mapped=no
21633 else
21634   cat > conftest.$ac_ext <<EOF
21635 #line 21636 "configure"
21636 #include "confdefs.h"
21637
21638 /* Thanks to Mike Haertel and Jim Avera for this test.
21639    Here is a matrix of mmap possibilities:
21640         mmap private not fixed
21641         mmap private fixed at somewhere currently unmapped
21642         mmap private fixed at somewhere already mapped
21643         mmap shared not fixed
21644         mmap shared fixed at somewhere currently unmapped
21645         mmap shared fixed at somewhere already mapped
21646    For private mappings, we should verify that changes cannot be read()
21647    back from the file, nor mmap's back from the file at a different
21648    address.  (There have been systems where private was not correctly
21649    implemented like the infamous i386 svr4.0, and systems where the
21650    VM page cache was not coherent with the filesystem buffer cache
21651    like early versions of FreeBSD and possibly contemporary NetBSD.)
21652    For shared mappings, we should conversely verify that changes get
21653    propogated back to all the places they're supposed to be.
21654
21655    Grep wants private fixed already mapped.
21656    The main things grep needs to know about mmap are:
21657    * does it exist and is it safe to write into the mmap'd area
21658    * how to use it (BSD variants)  */
21659 #include <sys/types.h>
21660 #include <fcntl.h>
21661 #include <sys/mman.h>
21662
21663 #if HAVE_SYS_TYPES_H
21664 # include <sys/types.h>
21665 #endif
21666
21667 #if HAVE_STDLIB_H
21668 # include <stdlib.h>
21669 #endif
21670
21671 #if HAVE_SYS_STAT_H
21672 # include <sys/stat.h>
21673 #endif
21674
21675 #if HAVE_UNISTD_H
21676 # include <unistd.h>
21677 #endif
21678
21679 /* This mess was copied from the GNU getpagesize.h.  */
21680 #ifndef HAVE_GETPAGESIZE
21681
21682 /* Assume that all systems that can run configure have sys/param.h.  */
21683 # ifndef HAVE_SYS_PARAM_H
21684 #  define HAVE_SYS_PARAM_H 1
21685 # endif
21686
21687 # ifdef _SC_PAGESIZE
21688 #  define getpagesize() sysconf(_SC_PAGESIZE)
21689 # else /* no _SC_PAGESIZE */
21690 #  ifdef HAVE_SYS_PARAM_H
21691 #   include <sys/param.h>
21692 #   ifdef EXEC_PAGESIZE
21693 #    define getpagesize() EXEC_PAGESIZE
21694 #   else /* no EXEC_PAGESIZE */
21695 #    ifdef NBPG
21696 #     define getpagesize() NBPG * CLSIZE
21697 #     ifndef CLSIZE
21698 #      define CLSIZE 1
21699 #     endif /* no CLSIZE */
21700 #    else /* no NBPG */
21701 #     ifdef NBPC
21702 #      define getpagesize() NBPC
21703 #     else /* no NBPC */
21704 #      ifdef PAGESIZE
21705 #       define getpagesize() PAGESIZE
21706 #      endif /* PAGESIZE */
21707 #     endif /* no NBPC */
21708 #    endif /* no NBPG */
21709 #   endif /* no EXEC_PAGESIZE */
21710 #  else /* no HAVE_SYS_PARAM_H */
21711 #   define getpagesize() 8192   /* punt totally */
21712 #  endif /* no HAVE_SYS_PARAM_H */
21713 # endif /* no _SC_PAGESIZE */
21714
21715 #endif /* no HAVE_GETPAGESIZE */
21716
21717 #ifdef __cplusplus
21718 extern "C" { void *malloc(unsigned); }
21719 #else
21720 char *malloc();
21721 #endif
21722
21723 int
21724 main()
21725 {
21726         char *data, *data2, *data3;
21727         int i, pagesize;
21728         int fd;
21729
21730         pagesize = getpagesize();
21731
21732         /*
21733          * First, make a file with some known garbage in it.
21734          */
21735         data = malloc(pagesize);
21736         if (!data)
21737                 exit(1);
21738         for (i = 0; i < pagesize; ++i)
21739                 *(data + i) = rand();
21740         umask(0);
21741         fd = creat("conftestmmap", 0600);
21742         if (fd < 0)
21743                 exit(1);
21744         if (write(fd, data, pagesize) != pagesize)
21745                 exit(1);
21746         close(fd);
21747
21748         /*
21749          * Next, try to mmap the file at a fixed address which
21750          * already has something else allocated at it.  If we can,
21751          * also make sure that we see the same garbage.
21752          */
21753         fd = open("conftestmmap", O_RDWR);
21754         if (fd < 0)
21755                 exit(1);
21756         data2 = malloc(2 * pagesize);
21757         if (!data2)
21758                 exit(1);
21759         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21760         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
21761             MAP_PRIVATE | MAP_FIXED, fd, 0L))
21762                 exit(1);
21763         for (i = 0; i < pagesize; ++i)
21764                 if (*(data + i) != *(data2 + i))
21765                         exit(1);
21766
21767         /*
21768          * Finally, make sure that changes to the mapped area
21769          * do not percolate back to the file as seen by read().
21770          * (This is a bug on some variants of i386 svr4.0.)
21771          */
21772         for (i = 0; i < pagesize; ++i)
21773                 *(data2 + i) = *(data2 + i) + 1;
21774         data3 = malloc(pagesize);
21775         if (!data3)
21776                 exit(1);
21777         if (read(fd, data3, pagesize) != pagesize)
21778                 exit(1);
21779         for (i = 0; i < pagesize; ++i)
21780                 if (*(data + i) != *(data3 + i))
21781                         exit(1);
21782         close(fd);
21783         unlink("conftestmmap");
21784         exit(0);
21785 }
21786
21787 EOF
21788 if { (eval echo configure:21789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21789 then
21790   ac_cv_func_mmap_fixed_mapped=yes
21791 else
21792   echo "configure: failed program was:" >&5
21793   cat conftest.$ac_ext >&5
21794   rm -fr conftest*
21795   ac_cv_func_mmap_fixed_mapped=no
21796 fi
21797 rm -fr conftest*
21798 fi
21799
21800 fi
21801
21802 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
21803 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21804   cat >> confdefs.h <<\EOF
21805 #define HAVE_MMAP 1
21806 EOF
21807
21808 fi
21809
21810
21811   # Establish limits on memory usage during 'make check'
21812   
21813   
21814   setrlimit_have_headers=yes
21815   for ac_hdr in unistd.h sys/time.h sys/resource.h
21816 do
21817 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21819 echo "configure:21820: checking for $ac_hdr" >&5
21820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21821   echo $ac_n "(cached) $ac_c" 1>&6
21822 else
21823   cat > conftest.$ac_ext <<EOF
21824 #line 21825 "configure"
21825 #include "confdefs.h"
21826 #include <$ac_hdr>
21827 EOF
21828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21829 { (eval echo configure:21830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21831 if test -z "$ac_err"; then
21832   rm -rf conftest*
21833   eval "ac_cv_header_$ac_safe=yes"
21834 else
21835   echo "$ac_err" >&5
21836   echo "configure: failed program was:" >&5
21837   cat conftest.$ac_ext >&5
21838   rm -rf conftest*
21839   eval "ac_cv_header_$ac_safe=no"
21840 fi
21841 rm -f conftest*
21842 fi
21843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21844   echo "$ac_t""yes" 1>&6
21845     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21846   cat >> confdefs.h <<EOF
21847 #define $ac_tr_hdr 1
21848 EOF
21849  
21850 else
21851   echo "$ac_t""no" 1>&6
21852 setrlimit_have_headers=no
21853 fi
21854 done
21855
21856   # If don't have the headers, then we can't run the tests now, and we
21857   # won't be seeing any of these during testsuite compilation.
21858   if test $setrlimit_have_headers = yes; then
21859     # Can't do these in a loop, else the resulting syntax is wrong.
21860     
21861   cat > conftest.$ac_ext <<EOF
21862 #line 21863 "configure"
21863 #include "confdefs.h"
21864 #include <unistd.h>
21865                   #include <sys/time.h>
21866                   #include <sys/resource.h>
21867                  
21868 int main() {
21869  int f = RLIMIT_DATA ; 
21870 ; return 0; }
21871 EOF
21872 if { (eval echo configure:21873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21873   rm -rf conftest*
21874   glibcpp_mresult=1
21875 else
21876   echo "configure: failed program was:" >&5
21877   cat conftest.$ac_ext >&5
21878   rm -rf conftest*
21879   glibcpp_mresult=0
21880 fi
21881 rm -f conftest*
21882   cat >> confdefs.h <<EOF
21883 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
21884 EOF
21885
21886
21887     
21888   cat > conftest.$ac_ext <<EOF
21889 #line 21890 "configure"
21890 #include "confdefs.h"
21891 #include <unistd.h>
21892                   #include <sys/time.h>
21893                   #include <sys/resource.h>
21894                  
21895 int main() {
21896  int f = RLIMIT_RSS ; 
21897 ; return 0; }
21898 EOF
21899 if { (eval echo configure:21900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21900   rm -rf conftest*
21901   glibcpp_mresult=1
21902 else
21903   echo "configure: failed program was:" >&5
21904   cat conftest.$ac_ext >&5
21905   rm -rf conftest*
21906   glibcpp_mresult=0
21907 fi
21908 rm -f conftest*
21909   cat >> confdefs.h <<EOF
21910 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
21911 EOF
21912
21913
21914     
21915   cat > conftest.$ac_ext <<EOF
21916 #line 21917 "configure"
21917 #include "confdefs.h"
21918 #include <unistd.h>
21919                   #include <sys/time.h>
21920                   #include <sys/resource.h>
21921                  
21922 int main() {
21923  int f = RLIMIT_VMEM ; 
21924 ; return 0; }
21925 EOF
21926 if { (eval echo configure:21927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21927   rm -rf conftest*
21928   glibcpp_mresult=1
21929 else
21930   echo "configure: failed program was:" >&5
21931   cat conftest.$ac_ext >&5
21932   rm -rf conftest*
21933   glibcpp_mresult=0
21934 fi
21935 rm -f conftest*
21936   cat >> confdefs.h <<EOF
21937 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
21938 EOF
21939
21940
21941     
21942   cat > conftest.$ac_ext <<EOF
21943 #line 21944 "configure"
21944 #include "confdefs.h"
21945 #include <unistd.h>
21946                   #include <sys/time.h>
21947                   #include <sys/resource.h>
21948                  
21949 int main() {
21950  int f = RLIMIT_AS ; 
21951 ; return 0; }
21952 EOF
21953 if { (eval echo configure:21954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21954   rm -rf conftest*
21955   glibcpp_mresult=1
21956 else
21957   echo "configure: failed program was:" >&5
21958   cat conftest.$ac_ext >&5
21959   rm -rf conftest*
21960   glibcpp_mresult=0
21961 fi
21962 rm -f conftest*
21963   cat >> confdefs.h <<EOF
21964 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
21965 EOF
21966
21967
21968
21969     # Check for rlimit, setrlimit.
21970     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
21971   echo $ac_n "(cached) $ac_c" 1>&6
21972 else
21973   
21974       cat > conftest.$ac_ext <<EOF
21975 #line 21976 "configure"
21976 #include "confdefs.h"
21977 #include <unistd.h>
21978                   #include <sys/time.h>
21979                   #include <sys/resource.h>
21980                      
21981 int main() {
21982  struct rlimit r; setrlimit(0, &r);
21983 ; return 0; }
21984 EOF
21985 if { (eval echo configure:21986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21986   rm -rf conftest*
21987   ac_setrlimit=yes
21988 else
21989   echo "configure: failed program was:" >&5
21990   cat conftest.$ac_ext >&5
21991   rm -rf conftest*
21992   ac_setrlimit=no
21993 fi
21994 rm -f conftest*
21995     
21996 fi
21997
21998   fi
21999
22000   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
22001 echo "configure:22002: checking for testsuite memory limit support" >&5
22002   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
22003     ac_mem_limits=yes
22004     cat >> confdefs.h <<\EOF
22005 #define _GLIBCPP_MEM_LIMITS 1
22006 EOF
22007
22008   else
22009     ac_mem_limits=no
22010   fi
22011   echo "$ac_t""$ac_mem_limits" 1>&6
22012
22013
22014   # Look for setenv, so that extended locale tests can be performed.
22015   
22016   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
22017 echo "configure:22018: checking for setenv declaration" >&5
22018   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
22019     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
22020   echo $ac_n "(cached) $ac_c" 1>&6
22021 else
22022   
22023       
22024       ac_ext=C
22025 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22026 ac_cpp='$CXXCPP $CPPFLAGS'
22027 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22028 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22029 cross_compiling=$ac_cv_prog_cxx_cross
22030
22031       cat > conftest.$ac_ext <<EOF
22032 #line 22033 "configure"
22033 #include "confdefs.h"
22034 #include <stdlib.h>
22035 int main() {
22036  setenv(0, 0, 0);
22037 ; return 0; }
22038 EOF
22039 if { (eval echo configure:22040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22040   rm -rf conftest*
22041   glibcpp_cv_func_setenv_use=yes
22042 else
22043   echo "configure: failed program was:" >&5
22044   cat conftest.$ac_ext >&5
22045   rm -rf conftest*
22046   glibcpp_cv_func_setenv_use=no
22047 fi
22048 rm -f conftest*
22049       ac_ext=c
22050 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22051 ac_cpp='$CPP $CPPFLAGS'
22052 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22053 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22054 cross_compiling=$ac_cv_prog_cc_cross
22055
22056     
22057 fi
22058
22059   fi
22060   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
22061   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
22062     for ac_func in setenv
22063 do
22064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22065 echo "configure:22066: checking for $ac_func" >&5
22066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22067   echo $ac_n "(cached) $ac_c" 1>&6
22068 else
22069   cat > conftest.$ac_ext <<EOF
22070 #line 22071 "configure"
22071 #include "confdefs.h"
22072 /* System header to define __stub macros and hopefully few prototypes,
22073     which can conflict with char $ac_func(); below.  */
22074 #include <assert.h>
22075 /* Override any gcc2 internal prototype to avoid an error.  */
22076 /* We use char because int might match the return type of a gcc2
22077     builtin and then its argument prototype would still apply.  */
22078 char $ac_func();
22079
22080 int main() {
22081
22082 /* The GNU C library defines this for functions which it implements
22083     to always fail with ENOSYS.  Some functions are actually named
22084     something starting with __ and the normal name is an alias.  */
22085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22086 choke me
22087 #else
22088 $ac_func();
22089 #endif
22090
22091 ; return 0; }
22092 EOF
22093 if { (eval echo configure:22094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22094   rm -rf conftest*
22095   eval "ac_cv_func_$ac_func=yes"
22096 else
22097   echo "configure: failed program was:" >&5
22098   cat conftest.$ac_ext >&5
22099   rm -rf conftest*
22100   eval "ac_cv_func_$ac_func=no"
22101 fi
22102 rm -f conftest*
22103 fi
22104
22105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22106   echo "$ac_t""yes" 1>&6
22107     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22108   cat >> confdefs.h <<EOF
22109 #define $ac_tr_func 1
22110 EOF
22111  
22112 else
22113   echo "$ac_t""no" 1>&6
22114 fi
22115 done
22116     
22117   fi
22118
22119
22120 fi
22121
22122 # This depends on the possibly-skipped linker test above.
22123 # Check whether --enable-symvers or --disable-symvers was given.
22124 if test "${enable_symvers+set}" = set; then
22125   enableval="$enable_symvers"
22126   case "$enableval" in
22127  yes) enable_symvers=yes ;;
22128  no)  enable_symvers=no ;;
22129  # other names here, just as sanity checks
22130  #gnu|sun|etcetera) enable_symvers=$enableval ;;
22131  gnu) enable_symvers=$enableval ;;
22132  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
22133  esac
22134 else
22135   enable_symvers=yes
22136 fi
22137
22138 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
22139 # don't know enough about $LD to do tricks... 
22140 if test x$enable_shared = xno || 
22141         test "x$LD" = x || 
22142         test x$glibcpp_gnu_ld_version = x; then
22143   enable_symvers=no
22144 fi
22145
22146 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
22147 if test $enable_symvers != no; then
22148   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
22149 echo "configure:22150: checking for shared libgcc" >&5
22150   ac_save_CFLAGS="$CFLAGS"
22151   CFLAGS=' -lgcc_s'
22152   cat > conftest.$ac_ext <<EOF
22153 #line 22154 "configure"
22154 #include "confdefs.h"
22155
22156 int main() {
22157 return 0
22158 ; return 0; }
22159 EOF
22160 if { (eval echo configure:22161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22161   rm -rf conftest*
22162   glibcpp_shared_libgcc=yes
22163 else
22164   echo "configure: failed program was:" >&5
22165   cat conftest.$ac_ext >&5
22166   rm -rf conftest*
22167   glibcpp_shared_libgcc=no
22168 fi
22169 rm -f conftest*
22170   CFLAGS="$ac_save_CFLAGS"
22171   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
22172 fi
22173
22174 # For GNU ld, we need at least this version.  It's 2.12 in the same format
22175 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
22176 glibcpp_min_gnu_ld_version=21200
22177
22178 # Check to see if unspecified "yes" value can win, given results
22179 # above.  
22180 if test $enable_symvers = yes ; then
22181   if test $with_gnu_ld = yes &&
22182     test $glibcpp_shared_libgcc = yes ;
22183   then
22184     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
22185         enable_symvers=gnu
22186     else
22187       ac_test_CFLAGS="${CFLAGS+set}"
22188       ac_save_CFLAGS="$CFLAGS"
22189       CFLAGS='-shared -Wl,--version-script,conftest.map'
22190       enable_symvers=no
22191       
22192       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
22193       
22194       cat > conftest.$ac_ext <<EOF
22195 #line 22196 "configure"
22196 #include "confdefs.h"
22197 int foo;
22198 int main() {
22199
22200 ; return 0; }
22201 EOF
22202 if { (eval echo configure:22203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22203   rm -rf conftest*
22204   enable_symvers=gnu
22205 else
22206   echo "configure: failed program was:" >&5
22207   cat conftest.$ac_ext >&5
22208 fi
22209 rm -f conftest*
22210       if test "$ac_test_CFLAGS" = set; then
22211         CFLAGS="$ac_save_CFLAGS"
22212       else
22213         # this is the suspicious part
22214         CFLAGS=''
22215       fi
22216       rm -f conftest.map
22217     fi
22218   else
22219     # just fail for now
22220     enable_symvers=no
22221   fi
22222 fi
22223
22224 case $enable_symvers in
22225   no)
22226       LINKER_MAP=config/linker-map.dummy
22227       ;;
22228   gnu)
22229       LINKER_MAP=config/linker-map.gnu
22230       ;;
22231 esac
22232
22233
22234
22235
22236 if test $enable_symvers != no; then
22237   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
22238   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
22239 else
22240   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
22241   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
22242 fi
22243 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
22244 echo "configure:22245: checking versioning on shared library symbols" >&5
22245 echo "$ac_t""$enable_symvers" 1>&6
22246
22247
22248 # Propagate the target-specific source directories through the build chain.
22249 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH and
22250 # CPULIMITSH [might] use it, and they only get used here.)
22251 OS_INC_SRCDIR=config/${os_include_dir}
22252 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
22253 CPU_LIMITS_INC_SRCDIR=config/${CPULIMITSH}
22254
22255
22256
22257
22258 # Set up cross-compile flags
22259   
22260
22261 if test "$CANADIAN" = yes; then
22262   CANADIAN_TRUE=
22263   CANADIAN_FALSE='#'
22264 else
22265   CANADIAN_TRUE='#'
22266   CANADIAN_FALSE=
22267 fi
22268  
22269 cat > confcache <<\EOF
22270 # This file is a shell script that caches the results of configure
22271 # tests run on this system so they can be shared between configure
22272 # scripts and configure runs.  It is not useful on other systems.
22273 # If it contains results you don't want to keep, you may remove or edit it.
22274 #
22275 # By default, configure uses ./config.cache as the cache file,
22276 # creating it if it does not exist already.  You can give configure
22277 # the --cache-file=FILE option to use a different cache file; that is
22278 # what configure does when it calls configure scripts in
22279 # subdirectories, so they share the cache.
22280 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22281 # config.status only pays attention to the cache file if you give it the
22282 # --recheck option to rerun configure.
22283 #
22284 EOF
22285 # The following way of writing the cache mishandles newlines in values,
22286 # but we know of no workaround that is simple, portable, and efficient.
22287 # So, don't put newlines in cache variables' values.
22288 # Ultrix sh set writes to stderr and can't be redirected directly,
22289 # and sets the high bit in the cache file unless we assign to the vars.
22290 (set) 2>&1 |
22291   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22292   *ac_space=\ *)
22293     # `set' does not quote correctly, so add quotes (double-quote substitution
22294     # turns \\\\ into \\, and sed turns \\ into \).
22295     sed -n \
22296       -e "s/'/'\\\\''/g" \
22297       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22298     ;;
22299   *)
22300     # `set' quotes correctly as required by POSIX, so do not add quotes.
22301     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22302     ;;
22303   esac >> confcache
22304 if cmp -s $cache_file confcache; then
22305   :
22306 else
22307   if test -w $cache_file; then
22308     echo "updating cache $cache_file"
22309     cat confcache > $cache_file
22310   else
22311     echo "not updating unwritable cache $cache_file"
22312   fi
22313 fi
22314 rm -f confcache
22315
22316
22317 if test "${multilib}" = "yes"; then
22318   multilib_arg="--enable-multilib"
22319 else
22320   multilib_arg=
22321 fi
22322
22323 # Needed so that g++ can find the correct include subdir automatically.
22324 INTERFACE=v3
22325
22326 # Export all the install information
22327
22328 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
22329 # exported correctly in GLIBCPP_CONFIGURE.
22330 glibcpp_toolexecdir=no
22331 glibcpp_toolexeclibdir=no
22332 glibcpp_prefixdir=${prefix}
22333
22334 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
22335 echo "configure:22336: checking for interface version number" >&5
22336 libstdcxx_interface=$INTERFACE
22337 echo "$ac_t""$libstdcxx_interface" 1>&6
22338
22339 # Process the option --with-gxx-include-dir=<path to include-files directory>
22340 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
22341 echo "configure:22342: checking for --with-gxx-include-dir" >&5
22342 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
22343 if test "${with_gxx_include_dir+set}" = set; then
22344   withval="$with_gxx_include_dir"
22345   case "${withval}" in
22346   yes)
22347     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
22348     gxx_include_dir=no
22349     ;;
22350   no)
22351     gxx_include_dir=no
22352     ;;
22353   *)
22354     gxx_include_dir=${withval}
22355     ;;
22356 esac
22357 else
22358   gxx_include_dir=no
22359 fi
22360
22361 echo "$ac_t""$gxx_include_dir" 1>&6
22362
22363 # Process the option "--enable-version-specific-runtime-libs"
22364 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
22365 echo "configure:22366: checking for --enable-version-specific-runtime-libs" >&5
22366 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
22367 if test "${enable_version_specific_runtime_libs+set}" = set; then
22368   enableval="$enable_version_specific_runtime_libs"
22369   case "$enableval" in
22370  yes) version_specific_libs=yes ;;
22371  no)  version_specific_libs=no ;;
22372  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
22373  esac
22374 else
22375   version_specific_libs=no
22376 fi
22377 # Option set, now we can test it.
22378 echo "$ac_t""$version_specific_libs" 1>&6
22379
22380 if test $version_specific_libs = yes; then
22381   # Need the gcc compiler version to know where to install libraries
22382   # and header files if --enable-version-specific-runtime-libs option
22383   # is selected.
22384     gcc_version_trigger=${srcdir}/../gcc/version.c
22385   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
22386   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
22387   if test x"$gxx_include_dir" = x"no"; then
22388     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
22389   fi
22390   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22391   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
22392   fi
22393
22394 # Default case for install directory for include files.
22395 if test $version_specific_libs = no &&
22396    test $gxx_include_dir = no; then
22397   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
22398 fi
22399
22400 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
22401 # Install a library built with a cross compiler in tooldir, not libdir.
22402 if test x"$glibcpp_toolexecdir" = x"no"; then 
22403   if test -n "$with_cross_host" &&
22404      test x"$with_cross_host" != x"no"; then
22405     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
22406     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
22407   else
22408     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22409     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
22410   fi
22411 fi
22412
22413 echo $ac_n "checking for install location""... $ac_c" 1>&6
22414 echo "configure:22415: checking for install location" >&5
22415 echo "$ac_t""$gxx_include_dir" 1>&6
22416
22417
22418
22419
22420
22421
22422
22423 # Export all the include and flag information to makefiles.
22424
22425   # Root level of the build directory include sources.
22426   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
22427
22428   # Passed down for canadian crosses.
22429   if test x"$CANADIAN" = xyes; then
22430     TOPLEVEL_INCLUDES='-I$(includedir)'
22431   fi
22432
22433   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
22434
22435   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
22436
22437   if test x"$need_libio" = xyes; then
22438     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
22439     
22440   fi
22441
22442   # Now, export this to all the little Makefiles....
22443   
22444   
22445   
22446   
22447
22448
22449   # Optimization flags that are probably a good idea for thrill-seekers. Just
22450   # uncomment the lines below and make, everything else is ready to go... 
22451   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
22452   OPTIMIZE_CXXFLAGS=
22453   
22454
22455   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
22456   
22457
22458
22459 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
22460    grep "enable shared" > /dev/null; then
22461   LIBSUPCXX_PICFLAGS=-prefer-pic
22462 else
22463   LIBSUPCXX_PICFLAGS=
22464 fi
22465
22466
22467 # Generate the various Makefiles, include files, and scripts.
22468 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
22469 # and libsupc++/Makefile.am so that multilib installs will end up
22470 # installed in the correct place. To work around this not being passed
22471 # down from config-ml.in -> top_srcdir/Makefile.am ->
22472 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
22473 trap '' 1 2 15
22474 cat > confcache <<\EOF
22475 # This file is a shell script that caches the results of configure
22476 # tests run on this system so they can be shared between configure
22477 # scripts and configure runs.  It is not useful on other systems.
22478 # If it contains results you don't want to keep, you may remove or edit it.
22479 #
22480 # By default, configure uses ./config.cache as the cache file,
22481 # creating it if it does not exist already.  You can give configure
22482 # the --cache-file=FILE option to use a different cache file; that is
22483 # what configure does when it calls configure scripts in
22484 # subdirectories, so they share the cache.
22485 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22486 # config.status only pays attention to the cache file if you give it the
22487 # --recheck option to rerun configure.
22488 #
22489 EOF
22490 # The following way of writing the cache mishandles newlines in values,
22491 # but we know of no workaround that is simple, portable, and efficient.
22492 # So, don't put newlines in cache variables' values.
22493 # Ultrix sh set writes to stderr and can't be redirected directly,
22494 # and sets the high bit in the cache file unless we assign to the vars.
22495 (set) 2>&1 |
22496   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22497   *ac_space=\ *)
22498     # `set' does not quote correctly, so add quotes (double-quote substitution
22499     # turns \\\\ into \\, and sed turns \\ into \).
22500     sed -n \
22501       -e "s/'/'\\\\''/g" \
22502       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22503     ;;
22504   *)
22505     # `set' quotes correctly as required by POSIX, so do not add quotes.
22506     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22507     ;;
22508   esac >> confcache
22509 if cmp -s $cache_file confcache; then
22510   :
22511 else
22512   if test -w $cache_file; then
22513     echo "updating cache $cache_file"
22514     cat confcache > $cache_file
22515   else
22516     echo "not updating unwritable cache $cache_file"
22517   fi
22518 fi
22519 rm -f confcache
22520
22521 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22522
22523 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22524 # Let make expand exec_prefix.
22525 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22526
22527 # Any assignment to VPATH causes Sun make to only execute
22528 # the first set of double-colon rules, so remove it if not needed.
22529 # If there is a colon in the path, we need to keep it.
22530 if test "x$srcdir" = x.; then
22531   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
22532 fi
22533
22534 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22535
22536 DEFS=-DHAVE_CONFIG_H
22537
22538 # Without the "./", some shells look in PATH for config.status.
22539 : ${CONFIG_STATUS=./config.status}
22540
22541 echo creating $CONFIG_STATUS
22542 rm -f $CONFIG_STATUS
22543 cat > $CONFIG_STATUS <<EOF
22544 #! /bin/sh
22545 # Generated automatically by configure.
22546 # Run this file to recreate the current configuration.
22547 # This directory was configured as follows,
22548 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22549 #
22550 # $0 $ac_configure_args
22551 #
22552 # Compiler output produced by configure, useful for debugging
22553 # configure, is in ./config.log if it exists.
22554
22555 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22556 for ac_option
22557 do
22558   case "\$ac_option" in
22559   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22560     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22561     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22562   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22563     echo "$CONFIG_STATUS generated by autoconf version 2.13"
22564     exit 0 ;;
22565   -help | --help | --hel | --he | --h)
22566     echo "\$ac_cs_usage"; exit 0 ;;
22567   *) echo "\$ac_cs_usage"; exit 1 ;;
22568   esac
22569 done
22570
22571 ac_given_srcdir=$srcdir
22572 ac_given_INSTALL="$INSTALL"
22573
22574 trap 'rm -fr `echo "Makefile \
22575     include/Makefile src/Makefile \
22576     libmath/Makefile libio/Makefile libsupc++/Makefile \
22577     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22578 EOF
22579 cat >> $CONFIG_STATUS <<EOF
22580
22581 # Protect against being on the right side of a sed subst in config.status.
22582 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22583  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22584 $ac_vpsub
22585 $extrasub
22586 s%@SHELL@%$SHELL%g
22587 s%@CFLAGS@%$CFLAGS%g
22588 s%@CPPFLAGS@%$CPPFLAGS%g
22589 s%@CXXFLAGS@%$CXXFLAGS%g
22590 s%@FFLAGS@%$FFLAGS%g
22591 s%@DEFS@%$DEFS%g
22592 s%@LDFLAGS@%$LDFLAGS%g
22593 s%@LIBS@%$LIBS%g
22594 s%@exec_prefix@%$exec_prefix%g
22595 s%@prefix@%$prefix%g
22596 s%@program_transform_name@%$program_transform_name%g
22597 s%@bindir@%$bindir%g
22598 s%@sbindir@%$sbindir%g
22599 s%@libexecdir@%$libexecdir%g
22600 s%@datadir@%$datadir%g
22601 s%@sysconfdir@%$sysconfdir%g
22602 s%@sharedstatedir@%$sharedstatedir%g
22603 s%@localstatedir@%$localstatedir%g
22604 s%@libdir@%$libdir%g
22605 s%@includedir@%$includedir%g
22606 s%@oldincludedir@%$oldincludedir%g
22607 s%@infodir@%$infodir%g
22608 s%@mandir@%$mandir%g
22609 s%@PACKAGE@%$PACKAGE%g
22610 s%@release_VERSION@%$release_VERSION%g
22611 s%@libtool_VERSION@%$libtool_VERSION%g
22612 s%@toplevel_srcdir@%$toplevel_srcdir%g
22613 s%@host@%$host%g
22614 s%@host_alias@%$host_alias%g
22615 s%@host_cpu@%$host_cpu%g
22616 s%@host_vendor@%$host_vendor%g
22617 s%@host_os@%$host_os%g
22618 s%@target@%$target%g
22619 s%@target_alias@%$target_alias%g
22620 s%@target_cpu@%$target_cpu%g
22621 s%@target_vendor@%$target_vendor%g
22622 s%@target_os@%$target_os%g
22623 s%@build@%$build%g
22624 s%@build_alias@%$build_alias%g
22625 s%@build_cpu@%$build_cpu%g
22626 s%@build_vendor@%$build_vendor%g
22627 s%@build_os@%$build_os%g
22628 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22629 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22630 s%@INSTALL_DATA@%$INSTALL_DATA%g
22631 s%@VERSION@%$VERSION%g
22632 s%@ACLOCAL@%$ACLOCAL%g
22633 s%@AUTOCONF@%$AUTOCONF%g
22634 s%@AUTOMAKE@%$AUTOMAKE%g
22635 s%@AUTOHEADER@%$AUTOHEADER%g
22636 s%@MAKEINFO@%$MAKEINFO%g
22637 s%@SET_MAKE@%$SET_MAKE%g
22638 s%@glibcpp_builddir@%$glibcpp_builddir%g
22639 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
22640 s%@AWK@%$AWK%g
22641 s%@LN_S@%$LN_S%g
22642 s%@glibcpp_basedir@%$glibcpp_basedir%g
22643 s%@CC@%$CC%g
22644 s%@glibcpp_CXX@%$glibcpp_CXX%g
22645 s%@AS@%$AS%g
22646 s%@AR@%$AR%g
22647 s%@RANLIB@%$RANLIB%g
22648 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
22649 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
22650 s%@MAINT@%$MAINT%g
22651 s%@EXEEXT@%$EXEEXT%g
22652 s%@OBJEXT@%$OBJEXT%g
22653 s%@STRIP@%$STRIP%g
22654 s%@LIBTOOL@%$LIBTOOL%g
22655 s%@CXXCPP@%$CXXCPP%g
22656 s%@enable_shared@%$enable_shared%g
22657 s%@enable_static@%$enable_static%g
22658 s%@ifGNUmake@%$ifGNUmake%g
22659 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
22660 s%@CPP@%$CPP%g
22661 s%@CSTDIO_H@%$CSTDIO_H%g
22662 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
22663 s%@CCODECVT_C@%$CCODECVT_C%g
22664 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
22665 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
22666 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
22667 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
22668 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
22669 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
22670 s%@libio_la@%$libio_la%g
22671 s%@check_msgfmt@%$check_msgfmt%g
22672 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
22673 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
22674 s%@glibcpp_localedir@%$glibcpp_localedir%g
22675 s%@USE_NLS@%$USE_NLS%g
22676 s%@CLOCALE_H@%$CLOCALE_H%g
22677 s%@CCODECVT_H@%$CCODECVT_H%g
22678 s%@CMESSAGES_H@%$CMESSAGES_H%g
22679 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
22680 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
22681 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
22682 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
22683 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
22684 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
22685 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
22686 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
22687 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
22688 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
22689 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
22690 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
22691 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
22692 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
22693 s%@WERROR@%$WERROR%g
22694 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
22695 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
22696 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
22697 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
22698 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
22699 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
22700 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
22701 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
22702 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
22703 s%@gxx_include_dir@%$gxx_include_dir%g
22704 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
22705 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
22706 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
22707 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
22708 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
22709 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
22710 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
22711 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
22712 s%@WARN_FLAGS@%$WARN_FLAGS%g
22713 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
22714
22715 CEOF
22716 EOF
22717
22718 cat >> $CONFIG_STATUS <<\EOF
22719
22720 # Split the substitutions into bite-sized pieces for seds with
22721 # small command number limits, like on Digital OSF/1 and HP-UX.
22722 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22723 ac_file=1 # Number of current file.
22724 ac_beg=1 # First line for current file.
22725 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22726 ac_more_lines=:
22727 ac_sed_cmds=""
22728 while $ac_more_lines; do
22729   if test $ac_beg -gt 1; then
22730     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22731   else
22732     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22733   fi
22734   if test ! -s conftest.s$ac_file; then
22735     ac_more_lines=false
22736     rm -f conftest.s$ac_file
22737   else
22738     if test -z "$ac_sed_cmds"; then
22739       ac_sed_cmds="sed -f conftest.s$ac_file"
22740     else
22741       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22742     fi
22743     ac_file=`expr $ac_file + 1`
22744     ac_beg=$ac_end
22745     ac_end=`expr $ac_end + $ac_max_sed_cmds`
22746   fi
22747 done
22748 if test -z "$ac_sed_cmds"; then
22749   ac_sed_cmds=cat
22750 fi
22751 EOF
22752
22753 cat >> $CONFIG_STATUS <<EOF
22754
22755 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
22756     include/Makefile src/Makefile \
22757     libmath/Makefile libio/Makefile libsupc++/Makefile \
22758     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
22759 EOF
22760 cat >> $CONFIG_STATUS <<\EOF
22761 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22762   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22763   case "$ac_file" in
22764   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22765        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22766   *) ac_file_in="${ac_file}.in" ;;
22767   esac
22768
22769   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22770
22771   # Remove last slash and all that follows it.  Not all systems have dirname.
22772   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22773   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22774     # The file is in a subdirectory.
22775     test ! -d "$ac_dir" && mkdir "$ac_dir"
22776     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22777     # A "../" for each directory in $ac_dir_suffix.
22778     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22779   else
22780     ac_dir_suffix= ac_dots=
22781   fi
22782
22783   case "$ac_given_srcdir" in
22784   .)  srcdir=.
22785       if test -z "$ac_dots"; then top_srcdir=.
22786       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22787   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22788   *) # Relative path.
22789     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22790     top_srcdir="$ac_dots$ac_given_srcdir" ;;
22791   esac
22792
22793   case "$ac_given_INSTALL" in
22794   [/$]*) INSTALL="$ac_given_INSTALL" ;;
22795   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22796   esac
22797
22798   echo creating "$ac_file"
22799   rm -f "$ac_file"
22800   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22801   case "$ac_file" in
22802   *Makefile*) ac_comsub="1i\\
22803 # $configure_input" ;;
22804   *) ac_comsub= ;;
22805   esac
22806
22807   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22808   sed -e "$ac_comsub
22809 s%@configure_input@%$configure_input%g
22810 s%@srcdir@%$srcdir%g
22811 s%@top_srcdir@%$top_srcdir%g
22812 s%@INSTALL@%$INSTALL%g
22813 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22814 fi; done
22815 rm -f conftest.s*
22816
22817 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22818 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22819 #
22820 # ac_d sets the value in "#define NAME VALUE" lines.
22821 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
22822 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
22823 ac_dC='\3'
22824 ac_dD='%g'
22825 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22826 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22827 ac_uB='\([      ]\)%\1#\2define\3'
22828 ac_uC=' '
22829 ac_uD='\4%g'
22830 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22831 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22832 ac_eB='$%\1#\2define\3'
22833 ac_eC=' '
22834 ac_eD='%g'
22835
22836 if test "${CONFIG_HEADERS+set}" != set; then
22837 EOF
22838 cat >> $CONFIG_STATUS <<EOF
22839   CONFIG_HEADERS="config.h"
22840 EOF
22841 cat >> $CONFIG_STATUS <<\EOF
22842 fi
22843 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22844   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22845   case "$ac_file" in
22846   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22847        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22848   *) ac_file_in="${ac_file}.in" ;;
22849   esac
22850
22851   echo creating $ac_file
22852
22853   rm -f conftest.frag conftest.in conftest.out
22854   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22855   cat $ac_file_inputs > conftest.in
22856
22857 EOF
22858
22859 # Transform confdefs.h into a sed script conftest.vals that substitutes
22860 # the proper values into config.h.in to produce config.h.  And first:
22861 # Protect against being on the right side of a sed subst in config.status.
22862 # Protect against being in an unquoted here document in config.status.
22863 rm -f conftest.vals
22864 cat > conftest.hdr <<\EOF
22865 s/[\\&%]/\\&/g
22866 s%[\\$`]%\\&%g
22867 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22868 s%ac_d%ac_u%gp
22869 s%ac_u%ac_e%gp
22870 EOF
22871 sed -n -f conftest.hdr confdefs.h > conftest.vals
22872 rm -f conftest.hdr
22873
22874 # This sed command replaces #undef with comments.  This is necessary, for
22875 # example, in the case of _POSIX_SOURCE, which is predefined and required
22876 # on some systems where configure will not decide to define it.
22877 cat >> conftest.vals <<\EOF
22878 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22879 EOF
22880
22881 # Break up conftest.vals because some shells have a limit on
22882 # the size of here documents, and old seds have small limits too.
22883
22884 rm -f conftest.tail
22885 while :
22886 do
22887   ac_lines=`grep -c . conftest.vals`
22888   # grep -c gives empty output for an empty file on some AIX systems.
22889   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22890   # Write a limited-size here document to conftest.frag.
22891   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22892   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22893   echo 'CEOF
22894   sed -f conftest.frag conftest.in > conftest.out
22895   rm -f conftest.in
22896   mv conftest.out conftest.in
22897 ' >> $CONFIG_STATUS
22898   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22899   rm -f conftest.vals
22900   mv conftest.tail conftest.vals
22901 done
22902 rm -f conftest.vals
22903
22904 cat >> $CONFIG_STATUS <<\EOF
22905   rm -f conftest.frag conftest.h
22906   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
22907   cat conftest.in >> conftest.h
22908   rm -f conftest.in
22909   if cmp -s $ac_file conftest.h 2>/dev/null; then
22910     echo "$ac_file is unchanged"
22911     rm -f conftest.h
22912   else
22913     # Remove last slash and all that follows it.  Not all systems have dirname.
22914       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22915       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22916       # The file is in a subdirectory.
22917       test ! -d "$ac_dir" && mkdir "$ac_dir"
22918     fi
22919     rm -f $ac_file
22920     mv conftest.h $ac_file
22921   fi
22922 fi; done
22923
22924 EOF
22925
22926 cat >> $CONFIG_STATUS <<EOF
22927 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
22928 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"
22929 EOF
22930
22931 cat >> $CONFIG_STATUS <<\EOF
22932 srcdir=$ac_given_srcdir
22933 while test -n "$ac_sources"; do
22934   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22935   set $ac_sources; ac_source=$1; shift; ac_sources=$*
22936
22937   echo "linking $srcdir/$ac_source to $ac_dest"
22938
22939   if test ! -r $srcdir/$ac_source; then
22940     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
22941   fi
22942   rm -f $ac_dest
22943
22944   # Make relative symlinks.
22945   # Remove last slash and all that follows it.  Not all systems have dirname.
22946   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
22947   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
22948     # The dest file is in a subdirectory.
22949     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
22950     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
22951     # A "../" for each directory in $ac_dest_dir_suffix.
22952     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
22953   else
22954     ac_dest_dir_suffix= ac_dots=
22955   fi
22956
22957   case "$srcdir" in
22958   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
22959   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
22960   esac
22961
22962   # Make a symlink if possible; otherwise try a hard link.
22963   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22964     ln $srcdir/$ac_source $ac_dest; then :
22965   else
22966     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
22967   fi
22968 done
22969 EOF
22970 cat >> $CONFIG_STATUS <<EOF
22971
22972 srcdir=${srcdir}
22973 host=${host}
22974 target=${target}
22975 with_multisubdir=${with_multisubdir}
22976 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22977 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22978 glibcpp_basedir=${glibcpp_basedir}
22979 CC="${CC}"
22980 CXX="${CXX}"
22981
22982 EOF
22983 cat >> $CONFIG_STATUS <<\EOF
22984 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
22985 if test -n "$CONFIG_FILES"; then
22986   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
22987   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
22988   grep '^MULTISUBDIR =' Makefile >> src/Makefile
22989   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
22990 fi
22991 chmod +x mkcheck
22992 chmod +x testsuite_flags
22993
22994 exit 0
22995 EOF
22996 chmod +x $CONFIG_STATUS
22997 rm -fr confdefs* $ac_clean_files
22998 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22999
23000
23001
23002 # Sanity checking & User-visible messages.
23003 # Checks down here, otherwise they get scrolled off before
23004 # the user will notice.
23005
23006 # Trying to get more people to read documentation.  Possibly remove
23007 # check and warn all the time. There is no "informational" AC_MSG_
23008 # macro, so these are going to be printed even when --quiet/--silent
23009 # is given.
23010 if test ! -f stamp-sanity-warned; then
23011   touch stamp-sanity-warned
23012   echo ""
23013   echo "Please make certain that you read the installation information here:"
23014   echo "  faster => ${srcdir}/docs/html/install.html"
23015   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
23016   echo ""
23017   echo "and the configuration information here:"
23018   echo "  faster => ${srcdir}/docs/html/configopts.html"
23019   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
23020   echo ""
23021   echo "before proceeding with ${_cv_gnu_make_command}."
23022   echo ""
23023 fi