OSDN Git Service

* config/locale/generic/c++locale_internal.h: New header.
[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 libtool versioning info, format is CURRENT:REVISION:AGE
591 libtool_VERSION=5:1:0
592
593
594
595       # Check whether --enable-multilib or --disable-multilib was given.
596 if test "${enable_multilib+set}" = set; then
597   enableval="$enable_multilib"
598   case "${enableval}" in
599     yes) multilib=yes ;;
600     no)  multilib=no ;;
601     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
602    esac
603 else
604   multilib=yes
605 fi
606
607   # When building with srcdir == objdir, links to the source files will
608   # be created in directories within the target_subdir.  We have to
609   # adjust toplevel_srcdir accordingly, so that configure finds
610   # install-sh and other auxiliary files that live in the top-level
611   # source directory.
612   if test "${srcdir}" = "."; then
613     if test -z "${with_target_subdir}"; then
614       toprel=".."
615     else
616       if test "${with_target_subdir}" != "."; then
617         toprel="${with_multisrctop}../.."
618       else
619         toprel="${with_multisrctop}.."
620       fi
621     fi
622   else
623     toprel=".."
624   fi
625   ac_aux_dir=
626 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
627   if test -f $ac_dir/install-sh; then
628     ac_aux_dir=$ac_dir
629     ac_install_sh="$ac_aux_dir/install-sh -c"
630     break
631   elif test -f $ac_dir/install.sh; then
632     ac_aux_dir=$ac_dir
633     ac_install_sh="$ac_aux_dir/install.sh -c"
634     break
635   fi
636 done
637 if test -z "$ac_aux_dir"; then
638   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
639 fi
640 ac_config_guess=$ac_aux_dir/config.guess
641 ac_config_sub=$ac_aux_dir/config.sub
642 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
643
644   toplevel_srcdir=\${top_srcdir}/$toprel
645   
646
647
648 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
649 #
650 # You will slowly go insane if you do not grok the following fact:  when
651 # building v3 as part of the compiler, the top-level /target/ becomes the
652 # library's /host/.  `configure' then causes --target to default to --host,
653 # exactly like any other package using autoconf.  Therefore, 'target' and
654 # 'host' will always be the same.  This makes sense both for native and
655 # cross compilers, just think about it for a little while.  :-)
656 #
657 # Also, if v3 is being configured as part of a cross compiler, the top-level
658 # configure script will pass the "real" host as $with_cross_host.
659 #
660 # AC 2.5x sets target_alias iff the user specified --target, but we use it
661 # everywhere, so we set it here just to be sure.  In AC 2.13
662 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
663
664 # Do some error checking and defaulting for the host and target type.
665 # The inputs are:
666 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
667 #
668 # The rules are:
669 # 1. You are not allowed to specify --host, --target, and nonopt at the
670 #    same time.
671 # 2. Host defaults to nonopt.
672 # 3. If nonopt is not specified, then host defaults to the current host,
673 #    as determined by config.guess.
674 # 4. Target and build default to nonopt.
675 # 5. If nonopt is not specified, then target and build default to host.
676
677 # The aliases save the names the user supplied, while $host etc.
678 # will get canonicalized.
679 case $host---$target---$nonopt in
680 NONE---*---* | *---NONE---* | *---*---NONE) ;;
681 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
682 esac
683
684
685 # Make sure we can run config.sub.
686 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
687 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
688 fi
689
690 echo $ac_n "checking host system type""... $ac_c" 1>&6
691 echo "configure:692: checking host system type" >&5
692
693 host_alias=$host
694 case "$host_alias" in
695 NONE)
696   case $nonopt in
697   NONE)
698     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
699     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
700     fi ;;
701   *) host_alias=$nonopt ;;
702   esac ;;
703 esac
704
705 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
706 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
709 echo "$ac_t""$host" 1>&6
710
711 echo $ac_n "checking target system type""... $ac_c" 1>&6
712 echo "configure:713: checking target system type" >&5
713
714 target_alias=$target
715 case "$target_alias" in
716 NONE)
717   case $nonopt in
718   NONE) target_alias=$host_alias ;;
719   *) target_alias=$nonopt ;;
720   esac ;;
721 esac
722
723 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
724 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
725 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
726 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
727 echo "$ac_t""$target" 1>&6
728
729 echo $ac_n "checking build system type""... $ac_c" 1>&6
730 echo "configure:731: checking build system type" >&5
731
732 build_alias=$build
733 case "$build_alias" in
734 NONE)
735   case $nonopt in
736   NONE) build_alias=$host_alias ;;
737   *) build_alias=$nonopt ;;
738   esac ;;
739 esac
740
741 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
742 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
743 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
744 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
745 echo "$ac_t""$build" 1>&6
746
747 test "$host_alias" != "$target_alias" &&
748   test "$program_prefix$program_suffix$program_transform_name" = \
749     NONENONEs,x,x, &&
750   program_prefix=${target_alias}-
751
752 target_alias=${target_alias-$target}
753
754
755 # Runs configure.target, finds CC, CXX and assorted other critical bits.
756 # Must run this before the GLIBCPP_ENABLE_* macros below.
757 if test $host != $build; then
758   ac_tool_prefix=${host_alias}-
759 else
760   ac_tool_prefix=
761 fi
762
763 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
764 echo "configure:765: checking for Cygwin environment" >&5
765 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
766   echo $ac_n "(cached) $ac_c" 1>&6
767 else
768   cat > conftest.$ac_ext <<EOF
769 #line 770 "configure"
770 #include "confdefs.h"
771
772 int main() {
773
774 #ifndef __CYGWIN__
775 #define __CYGWIN__ __CYGWIN32__
776 #endif
777 return __CYGWIN__;
778 ; return 0; }
779 EOF
780 if { (eval echo configure:781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
781   rm -rf conftest*
782   ac_cv_cygwin=yes
783 else
784   echo "configure: failed program was:" >&5
785   cat conftest.$ac_ext >&5
786   rm -rf conftest*
787   ac_cv_cygwin=no
788 fi
789 rm -f conftest*
790 rm -f conftest*
791 fi
792
793 echo "$ac_t""$ac_cv_cygwin" 1>&6
794 CYGWIN=
795 test "$ac_cv_cygwin" = yes && CYGWIN=yes
796 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
797 echo "configure:798: checking for mingw32 environment" >&5
798 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
799   echo $ac_n "(cached) $ac_c" 1>&6
800 else
801   cat > conftest.$ac_ext <<EOF
802 #line 803 "configure"
803 #include "confdefs.h"
804
805 int main() {
806 return __MINGW32__;
807 ; return 0; }
808 EOF
809 if { (eval echo configure:810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
810   rm -rf conftest*
811   ac_cv_mingw32=yes
812 else
813   echo "configure: failed program was:" >&5
814   cat conftest.$ac_ext >&5
815   rm -rf conftest*
816   ac_cv_mingw32=no
817 fi
818 rm -f conftest*
819 rm -f conftest*
820 fi
821
822 echo "$ac_t""$ac_cv_mingw32" 1>&6
823 MINGW32=
824 test "$ac_cv_mingw32" = yes && MINGW32=yes
825
826
827 #possibly test for the presence of the compiler sources here?
828
829   # Export build and source directories.
830   # These need to be absolute paths, yet at the same time need to
831   # canonicalize only relative paths, because then amd will not unmount
832   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
833   glibcpp_builddir=`${PWDCMD-pwd}`
834   case $srcdir in
835   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
836   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
837   esac
838   
839   
840
841     
842
843   for ac_prog in mawk gawk nawk awk
844 do
845 # Extract the first word of "$ac_prog", so it can be a program name with args.
846 set dummy $ac_prog; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
850   echo $ac_n "(cached) $ac_c" 1>&6
851 else
852   if test -n "$AWK"; then
853   ac_cv_prog_AWK="$AWK" # Let the user override the test.
854 else
855   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
856   ac_dummy="$PATH"
857   for ac_dir in $ac_dummy; do
858     test -z "$ac_dir" && ac_dir=.
859     if test -f $ac_dir/$ac_word; then
860       ac_cv_prog_AWK="$ac_prog"
861       break
862     fi
863   done
864   IFS="$ac_save_ifs"
865 fi
866 fi
867 AWK="$ac_cv_prog_AWK"
868 if test -n "$AWK"; then
869   echo "$ac_t""$AWK" 1>&6
870 else
871   echo "$ac_t""no" 1>&6
872 fi
873
874 test -n "$AWK" && break
875 done
876
877   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
878   # be 'cp -p' if linking isn't available.  Uncomment the next line to
879   # force a particular method.
880   #ac_cv_prog_LN_S='cp -p'
881   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
882 echo "configure:883: checking whether ln -s works" >&5
883 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
884   echo $ac_n "(cached) $ac_c" 1>&6
885 else
886   rm -f conftestdata
887 if ln -s X conftestdata 2>/dev/null
888 then
889   rm -f conftestdata
890   ac_cv_prog_LN_S="ln -s"
891 else
892   ac_cv_prog_LN_S=ln
893 fi
894 fi
895 LN_S="$ac_cv_prog_LN_S"
896 if test "$ac_cv_prog_LN_S" = "ln -s"; then
897   echo "$ac_t""yes" 1>&6
898 else
899   echo "$ac_t""no" 1>&6
900 fi
901
902
903   # We use these options to decide which functions to include.
904   # Check whether --with-target-subdir or --without-target-subdir was given.
905 if test "${with_target_subdir+set}" = set; then
906   withval="$with_target_subdir"
907   :
908 fi
909
910   # Check whether --with-cross-host or --without-cross-host was given.
911 if test "${with_cross_host+set}" = set; then
912   withval="$with_cross_host"
913   :
914 fi
915
916
917   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
918   
919
920   # Never versions of autoconf add an underscore to these functions.
921   # Prevent future problems ...
922   
923   
924   
925   
926
927   # AC_PROG_CC
928   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
929   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
930   # are probably using a cross compiler, which will not be able to fully
931   # link an executable.  This is addressed in later versions of autoconf.
932
933   
934
935       
936   # Extract the first word of "gcc", so it can be a program name with args.
937 set dummy gcc; ac_word=$2
938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
939 echo "configure:940: checking for $ac_word" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
941   echo $ac_n "(cached) $ac_c" 1>&6
942 else
943   if test -n "$CC"; then
944   ac_cv_prog_CC="$CC" # Let the user override the test.
945 else
946   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
947   ac_dummy="$PATH"
948   for ac_dir in $ac_dummy; do
949     test -z "$ac_dir" && ac_dir=.
950     if test -f $ac_dir/$ac_word; then
951       ac_cv_prog_CC="gcc"
952       break
953     fi
954   done
955   IFS="$ac_save_ifs"
956 fi
957 fi
958 CC="$ac_cv_prog_CC"
959 if test -n "$CC"; then
960   echo "$ac_t""$CC" 1>&6
961 else
962   echo "$ac_t""no" 1>&6
963 fi
964
965   if test -z "$CC"; then
966     # Extract the first word of "cc", so it can be a program name with args.
967 set dummy cc; ac_word=$2
968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
969 echo "configure:970: checking for $ac_word" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
971   echo $ac_n "(cached) $ac_c" 1>&6
972 else
973   if test -n "$CC"; then
974   ac_cv_prog_CC="$CC" # Let the user override the test.
975 else
976   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
977   ac_prog_rejected=no
978   ac_dummy="$PATH"
979   for ac_dir in $ac_dummy; do
980     test -z "$ac_dir" && ac_dir=.
981     if test -f $ac_dir/$ac_word; then
982       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
983         ac_prog_rejected=yes
984         continue
985       fi
986       ac_cv_prog_CC="cc"
987       break
988     fi
989   done
990   IFS="$ac_save_ifs"
991 if test $ac_prog_rejected = yes; then
992   # We found a bogon in the path, so make sure we never use it.
993   set dummy $ac_cv_prog_CC
994   shift
995   if test $# -gt 0; then
996     # We chose a different compiler from the bogus one.
997     # However, it has the same basename, so the bogon will be chosen
998     # first if we set CC to just the basename; use the full file name.
999     shift
1000     set dummy "$ac_dir/$ac_word" "$@"
1001     shift
1002     ac_cv_prog_CC="$@"
1003   fi
1004 fi
1005 fi
1006 fi
1007 CC="$ac_cv_prog_CC"
1008 if test -n "$CC"; then
1009   echo "$ac_t""$CC" 1>&6
1010 else
1011   echo "$ac_t""no" 1>&6
1012 fi
1013
1014     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1015   fi
1016
1017   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1018 echo "configure:1019: checking whether we are using GNU C" >&5
1019 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1020   echo $ac_n "(cached) $ac_c" 1>&6
1021 else
1022   cat > conftest.c <<EOF
1023 #ifdef __GNUC__
1024   yes;
1025 #endif
1026 EOF
1027 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1028   ac_cv_prog_gcc=yes
1029 else
1030   ac_cv_prog_gcc=no
1031 fi
1032 fi
1033
1034 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1035
1036   if test $ac_cv_prog_gcc = yes; then
1037     GCC=yes
1038           ac_test_CFLAGS="${CFLAGS+set}"
1039     ac_save_CFLAGS="$CFLAGS"
1040     CFLAGS=
1041     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1042 echo "configure:1043: checking whether ${CC-cc} accepts -g" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1044   echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1046   echo 'void f(){}' > conftest.c
1047 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1048   ac_cv_prog_cc_g=yes
1049 else
1050   ac_cv_prog_cc_g=no
1051 fi
1052 rm -f conftest*
1053
1054 fi
1055
1056 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1057     if test "$ac_test_CFLAGS" = set; then
1058       CFLAGS="$ac_save_CFLAGS"
1059     elif test $ac_cv_prog_cc_g = yes; then
1060       CFLAGS="-g -O2"
1061     else
1062       CFLAGS="-O2"
1063     fi
1064   else
1065     GCC=
1066     test "${CFLAGS+set}" = set || CFLAGS="-g"
1067   fi
1068   
1069
1070   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1071   # will try to link in libstdc++.
1072   
1073
1074       
1075   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1076   # flags that come in CXX while configuring libstdc++.  They're different
1077   # from those used for all other target libraries.  If CXX is set in
1078   # the environment, respect that here.
1079   glibcpp_CXX=$CXX
1080   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1081 do
1082 # Extract the first word of "$ac_prog", so it can be a program name with args.
1083 set dummy $ac_prog; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1087   echo $ac_n "(cached) $ac_c" 1>&6
1088 else
1089   if test -n "$glibcpp_CXX"; then
1090   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1091 else
1092   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1093   ac_dummy="$PATH"
1094   for ac_dir in $ac_dummy; do
1095     test -z "$ac_dir" && ac_dir=.
1096     if test -f $ac_dir/$ac_word; then
1097       ac_cv_prog_glibcpp_CXX="$ac_prog"
1098       break
1099     fi
1100   done
1101   IFS="$ac_save_ifs"
1102 fi
1103 fi
1104 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1105 if test -n "$glibcpp_CXX"; then
1106   echo "$ac_t""$glibcpp_CXX" 1>&6
1107 else
1108   echo "$ac_t""no" 1>&6
1109 fi
1110
1111 test -n "$glibcpp_CXX" && break
1112 done
1113 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1114
1115   
1116   CXX=$glibcpp_CXX
1117   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1118
1119   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether we are using GNU C++" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1122   echo $ac_n "(cached) $ac_c" 1>&6
1123 else
1124   cat > conftest.C <<EOF
1125 #ifdef __GNUC__
1126   yes;
1127 #endif
1128 EOF
1129 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1130   ac_cv_prog_gxx=yes
1131 else
1132   ac_cv_prog_gxx=no
1133 fi
1134 fi
1135
1136 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1137
1138   if test $ac_cv_prog_gxx = yes; then
1139     GXX=yes
1140                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1141     ac_save_CXXFLAGS="$CXXFLAGS"
1142     CXXFLAGS=
1143     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether ${CXX-g++} accepts -g" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1146   echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148   echo 'void f(){}' > conftest.cc
1149 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1150   ac_cv_prog_cxx_g=yes
1151 else
1152   ac_cv_prog_cxx_g=no
1153 fi
1154 rm -f conftest*
1155
1156 fi
1157
1158 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1159     if test "$ac_test_CXXFLAGS" = set; then
1160       CXXFLAGS="$ac_save_CXXFLAGS"
1161     elif test $ac_cv_prog_cxx_g = yes; then
1162       CXXFLAGS="-g -O2"
1163     else
1164       CXXFLAGS="-O2"
1165     fi
1166   else
1167     GXX=
1168     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1169   fi
1170   
1171
1172   # For directory versioning (e.g., headers) and other variables.
1173   echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1174 echo "configure:1175: checking for GCC version number" >&5
1175   gcc_version=`$glibcpp_CXX -dumpversion`
1176   echo "$ac_t""$gcc_version" 1>&6
1177
1178   # For some reason, gettext needs this.
1179   
1180         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1181 echo "configure:1182: checking for strerror in -lcposix" >&5
1182 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1184   echo $ac_n "(cached) $ac_c" 1>&6
1185 else
1186   ac_save_LIBS="$LIBS"
1187 LIBS="-lcposix  $LIBS"
1188 cat > conftest.$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1191 /* Override any gcc2 internal prototype to avoid an error.  */
1192 /* We use char because int might match the return type of a gcc2
1193     builtin and then its argument prototype would still apply.  */
1194 char strerror();
1195
1196 int main() {
1197 strerror()
1198 ; return 0; }
1199 EOF
1200 if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1201   rm -rf conftest*
1202   eval "ac_cv_lib_$ac_lib_var=yes"
1203 else
1204   echo "configure: failed program was:" >&5
1205   cat conftest.$ac_ext >&5
1206   rm -rf conftest*
1207   eval "ac_cv_lib_$ac_lib_var=no"
1208 fi
1209 rm -f conftest*
1210 LIBS="$ac_save_LIBS"
1211
1212 fi
1213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1214   echo "$ac_t""yes" 1>&6
1215   LIBS="$LIBS -lcposix"
1216 else
1217   echo "$ac_t""no" 1>&6
1218 fi
1219
1220   
1221
1222
1223   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1224 set dummy ${ac_tool_prefix}as; ac_word=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1228   echo $ac_n "(cached) $ac_c" 1>&6
1229 else
1230   if test -n "$AS"; then
1231   ac_cv_prog_AS="$AS" # Let the user override the test.
1232 else
1233   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1234   ac_dummy="$PATH"
1235   for ac_dir in $ac_dummy; do
1236     test -z "$ac_dir" && ac_dir=.
1237     if test -f $ac_dir/$ac_word; then
1238       ac_cv_prog_AS="${ac_tool_prefix}as"
1239       break
1240     fi
1241   done
1242   IFS="$ac_save_ifs"
1243   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1244 fi
1245 fi
1246 AS="$ac_cv_prog_AS"
1247 if test -n "$AS"; then
1248   echo "$ac_t""$AS" 1>&6
1249 else
1250   echo "$ac_t""no" 1>&6
1251 fi
1252
1253
1254
1255   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1256 set dummy ${ac_tool_prefix}ar; ac_word=$2
1257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1258 echo "configure:1259: checking for $ac_word" >&5
1259 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1260   echo $ac_n "(cached) $ac_c" 1>&6
1261 else
1262   if test -n "$AR"; then
1263   ac_cv_prog_AR="$AR" # Let the user override the test.
1264 else
1265   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1266   ac_dummy="$PATH"
1267   for ac_dir in $ac_dummy; do
1268     test -z "$ac_dir" && ac_dir=.
1269     if test -f $ac_dir/$ac_word; then
1270       ac_cv_prog_AR="${ac_tool_prefix}ar"
1271       break
1272     fi
1273   done
1274   IFS="$ac_save_ifs"
1275   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1276 fi
1277 fi
1278 AR="$ac_cv_prog_AR"
1279 if test -n "$AR"; then
1280   echo "$ac_t""$AR" 1>&6
1281 else
1282   echo "$ac_t""no" 1>&6
1283 fi
1284
1285
1286
1287   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1288 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290 echo "configure:1291: checking for $ac_word" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1292   echo $ac_n "(cached) $ac_c" 1>&6
1293 else
1294   if test -n "$RANLIB"; then
1295   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1296 else
1297   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1298   ac_dummy="$PATH"
1299   for ac_dir in $ac_dummy; do
1300     test -z "$ac_dir" && ac_dir=.
1301     if test -f $ac_dir/$ac_word; then
1302       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1303       break
1304     fi
1305   done
1306   IFS="$ac_save_ifs"
1307 fi
1308 fi
1309 RANLIB="$ac_cv_prog_RANLIB"
1310 if test -n "$RANLIB"; then
1311   echo "$ac_t""$RANLIB" 1>&6
1312 else
1313   echo "$ac_t""no" 1>&6
1314 fi
1315
1316
1317 if test -z "$ac_cv_prog_RANLIB"; then
1318 if test -n "$ac_tool_prefix"; then
1319   # Extract the first word of "ranlib", so it can be a program name with args.
1320 set dummy ranlib; ac_word=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1324   echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326   if test -n "$RANLIB"; then
1327   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1328 else
1329   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1330   ac_dummy="$PATH"
1331   for ac_dir in $ac_dummy; do
1332     test -z "$ac_dir" && ac_dir=.
1333     if test -f $ac_dir/$ac_word; then
1334       ac_cv_prog_RANLIB="ranlib"
1335       break
1336     fi
1337   done
1338   IFS="$ac_save_ifs"
1339   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1340 fi
1341 fi
1342 RANLIB="$ac_cv_prog_RANLIB"
1343 if test -n "$RANLIB"; then
1344   echo "$ac_t""$RANLIB" 1>&6
1345 else
1346   echo "$ac_t""no" 1>&6
1347 fi
1348
1349 else
1350   RANLIB="ranlib-not-found-in-path-error"
1351 fi
1352 fi
1353
1354   # Find a good install program.  We prefer a C program (faster),
1355 # so one script is as good as another.  But avoid the broken or
1356 # incompatible versions:
1357 # SysV /etc/install, /usr/sbin/install
1358 # SunOS /usr/etc/install
1359 # IRIX /sbin/install
1360 # AIX /bin/install
1361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1364 # ./install, which can be erroneously created by make from ./install.sh.
1365 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1366 echo "configure:1367: checking for a BSD compatible install" >&5
1367 if test -z "$INSTALL"; then
1368 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1369   echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1372   for ac_dir in $PATH; do
1373     # Account for people who put trailing slashes in PATH elements.
1374     case "$ac_dir/" in
1375     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1376     *)
1377       # OSF1 and SCO ODT 3.0 have their own names for install.
1378       # Don't use installbsd from OSF since it installs stuff as root
1379       # by default.
1380       for ac_prog in ginstall scoinst install; do
1381         if test -f $ac_dir/$ac_prog; then
1382           if test $ac_prog = install &&
1383             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1384             # AIX install.  It has an incompatible calling convention.
1385             :
1386           else
1387             ac_cv_path_install="$ac_dir/$ac_prog -c"
1388             break 2
1389           fi
1390         fi
1391       done
1392       ;;
1393     esac
1394   done
1395   IFS="$ac_save_IFS"
1396
1397 fi
1398   if test "${ac_cv_path_install+set}" = set; then
1399     INSTALL="$ac_cv_path_install"
1400   else
1401     # As a last resort, use the slow shell script.  We don't cache a
1402     # path for INSTALL within a source directory, because that will
1403     # break other packages using the cache if that directory is
1404     # removed, or if the path is relative.
1405     INSTALL="$ac_install_sh"
1406   fi
1407 fi
1408 echo "$ac_t""$INSTALL" 1>&6
1409
1410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1411 # It thinks the first close brace ends the variable substitution.
1412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1413
1414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1415
1416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1417
1418
1419   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether to enable maintainer-specific portions of Makefiles" >&5
1421     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1422 if test "${enable_maintainer_mode+set}" = set; then
1423   enableval="$enable_maintainer_mode"
1424   USE_MAINTAINER_MODE=$enableval
1425 else
1426   USE_MAINTAINER_MODE=no
1427 fi
1428
1429   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1430   
1431
1432 if test $USE_MAINTAINER_MODE = yes; then
1433   MAINTAINER_MODE_TRUE=
1434   MAINTAINER_MODE_FALSE='#'
1435 else
1436   MAINTAINER_MODE_TRUE='#'
1437   MAINTAINER_MODE_FALSE=
1438 fi
1439   MAINT=$MAINTAINER_MODE_TRUE
1440   
1441
1442
1443   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1444   # at least currently, we never actually build a program, so we never
1445   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1446   # fails, because we are probably configuring with a cross compiler
1447   # which can't create executables.  So we include AC_EXEEXT to keep
1448   # automake happy, but we don't execute it, since we don't care about
1449   # the result.
1450   if false; then
1451     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1452     # to nothing, so nothing would remain between `then' and `fi' if it
1453     # were not for the `:' below.
1454     :
1455     
1456
1457 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1458 echo "configure:1459: checking for executable suffix" >&5
1459 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1460   echo $ac_n "(cached) $ac_c" 1>&6
1461 else
1462   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1463   ac_cv_exeext=.exe
1464 else
1465   rm -f conftest*
1466   echo 'int main () { return 0; }' > conftest.$ac_ext
1467   ac_cv_exeext=
1468   if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1469     for file in conftest.*; do
1470       case $file in
1471       *.$ac_ext | *.c | *.o | *.obj) ;;
1472       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1473       esac
1474     done
1475   else
1476     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1477   fi
1478   rm -f conftest*
1479   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1480 fi
1481 fi
1482
1483 EXEEXT=""
1484 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1485 echo "$ac_t""${ac_cv_exeext}" 1>&6
1486 ac_exeext=$EXEEXT
1487
1488   fi
1489
1490   case ${glibcpp_basedir} in
1491     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1492     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1493   esac
1494
1495   # Find platform-specific directories containing configuration info.  In
1496   # addition to possibly modifying the same flags, it also sets up symlinks.
1497   
1498     . ${glibcpp_basedir}/configure.target
1499     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1500     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1501
1502
1503
1504 am__api_version="1.4"
1505 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1506 echo "configure:1507: checking whether build environment is sane" >&5
1507 # Just in case
1508 sleep 1
1509 echo timestamp > conftestfile
1510 # Do `set' in a subshell so we don't clobber the current shell's
1511 # arguments.  Must try -L first in case configure is actually a
1512 # symlink; some systems play weird games with the mod time of symlinks
1513 # (eg FreeBSD returns the mod time of the symlink's containing
1514 # directory).
1515 if (
1516    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1517    if test "$*" = "X"; then
1518       # -L didn't work.
1519       set X `ls -t $srcdir/configure conftestfile`
1520    fi
1521    if test "$*" != "X $srcdir/configure conftestfile" \
1522       && test "$*" != "X conftestfile $srcdir/configure"; then
1523
1524       # If neither matched, then we have a broken ls.  This can happen
1525       # if, for instance, CONFIG_SHELL is bash and it inherits a
1526       # broken ls alias from the environment.  This has actually
1527       # happened.  Such a system could not be considered "sane".
1528       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1529 alias in your environment" 1>&2; exit 1; }
1530    fi
1531
1532    test "$2" = conftestfile
1533    )
1534 then
1535    # Ok.
1536    :
1537 else
1538    { echo "configure: error: newly created file is older than distributed files!
1539 Check your system clock" 1>&2; exit 1; }
1540 fi
1541 rm -f conftest*
1542 echo "$ac_t""yes" 1>&6
1543 if test "$program_transform_name" = s,x,x,; then
1544   program_transform_name=
1545 else
1546   # Double any \ or $.  echo might interpret backslashes.
1547   cat <<\EOF_SED > conftestsed
1548 s,\\,\\\\,g; s,\$,$$,g
1549 EOF_SED
1550   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1551   rm -f conftestsed
1552 fi
1553 test "$program_prefix" != NONE &&
1554   program_transform_name="s,^,${program_prefix},; $program_transform_name"
1555 # Use a double $ so make ignores it.
1556 test "$program_suffix" != NONE &&
1557   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1558
1559 # sed with no file args requires a program.
1560 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1561
1562 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1563 echo "configure:1564: checking whether ${MAKE-make} sets \${MAKE}" >&5
1564 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1565 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1566   echo $ac_n "(cached) $ac_c" 1>&6
1567 else
1568   cat > conftestmake <<\EOF
1569 all:
1570         @echo 'ac_maketemp="${MAKE}"'
1571 EOF
1572 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1573 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1574 if test -n "$ac_maketemp"; then
1575   eval ac_cv_prog_make_${ac_make}_set=yes
1576 else
1577   eval ac_cv_prog_make_${ac_make}_set=no
1578 fi
1579 rm -f conftestmake
1580 fi
1581 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1582   echo "$ac_t""yes" 1>&6
1583   SET_MAKE=
1584 else
1585   echo "$ac_t""no" 1>&6
1586   SET_MAKE="MAKE=${MAKE-make}"
1587 fi
1588
1589
1590 PACKAGE=$PACKAGE
1591
1592 VERSION=$gcc_version
1593
1594 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1595   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1596 fi
1597 cat >> confdefs.h <<EOF
1598 #define PACKAGE "$PACKAGE"
1599 EOF
1600
1601 cat >> confdefs.h <<EOF
1602 #define VERSION "$VERSION"
1603 EOF
1604
1605
1606
1607 missing_dir=`cd $ac_aux_dir && pwd`
1608 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1609 echo "configure:1610: checking for working aclocal-${am__api_version}" >&5
1610 # Run test in a subshell; some versions of sh will print an error if
1611 # an executable is not found, even if stderr is redirected.
1612 # Redirect stdin to placate older versions of autoconf.  Sigh.
1613 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1614    ACLOCAL=aclocal-${am__api_version}
1615    echo "$ac_t""found" 1>&6
1616 else
1617    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1618    echo "$ac_t""missing" 1>&6
1619 fi
1620
1621 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1622 echo "configure:1623: checking for working autoconf" >&5
1623 # Run test in a subshell; some versions of sh will print an error if
1624 # an executable is not found, even if stderr is redirected.
1625 # Redirect stdin to placate older versions of autoconf.  Sigh.
1626 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1627    AUTOCONF=autoconf
1628    echo "$ac_t""found" 1>&6
1629 else
1630    AUTOCONF="$missing_dir/missing autoconf"
1631    echo "$ac_t""missing" 1>&6
1632 fi
1633
1634 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1635 echo "configure:1636: checking for working automake-${am__api_version}" >&5
1636 # Run test in a subshell; some versions of sh will print an error if
1637 # an executable is not found, even if stderr is redirected.
1638 # Redirect stdin to placate older versions of autoconf.  Sigh.
1639 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1640    AUTOMAKE=automake-${am__api_version}
1641    echo "$ac_t""found" 1>&6
1642 else
1643    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1644    echo "$ac_t""missing" 1>&6
1645 fi
1646
1647 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1648 echo "configure:1649: checking for working autoheader" >&5
1649 # Run test in a subshell; some versions of sh will print an error if
1650 # an executable is not found, even if stderr is redirected.
1651 # Redirect stdin to placate older versions of autoconf.  Sigh.
1652 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1653    AUTOHEADER=autoheader
1654    echo "$ac_t""found" 1>&6
1655 else
1656    AUTOHEADER="$missing_dir/missing autoheader"
1657    echo "$ac_t""missing" 1>&6
1658 fi
1659
1660 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1661 echo "configure:1662: checking for working makeinfo" >&5
1662 # Run test in a subshell; some versions of sh will print an error if
1663 # an executable is not found, even if stderr is redirected.
1664 # Redirect stdin to placate older versions of autoconf.  Sigh.
1665 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1666    MAKEINFO=makeinfo
1667    echo "$ac_t""found" 1>&6
1668 else
1669    MAKEINFO="$missing_dir/missing makeinfo"
1670    echo "$ac_t""missing" 1>&6
1671 fi
1672
1673
1674
1675
1676
1677
1678
1679 # Check whether --enable-shared or --disable-shared was given.
1680 if test "${enable_shared+set}" = set; then
1681   enableval="$enable_shared"
1682   p=${PACKAGE-default}
1683 case $enableval in
1684 yes) enable_shared=yes ;;
1685 no) enable_shared=no ;;
1686 *)
1687   enable_shared=no
1688   # Look at the argument we got.  We use all the common list separators.
1689   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1690   for pkg in $enableval; do
1691     if test "X$pkg" = "X$p"; then
1692       enable_shared=yes
1693     fi
1694   done
1695   IFS="$ac_save_ifs"
1696   ;;
1697 esac
1698 else
1699   enable_shared=yes
1700 fi
1701
1702 # Check whether --enable-static or --disable-static was given.
1703 if test "${enable_static+set}" = set; then
1704   enableval="$enable_static"
1705   p=${PACKAGE-default}
1706 case $enableval in
1707 yes) enable_static=yes ;;
1708 no) enable_static=no ;;
1709 *)
1710   enable_static=no
1711   # Look at the argument we got.  We use all the common list separators.
1712   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1713   for pkg in $enableval; do
1714     if test "X$pkg" = "X$p"; then
1715       enable_static=yes
1716     fi
1717   done
1718   IFS="$ac_save_ifs"
1719   ;;
1720 esac
1721 else
1722   enable_static=yes
1723 fi
1724
1725 # Check whether --enable-fast-install or --disable-fast-install was given.
1726 if test "${enable_fast_install+set}" = set; then
1727   enableval="$enable_fast_install"
1728   p=${PACKAGE-default}
1729 case $enableval in
1730 yes) enable_fast_install=yes ;;
1731 no) enable_fast_install=no ;;
1732 *)
1733   enable_fast_install=no
1734   # Look at the argument we got.  We use all the common list separators.
1735   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1736   for pkg in $enableval; do
1737     if test "X$pkg" = "X$p"; then
1738       enable_fast_install=yes
1739     fi
1740   done
1741   IFS="$ac_save_ifs"
1742   ;;
1743 esac
1744 else
1745   enable_fast_install=yes
1746 fi
1747
1748 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1749 if test "${with_gnu_ld+set}" = set; then
1750   withval="$with_gnu_ld"
1751   test "$withval" = no || with_gnu_ld=yes
1752 else
1753   with_gnu_ld=no
1754 fi
1755
1756 ac_prog=ld
1757 if test "$GCC" = yes; then
1758   # Check if gcc -print-prog-name=ld gives a path.
1759   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1760 echo "configure:1761: checking for ld used by GCC" >&5
1761   case $host in
1762   *-*-mingw*)
1763     # gcc leaves a trailing carriage return which upsets mingw
1764     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1765   *)
1766     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1767   esac
1768   case $ac_prog in
1769     # Accept absolute paths.
1770     [\\/]* | [A-Za-z]:[\\/]*)
1771       re_direlt='/[^/][^/]*/\.\./'
1772       # Canonicalize the path of ld
1773       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1774       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1775         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1776       done
1777       test -z "$LD" && LD="$ac_prog"
1778       ;;
1779   "")
1780     # If it fails, then pretend we aren't using GCC.
1781     ac_prog=ld
1782     ;;
1783   *)
1784     # If it is relative, then search for the first ld in PATH.
1785     with_gnu_ld=unknown
1786     ;;
1787   esac
1788 elif test "$with_gnu_ld" = yes; then
1789   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1790 echo "configure:1791: checking for GNU ld" >&5
1791 else
1792   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1793 echo "configure:1794: checking for non-GNU ld" >&5
1794 fi
1795 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1796   echo $ac_n "(cached) $ac_c" 1>&6
1797 else
1798   if test -z "$LD"; then
1799   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1800   for ac_dir in $PATH; do
1801     test -z "$ac_dir" && ac_dir=.
1802     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1803       lt_cv_path_LD="$ac_dir/$ac_prog"
1804       # Check to see if the program is GNU ld.  I'd rather use --version,
1805       # but apparently some GNU ld's only accept -v.
1806       # Break only if it was the GNU/non-GNU ld that we prefer.
1807       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1808         test "$with_gnu_ld" != no && break
1809       else
1810         test "$with_gnu_ld" != yes && break
1811       fi
1812     fi
1813   done
1814   IFS="$ac_save_ifs"
1815 else
1816   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1817 fi
1818 fi
1819
1820 LD="$lt_cv_path_LD"
1821 if test -n "$LD"; then
1822   echo "$ac_t""$LD" 1>&6
1823 else
1824   echo "$ac_t""no" 1>&6
1825 fi
1826 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1827 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1828 echo "configure:1829: checking if the linker ($LD) is GNU ld" >&5
1829 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1830   echo $ac_n "(cached) $ac_c" 1>&6
1831 else
1832   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1833 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1834   lt_cv_prog_gnu_ld=yes
1835 else
1836   lt_cv_prog_gnu_ld=no
1837 fi
1838 fi
1839
1840 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1841 with_gnu_ld=$lt_cv_prog_gnu_ld
1842
1843
1844 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $LD option to reload object files" >&5
1846 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1847   echo $ac_n "(cached) $ac_c" 1>&6
1848 else
1849   lt_cv_ld_reload_flag='-r'
1850 fi
1851
1852 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1853 reload_flag=$lt_cv_ld_reload_flag
1854 test -n "$reload_flag" && reload_flag=" $reload_flag"
1855
1856 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1857 echo "configure:1858: checking for BSD-compatible nm" >&5
1858 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1859   echo $ac_n "(cached) $ac_c" 1>&6
1860 else
1861   if test -n "$NM"; then
1862   # Let the user override the test.
1863   lt_cv_path_NM="$NM"
1864 else
1865   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1866   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1867     test -z "$ac_dir" && ac_dir=.
1868     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1869     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1870       # Check to see if the nm accepts a BSD-compat flag.
1871       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1872       #   nm: unknown option "B" ignored
1873       # Tru64's nm complains that /dev/null is an invalid object file
1874       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1875         lt_cv_path_NM="$tmp_nm -B"
1876         break
1877       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1878         lt_cv_path_NM="$tmp_nm -p"
1879         break
1880       else
1881         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1882         continue # so that we can try to find one that supports BSD flags
1883       fi
1884     fi
1885   done
1886   IFS="$ac_save_ifs"
1887   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1888 fi
1889 fi
1890
1891 NM="$lt_cv_path_NM"
1892 echo "$ac_t""$NM" 1>&6
1893
1894 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1895 echo "configure:1896: checking how to recognise dependant libraries" >&5
1896 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1897   echo $ac_n "(cached) $ac_c" 1>&6
1898 else
1899   lt_cv_file_magic_cmd='$MAGIC_CMD'
1900 lt_cv_file_magic_test_file=
1901 lt_cv_deplibs_check_method='unknown'
1902 # Need to set the preceding variable on all platforms that support
1903 # interlibrary dependencies.
1904 # 'none' -- dependencies not supported.
1905 # `unknown' -- same as none, but documents that we really don't know.
1906 # 'pass_all' -- all dependencies passed with no checks.
1907 # 'test_compile' -- check by making test program.
1908 # 'file_magic [regex]' -- check by looking for files in library path
1909 # which responds to the $file_magic_cmd with a given egrep regex.
1910 # If you have `file' or equivalent on your system and you're not sure
1911 # whether `pass_all' will *always* work, you probably want this one.
1912
1913 case $host_os in
1914 aix*)
1915   lt_cv_deplibs_check_method=pass_all
1916   ;;
1917
1918 beos*)
1919   lt_cv_deplibs_check_method=pass_all
1920   ;;
1921
1922 bsdi4*)
1923   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1924   lt_cv_file_magic_cmd='/usr/bin/file -L'
1925   lt_cv_file_magic_test_file=/shlib/libc.so
1926   ;;
1927
1928 cygwin* | mingw* |pw32*)
1929   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1930   lt_cv_file_magic_cmd='$OBJDUMP -f'
1931   ;;
1932
1933 darwin* | rhapsody*)
1934   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1935   lt_cv_file_magic_cmd='/usr/bin/file -L'
1936   case "$host_os" in
1937   rhapsody* | darwin1.012)
1938     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1939     ;;
1940   *) # Darwin 1.3 on
1941     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1942     ;;
1943   esac
1944   ;;
1945
1946 freebsd* )
1947   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1948     case $host_cpu in
1949     i*86 )
1950       # Not sure whether the presence of OpenBSD here was a mistake.
1951       # Let's accept both of them until this is cleared up.
1952       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1953       lt_cv_file_magic_cmd=/usr/bin/file
1954       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1955       ;;
1956     esac
1957   else
1958     lt_cv_deplibs_check_method=pass_all
1959   fi
1960   ;;
1961
1962 gnu*)
1963   lt_cv_deplibs_check_method=pass_all
1964   ;;
1965
1966 hpux10.20*|hpux11*)
1967   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1968   lt_cv_file_magic_cmd=/usr/bin/file
1969   lt_cv_file_magic_test_file=/usr/lib/libc.sl
1970   ;;
1971
1972 irix5* | irix6*)
1973   case $host_os in
1974   irix5*)
1975     # this will be overridden with pass_all, but let us keep it just in case
1976     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1977     ;;
1978   *)
1979     case $LD in
1980     *-32|*"-32 ") libmagic=32-bit;;
1981     *-n32|*"-n32 ") libmagic=N32;;
1982     *-64|*"-64 ") libmagic=64-bit;;
1983     *) libmagic=never-match;;
1984     esac
1985     # this will be overridden with pass_all, but let us keep it just in case
1986     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1987     ;;
1988   esac
1989   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1990   lt_cv_deplibs_check_method=pass_all
1991   ;;
1992
1993 # This must be Linux ELF.
1994 linux-gnu*)
1995   case $host_cpu in
1996   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1997     lt_cv_deplibs_check_method=pass_all ;;
1998   *)
1999     # glibc up to 2.1.1 does not perform some relocations on ARM
2000     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2001   esac
2002   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2003   ;;
2004
2005 netbsd*)
2006   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2007     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2008   else
2009     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2010   fi
2011   ;;
2012
2013 newsos6)
2014   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2015   lt_cv_file_magic_cmd=/usr/bin/file
2016   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2017   ;;
2018
2019 osf3* | osf4* | osf5*)
2020   # this will be overridden with pass_all, but let us keep it just in case
2021   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2022   lt_cv_file_magic_test_file=/shlib/libc.so
2023   lt_cv_deplibs_check_method=pass_all
2024   ;;
2025
2026 sco3.2v5*)
2027   lt_cv_deplibs_check_method=pass_all
2028   ;;
2029
2030 solaris*)
2031   lt_cv_deplibs_check_method=pass_all
2032   lt_cv_file_magic_test_file=/lib/libc.so
2033   ;;
2034
2035 sysv5uw[78]* | sysv4*uw2*)
2036   lt_cv_deplibs_check_method=pass_all
2037   ;;
2038
2039 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2040   case $host_vendor in
2041   ncr)
2042     lt_cv_deplibs_check_method=pass_all
2043     ;;
2044   motorola)
2045     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]'
2046     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2047     ;;
2048   esac
2049   ;;
2050 esac
2051
2052 fi
2053
2054 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2055 file_magic_cmd=$lt_cv_file_magic_cmd
2056 deplibs_check_method=$lt_cv_deplibs_check_method
2057
2058 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2059 echo "configure:2060: checking for object suffix" >&5
2060 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2061   echo $ac_n "(cached) $ac_c" 1>&6
2062 else
2063   rm -f conftest*
2064 echo 'int i = 1;' > conftest.$ac_ext
2065 if { (eval echo configure:2066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2066   for ac_file in conftest.*; do
2067     case $ac_file in
2068     *.c) ;;
2069     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2070     esac
2071   done
2072 else
2073   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2074 fi
2075 rm -f conftest*
2076 fi
2077
2078 echo "$ac_t""$ac_cv_objext" 1>&6
2079 OBJEXT=$ac_cv_objext
2080 ac_objext=$ac_cv_objext
2081
2082 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2083
2084 # Only perform the check for file, if the check method requires it
2085 case $deplibs_check_method in
2086 file_magic*)
2087   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2088     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2089 echo "configure:2090: checking for ${ac_tool_prefix}file" >&5
2090 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2091   echo $ac_n "(cached) $ac_c" 1>&6
2092 else
2093   case $MAGIC_CMD in
2094   /*)
2095   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2096   ;;
2097   ?:/*)
2098   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2099   ;;
2100   *)
2101   ac_save_MAGIC_CMD="$MAGIC_CMD"
2102   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2103   ac_dummy="/usr/bin:$PATH"
2104   for ac_dir in $ac_dummy; do
2105     test -z "$ac_dir" && ac_dir=.
2106     if test -f $ac_dir/${ac_tool_prefix}file; then
2107       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2108       if test -n "$file_magic_test_file"; then
2109         case $deplibs_check_method in
2110         "file_magic "*)
2111           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2112           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2113           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2114             egrep "$file_magic_regex" > /dev/null; then
2115             :
2116           else
2117             cat <<EOF 1>&2
2118
2119 *** Warning: the command libtool uses to detect shared libraries,
2120 *** $file_magic_cmd, produces output that libtool cannot recognize.
2121 *** The result is that libtool may fail to recognize shared libraries
2122 *** as such.  This will affect the creation of libtool libraries that
2123 *** depend on shared libraries, but programs linked with such libtool
2124 *** libraries will work regardless of this problem.  Nevertheless, you
2125 *** may want to report the problem to your system manager and/or to
2126 *** bug-libtool@gnu.org
2127
2128 EOF
2129           fi ;;
2130         esac
2131       fi
2132       break
2133     fi
2134   done
2135   IFS="$ac_save_ifs"
2136   MAGIC_CMD="$ac_save_MAGIC_CMD"
2137   ;;
2138 esac
2139 fi
2140
2141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2142 if test -n "$MAGIC_CMD"; then
2143   echo "$ac_t""$MAGIC_CMD" 1>&6
2144 else
2145   echo "$ac_t""no" 1>&6
2146 fi
2147
2148 if test -z "$lt_cv_path_MAGIC_CMD"; then
2149   if test -n "$ac_tool_prefix"; then
2150     echo $ac_n "checking for file""... $ac_c" 1>&6
2151 echo "configure:2152: checking for file" >&5
2152 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2153   echo $ac_n "(cached) $ac_c" 1>&6
2154 else
2155   case $MAGIC_CMD in
2156   /*)
2157   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2158   ;;
2159   ?:/*)
2160   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2161   ;;
2162   *)
2163   ac_save_MAGIC_CMD="$MAGIC_CMD"
2164   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2165   ac_dummy="/usr/bin:$PATH"
2166   for ac_dir in $ac_dummy; do
2167     test -z "$ac_dir" && ac_dir=.
2168     if test -f $ac_dir/file; then
2169       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2170       if test -n "$file_magic_test_file"; then
2171         case $deplibs_check_method in
2172         "file_magic "*)
2173           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2174           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2175           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2176             egrep "$file_magic_regex" > /dev/null; then
2177             :
2178           else
2179             cat <<EOF 1>&2
2180
2181 *** Warning: the command libtool uses to detect shared libraries,
2182 *** $file_magic_cmd, produces output that libtool cannot recognize.
2183 *** The result is that libtool may fail to recognize shared libraries
2184 *** as such.  This will affect the creation of libtool libraries that
2185 *** depend on shared libraries, but programs linked with such libtool
2186 *** libraries will work regardless of this problem.  Nevertheless, you
2187 *** may want to report the problem to your system manager and/or to
2188 *** bug-libtool@gnu.org
2189
2190 EOF
2191           fi ;;
2192         esac
2193       fi
2194       break
2195     fi
2196   done
2197   IFS="$ac_save_ifs"
2198   MAGIC_CMD="$ac_save_MAGIC_CMD"
2199   ;;
2200 esac
2201 fi
2202
2203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2204 if test -n "$MAGIC_CMD"; then
2205   echo "$ac_t""$MAGIC_CMD" 1>&6
2206 else
2207   echo "$ac_t""no" 1>&6
2208 fi
2209
2210   else
2211     MAGIC_CMD=:
2212   fi
2213 fi
2214
2215   fi
2216   ;;
2217 esac
2218
2219 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2220 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_word" >&5
2223 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2224   echo $ac_n "(cached) $ac_c" 1>&6
2225 else
2226   if test -n "$RANLIB"; then
2227   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2228 else
2229   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2230   ac_dummy="$PATH"
2231   for ac_dir in $ac_dummy; do
2232     test -z "$ac_dir" && ac_dir=.
2233     if test -f $ac_dir/$ac_word; then
2234       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2235       break
2236     fi
2237   done
2238   IFS="$ac_save_ifs"
2239 fi
2240 fi
2241 RANLIB="$ac_cv_prog_RANLIB"
2242 if test -n "$RANLIB"; then
2243   echo "$ac_t""$RANLIB" 1>&6
2244 else
2245   echo "$ac_t""no" 1>&6
2246 fi
2247
2248
2249 if test -z "$ac_cv_prog_RANLIB"; then
2250 if test -n "$ac_tool_prefix"; then
2251   # Extract the first word of "ranlib", so it can be a program name with args.
2252 set dummy ranlib; ac_word=$2
2253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2254 echo "configure:2255: checking for $ac_word" >&5
2255 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2256   echo $ac_n "(cached) $ac_c" 1>&6
2257 else
2258   if test -n "$RANLIB"; then
2259   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2260 else
2261   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2262   ac_dummy="$PATH"
2263   for ac_dir in $ac_dummy; do
2264     test -z "$ac_dir" && ac_dir=.
2265     if test -f $ac_dir/$ac_word; then
2266       ac_cv_prog_RANLIB="ranlib"
2267       break
2268     fi
2269   done
2270   IFS="$ac_save_ifs"
2271   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2272 fi
2273 fi
2274 RANLIB="$ac_cv_prog_RANLIB"
2275 if test -n "$RANLIB"; then
2276   echo "$ac_t""$RANLIB" 1>&6
2277 else
2278   echo "$ac_t""no" 1>&6
2279 fi
2280
2281 else
2282   RANLIB=":"
2283 fi
2284 fi
2285
2286 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2287 set dummy ${ac_tool_prefix}strip; ac_word=$2
2288 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2289 echo "configure:2290: checking for $ac_word" >&5
2290 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2291   echo $ac_n "(cached) $ac_c" 1>&6
2292 else
2293   if test -n "$STRIP"; then
2294   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2295 else
2296   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2297   ac_dummy="$PATH"
2298   for ac_dir in $ac_dummy; do
2299     test -z "$ac_dir" && ac_dir=.
2300     if test -f $ac_dir/$ac_word; then
2301       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2302       break
2303     fi
2304   done
2305   IFS="$ac_save_ifs"
2306 fi
2307 fi
2308 STRIP="$ac_cv_prog_STRIP"
2309 if test -n "$STRIP"; then
2310   echo "$ac_t""$STRIP" 1>&6
2311 else
2312   echo "$ac_t""no" 1>&6
2313 fi
2314
2315
2316 if test -z "$ac_cv_prog_STRIP"; then
2317 if test -n "$ac_tool_prefix"; then
2318   # Extract the first word of "strip", so it can be a program name with args.
2319 set dummy strip; ac_word=$2
2320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2321 echo "configure:2322: checking for $ac_word" >&5
2322 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2323   echo $ac_n "(cached) $ac_c" 1>&6
2324 else
2325   if test -n "$STRIP"; then
2326   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2327 else
2328   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2329   ac_dummy="$PATH"
2330   for ac_dir in $ac_dummy; do
2331     test -z "$ac_dir" && ac_dir=.
2332     if test -f $ac_dir/$ac_word; then
2333       ac_cv_prog_STRIP="strip"
2334       break
2335     fi
2336   done
2337   IFS="$ac_save_ifs"
2338   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2339 fi
2340 fi
2341 STRIP="$ac_cv_prog_STRIP"
2342 if test -n "$STRIP"; then
2343   echo "$ac_t""$STRIP" 1>&6
2344 else
2345   echo "$ac_t""no" 1>&6
2346 fi
2347
2348 else
2349   STRIP=":"
2350 fi
2351 fi
2352
2353
2354 # Check for any special flags to pass to ltconfig.
2355 libtool_flags="--cache-file=$cache_file"
2356 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2357 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2358 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2359 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2360 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2361 libtool_flags="$libtool_flags --enable-dlopen"
2362
2363 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2364 if test "${enable_libtool_lock+set}" = set; then
2365   enableval="$enable_libtool_lock"
2366   :
2367 fi
2368
2369 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2370 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2371
2372 # Check whether --with-pic or --without-pic was given.
2373 if test "${with_pic+set}" = set; then
2374   withval="$with_pic"
2375   pic_mode="$withval"
2376 else
2377   pic_mode=default
2378 fi
2379
2380 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2381 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2382
2383 # Some flags need to be propagated to the compiler or linker for good
2384 # libtool support.
2385 case $host in
2386 *-*-irix6*)
2387   # Find out which ABI we are using.
2388   echo '#line 2389 "configure"' > conftest.$ac_ext
2389   if { (eval echo configure:2390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2390     case `/usr/bin/file conftest.$ac_objext` in
2391     *32-bit*)
2392       LD="${LD-ld} -32"
2393       ;;
2394     *N32*)
2395       LD="${LD-ld} -n32"
2396       ;;
2397     *64-bit*)
2398       LD="${LD-ld} -64"
2399       ;;
2400     esac
2401   fi
2402   rm -rf conftest*
2403   ;;
2404
2405 *-*-sco3.2v5*)
2406   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2407   SAVE_CFLAGS="$CFLAGS"
2408   CFLAGS="$CFLAGS -belf"
2409   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2410 echo "configure:2411: checking whether the C compiler needs -belf" >&5
2411 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2412   echo $ac_n "(cached) $ac_c" 1>&6
2413 else
2414   
2415      ac_ext=c
2416 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2417 ac_cpp='$CPP $CPPFLAGS'
2418 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2419 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2420 cross_compiling=$ac_cv_prog_cc_cross
2421
2422      cat > conftest.$ac_ext <<EOF
2423 #line 2424 "configure"
2424 #include "confdefs.h"
2425
2426 int main() {
2427
2428 ; return 0; }
2429 EOF
2430 if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2431   rm -rf conftest*
2432   lt_cv_cc_needs_belf=yes
2433 else
2434   echo "configure: failed program was:" >&5
2435   cat conftest.$ac_ext >&5
2436   rm -rf conftest*
2437   lt_cv_cc_needs_belf=no
2438 fi
2439 rm -f conftest*
2440      ac_ext=c
2441 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2442 ac_cpp='$CPP $CPPFLAGS'
2443 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2444 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2445 cross_compiling=$ac_cv_prog_cc_cross
2446
2447 fi
2448
2449 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2450   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2451     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2452     CFLAGS="$SAVE_CFLAGS"
2453   fi
2454   ;;
2455
2456
2457 esac
2458
2459 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2460 echo "configure:2461: checking how to run the C++ preprocessor" >&5
2461 if test -z "$CXXCPP"; then
2462 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2463   echo $ac_n "(cached) $ac_c" 1>&6
2464 else
2465   ac_ext=C
2466 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2467 ac_cpp='$CXXCPP $CPPFLAGS'
2468 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2469 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2470 cross_compiling=$ac_cv_prog_cxx_cross
2471   CXXCPP="${CXX-g++} -E"
2472   cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 #include <stdlib.h>
2476 EOF
2477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2478 { (eval echo configure:2479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2480 if test -z "$ac_err"; then
2481   :
2482 else
2483   echo "$ac_err" >&5
2484   echo "configure: failed program was:" >&5
2485   cat conftest.$ac_ext >&5
2486   rm -rf conftest*
2487   CXXCPP=/lib/cpp
2488 fi
2489 rm -f conftest*
2490   ac_cv_prog_CXXCPP="$CXXCPP"
2491 ac_ext=c
2492 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2493 ac_cpp='$CPP $CPPFLAGS'
2494 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2495 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2496 cross_compiling=$ac_cv_prog_cc_cross
2497 fi
2498 fi
2499 CXXCPP="$ac_cv_prog_CXXCPP"
2500 echo "$ac_t""$CXXCPP" 1>&6
2501
2502
2503 # Save cache, so that ltconfig can load it
2504 cat > confcache <<\EOF
2505 # This file is a shell script that caches the results of configure
2506 # tests run on this system so they can be shared between configure
2507 # scripts and configure runs.  It is not useful on other systems.
2508 # If it contains results you don't want to keep, you may remove or edit it.
2509 #
2510 # By default, configure uses ./config.cache as the cache file,
2511 # creating it if it does not exist already.  You can give configure
2512 # the --cache-file=FILE option to use a different cache file; that is
2513 # what configure does when it calls configure scripts in
2514 # subdirectories, so they share the cache.
2515 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2516 # config.status only pays attention to the cache file if you give it the
2517 # --recheck option to rerun configure.
2518 #
2519 EOF
2520 # The following way of writing the cache mishandles newlines in values,
2521 # but we know of no workaround that is simple, portable, and efficient.
2522 # So, don't put newlines in cache variables' values.
2523 # Ultrix sh set writes to stderr and can't be redirected directly,
2524 # and sets the high bit in the cache file unless we assign to the vars.
2525 (set) 2>&1 |
2526   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2527   *ac_space=\ *)
2528     # `set' does not quote correctly, so add quotes (double-quote substitution
2529     # turns \\\\ into \\, and sed turns \\ into \).
2530     sed -n \
2531       -e "s/'/'\\\\''/g" \
2532       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2533     ;;
2534   *)
2535     # `set' quotes correctly as required by POSIX, so do not add quotes.
2536     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2537     ;;
2538   esac >> confcache
2539 if cmp -s $cache_file confcache; then
2540   :
2541 else
2542   if test -w $cache_file; then
2543     echo "updating cache $cache_file"
2544     cat confcache > $cache_file
2545   else
2546     echo "not updating unwritable cache $cache_file"
2547   fi
2548 fi
2549 rm -f confcache
2550
2551
2552 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2553 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2554 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2555 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2556 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2557 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2558 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2559 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2560 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2561 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2562
2563 # Reload cache, that may have been modified by ltconfig
2564 if test -r "$cache_file"; then
2565   echo "loading cache $cache_file"
2566   . $cache_file
2567 else
2568   echo "creating cache $cache_file"
2569   > $cache_file
2570 fi
2571
2572
2573 # This can be used to rebuild libtool when needed
2574 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2575
2576 # Always use our own libtool.
2577 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2578
2579 # Redirect the config.log output again, so that the ltconfig log is not
2580 # clobbered by the next message.
2581 exec 5>>./config.log
2582
2583
2584
2585 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2586 lt_save_CC="$CC"
2587 lt_save_CFLAGS="$CFLAGS"
2588 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2589 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2590 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2591 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2592 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2593 deplibs_check_method="$deplibs_check_method" \
2594 file_magic_cmd="$file_magic_cmd" \
2595 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2596 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2597 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2598 CC="$lt_save_CC"
2599 CFLAGS="$lt_save_CFLAGS"
2600
2601 # Redirect the config.log output again, so that the ltconfig log is not
2602 # clobbered by the next message.
2603 exec 5>>./config.log
2604
2605   
2606
2607   
2608          
2609          
2610
2611
2612
2613 # Check for c++ or library specific bits that don't require linking.
2614 #GLIBCPP_CHECK_COMPILER_VERSION
2615 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2616 echo "configure:2617: checking for GNU make" >&5
2617 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2618   echo $ac_n "(cached) $ac_c" 1>&6
2619 else
2620   _cv_gnu_make_command='' ;
2621           for a in "${MAKE-make}" make gmake gnumake ; do
2622                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2623                   then
2624                           _cv_gnu_make_command=$a ;
2625                           break;
2626                   fi
2627           done ;
2628   
2629 fi
2630
2631 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2632   if test  "x$_cv_gnu_make_command" != "x"  ; then
2633           ifGNUmake='' ;
2634   else
2635           ifGNUmake='#' ;
2636   fi
2637   
2638
2639
2640 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2641 # Check whether --enable-debug or --disable-debug was given.
2642 if test "${enable_debug+set}" = set; then
2643   enableval="$enable_debug"
2644   case "${enableval}" in
2645  yes) enable_debug=yes ;;
2646  no)  enable_debug=no ;;
2647  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2648  esac
2649 else
2650   enable_debug=no
2651 fi
2652
2653 case "${enable_debug}" in
2654     yes) 
2655         DEBUG_FLAGS='-O0 -ggdb3'                        
2656         ;; 
2657     no)   
2658         DEBUG_FLAGS='-g'
2659         ;;
2660 esac
2661
2662
2663 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2664 echo "configure:2665: checking how to run the C preprocessor" >&5
2665 # On Suns, sometimes $CPP names a directory.
2666 if test -n "$CPP" && test -d "$CPP"; then
2667   CPP=
2668 fi
2669 if test -z "$CPP"; then
2670 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2671   echo $ac_n "(cached) $ac_c" 1>&6
2672 else
2673     # This must be in double quotes, not single quotes, because CPP may get
2674   # substituted into the Makefile and "${CC-cc}" will confuse make.
2675   CPP="${CC-cc} -E"
2676   # On the NeXT, cc -E runs the code through the compiler's parser,
2677   # not just through cpp.
2678   cat > conftest.$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2681 #include <assert.h>
2682 Syntax Error
2683 EOF
2684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2685 { (eval echo configure:2686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2687 if test -z "$ac_err"; then
2688   :
2689 else
2690   echo "$ac_err" >&5
2691   echo "configure: failed program was:" >&5
2692   cat conftest.$ac_ext >&5
2693   rm -rf conftest*
2694   CPP="${CC-cc} -E -traditional-cpp"
2695   cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2698 #include <assert.h>
2699 Syntax Error
2700 EOF
2701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2702 { (eval echo configure:2703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2704 if test -z "$ac_err"; then
2705   :
2706 else
2707   echo "$ac_err" >&5
2708   echo "configure: failed program was:" >&5
2709   cat conftest.$ac_ext >&5
2710   rm -rf conftest*
2711   CPP="${CC-cc} -nologo -E"
2712   cat > conftest.$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2715 #include <assert.h>
2716 Syntax Error
2717 EOF
2718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2719 { (eval echo configure:2720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2721 if test -z "$ac_err"; then
2722   :
2723 else
2724   echo "$ac_err" >&5
2725   echo "configure: failed program was:" >&5
2726   cat conftest.$ac_ext >&5
2727   rm -rf conftest*
2728   CPP=/lib/cpp
2729 fi
2730 rm -f conftest*
2731 fi
2732 rm -f conftest*
2733 fi
2734 rm -f conftest*
2735   ac_cv_prog_CPP="$CPP"
2736 fi
2737   CPP="$ac_cv_prog_CPP"
2738 else
2739   ac_cv_prog_CPP="$CPP"
2740 fi
2741 echo "$ac_t""$CPP" 1>&6
2742
2743
2744   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2745 echo "configure:2746: checking for cstdio to use" >&5
2746   # Check whether --enable-cstdio or --disable-cstdio was given.
2747 if test "${enable_cstdio+set}" = set; then
2748   enableval="$enable_cstdio"
2749   if test x$enable_cstdio = xno; then
2750      enable_cstdio=stdio
2751   fi
2752 else
2753   enable_cstdio=stdio
2754 fi
2755
2756
2757   enable_cstdio_flag=$enable_cstdio
2758
2759     case x${enable_cstdio_flag} in
2760     xlibio)
2761       CSTDIO_H=config/io/c_io_libio.h
2762       BASIC_FILE_H=config/io/basic_file_libio.h
2763       BASIC_FILE_CC=config/io/basic_file_libio.cc
2764       echo "$ac_t""libio" 1>&6
2765
2766       # see if we are on a system with libio native (ie, linux)
2767       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2768 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2769 echo "configure:2770: checking for libio.h" >&5
2770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2771   echo $ac_n "(cached) $ac_c" 1>&6
2772 else
2773   cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 #include <libio.h>
2777 EOF
2778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2779 { (eval echo configure:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2781 if test -z "$ac_err"; then
2782   rm -rf conftest*
2783   eval "ac_cv_header_$ac_safe=yes"
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   eval "ac_cv_header_$ac_safe=no"
2790 fi
2791 rm -f conftest*
2792 fi
2793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2794   echo "$ac_t""yes" 1>&6
2795   has_libio=yes
2796 else
2797   echo "$ac_t""no" 1>&6
2798 has_libio=no
2799 fi
2800
2801
2802       # Need to check and see what version of glibc is being used. If
2803       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2804       # compile most of libio for linux systems.
2805       if test x$has_libio = x"yes"; then
2806         case "$target" in
2807           *-*-linux*)
2808               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2809 echo "configure:2810: checking for glibc version >= 2.2" >&5
2810               cat > conftest.$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2813
2814             #include <features.h>
2815               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2816                     ok
2817               #endif
2818               
2819 EOF
2820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2821   egrep "ok" >/dev/null 2>&1; then
2822   rm -rf conftest*
2823   glibc_satisfactory=yes
2824 else
2825   rm -rf conftest*
2826   glibc_satisfactory=no
2827 fi
2828 rm -f conftest*
2829
2830               echo "$ac_t""$glibc_satisfactory" 1>&6
2831             ;;
2832         esac
2833
2834         # XXX at the moment, admit defeat and force the recompilation
2835         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2836         glibc_satisfactory=no        
2837
2838         if test x$glibc_satisfactory = x"yes"; then
2839            need_libio=no
2840            need_wlibio=no        
2841         else
2842            need_libio=yes
2843            # bkoz XXX need to add checks to enable this
2844            # pme XXX here's a first pass at such a check
2845            if test x$enable_c_mbchar != xno; then
2846               need_wlibio=yes
2847            else
2848               need_wlibio=no
2849            fi
2850         fi
2851
2852       else
2853          # Using libio, but <libio.h> doesn't exist on the target system. . .
2854          need_libio=yes
2855          # bkoz XXX need to add checks to enable this
2856          # pme XXX here's a first pass at such a check
2857          if test x$enable_c_mbchar != xno; then
2858              need_wlibio=yes
2859          else
2860              need_wlibio=no
2861          fi
2862       fi
2863       ;;
2864     xstdio | x | xno | xnone | xyes)
2865       # default
2866       CSTDIO_H=config/io/c_io_stdio.h
2867       BASIC_FILE_H=config/io/basic_file_stdio.h
2868       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2869       echo "$ac_t""stdio" 1>&6
2870
2871       # We're not using stdio.
2872       need_libio=no
2873       need_wlibio=no
2874       ;;
2875     *)
2876       echo "$enable_cstdio is an unknown io package" 1>&2
2877       exit 1
2878       ;;
2879   esac
2880   
2881   
2882   
2883
2884   # 2000-08-04 bkoz hack
2885   CCODECVT_C=config/io/c_io_libio_codecvt.c
2886   
2887   # 2000-08-04 bkoz hack
2888
2889   
2890
2891 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2892   GLIBCPP_BUILD_LIBIO_TRUE=
2893   GLIBCPP_BUILD_LIBIO_FALSE='#'
2894 else
2895   GLIBCPP_BUILD_LIBIO_TRUE='#'
2896   GLIBCPP_BUILD_LIBIO_FALSE=
2897 fi
2898   
2899
2900 if test "$need_libio" = yes; then
2901   GLIBCPP_NEED_LIBIO_TRUE=
2902   GLIBCPP_NEED_LIBIO_FALSE='#'
2903 else
2904   GLIBCPP_NEED_LIBIO_TRUE='#'
2905   GLIBCPP_NEED_LIBIO_FALSE=
2906 fi
2907   
2908
2909 if test "$need_wlibio" = yes; then
2910   GLIBCPP_NEED_WLIBIO_TRUE=
2911   GLIBCPP_NEED_WLIBIO_FALSE='#'
2912 else
2913   GLIBCPP_NEED_WLIBIO_TRUE='#'
2914   GLIBCPP_NEED_WLIBIO_FALSE=
2915 fi
2916   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2917     libio_la=../libio/libio.la
2918   else
2919     libio_la=
2920   fi
2921   
2922
2923
2924   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2925 echo "configure:2926: checking for clocale to use" >&5
2926   # Check whether --enable-clocale or --disable-clocale was given.
2927 if test "${enable_clocale+set}" = set; then
2928   enableval="$enable_clocale"
2929   if test x$enable_clocale = xno; then
2930      enable_clocale=no
2931   fi
2932 else
2933   enable_clocale=no
2934 fi
2935
2936
2937   enable_clocale_flag=$enable_clocale
2938
2939       if test x$enable_clocale_flag = xno; then
2940     case x${target_os} in
2941       xlinux* | xgnu*)
2942         cat > conftest.$ac_ext <<EOF
2943 #line 2944 "configure"
2944 #include "confdefs.h"
2945
2946         #include <features.h>
2947         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2948           _GLIBCPP_ok
2949         #endif
2950         
2951 EOF
2952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2953   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2954   rm -rf conftest*
2955   enable_clocale_flag=gnu
2956 else
2957   rm -rf conftest*
2958   enable_clocale_flag=generic
2959 fi
2960 rm -f conftest*
2961
2962
2963         # Test for bugs early in glibc-2.2.x series
2964         if test x$enable_clocale_flag = xgnu; then
2965           if test "$cross_compiling" = yes; then
2966   enable_clocale_flag=generic
2967 else
2968   cat > conftest.$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2971
2972           #define _GNU_SOURCE 1
2973           #include <locale.h>
2974           #include <string.h>
2975           #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
2976           extern __typeof(newlocale) __newlocale;
2977           extern __typeof(duplocale) __duplocale;
2978           extern __typeof(strcoll_l) __strcoll_l;
2979           #endif
2980           int main()
2981           {
2982             const char __one[] = "Äuglein Augmen";
2983             const char __two[] = "Äuglein";
2984             int i;
2985             int j;
2986             __locale_t  loc;
2987             __locale_t  loc_dup;
2988             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
2989             loc_dup = __duplocale(loc);
2990             i = __strcoll_l(__one, __two, loc);
2991             j = __strcoll_l(__one, __two, loc_dup);
2992             return 0;
2993           }
2994           
2995 EOF
2996 if { (eval echo configure:2991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2997 then
2998   enable_clocale_flag=gnu
2999 else
3000   echo "configure: failed program was:" >&5
3001   cat conftest.$ac_ext >&5
3002   rm -fr conftest*
3003   enable_clocale_flag=generic
3004 fi
3005 rm -fr conftest*
3006 fi
3007
3008         fi
3009
3010         # ... at some point put __strxfrm_l tests in as well.
3011         ;;
3012       *)
3013         enable_clocale_flag=generic
3014         ;;
3015     esac
3016   fi
3017
3018     # Check whether --enable-nls or --disable-nls was given.
3019 if test "${enable_nls+set}" = set; then
3020   enableval="$enable_nls"
3021   :
3022 else
3023   enable_nls=yes
3024 fi
3025
3026   USE_NLS=no
3027
3028     case x${enable_clocale_flag} in
3029     xgeneric)
3030       echo "$ac_t""generic" 1>&6
3031
3032       CLOCALE_H=config/locale/generic/c_locale.h
3033       CLOCALE_CC=config/locale/generic/c_locale.cc
3034       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3035       CCOLLATE_CC=config/locale/generic/collate_members.cc
3036       CCTYPE_CC=config/locale/generic/ctype_members.cc
3037       CMESSAGES_H=config/locale/generic/messages_members.h
3038       CMESSAGES_CC=config/locale/generic/messages_members.cc
3039       CMONEY_CC=config/locale/generic/monetary_members.cc
3040       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3041       CTIME_CC=config/locale/generic/time_members.cc
3042       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3043       ;;
3044     xgnu)
3045       echo "$ac_t""gnu" 1>&6
3046
3047       # Declare intention to use gettext, and add support for specific
3048       # languages.
3049       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3050       ALL_LINGUAS="de fr"
3051
3052       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3053       # Extract the first word of "msgfmt", so it can be a program name with args.
3054 set dummy msgfmt; ac_word=$2
3055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3056 echo "configure:3050: checking for $ac_word" >&5
3057 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3058   echo $ac_n "(cached) $ac_c" 1>&6
3059 else
3060   if test -n "$check_msgfmt"; then
3061   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3062 else
3063   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3064   ac_dummy="$PATH"
3065   for ac_dir in $ac_dummy; do
3066     test -z "$ac_dir" && ac_dir=.
3067     if test -f $ac_dir/$ac_word; then
3068       ac_cv_prog_check_msgfmt="yes"
3069       break
3070     fi
3071   done
3072   IFS="$ac_save_ifs"
3073   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3074 fi
3075 fi
3076 check_msgfmt="$ac_cv_prog_check_msgfmt"
3077 if test -n "$check_msgfmt"; then
3078   echo "$ac_t""$check_msgfmt" 1>&6
3079 else
3080   echo "$ac_t""no" 1>&6
3081 fi
3082
3083       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3084         USE_NLS=yes
3085       fi
3086       # Export the build objects.
3087       for ling in $ALL_LINGUAS; do \
3088         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3089         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3090       done
3091       
3092       
3093
3094       CLOCALE_H=config/locale/gnu/c_locale.h
3095       CLOCALE_CC=config/locale/gnu/c_locale.cc
3096       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3097       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3098       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3099       CMESSAGES_H=config/locale/gnu/messages_members.h
3100       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3101       CMONEY_CC=config/locale/gnu/monetary_members.cc
3102       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3103       CTIME_CC=config/locale/gnu/time_members.cc
3104       CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3105       ;;
3106     xieee_1003.1-2001)
3107       echo "$ac_t""generic" 1>&6
3108
3109       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3110       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3111       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3112       CCOLLATE_CC=config/locale/generic/collate_members.cc
3113       CCTYPE_CC=config/locale/generic/ctype_members.cc
3114       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3115       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3116       CMONEY_CC=config/locale/generic/monetary_members.cc
3117       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3118       CTIME_CC=config/locale/generic/time_members.cc
3119       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3120       ;;
3121     *)
3122       echo "$enable_clocale is an unknown locale package" 1>&2
3123       exit 1
3124       ;;
3125   esac
3126
3127   # This is where the testsuite looks for locale catalogs, using the
3128   # -DLOCALEDIR define during testsuite compilation.
3129   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3130   
3131
3132   
3133   
3134   
3135   
3136   
3137   
3138   
3139   
3140   
3141   
3142   
3143
3144 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3145 if test "${enable_c_mbchar+set}" = set; then
3146   enableval="$enable_c_mbchar"
3147   case "$enableval" in
3148  yes) enable_c_mbchar=yes ;;
3149  no)  enable_c_mbchar=no ;;
3150  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3151  esac
3152 else
3153   enable_c_mbchar=yes
3154 fi
3155
3156   
3157   # Check whether --enable-c99 or --disable-c99 was given.
3158 if test "${enable_c99+set}" = set; then
3159   enableval="$enable_c99"
3160     case "$enableval" in
3161    yes) enable_c99=yes ;;
3162    no)  enable_c99=no ;;
3163    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3164    esac
3165 else
3166   enable_c99=yes
3167 fi
3168  
3169   
3170   ac_ext=C
3171 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3172 ac_cpp='$CXXCPP $CPPFLAGS'
3173 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3174 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3175 cross_compiling=$ac_cv_prog_cxx_cross
3176
3177
3178   # Check for the existence of <math.h> functions used if C99 is enabled.
3179   ac_c99_math=yes;
3180   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3181 echo "configure:3173: checking for ISO C99 support in <math.h>" >&5
3182   cat > conftest.$ac_ext <<EOF
3183 #line 3175 "configure"
3184 #include "confdefs.h"
3185 #include <math.h>
3186 int main() {
3187 fpclassify(0.0);
3188 ; return 0; }
3189 EOF
3190 if { (eval echo configure:3182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3191   :
3192 else
3193   echo "configure: failed program was:" >&5
3194   cat conftest.$ac_ext >&5
3195   rm -rf conftest*
3196   ac_c99_math=no
3197 fi
3198 rm -f conftest*
3199   cat > conftest.$ac_ext <<EOF
3200 #line 3192 "configure"
3201 #include "confdefs.h"
3202 #include <math.h>
3203 int main() {
3204 isfinite(0.0);
3205 ; return 0; }
3206 EOF
3207 if { (eval echo configure:3199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3208   :
3209 else
3210   echo "configure: failed program was:" >&5
3211   cat conftest.$ac_ext >&5
3212   rm -rf conftest*
3213   ac_c99_math=no
3214 fi
3215 rm -f conftest*
3216   cat > conftest.$ac_ext <<EOF
3217 #line 3209 "configure"
3218 #include "confdefs.h"
3219 #include <math.h>
3220 int main() {
3221 isinf(0.0);
3222 ; return 0; }
3223 EOF
3224 if { (eval echo configure:3216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3225   :
3226 else
3227   echo "configure: failed program was:" >&5
3228   cat conftest.$ac_ext >&5
3229   rm -rf conftest*
3230   ac_c99_math=no
3231 fi
3232 rm -f conftest*
3233   cat > conftest.$ac_ext <<EOF
3234 #line 3226 "configure"
3235 #include "confdefs.h"
3236 #include <math.h>
3237 int main() {
3238 isnan(0.0);
3239 ; return 0; }
3240 EOF
3241 if { (eval echo configure:3233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3242   :
3243 else
3244   echo "configure: failed program was:" >&5
3245   cat conftest.$ac_ext >&5
3246   rm -rf conftest*
3247   ac_c99_math=no
3248 fi
3249 rm -f conftest*
3250   cat > conftest.$ac_ext <<EOF
3251 #line 3243 "configure"
3252 #include "confdefs.h"
3253 #include <math.h>
3254 int main() {
3255 isnormal(0.0);
3256 ; return 0; }
3257 EOF
3258 if { (eval echo configure:3250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3259   :
3260 else
3261   echo "configure: failed program was:" >&5
3262   cat conftest.$ac_ext >&5
3263   rm -rf conftest*
3264   ac_c99_math=no
3265 fi
3266 rm -f conftest*
3267   cat > conftest.$ac_ext <<EOF
3268 #line 3260 "configure"
3269 #include "confdefs.h"
3270 #include <math.h>
3271 int main() {
3272 signbit(0.0);
3273 ; return 0; }
3274 EOF
3275 if { (eval echo configure:3267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3276   :
3277 else
3278   echo "configure: failed program was:" >&5
3279   cat conftest.$ac_ext >&5
3280   rm -rf conftest*
3281   ac_c99_math=no
3282 fi
3283 rm -f conftest*
3284   cat > conftest.$ac_ext <<EOF
3285 #line 3277 "configure"
3286 #include "confdefs.h"
3287 #include <math.h>
3288 int main() {
3289 isgreater(0.0,0.0);
3290 ; return 0; }
3291 EOF
3292 if { (eval echo configure:3284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3293   :
3294 else
3295   echo "configure: failed program was:" >&5
3296   cat conftest.$ac_ext >&5
3297   rm -rf conftest*
3298   ac_c99_math=no
3299 fi
3300 rm -f conftest*
3301   cat > conftest.$ac_ext <<EOF
3302 #line 3294 "configure"
3303 #include "confdefs.h"
3304 #include <math.h>
3305 int main() {
3306 isgreaterequal(0.0,0.0);
3307 ; return 0; }
3308 EOF
3309 if { (eval echo configure:3301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3310   :
3311 else
3312   echo "configure: failed program was:" >&5
3313   cat conftest.$ac_ext >&5
3314   rm -rf conftest*
3315   ac_c99_math=no
3316 fi
3317 rm -f conftest*
3318   cat > conftest.$ac_ext <<EOF
3319 #line 3311 "configure"
3320 #include "confdefs.h"
3321 #include <math.h>
3322 int main() {
3323 isless(0.0,0.0);
3324 ; return 0; }
3325 EOF
3326 if { (eval echo configure:3318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3327   :
3328 else
3329   echo "configure: failed program was:" >&5
3330   cat conftest.$ac_ext >&5
3331   rm -rf conftest*
3332   ac_c99_math=no
3333 fi
3334 rm -f conftest*
3335   cat > conftest.$ac_ext <<EOF
3336 #line 3328 "configure"
3337 #include "confdefs.h"
3338 #include <math.h>
3339 int main() {
3340 islessequal(0.0,0.0);
3341 ; return 0; }
3342 EOF
3343 if { (eval echo configure:3335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3344   :
3345 else
3346   echo "configure: failed program was:" >&5
3347   cat conftest.$ac_ext >&5
3348   rm -rf conftest*
3349   ac_c99_math=no
3350 fi
3351 rm -f conftest*
3352   cat > conftest.$ac_ext <<EOF
3353 #line 3345 "configure"
3354 #include "confdefs.h"
3355 #include <math.h>
3356 int main() {
3357 islessgreater(0.0,0.0);
3358 ; return 0; }
3359 EOF
3360 if { (eval echo configure:3352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3361   :
3362 else
3363   echo "configure: failed program was:" >&5
3364   cat conftest.$ac_ext >&5
3365   rm -rf conftest*
3366   ac_c99_math=no
3367 fi
3368 rm -f conftest*
3369   cat > conftest.$ac_ext <<EOF
3370 #line 3362 "configure"
3371 #include "confdefs.h"
3372 #include <math.h>
3373 int main() {
3374 isunordered(0.0,0.0);
3375 ; return 0; }
3376 EOF
3377 if { (eval echo configure:3369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3378   :
3379 else
3380   echo "configure: failed program was:" >&5
3381   cat conftest.$ac_ext >&5
3382   rm -rf conftest*
3383   ac_c99_math=no
3384 fi
3385 rm -f conftest*
3386   echo "$ac_t""$ac_c99_math" 1>&6
3387
3388   # Check for the existence in <stdio.h> of vscanf, et. al.
3389   ac_c99_stdio=yes;
3390   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3391 echo "configure:3383: checking for ISO C99 support in <stdio.h>" >&5
3392   cat > conftest.$ac_ext <<EOF
3393 #line 3385 "configure"
3394 #include "confdefs.h"
3395 #include <stdio.h>
3396 int main() {
3397 snprintf("12", 0, "%i");
3398 ; return 0; }
3399 EOF
3400 if { (eval echo configure:3392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3401   :
3402 else
3403   echo "configure: failed program was:" >&5
3404   cat conftest.$ac_ext >&5
3405   rm -rf conftest*
3406   ac_c99_stdio=no
3407 fi
3408 rm -f conftest*
3409   cat > conftest.$ac_ext <<EOF
3410 #line 3402 "configure"
3411 #include "confdefs.h"
3412 #include <stdio.h>
3413                   #include <stdarg.h>
3414                   void foo(char* fmt, ...)
3415                   {va_list args; va_start(args, fmt);
3416                   vfscanf(stderr, "%i", args);}
3417 int main() {
3418
3419 ; return 0; }
3420 EOF
3421 if { (eval echo configure:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3422   :
3423 else
3424   echo "configure: failed program was:" >&5
3425   cat conftest.$ac_ext >&5
3426   rm -rf conftest*
3427   ac_c99_stdio=no
3428 fi
3429 rm -f conftest*
3430   cat > conftest.$ac_ext <<EOF
3431 #line 3423 "configure"
3432 #include "confdefs.h"
3433 #include <stdio.h>
3434                   #include <stdarg.h>
3435                   void foo(char* fmt, ...)
3436                   {va_list args; va_start(args, fmt);
3437                   vscanf("%i", args);}
3438 int main() {
3439
3440 ; return 0; }
3441 EOF
3442 if { (eval echo configure:3434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3443   :
3444 else
3445   echo "configure: failed program was:" >&5
3446   cat conftest.$ac_ext >&5
3447   rm -rf conftest*
3448   ac_c99_stdio=no
3449 fi
3450 rm -f conftest*
3451   cat > conftest.$ac_ext <<EOF
3452 #line 3444 "configure"
3453 #include "confdefs.h"
3454 #include <stdio.h>
3455                   #include <stdarg.h>
3456                   void foo(char* fmt, ...)
3457                   {va_list args; va_start(args, fmt);
3458                   vsnprintf(fmt, 0, "%i", args);}
3459 int main() {
3460
3461 ; return 0; }
3462 EOF
3463 if { (eval echo configure:3455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3464   :
3465 else
3466   echo "configure: failed program was:" >&5
3467   cat conftest.$ac_ext >&5
3468   rm -rf conftest*
3469   ac_c99_stdio=no
3470 fi
3471 rm -f conftest*
3472   cat > conftest.$ac_ext <<EOF
3473 #line 3465 "configure"
3474 #include "confdefs.h"
3475 #include <stdio.h>
3476                   #include <stdarg.h>
3477                   void foo(char* fmt, ...)
3478                   {va_list args; va_start(args, fmt);
3479                   vsscanf(fmt, "%i", args);}
3480 int main() {
3481
3482 ; return 0; }
3483 EOF
3484 if { (eval echo configure:3476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3485   :
3486 else
3487   echo "configure: failed program was:" >&5
3488   cat conftest.$ac_ext >&5
3489   rm -rf conftest*
3490   ac_c99_stdio=no
3491 fi
3492 rm -f conftest*
3493   echo "$ac_t""$ac_c99_stdio" 1>&6
3494
3495   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3496   ac_c99_stdlib=yes;
3497   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3498 echo "configure:3490: checking for lldiv_t declaration" >&5
3499   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3500   echo $ac_n "(cached) $ac_c" 1>&6
3501 else
3502   
3503   cat > conftest.$ac_ext <<EOF
3504 #line 3496 "configure"
3505 #include "confdefs.h"
3506 #include <stdlib.h>
3507 int main() {
3508  lldiv_t mydivt;
3509 ; return 0; }
3510 EOF
3511 if { (eval echo configure:3503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3512   rm -rf conftest*
3513   ac_c99_lldiv_t=yes
3514 else
3515   echo "configure: failed program was:" >&5
3516   cat conftest.$ac_ext >&5
3517   rm -rf conftest*
3518   ac_c99_lldiv_t=no
3519 fi
3520 rm -f conftest*
3521   
3522 fi
3523
3524   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3525
3526   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3527 echo "configure:3519: checking for ISO C99 support in <stdlib.h>" >&5
3528   cat > conftest.$ac_ext <<EOF
3529 #line 3521 "configure"
3530 #include "confdefs.h"
3531 #include <stdlib.h>
3532 int main() {
3533 char* tmp; strtof("gnu", &tmp);
3534 ; return 0; }
3535 EOF
3536 if { (eval echo configure:3528: \"$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_stdlib=no
3543 fi
3544 rm -f conftest*
3545   cat > conftest.$ac_ext <<EOF
3546 #line 3538 "configure"
3547 #include "confdefs.h"
3548 #include <stdlib.h>
3549 int main() {
3550 char* tmp; strtold("gnu", &tmp);
3551 ; return 0; }
3552 EOF
3553 if { (eval echo configure:3545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3554   :
3555 else
3556   echo "configure: failed program was:" >&5
3557   cat conftest.$ac_ext >&5
3558   rm -rf conftest*
3559   ac_c99_stdlib=no
3560 fi
3561 rm -f conftest*
3562   cat > conftest.$ac_ext <<EOF
3563 #line 3555 "configure"
3564 #include "confdefs.h"
3565 #include <stdlib.h>
3566 int main() {
3567 llabs(10);
3568 ; return 0; }
3569 EOF
3570 if { (eval echo configure:3562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3571   :
3572 else
3573   echo "configure: failed program was:" >&5
3574   cat conftest.$ac_ext >&5
3575   rm -rf conftest*
3576   ac_c99_stdlib=no
3577 fi
3578 rm -f conftest*
3579   cat > conftest.$ac_ext <<EOF
3580 #line 3572 "configure"
3581 #include "confdefs.h"
3582 #include <stdlib.h>
3583 int main() {
3584 lldiv(10,1);
3585 ; return 0; }
3586 EOF
3587 if { (eval echo configure:3579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3588   :
3589 else
3590   echo "configure: failed program was:" >&5
3591   cat conftest.$ac_ext >&5
3592   rm -rf conftest*
3593   ac_c99_stdlib=no
3594 fi
3595 rm -f conftest*
3596   cat > conftest.$ac_ext <<EOF
3597 #line 3589 "configure"
3598 #include "confdefs.h"
3599 #include <stdlib.h>
3600 int main() {
3601 atoll("10");
3602 ; return 0; }
3603 EOF
3604 if { (eval echo configure:3596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3605   :
3606 else
3607   echo "configure: failed program was:" >&5
3608   cat conftest.$ac_ext >&5
3609   rm -rf conftest*
3610   ac_c99_stdlib=no
3611 fi
3612 rm -f conftest*
3613   cat > conftest.$ac_ext <<EOF
3614 #line 3606 "configure"
3615 #include "confdefs.h"
3616 #include <stdlib.h>
3617 int main() {
3618 _Exit(0);
3619 ; return 0; }
3620 EOF
3621 if { (eval echo configure:3613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3622   :
3623 else
3624   echo "configure: failed program was:" >&5
3625   cat conftest.$ac_ext >&5
3626   rm -rf conftest*
3627   ac_c99_stdlib=no
3628 fi
3629 rm -f conftest*
3630   if test x"$ac_c99_lldiv_t" = x"no"; then
3631     ac_c99_stdlib=no; 
3632   fi; 
3633   echo "$ac_t""$ac_c99_stdlib" 1>&6
3634
3635   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3636   # XXX the wchar.h checks should be rolled into the general C99 bits.
3637   ac_c99_wchar=yes;
3638   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3639 echo "configure:3631: checking for additional ISO C99 support in <wchar.h>" >&5
3640   cat > conftest.$ac_ext <<EOF
3641 #line 3633 "configure"
3642 #include "confdefs.h"
3643 #include <wchar.h>
3644 int main() {
3645 wcstold(L"10.0", NULL);
3646 ; return 0; }
3647 EOF
3648 if { (eval echo configure:3640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3649   :
3650 else
3651   echo "configure: failed program was:" >&5
3652   cat conftest.$ac_ext >&5
3653   rm -rf conftest*
3654   ac_c99_wchar=no
3655 fi
3656 rm -f conftest*
3657   cat > conftest.$ac_ext <<EOF
3658 #line 3650 "configure"
3659 #include "confdefs.h"
3660 #include <wchar.h>
3661 int main() {
3662 wcstoll(L"10", NULL, 10);
3663 ; return 0; }
3664 EOF
3665 if { (eval echo configure:3657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3666   :
3667 else
3668   echo "configure: failed program was:" >&5
3669   cat conftest.$ac_ext >&5
3670   rm -rf conftest*
3671   ac_c99_wchar=no
3672 fi
3673 rm -f conftest*
3674   cat > conftest.$ac_ext <<EOF
3675 #line 3667 "configure"
3676 #include "confdefs.h"
3677 #include <wchar.h>
3678 int main() {
3679 wcstoull(L"10", NULL, 10);
3680 ; return 0; }
3681 EOF
3682 if { (eval echo configure:3674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3683   :
3684 else
3685   echo "configure: failed program was:" >&5
3686   cat conftest.$ac_ext >&5
3687   rm -rf conftest*
3688   ac_c99_wchar=no
3689 fi
3690 rm -f conftest*
3691   echo "$ac_t""$ac_c99_wchar" 1>&6
3692
3693   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3694 echo "configure:3686: checking for enabled ISO C99 support" >&5
3695   if test x"$ac_c99_math" = x"no" ||
3696      test x"$ac_c99_stdio" = x"no" ||
3697      test x"$ac_c99_stdlib" = x"no" ||
3698      test x"$ac_c99_wchar" = x"no"; then
3699     enable_c99=no; 
3700   fi; 
3701   echo "$ac_t""$enable_c99" 1>&6
3702
3703   # Option parsed, now set things appropriately
3704   if test x"$enable_c99" = x"yes"; then
3705     cat >> confdefs.h <<\EOF
3706 #define _GLIBCPP_USE_C99 1
3707 EOF
3708
3709   fi
3710
3711   ac_ext=c
3712 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3715 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3716 cross_compiling=$ac_cv_prog_cc_cross
3717
3718
3719   
3720   # Check whether --enable-long-long or --disable-long-long was given.
3721 if test "${enable_long_long+set}" = set; then
3722   enableval="$enable_long_long"
3723     case "$enableval" in
3724    yes) enable_long_long=yes ;;
3725    no)  enable_long_long=no ;;
3726    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3727    esac
3728 else
3729   enable_long_long=yes
3730 fi
3731
3732   
3733   ac_ext=C
3734 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3735 ac_cpp='$CXXCPP $CPPFLAGS'
3736 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3737 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3738 cross_compiling=$ac_cv_prog_cxx_cross
3739
3740
3741   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3742 echo "configure:3734: checking for enabled long long I/O support" >&5
3743   # iostreams require strtoll, strtoull to compile
3744   cat > conftest.$ac_ext <<EOF
3745 #line 3737 "configure"
3746 #include "confdefs.h"
3747 #include <stdlib.h>
3748 int main() {
3749 char* tmp; strtoll("gnu", &tmp, 10);
3750 ; return 0; }
3751 EOF
3752 if { (eval echo configure:3744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3753   :
3754 else
3755   echo "configure: failed program was:" >&5
3756   cat conftest.$ac_ext >&5
3757   rm -rf conftest*
3758   enable_long_long=no
3759 fi
3760 rm -f conftest*
3761   cat > conftest.$ac_ext <<EOF
3762 #line 3754 "configure"
3763 #include "confdefs.h"
3764 #include <stdlib.h>
3765 int main() {
3766 char* tmp; strtoull("gnu", &tmp, 10);
3767 ; return 0; }
3768 EOF
3769 if { (eval echo configure:3761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3770   :
3771 else
3772   echo "configure: failed program was:" >&5
3773   cat conftest.$ac_ext >&5
3774   rm -rf conftest*
3775   enable_long_long=no
3776 fi
3777 rm -f conftest*
3778
3779   # Option parsed, now set things appropriately
3780   if test x"$enable_long_long" = xyes; then
3781     cat >> confdefs.h <<\EOF
3782 #define _GLIBCPP_USE_LONG_LONG 1
3783 EOF
3784
3785   fi
3786   echo "$ac_t""$enable_long_long" 1>&6
3787
3788   ac_ext=c
3789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3793 cross_compiling=$ac_cv_prog_cc_cross
3794
3795
3796 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3797 echo "configure:3789: checking for c header strategy to use" >&5
3798 # Check whether --enable-cheaders or --disable-cheaders was given.
3799 if test "${enable_cheaders+set}" = set; then
3800   enableval="$enable_cheaders"
3801   
3802   case "$enableval" in
3803    c) 
3804         enable_cheaders=c 
3805         ;;
3806    c_std)  
3807         enable_cheaders=c_std 
3808         ;;
3809    c_shadow)  
3810         enable_cheaders=c_shadow 
3811         ;;
3812    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3813         ;;
3814   esac
3815 else
3816   enable_cheaders=c_std
3817 fi
3818
3819   echo "$ac_t""$enable_cheaders" 1>&6
3820
3821     case "$enable_cheaders" in
3822     c_shadow) 
3823         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3824         ;;
3825     c_std)   
3826         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3827         ;;
3828     c)   
3829         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3830         ;;
3831   esac
3832
3833   
3834   
3835
3836 if test "$enable_cheaders" = c; then
3837   GLIBCPP_C_HEADERS_C_TRUE=
3838   GLIBCPP_C_HEADERS_C_FALSE='#'
3839 else
3840   GLIBCPP_C_HEADERS_C_TRUE='#'
3841   GLIBCPP_C_HEADERS_C_FALSE=
3842 fi
3843   
3844
3845 if test "$enable_cheaders" = c_std; then
3846   GLIBCPP_C_HEADERS_C_STD_TRUE=
3847   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3848 else
3849   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3850   GLIBCPP_C_HEADERS_C_STD_FALSE=
3851 fi
3852   
3853
3854 if test "$c_compatibility" = yes; then
3855   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3856   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3857 else
3858   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3859   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3860 fi
3861
3862
3863   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3864 echo "configure:3856: checking for thread model used by GCC" >&5
3865   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3866   echo "$ac_t""$target_thread_file" 1>&6
3867
3868   if test $target_thread_file != single; then
3869     cat >> confdefs.h <<\EOF
3870 #define HAVE_GTHR_DEFAULT 1
3871 EOF
3872
3873     cat >> confdefs.h <<\EOF
3874 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3875 EOF
3876
3877   fi
3878
3879   glibcpp_thread_h=gthr-$target_thread_file.h
3880   
3881
3882 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3883 if test "${enable_cxx_flags+set}" = set; then
3884   enableval="$enable_cxx_flags"
3885   case "x$enableval" in
3886  xyes)   
3887         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3888  xno|x)  
3889         enable_cxx_flags='' ;;
3890  *)      
3891         enable_cxx_flags="$enableval" ;;
3892  esac
3893 else
3894   enable_cxx_flags='none'
3895 fi
3896
3897
3898 if test "$enable_cxx_flags" = "none"; then 
3899   enable_cxx_flags=''; 
3900 fi
3901
3902 if test -n "$enable_cxx_flags"; then
3903     for f in $enable_cxx_flags; do
3904         case "$f" in
3905             -fhonor-std)  ;;
3906             -*)  ;;
3907             *)   # and we're trying to pass /what/ exactly?
3908                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3909         esac
3910     done
3911 fi
3912 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3913
3914
3915
3916   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3917 echo "configure:3909: checking for exception model to use" >&5
3918   
3919   ac_ext=C
3920 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3921 ac_cpp='$CXXCPP $CPPFLAGS'
3922 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3923 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3924 cross_compiling=$ac_cv_prog_cxx_cross
3925
3926   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3927 if test "${enable_sjlj_exceptions+set}" = set; then
3928   enableval="$enable_sjlj_exceptions"
3929   :
3930 else
3931                        cat > conftest.$ac_ext << EOF
3932 #line 3924 "configure"
3933 struct S { ~S(); };
3934 void bar();
3935 void foo()
3936 {
3937   S s;
3938   bar();
3939 }
3940 EOF
3941    old_CXXFLAGS="$CXXFLAGS"  
3942    CXXFLAGS=-S
3943    if { (eval echo configure:3935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3944      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3945        enable_sjlj_exceptions=yes
3946      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3947        enable_sjlj_exceptions=no
3948      fi
3949    fi
3950    CXXFLAGS="$old_CXXFLAGS"
3951    rm -f conftest*
3952 fi
3953
3954    if test x$enable_sjlj_exceptions = xyes; then
3955      cat >> confdefs.h <<\EOF
3956 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3957 EOF
3958
3959      ac_exception_model_name=sjlj
3960    elif test x$enable_sjlj_exceptions = xno; then
3961      ac_exception_model_name="call frame"
3962    else
3963      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3964    fi
3965    ac_ext=c
3966 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3969 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3970 cross_compiling=$ac_cv_prog_cc_cross
3971
3972    echo "$ac_t""$ac_exception_model_name" 1>&6
3973
3974
3975   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
3976 echo "configure:3968: checking for use of libunwind" >&5
3977   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
3978 if test "${enable_libunwind_exceptions+set}" = set; then
3979   enableval="$enable_libunwind_exceptions"
3980   use_libunwind_exceptions=$enableval
3981 else
3982   use_libunwind_exceptions=no
3983 fi
3984
3985   echo "$ac_t""$use_libunwind_exceptions" 1>&6
3986     if test x"$use_libunwind_exceptions" = xyes; then
3987     LIBUNWIND_FLAG="-lunwind"
3988   else
3989     LIBUNWIND_FLAG=""
3990   fi
3991   
3992
3993 # Check whether --enable-concept-checks or --disable-concept-checks was given.
3994 if test "${enable_concept_checks+set}" = set; then
3995   enableval="$enable_concept_checks"
3996   case "$enableval" in
3997  yes) enable_concept_checks=yes ;;
3998  no)  enable_concept_checks=no ;;
3999  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4000  esac
4001 else
4002   enable_concept_checks=no
4003 fi
4004 if test x"$enable_concept_checks" = xyes; then
4005   cat >> confdefs.h <<\EOF
4006 #define _GLIBCPP_CONCEPT_CHECKS 1
4007 EOF
4008
4009 fi
4010
4011
4012 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4013 for ac_hdr in string.h stdlib.h
4014 do
4015 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4016 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4017 echo "configure:4009: checking for $ac_hdr" >&5
4018 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4019   echo $ac_n "(cached) $ac_c" 1>&6
4020 else
4021   cat > conftest.$ac_ext <<EOF
4022 #line 4014 "configure"
4023 #include "confdefs.h"
4024 #include <$ac_hdr>
4025 EOF
4026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4027 { (eval echo configure:4019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4029 if test -z "$ac_err"; then
4030   rm -rf conftest*
4031   eval "ac_cv_header_$ac_safe=yes"
4032 else
4033   echo "$ac_err" >&5
4034   echo "configure: failed program was:" >&5
4035   cat conftest.$ac_ext >&5
4036   rm -rf conftest*
4037   eval "ac_cv_header_$ac_safe=no"
4038 fi
4039 rm -f conftest*
4040 fi
4041 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4042   echo "$ac_t""yes" 1>&6
4043     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4044   cat >> confdefs.h <<EOF
4045 #define $ac_tr_hdr 1
4046 EOF
4047  
4048 else
4049   echo "$ac_t""no" 1>&6
4050 fi
4051 done
4052
4053
4054 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4055
4056   # We are being configured with some form of cross compiler.
4057   GLIBCPP_IS_CROSS_COMPILING=1
4058
4059   # This lets us hard-code the functionality we know we'll have in the cross
4060   # target environment.  "Let" is a sugar-coated word placed on an especially
4061   # dull and tedious hack, actually.
4062   #
4063   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4064   # that involve linking, can't be used:
4065   #    "cannot open sim-crt0.o"
4066   #    "cannot open crt0.o"
4067   # etc.  All this is because there currently exists no unified, consistent
4068   # way for top level CC information to be passed down to target directories:
4069   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4070   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4071   # crosses can be removed.
4072
4073   # If Canadian cross, then don't pick up tools from the build directory.
4074   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4075   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4076     CANADIAN=yes
4077   else
4078     CANADIAN=no
4079   fi
4080
4081   # Construct crosses by hand, eliminating bits that need ld...
4082   # GLIBCPP_CHECK_COMPILER_FEATURES
4083   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4084   # GLIBCPP_CHECK_MATH_SUPPORT
4085
4086   case "$target_alias" in
4087     *-linux*)
4088       os_include_dir="os/gnu-linux"
4089       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4090         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4091         fp.h locale.h float.h inttypes.h
4092 do
4093 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4094 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4095 echo "configure:4087: checking for $ac_hdr" >&5
4096 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4097   echo $ac_n "(cached) $ac_c" 1>&6
4098 else
4099   cat > conftest.$ac_ext <<EOF
4100 #line 4092 "configure"
4101 #include "confdefs.h"
4102 #include <$ac_hdr>
4103 EOF
4104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4105 { (eval echo configure:4097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4107 if test -z "$ac_err"; then
4108   rm -rf conftest*
4109   eval "ac_cv_header_$ac_safe=yes"
4110 else
4111   echo "$ac_err" >&5
4112   echo "configure: failed program was:" >&5
4113   cat conftest.$ac_ext >&5
4114   rm -rf conftest*
4115   eval "ac_cv_header_$ac_safe=no"
4116 fi
4117 rm -f conftest*
4118 fi
4119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4120   echo "$ac_t""yes" 1>&6
4121     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4122   cat >> confdefs.h <<EOF
4123 #define $ac_tr_hdr 1
4124 EOF
4125  
4126 else
4127   echo "$ac_t""no" 1>&6
4128 fi
4129 done
4130
4131       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4132       
4133       
4134   # If we're not using GNU ld, then there's no point in even trying these
4135   # tests.  Check for that first.  We should have already tested for gld
4136   # by now (in libtool), but require it now just to be safe...
4137   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4138   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4139   
4140
4141   # The name set by libtool depends on the version of libtool.  Shame on us
4142   # for depending on an impl detail, but c'est la vie.  Older versions used
4143   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4144   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4145   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4146   # set (hence we're using an older libtool), then set it.
4147   if test x${with_gnu_ld+set} != xset; then
4148     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4149       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4150       with_gnu_ld=no
4151     else
4152       with_gnu_ld=$ac_cv_prog_gnu_ld
4153     fi
4154   fi
4155
4156   # Start by getting the version number.  I think the libtool test already
4157   # does some of this, but throws away the result.
4158   
4159   ldver=`$LD --version 2>/dev/null | head -1 | \
4160          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4161   
4162   glibcpp_gnu_ld_version=`echo $ldver | \
4163          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4164
4165   # Set --gc-sections.
4166   if test "$with_gnu_ld" = "notbroken"; then
4167     # GNU ld it is!  Joy and bunny rabbits!
4168
4169     # All these tests are for C++; save the language and the compiler flags.
4170     # Need to do this so that g++ won't try to link in libstdc++
4171     ac_test_CFLAGS="${CFLAGS+set}"
4172     ac_save_CFLAGS="$CFLAGS"
4173     CFLAGS='-x c++  -Wl,--gc-sections'
4174
4175     # Check for -Wl,--gc-sections
4176     # XXX This test is broken at the moment, as symbols required for
4177     # linking are now in libsupc++ (not built yet.....). In addition, 
4178     # this test has cored on solaris in the past. In addition,
4179     # --gc-sections doesn't really work at the moment (keeps on discarding
4180     # used sections, first .eh_frame and now some of the glibc sections for
4181     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4182     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4183 echo "configure:4175: checking for ld that supports -Wl,--gc-sections" >&5
4184     if test "$cross_compiling" = yes; then
4185   ac_sectionLDflags=yes
4186 else
4187   cat > conftest.$ac_ext <<EOF
4188 #line 4180 "configure"
4189 #include "confdefs.h"
4190
4191      int main(void) 
4192      {
4193        try { throw 1; }
4194        catch (...) { };
4195        return 0;
4196      }
4197     
4198 EOF
4199 if { (eval echo configure:4191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4200 then
4201   ac_sectionLDflags=yes
4202 else
4203   echo "configure: failed program was:" >&5
4204   cat conftest.$ac_ext >&5
4205   rm -fr conftest*
4206   ac_sectionLDflags=no
4207 fi
4208 rm -fr conftest*
4209 fi
4210
4211     if test "$ac_test_CFLAGS" = set; then
4212       CFLAGS="$ac_save_CFLAGS"
4213     else
4214       # this is the suspicious part
4215       CFLAGS=''
4216     fi
4217     if test "$ac_sectionLDflags" = "yes"; then
4218       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4219     fi
4220     echo "$ac_t""$ac_sectionLDflags" 1>&6
4221   fi
4222
4223   # Set linker optimization flags.
4224   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4225     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4226   fi
4227
4228   
4229   
4230
4231       
4232     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4233 echo "configure:4225: checking for main in -lm" >&5
4234 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4236   echo $ac_n "(cached) $ac_c" 1>&6
4237 else
4238   ac_save_LIBS="$LIBS"
4239 LIBS="-lm  $LIBS"
4240 cat > conftest.$ac_ext <<EOF
4241 #line 4233 "configure"
4242 #include "confdefs.h"
4243
4244 int main() {
4245 main()
4246 ; return 0; }
4247 EOF
4248 if { (eval echo configure:4240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4249   rm -rf conftest*
4250   eval "ac_cv_lib_$ac_lib_var=yes"
4251 else
4252   echo "configure: failed program was:" >&5
4253   cat conftest.$ac_ext >&5
4254   rm -rf conftest*
4255   eval "ac_cv_lib_$ac_lib_var=no"
4256 fi
4257 rm -f conftest*
4258 LIBS="$ac_save_LIBS"
4259
4260 fi
4261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4262   echo "$ac_t""yes" 1>&6
4263     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4264     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4265   cat >> confdefs.h <<EOF
4266 #define $ac_tr_lib 1
4267 EOF
4268
4269   LIBS="-lm $LIBS"
4270
4271 else
4272   echo "$ac_t""no" 1>&6
4273 fi
4274
4275   for ac_func in nan copysignf
4276 do
4277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4278 echo "configure:4270: checking for $ac_func" >&5
4279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4280   echo $ac_n "(cached) $ac_c" 1>&6
4281 else
4282   cat > conftest.$ac_ext <<EOF
4283 #line 4275 "configure"
4284 #include "confdefs.h"
4285 /* System header to define __stub macros and hopefully few prototypes,
4286     which can conflict with char $ac_func(); below.  */
4287 #include <assert.h>
4288 /* Override any gcc2 internal prototype to avoid an error.  */
4289 /* We use char because int might match the return type of a gcc2
4290     builtin and then its argument prototype would still apply.  */
4291 char $ac_func();
4292
4293 int main() {
4294
4295 /* The GNU C library defines this for functions which it implements
4296     to always fail with ENOSYS.  Some functions are actually named
4297     something starting with __ and the normal name is an alias.  */
4298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4299 choke me
4300 #else
4301 $ac_func();
4302 #endif
4303
4304 ; return 0; }
4305 EOF
4306 if { (eval echo configure:4298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4307   rm -rf conftest*
4308   eval "ac_cv_func_$ac_func=yes"
4309 else
4310   echo "configure: failed program was:" >&5
4311   cat conftest.$ac_ext >&5
4312   rm -rf conftest*
4313   eval "ac_cv_func_$ac_func=no"
4314 fi
4315 rm -f conftest*
4316 fi
4317
4318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4319   echo "$ac_t""yes" 1>&6
4320     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4321   cat >> confdefs.h <<EOF
4322 #define $ac_tr_func 1
4323 EOF
4324  
4325 else
4326   echo "$ac_t""no" 1>&6
4327 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4328 fi
4329 done
4330
4331
4332     for ac_func in __signbit
4333 do
4334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4335 echo "configure:4327: checking for $ac_func" >&5
4336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4337   echo $ac_n "(cached) $ac_c" 1>&6
4338 else
4339   cat > conftest.$ac_ext <<EOF
4340 #line 4332 "configure"
4341 #include "confdefs.h"
4342 /* System header to define __stub macros and hopefully few prototypes,
4343     which can conflict with char $ac_func(); below.  */
4344 #include <assert.h>
4345 /* Override any gcc2 internal prototype to avoid an error.  */
4346 /* We use char because int might match the return type of a gcc2
4347     builtin and then its argument prototype would still apply.  */
4348 char $ac_func();
4349
4350 int main() {
4351
4352 /* The GNU C library defines this for functions which it implements
4353     to always fail with ENOSYS.  Some functions are actually named
4354     something starting with __ and the normal name is an alias.  */
4355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4356 choke me
4357 #else
4358 $ac_func();
4359 #endif
4360
4361 ; return 0; }
4362 EOF
4363 if { (eval echo configure:4355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4364   rm -rf conftest*
4365   eval "ac_cv_func_$ac_func=yes"
4366 else
4367   echo "configure: failed program was:" >&5
4368   cat conftest.$ac_ext >&5
4369   rm -rf conftest*
4370   eval "ac_cv_func_$ac_func=no"
4371 fi
4372 rm -f conftest*
4373 fi
4374
4375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4376   echo "$ac_t""yes" 1>&6
4377     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4378   cat >> confdefs.h <<EOF
4379 #define $ac_tr_func 1
4380 EOF
4381  
4382 else
4383   echo "$ac_t""no" 1>&6
4384 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4385 fi
4386 done
4387
4388   for ac_func in __signbitf
4389 do
4390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4391 echo "configure:4383: checking for $ac_func" >&5
4392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4393   echo $ac_n "(cached) $ac_c" 1>&6
4394 else
4395   cat > conftest.$ac_ext <<EOF
4396 #line 4388 "configure"
4397 #include "confdefs.h"
4398 /* System header to define __stub macros and hopefully few prototypes,
4399     which can conflict with char $ac_func(); below.  */
4400 #include <assert.h>
4401 /* Override any gcc2 internal prototype to avoid an error.  */
4402 /* We use char because int might match the return type of a gcc2
4403     builtin and then its argument prototype would still apply.  */
4404 char $ac_func();
4405
4406 int main() {
4407
4408 /* The GNU C library defines this for functions which it implements
4409     to always fail with ENOSYS.  Some functions are actually named
4410     something starting with __ and the normal name is an alias.  */
4411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4412 choke me
4413 #else
4414 $ac_func();
4415 #endif
4416
4417 ; return 0; }
4418 EOF
4419 if { (eval echo configure:4411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4420   rm -rf conftest*
4421   eval "ac_cv_func_$ac_func=yes"
4422 else
4423   echo "configure: failed program was:" >&5
4424   cat conftest.$ac_ext >&5
4425   rm -rf conftest*
4426   eval "ac_cv_func_$ac_func=no"
4427 fi
4428 rm -f conftest*
4429 fi
4430
4431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4432   echo "$ac_t""yes" 1>&6
4433     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4434   cat >> confdefs.h <<EOF
4435 #define $ac_tr_func 1
4436 EOF
4437  
4438 else
4439   echo "$ac_t""no" 1>&6
4440 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4441 fi
4442 done
4443
4444
4445           if test x$ac_cv_func_copysignl = x"yes"; then
4446     for ac_func in __signbitl
4447 do
4448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4449 echo "configure:4441: checking for $ac_func" >&5
4450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4451   echo $ac_n "(cached) $ac_c" 1>&6
4452 else
4453   cat > conftest.$ac_ext <<EOF
4454 #line 4446 "configure"
4455 #include "confdefs.h"
4456 /* System header to define __stub macros and hopefully few prototypes,
4457     which can conflict with char $ac_func(); below.  */
4458 #include <assert.h>
4459 /* Override any gcc2 internal prototype to avoid an error.  */
4460 /* We use char because int might match the return type of a gcc2
4461     builtin and then its argument prototype would still apply.  */
4462 char $ac_func();
4463
4464 int main() {
4465
4466 /* The GNU C library defines this for functions which it implements
4467     to always fail with ENOSYS.  Some functions are actually named
4468     something starting with __ and the normal name is an alias.  */
4469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4470 choke me
4471 #else
4472 $ac_func();
4473 #endif
4474
4475 ; return 0; }
4476 EOF
4477 if { (eval echo configure:4469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4478   rm -rf conftest*
4479   eval "ac_cv_func_$ac_func=yes"
4480 else
4481   echo "configure: failed program was:" >&5
4482   cat conftest.$ac_ext >&5
4483   rm -rf conftest*
4484   eval "ac_cv_func_$ac_func=no"
4485 fi
4486 rm -f conftest*
4487 fi
4488
4489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4490   echo "$ac_t""yes" 1>&6
4491     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4492   cat >> confdefs.h <<EOF
4493 #define $ac_tr_func 1
4494 EOF
4495  
4496 else
4497   echo "$ac_t""no" 1>&6
4498 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4499 fi
4500 done
4501
4502   fi
4503
4504   
4505
4506       
4507
4508       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4509 echo "configure:4501: checking for mbstate_t" >&5
4510   cat > conftest.$ac_ext <<EOF
4511 #line 4503 "configure"
4512 #include "confdefs.h"
4513 #include <wchar.h>
4514 int main() {
4515 mbstate_t teststate;
4516 ; return 0; }
4517 EOF
4518 if { (eval echo configure:4510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4519   rm -rf conftest*
4520   have_mbstate_t=yes
4521 else
4522   echo "configure: failed program was:" >&5
4523   cat conftest.$ac_ext >&5
4524   rm -rf conftest*
4525   have_mbstate_t=no
4526 fi
4527 rm -f conftest*
4528   echo "$ac_t""$have_mbstate_t" 1>&6
4529   if test x"$have_mbstate_t" = xyes; then
4530     cat >> confdefs.h <<\EOF
4531 #define HAVE_MBSTATE_T 1
4532 EOF
4533
4534   fi
4535
4536     for ac_hdr in wchar.h
4537 do
4538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4540 echo "configure:4532: checking for $ac_hdr" >&5
4541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4542   echo $ac_n "(cached) $ac_c" 1>&6
4543 else
4544   cat > conftest.$ac_ext <<EOF
4545 #line 4537 "configure"
4546 #include "confdefs.h"
4547 #include <$ac_hdr>
4548 EOF
4549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4550 { (eval echo configure:4542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4552 if test -z "$ac_err"; then
4553   rm -rf conftest*
4554   eval "ac_cv_header_$ac_safe=yes"
4555 else
4556   echo "$ac_err" >&5
4557   echo "configure: failed program was:" >&5
4558   cat conftest.$ac_ext >&5
4559   rm -rf conftest*
4560   eval "ac_cv_header_$ac_safe=no"
4561 fi
4562 rm -f conftest*
4563 fi
4564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4565   echo "$ac_t""yes" 1>&6
4566     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4567   cat >> confdefs.h <<EOF
4568 #define $ac_tr_hdr 1
4569 EOF
4570  ac_has_wchar_h=yes
4571 else
4572   echo "$ac_t""no" 1>&6
4573 ac_has_wchar_h=no
4574 fi
4575 done
4576
4577   for ac_hdr in wctype.h
4578 do
4579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4581 echo "configure:4573: checking for $ac_hdr" >&5
4582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4583   echo $ac_n "(cached) $ac_c" 1>&6
4584 else
4585   cat > conftest.$ac_ext <<EOF
4586 #line 4578 "configure"
4587 #include "confdefs.h"
4588 #include <$ac_hdr>
4589 EOF
4590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4591 { (eval echo configure:4583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4593 if test -z "$ac_err"; then
4594   rm -rf conftest*
4595   eval "ac_cv_header_$ac_safe=yes"
4596 else
4597   echo "$ac_err" >&5
4598   echo "configure: failed program was:" >&5
4599   cat conftest.$ac_ext >&5
4600   rm -rf conftest*
4601   eval "ac_cv_header_$ac_safe=no"
4602 fi
4603 rm -f conftest*
4604 fi
4605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4606   echo "$ac_t""yes" 1>&6
4607     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4608   cat >> confdefs.h <<EOF
4609 #define $ac_tr_hdr 1
4610 EOF
4611  ac_has_wctype_h=yes
4612 else
4613   echo "$ac_t""no" 1>&6
4614 ac_has_wctype_h=no
4615 fi
4616 done
4617
4618   
4619     if test x"$ac_has_wchar_h" = xyes &&
4620      test x"$ac_has_wctype_h" = xyes &&
4621      test x"$enable_c_mbchar" != xno; then
4622       
4623             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4624 echo "configure:4616: checking for WCHAR_MIN and WCHAR_MAX" >&5
4625     cat > conftest.$ac_ext <<EOF
4626 #line 4618 "configure"
4627 #include "confdefs.h"
4628 #include <wchar.h>
4629 int main() {
4630 int i = WCHAR_MIN; int j = WCHAR_MAX;
4631 ; return 0; }
4632 EOF
4633 if { (eval echo configure:4625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4634   rm -rf conftest*
4635   has_wchar_minmax=yes
4636 else
4637   echo "configure: failed program was:" >&5
4638   cat conftest.$ac_ext >&5
4639   rm -rf conftest*
4640   has_wchar_minmax=no
4641 fi
4642 rm -f conftest*
4643     echo "$ac_t""$has_wchar_minmax" 1>&6
4644     
4645             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4646 echo "configure:4638: checking for WEOF" >&5
4647     cat > conftest.$ac_ext <<EOF
4648 #line 4640 "configure"
4649 #include "confdefs.h"
4650
4651       #include <wchar.h>
4652       #include <stddef.h>
4653 int main() {
4654 wint_t i = WEOF;
4655 ; return 0; }
4656 EOF
4657 if { (eval echo configure:4649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4658   rm -rf conftest*
4659   has_weof=yes
4660 else
4661   echo "configure: failed program was:" >&5
4662   cat conftest.$ac_ext >&5
4663   rm -rf conftest*
4664   has_weof=no
4665 fi
4666 rm -f conftest*
4667     echo "$ac_t""$has_weof" 1>&6
4668   
4669         ac_wfuncs=yes
4670     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4671 do
4672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4673 echo "configure:4665: checking for $ac_func" >&5
4674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4675   echo $ac_n "(cached) $ac_c" 1>&6
4676 else
4677   cat > conftest.$ac_ext <<EOF
4678 #line 4670 "configure"
4679 #include "confdefs.h"
4680 /* System header to define __stub macros and hopefully few prototypes,
4681     which can conflict with char $ac_func(); below.  */
4682 #include <assert.h>
4683 /* Override any gcc2 internal prototype to avoid an error.  */
4684 /* We use char because int might match the return type of a gcc2
4685     builtin and then its argument prototype would still apply.  */
4686 char $ac_func();
4687
4688 int main() {
4689
4690 /* The GNU C library defines this for functions which it implements
4691     to always fail with ENOSYS.  Some functions are actually named
4692     something starting with __ and the normal name is an alias.  */
4693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4694 choke me
4695 #else
4696 $ac_func();
4697 #endif
4698
4699 ; return 0; }
4700 EOF
4701 if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4702   rm -rf conftest*
4703   eval "ac_cv_func_$ac_func=yes"
4704 else
4705   echo "configure: failed program was:" >&5
4706   cat conftest.$ac_ext >&5
4707   rm -rf conftest*
4708   eval "ac_cv_func_$ac_func=no"
4709 fi
4710 rm -f conftest*
4711 fi
4712
4713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4714   echo "$ac_t""yes" 1>&6
4715     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4716   cat >> confdefs.h <<EOF
4717 #define $ac_tr_func 1
4718 EOF
4719  
4720 else
4721   echo "$ac_t""no" 1>&6
4722 \
4723     ac_wfuncs=no
4724 fi
4725 done
4726
4727   
4728         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4729     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4730     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4731     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4732     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4733     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4734 do
4735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4736 echo "configure:4728: checking for $ac_func" >&5
4737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4738   echo $ac_n "(cached) $ac_c" 1>&6
4739 else
4740   cat > conftest.$ac_ext <<EOF
4741 #line 4733 "configure"
4742 #include "confdefs.h"
4743 /* System header to define __stub macros and hopefully few prototypes,
4744     which can conflict with char $ac_func(); below.  */
4745 #include <assert.h>
4746 /* Override any gcc2 internal prototype to avoid an error.  */
4747 /* We use char because int might match the return type of a gcc2
4748     builtin and then its argument prototype would still apply.  */
4749 char $ac_func();
4750
4751 int main() {
4752
4753 /* The GNU C library defines this for functions which it implements
4754     to always fail with ENOSYS.  Some functions are actually named
4755     something starting with __ and the normal name is an alias.  */
4756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4757 choke me
4758 #else
4759 $ac_func();
4760 #endif
4761
4762 ; return 0; }
4763 EOF
4764 if { (eval echo configure:4756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4765   rm -rf conftest*
4766   eval "ac_cv_func_$ac_func=yes"
4767 else
4768   echo "configure: failed program was:" >&5
4769   cat conftest.$ac_ext >&5
4770   rm -rf conftest*
4771   eval "ac_cv_func_$ac_func=no"
4772 fi
4773 rm -f conftest*
4774 fi
4775
4776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4777   echo "$ac_t""yes" 1>&6
4778     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4779   cat >> confdefs.h <<EOF
4780 #define $ac_tr_func 1
4781 EOF
4782  
4783 else
4784   echo "$ac_t""no" 1>&6
4785 \
4786     ac_wfuncs=no
4787 fi
4788 done
4789
4790
4791     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4792 echo "configure:4784: checking for ISO C99 wchar_t support" >&5
4793     if test x"$has_weof" = xyes &&
4794        test x"$has_wchar_minmax" = xyes &&
4795        test x"$ac_wfuncs" = xyes; then
4796       ac_isoC99_wchar_t=yes
4797     else
4798       ac_isoC99_wchar_t=no
4799     fi
4800     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4801   
4802             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4803 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4804 echo "configure:4796: checking for iconv.h" >&5
4805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4806   echo $ac_n "(cached) $ac_c" 1>&6
4807 else
4808   cat > conftest.$ac_ext <<EOF
4809 #line 4801 "configure"
4810 #include "confdefs.h"
4811 #include <iconv.h>
4812 EOF
4813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4814 { (eval echo configure:4806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4815 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4816 if test -z "$ac_err"; then
4817   rm -rf conftest*
4818   eval "ac_cv_header_$ac_safe=yes"
4819 else
4820   echo "$ac_err" >&5
4821   echo "configure: failed program was:" >&5
4822   cat conftest.$ac_ext >&5
4823   rm -rf conftest*
4824   eval "ac_cv_header_$ac_safe=no"
4825 fi
4826 rm -f conftest*
4827 fi
4828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4829   echo "$ac_t""yes" 1>&6
4830   ac_has_iconv_h=yes
4831 else
4832   echo "$ac_t""no" 1>&6
4833 ac_has_iconv_h=no
4834 fi
4835
4836     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4837 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4838 echo "configure:4830: checking for langinfo.h" >&5
4839 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4840   echo $ac_n "(cached) $ac_c" 1>&6
4841 else
4842   cat > conftest.$ac_ext <<EOF
4843 #line 4835 "configure"
4844 #include "confdefs.h"
4845 #include <langinfo.h>
4846 EOF
4847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4848 { (eval echo configure:4840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4850 if test -z "$ac_err"; then
4851   rm -rf conftest*
4852   eval "ac_cv_header_$ac_safe=yes"
4853 else
4854   echo "$ac_err" >&5
4855   echo "configure: failed program was:" >&5
4856   cat conftest.$ac_ext >&5
4857   rm -rf conftest*
4858   eval "ac_cv_header_$ac_safe=no"
4859 fi
4860 rm -f conftest*
4861 fi
4862 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4863   echo "$ac_t""yes" 1>&6
4864   ac_has_langinfo_h=yes
4865 else
4866   echo "$ac_t""no" 1>&6
4867 ac_has_langinfo_h=no
4868 fi
4869
4870
4871         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4872 echo "configure:4864: checking for iconv in -liconv" >&5
4873 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4874 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4875   echo $ac_n "(cached) $ac_c" 1>&6
4876 else
4877   ac_save_LIBS="$LIBS"
4878 LIBS="-liconv  $LIBS"
4879 cat > conftest.$ac_ext <<EOF
4880 #line 4872 "configure"
4881 #include "confdefs.h"
4882 /* Override any gcc2 internal prototype to avoid an error.  */
4883 /* We use char because int might match the return type of a gcc2
4884     builtin and then its argument prototype would still apply.  */
4885 char iconv();
4886
4887 int main() {
4888 iconv()
4889 ; return 0; }
4890 EOF
4891 if { (eval echo configure:4883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4892   rm -rf conftest*
4893   eval "ac_cv_lib_$ac_lib_var=yes"
4894 else
4895   echo "configure: failed program was:" >&5
4896   cat conftest.$ac_ext >&5
4897   rm -rf conftest*
4898   eval "ac_cv_lib_$ac_lib_var=no"
4899 fi
4900 rm -f conftest*
4901 LIBS="$ac_save_LIBS"
4902
4903 fi
4904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4905   echo "$ac_t""yes" 1>&6
4906   libiconv="-liconv"
4907 else
4908   echo "$ac_t""no" 1>&6
4909 fi
4910
4911     ac_save_LIBS="$LIBS"
4912     LIBS="$LIBS $libiconv"
4913
4914     for ac_func in iconv_open iconv_close iconv nl_langinfo
4915 do
4916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4917 echo "configure:4909: checking for $ac_func" >&5
4918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4919   echo $ac_n "(cached) $ac_c" 1>&6
4920 else
4921   cat > conftest.$ac_ext <<EOF
4922 #line 4914 "configure"
4923 #include "confdefs.h"
4924 /* System header to define __stub macros and hopefully few prototypes,
4925     which can conflict with char $ac_func(); below.  */
4926 #include <assert.h>
4927 /* Override any gcc2 internal prototype to avoid an error.  */
4928 /* We use char because int might match the return type of a gcc2
4929     builtin and then its argument prototype would still apply.  */
4930 char $ac_func();
4931
4932 int main() {
4933
4934 /* The GNU C library defines this for functions which it implements
4935     to always fail with ENOSYS.  Some functions are actually named
4936     something starting with __ and the normal name is an alias.  */
4937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4938 choke me
4939 #else
4940 $ac_func();
4941 #endif
4942
4943 ; return 0; }
4944 EOF
4945 if { (eval echo configure:4937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4946   rm -rf conftest*
4947   eval "ac_cv_func_$ac_func=yes"
4948 else
4949   echo "configure: failed program was:" >&5
4950   cat conftest.$ac_ext >&5
4951   rm -rf conftest*
4952   eval "ac_cv_func_$ac_func=no"
4953 fi
4954 rm -f conftest*
4955 fi
4956
4957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4958   echo "$ac_t""yes" 1>&6
4959     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4960   cat >> confdefs.h <<EOF
4961 #define $ac_tr_func 1
4962 EOF
4963  \
4964     ac_XPG2funcs=yes
4965 else
4966   echo "$ac_t""no" 1>&6
4967 ac_XPG2funcs=no
4968 fi
4969 done
4970
4971   
4972     LIBS="$ac_save_LIBS"
4973
4974     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4975 echo "configure:4967: checking for XPG2 wchar_t support" >&5
4976     if test x"$ac_has_iconv_h" = xyes &&
4977        test x"$ac_has_langinfo_h" = xyes &&
4978        test x"$ac_XPG2funcs" = xyes; then
4979       ac_XPG2_wchar_t=yes
4980     else
4981       ac_XPG2_wchar_t=no
4982     fi
4983     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
4984   
4985             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
4986 echo "configure:4978: checking for enabled wchar_t specializations" >&5
4987     if test x"$ac_isoC99_wchar_t" = xyes &&
4988        test x"$ac_XPG2_wchar_t" = xyes; then
4989       cat >> confdefs.h <<\EOF
4990 #define _GLIBCPP_USE_WCHAR_T 1
4991 EOF
4992
4993       echo "$ac_t"""yes"" 1>&6
4994     else
4995       echo "$ac_t"""no"" 1>&6
4996     fi
4997   else
4998         echo "configure: warning: wchar_t support disabled." 1>&2
4999   fi
5000
5001       cat >> confdefs.h <<\EOF
5002 #define HAVE_COPYSIGN 1
5003 EOF
5004
5005       cat >> confdefs.h <<\EOF
5006 #define HAVE_COPYSIGNF 1
5007 EOF
5008
5009       cat >> confdefs.h <<\EOF
5010 #define HAVE_FINITE 1
5011 EOF
5012
5013       cat >> confdefs.h <<\EOF
5014 #define HAVE_FINITEF 1
5015 EOF
5016
5017       cat >> confdefs.h <<\EOF
5018 #define HAVE_FREXPF 1
5019 EOF
5020
5021       cat >> confdefs.h <<\EOF
5022 #define HAVE_HYPOTF 1
5023 EOF
5024
5025       cat >> confdefs.h <<\EOF
5026 #define HAVE_ISINF 1
5027 EOF
5028
5029       cat >> confdefs.h <<\EOF
5030 #define HAVE_ISINFF 1
5031 EOF
5032
5033       cat >> confdefs.h <<\EOF
5034 #define HAVE_ISNAN 1
5035 EOF
5036
5037       cat >> confdefs.h <<\EOF
5038 #define HAVE_ISNANF 1
5039 EOF
5040
5041       cat >> confdefs.h <<\EOF
5042 #define HAVE_SINCOS 1
5043 EOF
5044
5045       cat >> confdefs.h <<\EOF
5046 #define HAVE_SINCOSF 1
5047 EOF
5048
5049       if test x"long_double_math_on_this_cpu" = x"yes"; then
5050         cat >> confdefs.h <<\EOF
5051 #define HAVE_FINITEL 1
5052 EOF
5053
5054         cat >> confdefs.h <<\EOF
5055 #define HAVE_HYPOTL 1
5056 EOF
5057
5058         cat >> confdefs.h <<\EOF
5059 #define HAVE_ISINFL 1
5060 EOF
5061
5062         cat >> confdefs.h <<\EOF
5063 #define HAVE_ISNANL 1
5064 EOF
5065
5066       fi
5067       ;;
5068     *-hpux*)
5069       # Check for available headers.
5070       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5071         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5072         fp.h locale.h float.h inttypes.h
5073 do
5074 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5075 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5076 echo "configure:5068: checking for $ac_hdr" >&5
5077 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5078   echo $ac_n "(cached) $ac_c" 1>&6
5079 else
5080   cat > conftest.$ac_ext <<EOF
5081 #line 5073 "configure"
5082 #include "confdefs.h"
5083 #include <$ac_hdr>
5084 EOF
5085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5086 { (eval echo configure:5078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5088 if test -z "$ac_err"; then
5089   rm -rf conftest*
5090   eval "ac_cv_header_$ac_safe=yes"
5091 else
5092   echo "$ac_err" >&5
5093   echo "configure: failed program was:" >&5
5094   cat conftest.$ac_ext >&5
5095   rm -rf conftest*
5096   eval "ac_cv_header_$ac_safe=no"
5097 fi
5098 rm -f conftest*
5099 fi
5100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5101   echo "$ac_t""yes" 1>&6
5102     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5103   cat >> confdefs.h <<EOF
5104 #define $ac_tr_hdr 1
5105 EOF
5106  
5107 else
5108   echo "$ac_t""no" 1>&6
5109 fi
5110 done
5111
5112       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5113       
5114       
5115   # If we're not using GNU ld, then there's no point in even trying these
5116   # tests.  Check for that first.  We should have already tested for gld
5117   # by now (in libtool), but require it now just to be safe...
5118   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5119   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5120   
5121
5122   # The name set by libtool depends on the version of libtool.  Shame on us
5123   # for depending on an impl detail, but c'est la vie.  Older versions used
5124   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5125   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5126   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5127   # set (hence we're using an older libtool), then set it.
5128   if test x${with_gnu_ld+set} != xset; then
5129     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5130       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5131       with_gnu_ld=no
5132     else
5133       with_gnu_ld=$ac_cv_prog_gnu_ld
5134     fi
5135   fi
5136
5137   # Start by getting the version number.  I think the libtool test already
5138   # does some of this, but throws away the result.
5139   
5140   ldver=`$LD --version 2>/dev/null | head -1 | \
5141          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5142   
5143   glibcpp_gnu_ld_version=`echo $ldver | \
5144          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5145
5146   # Set --gc-sections.
5147   if test "$with_gnu_ld" = "notbroken"; then
5148     # GNU ld it is!  Joy and bunny rabbits!
5149
5150     # All these tests are for C++; save the language and the compiler flags.
5151     # Need to do this so that g++ won't try to link in libstdc++
5152     ac_test_CFLAGS="${CFLAGS+set}"
5153     ac_save_CFLAGS="$CFLAGS"
5154     CFLAGS='-x c++  -Wl,--gc-sections'
5155
5156     # Check for -Wl,--gc-sections
5157     # XXX This test is broken at the moment, as symbols required for
5158     # linking are now in libsupc++ (not built yet.....). In addition, 
5159     # this test has cored on solaris in the past. In addition,
5160     # --gc-sections doesn't really work at the moment (keeps on discarding
5161     # used sections, first .eh_frame and now some of the glibc sections for
5162     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5163     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5164 echo "configure:5156: checking for ld that supports -Wl,--gc-sections" >&5
5165     if test "$cross_compiling" = yes; then
5166   ac_sectionLDflags=yes
5167 else
5168   cat > conftest.$ac_ext <<EOF
5169 #line 5161 "configure"
5170 #include "confdefs.h"
5171
5172      int main(void) 
5173      {
5174        try { throw 1; }
5175        catch (...) { };
5176        return 0;
5177      }
5178     
5179 EOF
5180 if { (eval echo configure:5172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5181 then
5182   ac_sectionLDflags=yes
5183 else
5184   echo "configure: failed program was:" >&5
5185   cat conftest.$ac_ext >&5
5186   rm -fr conftest*
5187   ac_sectionLDflags=no
5188 fi
5189 rm -fr conftest*
5190 fi
5191
5192     if test "$ac_test_CFLAGS" = set; then
5193       CFLAGS="$ac_save_CFLAGS"
5194     else
5195       # this is the suspicious part
5196       CFLAGS=''
5197     fi
5198     if test "$ac_sectionLDflags" = "yes"; then
5199       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5200     fi
5201     echo "$ac_t""$ac_sectionLDflags" 1>&6
5202   fi
5203
5204   # Set linker optimization flags.
5205   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5206     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5207   fi
5208
5209   
5210   
5211
5212       
5213     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5214 echo "configure:5206: checking for main in -lm" >&5
5215 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5217   echo $ac_n "(cached) $ac_c" 1>&6
5218 else
5219   ac_save_LIBS="$LIBS"
5220 LIBS="-lm  $LIBS"
5221 cat > conftest.$ac_ext <<EOF
5222 #line 5214 "configure"
5223 #include "confdefs.h"
5224
5225 int main() {
5226 main()
5227 ; return 0; }
5228 EOF
5229 if { (eval echo configure:5221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5230   rm -rf conftest*
5231   eval "ac_cv_lib_$ac_lib_var=yes"
5232 else
5233   echo "configure: failed program was:" >&5
5234   cat conftest.$ac_ext >&5
5235   rm -rf conftest*
5236   eval "ac_cv_lib_$ac_lib_var=no"
5237 fi
5238 rm -f conftest*
5239 LIBS="$ac_save_LIBS"
5240
5241 fi
5242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5243   echo "$ac_t""yes" 1>&6
5244     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5245     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5246   cat >> confdefs.h <<EOF
5247 #define $ac_tr_lib 1
5248 EOF
5249
5250   LIBS="-lm $LIBS"
5251
5252 else
5253   echo "$ac_t""no" 1>&6
5254 fi
5255
5256   for ac_func in nan copysignf
5257 do
5258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5259 echo "configure:5251: checking for $ac_func" >&5
5260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5261   echo $ac_n "(cached) $ac_c" 1>&6
5262 else
5263   cat > conftest.$ac_ext <<EOF
5264 #line 5256 "configure"
5265 #include "confdefs.h"
5266 /* System header to define __stub macros and hopefully few prototypes,
5267     which can conflict with char $ac_func(); below.  */
5268 #include <assert.h>
5269 /* Override any gcc2 internal prototype to avoid an error.  */
5270 /* We use char because int might match the return type of a gcc2
5271     builtin and then its argument prototype would still apply.  */
5272 char $ac_func();
5273
5274 int main() {
5275
5276 /* The GNU C library defines this for functions which it implements
5277     to always fail with ENOSYS.  Some functions are actually named
5278     something starting with __ and the normal name is an alias.  */
5279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5280 choke me
5281 #else
5282 $ac_func();
5283 #endif
5284
5285 ; return 0; }
5286 EOF
5287 if { (eval echo configure:5279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5288   rm -rf conftest*
5289   eval "ac_cv_func_$ac_func=yes"
5290 else
5291   echo "configure: failed program was:" >&5
5292   cat conftest.$ac_ext >&5
5293   rm -rf conftest*
5294   eval "ac_cv_func_$ac_func=no"
5295 fi
5296 rm -f conftest*
5297 fi
5298
5299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5300   echo "$ac_t""yes" 1>&6
5301     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5302   cat >> confdefs.h <<EOF
5303 #define $ac_tr_func 1
5304 EOF
5305  
5306 else
5307   echo "$ac_t""no" 1>&6
5308 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5309 fi
5310 done
5311
5312
5313     for ac_func in __signbit
5314 do
5315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5316 echo "configure:5308: checking for $ac_func" >&5
5317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5318   echo $ac_n "(cached) $ac_c" 1>&6
5319 else
5320   cat > conftest.$ac_ext <<EOF
5321 #line 5313 "configure"
5322 #include "confdefs.h"
5323 /* System header to define __stub macros and hopefully few prototypes,
5324     which can conflict with char $ac_func(); below.  */
5325 #include <assert.h>
5326 /* Override any gcc2 internal prototype to avoid an error.  */
5327 /* We use char because int might match the return type of a gcc2
5328     builtin and then its argument prototype would still apply.  */
5329 char $ac_func();
5330
5331 int main() {
5332
5333 /* The GNU C library defines this for functions which it implements
5334     to always fail with ENOSYS.  Some functions are actually named
5335     something starting with __ and the normal name is an alias.  */
5336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5337 choke me
5338 #else
5339 $ac_func();
5340 #endif
5341
5342 ; return 0; }
5343 EOF
5344 if { (eval echo configure:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5345   rm -rf conftest*
5346   eval "ac_cv_func_$ac_func=yes"
5347 else
5348   echo "configure: failed program was:" >&5
5349   cat conftest.$ac_ext >&5
5350   rm -rf conftest*
5351   eval "ac_cv_func_$ac_func=no"
5352 fi
5353 rm -f conftest*
5354 fi
5355
5356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5357   echo "$ac_t""yes" 1>&6
5358     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5359   cat >> confdefs.h <<EOF
5360 #define $ac_tr_func 1
5361 EOF
5362  
5363 else
5364   echo "$ac_t""no" 1>&6
5365 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5366 fi
5367 done
5368
5369   for ac_func in __signbitf
5370 do
5371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5372 echo "configure:5364: checking for $ac_func" >&5
5373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5374   echo $ac_n "(cached) $ac_c" 1>&6
5375 else
5376   cat > conftest.$ac_ext <<EOF
5377 #line 5369 "configure"
5378 #include "confdefs.h"
5379 /* System header to define __stub macros and hopefully few prototypes,
5380     which can conflict with char $ac_func(); below.  */
5381 #include <assert.h>
5382 /* Override any gcc2 internal prototype to avoid an error.  */
5383 /* We use char because int might match the return type of a gcc2
5384     builtin and then its argument prototype would still apply.  */
5385 char $ac_func();
5386
5387 int main() {
5388
5389 /* The GNU C library defines this for functions which it implements
5390     to always fail with ENOSYS.  Some functions are actually named
5391     something starting with __ and the normal name is an alias.  */
5392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5393 choke me
5394 #else
5395 $ac_func();
5396 #endif
5397
5398 ; return 0; }
5399 EOF
5400 if { (eval echo configure:5392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5401   rm -rf conftest*
5402   eval "ac_cv_func_$ac_func=yes"
5403 else
5404   echo "configure: failed program was:" >&5
5405   cat conftest.$ac_ext >&5
5406   rm -rf conftest*
5407   eval "ac_cv_func_$ac_func=no"
5408 fi
5409 rm -f conftest*
5410 fi
5411
5412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5413   echo "$ac_t""yes" 1>&6
5414     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5415   cat >> confdefs.h <<EOF
5416 #define $ac_tr_func 1
5417 EOF
5418  
5419 else
5420   echo "$ac_t""no" 1>&6
5421 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5422 fi
5423 done
5424
5425
5426           if test x$ac_cv_func_copysignl = x"yes"; then
5427     for ac_func in __signbitl
5428 do
5429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5430 echo "configure:5422: checking for $ac_func" >&5
5431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5432   echo $ac_n "(cached) $ac_c" 1>&6
5433 else
5434   cat > conftest.$ac_ext <<EOF
5435 #line 5427 "configure"
5436 #include "confdefs.h"
5437 /* System header to define __stub macros and hopefully few prototypes,
5438     which can conflict with char $ac_func(); below.  */
5439 #include <assert.h>
5440 /* Override any gcc2 internal prototype to avoid an error.  */
5441 /* We use char because int might match the return type of a gcc2
5442     builtin and then its argument prototype would still apply.  */
5443 char $ac_func();
5444
5445 int main() {
5446
5447 /* The GNU C library defines this for functions which it implements
5448     to always fail with ENOSYS.  Some functions are actually named
5449     something starting with __ and the normal name is an alias.  */
5450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5451 choke me
5452 #else
5453 $ac_func();
5454 #endif
5455
5456 ; return 0; }
5457 EOF
5458 if { (eval echo configure:5450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5459   rm -rf conftest*
5460   eval "ac_cv_func_$ac_func=yes"
5461 else
5462   echo "configure: failed program was:" >&5
5463   cat conftest.$ac_ext >&5
5464   rm -rf conftest*
5465   eval "ac_cv_func_$ac_func=no"
5466 fi
5467 rm -f conftest*
5468 fi
5469
5470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5471   echo "$ac_t""yes" 1>&6
5472     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5473   cat >> confdefs.h <<EOF
5474 #define $ac_tr_func 1
5475 EOF
5476  
5477 else
5478   echo "$ac_t""no" 1>&6
5479 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5480 fi
5481 done
5482
5483   fi
5484
5485   
5486
5487       
5488
5489       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5490 echo "configure:5482: checking for mbstate_t" >&5
5491   cat > conftest.$ac_ext <<EOF
5492 #line 5484 "configure"
5493 #include "confdefs.h"
5494 #include <wchar.h>
5495 int main() {
5496 mbstate_t teststate;
5497 ; return 0; }
5498 EOF
5499 if { (eval echo configure:5491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5500   rm -rf conftest*
5501   have_mbstate_t=yes
5502 else
5503   echo "configure: failed program was:" >&5
5504   cat conftest.$ac_ext >&5
5505   rm -rf conftest*
5506   have_mbstate_t=no
5507 fi
5508 rm -f conftest*
5509   echo "$ac_t""$have_mbstate_t" 1>&6
5510   if test x"$have_mbstate_t" = xyes; then
5511     cat >> confdefs.h <<\EOF
5512 #define HAVE_MBSTATE_T 1
5513 EOF
5514
5515   fi
5516
5517     for ac_hdr in wchar.h
5518 do
5519 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5520 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5521 echo "configure:5513: checking for $ac_hdr" >&5
5522 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5523   echo $ac_n "(cached) $ac_c" 1>&6
5524 else
5525   cat > conftest.$ac_ext <<EOF
5526 #line 5518 "configure"
5527 #include "confdefs.h"
5528 #include <$ac_hdr>
5529 EOF
5530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5531 { (eval echo configure:5523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5533 if test -z "$ac_err"; then
5534   rm -rf conftest*
5535   eval "ac_cv_header_$ac_safe=yes"
5536 else
5537   echo "$ac_err" >&5
5538   echo "configure: failed program was:" >&5
5539   cat conftest.$ac_ext >&5
5540   rm -rf conftest*
5541   eval "ac_cv_header_$ac_safe=no"
5542 fi
5543 rm -f conftest*
5544 fi
5545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5546   echo "$ac_t""yes" 1>&6
5547     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5548   cat >> confdefs.h <<EOF
5549 #define $ac_tr_hdr 1
5550 EOF
5551  ac_has_wchar_h=yes
5552 else
5553   echo "$ac_t""no" 1>&6
5554 ac_has_wchar_h=no
5555 fi
5556 done
5557
5558   for ac_hdr in wctype.h
5559 do
5560 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5561 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5562 echo "configure:5554: checking for $ac_hdr" >&5
5563 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5564   echo $ac_n "(cached) $ac_c" 1>&6
5565 else
5566   cat > conftest.$ac_ext <<EOF
5567 #line 5559 "configure"
5568 #include "confdefs.h"
5569 #include <$ac_hdr>
5570 EOF
5571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5572 { (eval echo configure:5564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5574 if test -z "$ac_err"; then
5575   rm -rf conftest*
5576   eval "ac_cv_header_$ac_safe=yes"
5577 else
5578   echo "$ac_err" >&5
5579   echo "configure: failed program was:" >&5
5580   cat conftest.$ac_ext >&5
5581   rm -rf conftest*
5582   eval "ac_cv_header_$ac_safe=no"
5583 fi
5584 rm -f conftest*
5585 fi
5586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5587   echo "$ac_t""yes" 1>&6
5588     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5589   cat >> confdefs.h <<EOF
5590 #define $ac_tr_hdr 1
5591 EOF
5592  ac_has_wctype_h=yes
5593 else
5594   echo "$ac_t""no" 1>&6
5595 ac_has_wctype_h=no
5596 fi
5597 done
5598
5599   
5600     if test x"$ac_has_wchar_h" = xyes &&
5601      test x"$ac_has_wctype_h" = xyes &&
5602      test x"$enable_c_mbchar" != xno; then
5603       
5604             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5605 echo "configure:5597: checking for WCHAR_MIN and WCHAR_MAX" >&5
5606     cat > conftest.$ac_ext <<EOF
5607 #line 5599 "configure"
5608 #include "confdefs.h"
5609 #include <wchar.h>
5610 int main() {
5611 int i = WCHAR_MIN; int j = WCHAR_MAX;
5612 ; return 0; }
5613 EOF
5614 if { (eval echo configure:5606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5615   rm -rf conftest*
5616   has_wchar_minmax=yes
5617 else
5618   echo "configure: failed program was:" >&5
5619   cat conftest.$ac_ext >&5
5620   rm -rf conftest*
5621   has_wchar_minmax=no
5622 fi
5623 rm -f conftest*
5624     echo "$ac_t""$has_wchar_minmax" 1>&6
5625     
5626             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5627 echo "configure:5619: checking for WEOF" >&5
5628     cat > conftest.$ac_ext <<EOF
5629 #line 5621 "configure"
5630 #include "confdefs.h"
5631
5632       #include <wchar.h>
5633       #include <stddef.h>
5634 int main() {
5635 wint_t i = WEOF;
5636 ; return 0; }
5637 EOF
5638 if { (eval echo configure:5630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5639   rm -rf conftest*
5640   has_weof=yes
5641 else
5642   echo "configure: failed program was:" >&5
5643   cat conftest.$ac_ext >&5
5644   rm -rf conftest*
5645   has_weof=no
5646 fi
5647 rm -f conftest*
5648     echo "$ac_t""$has_weof" 1>&6
5649   
5650         ac_wfuncs=yes
5651     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5652 do
5653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5654 echo "configure:5646: checking for $ac_func" >&5
5655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5656   echo $ac_n "(cached) $ac_c" 1>&6
5657 else
5658   cat > conftest.$ac_ext <<EOF
5659 #line 5651 "configure"
5660 #include "confdefs.h"
5661 /* System header to define __stub macros and hopefully few prototypes,
5662     which can conflict with char $ac_func(); below.  */
5663 #include <assert.h>
5664 /* Override any gcc2 internal prototype to avoid an error.  */
5665 /* We use char because int might match the return type of a gcc2
5666     builtin and then its argument prototype would still apply.  */
5667 char $ac_func();
5668
5669 int main() {
5670
5671 /* The GNU C library defines this for functions which it implements
5672     to always fail with ENOSYS.  Some functions are actually named
5673     something starting with __ and the normal name is an alias.  */
5674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5675 choke me
5676 #else
5677 $ac_func();
5678 #endif
5679
5680 ; return 0; }
5681 EOF
5682 if { (eval echo configure:5674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5683   rm -rf conftest*
5684   eval "ac_cv_func_$ac_func=yes"
5685 else
5686   echo "configure: failed program was:" >&5
5687   cat conftest.$ac_ext >&5
5688   rm -rf conftest*
5689   eval "ac_cv_func_$ac_func=no"
5690 fi
5691 rm -f conftest*
5692 fi
5693
5694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5695   echo "$ac_t""yes" 1>&6
5696     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5697   cat >> confdefs.h <<EOF
5698 #define $ac_tr_func 1
5699 EOF
5700  
5701 else
5702   echo "$ac_t""no" 1>&6
5703 \
5704     ac_wfuncs=no
5705 fi
5706 done
5707
5708   
5709         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5710     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5711     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5712     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5713     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5714     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5715 do
5716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5717 echo "configure:5709: checking for $ac_func" >&5
5718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5719   echo $ac_n "(cached) $ac_c" 1>&6
5720 else
5721   cat > conftest.$ac_ext <<EOF
5722 #line 5714 "configure"
5723 #include "confdefs.h"
5724 /* System header to define __stub macros and hopefully few prototypes,
5725     which can conflict with char $ac_func(); below.  */
5726 #include <assert.h>
5727 /* Override any gcc2 internal prototype to avoid an error.  */
5728 /* We use char because int might match the return type of a gcc2
5729     builtin and then its argument prototype would still apply.  */
5730 char $ac_func();
5731
5732 int main() {
5733
5734 /* The GNU C library defines this for functions which it implements
5735     to always fail with ENOSYS.  Some functions are actually named
5736     something starting with __ and the normal name is an alias.  */
5737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5738 choke me
5739 #else
5740 $ac_func();
5741 #endif
5742
5743 ; return 0; }
5744 EOF
5745 if { (eval echo configure:5737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5746   rm -rf conftest*
5747   eval "ac_cv_func_$ac_func=yes"
5748 else
5749   echo "configure: failed program was:" >&5
5750   cat conftest.$ac_ext >&5
5751   rm -rf conftest*
5752   eval "ac_cv_func_$ac_func=no"
5753 fi
5754 rm -f conftest*
5755 fi
5756
5757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5758   echo "$ac_t""yes" 1>&6
5759     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5760   cat >> confdefs.h <<EOF
5761 #define $ac_tr_func 1
5762 EOF
5763  
5764 else
5765   echo "$ac_t""no" 1>&6
5766 \
5767     ac_wfuncs=no
5768 fi
5769 done
5770
5771
5772     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5773 echo "configure:5765: checking for ISO C99 wchar_t support" >&5
5774     if test x"$has_weof" = xyes &&
5775        test x"$has_wchar_minmax" = xyes &&
5776        test x"$ac_wfuncs" = xyes; then
5777       ac_isoC99_wchar_t=yes
5778     else
5779       ac_isoC99_wchar_t=no
5780     fi
5781     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5782   
5783             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5784 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5785 echo "configure:5777: checking for iconv.h" >&5
5786 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5787   echo $ac_n "(cached) $ac_c" 1>&6
5788 else
5789   cat > conftest.$ac_ext <<EOF
5790 #line 5782 "configure"
5791 #include "confdefs.h"
5792 #include <iconv.h>
5793 EOF
5794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5795 { (eval echo configure:5787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5797 if test -z "$ac_err"; then
5798   rm -rf conftest*
5799   eval "ac_cv_header_$ac_safe=yes"
5800 else
5801   echo "$ac_err" >&5
5802   echo "configure: failed program was:" >&5
5803   cat conftest.$ac_ext >&5
5804   rm -rf conftest*
5805   eval "ac_cv_header_$ac_safe=no"
5806 fi
5807 rm -f conftest*
5808 fi
5809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5810   echo "$ac_t""yes" 1>&6
5811   ac_has_iconv_h=yes
5812 else
5813   echo "$ac_t""no" 1>&6
5814 ac_has_iconv_h=no
5815 fi
5816
5817     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5818 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5819 echo "configure:5811: checking for langinfo.h" >&5
5820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5821   echo $ac_n "(cached) $ac_c" 1>&6
5822 else
5823   cat > conftest.$ac_ext <<EOF
5824 #line 5816 "configure"
5825 #include "confdefs.h"
5826 #include <langinfo.h>
5827 EOF
5828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5829 { (eval echo configure:5821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5831 if test -z "$ac_err"; then
5832   rm -rf conftest*
5833   eval "ac_cv_header_$ac_safe=yes"
5834 else
5835   echo "$ac_err" >&5
5836   echo "configure: failed program was:" >&5
5837   cat conftest.$ac_ext >&5
5838   rm -rf conftest*
5839   eval "ac_cv_header_$ac_safe=no"
5840 fi
5841 rm -f conftest*
5842 fi
5843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5844   echo "$ac_t""yes" 1>&6
5845   ac_has_langinfo_h=yes
5846 else
5847   echo "$ac_t""no" 1>&6
5848 ac_has_langinfo_h=no
5849 fi
5850
5851
5852         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5853 echo "configure:5845: checking for iconv in -liconv" >&5
5854 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5856   echo $ac_n "(cached) $ac_c" 1>&6
5857 else
5858   ac_save_LIBS="$LIBS"
5859 LIBS="-liconv  $LIBS"
5860 cat > conftest.$ac_ext <<EOF
5861 #line 5853 "configure"
5862 #include "confdefs.h"
5863 /* Override any gcc2 internal prototype to avoid an error.  */
5864 /* We use char because int might match the return type of a gcc2
5865     builtin and then its argument prototype would still apply.  */
5866 char iconv();
5867
5868 int main() {
5869 iconv()
5870 ; return 0; }
5871 EOF
5872 if { (eval echo configure:5864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5873   rm -rf conftest*
5874   eval "ac_cv_lib_$ac_lib_var=yes"
5875 else
5876   echo "configure: failed program was:" >&5
5877   cat conftest.$ac_ext >&5
5878   rm -rf conftest*
5879   eval "ac_cv_lib_$ac_lib_var=no"
5880 fi
5881 rm -f conftest*
5882 LIBS="$ac_save_LIBS"
5883
5884 fi
5885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5886   echo "$ac_t""yes" 1>&6
5887   libiconv="-liconv"
5888 else
5889   echo "$ac_t""no" 1>&6
5890 fi
5891
5892     ac_save_LIBS="$LIBS"
5893     LIBS="$LIBS $libiconv"
5894
5895     for ac_func in iconv_open iconv_close iconv nl_langinfo
5896 do
5897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5898 echo "configure:5890: checking for $ac_func" >&5
5899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5900   echo $ac_n "(cached) $ac_c" 1>&6
5901 else
5902   cat > conftest.$ac_ext <<EOF
5903 #line 5895 "configure"
5904 #include "confdefs.h"
5905 /* System header to define __stub macros and hopefully few prototypes,
5906     which can conflict with char $ac_func(); below.  */
5907 #include <assert.h>
5908 /* Override any gcc2 internal prototype to avoid an error.  */
5909 /* We use char because int might match the return type of a gcc2
5910     builtin and then its argument prototype would still apply.  */
5911 char $ac_func();
5912
5913 int main() {
5914
5915 /* The GNU C library defines this for functions which it implements
5916     to always fail with ENOSYS.  Some functions are actually named
5917     something starting with __ and the normal name is an alias.  */
5918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5919 choke me
5920 #else
5921 $ac_func();
5922 #endif
5923
5924 ; return 0; }
5925 EOF
5926 if { (eval echo configure:5918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5927   rm -rf conftest*
5928   eval "ac_cv_func_$ac_func=yes"
5929 else
5930   echo "configure: failed program was:" >&5
5931   cat conftest.$ac_ext >&5
5932   rm -rf conftest*
5933   eval "ac_cv_func_$ac_func=no"
5934 fi
5935 rm -f conftest*
5936 fi
5937
5938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5939   echo "$ac_t""yes" 1>&6
5940     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5941   cat >> confdefs.h <<EOF
5942 #define $ac_tr_func 1
5943 EOF
5944  \
5945     ac_XPG2funcs=yes
5946 else
5947   echo "$ac_t""no" 1>&6
5948 ac_XPG2funcs=no
5949 fi
5950 done
5951
5952   
5953     LIBS="$ac_save_LIBS"
5954
5955     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5956 echo "configure:5948: checking for XPG2 wchar_t support" >&5
5957     if test x"$ac_has_iconv_h" = xyes &&
5958        test x"$ac_has_langinfo_h" = xyes &&
5959        test x"$ac_XPG2funcs" = xyes; then
5960       ac_XPG2_wchar_t=yes
5961     else
5962       ac_XPG2_wchar_t=no
5963     fi
5964     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5965   
5966             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5967 echo "configure:5959: checking for enabled wchar_t specializations" >&5
5968     if test x"$ac_isoC99_wchar_t" = xyes &&
5969        test x"$ac_XPG2_wchar_t" = xyes; then
5970       cat >> confdefs.h <<\EOF
5971 #define _GLIBCPP_USE_WCHAR_T 1
5972 EOF
5973
5974       echo "$ac_t"""yes"" 1>&6
5975     else
5976       echo "$ac_t"""no"" 1>&6
5977     fi
5978   else
5979         echo "configure: warning: wchar_t support disabled." 1>&2
5980   fi
5981
5982       os_include_dir="os/hpux"
5983       cat >> confdefs.h <<\EOF
5984 #define HAVE_COPYSIGN 1
5985 EOF
5986
5987       cat >> confdefs.h <<\EOF
5988 #define HAVE_COPYSIGNF 1
5989 EOF
5990
5991       cat >> confdefs.h <<\EOF
5992 #define HAVE_FREXPF 1
5993 EOF
5994
5995       cat >> confdefs.h <<\EOF
5996 #define HAVE_HYPOT 1
5997 EOF
5998
5999       case "$target_alias" in
6000         *-hpux10*)
6001           cat >> confdefs.h <<\EOF
6002 #define HAVE_FINITE 1
6003 EOF
6004
6005           cat >> confdefs.h <<\EOF
6006 #define HAVE_FINITEF 1
6007 EOF
6008
6009           cat >> confdefs.h <<\EOF
6010 #define HAVE_ISINF 1
6011 EOF
6012
6013           cat >> confdefs.h <<\EOF
6014 #define HAVE_ISINFF 1
6015 EOF
6016
6017           cat >> confdefs.h <<\EOF
6018 #define HAVE_ISNAN 1
6019 EOF
6020
6021           cat >> confdefs.h <<\EOF
6022 #define HAVE_ISNANF 1
6023 EOF
6024
6025           ;;
6026       esac
6027
6028       ;;
6029     *-netbsd*)
6030       # Check for available headers.
6031       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6032         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6033         fp.h locale.h float.h inttypes.h
6034 do
6035 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6036 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6037 echo "configure:6029: checking for $ac_hdr" >&5
6038 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6039   echo $ac_n "(cached) $ac_c" 1>&6
6040 else
6041   cat > conftest.$ac_ext <<EOF
6042 #line 6034 "configure"
6043 #include "confdefs.h"
6044 #include <$ac_hdr>
6045 EOF
6046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6047 { (eval echo configure:6039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6049 if test -z "$ac_err"; then
6050   rm -rf conftest*
6051   eval "ac_cv_header_$ac_safe=yes"
6052 else
6053   echo "$ac_err" >&5
6054   echo "configure: failed program was:" >&5
6055   cat conftest.$ac_ext >&5
6056   rm -rf conftest*
6057   eval "ac_cv_header_$ac_safe=no"
6058 fi
6059 rm -f conftest*
6060 fi
6061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6062   echo "$ac_t""yes" 1>&6
6063     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6064   cat >> confdefs.h <<EOF
6065 #define $ac_tr_hdr 1
6066 EOF
6067  
6068 else
6069   echo "$ac_t""no" 1>&6
6070 fi
6071 done
6072
6073       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6074        
6075       
6076   # If we're not using GNU ld, then there's no point in even trying these
6077   # tests.  Check for that first.  We should have already tested for gld
6078   # by now (in libtool), but require it now just to be safe...
6079   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6080   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6081   
6082
6083   # The name set by libtool depends on the version of libtool.  Shame on us
6084   # for depending on an impl detail, but c'est la vie.  Older versions used
6085   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6086   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6087   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6088   # set (hence we're using an older libtool), then set it.
6089   if test x${with_gnu_ld+set} != xset; then
6090     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6091       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6092       with_gnu_ld=no
6093     else
6094       with_gnu_ld=$ac_cv_prog_gnu_ld
6095     fi
6096   fi
6097
6098   # Start by getting the version number.  I think the libtool test already
6099   # does some of this, but throws away the result.
6100   
6101   ldver=`$LD --version 2>/dev/null | head -1 | \
6102          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6103   
6104   glibcpp_gnu_ld_version=`echo $ldver | \
6105          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6106
6107   # Set --gc-sections.
6108   if test "$with_gnu_ld" = "notbroken"; then
6109     # GNU ld it is!  Joy and bunny rabbits!
6110
6111     # All these tests are for C++; save the language and the compiler flags.
6112     # Need to do this so that g++ won't try to link in libstdc++
6113     ac_test_CFLAGS="${CFLAGS+set}"
6114     ac_save_CFLAGS="$CFLAGS"
6115     CFLAGS='-x c++  -Wl,--gc-sections'
6116
6117     # Check for -Wl,--gc-sections
6118     # XXX This test is broken at the moment, as symbols required for
6119     # linking are now in libsupc++ (not built yet.....). In addition, 
6120     # this test has cored on solaris in the past. In addition,
6121     # --gc-sections doesn't really work at the moment (keeps on discarding
6122     # used sections, first .eh_frame and now some of the glibc sections for
6123     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6124     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6125 echo "configure:6117: checking for ld that supports -Wl,--gc-sections" >&5
6126     if test "$cross_compiling" = yes; then
6127   ac_sectionLDflags=yes
6128 else
6129   cat > conftest.$ac_ext <<EOF
6130 #line 6122 "configure"
6131 #include "confdefs.h"
6132
6133      int main(void) 
6134      {
6135        try { throw 1; }
6136        catch (...) { };
6137        return 0;
6138      }
6139     
6140 EOF
6141 if { (eval echo configure:6133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6142 then
6143   ac_sectionLDflags=yes
6144 else
6145   echo "configure: failed program was:" >&5
6146   cat conftest.$ac_ext >&5
6147   rm -fr conftest*
6148   ac_sectionLDflags=no
6149 fi
6150 rm -fr conftest*
6151 fi
6152
6153     if test "$ac_test_CFLAGS" = set; then
6154       CFLAGS="$ac_save_CFLAGS"
6155     else
6156       # this is the suspicious part
6157       CFLAGS=''
6158     fi
6159     if test "$ac_sectionLDflags" = "yes"; then
6160       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6161     fi
6162     echo "$ac_t""$ac_sectionLDflags" 1>&6
6163   fi
6164
6165   # Set linker optimization flags.
6166   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6167     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6168   fi
6169
6170   
6171   
6172
6173       
6174     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6175 echo "configure:6167: checking for main in -lm" >&5
6176 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6178   echo $ac_n "(cached) $ac_c" 1>&6
6179 else
6180   ac_save_LIBS="$LIBS"
6181 LIBS="-lm  $LIBS"
6182 cat > conftest.$ac_ext <<EOF
6183 #line 6175 "configure"
6184 #include "confdefs.h"
6185
6186 int main() {
6187 main()
6188 ; return 0; }
6189 EOF
6190 if { (eval echo configure:6182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6191   rm -rf conftest*
6192   eval "ac_cv_lib_$ac_lib_var=yes"
6193 else
6194   echo "configure: failed program was:" >&5
6195   cat conftest.$ac_ext >&5
6196   rm -rf conftest*
6197   eval "ac_cv_lib_$ac_lib_var=no"
6198 fi
6199 rm -f conftest*
6200 LIBS="$ac_save_LIBS"
6201
6202 fi
6203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6204   echo "$ac_t""yes" 1>&6
6205     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6206     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6207   cat >> confdefs.h <<EOF
6208 #define $ac_tr_lib 1
6209 EOF
6210
6211   LIBS="-lm $LIBS"
6212
6213 else
6214   echo "$ac_t""no" 1>&6
6215 fi
6216
6217   for ac_func in nan copysignf
6218 do
6219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6220 echo "configure:6212: checking for $ac_func" >&5
6221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6222   echo $ac_n "(cached) $ac_c" 1>&6
6223 else
6224   cat > conftest.$ac_ext <<EOF
6225 #line 6217 "configure"
6226 #include "confdefs.h"
6227 /* System header to define __stub macros and hopefully few prototypes,
6228     which can conflict with char $ac_func(); below.  */
6229 #include <assert.h>
6230 /* Override any gcc2 internal prototype to avoid an error.  */
6231 /* We use char because int might match the return type of a gcc2
6232     builtin and then its argument prototype would still apply.  */
6233 char $ac_func();
6234
6235 int main() {
6236
6237 /* The GNU C library defines this for functions which it implements
6238     to always fail with ENOSYS.  Some functions are actually named
6239     something starting with __ and the normal name is an alias.  */
6240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6241 choke me
6242 #else
6243 $ac_func();
6244 #endif
6245
6246 ; return 0; }
6247 EOF
6248 if { (eval echo configure:6240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6249   rm -rf conftest*
6250   eval "ac_cv_func_$ac_func=yes"
6251 else
6252   echo "configure: failed program was:" >&5
6253   cat conftest.$ac_ext >&5
6254   rm -rf conftest*
6255   eval "ac_cv_func_$ac_func=no"
6256 fi
6257 rm -f conftest*
6258 fi
6259
6260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6261   echo "$ac_t""yes" 1>&6
6262     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6263   cat >> confdefs.h <<EOF
6264 #define $ac_tr_func 1
6265 EOF
6266  
6267 else
6268   echo "$ac_t""no" 1>&6
6269 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6270 fi
6271 done
6272
6273
6274     for ac_func in __signbit
6275 do
6276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6277 echo "configure:6269: checking for $ac_func" >&5
6278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6279   echo $ac_n "(cached) $ac_c" 1>&6
6280 else
6281   cat > conftest.$ac_ext <<EOF
6282 #line 6274 "configure"
6283 #include "confdefs.h"
6284 /* System header to define __stub macros and hopefully few prototypes,
6285     which can conflict with char $ac_func(); below.  */
6286 #include <assert.h>
6287 /* Override any gcc2 internal prototype to avoid an error.  */
6288 /* We use char because int might match the return type of a gcc2
6289     builtin and then its argument prototype would still apply.  */
6290 char $ac_func();
6291
6292 int main() {
6293
6294 /* The GNU C library defines this for functions which it implements
6295     to always fail with ENOSYS.  Some functions are actually named
6296     something starting with __ and the normal name is an alias.  */
6297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6298 choke me
6299 #else
6300 $ac_func();
6301 #endif
6302
6303 ; return 0; }
6304 EOF
6305 if { (eval echo configure:6297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6306   rm -rf conftest*
6307   eval "ac_cv_func_$ac_func=yes"
6308 else
6309   echo "configure: failed program was:" >&5
6310   cat conftest.$ac_ext >&5
6311   rm -rf conftest*
6312   eval "ac_cv_func_$ac_func=no"
6313 fi
6314 rm -f conftest*
6315 fi
6316
6317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6318   echo "$ac_t""yes" 1>&6
6319     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6320   cat >> confdefs.h <<EOF
6321 #define $ac_tr_func 1
6322 EOF
6323  
6324 else
6325   echo "$ac_t""no" 1>&6
6326 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6327 fi
6328 done
6329
6330   for ac_func in __signbitf
6331 do
6332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6333 echo "configure:6325: checking for $ac_func" >&5
6334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6335   echo $ac_n "(cached) $ac_c" 1>&6
6336 else
6337   cat > conftest.$ac_ext <<EOF
6338 #line 6330 "configure"
6339 #include "confdefs.h"
6340 /* System header to define __stub macros and hopefully few prototypes,
6341     which can conflict with char $ac_func(); below.  */
6342 #include <assert.h>
6343 /* Override any gcc2 internal prototype to avoid an error.  */
6344 /* We use char because int might match the return type of a gcc2
6345     builtin and then its argument prototype would still apply.  */
6346 char $ac_func();
6347
6348 int main() {
6349
6350 /* The GNU C library defines this for functions which it implements
6351     to always fail with ENOSYS.  Some functions are actually named
6352     something starting with __ and the normal name is an alias.  */
6353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6354 choke me
6355 #else
6356 $ac_func();
6357 #endif
6358
6359 ; return 0; }
6360 EOF
6361 if { (eval echo configure:6353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6362   rm -rf conftest*
6363   eval "ac_cv_func_$ac_func=yes"
6364 else
6365   echo "configure: failed program was:" >&5
6366   cat conftest.$ac_ext >&5
6367   rm -rf conftest*
6368   eval "ac_cv_func_$ac_func=no"
6369 fi
6370 rm -f conftest*
6371 fi
6372
6373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6374   echo "$ac_t""yes" 1>&6
6375     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6376   cat >> confdefs.h <<EOF
6377 #define $ac_tr_func 1
6378 EOF
6379  
6380 else
6381   echo "$ac_t""no" 1>&6
6382 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6383 fi
6384 done
6385
6386
6387           if test x$ac_cv_func_copysignl = x"yes"; then
6388     for ac_func in __signbitl
6389 do
6390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6391 echo "configure:6383: checking for $ac_func" >&5
6392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6393   echo $ac_n "(cached) $ac_c" 1>&6
6394 else
6395   cat > conftest.$ac_ext <<EOF
6396 #line 6388 "configure"
6397 #include "confdefs.h"
6398 /* System header to define __stub macros and hopefully few prototypes,
6399     which can conflict with char $ac_func(); below.  */
6400 #include <assert.h>
6401 /* Override any gcc2 internal prototype to avoid an error.  */
6402 /* We use char because int might match the return type of a gcc2
6403     builtin and then its argument prototype would still apply.  */
6404 char $ac_func();
6405
6406 int main() {
6407
6408 /* The GNU C library defines this for functions which it implements
6409     to always fail with ENOSYS.  Some functions are actually named
6410     something starting with __ and the normal name is an alias.  */
6411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6412 choke me
6413 #else
6414 $ac_func();
6415 #endif
6416
6417 ; return 0; }
6418 EOF
6419 if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6420   rm -rf conftest*
6421   eval "ac_cv_func_$ac_func=yes"
6422 else
6423   echo "configure: failed program was:" >&5
6424   cat conftest.$ac_ext >&5
6425   rm -rf conftest*
6426   eval "ac_cv_func_$ac_func=no"
6427 fi
6428 rm -f conftest*
6429 fi
6430
6431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6432   echo "$ac_t""yes" 1>&6
6433     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6434   cat >> confdefs.h <<EOF
6435 #define $ac_tr_func 1
6436 EOF
6437  
6438 else
6439   echo "$ac_t""no" 1>&6
6440 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6441 fi
6442 done
6443
6444   fi
6445
6446   
6447
6448       
6449
6450       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6451 echo "configure:6443: checking for mbstate_t" >&5
6452   cat > conftest.$ac_ext <<EOF
6453 #line 6445 "configure"
6454 #include "confdefs.h"
6455 #include <wchar.h>
6456 int main() {
6457 mbstate_t teststate;
6458 ; return 0; }
6459 EOF
6460 if { (eval echo configure:6452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6461   rm -rf conftest*
6462   have_mbstate_t=yes
6463 else
6464   echo "configure: failed program was:" >&5
6465   cat conftest.$ac_ext >&5
6466   rm -rf conftest*
6467   have_mbstate_t=no
6468 fi
6469 rm -f conftest*
6470   echo "$ac_t""$have_mbstate_t" 1>&6
6471   if test x"$have_mbstate_t" = xyes; then
6472     cat >> confdefs.h <<\EOF
6473 #define HAVE_MBSTATE_T 1
6474 EOF
6475
6476   fi
6477
6478     for ac_hdr in wchar.h
6479 do
6480 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6481 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6482 echo "configure:6474: checking for $ac_hdr" >&5
6483 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6484   echo $ac_n "(cached) $ac_c" 1>&6
6485 else
6486   cat > conftest.$ac_ext <<EOF
6487 #line 6479 "configure"
6488 #include "confdefs.h"
6489 #include <$ac_hdr>
6490 EOF
6491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6492 { (eval echo configure:6484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6494 if test -z "$ac_err"; then
6495   rm -rf conftest*
6496   eval "ac_cv_header_$ac_safe=yes"
6497 else
6498   echo "$ac_err" >&5
6499   echo "configure: failed program was:" >&5
6500   cat conftest.$ac_ext >&5
6501   rm -rf conftest*
6502   eval "ac_cv_header_$ac_safe=no"
6503 fi
6504 rm -f conftest*
6505 fi
6506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6507   echo "$ac_t""yes" 1>&6
6508     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6509   cat >> confdefs.h <<EOF
6510 #define $ac_tr_hdr 1
6511 EOF
6512  ac_has_wchar_h=yes
6513 else
6514   echo "$ac_t""no" 1>&6
6515 ac_has_wchar_h=no
6516 fi
6517 done
6518
6519   for ac_hdr in wctype.h
6520 do
6521 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6522 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6523 echo "configure:6515: checking for $ac_hdr" >&5
6524 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6525   echo $ac_n "(cached) $ac_c" 1>&6
6526 else
6527   cat > conftest.$ac_ext <<EOF
6528 #line 6520 "configure"
6529 #include "confdefs.h"
6530 #include <$ac_hdr>
6531 EOF
6532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6533 { (eval echo configure:6525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6535 if test -z "$ac_err"; then
6536   rm -rf conftest*
6537   eval "ac_cv_header_$ac_safe=yes"
6538 else
6539   echo "$ac_err" >&5
6540   echo "configure: failed program was:" >&5
6541   cat conftest.$ac_ext >&5
6542   rm -rf conftest*
6543   eval "ac_cv_header_$ac_safe=no"
6544 fi
6545 rm -f conftest*
6546 fi
6547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6548   echo "$ac_t""yes" 1>&6
6549     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6550   cat >> confdefs.h <<EOF
6551 #define $ac_tr_hdr 1
6552 EOF
6553  ac_has_wctype_h=yes
6554 else
6555   echo "$ac_t""no" 1>&6
6556 ac_has_wctype_h=no
6557 fi
6558 done
6559
6560   
6561     if test x"$ac_has_wchar_h" = xyes &&
6562      test x"$ac_has_wctype_h" = xyes &&
6563      test x"$enable_c_mbchar" != xno; then
6564       
6565             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6566 echo "configure:6558: checking for WCHAR_MIN and WCHAR_MAX" >&5
6567     cat > conftest.$ac_ext <<EOF
6568 #line 6560 "configure"
6569 #include "confdefs.h"
6570 #include <wchar.h>
6571 int main() {
6572 int i = WCHAR_MIN; int j = WCHAR_MAX;
6573 ; return 0; }
6574 EOF
6575 if { (eval echo configure:6567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6576   rm -rf conftest*
6577   has_wchar_minmax=yes
6578 else
6579   echo "configure: failed program was:" >&5
6580   cat conftest.$ac_ext >&5
6581   rm -rf conftest*
6582   has_wchar_minmax=no
6583 fi
6584 rm -f conftest*
6585     echo "$ac_t""$has_wchar_minmax" 1>&6
6586     
6587             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6588 echo "configure:6580: checking for WEOF" >&5
6589     cat > conftest.$ac_ext <<EOF
6590 #line 6582 "configure"
6591 #include "confdefs.h"
6592
6593       #include <wchar.h>
6594       #include <stddef.h>
6595 int main() {
6596 wint_t i = WEOF;
6597 ; return 0; }
6598 EOF
6599 if { (eval echo configure:6591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6600   rm -rf conftest*
6601   has_weof=yes
6602 else
6603   echo "configure: failed program was:" >&5
6604   cat conftest.$ac_ext >&5
6605   rm -rf conftest*
6606   has_weof=no
6607 fi
6608 rm -f conftest*
6609     echo "$ac_t""$has_weof" 1>&6
6610   
6611         ac_wfuncs=yes
6612     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6613 do
6614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6615 echo "configure:6607: checking for $ac_func" >&5
6616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6617   echo $ac_n "(cached) $ac_c" 1>&6
6618 else
6619   cat > conftest.$ac_ext <<EOF
6620 #line 6612 "configure"
6621 #include "confdefs.h"
6622 /* System header to define __stub macros and hopefully few prototypes,
6623     which can conflict with char $ac_func(); below.  */
6624 #include <assert.h>
6625 /* Override any gcc2 internal prototype to avoid an error.  */
6626 /* We use char because int might match the return type of a gcc2
6627     builtin and then its argument prototype would still apply.  */
6628 char $ac_func();
6629
6630 int main() {
6631
6632 /* The GNU C library defines this for functions which it implements
6633     to always fail with ENOSYS.  Some functions are actually named
6634     something starting with __ and the normal name is an alias.  */
6635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6636 choke me
6637 #else
6638 $ac_func();
6639 #endif
6640
6641 ; return 0; }
6642 EOF
6643 if { (eval echo configure:6635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6644   rm -rf conftest*
6645   eval "ac_cv_func_$ac_func=yes"
6646 else
6647   echo "configure: failed program was:" >&5
6648   cat conftest.$ac_ext >&5
6649   rm -rf conftest*
6650   eval "ac_cv_func_$ac_func=no"
6651 fi
6652 rm -f conftest*
6653 fi
6654
6655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6656   echo "$ac_t""yes" 1>&6
6657     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6658   cat >> confdefs.h <<EOF
6659 #define $ac_tr_func 1
6660 EOF
6661  
6662 else
6663   echo "$ac_t""no" 1>&6
6664 \
6665     ac_wfuncs=no
6666 fi
6667 done
6668
6669   
6670         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6671     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6672     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6673     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6674     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6675     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6676 do
6677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6678 echo "configure:6670: checking for $ac_func" >&5
6679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6680   echo $ac_n "(cached) $ac_c" 1>&6
6681 else
6682   cat > conftest.$ac_ext <<EOF
6683 #line 6675 "configure"
6684 #include "confdefs.h"
6685 /* System header to define __stub macros and hopefully few prototypes,
6686     which can conflict with char $ac_func(); below.  */
6687 #include <assert.h>
6688 /* Override any gcc2 internal prototype to avoid an error.  */
6689 /* We use char because int might match the return type of a gcc2
6690     builtin and then its argument prototype would still apply.  */
6691 char $ac_func();
6692
6693 int main() {
6694
6695 /* The GNU C library defines this for functions which it implements
6696     to always fail with ENOSYS.  Some functions are actually named
6697     something starting with __ and the normal name is an alias.  */
6698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6699 choke me
6700 #else
6701 $ac_func();
6702 #endif
6703
6704 ; return 0; }
6705 EOF
6706 if { (eval echo configure:6698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6707   rm -rf conftest*
6708   eval "ac_cv_func_$ac_func=yes"
6709 else
6710   echo "configure: failed program was:" >&5
6711   cat conftest.$ac_ext >&5
6712   rm -rf conftest*
6713   eval "ac_cv_func_$ac_func=no"
6714 fi
6715 rm -f conftest*
6716 fi
6717
6718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6719   echo "$ac_t""yes" 1>&6
6720     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6721   cat >> confdefs.h <<EOF
6722 #define $ac_tr_func 1
6723 EOF
6724  
6725 else
6726   echo "$ac_t""no" 1>&6
6727 \
6728     ac_wfuncs=no
6729 fi
6730 done
6731
6732
6733     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6734 echo "configure:6726: checking for ISO C99 wchar_t support" >&5
6735     if test x"$has_weof" = xyes &&
6736        test x"$has_wchar_minmax" = xyes &&
6737        test x"$ac_wfuncs" = xyes; then
6738       ac_isoC99_wchar_t=yes
6739     else
6740       ac_isoC99_wchar_t=no
6741     fi
6742     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6743   
6744             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6745 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6746 echo "configure:6738: checking for iconv.h" >&5
6747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6748   echo $ac_n "(cached) $ac_c" 1>&6
6749 else
6750   cat > conftest.$ac_ext <<EOF
6751 #line 6743 "configure"
6752 #include "confdefs.h"
6753 #include <iconv.h>
6754 EOF
6755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6756 { (eval echo configure:6748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6758 if test -z "$ac_err"; then
6759   rm -rf conftest*
6760   eval "ac_cv_header_$ac_safe=yes"
6761 else
6762   echo "$ac_err" >&5
6763   echo "configure: failed program was:" >&5
6764   cat conftest.$ac_ext >&5
6765   rm -rf conftest*
6766   eval "ac_cv_header_$ac_safe=no"
6767 fi
6768 rm -f conftest*
6769 fi
6770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6771   echo "$ac_t""yes" 1>&6
6772   ac_has_iconv_h=yes
6773 else
6774   echo "$ac_t""no" 1>&6
6775 ac_has_iconv_h=no
6776 fi
6777
6778     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6779 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6780 echo "configure:6772: checking for langinfo.h" >&5
6781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6782   echo $ac_n "(cached) $ac_c" 1>&6
6783 else
6784   cat > conftest.$ac_ext <<EOF
6785 #line 6777 "configure"
6786 #include "confdefs.h"
6787 #include <langinfo.h>
6788 EOF
6789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6790 { (eval echo configure:6782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6792 if test -z "$ac_err"; then
6793   rm -rf conftest*
6794   eval "ac_cv_header_$ac_safe=yes"
6795 else
6796   echo "$ac_err" >&5
6797   echo "configure: failed program was:" >&5
6798   cat conftest.$ac_ext >&5
6799   rm -rf conftest*
6800   eval "ac_cv_header_$ac_safe=no"
6801 fi
6802 rm -f conftest*
6803 fi
6804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6805   echo "$ac_t""yes" 1>&6
6806   ac_has_langinfo_h=yes
6807 else
6808   echo "$ac_t""no" 1>&6
6809 ac_has_langinfo_h=no
6810 fi
6811
6812
6813         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6814 echo "configure:6806: checking for iconv in -liconv" >&5
6815 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6817   echo $ac_n "(cached) $ac_c" 1>&6
6818 else
6819   ac_save_LIBS="$LIBS"
6820 LIBS="-liconv  $LIBS"
6821 cat > conftest.$ac_ext <<EOF
6822 #line 6814 "configure"
6823 #include "confdefs.h"
6824 /* Override any gcc2 internal prototype to avoid an error.  */
6825 /* We use char because int might match the return type of a gcc2
6826     builtin and then its argument prototype would still apply.  */
6827 char iconv();
6828
6829 int main() {
6830 iconv()
6831 ; return 0; }
6832 EOF
6833 if { (eval echo configure:6825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6834   rm -rf conftest*
6835   eval "ac_cv_lib_$ac_lib_var=yes"
6836 else
6837   echo "configure: failed program was:" >&5
6838   cat conftest.$ac_ext >&5
6839   rm -rf conftest*
6840   eval "ac_cv_lib_$ac_lib_var=no"
6841 fi
6842 rm -f conftest*
6843 LIBS="$ac_save_LIBS"
6844
6845 fi
6846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6847   echo "$ac_t""yes" 1>&6
6848   libiconv="-liconv"
6849 else
6850   echo "$ac_t""no" 1>&6
6851 fi
6852
6853     ac_save_LIBS="$LIBS"
6854     LIBS="$LIBS $libiconv"
6855
6856     for ac_func in iconv_open iconv_close iconv nl_langinfo
6857 do
6858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6859 echo "configure:6851: checking for $ac_func" >&5
6860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6861   echo $ac_n "(cached) $ac_c" 1>&6
6862 else
6863   cat > conftest.$ac_ext <<EOF
6864 #line 6856 "configure"
6865 #include "confdefs.h"
6866 /* System header to define __stub macros and hopefully few prototypes,
6867     which can conflict with char $ac_func(); below.  */
6868 #include <assert.h>
6869 /* Override any gcc2 internal prototype to avoid an error.  */
6870 /* We use char because int might match the return type of a gcc2
6871     builtin and then its argument prototype would still apply.  */
6872 char $ac_func();
6873
6874 int main() {
6875
6876 /* The GNU C library defines this for functions which it implements
6877     to always fail with ENOSYS.  Some functions are actually named
6878     something starting with __ and the normal name is an alias.  */
6879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6880 choke me
6881 #else
6882 $ac_func();
6883 #endif
6884
6885 ; return 0; }
6886 EOF
6887 if { (eval echo configure:6879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6888   rm -rf conftest*
6889   eval "ac_cv_func_$ac_func=yes"
6890 else
6891   echo "configure: failed program was:" >&5
6892   cat conftest.$ac_ext >&5
6893   rm -rf conftest*
6894   eval "ac_cv_func_$ac_func=no"
6895 fi
6896 rm -f conftest*
6897 fi
6898
6899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6900   echo "$ac_t""yes" 1>&6
6901     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6902   cat >> confdefs.h <<EOF
6903 #define $ac_tr_func 1
6904 EOF
6905  \
6906     ac_XPG2funcs=yes
6907 else
6908   echo "$ac_t""no" 1>&6
6909 ac_XPG2funcs=no
6910 fi
6911 done
6912
6913   
6914     LIBS="$ac_save_LIBS"
6915
6916     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6917 echo "configure:6909: checking for XPG2 wchar_t support" >&5
6918     if test x"$ac_has_iconv_h" = xyes &&
6919        test x"$ac_has_langinfo_h" = xyes &&
6920        test x"$ac_XPG2funcs" = xyes; then
6921       ac_XPG2_wchar_t=yes
6922     else
6923       ac_XPG2_wchar_t=no
6924     fi
6925     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6926   
6927             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6928 echo "configure:6920: checking for enabled wchar_t specializations" >&5
6929     if test x"$ac_isoC99_wchar_t" = xyes &&
6930        test x"$ac_XPG2_wchar_t" = xyes; then
6931       cat >> confdefs.h <<\EOF
6932 #define _GLIBCPP_USE_WCHAR_T 1
6933 EOF
6934
6935       echo "$ac_t"""yes"" 1>&6
6936     else
6937       echo "$ac_t"""no"" 1>&6
6938     fi
6939   else
6940         echo "configure: warning: wchar_t support disabled." 1>&2
6941   fi
6942
6943       os_include_dir="os/bsd/netbsd"
6944       cat >> confdefs.h <<\EOF
6945 #define HAVE_COPYSIGN 1
6946 EOF
6947
6948       cat >> confdefs.h <<\EOF
6949 #define HAVE_COPYSIGNF 1
6950 EOF
6951
6952       cat >> confdefs.h <<\EOF
6953 #define HAVE_FINITEF 1
6954 EOF
6955
6956       cat >> confdefs.h <<\EOF
6957 #define HAVE_FINITE 1
6958 EOF
6959
6960       cat >> confdefs.h <<\EOF
6961 #define HAVE_FREXPF 1
6962 EOF
6963
6964       cat >> confdefs.h <<\EOF
6965 #define HAVE_HYPOTF 1
6966 EOF
6967
6968       cat >> confdefs.h <<\EOF
6969 #define HAVE_ISINF 1
6970 EOF
6971
6972       cat >> confdefs.h <<\EOF
6973 #define HAVE_ISINFF 1
6974 EOF
6975
6976       cat >> confdefs.h <<\EOF
6977 #define HAVE_ISNAN 1
6978 EOF
6979
6980       cat >> confdefs.h <<\EOF
6981 #define HAVE_ISNANF 1
6982 EOF
6983
6984       if test x"long_double_math_on_this_cpu" = x"yes"; then
6985         cat >> confdefs.h <<\EOF
6986 #define HAVE_FINITEL 1
6987 EOF
6988
6989         cat >> confdefs.h <<\EOF
6990 #define HAVE_ISINFL 1
6991 EOF
6992
6993         cat >> confdefs.h <<\EOF
6994 #define HAVE_ISNANL 1
6995 EOF
6996
6997       fi
6998       ;;
6999     *-mingw32*)
7000       for ac_hdr in sys/types.h locale.h float.h
7001 do
7002 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7003 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7004 echo "configure:6996: checking for $ac_hdr" >&5
7005 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7006   echo $ac_n "(cached) $ac_c" 1>&6
7007 else
7008   cat > conftest.$ac_ext <<EOF
7009 #line 7001 "configure"
7010 #include "confdefs.h"
7011 #include <$ac_hdr>
7012 EOF
7013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7014 { (eval echo configure:7006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7016 if test -z "$ac_err"; then
7017   rm -rf conftest*
7018   eval "ac_cv_header_$ac_safe=yes"
7019 else
7020   echo "$ac_err" >&5
7021   echo "configure: failed program was:" >&5
7022   cat conftest.$ac_ext >&5
7023   rm -rf conftest*
7024   eval "ac_cv_header_$ac_safe=no"
7025 fi
7026 rm -f conftest*
7027 fi
7028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7029   echo "$ac_t""yes" 1>&6
7030     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7031   cat >> confdefs.h <<EOF
7032 #define $ac_tr_hdr 1
7033 EOF
7034  
7035 else
7036   echo "$ac_t""no" 1>&6
7037 fi
7038 done
7039
7040       
7041   # If we're not using GNU ld, then there's no point in even trying these
7042   # tests.  Check for that first.  We should have already tested for gld
7043   # by now (in libtool), but require it now just to be safe...
7044   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7045   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7046   
7047
7048   # The name set by libtool depends on the version of libtool.  Shame on us
7049   # for depending on an impl detail, but c'est la vie.  Older versions used
7050   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7051   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7052   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7053   # set (hence we're using an older libtool), then set it.
7054   if test x${with_gnu_ld+set} != xset; then
7055     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7056       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7057       with_gnu_ld=no
7058     else
7059       with_gnu_ld=$ac_cv_prog_gnu_ld
7060     fi
7061   fi
7062
7063   # Start by getting the version number.  I think the libtool test already
7064   # does some of this, but throws away the result.
7065   
7066   ldver=`$LD --version 2>/dev/null | head -1 | \
7067          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7068   
7069   glibcpp_gnu_ld_version=`echo $ldver | \
7070          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7071
7072   # Set --gc-sections.
7073   if test "$with_gnu_ld" = "notbroken"; then
7074     # GNU ld it is!  Joy and bunny rabbits!
7075
7076     # All these tests are for C++; save the language and the compiler flags.
7077     # Need to do this so that g++ won't try to link in libstdc++
7078     ac_test_CFLAGS="${CFLAGS+set}"
7079     ac_save_CFLAGS="$CFLAGS"
7080     CFLAGS='-x c++  -Wl,--gc-sections'
7081
7082     # Check for -Wl,--gc-sections
7083     # XXX This test is broken at the moment, as symbols required for
7084     # linking are now in libsupc++ (not built yet.....). In addition, 
7085     # this test has cored on solaris in the past. In addition,
7086     # --gc-sections doesn't really work at the moment (keeps on discarding
7087     # used sections, first .eh_frame and now some of the glibc sections for
7088     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7089     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7090 echo "configure:7082: checking for ld that supports -Wl,--gc-sections" >&5
7091     if test "$cross_compiling" = yes; then
7092   ac_sectionLDflags=yes
7093 else
7094   cat > conftest.$ac_ext <<EOF
7095 #line 7087 "configure"
7096 #include "confdefs.h"
7097
7098      int main(void) 
7099      {
7100        try { throw 1; }
7101        catch (...) { };
7102        return 0;
7103      }
7104     
7105 EOF
7106 if { (eval echo configure:7098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7107 then
7108   ac_sectionLDflags=yes
7109 else
7110   echo "configure: failed program was:" >&5
7111   cat conftest.$ac_ext >&5
7112   rm -fr conftest*
7113   ac_sectionLDflags=no
7114 fi
7115 rm -fr conftest*
7116 fi
7117
7118     if test "$ac_test_CFLAGS" = set; then
7119       CFLAGS="$ac_save_CFLAGS"
7120     else
7121       # this is the suspicious part
7122       CFLAGS=''
7123     fi
7124     if test "$ac_sectionLDflags" = "yes"; then
7125       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7126     fi
7127     echo "$ac_t""$ac_sectionLDflags" 1>&6
7128   fi
7129
7130   # Set linker optimization flags.
7131   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7132     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7133   fi
7134
7135   
7136   
7137
7138       
7139     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7140 echo "configure:7132: checking for main in -lm" >&5
7141 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7143   echo $ac_n "(cached) $ac_c" 1>&6
7144 else
7145   ac_save_LIBS="$LIBS"
7146 LIBS="-lm  $LIBS"
7147 cat > conftest.$ac_ext <<EOF
7148 #line 7140 "configure"
7149 #include "confdefs.h"
7150
7151 int main() {
7152 main()
7153 ; return 0; }
7154 EOF
7155 if { (eval echo configure:7147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7156   rm -rf conftest*
7157   eval "ac_cv_lib_$ac_lib_var=yes"
7158 else
7159   echo "configure: failed program was:" >&5
7160   cat conftest.$ac_ext >&5
7161   rm -rf conftest*
7162   eval "ac_cv_lib_$ac_lib_var=no"
7163 fi
7164 rm -f conftest*
7165 LIBS="$ac_save_LIBS"
7166
7167 fi
7168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7169   echo "$ac_t""yes" 1>&6
7170     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7171     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7172   cat >> confdefs.h <<EOF
7173 #define $ac_tr_lib 1
7174 EOF
7175
7176   LIBS="-lm $LIBS"
7177
7178 else
7179   echo "$ac_t""no" 1>&6
7180 fi
7181
7182   for ac_func in nan copysignf
7183 do
7184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7185 echo "configure:7177: checking for $ac_func" >&5
7186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7187   echo $ac_n "(cached) $ac_c" 1>&6
7188 else
7189   cat > conftest.$ac_ext <<EOF
7190 #line 7182 "configure"
7191 #include "confdefs.h"
7192 /* System header to define __stub macros and hopefully few prototypes,
7193     which can conflict with char $ac_func(); below.  */
7194 #include <assert.h>
7195 /* Override any gcc2 internal prototype to avoid an error.  */
7196 /* We use char because int might match the return type of a gcc2
7197     builtin and then its argument prototype would still apply.  */
7198 char $ac_func();
7199
7200 int main() {
7201
7202 /* The GNU C library defines this for functions which it implements
7203     to always fail with ENOSYS.  Some functions are actually named
7204     something starting with __ and the normal name is an alias.  */
7205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7206 choke me
7207 #else
7208 $ac_func();
7209 #endif
7210
7211 ; return 0; }
7212 EOF
7213 if { (eval echo configure:7205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7214   rm -rf conftest*
7215   eval "ac_cv_func_$ac_func=yes"
7216 else
7217   echo "configure: failed program was:" >&5
7218   cat conftest.$ac_ext >&5
7219   rm -rf conftest*
7220   eval "ac_cv_func_$ac_func=no"
7221 fi
7222 rm -f conftest*
7223 fi
7224
7225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7226   echo "$ac_t""yes" 1>&6
7227     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7228   cat >> confdefs.h <<EOF
7229 #define $ac_tr_func 1
7230 EOF
7231  
7232 else
7233   echo "$ac_t""no" 1>&6
7234 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7235 fi
7236 done
7237
7238
7239     for ac_func in __signbit
7240 do
7241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7242 echo "configure:7234: checking for $ac_func" >&5
7243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7244   echo $ac_n "(cached) $ac_c" 1>&6
7245 else
7246   cat > conftest.$ac_ext <<EOF
7247 #line 7239 "configure"
7248 #include "confdefs.h"
7249 /* System header to define __stub macros and hopefully few prototypes,
7250     which can conflict with char $ac_func(); below.  */
7251 #include <assert.h>
7252 /* Override any gcc2 internal prototype to avoid an error.  */
7253 /* We use char because int might match the return type of a gcc2
7254     builtin and then its argument prototype would still apply.  */
7255 char $ac_func();
7256
7257 int main() {
7258
7259 /* The GNU C library defines this for functions which it implements
7260     to always fail with ENOSYS.  Some functions are actually named
7261     something starting with __ and the normal name is an alias.  */
7262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7263 choke me
7264 #else
7265 $ac_func();
7266 #endif
7267
7268 ; return 0; }
7269 EOF
7270 if { (eval echo configure:7262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7271   rm -rf conftest*
7272   eval "ac_cv_func_$ac_func=yes"
7273 else
7274   echo "configure: failed program was:" >&5
7275   cat conftest.$ac_ext >&5
7276   rm -rf conftest*
7277   eval "ac_cv_func_$ac_func=no"
7278 fi
7279 rm -f conftest*
7280 fi
7281
7282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7283   echo "$ac_t""yes" 1>&6
7284     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7285   cat >> confdefs.h <<EOF
7286 #define $ac_tr_func 1
7287 EOF
7288  
7289 else
7290   echo "$ac_t""no" 1>&6
7291 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7292 fi
7293 done
7294
7295   for ac_func in __signbitf
7296 do
7297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7298 echo "configure:7290: checking for $ac_func" >&5
7299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7300   echo $ac_n "(cached) $ac_c" 1>&6
7301 else
7302   cat > conftest.$ac_ext <<EOF
7303 #line 7295 "configure"
7304 #include "confdefs.h"
7305 /* System header to define __stub macros and hopefully few prototypes,
7306     which can conflict with char $ac_func(); below.  */
7307 #include <assert.h>
7308 /* Override any gcc2 internal prototype to avoid an error.  */
7309 /* We use char because int might match the return type of a gcc2
7310     builtin and then its argument prototype would still apply.  */
7311 char $ac_func();
7312
7313 int main() {
7314
7315 /* The GNU C library defines this for functions which it implements
7316     to always fail with ENOSYS.  Some functions are actually named
7317     something starting with __ and the normal name is an alias.  */
7318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7319 choke me
7320 #else
7321 $ac_func();
7322 #endif
7323
7324 ; return 0; }
7325 EOF
7326 if { (eval echo configure:7318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7327   rm -rf conftest*
7328   eval "ac_cv_func_$ac_func=yes"
7329 else
7330   echo "configure: failed program was:" >&5
7331   cat conftest.$ac_ext >&5
7332   rm -rf conftest*
7333   eval "ac_cv_func_$ac_func=no"
7334 fi
7335 rm -f conftest*
7336 fi
7337
7338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7339   echo "$ac_t""yes" 1>&6
7340     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7341   cat >> confdefs.h <<EOF
7342 #define $ac_tr_func 1
7343 EOF
7344  
7345 else
7346   echo "$ac_t""no" 1>&6
7347 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7348 fi
7349 done
7350
7351
7352           if test x$ac_cv_func_copysignl = x"yes"; then
7353     for ac_func in __signbitl
7354 do
7355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7356 echo "configure:7348: checking for $ac_func" >&5
7357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7358   echo $ac_n "(cached) $ac_c" 1>&6
7359 else
7360   cat > conftest.$ac_ext <<EOF
7361 #line 7353 "configure"
7362 #include "confdefs.h"
7363 /* System header to define __stub macros and hopefully few prototypes,
7364     which can conflict with char $ac_func(); below.  */
7365 #include <assert.h>
7366 /* Override any gcc2 internal prototype to avoid an error.  */
7367 /* We use char because int might match the return type of a gcc2
7368     builtin and then its argument prototype would still apply.  */
7369 char $ac_func();
7370
7371 int main() {
7372
7373 /* The GNU C library defines this for functions which it implements
7374     to always fail with ENOSYS.  Some functions are actually named
7375     something starting with __ and the normal name is an alias.  */
7376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7377 choke me
7378 #else
7379 $ac_func();
7380 #endif
7381
7382 ; return 0; }
7383 EOF
7384 if { (eval echo configure:7376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7385   rm -rf conftest*
7386   eval "ac_cv_func_$ac_func=yes"
7387 else
7388   echo "configure: failed program was:" >&5
7389   cat conftest.$ac_ext >&5
7390   rm -rf conftest*
7391   eval "ac_cv_func_$ac_func=no"
7392 fi
7393 rm -f conftest*
7394 fi
7395
7396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7397   echo "$ac_t""yes" 1>&6
7398     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7399   cat >> confdefs.h <<EOF
7400 #define $ac_tr_func 1
7401 EOF
7402  
7403 else
7404   echo "$ac_t""no" 1>&6
7405 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7406 fi
7407 done
7408
7409   fi
7410
7411   
7412
7413       
7414
7415       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7416 echo "configure:7408: checking for mbstate_t" >&5
7417   cat > conftest.$ac_ext <<EOF
7418 #line 7410 "configure"
7419 #include "confdefs.h"
7420 #include <wchar.h>
7421 int main() {
7422 mbstate_t teststate;
7423 ; return 0; }
7424 EOF
7425 if { (eval echo configure:7417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7426   rm -rf conftest*
7427   have_mbstate_t=yes
7428 else
7429   echo "configure: failed program was:" >&5
7430   cat conftest.$ac_ext >&5
7431   rm -rf conftest*
7432   have_mbstate_t=no
7433 fi
7434 rm -f conftest*
7435   echo "$ac_t""$have_mbstate_t" 1>&6
7436   if test x"$have_mbstate_t" = xyes; then
7437     cat >> confdefs.h <<\EOF
7438 #define HAVE_MBSTATE_T 1
7439 EOF
7440
7441   fi
7442
7443     for ac_hdr in wchar.h
7444 do
7445 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7446 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7447 echo "configure:7439: checking for $ac_hdr" >&5
7448 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7449   echo $ac_n "(cached) $ac_c" 1>&6
7450 else
7451   cat > conftest.$ac_ext <<EOF
7452 #line 7444 "configure"
7453 #include "confdefs.h"
7454 #include <$ac_hdr>
7455 EOF
7456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7457 { (eval echo configure:7449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7459 if test -z "$ac_err"; then
7460   rm -rf conftest*
7461   eval "ac_cv_header_$ac_safe=yes"
7462 else
7463   echo "$ac_err" >&5
7464   echo "configure: failed program was:" >&5
7465   cat conftest.$ac_ext >&5
7466   rm -rf conftest*
7467   eval "ac_cv_header_$ac_safe=no"
7468 fi
7469 rm -f conftest*
7470 fi
7471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7472   echo "$ac_t""yes" 1>&6
7473     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7474   cat >> confdefs.h <<EOF
7475 #define $ac_tr_hdr 1
7476 EOF
7477  ac_has_wchar_h=yes
7478 else
7479   echo "$ac_t""no" 1>&6
7480 ac_has_wchar_h=no
7481 fi
7482 done
7483
7484   for ac_hdr in wctype.h
7485 do
7486 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7487 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7488 echo "configure:7480: checking for $ac_hdr" >&5
7489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7490   echo $ac_n "(cached) $ac_c" 1>&6
7491 else
7492   cat > conftest.$ac_ext <<EOF
7493 #line 7485 "configure"
7494 #include "confdefs.h"
7495 #include <$ac_hdr>
7496 EOF
7497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7498 { (eval echo configure:7490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7500 if test -z "$ac_err"; then
7501   rm -rf conftest*
7502   eval "ac_cv_header_$ac_safe=yes"
7503 else
7504   echo "$ac_err" >&5
7505   echo "configure: failed program was:" >&5
7506   cat conftest.$ac_ext >&5
7507   rm -rf conftest*
7508   eval "ac_cv_header_$ac_safe=no"
7509 fi
7510 rm -f conftest*
7511 fi
7512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7513   echo "$ac_t""yes" 1>&6
7514     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7515   cat >> confdefs.h <<EOF
7516 #define $ac_tr_hdr 1
7517 EOF
7518  ac_has_wctype_h=yes
7519 else
7520   echo "$ac_t""no" 1>&6
7521 ac_has_wctype_h=no
7522 fi
7523 done
7524
7525   
7526     if test x"$ac_has_wchar_h" = xyes &&
7527      test x"$ac_has_wctype_h" = xyes &&
7528      test x"$enable_c_mbchar" != xno; then
7529       
7530             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7531 echo "configure:7523: checking for WCHAR_MIN and WCHAR_MAX" >&5
7532     cat > conftest.$ac_ext <<EOF
7533 #line 7525 "configure"
7534 #include "confdefs.h"
7535 #include <wchar.h>
7536 int main() {
7537 int i = WCHAR_MIN; int j = WCHAR_MAX;
7538 ; return 0; }
7539 EOF
7540 if { (eval echo configure:7532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7541   rm -rf conftest*
7542   has_wchar_minmax=yes
7543 else
7544   echo "configure: failed program was:" >&5
7545   cat conftest.$ac_ext >&5
7546   rm -rf conftest*
7547   has_wchar_minmax=no
7548 fi
7549 rm -f conftest*
7550     echo "$ac_t""$has_wchar_minmax" 1>&6
7551     
7552             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7553 echo "configure:7545: checking for WEOF" >&5
7554     cat > conftest.$ac_ext <<EOF
7555 #line 7547 "configure"
7556 #include "confdefs.h"
7557
7558       #include <wchar.h>
7559       #include <stddef.h>
7560 int main() {
7561 wint_t i = WEOF;
7562 ; return 0; }
7563 EOF
7564 if { (eval echo configure:7556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7565   rm -rf conftest*
7566   has_weof=yes
7567 else
7568   echo "configure: failed program was:" >&5
7569   cat conftest.$ac_ext >&5
7570   rm -rf conftest*
7571   has_weof=no
7572 fi
7573 rm -f conftest*
7574     echo "$ac_t""$has_weof" 1>&6
7575   
7576         ac_wfuncs=yes
7577     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7578 do
7579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7580 echo "configure:7572: checking for $ac_func" >&5
7581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7582   echo $ac_n "(cached) $ac_c" 1>&6
7583 else
7584   cat > conftest.$ac_ext <<EOF
7585 #line 7577 "configure"
7586 #include "confdefs.h"
7587 /* System header to define __stub macros and hopefully few prototypes,
7588     which can conflict with char $ac_func(); below.  */
7589 #include <assert.h>
7590 /* Override any gcc2 internal prototype to avoid an error.  */
7591 /* We use char because int might match the return type of a gcc2
7592     builtin and then its argument prototype would still apply.  */
7593 char $ac_func();
7594
7595 int main() {
7596
7597 /* The GNU C library defines this for functions which it implements
7598     to always fail with ENOSYS.  Some functions are actually named
7599     something starting with __ and the normal name is an alias.  */
7600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7601 choke me
7602 #else
7603 $ac_func();
7604 #endif
7605
7606 ; return 0; }
7607 EOF
7608 if { (eval echo configure:7600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7609   rm -rf conftest*
7610   eval "ac_cv_func_$ac_func=yes"
7611 else
7612   echo "configure: failed program was:" >&5
7613   cat conftest.$ac_ext >&5
7614   rm -rf conftest*
7615   eval "ac_cv_func_$ac_func=no"
7616 fi
7617 rm -f conftest*
7618 fi
7619
7620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7621   echo "$ac_t""yes" 1>&6
7622     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7623   cat >> confdefs.h <<EOF
7624 #define $ac_tr_func 1
7625 EOF
7626  
7627 else
7628   echo "$ac_t""no" 1>&6
7629 \
7630     ac_wfuncs=no
7631 fi
7632 done
7633
7634   
7635         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7636     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7637     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7638     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7639     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7640     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7641 do
7642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7643 echo "configure:7635: checking for $ac_func" >&5
7644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7645   echo $ac_n "(cached) $ac_c" 1>&6
7646 else
7647   cat > conftest.$ac_ext <<EOF
7648 #line 7640 "configure"
7649 #include "confdefs.h"
7650 /* System header to define __stub macros and hopefully few prototypes,
7651     which can conflict with char $ac_func(); below.  */
7652 #include <assert.h>
7653 /* Override any gcc2 internal prototype to avoid an error.  */
7654 /* We use char because int might match the return type of a gcc2
7655     builtin and then its argument prototype would still apply.  */
7656 char $ac_func();
7657
7658 int main() {
7659
7660 /* The GNU C library defines this for functions which it implements
7661     to always fail with ENOSYS.  Some functions are actually named
7662     something starting with __ and the normal name is an alias.  */
7663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7664 choke me
7665 #else
7666 $ac_func();
7667 #endif
7668
7669 ; return 0; }
7670 EOF
7671 if { (eval echo configure:7663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7672   rm -rf conftest*
7673   eval "ac_cv_func_$ac_func=yes"
7674 else
7675   echo "configure: failed program was:" >&5
7676   cat conftest.$ac_ext >&5
7677   rm -rf conftest*
7678   eval "ac_cv_func_$ac_func=no"
7679 fi
7680 rm -f conftest*
7681 fi
7682
7683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7684   echo "$ac_t""yes" 1>&6
7685     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7686   cat >> confdefs.h <<EOF
7687 #define $ac_tr_func 1
7688 EOF
7689  
7690 else
7691   echo "$ac_t""no" 1>&6
7692 \
7693     ac_wfuncs=no
7694 fi
7695 done
7696
7697
7698     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7699 echo "configure:7691: checking for ISO C99 wchar_t support" >&5
7700     if test x"$has_weof" = xyes &&
7701        test x"$has_wchar_minmax" = xyes &&
7702        test x"$ac_wfuncs" = xyes; then
7703       ac_isoC99_wchar_t=yes
7704     else
7705       ac_isoC99_wchar_t=no
7706     fi
7707     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7708   
7709             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7710 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7711 echo "configure:7703: checking for iconv.h" >&5
7712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7713   echo $ac_n "(cached) $ac_c" 1>&6
7714 else
7715   cat > conftest.$ac_ext <<EOF
7716 #line 7708 "configure"
7717 #include "confdefs.h"
7718 #include <iconv.h>
7719 EOF
7720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7721 { (eval echo configure:7713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7723 if test -z "$ac_err"; then
7724   rm -rf conftest*
7725   eval "ac_cv_header_$ac_safe=yes"
7726 else
7727   echo "$ac_err" >&5
7728   echo "configure: failed program was:" >&5
7729   cat conftest.$ac_ext >&5
7730   rm -rf conftest*
7731   eval "ac_cv_header_$ac_safe=no"
7732 fi
7733 rm -f conftest*
7734 fi
7735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7736   echo "$ac_t""yes" 1>&6
7737   ac_has_iconv_h=yes
7738 else
7739   echo "$ac_t""no" 1>&6
7740 ac_has_iconv_h=no
7741 fi
7742
7743     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7744 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7745 echo "configure:7737: checking for langinfo.h" >&5
7746 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7747   echo $ac_n "(cached) $ac_c" 1>&6
7748 else
7749   cat > conftest.$ac_ext <<EOF
7750 #line 7742 "configure"
7751 #include "confdefs.h"
7752 #include <langinfo.h>
7753 EOF
7754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7755 { (eval echo configure:7747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7757 if test -z "$ac_err"; then
7758   rm -rf conftest*
7759   eval "ac_cv_header_$ac_safe=yes"
7760 else
7761   echo "$ac_err" >&5
7762   echo "configure: failed program was:" >&5
7763   cat conftest.$ac_ext >&5
7764   rm -rf conftest*
7765   eval "ac_cv_header_$ac_safe=no"
7766 fi
7767 rm -f conftest*
7768 fi
7769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7770   echo "$ac_t""yes" 1>&6
7771   ac_has_langinfo_h=yes
7772 else
7773   echo "$ac_t""no" 1>&6
7774 ac_has_langinfo_h=no
7775 fi
7776
7777
7778         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7779 echo "configure:7771: checking for iconv in -liconv" >&5
7780 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7782   echo $ac_n "(cached) $ac_c" 1>&6
7783 else
7784   ac_save_LIBS="$LIBS"
7785 LIBS="-liconv  $LIBS"
7786 cat > conftest.$ac_ext <<EOF
7787 #line 7779 "configure"
7788 #include "confdefs.h"
7789 /* Override any gcc2 internal prototype to avoid an error.  */
7790 /* We use char because int might match the return type of a gcc2
7791     builtin and then its argument prototype would still apply.  */
7792 char iconv();
7793
7794 int main() {
7795 iconv()
7796 ; return 0; }
7797 EOF
7798 if { (eval echo configure:7790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7799   rm -rf conftest*
7800   eval "ac_cv_lib_$ac_lib_var=yes"
7801 else
7802   echo "configure: failed program was:" >&5
7803   cat conftest.$ac_ext >&5
7804   rm -rf conftest*
7805   eval "ac_cv_lib_$ac_lib_var=no"
7806 fi
7807 rm -f conftest*
7808 LIBS="$ac_save_LIBS"
7809
7810 fi
7811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7812   echo "$ac_t""yes" 1>&6
7813   libiconv="-liconv"
7814 else
7815   echo "$ac_t""no" 1>&6
7816 fi
7817
7818     ac_save_LIBS="$LIBS"
7819     LIBS="$LIBS $libiconv"
7820
7821     for ac_func in iconv_open iconv_close iconv nl_langinfo
7822 do
7823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7824 echo "configure:7816: checking for $ac_func" >&5
7825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7826   echo $ac_n "(cached) $ac_c" 1>&6
7827 else
7828   cat > conftest.$ac_ext <<EOF
7829 #line 7821 "configure"
7830 #include "confdefs.h"
7831 /* System header to define __stub macros and hopefully few prototypes,
7832     which can conflict with char $ac_func(); below.  */
7833 #include <assert.h>
7834 /* Override any gcc2 internal prototype to avoid an error.  */
7835 /* We use char because int might match the return type of a gcc2
7836     builtin and then its argument prototype would still apply.  */
7837 char $ac_func();
7838
7839 int main() {
7840
7841 /* The GNU C library defines this for functions which it implements
7842     to always fail with ENOSYS.  Some functions are actually named
7843     something starting with __ and the normal name is an alias.  */
7844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7845 choke me
7846 #else
7847 $ac_func();
7848 #endif
7849
7850 ; return 0; }
7851 EOF
7852 if { (eval echo configure:7844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7853   rm -rf conftest*
7854   eval "ac_cv_func_$ac_func=yes"
7855 else
7856   echo "configure: failed program was:" >&5
7857   cat conftest.$ac_ext >&5
7858   rm -rf conftest*
7859   eval "ac_cv_func_$ac_func=no"
7860 fi
7861 rm -f conftest*
7862 fi
7863
7864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7865   echo "$ac_t""yes" 1>&6
7866     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7867   cat >> confdefs.h <<EOF
7868 #define $ac_tr_func 1
7869 EOF
7870  \
7871     ac_XPG2funcs=yes
7872 else
7873   echo "$ac_t""no" 1>&6
7874 ac_XPG2funcs=no
7875 fi
7876 done
7877
7878   
7879     LIBS="$ac_save_LIBS"
7880
7881     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7882 echo "configure:7874: checking for XPG2 wchar_t support" >&5
7883     if test x"$ac_has_iconv_h" = xyes &&
7884        test x"$ac_has_langinfo_h" = xyes &&
7885        test x"$ac_XPG2funcs" = xyes; then
7886       ac_XPG2_wchar_t=yes
7887     else
7888       ac_XPG2_wchar_t=no
7889     fi
7890     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7891   
7892             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7893 echo "configure:7885: checking for enabled wchar_t specializations" >&5
7894     if test x"$ac_isoC99_wchar_t" = xyes &&
7895        test x"$ac_XPG2_wchar_t" = xyes; then
7896       cat >> confdefs.h <<\EOF
7897 #define _GLIBCPP_USE_WCHAR_T 1
7898 EOF
7899
7900       echo "$ac_t"""yes"" 1>&6
7901     else
7902       echo "$ac_t"""no"" 1>&6
7903     fi
7904   else
7905         echo "configure: warning: wchar_t support disabled." 1>&2
7906   fi
7907
7908       os_include_dir="os/mingw32"
7909       ;;
7910     *-windiss*)
7911       os_include_dir="os/windiss"
7912       ;;
7913     *-qnx6.[12]*)
7914       SECTION_FLAGS='-ffunction-sections -fdata-sections'
7915        
7916       
7917   # If we're not using GNU ld, then there's no point in even trying these
7918   # tests.  Check for that first.  We should have already tested for gld
7919   # by now (in libtool), but require it now just to be safe...
7920   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7921   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7922   
7923
7924   # The name set by libtool depends on the version of libtool.  Shame on us
7925   # for depending on an impl detail, but c'est la vie.  Older versions used
7926   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7927   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7928   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7929   # set (hence we're using an older libtool), then set it.
7930   if test x${with_gnu_ld+set} != xset; then
7931     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7932       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7933       with_gnu_ld=no
7934     else
7935       with_gnu_ld=$ac_cv_prog_gnu_ld
7936     fi
7937   fi
7938
7939   # Start by getting the version number.  I think the libtool test already
7940   # does some of this, but throws away the result.
7941   
7942   ldver=`$LD --version 2>/dev/null | head -1 | \
7943          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7944   
7945   glibcpp_gnu_ld_version=`echo $ldver | \
7946          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7947
7948   # Set --gc-sections.
7949   if test "$with_gnu_ld" = "notbroken"; then
7950     # GNU ld it is!  Joy and bunny rabbits!
7951
7952     # All these tests are for C++; save the language and the compiler flags.
7953     # Need to do this so that g++ won't try to link in libstdc++
7954     ac_test_CFLAGS="${CFLAGS+set}"
7955     ac_save_CFLAGS="$CFLAGS"
7956     CFLAGS='-x c++  -Wl,--gc-sections'
7957
7958     # Check for -Wl,--gc-sections
7959     # XXX This test is broken at the moment, as symbols required for
7960     # linking are now in libsupc++ (not built yet.....). In addition, 
7961     # this test has cored on solaris in the past. In addition,
7962     # --gc-sections doesn't really work at the moment (keeps on discarding
7963     # used sections, first .eh_frame and now some of the glibc sections for
7964     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7965     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7966 echo "configure:7958: checking for ld that supports -Wl,--gc-sections" >&5
7967     if test "$cross_compiling" = yes; then
7968   ac_sectionLDflags=yes
7969 else
7970   cat > conftest.$ac_ext <<EOF
7971 #line 7963 "configure"
7972 #include "confdefs.h"
7973
7974      int main(void) 
7975      {
7976        try { throw 1; }
7977        catch (...) { };
7978        return 0;
7979      }
7980     
7981 EOF
7982 if { (eval echo configure:7974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7983 then
7984   ac_sectionLDflags=yes
7985 else
7986   echo "configure: failed program was:" >&5
7987   cat conftest.$ac_ext >&5
7988   rm -fr conftest*
7989   ac_sectionLDflags=no
7990 fi
7991 rm -fr conftest*
7992 fi
7993
7994     if test "$ac_test_CFLAGS" = set; then
7995       CFLAGS="$ac_save_CFLAGS"
7996     else
7997       # this is the suspicious part
7998       CFLAGS=''
7999     fi
8000     if test "$ac_sectionLDflags" = "yes"; then
8001       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8002     fi
8003     echo "$ac_t""$ac_sectionLDflags" 1>&6
8004   fi
8005
8006   # Set linker optimization flags.
8007   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
8008     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8009   fi
8010
8011   
8012   
8013
8014       
8015     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8016 echo "configure:8008: checking for main in -lm" >&5
8017 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8019   echo $ac_n "(cached) $ac_c" 1>&6
8020 else
8021   ac_save_LIBS="$LIBS"
8022 LIBS="-lm  $LIBS"
8023 cat > conftest.$ac_ext <<EOF
8024 #line 8016 "configure"
8025 #include "confdefs.h"
8026
8027 int main() {
8028 main()
8029 ; return 0; }
8030 EOF
8031 if { (eval echo configure:8023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8032   rm -rf conftest*
8033   eval "ac_cv_lib_$ac_lib_var=yes"
8034 else
8035   echo "configure: failed program was:" >&5
8036   cat conftest.$ac_ext >&5
8037   rm -rf conftest*
8038   eval "ac_cv_lib_$ac_lib_var=no"
8039 fi
8040 rm -f conftest*
8041 LIBS="$ac_save_LIBS"
8042
8043 fi
8044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8045   echo "$ac_t""yes" 1>&6
8046     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8047     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8048   cat >> confdefs.h <<EOF
8049 #define $ac_tr_lib 1
8050 EOF
8051
8052   LIBS="-lm $LIBS"
8053
8054 else
8055   echo "$ac_t""no" 1>&6
8056 fi
8057
8058   for ac_func in nan copysignf
8059 do
8060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8061 echo "configure:8053: checking for $ac_func" >&5
8062 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8063   echo $ac_n "(cached) $ac_c" 1>&6
8064 else
8065   cat > conftest.$ac_ext <<EOF
8066 #line 8058 "configure"
8067 #include "confdefs.h"
8068 /* System header to define __stub macros and hopefully few prototypes,
8069     which can conflict with char $ac_func(); below.  */
8070 #include <assert.h>
8071 /* Override any gcc2 internal prototype to avoid an error.  */
8072 /* We use char because int might match the return type of a gcc2
8073     builtin and then its argument prototype would still apply.  */
8074 char $ac_func();
8075
8076 int main() {
8077
8078 /* The GNU C library defines this for functions which it implements
8079     to always fail with ENOSYS.  Some functions are actually named
8080     something starting with __ and the normal name is an alias.  */
8081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8082 choke me
8083 #else
8084 $ac_func();
8085 #endif
8086
8087 ; return 0; }
8088 EOF
8089 if { (eval echo configure:8081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8090   rm -rf conftest*
8091   eval "ac_cv_func_$ac_func=yes"
8092 else
8093   echo "configure: failed program was:" >&5
8094   cat conftest.$ac_ext >&5
8095   rm -rf conftest*
8096   eval "ac_cv_func_$ac_func=no"
8097 fi
8098 rm -f conftest*
8099 fi
8100
8101 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8102   echo "$ac_t""yes" 1>&6
8103     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8104   cat >> confdefs.h <<EOF
8105 #define $ac_tr_func 1
8106 EOF
8107  
8108 else
8109   echo "$ac_t""no" 1>&6
8110 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8111 fi
8112 done
8113
8114
8115     for ac_func in __signbit
8116 do
8117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8118 echo "configure:8110: checking for $ac_func" >&5
8119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8120   echo $ac_n "(cached) $ac_c" 1>&6
8121 else
8122   cat > conftest.$ac_ext <<EOF
8123 #line 8115 "configure"
8124 #include "confdefs.h"
8125 /* System header to define __stub macros and hopefully few prototypes,
8126     which can conflict with char $ac_func(); below.  */
8127 #include <assert.h>
8128 /* Override any gcc2 internal prototype to avoid an error.  */
8129 /* We use char because int might match the return type of a gcc2
8130     builtin and then its argument prototype would still apply.  */
8131 char $ac_func();
8132
8133 int main() {
8134
8135 /* The GNU C library defines this for functions which it implements
8136     to always fail with ENOSYS.  Some functions are actually named
8137     something starting with __ and the normal name is an alias.  */
8138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8139 choke me
8140 #else
8141 $ac_func();
8142 #endif
8143
8144 ; return 0; }
8145 EOF
8146 if { (eval echo configure:8138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8147   rm -rf conftest*
8148   eval "ac_cv_func_$ac_func=yes"
8149 else
8150   echo "configure: failed program was:" >&5
8151   cat conftest.$ac_ext >&5
8152   rm -rf conftest*
8153   eval "ac_cv_func_$ac_func=no"
8154 fi
8155 rm -f conftest*
8156 fi
8157
8158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8159   echo "$ac_t""yes" 1>&6
8160     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8161   cat >> confdefs.h <<EOF
8162 #define $ac_tr_func 1
8163 EOF
8164  
8165 else
8166   echo "$ac_t""no" 1>&6
8167 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8168 fi
8169 done
8170
8171   for ac_func in __signbitf
8172 do
8173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8174 echo "configure:8166: checking for $ac_func" >&5
8175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8176   echo $ac_n "(cached) $ac_c" 1>&6
8177 else
8178   cat > conftest.$ac_ext <<EOF
8179 #line 8171 "configure"
8180 #include "confdefs.h"
8181 /* System header to define __stub macros and hopefully few prototypes,
8182     which can conflict with char $ac_func(); below.  */
8183 #include <assert.h>
8184 /* Override any gcc2 internal prototype to avoid an error.  */
8185 /* We use char because int might match the return type of a gcc2
8186     builtin and then its argument prototype would still apply.  */
8187 char $ac_func();
8188
8189 int main() {
8190
8191 /* The GNU C library defines this for functions which it implements
8192     to always fail with ENOSYS.  Some functions are actually named
8193     something starting with __ and the normal name is an alias.  */
8194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8195 choke me
8196 #else
8197 $ac_func();
8198 #endif
8199
8200 ; return 0; }
8201 EOF
8202 if { (eval echo configure:8194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8203   rm -rf conftest*
8204   eval "ac_cv_func_$ac_func=yes"
8205 else
8206   echo "configure: failed program was:" >&5
8207   cat conftest.$ac_ext >&5
8208   rm -rf conftest*
8209   eval "ac_cv_func_$ac_func=no"
8210 fi
8211 rm -f conftest*
8212 fi
8213
8214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8215   echo "$ac_t""yes" 1>&6
8216     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8217   cat >> confdefs.h <<EOF
8218 #define $ac_tr_func 1
8219 EOF
8220  
8221 else
8222   echo "$ac_t""no" 1>&6
8223 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8224 fi
8225 done
8226
8227
8228           if test x$ac_cv_func_copysignl = x"yes"; then
8229     for ac_func in __signbitl
8230 do
8231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8232 echo "configure:8224: checking for $ac_func" >&5
8233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8234   echo $ac_n "(cached) $ac_c" 1>&6
8235 else
8236   cat > conftest.$ac_ext <<EOF
8237 #line 8229 "configure"
8238 #include "confdefs.h"
8239 /* System header to define __stub macros and hopefully few prototypes,
8240     which can conflict with char $ac_func(); below.  */
8241 #include <assert.h>
8242 /* Override any gcc2 internal prototype to avoid an error.  */
8243 /* We use char because int might match the return type of a gcc2
8244     builtin and then its argument prototype would still apply.  */
8245 char $ac_func();
8246
8247 int main() {
8248
8249 /* The GNU C library defines this for functions which it implements
8250     to always fail with ENOSYS.  Some functions are actually named
8251     something starting with __ and the normal name is an alias.  */
8252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8253 choke me
8254 #else
8255 $ac_func();
8256 #endif
8257
8258 ; return 0; }
8259 EOF
8260 if { (eval echo configure:8252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8261   rm -rf conftest*
8262   eval "ac_cv_func_$ac_func=yes"
8263 else
8264   echo "configure: failed program was:" >&5
8265   cat conftest.$ac_ext >&5
8266   rm -rf conftest*
8267   eval "ac_cv_func_$ac_func=no"
8268 fi
8269 rm -f conftest*
8270 fi
8271
8272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8273   echo "$ac_t""yes" 1>&6
8274     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8275   cat >> confdefs.h <<EOF
8276 #define $ac_tr_func 1
8277 EOF
8278  
8279 else
8280   echo "$ac_t""no" 1>&6
8281 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8282 fi
8283 done
8284
8285   fi
8286
8287   
8288
8289       
8290
8291       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8292 echo "configure:8284: checking for mbstate_t" >&5
8293   cat > conftest.$ac_ext <<EOF
8294 #line 8286 "configure"
8295 #include "confdefs.h"
8296 #include <wchar.h>
8297 int main() {
8298 mbstate_t teststate;
8299 ; return 0; }
8300 EOF
8301 if { (eval echo configure:8293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8302   rm -rf conftest*
8303   have_mbstate_t=yes
8304 else
8305   echo "configure: failed program was:" >&5
8306   cat conftest.$ac_ext >&5
8307   rm -rf conftest*
8308   have_mbstate_t=no
8309 fi
8310 rm -f conftest*
8311   echo "$ac_t""$have_mbstate_t" 1>&6
8312   if test x"$have_mbstate_t" = xyes; then
8313     cat >> confdefs.h <<\EOF
8314 #define HAVE_MBSTATE_T 1
8315 EOF
8316
8317   fi
8318
8319     for ac_hdr in wchar.h
8320 do
8321 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8322 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8323 echo "configure:8315: checking for $ac_hdr" >&5
8324 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8325   echo $ac_n "(cached) $ac_c" 1>&6
8326 else
8327   cat > conftest.$ac_ext <<EOF
8328 #line 8320 "configure"
8329 #include "confdefs.h"
8330 #include <$ac_hdr>
8331 EOF
8332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8333 { (eval echo configure:8325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8335 if test -z "$ac_err"; then
8336   rm -rf conftest*
8337   eval "ac_cv_header_$ac_safe=yes"
8338 else
8339   echo "$ac_err" >&5
8340   echo "configure: failed program was:" >&5
8341   cat conftest.$ac_ext >&5
8342   rm -rf conftest*
8343   eval "ac_cv_header_$ac_safe=no"
8344 fi
8345 rm -f conftest*
8346 fi
8347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8348   echo "$ac_t""yes" 1>&6
8349     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8350   cat >> confdefs.h <<EOF
8351 #define $ac_tr_hdr 1
8352 EOF
8353  ac_has_wchar_h=yes
8354 else
8355   echo "$ac_t""no" 1>&6
8356 ac_has_wchar_h=no
8357 fi
8358 done
8359
8360   for ac_hdr in wctype.h
8361 do
8362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8364 echo "configure:8356: checking for $ac_hdr" >&5
8365 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8366   echo $ac_n "(cached) $ac_c" 1>&6
8367 else
8368   cat > conftest.$ac_ext <<EOF
8369 #line 8361 "configure"
8370 #include "confdefs.h"
8371 #include <$ac_hdr>
8372 EOF
8373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8374 { (eval echo configure:8366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8376 if test -z "$ac_err"; then
8377   rm -rf conftest*
8378   eval "ac_cv_header_$ac_safe=yes"
8379 else
8380   echo "$ac_err" >&5
8381   echo "configure: failed program was:" >&5
8382   cat conftest.$ac_ext >&5
8383   rm -rf conftest*
8384   eval "ac_cv_header_$ac_safe=no"
8385 fi
8386 rm -f conftest*
8387 fi
8388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8389   echo "$ac_t""yes" 1>&6
8390     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8391   cat >> confdefs.h <<EOF
8392 #define $ac_tr_hdr 1
8393 EOF
8394  ac_has_wctype_h=yes
8395 else
8396   echo "$ac_t""no" 1>&6
8397 ac_has_wctype_h=no
8398 fi
8399 done
8400
8401   
8402     if test x"$ac_has_wchar_h" = xyes &&
8403      test x"$ac_has_wctype_h" = xyes &&
8404      test x"$enable_c_mbchar" != xno; then
8405       
8406             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8407 echo "configure:8399: checking for WCHAR_MIN and WCHAR_MAX" >&5
8408     cat > conftest.$ac_ext <<EOF
8409 #line 8401 "configure"
8410 #include "confdefs.h"
8411 #include <wchar.h>
8412 int main() {
8413 int i = WCHAR_MIN; int j = WCHAR_MAX;
8414 ; return 0; }
8415 EOF
8416 if { (eval echo configure:8408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8417   rm -rf conftest*
8418   has_wchar_minmax=yes
8419 else
8420   echo "configure: failed program was:" >&5
8421   cat conftest.$ac_ext >&5
8422   rm -rf conftest*
8423   has_wchar_minmax=no
8424 fi
8425 rm -f conftest*
8426     echo "$ac_t""$has_wchar_minmax" 1>&6
8427     
8428             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8429 echo "configure:8421: checking for WEOF" >&5
8430     cat > conftest.$ac_ext <<EOF
8431 #line 8423 "configure"
8432 #include "confdefs.h"
8433
8434       #include <wchar.h>
8435       #include <stddef.h>
8436 int main() {
8437 wint_t i = WEOF;
8438 ; return 0; }
8439 EOF
8440 if { (eval echo configure:8432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8441   rm -rf conftest*
8442   has_weof=yes
8443 else
8444   echo "configure: failed program was:" >&5
8445   cat conftest.$ac_ext >&5
8446   rm -rf conftest*
8447   has_weof=no
8448 fi
8449 rm -f conftest*
8450     echo "$ac_t""$has_weof" 1>&6
8451   
8452         ac_wfuncs=yes
8453     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8454 do
8455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8456 echo "configure:8448: checking for $ac_func" >&5
8457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8458   echo $ac_n "(cached) $ac_c" 1>&6
8459 else
8460   cat > conftest.$ac_ext <<EOF
8461 #line 8453 "configure"
8462 #include "confdefs.h"
8463 /* System header to define __stub macros and hopefully few prototypes,
8464     which can conflict with char $ac_func(); below.  */
8465 #include <assert.h>
8466 /* Override any gcc2 internal prototype to avoid an error.  */
8467 /* We use char because int might match the return type of a gcc2
8468     builtin and then its argument prototype would still apply.  */
8469 char $ac_func();
8470
8471 int main() {
8472
8473 /* The GNU C library defines this for functions which it implements
8474     to always fail with ENOSYS.  Some functions are actually named
8475     something starting with __ and the normal name is an alias.  */
8476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8477 choke me
8478 #else
8479 $ac_func();
8480 #endif
8481
8482 ; return 0; }
8483 EOF
8484 if { (eval echo configure:8476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8485   rm -rf conftest*
8486   eval "ac_cv_func_$ac_func=yes"
8487 else
8488   echo "configure: failed program was:" >&5
8489   cat conftest.$ac_ext >&5
8490   rm -rf conftest*
8491   eval "ac_cv_func_$ac_func=no"
8492 fi
8493 rm -f conftest*
8494 fi
8495
8496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8497   echo "$ac_t""yes" 1>&6
8498     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8499   cat >> confdefs.h <<EOF
8500 #define $ac_tr_func 1
8501 EOF
8502  
8503 else
8504   echo "$ac_t""no" 1>&6
8505 \
8506     ac_wfuncs=no
8507 fi
8508 done
8509
8510   
8511         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8512     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8513     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8514     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8515     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8516     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8517 do
8518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8519 echo "configure:8511: checking for $ac_func" >&5
8520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8521   echo $ac_n "(cached) $ac_c" 1>&6
8522 else
8523   cat > conftest.$ac_ext <<EOF
8524 #line 8516 "configure"
8525 #include "confdefs.h"
8526 /* System header to define __stub macros and hopefully few prototypes,
8527     which can conflict with char $ac_func(); below.  */
8528 #include <assert.h>
8529 /* Override any gcc2 internal prototype to avoid an error.  */
8530 /* We use char because int might match the return type of a gcc2
8531     builtin and then its argument prototype would still apply.  */
8532 char $ac_func();
8533
8534 int main() {
8535
8536 /* The GNU C library defines this for functions which it implements
8537     to always fail with ENOSYS.  Some functions are actually named
8538     something starting with __ and the normal name is an alias.  */
8539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8540 choke me
8541 #else
8542 $ac_func();
8543 #endif
8544
8545 ; return 0; }
8546 EOF
8547 if { (eval echo configure:8539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8548   rm -rf conftest*
8549   eval "ac_cv_func_$ac_func=yes"
8550 else
8551   echo "configure: failed program was:" >&5
8552   cat conftest.$ac_ext >&5
8553   rm -rf conftest*
8554   eval "ac_cv_func_$ac_func=no"
8555 fi
8556 rm -f conftest*
8557 fi
8558
8559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8560   echo "$ac_t""yes" 1>&6
8561     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8562   cat >> confdefs.h <<EOF
8563 #define $ac_tr_func 1
8564 EOF
8565  
8566 else
8567   echo "$ac_t""no" 1>&6
8568 \
8569     ac_wfuncs=no
8570 fi
8571 done
8572
8573
8574     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8575 echo "configure:8567: checking for ISO C99 wchar_t support" >&5
8576     if test x"$has_weof" = xyes &&
8577        test x"$has_wchar_minmax" = xyes &&
8578        test x"$ac_wfuncs" = xyes; then
8579       ac_isoC99_wchar_t=yes
8580     else
8581       ac_isoC99_wchar_t=no
8582     fi
8583     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8584   
8585             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8586 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8587 echo "configure:8579: checking for iconv.h" >&5
8588 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8589   echo $ac_n "(cached) $ac_c" 1>&6
8590 else
8591   cat > conftest.$ac_ext <<EOF
8592 #line 8584 "configure"
8593 #include "confdefs.h"
8594 #include <iconv.h>
8595 EOF
8596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8597 { (eval echo configure:8589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8599 if test -z "$ac_err"; then
8600   rm -rf conftest*
8601   eval "ac_cv_header_$ac_safe=yes"
8602 else
8603   echo "$ac_err" >&5
8604   echo "configure: failed program was:" >&5
8605   cat conftest.$ac_ext >&5
8606   rm -rf conftest*
8607   eval "ac_cv_header_$ac_safe=no"
8608 fi
8609 rm -f conftest*
8610 fi
8611 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8612   echo "$ac_t""yes" 1>&6
8613   ac_has_iconv_h=yes
8614 else
8615   echo "$ac_t""no" 1>&6
8616 ac_has_iconv_h=no
8617 fi
8618
8619     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8620 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8621 echo "configure:8613: checking for langinfo.h" >&5
8622 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8623   echo $ac_n "(cached) $ac_c" 1>&6
8624 else
8625   cat > conftest.$ac_ext <<EOF
8626 #line 8618 "configure"
8627 #include "confdefs.h"
8628 #include <langinfo.h>
8629 EOF
8630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8631 { (eval echo configure:8623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8633 if test -z "$ac_err"; then
8634   rm -rf conftest*
8635   eval "ac_cv_header_$ac_safe=yes"
8636 else
8637   echo "$ac_err" >&5
8638   echo "configure: failed program was:" >&5
8639   cat conftest.$ac_ext >&5
8640   rm -rf conftest*
8641   eval "ac_cv_header_$ac_safe=no"
8642 fi
8643 rm -f conftest*
8644 fi
8645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8646   echo "$ac_t""yes" 1>&6
8647   ac_has_langinfo_h=yes
8648 else
8649   echo "$ac_t""no" 1>&6
8650 ac_has_langinfo_h=no
8651 fi
8652
8653
8654         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8655 echo "configure:8647: checking for iconv in -liconv" >&5
8656 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8657 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8658   echo $ac_n "(cached) $ac_c" 1>&6
8659 else
8660   ac_save_LIBS="$LIBS"
8661 LIBS="-liconv  $LIBS"
8662 cat > conftest.$ac_ext <<EOF
8663 #line 8655 "configure"
8664 #include "confdefs.h"
8665 /* Override any gcc2 internal prototype to avoid an error.  */
8666 /* We use char because int might match the return type of a gcc2
8667     builtin and then its argument prototype would still apply.  */
8668 char iconv();
8669
8670 int main() {
8671 iconv()
8672 ; return 0; }
8673 EOF
8674 if { (eval echo configure:8666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8675   rm -rf conftest*
8676   eval "ac_cv_lib_$ac_lib_var=yes"
8677 else
8678   echo "configure: failed program was:" >&5
8679   cat conftest.$ac_ext >&5
8680   rm -rf conftest*
8681   eval "ac_cv_lib_$ac_lib_var=no"
8682 fi
8683 rm -f conftest*
8684 LIBS="$ac_save_LIBS"
8685
8686 fi
8687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8688   echo "$ac_t""yes" 1>&6
8689   libiconv="-liconv"
8690 else
8691   echo "$ac_t""no" 1>&6
8692 fi
8693
8694     ac_save_LIBS="$LIBS"
8695     LIBS="$LIBS $libiconv"
8696
8697     for ac_func in iconv_open iconv_close iconv nl_langinfo
8698 do
8699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8700 echo "configure:8692: checking for $ac_func" >&5
8701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8702   echo $ac_n "(cached) $ac_c" 1>&6
8703 else
8704   cat > conftest.$ac_ext <<EOF
8705 #line 8697 "configure"
8706 #include "confdefs.h"
8707 /* System header to define __stub macros and hopefully few prototypes,
8708     which can conflict with char $ac_func(); below.  */
8709 #include <assert.h>
8710 /* Override any gcc2 internal prototype to avoid an error.  */
8711 /* We use char because int might match the return type of a gcc2
8712     builtin and then its argument prototype would still apply.  */
8713 char $ac_func();
8714
8715 int main() {
8716
8717 /* The GNU C library defines this for functions which it implements
8718     to always fail with ENOSYS.  Some functions are actually named
8719     something starting with __ and the normal name is an alias.  */
8720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8721 choke me
8722 #else
8723 $ac_func();
8724 #endif
8725
8726 ; return 0; }
8727 EOF
8728 if { (eval echo configure:8720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8729   rm -rf conftest*
8730   eval "ac_cv_func_$ac_func=yes"
8731 else
8732   echo "configure: failed program was:" >&5
8733   cat conftest.$ac_ext >&5
8734   rm -rf conftest*
8735   eval "ac_cv_func_$ac_func=no"
8736 fi
8737 rm -f conftest*
8738 fi
8739
8740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8741   echo "$ac_t""yes" 1>&6
8742     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8743   cat >> confdefs.h <<EOF
8744 #define $ac_tr_func 1
8745 EOF
8746  \
8747     ac_XPG2funcs=yes
8748 else
8749   echo "$ac_t""no" 1>&6
8750 ac_XPG2funcs=no
8751 fi
8752 done
8753
8754   
8755     LIBS="$ac_save_LIBS"
8756
8757     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8758 echo "configure:8750: checking for XPG2 wchar_t support" >&5
8759     if test x"$ac_has_iconv_h" = xyes &&
8760        test x"$ac_has_langinfo_h" = xyes &&
8761        test x"$ac_XPG2funcs" = xyes; then
8762       ac_XPG2_wchar_t=yes
8763     else
8764       ac_XPG2_wchar_t=no
8765     fi
8766     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8767   
8768             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8769 echo "configure:8761: checking for enabled wchar_t specializations" >&5
8770     if test x"$ac_isoC99_wchar_t" = xyes &&
8771        test x"$ac_XPG2_wchar_t" = xyes; then
8772       cat >> confdefs.h <<\EOF
8773 #define _GLIBCPP_USE_WCHAR_T 1
8774 EOF
8775
8776       echo "$ac_t"""yes"" 1>&6
8777     else
8778       echo "$ac_t"""no"" 1>&6
8779     fi
8780   else
8781         echo "configure: warning: wchar_t support disabled." 1>&2
8782   fi
8783
8784       os_include_dir="os/qnx/qnx6.1"
8785       cat >> confdefs.h <<\EOF
8786 #define HAVE_COSF 1
8787 EOF
8788
8789       cat >> confdefs.h <<\EOF
8790 #define HAVE_COSL 1
8791 EOF
8792
8793       cat >> confdefs.h <<\EOF
8794 #define HAVE_COSHF 1
8795 EOF
8796
8797       cat >> confdefs.h <<\EOF
8798 #define HAVE_COSHL 1
8799 EOF
8800
8801       cat >> confdefs.h <<\EOF
8802 #define HAVE_LOGF 1
8803 EOF
8804
8805       cat >> confdefs.h <<\EOF
8806 #define HAVE_LOGL 1
8807 EOF
8808
8809       cat >> confdefs.h <<\EOF
8810 #define HAVE_LOG10F 1
8811 EOF
8812
8813       cat >> confdefs.h <<\EOF
8814 #define HAVE_LOG10L 1
8815 EOF
8816
8817       cat >> confdefs.h <<\EOF
8818 #define HAVE_SINF 1
8819 EOF
8820
8821       cat >> confdefs.h <<\EOF
8822 #define HAVE_SINL 1
8823 EOF
8824
8825       cat >> confdefs.h <<\EOF
8826 #define HAVE_SINHF 1
8827 EOF
8828
8829       cat >> confdefs.h <<\EOF
8830 #define HAVE_SINHL 1
8831 EOF
8832
8833       ;;
8834     *)
8835       os_include_dir="os/newlib"
8836       cat >> confdefs.h <<\EOF
8837 #define HAVE_HYPOT 1
8838 EOF
8839
8840       ;;
8841   esac
8842
8843   case "$target_alias" in
8844     *-mingw32*)
8845       ;;
8846     *-windiss*)
8847       cat >> confdefs.h <<\EOF
8848 #define HAVE_ACOSF 1
8849 EOF
8850
8851       cat >> confdefs.h <<\EOF
8852 #define HAVE_ASINF 1
8853 EOF
8854
8855       cat >> confdefs.h <<\EOF
8856 #define HAVE_ATAN2F 1
8857 EOF
8858
8859       cat >> confdefs.h <<\EOF
8860 #define HAVE_ATANF 1
8861 EOF
8862
8863       cat >> confdefs.h <<\EOF
8864 #define HAVE_CEILF 1
8865 EOF
8866
8867       cat >> confdefs.h <<\EOF
8868 #define HAVE_COPYSIGN 1
8869 EOF
8870
8871       cat >> confdefs.h <<\EOF
8872 #define HAVE_COPYSIGNF 1
8873 EOF
8874
8875       cat >> confdefs.h <<\EOF
8876 #define HAVE_COSF 1
8877 EOF
8878
8879       cat >> confdefs.h <<\EOF
8880 #define HAVE_COSHF 1
8881 EOF
8882
8883       cat >> confdefs.h <<\EOF
8884 #define HAVE_EXPF 1
8885 EOF
8886
8887       cat >> confdefs.h <<\EOF
8888 #define HAVE_FABSF 1
8889 EOF
8890
8891       cat >> confdefs.h <<\EOF
8892 #define HAVE_FLOORF 1
8893 EOF
8894
8895       cat >> confdefs.h <<\EOF
8896 #define HAVE_FMODF 1
8897 EOF
8898
8899       cat >> confdefs.h <<\EOF
8900 #define HAVE_FREXPF 1
8901 EOF
8902
8903       cat >> confdefs.h <<\EOF
8904 #define HAVE_LDEXPF 1
8905 EOF
8906
8907       cat >> confdefs.h <<\EOF
8908 #define HAVE_LOG10F 1
8909 EOF
8910
8911       cat >> confdefs.h <<\EOF
8912 #define HAVE_LOGF 1
8913 EOF
8914
8915       cat >> confdefs.h <<\EOF
8916 #define HAVE_MODFF 1
8917 EOF
8918
8919       cat >> confdefs.h <<\EOF
8920 #define HAVE_POWF 1
8921 EOF
8922
8923       cat >> confdefs.h <<\EOF
8924 #define HAVE_SINF 1
8925 EOF
8926
8927       cat >> confdefs.h <<\EOF
8928 #define HAVE_SINHF 1
8929 EOF
8930
8931       cat >> confdefs.h <<\EOF
8932 #define HAVE_SQRTF 1
8933 EOF
8934
8935       cat >> confdefs.h <<\EOF
8936 #define HAVE_TANF 1
8937 EOF
8938
8939       cat >> confdefs.h <<\EOF
8940 #define HAVE_TANHF 1
8941 EOF
8942
8943       ;;
8944     *)
8945       # GLIBCPP_CHECK_STDLIB_SUPPORT
8946       cat >> confdefs.h <<\EOF
8947 #define HAVE_STRTOF 1
8948 EOF
8949         
8950       cat >> confdefs.h <<\EOF
8951 #define HAVE_STRTOLD 1
8952 EOF
8953         
8954       # AC_FUNC_MMAP
8955       cat >> confdefs.h <<\EOF
8956 #define HAVE_MMAP 1
8957 EOF
8958
8959
8960       cat >> confdefs.h <<\EOF
8961 #define HAVE_ACOSF 1
8962 EOF
8963
8964       cat >> confdefs.h <<\EOF
8965 #define HAVE_ASINF 1
8966 EOF
8967
8968       cat >> confdefs.h <<\EOF
8969 #define HAVE_ATAN2F 1
8970 EOF
8971
8972       cat >> confdefs.h <<\EOF
8973 #define HAVE_ATANF 1
8974 EOF
8975
8976       cat >> confdefs.h <<\EOF
8977 #define HAVE_CEILF 1
8978 EOF
8979
8980       cat >> confdefs.h <<\EOF
8981 #define HAVE_COPYSIGN 1
8982 EOF
8983
8984       cat >> confdefs.h <<\EOF
8985 #define HAVE_COPYSIGNF 1
8986 EOF
8987
8988       cat >> confdefs.h <<\EOF
8989 #define HAVE_COSF 1
8990 EOF
8991
8992       cat >> confdefs.h <<\EOF
8993 #define HAVE_COSHF 1
8994 EOF
8995
8996       cat >> confdefs.h <<\EOF
8997 #define HAVE_EXPF 1
8998 EOF
8999
9000       cat >> confdefs.h <<\EOF
9001 #define HAVE_FABSF 1
9002 EOF
9003
9004       cat >> confdefs.h <<\EOF
9005 #define HAVE_FLOORF 1
9006 EOF
9007
9008       cat >> confdefs.h <<\EOF
9009 #define HAVE_FMODF 1
9010 EOF
9011
9012       cat >> confdefs.h <<\EOF
9013 #define HAVE_FREXPF 1
9014 EOF
9015
9016       cat >> confdefs.h <<\EOF
9017 #define HAVE_LDEXPF 1
9018 EOF
9019
9020       cat >> confdefs.h <<\EOF
9021 #define HAVE_LOG10F 1
9022 EOF
9023
9024       cat >> confdefs.h <<\EOF
9025 #define HAVE_LOGF 1
9026 EOF
9027
9028       cat >> confdefs.h <<\EOF
9029 #define HAVE_MODFF 1
9030 EOF
9031
9032       cat >> confdefs.h <<\EOF
9033 #define HAVE_POWF 1
9034 EOF
9035
9036       cat >> confdefs.h <<\EOF
9037 #define HAVE_SINF 1
9038 EOF
9039
9040       cat >> confdefs.h <<\EOF
9041 #define HAVE_SINHF 1
9042 EOF
9043
9044       cat >> confdefs.h <<\EOF
9045 #define HAVE_SQRTF 1
9046 EOF
9047
9048       cat >> confdefs.h <<\EOF
9049 #define HAVE_TANF 1
9050 EOF
9051
9052       cat >> confdefs.h <<\EOF
9053 #define HAVE_TANHF 1
9054 EOF
9055
9056       ;;
9057   esac
9058
9059   # At some point, we should differentiate between architectures
9060   # like x86, which have long double versions, and alpha/powerpc/etc.,
9061   # which don't. For the time being, punt.
9062   if test x"long_double_math_on_this_cpu" = x"yes"; then
9063     cat >> confdefs.h <<\EOF
9064 #define HAVE_ACOSL 1
9065 EOF
9066
9067     cat >> confdefs.h <<\EOF
9068 #define HAVE_ASINL 1
9069 EOF
9070
9071     cat >> confdefs.h <<\EOF
9072 #define HAVE_ATAN2L 1
9073 EOF
9074
9075     cat >> confdefs.h <<\EOF
9076 #define HAVE_ATANL 1
9077 EOF
9078
9079     cat >> confdefs.h <<\EOF
9080 #define HAVE_CEILL 1
9081 EOF
9082
9083     cat >> confdefs.h <<\EOF
9084 #define HAVE_COPYSIGNL 1
9085 EOF
9086
9087     cat >> confdefs.h <<\EOF
9088 #define HAVE_COSL 1
9089 EOF
9090
9091     cat >> confdefs.h <<\EOF
9092 #define HAVE_COSHL 1
9093 EOF
9094
9095     cat >> confdefs.h <<\EOF
9096 #define HAVE_EXPL 1
9097 EOF
9098
9099     cat >> confdefs.h <<\EOF
9100 #define HAVE_FABSL 1
9101 EOF
9102
9103     cat >> confdefs.h <<\EOF
9104 #define HAVE_FLOORL 1
9105 EOF
9106
9107     cat >> confdefs.h <<\EOF
9108 #define HAVE_FMODL 1
9109 EOF
9110
9111     cat >> confdefs.h <<\EOF
9112 #define HAVE_FREXPL 1
9113 EOF
9114
9115     cat >> confdefs.h <<\EOF
9116 #define HAVE_LDEXPL 1
9117 EOF
9118
9119     cat >> confdefs.h <<\EOF
9120 #define HAVE_LOG10L 1
9121 EOF
9122
9123     cat >> confdefs.h <<\EOF
9124 #define HAVE_LOGL 1
9125 EOF
9126
9127     cat >> confdefs.h <<\EOF
9128 #define HAVE_MODFL 1
9129 EOF
9130
9131     cat >> confdefs.h <<\EOF
9132 #define HAVE_POWL 1
9133 EOF
9134
9135     cat >> confdefs.h <<\EOF
9136 #define HAVE_SINCOSL 1
9137 EOF
9138
9139     cat >> confdefs.h <<\EOF
9140 #define HAVE_SINL 1
9141 EOF
9142
9143     cat >> confdefs.h <<\EOF
9144 #define HAVE_SINHL 1
9145 EOF
9146
9147     cat >> confdefs.h <<\EOF
9148 #define HAVE_SQRTL 1
9149 EOF
9150
9151     cat >> confdefs.h <<\EOF
9152 #define HAVE_TANL 1
9153 EOF
9154
9155     cat >> confdefs.h <<\EOF
9156 #define HAVE_TANHL 1
9157 EOF
9158
9159   fi
9160
9161 else
9162
9163   # We are being configured natively. We can do more elaborate tests
9164   # that include AC_TRY_COMPILE now, as the linker is assumed to be
9165   # working.
9166   GLIBCPP_IS_CROSS_COMPILING=0
9167   CANADIAN=no
9168
9169   # Check for available headers.
9170   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
9171   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
9172 do
9173 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9174 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9175 echo "configure:9167: checking for $ac_hdr" >&5
9176 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9177   echo $ac_n "(cached) $ac_c" 1>&6
9178 else
9179   cat > conftest.$ac_ext <<EOF
9180 #line 9172 "configure"
9181 #include "confdefs.h"
9182 #include <$ac_hdr>
9183 EOF
9184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9185 { (eval echo configure:9177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9187 if test -z "$ac_err"; then
9188   rm -rf conftest*
9189   eval "ac_cv_header_$ac_safe=yes"
9190 else
9191   echo "$ac_err" >&5
9192   echo "configure: failed program was:" >&5
9193   cat conftest.$ac_ext >&5
9194   rm -rf conftest*
9195   eval "ac_cv_header_$ac_safe=no"
9196 fi
9197 rm -f conftest*
9198 fi
9199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9200   echo "$ac_t""yes" 1>&6
9201     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9202   cat >> confdefs.h <<EOF
9203 #define $ac_tr_hdr 1
9204 EOF
9205  
9206 else
9207   echo "$ac_t""no" 1>&6
9208 fi
9209 done
9210
9211
9212   
9213   # All these tests are for C++; save the language and the compiler flags.
9214   # The CXXFLAGS thing is suspicious, but based on similar bits previously
9215   # found in GLIBCPP_CONFIGURE.
9216   
9217   ac_ext=C
9218 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9219 ac_cpp='$CXXCPP $CPPFLAGS'
9220 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9221 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9222 cross_compiling=$ac_cv_prog_cxx_cross
9223
9224   ac_test_CXXFLAGS="${CXXFLAGS+set}"
9225   ac_save_CXXFLAGS="$CXXFLAGS"
9226
9227   # Check for maintainer-mode bits.
9228   if test x"$USE_MAINTAINER_MODE" = xno; then
9229     WERROR=''
9230   else
9231     WERROR='-Werror'
9232   fi
9233
9234   # Check for -ffunction-sections -fdata-sections
9235   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
9236 echo "configure:9228: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
9237   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
9238   cat > conftest.$ac_ext <<EOF
9239 #line 9231 "configure"
9240 #include "confdefs.h"
9241
9242 int main() {
9243 int foo;
9244   
9245 ; return 0; }
9246 EOF
9247 if { (eval echo configure:9239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9248   rm -rf conftest*
9249   ac_fdsections=yes
9250 else
9251   echo "configure: failed program was:" >&5
9252   cat conftest.$ac_ext >&5
9253   rm -rf conftest*
9254   ac_fdsections=no
9255 fi
9256 rm -f conftest*
9257   if test "$ac_test_CXXFLAGS" = set; then
9258     CXXFLAGS="$ac_save_CXXFLAGS"
9259   else
9260     # this is the suspicious part
9261     CXXFLAGS=''
9262   fi
9263   if test x"$ac_fdsections" = x"yes" &&
9264      test x"$enable_debug" = x"no"; then
9265     SECTION_FLAGS='-ffunction-sections -fdata-sections'
9266   fi
9267   echo "$ac_t""$ac_fdsections" 1>&6
9268
9269   ac_ext=c
9270 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9271 ac_cpp='$CPP $CPPFLAGS'
9272 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9273 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9274 cross_compiling=$ac_cv_prog_cc_cross
9275
9276   
9277   
9278
9279   
9280   # If we're not using GNU ld, then there's no point in even trying these
9281   # tests.  Check for that first.  We should have already tested for gld
9282   # by now (in libtool), but require it now just to be safe...
9283   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9284   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9285   
9286
9287   # The name set by libtool depends on the version of libtool.  Shame on us
9288   # for depending on an impl detail, but c'est la vie.  Older versions used
9289   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9290   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9291   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9292   # set (hence we're using an older libtool), then set it.
9293   if test x${with_gnu_ld+set} != xset; then
9294     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9295       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9296       with_gnu_ld=no
9297     else
9298       with_gnu_ld=$ac_cv_prog_gnu_ld
9299     fi
9300   fi
9301
9302   # Start by getting the version number.  I think the libtool test already
9303   # does some of this, but throws away the result.
9304   
9305   ldver=`$LD --version 2>/dev/null | head -1 | \
9306          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9307   
9308   glibcpp_gnu_ld_version=`echo $ldver | \
9309          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9310
9311   # Set --gc-sections.
9312   if test "$with_gnu_ld" = "notbroken"; then
9313     # GNU ld it is!  Joy and bunny rabbits!
9314
9315     # All these tests are for C++; save the language and the compiler flags.
9316     # Need to do this so that g++ won't try to link in libstdc++
9317     ac_test_CFLAGS="${CFLAGS+set}"
9318     ac_save_CFLAGS="$CFLAGS"
9319     CFLAGS='-x c++  -Wl,--gc-sections'
9320
9321     # Check for -Wl,--gc-sections
9322     # XXX This test is broken at the moment, as symbols required for
9323     # linking are now in libsupc++ (not built yet.....). In addition, 
9324     # this test has cored on solaris in the past. In addition,
9325     # --gc-sections doesn't really work at the moment (keeps on discarding
9326     # used sections, first .eh_frame and now some of the glibc sections for
9327     # iconv). Bzzzzt. Thanks for playing, maybe next time.
9328     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9329 echo "configure:9321: checking for ld that supports -Wl,--gc-sections" >&5
9330     if test "$cross_compiling" = yes; then
9331   ac_sectionLDflags=yes
9332 else
9333   cat > conftest.$ac_ext <<EOF
9334 #line 9326 "configure"
9335 #include "confdefs.h"
9336
9337      int main(void) 
9338      {
9339        try { throw 1; }
9340        catch (...) { };
9341        return 0;
9342      }
9343     
9344 EOF
9345 if { (eval echo configure:9337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9346 then
9347   ac_sectionLDflags=yes
9348 else
9349   echo "configure: failed program was:" >&5
9350   cat conftest.$ac_ext >&5
9351   rm -fr conftest*
9352   ac_sectionLDflags=no
9353 fi
9354 rm -fr conftest*
9355 fi
9356
9357     if test "$ac_test_CFLAGS" = set; then
9358       CFLAGS="$ac_save_CFLAGS"
9359     else
9360       # this is the suspicious part
9361       CFLAGS=''
9362     fi
9363     if test "$ac_sectionLDflags" = "yes"; then
9364       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9365     fi
9366     echo "$ac_t""$ac_sectionLDflags" 1>&6
9367   fi
9368
9369   # Set linker optimization flags.
9370   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9371     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9372   fi
9373
9374   
9375   
9376
9377   
9378       
9379   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
9380 echo "configure:9372: checking for __builtin_abs declaration" >&5
9381   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
9382     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
9383   echo $ac_n "(cached) $ac_c" 1>&6
9384 else
9385   
9386       
9387       ac_ext=C
9388 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9389 ac_cpp='$CXXCPP $CPPFLAGS'
9390 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9391 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9392 cross_compiling=$ac_cv_prog_cxx_cross
9393
9394       cat > conftest.$ac_ext <<EOF
9395 #line 9387 "configure"
9396 #include "confdefs.h"
9397 #include <math.h>
9398 int main() {
9399  __builtin_abs(0);
9400 ; return 0; }
9401 EOF
9402 if { (eval echo configure:9394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9403   rm -rf conftest*
9404   glibcpp_cv_func___builtin_abs_use=yes
9405 else
9406   echo "configure: failed program was:" >&5
9407   cat conftest.$ac_ext >&5
9408   rm -rf conftest*
9409   glibcpp_cv_func___builtin_abs_use=no
9410 fi
9411 rm -f conftest*
9412       ac_ext=c
9413 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9414 ac_cpp='$CPP $CPPFLAGS'
9415 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9416 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9417 cross_compiling=$ac_cv_prog_cc_cross
9418
9419     
9420 fi
9421
9422   fi
9423   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
9424   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
9425     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
9426 echo "configure:9418: checking for __builtin_abs linkage" >&5
9427     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
9428       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
9429   echo $ac_n "(cached) $ac_c" 1>&6
9430 else
9431   
9432         cat > conftest.$ac_ext <<EOF
9433 #line 9425 "configure"
9434 #include "confdefs.h"
9435 #include <math.h>
9436 int main() {
9437  __builtin_abs(0);
9438 ; return 0; }
9439 EOF
9440 if { (eval echo configure:9432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9441   rm -rf conftest*
9442   glibcpp_cv_func___builtin_abs_link=yes
9443 else
9444   echo "configure: failed program was:" >&5
9445   cat conftest.$ac_ext >&5
9446   rm -rf conftest*
9447   glibcpp_cv_func___builtin_abs_link=no
9448 fi
9449 rm -f conftest*
9450       
9451 fi
9452
9453     fi
9454     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
9455     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
9456       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9457       cat >> confdefs.h <<EOF
9458 #define ${ac_tr_func} 1
9459 EOF
9460
9461     fi
9462   fi
9463
9464   
9465   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
9466 echo "configure:9458: checking for __builtin_fabsf declaration" >&5
9467   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
9468     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
9469   echo $ac_n "(cached) $ac_c" 1>&6
9470 else
9471   
9472       
9473       ac_ext=C
9474 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9475 ac_cpp='$CXXCPP $CPPFLAGS'
9476 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9477 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9478 cross_compiling=$ac_cv_prog_cxx_cross
9479
9480       cat > conftest.$ac_ext <<EOF
9481 #line 9473 "configure"
9482 #include "confdefs.h"
9483 #include <math.h>
9484 int main() {
9485  __builtin_fabsf(0);
9486 ; return 0; }
9487 EOF
9488 if { (eval echo configure:9480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9489   rm -rf conftest*
9490   glibcpp_cv_func___builtin_fabsf_use=yes
9491 else
9492   echo "configure: failed program was:" >&5
9493   cat conftest.$ac_ext >&5
9494   rm -rf conftest*
9495   glibcpp_cv_func___builtin_fabsf_use=no
9496 fi
9497 rm -f conftest*
9498       ac_ext=c
9499 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9500 ac_cpp='$CPP $CPPFLAGS'
9501 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9502 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9503 cross_compiling=$ac_cv_prog_cc_cross
9504
9505     
9506 fi
9507
9508   fi
9509   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
9510   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
9511     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
9512 echo "configure:9504: checking for __builtin_fabsf linkage" >&5
9513     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
9514       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
9515   echo $ac_n "(cached) $ac_c" 1>&6
9516 else
9517   
9518         cat > conftest.$ac_ext <<EOF
9519 #line 9511 "configure"
9520 #include "confdefs.h"
9521 #include <math.h>
9522 int main() {
9523  __builtin_fabsf(0);
9524 ; return 0; }
9525 EOF
9526 if { (eval echo configure:9518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9527   rm -rf conftest*
9528   glibcpp_cv_func___builtin_fabsf_link=yes
9529 else
9530   echo "configure: failed program was:" >&5
9531   cat conftest.$ac_ext >&5
9532   rm -rf conftest*
9533   glibcpp_cv_func___builtin_fabsf_link=no
9534 fi
9535 rm -f conftest*
9536       
9537 fi
9538
9539     fi
9540     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
9541     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
9542       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9543       cat >> confdefs.h <<EOF
9544 #define ${ac_tr_func} 1
9545 EOF
9546
9547     fi
9548   fi
9549
9550   
9551   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
9552 echo "configure:9544: checking for __builtin_fabs declaration" >&5
9553   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
9554     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
9555   echo $ac_n "(cached) $ac_c" 1>&6
9556 else
9557   
9558       
9559       ac_ext=C
9560 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9561 ac_cpp='$CXXCPP $CPPFLAGS'
9562 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9563 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9564 cross_compiling=$ac_cv_prog_cxx_cross
9565
9566       cat > conftest.$ac_ext <<EOF
9567 #line 9559 "configure"
9568 #include "confdefs.h"
9569 #include <math.h>
9570 int main() {
9571  __builtin_fabs(0);
9572 ; return 0; }
9573 EOF
9574 if { (eval echo configure:9566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9575   rm -rf conftest*
9576   glibcpp_cv_func___builtin_fabs_use=yes
9577 else
9578   echo "configure: failed program was:" >&5
9579   cat conftest.$ac_ext >&5
9580   rm -rf conftest*
9581   glibcpp_cv_func___builtin_fabs_use=no
9582 fi
9583 rm -f conftest*
9584       ac_ext=c
9585 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9586 ac_cpp='$CPP $CPPFLAGS'
9587 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9588 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9589 cross_compiling=$ac_cv_prog_cc_cross
9590
9591     
9592 fi
9593
9594   fi
9595   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
9596   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
9597     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
9598 echo "configure:9590: checking for __builtin_fabs linkage" >&5
9599     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
9600       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
9601   echo $ac_n "(cached) $ac_c" 1>&6
9602 else
9603   
9604         cat > conftest.$ac_ext <<EOF
9605 #line 9597 "configure"
9606 #include "confdefs.h"
9607 #include <math.h>
9608 int main() {
9609  __builtin_fabs(0);
9610 ; return 0; }
9611 EOF
9612 if { (eval echo configure:9604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9613   rm -rf conftest*
9614   glibcpp_cv_func___builtin_fabs_link=yes
9615 else
9616   echo "configure: failed program was:" >&5
9617   cat conftest.$ac_ext >&5
9618   rm -rf conftest*
9619   glibcpp_cv_func___builtin_fabs_link=no
9620 fi
9621 rm -f conftest*
9622       
9623 fi
9624
9625     fi
9626     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
9627     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
9628       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9629       cat >> confdefs.h <<EOF
9630 #define ${ac_tr_func} 1
9631 EOF
9632
9633     fi
9634   fi
9635
9636   
9637   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
9638 echo "configure:9630: checking for __builtin_fabsl declaration" >&5
9639   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
9640     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
9641   echo $ac_n "(cached) $ac_c" 1>&6
9642 else
9643   
9644       
9645       ac_ext=C
9646 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9647 ac_cpp='$CXXCPP $CPPFLAGS'
9648 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9649 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9650 cross_compiling=$ac_cv_prog_cxx_cross
9651
9652       cat > conftest.$ac_ext <<EOF
9653 #line 9645 "configure"
9654 #include "confdefs.h"
9655 #include <math.h>
9656 int main() {
9657  __builtin_fabsl(0);
9658 ; return 0; }
9659 EOF
9660 if { (eval echo configure:9652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9661   rm -rf conftest*
9662   glibcpp_cv_func___builtin_fabsl_use=yes
9663 else
9664   echo "configure: failed program was:" >&5
9665   cat conftest.$ac_ext >&5
9666   rm -rf conftest*
9667   glibcpp_cv_func___builtin_fabsl_use=no
9668 fi
9669 rm -f conftest*
9670       ac_ext=c
9671 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9672 ac_cpp='$CPP $CPPFLAGS'
9673 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9674 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9675 cross_compiling=$ac_cv_prog_cc_cross
9676
9677     
9678 fi
9679
9680   fi
9681   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
9682   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
9683     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
9684 echo "configure:9676: checking for __builtin_fabsl linkage" >&5
9685     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
9686       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
9687   echo $ac_n "(cached) $ac_c" 1>&6
9688 else
9689   
9690         cat > conftest.$ac_ext <<EOF
9691 #line 9683 "configure"
9692 #include "confdefs.h"
9693 #include <math.h>
9694 int main() {
9695  __builtin_fabsl(0);
9696 ; return 0; }
9697 EOF
9698 if { (eval echo configure:9690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9699   rm -rf conftest*
9700   glibcpp_cv_func___builtin_fabsl_link=yes
9701 else
9702   echo "configure: failed program was:" >&5
9703   cat conftest.$ac_ext >&5
9704   rm -rf conftest*
9705   glibcpp_cv_func___builtin_fabsl_link=no
9706 fi
9707 rm -f conftest*
9708       
9709 fi
9710
9711     fi
9712     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
9713     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
9714       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9715       cat >> confdefs.h <<EOF
9716 #define ${ac_tr_func} 1
9717 EOF
9718
9719     fi
9720   fi
9721
9722   
9723   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
9724 echo "configure:9716: checking for __builtin_labs declaration" >&5
9725   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
9726     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
9727   echo $ac_n "(cached) $ac_c" 1>&6
9728 else
9729   
9730       
9731       ac_ext=C
9732 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9733 ac_cpp='$CXXCPP $CPPFLAGS'
9734 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9735 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9736 cross_compiling=$ac_cv_prog_cxx_cross
9737
9738       cat > conftest.$ac_ext <<EOF
9739 #line 9731 "configure"
9740 #include "confdefs.h"
9741 #include <math.h>
9742 int main() {
9743  __builtin_labs(0);
9744 ; return 0; }
9745 EOF
9746 if { (eval echo configure:9738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9747   rm -rf conftest*
9748   glibcpp_cv_func___builtin_labs_use=yes
9749 else
9750   echo "configure: failed program was:" >&5
9751   cat conftest.$ac_ext >&5
9752   rm -rf conftest*
9753   glibcpp_cv_func___builtin_labs_use=no
9754 fi
9755 rm -f conftest*
9756       ac_ext=c
9757 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9758 ac_cpp='$CPP $CPPFLAGS'
9759 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9760 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9761 cross_compiling=$ac_cv_prog_cc_cross
9762
9763     
9764 fi
9765
9766   fi
9767   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
9768   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
9769     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
9770 echo "configure:9762: checking for __builtin_labs linkage" >&5
9771     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
9772       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
9773   echo $ac_n "(cached) $ac_c" 1>&6
9774 else
9775   
9776         cat > conftest.$ac_ext <<EOF
9777 #line 9769 "configure"
9778 #include "confdefs.h"
9779 #include <math.h>
9780 int main() {
9781  __builtin_labs(0);
9782 ; return 0; }
9783 EOF
9784 if { (eval echo configure:9776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9785   rm -rf conftest*
9786   glibcpp_cv_func___builtin_labs_link=yes
9787 else
9788   echo "configure: failed program was:" >&5
9789   cat conftest.$ac_ext >&5
9790   rm -rf conftest*
9791   glibcpp_cv_func___builtin_labs_link=no
9792 fi
9793 rm -f conftest*
9794       
9795 fi
9796
9797     fi
9798     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
9799     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
9800       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9801       cat >> confdefs.h <<EOF
9802 #define ${ac_tr_func} 1
9803 EOF
9804
9805     fi
9806   fi
9807
9808
9809   
9810   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
9811 echo "configure:9803: checking for __builtin_sqrtf declaration" >&5
9812   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
9813     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
9814   echo $ac_n "(cached) $ac_c" 1>&6
9815 else
9816   
9817       
9818       ac_ext=C
9819 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9820 ac_cpp='$CXXCPP $CPPFLAGS'
9821 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9822 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9823 cross_compiling=$ac_cv_prog_cxx_cross
9824
9825       cat > conftest.$ac_ext <<EOF
9826 #line 9818 "configure"
9827 #include "confdefs.h"
9828 #include <math.h>
9829 int main() {
9830  __builtin_sqrtf(0);
9831 ; return 0; }
9832 EOF
9833 if { (eval echo configure:9825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9834   rm -rf conftest*
9835   glibcpp_cv_func___builtin_sqrtf_use=yes
9836 else
9837   echo "configure: failed program was:" >&5
9838   cat conftest.$ac_ext >&5
9839   rm -rf conftest*
9840   glibcpp_cv_func___builtin_sqrtf_use=no
9841 fi
9842 rm -f conftest*
9843       ac_ext=c
9844 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9845 ac_cpp='$CPP $CPPFLAGS'
9846 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9847 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9848 cross_compiling=$ac_cv_prog_cc_cross
9849
9850     
9851 fi
9852
9853   fi
9854   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
9855   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
9856     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
9857 echo "configure:9849: checking for __builtin_sqrtf linkage" >&5
9858     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
9859       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
9860   echo $ac_n "(cached) $ac_c" 1>&6
9861 else
9862   
9863         cat > conftest.$ac_ext <<EOF
9864 #line 9856 "configure"
9865 #include "confdefs.h"
9866 #include <math.h>
9867 int main() {
9868  __builtin_sqrtf(0);
9869 ; return 0; }
9870 EOF
9871 if { (eval echo configure:9863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9872   rm -rf conftest*
9873   glibcpp_cv_func___builtin_sqrtf_link=yes
9874 else
9875   echo "configure: failed program was:" >&5
9876   cat conftest.$ac_ext >&5
9877   rm -rf conftest*
9878   glibcpp_cv_func___builtin_sqrtf_link=no
9879 fi
9880 rm -f conftest*
9881       
9882 fi
9883
9884     fi
9885     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
9886     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
9887       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9888       cat >> confdefs.h <<EOF
9889 #define ${ac_tr_func} 1
9890 EOF
9891
9892     fi
9893   fi
9894
9895   
9896   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
9897 echo "configure:9889: checking for __builtin_sqrt declaration" >&5
9898   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
9899     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
9900   echo $ac_n "(cached) $ac_c" 1>&6
9901 else
9902   
9903       
9904       ac_ext=C
9905 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9906 ac_cpp='$CXXCPP $CPPFLAGS'
9907 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9908 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9909 cross_compiling=$ac_cv_prog_cxx_cross
9910
9911       cat > conftest.$ac_ext <<EOF
9912 #line 9904 "configure"
9913 #include "confdefs.h"
9914 #include <math.h>
9915 int main() {
9916  __builtin_sqrt(0);
9917 ; return 0; }
9918 EOF
9919 if { (eval echo configure:9911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9920   rm -rf conftest*
9921   glibcpp_cv_func___builtin_sqrt_use=yes
9922 else
9923   echo "configure: failed program was:" >&5
9924   cat conftest.$ac_ext >&5
9925   rm -rf conftest*
9926   glibcpp_cv_func___builtin_sqrt_use=no
9927 fi
9928 rm -f conftest*
9929       ac_ext=c
9930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9931 ac_cpp='$CPP $CPPFLAGS'
9932 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9933 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9934 cross_compiling=$ac_cv_prog_cc_cross
9935
9936     
9937 fi
9938
9939   fi
9940   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
9941   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
9942     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
9943 echo "configure:9935: checking for __builtin_sqrt linkage" >&5
9944     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
9945       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
9946   echo $ac_n "(cached) $ac_c" 1>&6
9947 else
9948   
9949         cat > conftest.$ac_ext <<EOF
9950 #line 9942 "configure"
9951 #include "confdefs.h"
9952 #include <math.h>
9953 int main() {
9954  __builtin_sqrt(0);
9955 ; return 0; }
9956 EOF
9957 if { (eval echo configure:9949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9958   rm -rf conftest*
9959   glibcpp_cv_func___builtin_sqrt_link=yes
9960 else
9961   echo "configure: failed program was:" >&5
9962   cat conftest.$ac_ext >&5
9963   rm -rf conftest*
9964   glibcpp_cv_func___builtin_sqrt_link=no
9965 fi
9966 rm -f conftest*
9967       
9968 fi
9969
9970     fi
9971     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
9972     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
9973       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9974       cat >> confdefs.h <<EOF
9975 #define ${ac_tr_func} 1
9976 EOF
9977
9978     fi
9979   fi
9980
9981   
9982   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
9983 echo "configure:9975: checking for __builtin_sqrtl declaration" >&5
9984   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
9985     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
9986   echo $ac_n "(cached) $ac_c" 1>&6
9987 else
9988   
9989       
9990       ac_ext=C
9991 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9992 ac_cpp='$CXXCPP $CPPFLAGS'
9993 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9994 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9995 cross_compiling=$ac_cv_prog_cxx_cross
9996
9997       cat > conftest.$ac_ext <<EOF
9998 #line 9990 "configure"
9999 #include "confdefs.h"
10000 #include <math.h>
10001 int main() {
10002  __builtin_sqrtl(0);
10003 ; return 0; }
10004 EOF
10005 if { (eval echo configure:9997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10006   rm -rf conftest*
10007   glibcpp_cv_func___builtin_sqrtl_use=yes
10008 else
10009   echo "configure: failed program was:" >&5
10010   cat conftest.$ac_ext >&5
10011   rm -rf conftest*
10012   glibcpp_cv_func___builtin_sqrtl_use=no
10013 fi
10014 rm -f conftest*
10015       ac_ext=c
10016 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10017 ac_cpp='$CPP $CPPFLAGS'
10018 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10019 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10020 cross_compiling=$ac_cv_prog_cc_cross
10021
10022     
10023 fi
10024
10025   fi
10026   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
10027   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
10028     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
10029 echo "configure:10021: checking for __builtin_sqrtl linkage" >&5
10030     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
10031       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
10032   echo $ac_n "(cached) $ac_c" 1>&6
10033 else
10034   
10035         cat > conftest.$ac_ext <<EOF
10036 #line 10028 "configure"
10037 #include "confdefs.h"
10038 #include <math.h>
10039 int main() {
10040  __builtin_sqrtl(0);
10041 ; return 0; }
10042 EOF
10043 if { (eval echo configure:10035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10044   rm -rf conftest*
10045   glibcpp_cv_func___builtin_sqrtl_link=yes
10046 else
10047   echo "configure: failed program was:" >&5
10048   cat conftest.$ac_ext >&5
10049   rm -rf conftest*
10050   glibcpp_cv_func___builtin_sqrtl_link=no
10051 fi
10052 rm -f conftest*
10053       
10054 fi
10055
10056     fi
10057     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
10058     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
10059       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10060       cat >> confdefs.h <<EOF
10061 #define ${ac_tr_func} 1
10062 EOF
10063
10064     fi
10065   fi
10066
10067
10068   
10069   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
10070 echo "configure:10062: checking for __builtin_sinf declaration" >&5
10071   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
10072     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
10073   echo $ac_n "(cached) $ac_c" 1>&6
10074 else
10075   
10076       
10077       ac_ext=C
10078 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10079 ac_cpp='$CXXCPP $CPPFLAGS'
10080 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10081 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10082 cross_compiling=$ac_cv_prog_cxx_cross
10083
10084       cat > conftest.$ac_ext <<EOF
10085 #line 10077 "configure"
10086 #include "confdefs.h"
10087 #include <math.h>
10088 int main() {
10089  __builtin_sinf(0);
10090 ; return 0; }
10091 EOF
10092 if { (eval echo configure:10084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10093   rm -rf conftest*
10094   glibcpp_cv_func___builtin_sinf_use=yes
10095 else
10096   echo "configure: failed program was:" >&5
10097   cat conftest.$ac_ext >&5
10098   rm -rf conftest*
10099   glibcpp_cv_func___builtin_sinf_use=no
10100 fi
10101 rm -f conftest*
10102       ac_ext=c
10103 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10104 ac_cpp='$CPP $CPPFLAGS'
10105 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10106 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10107 cross_compiling=$ac_cv_prog_cc_cross
10108
10109     
10110 fi
10111
10112   fi
10113   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
10114   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
10115     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
10116 echo "configure:10108: checking for __builtin_sinf linkage" >&5
10117     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
10118       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
10119   echo $ac_n "(cached) $ac_c" 1>&6
10120 else
10121   
10122         cat > conftest.$ac_ext <<EOF
10123 #line 10115 "configure"
10124 #include "confdefs.h"
10125 #include <math.h>
10126 int main() {
10127  __builtin_sinf(0);
10128 ; return 0; }
10129 EOF
10130 if { (eval echo configure:10122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10131   rm -rf conftest*
10132   glibcpp_cv_func___builtin_sinf_link=yes
10133 else
10134   echo "configure: failed program was:" >&5
10135   cat conftest.$ac_ext >&5
10136   rm -rf conftest*
10137   glibcpp_cv_func___builtin_sinf_link=no
10138 fi
10139 rm -f conftest*
10140       
10141 fi
10142
10143     fi
10144     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
10145     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
10146       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10147       cat >> confdefs.h <<EOF
10148 #define ${ac_tr_func} 1
10149 EOF
10150
10151     fi
10152   fi
10153
10154   
10155   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
10156 echo "configure:10148: checking for __builtin_sin declaration" >&5
10157   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
10158     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
10159   echo $ac_n "(cached) $ac_c" 1>&6
10160 else
10161   
10162       
10163       ac_ext=C
10164 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10165 ac_cpp='$CXXCPP $CPPFLAGS'
10166 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10167 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10168 cross_compiling=$ac_cv_prog_cxx_cross
10169
10170       cat > conftest.$ac_ext <<EOF
10171 #line 10163 "configure"
10172 #include "confdefs.h"
10173 #include <math.h>
10174 int main() {
10175  __builtin_sin(0);
10176 ; return 0; }
10177 EOF
10178 if { (eval echo configure:10170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10179   rm -rf conftest*
10180   glibcpp_cv_func___builtin_sin_use=yes
10181 else
10182   echo "configure: failed program was:" >&5
10183   cat conftest.$ac_ext >&5
10184   rm -rf conftest*
10185   glibcpp_cv_func___builtin_sin_use=no
10186 fi
10187 rm -f conftest*
10188       ac_ext=c
10189 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10190 ac_cpp='$CPP $CPPFLAGS'
10191 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10192 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10193 cross_compiling=$ac_cv_prog_cc_cross
10194
10195     
10196 fi
10197
10198   fi
10199   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
10200   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
10201     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
10202 echo "configure:10194: checking for __builtin_sin linkage" >&5
10203     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
10204       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
10205   echo $ac_n "(cached) $ac_c" 1>&6
10206 else
10207   
10208         cat > conftest.$ac_ext <<EOF
10209 #line 10201 "configure"
10210 #include "confdefs.h"
10211 #include <math.h>
10212 int main() {
10213  __builtin_sin(0);
10214 ; return 0; }
10215 EOF
10216 if { (eval echo configure:10208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10217   rm -rf conftest*
10218   glibcpp_cv_func___builtin_sin_link=yes
10219 else
10220   echo "configure: failed program was:" >&5
10221   cat conftest.$ac_ext >&5
10222   rm -rf conftest*
10223   glibcpp_cv_func___builtin_sin_link=no
10224 fi
10225 rm -f conftest*
10226       
10227 fi
10228
10229     fi
10230     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
10231     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
10232       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10233       cat >> confdefs.h <<EOF
10234 #define ${ac_tr_func} 1
10235 EOF
10236
10237     fi
10238   fi
10239
10240   
10241   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
10242 echo "configure:10234: checking for __builtin_sinl declaration" >&5
10243   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
10244     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
10245   echo $ac_n "(cached) $ac_c" 1>&6
10246 else
10247   
10248       
10249       ac_ext=C
10250 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10251 ac_cpp='$CXXCPP $CPPFLAGS'
10252 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10253 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10254 cross_compiling=$ac_cv_prog_cxx_cross
10255
10256       cat > conftest.$ac_ext <<EOF
10257 #line 10249 "configure"
10258 #include "confdefs.h"
10259 #include <math.h>
10260 int main() {
10261  __builtin_sinl(0);
10262 ; return 0; }
10263 EOF
10264 if { (eval echo configure:10256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10265   rm -rf conftest*
10266   glibcpp_cv_func___builtin_sinl_use=yes
10267 else
10268   echo "configure: failed program was:" >&5
10269   cat conftest.$ac_ext >&5
10270   rm -rf conftest*
10271   glibcpp_cv_func___builtin_sinl_use=no
10272 fi
10273 rm -f conftest*
10274       ac_ext=c
10275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10276 ac_cpp='$CPP $CPPFLAGS'
10277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10279 cross_compiling=$ac_cv_prog_cc_cross
10280
10281     
10282 fi
10283
10284   fi
10285   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
10286   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
10287     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
10288 echo "configure:10280: checking for __builtin_sinl linkage" >&5
10289     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
10290       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
10291   echo $ac_n "(cached) $ac_c" 1>&6
10292 else
10293   
10294         cat > conftest.$ac_ext <<EOF
10295 #line 10287 "configure"
10296 #include "confdefs.h"
10297 #include <math.h>
10298 int main() {
10299  __builtin_sinl(0);
10300 ; return 0; }
10301 EOF
10302 if { (eval echo configure:10294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10303   rm -rf conftest*
10304   glibcpp_cv_func___builtin_sinl_link=yes
10305 else
10306   echo "configure: failed program was:" >&5
10307   cat conftest.$ac_ext >&5
10308   rm -rf conftest*
10309   glibcpp_cv_func___builtin_sinl_link=no
10310 fi
10311 rm -f conftest*
10312       
10313 fi
10314
10315     fi
10316     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
10317     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
10318       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10319       cat >> confdefs.h <<EOF
10320 #define ${ac_tr_func} 1
10321 EOF
10322
10323     fi
10324   fi
10325
10326
10327   
10328   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
10329 echo "configure:10321: checking for __builtin_cosf declaration" >&5
10330   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
10331     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
10332   echo $ac_n "(cached) $ac_c" 1>&6
10333 else
10334   
10335       
10336       ac_ext=C
10337 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10338 ac_cpp='$CXXCPP $CPPFLAGS'
10339 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10340 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10341 cross_compiling=$ac_cv_prog_cxx_cross
10342
10343       cat > conftest.$ac_ext <<EOF
10344 #line 10336 "configure"
10345 #include "confdefs.h"
10346 #include <math.h>
10347 int main() {
10348  __builtin_cosf(0);
10349 ; return 0; }
10350 EOF
10351 if { (eval echo configure:10343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10352   rm -rf conftest*
10353   glibcpp_cv_func___builtin_cosf_use=yes
10354 else
10355   echo "configure: failed program was:" >&5
10356   cat conftest.$ac_ext >&5
10357   rm -rf conftest*
10358   glibcpp_cv_func___builtin_cosf_use=no
10359 fi
10360 rm -f conftest*
10361       ac_ext=c
10362 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10363 ac_cpp='$CPP $CPPFLAGS'
10364 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10365 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10366 cross_compiling=$ac_cv_prog_cc_cross
10367
10368     
10369 fi
10370
10371   fi
10372   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
10373   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
10374     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
10375 echo "configure:10367: checking for __builtin_cosf linkage" >&5
10376     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
10377       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
10378   echo $ac_n "(cached) $ac_c" 1>&6
10379 else
10380   
10381         cat > conftest.$ac_ext <<EOF
10382 #line 10374 "configure"
10383 #include "confdefs.h"
10384 #include <math.h>
10385 int main() {
10386  __builtin_cosf(0);
10387 ; return 0; }
10388 EOF
10389 if { (eval echo configure:10381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10390   rm -rf conftest*
10391   glibcpp_cv_func___builtin_cosf_link=yes
10392 else
10393   echo "configure: failed program was:" >&5
10394   cat conftest.$ac_ext >&5
10395   rm -rf conftest*
10396   glibcpp_cv_func___builtin_cosf_link=no
10397 fi
10398 rm -f conftest*
10399       
10400 fi
10401
10402     fi
10403     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
10404     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
10405       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10406       cat >> confdefs.h <<EOF
10407 #define ${ac_tr_func} 1
10408 EOF
10409
10410     fi
10411   fi
10412
10413   
10414   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
10415 echo "configure:10407: checking for __builtin_cos declaration" >&5
10416   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
10417     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
10418   echo $ac_n "(cached) $ac_c" 1>&6
10419 else
10420   
10421       
10422       ac_ext=C
10423 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10424 ac_cpp='$CXXCPP $CPPFLAGS'
10425 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10426 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10427 cross_compiling=$ac_cv_prog_cxx_cross
10428
10429       cat > conftest.$ac_ext <<EOF
10430 #line 10422 "configure"
10431 #include "confdefs.h"
10432 #include <math.h>
10433 int main() {
10434  __builtin_cos(0);
10435 ; return 0; }
10436 EOF
10437 if { (eval echo configure:10429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10438   rm -rf conftest*
10439   glibcpp_cv_func___builtin_cos_use=yes
10440 else
10441   echo "configure: failed program was:" >&5
10442   cat conftest.$ac_ext >&5
10443   rm -rf conftest*
10444   glibcpp_cv_func___builtin_cos_use=no
10445 fi
10446 rm -f conftest*
10447       ac_ext=c
10448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10449 ac_cpp='$CPP $CPPFLAGS'
10450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10452 cross_compiling=$ac_cv_prog_cc_cross
10453
10454     
10455 fi
10456
10457   fi
10458   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
10459   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
10460     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
10461 echo "configure:10453: checking for __builtin_cos linkage" >&5
10462     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
10463       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
10464   echo $ac_n "(cached) $ac_c" 1>&6
10465 else
10466   
10467         cat > conftest.$ac_ext <<EOF
10468 #line 10460 "configure"
10469 #include "confdefs.h"
10470 #include <math.h>
10471 int main() {
10472  __builtin_cos(0);
10473 ; return 0; }
10474 EOF
10475 if { (eval echo configure:10467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10476   rm -rf conftest*
10477   glibcpp_cv_func___builtin_cos_link=yes
10478 else
10479   echo "configure: failed program was:" >&5
10480   cat conftest.$ac_ext >&5
10481   rm -rf conftest*
10482   glibcpp_cv_func___builtin_cos_link=no
10483 fi
10484 rm -f conftest*
10485       
10486 fi
10487
10488     fi
10489     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
10490     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
10491       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10492       cat >> confdefs.h <<EOF
10493 #define ${ac_tr_func} 1
10494 EOF
10495
10496     fi
10497   fi
10498
10499   
10500   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
10501 echo "configure:10493: checking for __builtin_cosl declaration" >&5
10502   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
10503     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
10504   echo $ac_n "(cached) $ac_c" 1>&6
10505 else
10506   
10507       
10508       ac_ext=C
10509 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10510 ac_cpp='$CXXCPP $CPPFLAGS'
10511 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10512 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10513 cross_compiling=$ac_cv_prog_cxx_cross
10514
10515       cat > conftest.$ac_ext <<EOF
10516 #line 10508 "configure"
10517 #include "confdefs.h"
10518 #include <math.h>
10519 int main() {
10520  __builtin_cosl(0);
10521 ; return 0; }
10522 EOF
10523 if { (eval echo configure:10515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10524   rm -rf conftest*
10525   glibcpp_cv_func___builtin_cosl_use=yes
10526 else
10527   echo "configure: failed program was:" >&5
10528   cat conftest.$ac_ext >&5
10529   rm -rf conftest*
10530   glibcpp_cv_func___builtin_cosl_use=no
10531 fi
10532 rm -f conftest*
10533       ac_ext=c
10534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10535 ac_cpp='$CPP $CPPFLAGS'
10536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10538 cross_compiling=$ac_cv_prog_cc_cross
10539
10540     
10541 fi
10542
10543   fi
10544   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
10545   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
10546     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
10547 echo "configure:10539: checking for __builtin_cosl linkage" >&5
10548     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
10549       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
10550   echo $ac_n "(cached) $ac_c" 1>&6
10551 else
10552   
10553         cat > conftest.$ac_ext <<EOF
10554 #line 10546 "configure"
10555 #include "confdefs.h"
10556 #include <math.h>
10557 int main() {
10558  __builtin_cosl(0);
10559 ; return 0; }
10560 EOF
10561 if { (eval echo configure:10553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10562   rm -rf conftest*
10563   glibcpp_cv_func___builtin_cosl_link=yes
10564 else
10565   echo "configure: failed program was:" >&5
10566   cat conftest.$ac_ext >&5
10567   rm -rf conftest*
10568   glibcpp_cv_func___builtin_cosl_link=no
10569 fi
10570 rm -f conftest*
10571       
10572 fi
10573
10574     fi
10575     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
10576     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
10577       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10578       cat >> confdefs.h <<EOF
10579 #define ${ac_tr_func} 1
10580 EOF
10581
10582     fi
10583   fi
10584
10585
10586               dummyvar=no
10587   if test x$dummyvar = x"yes"; then
10588     cat >> confdefs.h <<\EOF
10589 #define HAVE___BUILTIN_ABS 1
10590 EOF
10591
10592     cat >> confdefs.h <<\EOF
10593 #define HAVE___BUILTIN_LABS 1
10594 EOF
10595
10596     cat >> confdefs.h <<\EOF
10597 #define HAVE___BUILTIN_COS 1
10598 EOF
10599
10600     cat >> confdefs.h <<\EOF
10601 #define HAVE___BUILTIN_COSF 1
10602 EOF
10603
10604     cat >> confdefs.h <<\EOF
10605 #define HAVE___BUILTIN_COSL 1
10606 EOF
10607
10608     cat >> confdefs.h <<\EOF
10609 #define HAVE___BUILTIN_FABS 1
10610 EOF
10611
10612     cat >> confdefs.h <<\EOF
10613 #define HAVE___BUILTIN_FABSF 1
10614 EOF
10615
10616     cat >> confdefs.h <<\EOF
10617 #define HAVE___BUILTIN_FABSL 1
10618 EOF
10619
10620     cat >> confdefs.h <<\EOF
10621 #define HAVE___BUILTIN_SIN 1
10622 EOF
10623
10624     cat >> confdefs.h <<\EOF
10625 #define HAVE___BUILTIN_SINF 1
10626 EOF
10627
10628     cat >> confdefs.h <<\EOF
10629 #define HAVE___BUILTIN_SINL 1
10630 EOF
10631
10632     cat >> confdefs.h <<\EOF
10633 #define HAVE___BUILTIN_SQRT 1
10634 EOF
10635
10636     cat >> confdefs.h <<\EOF
10637 #define HAVE___BUILTIN_SQRTF 1
10638 EOF
10639
10640     cat >> confdefs.h <<\EOF
10641 #define HAVE___BUILTIN_SQRTL 1
10642 EOF
10643
10644   fi
10645
10646   
10647   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10648   ac_save_CXXFLAGS="$CXXFLAGS"
10649   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10650
10651     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10652 echo "configure:10644: checking for sin in -lm" >&5
10653 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10654 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10655   echo $ac_n "(cached) $ac_c" 1>&6
10656 else
10657   ac_save_LIBS="$LIBS"
10658 LIBS="-lm  $LIBS"
10659 cat > conftest.$ac_ext <<EOF
10660 #line 10652 "configure"
10661 #include "confdefs.h"
10662 /* Override any gcc2 internal prototype to avoid an error.  */
10663 /* We use char because int might match the return type of a gcc2
10664     builtin and then its argument prototype would still apply.  */
10665 char sin();
10666
10667 int main() {
10668 sin()
10669 ; return 0; }
10670 EOF
10671 if { (eval echo configure:10663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10672   rm -rf conftest*
10673   eval "ac_cv_lib_$ac_lib_var=yes"
10674 else
10675   echo "configure: failed program was:" >&5
10676   cat conftest.$ac_ext >&5
10677   rm -rf conftest*
10678   eval "ac_cv_lib_$ac_lib_var=no"
10679 fi
10680 rm -f conftest*
10681 LIBS="$ac_save_LIBS"
10682
10683 fi
10684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10685   echo "$ac_t""yes" 1>&6
10686   libm="-lm"
10687 else
10688   echo "$ac_t""no" 1>&6
10689 fi
10690
10691   ac_save_LIBS="$LIBS"
10692   LIBS="$LIBS $libm"
10693
10694     
10695   
10696   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10697 echo "configure:10689: checking for isinf declaration" >&5
10698   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10699     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10700   echo $ac_n "(cached) $ac_c" 1>&6
10701 else
10702   
10703       
10704       ac_ext=C
10705 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10706 ac_cpp='$CXXCPP $CPPFLAGS'
10707 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10708 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10709 cross_compiling=$ac_cv_prog_cxx_cross
10710
10711       cat > conftest.$ac_ext <<EOF
10712 #line 10704 "configure"
10713 #include "confdefs.h"
10714 #include <math.h>
10715                       #ifdef HAVE_IEEEFP_H
10716                       #include <ieeefp.h>
10717                       #endif
10718                      
10719 int main() {
10720  isinf(0);
10721 ; return 0; }
10722 EOF
10723 if { (eval echo configure:10715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10724   rm -rf conftest*
10725   glibcpp_cv_func_isinf_use=yes
10726 else
10727   echo "configure: failed program was:" >&5
10728   cat conftest.$ac_ext >&5
10729   rm -rf conftest*
10730   glibcpp_cv_func_isinf_use=no
10731 fi
10732 rm -f conftest*
10733       ac_ext=c
10734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10735 ac_cpp='$CPP $CPPFLAGS'
10736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10738 cross_compiling=$ac_cv_prog_cc_cross
10739
10740     
10741 fi
10742
10743   fi
10744   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10745
10746   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10747     for ac_func in isinf
10748 do
10749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10750 echo "configure:10742: checking for $ac_func" >&5
10751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10752   echo $ac_n "(cached) $ac_c" 1>&6
10753 else
10754   cat > conftest.$ac_ext <<EOF
10755 #line 10747 "configure"
10756 #include "confdefs.h"
10757 /* System header to define __stub macros and hopefully few prototypes,
10758     which can conflict with char $ac_func(); below.  */
10759 #include <assert.h>
10760 /* Override any gcc2 internal prototype to avoid an error.  */
10761 /* We use char because int might match the return type of a gcc2
10762     builtin and then its argument prototype would still apply.  */
10763 char $ac_func();
10764
10765 int main() {
10766
10767 /* The GNU C library defines this for functions which it implements
10768     to always fail with ENOSYS.  Some functions are actually named
10769     something starting with __ and the normal name is an alias.  */
10770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10771 choke me
10772 #else
10773 $ac_func();
10774 #endif
10775
10776 ; return 0; }
10777 EOF
10778 if { (eval echo configure:10770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10779   rm -rf conftest*
10780   eval "ac_cv_func_$ac_func=yes"
10781 else
10782   echo "configure: failed program was:" >&5
10783   cat conftest.$ac_ext >&5
10784   rm -rf conftest*
10785   eval "ac_cv_func_$ac_func=no"
10786 fi
10787 rm -f conftest*
10788 fi
10789
10790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10791   echo "$ac_t""yes" 1>&6
10792     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10793   cat >> confdefs.h <<EOF
10794 #define $ac_tr_func 1
10795 EOF
10796  
10797 else
10798   echo "$ac_t""no" 1>&6
10799 fi
10800 done
10801     
10802   else
10803     
10804   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10805 echo "configure:10797: checking for _isinf declaration" >&5
10806   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10807     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10808   echo $ac_n "(cached) $ac_c" 1>&6
10809 else
10810   
10811       
10812       ac_ext=C
10813 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10814 ac_cpp='$CXXCPP $CPPFLAGS'
10815 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10816 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10817 cross_compiling=$ac_cv_prog_cxx_cross
10818
10819       cat > conftest.$ac_ext <<EOF
10820 #line 10812 "configure"
10821 #include "confdefs.h"
10822 #include <math.h>
10823                       #ifdef HAVE_IEEEFP_H
10824                       #include <ieeefp.h>
10825                       #endif
10826                      
10827 int main() {
10828  _isinf(0);
10829 ; return 0; }
10830 EOF
10831 if { (eval echo configure:10823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10832   rm -rf conftest*
10833   glibcpp_cv_func__isinf_use=yes
10834 else
10835   echo "configure: failed program was:" >&5
10836   cat conftest.$ac_ext >&5
10837   rm -rf conftest*
10838   glibcpp_cv_func__isinf_use=no
10839 fi
10840 rm -f conftest*
10841       ac_ext=c
10842 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10843 ac_cpp='$CPP $CPPFLAGS'
10844 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10845 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10846 cross_compiling=$ac_cv_prog_cc_cross
10847
10848     
10849 fi
10850
10851   fi
10852   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10853
10854     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10855       for ac_func in _isinf
10856 do
10857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10858 echo "configure:10850: checking for $ac_func" >&5
10859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10860   echo $ac_n "(cached) $ac_c" 1>&6
10861 else
10862   cat > conftest.$ac_ext <<EOF
10863 #line 10855 "configure"
10864 #include "confdefs.h"
10865 /* System header to define __stub macros and hopefully few prototypes,
10866     which can conflict with char $ac_func(); below.  */
10867 #include <assert.h>
10868 /* Override any gcc2 internal prototype to avoid an error.  */
10869 /* We use char because int might match the return type of a gcc2
10870     builtin and then its argument prototype would still apply.  */
10871 char $ac_func();
10872
10873 int main() {
10874
10875 /* The GNU C library defines this for functions which it implements
10876     to always fail with ENOSYS.  Some functions are actually named
10877     something starting with __ and the normal name is an alias.  */
10878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10879 choke me
10880 #else
10881 $ac_func();
10882 #endif
10883
10884 ; return 0; }
10885 EOF
10886 if { (eval echo configure:10878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10887   rm -rf conftest*
10888   eval "ac_cv_func_$ac_func=yes"
10889 else
10890   echo "configure: failed program was:" >&5
10891   cat conftest.$ac_ext >&5
10892   rm -rf conftest*
10893   eval "ac_cv_func_$ac_func=no"
10894 fi
10895 rm -f conftest*
10896 fi
10897
10898 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10899   echo "$ac_t""yes" 1>&6
10900     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10901   cat >> confdefs.h <<EOF
10902 #define $ac_tr_func 1
10903 EOF
10904  
10905 else
10906   echo "$ac_t""no" 1>&6
10907 fi
10908 done
10909     
10910     fi
10911   fi
10912
10913   
10914   
10915   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10916 echo "configure:10908: checking for isnan declaration" >&5
10917   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10918     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10919   echo $ac_n "(cached) $ac_c" 1>&6
10920 else
10921   
10922       
10923       ac_ext=C
10924 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10925 ac_cpp='$CXXCPP $CPPFLAGS'
10926 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10927 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10928 cross_compiling=$ac_cv_prog_cxx_cross
10929
10930       cat > conftest.$ac_ext <<EOF
10931 #line 10923 "configure"
10932 #include "confdefs.h"
10933 #include <math.h>
10934                       #ifdef HAVE_IEEEFP_H
10935                       #include <ieeefp.h>
10936                       #endif
10937                      
10938 int main() {
10939  isnan(0);
10940 ; return 0; }
10941 EOF
10942 if { (eval echo configure:10934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10943   rm -rf conftest*
10944   glibcpp_cv_func_isnan_use=yes
10945 else
10946   echo "configure: failed program was:" >&5
10947   cat conftest.$ac_ext >&5
10948   rm -rf conftest*
10949   glibcpp_cv_func_isnan_use=no
10950 fi
10951 rm -f conftest*
10952       ac_ext=c
10953 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10954 ac_cpp='$CPP $CPPFLAGS'
10955 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10956 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10957 cross_compiling=$ac_cv_prog_cc_cross
10958
10959     
10960 fi
10961
10962   fi
10963   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
10964
10965   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
10966     for ac_func in isnan
10967 do
10968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10969 echo "configure:10961: checking for $ac_func" >&5
10970 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10971   echo $ac_n "(cached) $ac_c" 1>&6
10972 else
10973   cat > conftest.$ac_ext <<EOF
10974 #line 10966 "configure"
10975 #include "confdefs.h"
10976 /* System header to define __stub macros and hopefully few prototypes,
10977     which can conflict with char $ac_func(); below.  */
10978 #include <assert.h>
10979 /* Override any gcc2 internal prototype to avoid an error.  */
10980 /* We use char because int might match the return type of a gcc2
10981     builtin and then its argument prototype would still apply.  */
10982 char $ac_func();
10983
10984 int main() {
10985
10986 /* The GNU C library defines this for functions which it implements
10987     to always fail with ENOSYS.  Some functions are actually named
10988     something starting with __ and the normal name is an alias.  */
10989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10990 choke me
10991 #else
10992 $ac_func();
10993 #endif
10994
10995 ; return 0; }
10996 EOF
10997 if { (eval echo configure:10989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10998   rm -rf conftest*
10999   eval "ac_cv_func_$ac_func=yes"
11000 else
11001   echo "configure: failed program was:" >&5
11002   cat conftest.$ac_ext >&5
11003   rm -rf conftest*
11004   eval "ac_cv_func_$ac_func=no"
11005 fi
11006 rm -f conftest*
11007 fi
11008
11009 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11010   echo "$ac_t""yes" 1>&6
11011     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11012   cat >> confdefs.h <<EOF
11013 #define $ac_tr_func 1
11014 EOF
11015  
11016 else
11017   echo "$ac_t""no" 1>&6
11018 fi
11019 done
11020     
11021   else
11022     
11023   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11024 echo "configure:11016: checking for _isnan declaration" >&5
11025   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11026     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11027   echo $ac_n "(cached) $ac_c" 1>&6
11028 else
11029   
11030       
11031       ac_ext=C
11032 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11033 ac_cpp='$CXXCPP $CPPFLAGS'
11034 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11035 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11036 cross_compiling=$ac_cv_prog_cxx_cross
11037
11038       cat > conftest.$ac_ext <<EOF
11039 #line 11031 "configure"
11040 #include "confdefs.h"
11041 #include <math.h>
11042                       #ifdef HAVE_IEEEFP_H
11043                       #include <ieeefp.h>
11044                       #endif
11045                      
11046 int main() {
11047  _isnan(0);
11048 ; return 0; }
11049 EOF
11050 if { (eval echo configure:11042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11051   rm -rf conftest*
11052   glibcpp_cv_func__isnan_use=yes
11053 else
11054   echo "configure: failed program was:" >&5
11055   cat conftest.$ac_ext >&5
11056   rm -rf conftest*
11057   glibcpp_cv_func__isnan_use=no
11058 fi
11059 rm -f conftest*
11060       ac_ext=c
11061 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11062 ac_cpp='$CPP $CPPFLAGS'
11063 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11064 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11065 cross_compiling=$ac_cv_prog_cc_cross
11066
11067     
11068 fi
11069
11070   fi
11071   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11072
11073     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11074       for ac_func in _isnan
11075 do
11076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11077 echo "configure:11069: checking for $ac_func" >&5
11078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11079   echo $ac_n "(cached) $ac_c" 1>&6
11080 else
11081   cat > conftest.$ac_ext <<EOF
11082 #line 11074 "configure"
11083 #include "confdefs.h"
11084 /* System header to define __stub macros and hopefully few prototypes,
11085     which can conflict with char $ac_func(); below.  */
11086 #include <assert.h>
11087 /* Override any gcc2 internal prototype to avoid an error.  */
11088 /* We use char because int might match the return type of a gcc2
11089     builtin and then its argument prototype would still apply.  */
11090 char $ac_func();
11091
11092 int main() {
11093
11094 /* The GNU C library defines this for functions which it implements
11095     to always fail with ENOSYS.  Some functions are actually named
11096     something starting with __ and the normal name is an alias.  */
11097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11098 choke me
11099 #else
11100 $ac_func();
11101 #endif
11102
11103 ; return 0; }
11104 EOF
11105 if { (eval echo configure:11097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11106   rm -rf conftest*
11107   eval "ac_cv_func_$ac_func=yes"
11108 else
11109   echo "configure: failed program was:" >&5
11110   cat conftest.$ac_ext >&5
11111   rm -rf conftest*
11112   eval "ac_cv_func_$ac_func=no"
11113 fi
11114 rm -f conftest*
11115 fi
11116
11117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11118   echo "$ac_t""yes" 1>&6
11119     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11120   cat >> confdefs.h <<EOF
11121 #define $ac_tr_func 1
11122 EOF
11123  
11124 else
11125   echo "$ac_t""no" 1>&6
11126 fi
11127 done
11128     
11129     fi
11130   fi
11131
11132   
11133   
11134   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11135 echo "configure:11127: checking for finite declaration" >&5
11136   if test x${glibcpp_cv_func_finite_use+set} != xset; then
11137     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11138   echo $ac_n "(cached) $ac_c" 1>&6
11139 else
11140   
11141       
11142       ac_ext=C
11143 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11144 ac_cpp='$CXXCPP $CPPFLAGS'
11145 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11146 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11147 cross_compiling=$ac_cv_prog_cxx_cross
11148
11149       cat > conftest.$ac_ext <<EOF
11150 #line 11142 "configure"
11151 #include "confdefs.h"
11152 #include <math.h>
11153                       #ifdef HAVE_IEEEFP_H
11154                       #include <ieeefp.h>
11155                       #endif
11156                      
11157 int main() {
11158  finite(0);
11159 ; return 0; }
11160 EOF
11161 if { (eval echo configure:11153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11162   rm -rf conftest*
11163   glibcpp_cv_func_finite_use=yes
11164 else
11165   echo "configure: failed program was:" >&5
11166   cat conftest.$ac_ext >&5
11167   rm -rf conftest*
11168   glibcpp_cv_func_finite_use=no
11169 fi
11170 rm -f conftest*
11171       ac_ext=c
11172 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11173 ac_cpp='$CPP $CPPFLAGS'
11174 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11175 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11176 cross_compiling=$ac_cv_prog_cc_cross
11177
11178     
11179 fi
11180
11181   fi
11182   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11183
11184   if test x$glibcpp_cv_func_finite_use = x"yes"; then
11185     for ac_func in finite
11186 do
11187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11188 echo "configure:11180: checking for $ac_func" >&5
11189 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11190   echo $ac_n "(cached) $ac_c" 1>&6
11191 else
11192   cat > conftest.$ac_ext <<EOF
11193 #line 11185 "configure"
11194 #include "confdefs.h"
11195 /* System header to define __stub macros and hopefully few prototypes,
11196     which can conflict with char $ac_func(); below.  */
11197 #include <assert.h>
11198 /* Override any gcc2 internal prototype to avoid an error.  */
11199 /* We use char because int might match the return type of a gcc2
11200     builtin and then its argument prototype would still apply.  */
11201 char $ac_func();
11202
11203 int main() {
11204
11205 /* The GNU C library defines this for functions which it implements
11206     to always fail with ENOSYS.  Some functions are actually named
11207     something starting with __ and the normal name is an alias.  */
11208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11209 choke me
11210 #else
11211 $ac_func();
11212 #endif
11213
11214 ; return 0; }
11215 EOF
11216 if { (eval echo configure:11208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11217   rm -rf conftest*
11218   eval "ac_cv_func_$ac_func=yes"
11219 else
11220   echo "configure: failed program was:" >&5
11221   cat conftest.$ac_ext >&5
11222   rm -rf conftest*
11223   eval "ac_cv_func_$ac_func=no"
11224 fi
11225 rm -f conftest*
11226 fi
11227
11228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11229   echo "$ac_t""yes" 1>&6
11230     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11231   cat >> confdefs.h <<EOF
11232 #define $ac_tr_func 1
11233 EOF
11234  
11235 else
11236   echo "$ac_t""no" 1>&6
11237 fi
11238 done
11239     
11240   else
11241     
11242   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11243 echo "configure:11235: checking for _finite declaration" >&5
11244   if test x${glibcpp_cv_func__finite_use+set} != xset; then
11245     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11246   echo $ac_n "(cached) $ac_c" 1>&6
11247 else
11248   
11249       
11250       ac_ext=C
11251 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11252 ac_cpp='$CXXCPP $CPPFLAGS'
11253 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11254 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11255 cross_compiling=$ac_cv_prog_cxx_cross
11256
11257       cat > conftest.$ac_ext <<EOF
11258 #line 11250 "configure"
11259 #include "confdefs.h"
11260 #include <math.h>
11261                       #ifdef HAVE_IEEEFP_H
11262                       #include <ieeefp.h>
11263                       #endif
11264                      
11265 int main() {
11266  _finite(0);
11267 ; return 0; }
11268 EOF
11269 if { (eval echo configure:11261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11270   rm -rf conftest*
11271   glibcpp_cv_func__finite_use=yes
11272 else
11273   echo "configure: failed program was:" >&5
11274   cat conftest.$ac_ext >&5
11275   rm -rf conftest*
11276   glibcpp_cv_func__finite_use=no
11277 fi
11278 rm -f conftest*
11279       ac_ext=c
11280 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11281 ac_cpp='$CPP $CPPFLAGS'
11282 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11283 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11284 cross_compiling=$ac_cv_prog_cc_cross
11285
11286     
11287 fi
11288
11289   fi
11290   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11291
11292     if test x$glibcpp_cv_func__finite_use = x"yes"; then
11293       for ac_func in _finite
11294 do
11295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11296 echo "configure:11288: checking for $ac_func" >&5
11297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11298   echo $ac_n "(cached) $ac_c" 1>&6
11299 else
11300   cat > conftest.$ac_ext <<EOF
11301 #line 11293 "configure"
11302 #include "confdefs.h"
11303 /* System header to define __stub macros and hopefully few prototypes,
11304     which can conflict with char $ac_func(); below.  */
11305 #include <assert.h>
11306 /* Override any gcc2 internal prototype to avoid an error.  */
11307 /* We use char because int might match the return type of a gcc2
11308     builtin and then its argument prototype would still apply.  */
11309 char $ac_func();
11310
11311 int main() {
11312
11313 /* The GNU C library defines this for functions which it implements
11314     to always fail with ENOSYS.  Some functions are actually named
11315     something starting with __ and the normal name is an alias.  */
11316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11317 choke me
11318 #else
11319 $ac_func();
11320 #endif
11321
11322 ; return 0; }
11323 EOF
11324 if { (eval echo configure:11316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11325   rm -rf conftest*
11326   eval "ac_cv_func_$ac_func=yes"
11327 else
11328   echo "configure: failed program was:" >&5
11329   cat conftest.$ac_ext >&5
11330   rm -rf conftest*
11331   eval "ac_cv_func_$ac_func=no"
11332 fi
11333 rm -f conftest*
11334 fi
11335
11336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11337   echo "$ac_t""yes" 1>&6
11338     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11339   cat >> confdefs.h <<EOF
11340 #define $ac_tr_func 1
11341 EOF
11342  
11343 else
11344   echo "$ac_t""no" 1>&6
11345 fi
11346 done
11347     
11348     fi
11349   fi
11350
11351   
11352   
11353   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11354 echo "configure:11346: checking for copysign declaration" >&5
11355   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11356     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11357   echo $ac_n "(cached) $ac_c" 1>&6
11358 else
11359   
11360       
11361       ac_ext=C
11362 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11363 ac_cpp='$CXXCPP $CPPFLAGS'
11364 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11365 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11366 cross_compiling=$ac_cv_prog_cxx_cross
11367
11368       cat > conftest.$ac_ext <<EOF
11369 #line 11361 "configure"
11370 #include "confdefs.h"
11371 #include <math.h>
11372 int main() {
11373  copysign(0, 0);
11374 ; return 0; }
11375 EOF
11376 if { (eval echo configure:11368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11377   rm -rf conftest*
11378   glibcpp_cv_func_copysign_use=yes
11379 else
11380   echo "configure: failed program was:" >&5
11381   cat conftest.$ac_ext >&5
11382   rm -rf conftest*
11383   glibcpp_cv_func_copysign_use=no
11384 fi
11385 rm -f conftest*
11386       ac_ext=c
11387 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11388 ac_cpp='$CPP $CPPFLAGS'
11389 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11390 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11391 cross_compiling=$ac_cv_prog_cc_cross
11392
11393     
11394 fi
11395
11396   fi
11397   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11398
11399   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11400     for ac_func in copysign
11401 do
11402 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11403 echo "configure:11395: checking for $ac_func" >&5
11404 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11405   echo $ac_n "(cached) $ac_c" 1>&6
11406 else
11407   cat > conftest.$ac_ext <<EOF
11408 #line 11400 "configure"
11409 #include "confdefs.h"
11410 /* System header to define __stub macros and hopefully few prototypes,
11411     which can conflict with char $ac_func(); below.  */
11412 #include <assert.h>
11413 /* Override any gcc2 internal prototype to avoid an error.  */
11414 /* We use char because int might match the return type of a gcc2
11415     builtin and then its argument prototype would still apply.  */
11416 char $ac_func();
11417
11418 int main() {
11419
11420 /* The GNU C library defines this for functions which it implements
11421     to always fail with ENOSYS.  Some functions are actually named
11422     something starting with __ and the normal name is an alias.  */
11423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11424 choke me
11425 #else
11426 $ac_func();
11427 #endif
11428
11429 ; return 0; }
11430 EOF
11431 if { (eval echo configure:11423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11432   rm -rf conftest*
11433   eval "ac_cv_func_$ac_func=yes"
11434 else
11435   echo "configure: failed program was:" >&5
11436   cat conftest.$ac_ext >&5
11437   rm -rf conftest*
11438   eval "ac_cv_func_$ac_func=no"
11439 fi
11440 rm -f conftest*
11441 fi
11442
11443 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11444   echo "$ac_t""yes" 1>&6
11445     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11446   cat >> confdefs.h <<EOF
11447 #define $ac_tr_func 1
11448 EOF
11449  
11450 else
11451   echo "$ac_t""no" 1>&6
11452 fi
11453 done
11454     
11455   else
11456     
11457   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11458 echo "configure:11450: checking for _copysign declaration" >&5
11459   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11460     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11461   echo $ac_n "(cached) $ac_c" 1>&6
11462 else
11463   
11464       
11465       ac_ext=C
11466 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11467 ac_cpp='$CXXCPP $CPPFLAGS'
11468 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11469 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11470 cross_compiling=$ac_cv_prog_cxx_cross
11471
11472       cat > conftest.$ac_ext <<EOF
11473 #line 11465 "configure"
11474 #include "confdefs.h"
11475 #include <math.h>
11476 int main() {
11477  _copysign(0, 0);
11478 ; return 0; }
11479 EOF
11480 if { (eval echo configure:11472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11481   rm -rf conftest*
11482   glibcpp_cv_func__copysign_use=yes
11483 else
11484   echo "configure: failed program was:" >&5
11485   cat conftest.$ac_ext >&5
11486   rm -rf conftest*
11487   glibcpp_cv_func__copysign_use=no
11488 fi
11489 rm -f conftest*
11490       ac_ext=c
11491 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11492 ac_cpp='$CPP $CPPFLAGS'
11493 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11494 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11495 cross_compiling=$ac_cv_prog_cc_cross
11496
11497     
11498 fi
11499
11500   fi
11501   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11502
11503     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11504       for ac_func in _copysign
11505 do
11506 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11507 echo "configure:11499: checking for $ac_func" >&5
11508 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11509   echo $ac_n "(cached) $ac_c" 1>&6
11510 else
11511   cat > conftest.$ac_ext <<EOF
11512 #line 11504 "configure"
11513 #include "confdefs.h"
11514 /* System header to define __stub macros and hopefully few prototypes,
11515     which can conflict with char $ac_func(); below.  */
11516 #include <assert.h>
11517 /* Override any gcc2 internal prototype to avoid an error.  */
11518 /* We use char because int might match the return type of a gcc2
11519     builtin and then its argument prototype would still apply.  */
11520 char $ac_func();
11521
11522 int main() {
11523
11524 /* The GNU C library defines this for functions which it implements
11525     to always fail with ENOSYS.  Some functions are actually named
11526     something starting with __ and the normal name is an alias.  */
11527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11528 choke me
11529 #else
11530 $ac_func();
11531 #endif
11532
11533 ; return 0; }
11534 EOF
11535 if { (eval echo configure:11527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11536   rm -rf conftest*
11537   eval "ac_cv_func_$ac_func=yes"
11538 else
11539   echo "configure: failed program was:" >&5
11540   cat conftest.$ac_ext >&5
11541   rm -rf conftest*
11542   eval "ac_cv_func_$ac_func=no"
11543 fi
11544 rm -f conftest*
11545 fi
11546
11547 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11548   echo "$ac_t""yes" 1>&6
11549     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11550   cat >> confdefs.h <<EOF
11551 #define $ac_tr_func 1
11552 EOF
11553  
11554 else
11555   echo "$ac_t""no" 1>&6
11556 fi
11557 done
11558     
11559     fi
11560   fi
11561
11562   
11563   
11564   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11565 echo "configure:11557: checking for sincos declaration" >&5
11566   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11567     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11568   echo $ac_n "(cached) $ac_c" 1>&6
11569 else
11570   
11571       
11572       ac_ext=C
11573 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11574 ac_cpp='$CXXCPP $CPPFLAGS'
11575 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11576 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11577 cross_compiling=$ac_cv_prog_cxx_cross
11578
11579       cat > conftest.$ac_ext <<EOF
11580 #line 11572 "configure"
11581 #include "confdefs.h"
11582 #include <math.h>
11583 int main() {
11584  sincos(0, 0, 0);
11585 ; return 0; }
11586 EOF
11587 if { (eval echo configure:11579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11588   rm -rf conftest*
11589   glibcpp_cv_func_sincos_use=yes
11590 else
11591   echo "configure: failed program was:" >&5
11592   cat conftest.$ac_ext >&5
11593   rm -rf conftest*
11594   glibcpp_cv_func_sincos_use=no
11595 fi
11596 rm -f conftest*
11597       ac_ext=c
11598 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11599 ac_cpp='$CPP $CPPFLAGS'
11600 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11601 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11602 cross_compiling=$ac_cv_prog_cc_cross
11603
11604     
11605 fi
11606
11607   fi
11608   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11609
11610   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11611     for ac_func in sincos
11612 do
11613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11614 echo "configure:11606: checking for $ac_func" >&5
11615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11616   echo $ac_n "(cached) $ac_c" 1>&6
11617 else
11618   cat > conftest.$ac_ext <<EOF
11619 #line 11611 "configure"
11620 #include "confdefs.h"
11621 /* System header to define __stub macros and hopefully few prototypes,
11622     which can conflict with char $ac_func(); below.  */
11623 #include <assert.h>
11624 /* Override any gcc2 internal prototype to avoid an error.  */
11625 /* We use char because int might match the return type of a gcc2
11626     builtin and then its argument prototype would still apply.  */
11627 char $ac_func();
11628
11629 int main() {
11630
11631 /* The GNU C library defines this for functions which it implements
11632     to always fail with ENOSYS.  Some functions are actually named
11633     something starting with __ and the normal name is an alias.  */
11634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11635 choke me
11636 #else
11637 $ac_func();
11638 #endif
11639
11640 ; return 0; }
11641 EOF
11642 if { (eval echo configure:11634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11643   rm -rf conftest*
11644   eval "ac_cv_func_$ac_func=yes"
11645 else
11646   echo "configure: failed program was:" >&5
11647   cat conftest.$ac_ext >&5
11648   rm -rf conftest*
11649   eval "ac_cv_func_$ac_func=no"
11650 fi
11651 rm -f conftest*
11652 fi
11653
11654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11655   echo "$ac_t""yes" 1>&6
11656     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11657   cat >> confdefs.h <<EOF
11658 #define $ac_tr_func 1
11659 EOF
11660  
11661 else
11662   echo "$ac_t""no" 1>&6
11663 fi
11664 done
11665     
11666   else
11667     
11668   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11669 echo "configure:11661: checking for _sincos declaration" >&5
11670   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11671     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11672   echo $ac_n "(cached) $ac_c" 1>&6
11673 else
11674   
11675       
11676       ac_ext=C
11677 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11678 ac_cpp='$CXXCPP $CPPFLAGS'
11679 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11680 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11681 cross_compiling=$ac_cv_prog_cxx_cross
11682
11683       cat > conftest.$ac_ext <<EOF
11684 #line 11676 "configure"
11685 #include "confdefs.h"
11686 #include <math.h>
11687 int main() {
11688  _sincos(0, 0, 0);
11689 ; return 0; }
11690 EOF
11691 if { (eval echo configure:11683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11692   rm -rf conftest*
11693   glibcpp_cv_func__sincos_use=yes
11694 else
11695   echo "configure: failed program was:" >&5
11696   cat conftest.$ac_ext >&5
11697   rm -rf conftest*
11698   glibcpp_cv_func__sincos_use=no
11699 fi
11700 rm -f conftest*
11701       ac_ext=c
11702 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11703 ac_cpp='$CPP $CPPFLAGS'
11704 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11705 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11706 cross_compiling=$ac_cv_prog_cc_cross
11707
11708     
11709 fi
11710
11711   fi
11712   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11713
11714     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11715       for ac_func in _sincos
11716 do
11717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11718 echo "configure:11710: checking for $ac_func" >&5
11719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11720   echo $ac_n "(cached) $ac_c" 1>&6
11721 else
11722   cat > conftest.$ac_ext <<EOF
11723 #line 11715 "configure"
11724 #include "confdefs.h"
11725 /* System header to define __stub macros and hopefully few prototypes,
11726     which can conflict with char $ac_func(); below.  */
11727 #include <assert.h>
11728 /* Override any gcc2 internal prototype to avoid an error.  */
11729 /* We use char because int might match the return type of a gcc2
11730     builtin and then its argument prototype would still apply.  */
11731 char $ac_func();
11732
11733 int main() {
11734
11735 /* The GNU C library defines this for functions which it implements
11736     to always fail with ENOSYS.  Some functions are actually named
11737     something starting with __ and the normal name is an alias.  */
11738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11739 choke me
11740 #else
11741 $ac_func();
11742 #endif
11743
11744 ; return 0; }
11745 EOF
11746 if { (eval echo configure:11738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11747   rm -rf conftest*
11748   eval "ac_cv_func_$ac_func=yes"
11749 else
11750   echo "configure: failed program was:" >&5
11751   cat conftest.$ac_ext >&5
11752   rm -rf conftest*
11753   eval "ac_cv_func_$ac_func=no"
11754 fi
11755 rm -f conftest*
11756 fi
11757
11758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11759   echo "$ac_t""yes" 1>&6
11760     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11761   cat >> confdefs.h <<EOF
11762 #define $ac_tr_func 1
11763 EOF
11764  
11765 else
11766   echo "$ac_t""no" 1>&6
11767 fi
11768 done
11769     
11770     fi
11771   fi
11772
11773   
11774   
11775   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11776 echo "configure:11768: checking for fpclass declaration" >&5
11777   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11778     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11779   echo $ac_n "(cached) $ac_c" 1>&6
11780 else
11781   
11782       
11783       ac_ext=C
11784 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11785 ac_cpp='$CXXCPP $CPPFLAGS'
11786 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11787 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11788 cross_compiling=$ac_cv_prog_cxx_cross
11789
11790       cat > conftest.$ac_ext <<EOF
11791 #line 11783 "configure"
11792 #include "confdefs.h"
11793 #include <math.h>
11794                       #ifdef HAVE_IEEEFP_H
11795                       #include <ieeefp.h>
11796                       #endif
11797                      
11798 int main() {
11799  fpclass(0);
11800 ; return 0; }
11801 EOF
11802 if { (eval echo configure:11794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11803   rm -rf conftest*
11804   glibcpp_cv_func_fpclass_use=yes
11805 else
11806   echo "configure: failed program was:" >&5
11807   cat conftest.$ac_ext >&5
11808   rm -rf conftest*
11809   glibcpp_cv_func_fpclass_use=no
11810 fi
11811 rm -f conftest*
11812       ac_ext=c
11813 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11814 ac_cpp='$CPP $CPPFLAGS'
11815 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11816 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11817 cross_compiling=$ac_cv_prog_cc_cross
11818
11819     
11820 fi
11821
11822   fi
11823   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11824
11825   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11826     for ac_func in fpclass
11827 do
11828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11829 echo "configure:11821: checking for $ac_func" >&5
11830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11831   echo $ac_n "(cached) $ac_c" 1>&6
11832 else
11833   cat > conftest.$ac_ext <<EOF
11834 #line 11826 "configure"
11835 #include "confdefs.h"
11836 /* System header to define __stub macros and hopefully few prototypes,
11837     which can conflict with char $ac_func(); below.  */
11838 #include <assert.h>
11839 /* Override any gcc2 internal prototype to avoid an error.  */
11840 /* We use char because int might match the return type of a gcc2
11841     builtin and then its argument prototype would still apply.  */
11842 char $ac_func();
11843
11844 int main() {
11845
11846 /* The GNU C library defines this for functions which it implements
11847     to always fail with ENOSYS.  Some functions are actually named
11848     something starting with __ and the normal name is an alias.  */
11849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11850 choke me
11851 #else
11852 $ac_func();
11853 #endif
11854
11855 ; return 0; }
11856 EOF
11857 if { (eval echo configure:11849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11858   rm -rf conftest*
11859   eval "ac_cv_func_$ac_func=yes"
11860 else
11861   echo "configure: failed program was:" >&5
11862   cat conftest.$ac_ext >&5
11863   rm -rf conftest*
11864   eval "ac_cv_func_$ac_func=no"
11865 fi
11866 rm -f conftest*
11867 fi
11868
11869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11870   echo "$ac_t""yes" 1>&6
11871     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11872   cat >> confdefs.h <<EOF
11873 #define $ac_tr_func 1
11874 EOF
11875  
11876 else
11877   echo "$ac_t""no" 1>&6
11878 fi
11879 done
11880     
11881   else
11882     
11883   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11884 echo "configure:11876: checking for _fpclass declaration" >&5
11885   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11886     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11887   echo $ac_n "(cached) $ac_c" 1>&6
11888 else
11889   
11890       
11891       ac_ext=C
11892 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11893 ac_cpp='$CXXCPP $CPPFLAGS'
11894 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11895 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11896 cross_compiling=$ac_cv_prog_cxx_cross
11897
11898       cat > conftest.$ac_ext <<EOF
11899 #line 11891 "configure"
11900 #include "confdefs.h"
11901 #include <math.h>
11902                       #ifdef HAVE_IEEEFP_H
11903                       #include <ieeefp.h>
11904                       #endif
11905                      
11906 int main() {
11907  _fpclass(0);
11908 ; return 0; }
11909 EOF
11910 if { (eval echo configure:11902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11911   rm -rf conftest*
11912   glibcpp_cv_func__fpclass_use=yes
11913 else
11914   echo "configure: failed program was:" >&5
11915   cat conftest.$ac_ext >&5
11916   rm -rf conftest*
11917   glibcpp_cv_func__fpclass_use=no
11918 fi
11919 rm -f conftest*
11920       ac_ext=c
11921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11922 ac_cpp='$CPP $CPPFLAGS'
11923 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11924 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11925 cross_compiling=$ac_cv_prog_cc_cross
11926
11927     
11928 fi
11929
11930   fi
11931   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
11932
11933     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
11934       for ac_func in _fpclass
11935 do
11936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11937 echo "configure:11929: checking for $ac_func" >&5
11938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11939   echo $ac_n "(cached) $ac_c" 1>&6
11940 else
11941   cat > conftest.$ac_ext <<EOF
11942 #line 11934 "configure"
11943 #include "confdefs.h"
11944 /* System header to define __stub macros and hopefully few prototypes,
11945     which can conflict with char $ac_func(); below.  */
11946 #include <assert.h>
11947 /* Override any gcc2 internal prototype to avoid an error.  */
11948 /* We use char because int might match the return type of a gcc2
11949     builtin and then its argument prototype would still apply.  */
11950 char $ac_func();
11951
11952 int main() {
11953
11954 /* The GNU C library defines this for functions which it implements
11955     to always fail with ENOSYS.  Some functions are actually named
11956     something starting with __ and the normal name is an alias.  */
11957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11958 choke me
11959 #else
11960 $ac_func();
11961 #endif
11962
11963 ; return 0; }
11964 EOF
11965 if { (eval echo configure:11957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11966   rm -rf conftest*
11967   eval "ac_cv_func_$ac_func=yes"
11968 else
11969   echo "configure: failed program was:" >&5
11970   cat conftest.$ac_ext >&5
11971   rm -rf conftest*
11972   eval "ac_cv_func_$ac_func=no"
11973 fi
11974 rm -f conftest*
11975 fi
11976
11977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11978   echo "$ac_t""yes" 1>&6
11979     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11980   cat >> confdefs.h <<EOF
11981 #define $ac_tr_func 1
11982 EOF
11983  
11984 else
11985   echo "$ac_t""no" 1>&6
11986 fi
11987 done
11988     
11989     fi
11990   fi
11991
11992   
11993   
11994   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
11995 echo "configure:11987: checking for qfpclass declaration" >&5
11996   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
11997     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
11998   echo $ac_n "(cached) $ac_c" 1>&6
11999 else
12000   
12001       
12002       ac_ext=C
12003 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12004 ac_cpp='$CXXCPP $CPPFLAGS'
12005 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12006 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12007 cross_compiling=$ac_cv_prog_cxx_cross
12008
12009       cat > conftest.$ac_ext <<EOF
12010 #line 12002 "configure"
12011 #include "confdefs.h"
12012 #include <math.h>
12013                       #ifdef HAVE_IEEEFP_H
12014                       #include <ieeefp.h>
12015                       #endif
12016                      
12017 int main() {
12018  qfpclass(0);
12019 ; return 0; }
12020 EOF
12021 if { (eval echo configure:12013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12022   rm -rf conftest*
12023   glibcpp_cv_func_qfpclass_use=yes
12024 else
12025   echo "configure: failed program was:" >&5
12026   cat conftest.$ac_ext >&5
12027   rm -rf conftest*
12028   glibcpp_cv_func_qfpclass_use=no
12029 fi
12030 rm -f conftest*
12031       ac_ext=c
12032 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12033 ac_cpp='$CPP $CPPFLAGS'
12034 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12035 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12036 cross_compiling=$ac_cv_prog_cc_cross
12037
12038     
12039 fi
12040
12041   fi
12042   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12043
12044   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12045     for ac_func in qfpclass
12046 do
12047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12048 echo "configure:12040: checking for $ac_func" >&5
12049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12050   echo $ac_n "(cached) $ac_c" 1>&6
12051 else
12052   cat > conftest.$ac_ext <<EOF
12053 #line 12045 "configure"
12054 #include "confdefs.h"
12055 /* System header to define __stub macros and hopefully few prototypes,
12056     which can conflict with char $ac_func(); below.  */
12057 #include <assert.h>
12058 /* Override any gcc2 internal prototype to avoid an error.  */
12059 /* We use char because int might match the return type of a gcc2
12060     builtin and then its argument prototype would still apply.  */
12061 char $ac_func();
12062
12063 int main() {
12064
12065 /* The GNU C library defines this for functions which it implements
12066     to always fail with ENOSYS.  Some functions are actually named
12067     something starting with __ and the normal name is an alias.  */
12068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12069 choke me
12070 #else
12071 $ac_func();
12072 #endif
12073
12074 ; return 0; }
12075 EOF
12076 if { (eval echo configure:12068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12077   rm -rf conftest*
12078   eval "ac_cv_func_$ac_func=yes"
12079 else
12080   echo "configure: failed program was:" >&5
12081   cat conftest.$ac_ext >&5
12082   rm -rf conftest*
12083   eval "ac_cv_func_$ac_func=no"
12084 fi
12085 rm -f conftest*
12086 fi
12087
12088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12089   echo "$ac_t""yes" 1>&6
12090     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12091   cat >> confdefs.h <<EOF
12092 #define $ac_tr_func 1
12093 EOF
12094  
12095 else
12096   echo "$ac_t""no" 1>&6
12097 fi
12098 done
12099     
12100   else
12101     
12102   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12103 echo "configure:12095: checking for _qfpclass declaration" >&5
12104   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12105     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12106   echo $ac_n "(cached) $ac_c" 1>&6
12107 else
12108   
12109       
12110       ac_ext=C
12111 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12112 ac_cpp='$CXXCPP $CPPFLAGS'
12113 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12114 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12115 cross_compiling=$ac_cv_prog_cxx_cross
12116
12117       cat > conftest.$ac_ext <<EOF
12118 #line 12110 "configure"
12119 #include "confdefs.h"
12120 #include <math.h>
12121                       #ifdef HAVE_IEEEFP_H
12122                       #include <ieeefp.h>
12123                       #endif
12124                      
12125 int main() {
12126  _qfpclass(0);
12127 ; return 0; }
12128 EOF
12129 if { (eval echo configure:12121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12130   rm -rf conftest*
12131   glibcpp_cv_func__qfpclass_use=yes
12132 else
12133   echo "configure: failed program was:" >&5
12134   cat conftest.$ac_ext >&5
12135   rm -rf conftest*
12136   glibcpp_cv_func__qfpclass_use=no
12137 fi
12138 rm -f conftest*
12139       ac_ext=c
12140 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12141 ac_cpp='$CPP $CPPFLAGS'
12142 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12143 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12144 cross_compiling=$ac_cv_prog_cc_cross
12145
12146     
12147 fi
12148
12149   fi
12150   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12151
12152     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12153       for ac_func in _qfpclass
12154 do
12155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12156 echo "configure:12148: checking for $ac_func" >&5
12157 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12158   echo $ac_n "(cached) $ac_c" 1>&6
12159 else
12160   cat > conftest.$ac_ext <<EOF
12161 #line 12153 "configure"
12162 #include "confdefs.h"
12163 /* System header to define __stub macros and hopefully few prototypes,
12164     which can conflict with char $ac_func(); below.  */
12165 #include <assert.h>
12166 /* Override any gcc2 internal prototype to avoid an error.  */
12167 /* We use char because int might match the return type of a gcc2
12168     builtin and then its argument prototype would still apply.  */
12169 char $ac_func();
12170
12171 int main() {
12172
12173 /* The GNU C library defines this for functions which it implements
12174     to always fail with ENOSYS.  Some functions are actually named
12175     something starting with __ and the normal name is an alias.  */
12176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12177 choke me
12178 #else
12179 $ac_func();
12180 #endif
12181
12182 ; return 0; }
12183 EOF
12184 if { (eval echo configure:12176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12185   rm -rf conftest*
12186   eval "ac_cv_func_$ac_func=yes"
12187 else
12188   echo "configure: failed program was:" >&5
12189   cat conftest.$ac_ext >&5
12190   rm -rf conftest*
12191   eval "ac_cv_func_$ac_func=no"
12192 fi
12193 rm -f conftest*
12194 fi
12195
12196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12197   echo "$ac_t""yes" 1>&6
12198     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12199   cat >> confdefs.h <<EOF
12200 #define $ac_tr_func 1
12201 EOF
12202  
12203 else
12204   echo "$ac_t""no" 1>&6
12205 fi
12206 done
12207     
12208     fi
12209   fi
12210
12211   
12212   
12213   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12214 echo "configure:12206: checking for hypot declaration" >&5
12215   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12216     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12217   echo $ac_n "(cached) $ac_c" 1>&6
12218 else
12219   
12220       
12221       ac_ext=C
12222 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12223 ac_cpp='$CXXCPP $CPPFLAGS'
12224 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12225 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12226 cross_compiling=$ac_cv_prog_cxx_cross
12227
12228       cat > conftest.$ac_ext <<EOF
12229 #line 12221 "configure"
12230 #include "confdefs.h"
12231 #include <math.h>
12232 int main() {
12233  hypot(0, 0);
12234 ; return 0; }
12235 EOF
12236 if { (eval echo configure:12228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12237   rm -rf conftest*
12238   glibcpp_cv_func_hypot_use=yes
12239 else
12240   echo "configure: failed program was:" >&5
12241   cat conftest.$ac_ext >&5
12242   rm -rf conftest*
12243   glibcpp_cv_func_hypot_use=no
12244 fi
12245 rm -f conftest*
12246       ac_ext=c
12247 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12248 ac_cpp='$CPP $CPPFLAGS'
12249 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12250 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12251 cross_compiling=$ac_cv_prog_cc_cross
12252
12253     
12254 fi
12255
12256   fi
12257   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12258
12259   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12260     for ac_func in hypot
12261 do
12262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12263 echo "configure:12255: checking for $ac_func" >&5
12264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12265   echo $ac_n "(cached) $ac_c" 1>&6
12266 else
12267   cat > conftest.$ac_ext <<EOF
12268 #line 12260 "configure"
12269 #include "confdefs.h"
12270 /* System header to define __stub macros and hopefully few prototypes,
12271     which can conflict with char $ac_func(); below.  */
12272 #include <assert.h>
12273 /* Override any gcc2 internal prototype to avoid an error.  */
12274 /* We use char because int might match the return type of a gcc2
12275     builtin and then its argument prototype would still apply.  */
12276 char $ac_func();
12277
12278 int main() {
12279
12280 /* The GNU C library defines this for functions which it implements
12281     to always fail with ENOSYS.  Some functions are actually named
12282     something starting with __ and the normal name is an alias.  */
12283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12284 choke me
12285 #else
12286 $ac_func();
12287 #endif
12288
12289 ; return 0; }
12290 EOF
12291 if { (eval echo configure:12283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12292   rm -rf conftest*
12293   eval "ac_cv_func_$ac_func=yes"
12294 else
12295   echo "configure: failed program was:" >&5
12296   cat conftest.$ac_ext >&5
12297   rm -rf conftest*
12298   eval "ac_cv_func_$ac_func=no"
12299 fi
12300 rm -f conftest*
12301 fi
12302
12303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12304   echo "$ac_t""yes" 1>&6
12305     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12306   cat >> confdefs.h <<EOF
12307 #define $ac_tr_func 1
12308 EOF
12309  
12310 else
12311   echo "$ac_t""no" 1>&6
12312 fi
12313 done
12314     
12315   else
12316     
12317   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12318 echo "configure:12310: checking for _hypot declaration" >&5
12319   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12320     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12321   echo $ac_n "(cached) $ac_c" 1>&6
12322 else
12323   
12324       
12325       ac_ext=C
12326 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12327 ac_cpp='$CXXCPP $CPPFLAGS'
12328 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12329 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12330 cross_compiling=$ac_cv_prog_cxx_cross
12331
12332       cat > conftest.$ac_ext <<EOF
12333 #line 12325 "configure"
12334 #include "confdefs.h"
12335 #include <math.h>
12336 int main() {
12337  _hypot(0, 0);
12338 ; return 0; }
12339 EOF
12340 if { (eval echo configure:12332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12341   rm -rf conftest*
12342   glibcpp_cv_func__hypot_use=yes
12343 else
12344   echo "configure: failed program was:" >&5
12345   cat conftest.$ac_ext >&5
12346   rm -rf conftest*
12347   glibcpp_cv_func__hypot_use=no
12348 fi
12349 rm -f conftest*
12350       ac_ext=c
12351 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12352 ac_cpp='$CPP $CPPFLAGS'
12353 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12354 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12355 cross_compiling=$ac_cv_prog_cc_cross
12356
12357     
12358 fi
12359
12360   fi
12361   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12362
12363     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12364       for ac_func in _hypot
12365 do
12366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12367 echo "configure:12359: checking for $ac_func" >&5
12368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12369   echo $ac_n "(cached) $ac_c" 1>&6
12370 else
12371   cat > conftest.$ac_ext <<EOF
12372 #line 12364 "configure"
12373 #include "confdefs.h"
12374 /* System header to define __stub macros and hopefully few prototypes,
12375     which can conflict with char $ac_func(); below.  */
12376 #include <assert.h>
12377 /* Override any gcc2 internal prototype to avoid an error.  */
12378 /* We use char because int might match the return type of a gcc2
12379     builtin and then its argument prototype would still apply.  */
12380 char $ac_func();
12381
12382 int main() {
12383
12384 /* The GNU C library defines this for functions which it implements
12385     to always fail with ENOSYS.  Some functions are actually named
12386     something starting with __ and the normal name is an alias.  */
12387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12388 choke me
12389 #else
12390 $ac_func();
12391 #endif
12392
12393 ; return 0; }
12394 EOF
12395 if { (eval echo configure:12387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12396   rm -rf conftest*
12397   eval "ac_cv_func_$ac_func=yes"
12398 else
12399   echo "configure: failed program was:" >&5
12400   cat conftest.$ac_ext >&5
12401   rm -rf conftest*
12402   eval "ac_cv_func_$ac_func=no"
12403 fi
12404 rm -f conftest*
12405 fi
12406
12407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12408   echo "$ac_t""yes" 1>&6
12409     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12410   cat >> confdefs.h <<EOF
12411 #define $ac_tr_func 1
12412 EOF
12413  
12414 else
12415   echo "$ac_t""no" 1>&6
12416 fi
12417 done
12418     
12419     fi
12420   fi
12421
12422
12423     
12424   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12425 echo "configure:12417: checking for float trig functions" >&5
12426   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12427   echo $ac_n "(cached) $ac_c" 1>&6
12428 else
12429   
12430     
12431     ac_ext=C
12432 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12433 ac_cpp='$CXXCPP $CPPFLAGS'
12434 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12435 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12436 cross_compiling=$ac_cv_prog_cxx_cross
12437
12438     cat > conftest.$ac_ext <<EOF
12439 #line 12431 "configure"
12440 #include "confdefs.h"
12441 #include <math.h>
12442 int main() {
12443  `for x in acosf asinf atanf \
12444                                           cosf sinf tanf \
12445                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
12446 ; return 0; }
12447 EOF
12448 if { (eval echo configure:12440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12449   rm -rf conftest*
12450   glibcpp_cv_func_float_trig_use=yes
12451 else
12452   echo "configure: failed program was:" >&5
12453   cat conftest.$ac_ext >&5
12454   rm -rf conftest*
12455   glibcpp_cv_func_float_trig_use=no
12456 fi
12457 rm -f conftest*
12458     ac_ext=c
12459 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12460 ac_cpp='$CPP $CPPFLAGS'
12461 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12462 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12463 cross_compiling=$ac_cv_prog_cc_cross
12464
12465 fi
12466
12467   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12468   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12469     for ac_func in acosf asinf atanf \
12470                                           cosf sinf tanf \
12471                                           coshf sinhf tanhf
12472 do
12473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12474 echo "configure:12466: checking for $ac_func" >&5
12475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12476   echo $ac_n "(cached) $ac_c" 1>&6
12477 else
12478   cat > conftest.$ac_ext <<EOF
12479 #line 12471 "configure"
12480 #include "confdefs.h"
12481 /* System header to define __stub macros and hopefully few prototypes,
12482     which can conflict with char $ac_func(); below.  */
12483 #include <assert.h>
12484 /* Override any gcc2 internal prototype to avoid an error.  */
12485 /* We use char because int might match the return type of a gcc2
12486     builtin and then its argument prototype would still apply.  */
12487 char $ac_func();
12488
12489 int main() {
12490
12491 /* The GNU C library defines this for functions which it implements
12492     to always fail with ENOSYS.  Some functions are actually named
12493     something starting with __ and the normal name is an alias.  */
12494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12495 choke me
12496 #else
12497 $ac_func();
12498 #endif
12499
12500 ; return 0; }
12501 EOF
12502 if { (eval echo configure:12494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12503   rm -rf conftest*
12504   eval "ac_cv_func_$ac_func=yes"
12505 else
12506   echo "configure: failed program was:" >&5
12507   cat conftest.$ac_ext >&5
12508   rm -rf conftest*
12509   eval "ac_cv_func_$ac_func=no"
12510 fi
12511 rm -f conftest*
12512 fi
12513
12514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12515   echo "$ac_t""yes" 1>&6
12516     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12517   cat >> confdefs.h <<EOF
12518 #define $ac_tr_func 1
12519 EOF
12520  
12521 else
12522   echo "$ac_t""no" 1>&6
12523 fi
12524 done
12525
12526   fi
12527
12528   
12529   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12530 echo "configure:12522: checking for float round functions" >&5
12531   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12532   echo $ac_n "(cached) $ac_c" 1>&6
12533 else
12534   
12535     
12536     ac_ext=C
12537 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12538 ac_cpp='$CXXCPP $CPPFLAGS'
12539 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12540 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12541 cross_compiling=$ac_cv_prog_cxx_cross
12542
12543     cat > conftest.$ac_ext <<EOF
12544 #line 12536 "configure"
12545 #include "confdefs.h"
12546 #include <math.h>
12547 int main() {
12548  `for x in ceilf floorf; do echo "$x (0);"; done` 
12549 ; return 0; }
12550 EOF
12551 if { (eval echo configure:12543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12552   rm -rf conftest*
12553   glibcpp_cv_func_float_round_use=yes
12554 else
12555   echo "configure: failed program was:" >&5
12556   cat conftest.$ac_ext >&5
12557   rm -rf conftest*
12558   glibcpp_cv_func_float_round_use=no
12559 fi
12560 rm -f conftest*
12561     ac_ext=c
12562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12563 ac_cpp='$CPP $CPPFLAGS'
12564 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12565 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12566 cross_compiling=$ac_cv_prog_cc_cross
12567
12568 fi
12569
12570   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12571   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12572     for ac_func in ceilf floorf
12573 do
12574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12575 echo "configure:12567: checking for $ac_func" >&5
12576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12577   echo $ac_n "(cached) $ac_c" 1>&6
12578 else
12579   cat > conftest.$ac_ext <<EOF
12580 #line 12572 "configure"
12581 #include "confdefs.h"
12582 /* System header to define __stub macros and hopefully few prototypes,
12583     which can conflict with char $ac_func(); below.  */
12584 #include <assert.h>
12585 /* Override any gcc2 internal prototype to avoid an error.  */
12586 /* We use char because int might match the return type of a gcc2
12587     builtin and then its argument prototype would still apply.  */
12588 char $ac_func();
12589
12590 int main() {
12591
12592 /* The GNU C library defines this for functions which it implements
12593     to always fail with ENOSYS.  Some functions are actually named
12594     something starting with __ and the normal name is an alias.  */
12595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12596 choke me
12597 #else
12598 $ac_func();
12599 #endif
12600
12601 ; return 0; }
12602 EOF
12603 if { (eval echo configure:12595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12604   rm -rf conftest*
12605   eval "ac_cv_func_$ac_func=yes"
12606 else
12607   echo "configure: failed program was:" >&5
12608   cat conftest.$ac_ext >&5
12609   rm -rf conftest*
12610   eval "ac_cv_func_$ac_func=no"
12611 fi
12612 rm -f conftest*
12613 fi
12614
12615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12616   echo "$ac_t""yes" 1>&6
12617     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12618   cat >> confdefs.h <<EOF
12619 #define $ac_tr_func 1
12620 EOF
12621  
12622 else
12623   echo "$ac_t""no" 1>&6
12624 fi
12625 done
12626
12627   fi
12628
12629   
12630   
12631   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12632 echo "configure:12624: checking for expf declaration" >&5
12633   if test x${glibcpp_cv_func_expf_use+set} != xset; then
12634     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12635   echo $ac_n "(cached) $ac_c" 1>&6
12636 else
12637   
12638       
12639       ac_ext=C
12640 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12641 ac_cpp='$CXXCPP $CPPFLAGS'
12642 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12643 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12644 cross_compiling=$ac_cv_prog_cxx_cross
12645
12646       cat > conftest.$ac_ext <<EOF
12647 #line 12639 "configure"
12648 #include "confdefs.h"
12649 #include <math.h>
12650                       #ifdef HAVE_IEEEFP_H
12651                       #include <ieeefp.h>
12652                       #endif
12653                      
12654 int main() {
12655  expf(0);
12656 ; return 0; }
12657 EOF
12658 if { (eval echo configure:12650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12659   rm -rf conftest*
12660   glibcpp_cv_func_expf_use=yes
12661 else
12662   echo "configure: failed program was:" >&5
12663   cat conftest.$ac_ext >&5
12664   rm -rf conftest*
12665   glibcpp_cv_func_expf_use=no
12666 fi
12667 rm -f conftest*
12668       ac_ext=c
12669 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12670 ac_cpp='$CPP $CPPFLAGS'
12671 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12672 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12673 cross_compiling=$ac_cv_prog_cc_cross
12674
12675     
12676 fi
12677
12678   fi
12679   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12680
12681   if test x$glibcpp_cv_func_expf_use = x"yes"; then
12682     for ac_func in expf
12683 do
12684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12685 echo "configure:12677: checking for $ac_func" >&5
12686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12687   echo $ac_n "(cached) $ac_c" 1>&6
12688 else
12689   cat > conftest.$ac_ext <<EOF
12690 #line 12682 "configure"
12691 #include "confdefs.h"
12692 /* System header to define __stub macros and hopefully few prototypes,
12693     which can conflict with char $ac_func(); below.  */
12694 #include <assert.h>
12695 /* Override any gcc2 internal prototype to avoid an error.  */
12696 /* We use char because int might match the return type of a gcc2
12697     builtin and then its argument prototype would still apply.  */
12698 char $ac_func();
12699
12700 int main() {
12701
12702 /* The GNU C library defines this for functions which it implements
12703     to always fail with ENOSYS.  Some functions are actually named
12704     something starting with __ and the normal name is an alias.  */
12705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12706 choke me
12707 #else
12708 $ac_func();
12709 #endif
12710
12711 ; return 0; }
12712 EOF
12713 if { (eval echo configure:12705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12714   rm -rf conftest*
12715   eval "ac_cv_func_$ac_func=yes"
12716 else
12717   echo "configure: failed program was:" >&5
12718   cat conftest.$ac_ext >&5
12719   rm -rf conftest*
12720   eval "ac_cv_func_$ac_func=no"
12721 fi
12722 rm -f conftest*
12723 fi
12724
12725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12726   echo "$ac_t""yes" 1>&6
12727     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12728   cat >> confdefs.h <<EOF
12729 #define $ac_tr_func 1
12730 EOF
12731  
12732 else
12733   echo "$ac_t""no" 1>&6
12734 fi
12735 done
12736     
12737   else
12738     
12739   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12740 echo "configure:12732: checking for _expf declaration" >&5
12741   if test x${glibcpp_cv_func__expf_use+set} != xset; then
12742     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12743   echo $ac_n "(cached) $ac_c" 1>&6
12744 else
12745   
12746       
12747       ac_ext=C
12748 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12749 ac_cpp='$CXXCPP $CPPFLAGS'
12750 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12751 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12752 cross_compiling=$ac_cv_prog_cxx_cross
12753
12754       cat > conftest.$ac_ext <<EOF
12755 #line 12747 "configure"
12756 #include "confdefs.h"
12757 #include <math.h>
12758                       #ifdef HAVE_IEEEFP_H
12759                       #include <ieeefp.h>
12760                       #endif
12761                      
12762 int main() {
12763  _expf(0);
12764 ; return 0; }
12765 EOF
12766 if { (eval echo configure:12758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12767   rm -rf conftest*
12768   glibcpp_cv_func__expf_use=yes
12769 else
12770   echo "configure: failed program was:" >&5
12771   cat conftest.$ac_ext >&5
12772   rm -rf conftest*
12773   glibcpp_cv_func__expf_use=no
12774 fi
12775 rm -f conftest*
12776       ac_ext=c
12777 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12778 ac_cpp='$CPP $CPPFLAGS'
12779 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12780 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12781 cross_compiling=$ac_cv_prog_cc_cross
12782
12783     
12784 fi
12785
12786   fi
12787   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12788
12789     if test x$glibcpp_cv_func__expf_use = x"yes"; then
12790       for ac_func in _expf
12791 do
12792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12793 echo "configure:12785: checking for $ac_func" >&5
12794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12795   echo $ac_n "(cached) $ac_c" 1>&6
12796 else
12797   cat > conftest.$ac_ext <<EOF
12798 #line 12790 "configure"
12799 #include "confdefs.h"
12800 /* System header to define __stub macros and hopefully few prototypes,
12801     which can conflict with char $ac_func(); below.  */
12802 #include <assert.h>
12803 /* Override any gcc2 internal prototype to avoid an error.  */
12804 /* We use char because int might match the return type of a gcc2
12805     builtin and then its argument prototype would still apply.  */
12806 char $ac_func();
12807
12808 int main() {
12809
12810 /* The GNU C library defines this for functions which it implements
12811     to always fail with ENOSYS.  Some functions are actually named
12812     something starting with __ and the normal name is an alias.  */
12813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12814 choke me
12815 #else
12816 $ac_func();
12817 #endif
12818
12819 ; return 0; }
12820 EOF
12821 if { (eval echo configure:12813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12822   rm -rf conftest*
12823   eval "ac_cv_func_$ac_func=yes"
12824 else
12825   echo "configure: failed program was:" >&5
12826   cat conftest.$ac_ext >&5
12827   rm -rf conftest*
12828   eval "ac_cv_func_$ac_func=no"
12829 fi
12830 rm -f conftest*
12831 fi
12832
12833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12834   echo "$ac_t""yes" 1>&6
12835     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12836   cat >> confdefs.h <<EOF
12837 #define $ac_tr_func 1
12838 EOF
12839  
12840 else
12841   echo "$ac_t""no" 1>&6
12842 fi
12843 done
12844     
12845     fi
12846   fi
12847
12848   
12849   
12850   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12851 echo "configure:12843: checking for isnanf declaration" >&5
12852   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12853     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12854   echo $ac_n "(cached) $ac_c" 1>&6
12855 else
12856   
12857       
12858       ac_ext=C
12859 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12860 ac_cpp='$CXXCPP $CPPFLAGS'
12861 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12862 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12863 cross_compiling=$ac_cv_prog_cxx_cross
12864
12865       cat > conftest.$ac_ext <<EOF
12866 #line 12858 "configure"
12867 #include "confdefs.h"
12868 #include <math.h>
12869                       #ifdef HAVE_IEEEFP_H
12870                       #include <ieeefp.h>
12871                       #endif
12872                      
12873 int main() {
12874  isnanf(0);
12875 ; return 0; }
12876 EOF
12877 if { (eval echo configure:12869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12878   rm -rf conftest*
12879   glibcpp_cv_func_isnanf_use=yes
12880 else
12881   echo "configure: failed program was:" >&5
12882   cat conftest.$ac_ext >&5
12883   rm -rf conftest*
12884   glibcpp_cv_func_isnanf_use=no
12885 fi
12886 rm -f conftest*
12887       ac_ext=c
12888 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12889 ac_cpp='$CPP $CPPFLAGS'
12890 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12891 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12892 cross_compiling=$ac_cv_prog_cc_cross
12893
12894     
12895 fi
12896
12897   fi
12898   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12899
12900   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12901     for ac_func in isnanf
12902 do
12903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12904 echo "configure:12896: checking for $ac_func" >&5
12905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12906   echo $ac_n "(cached) $ac_c" 1>&6
12907 else
12908   cat > conftest.$ac_ext <<EOF
12909 #line 12901 "configure"
12910 #include "confdefs.h"
12911 /* System header to define __stub macros and hopefully few prototypes,
12912     which can conflict with char $ac_func(); below.  */
12913 #include <assert.h>
12914 /* Override any gcc2 internal prototype to avoid an error.  */
12915 /* We use char because int might match the return type of a gcc2
12916     builtin and then its argument prototype would still apply.  */
12917 char $ac_func();
12918
12919 int main() {
12920
12921 /* The GNU C library defines this for functions which it implements
12922     to always fail with ENOSYS.  Some functions are actually named
12923     something starting with __ and the normal name is an alias.  */
12924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12925 choke me
12926 #else
12927 $ac_func();
12928 #endif
12929
12930 ; return 0; }
12931 EOF
12932 if { (eval echo configure:12924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12933   rm -rf conftest*
12934   eval "ac_cv_func_$ac_func=yes"
12935 else
12936   echo "configure: failed program was:" >&5
12937   cat conftest.$ac_ext >&5
12938   rm -rf conftest*
12939   eval "ac_cv_func_$ac_func=no"
12940 fi
12941 rm -f conftest*
12942 fi
12943
12944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12945   echo "$ac_t""yes" 1>&6
12946     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12947   cat >> confdefs.h <<EOF
12948 #define $ac_tr_func 1
12949 EOF
12950  
12951 else
12952   echo "$ac_t""no" 1>&6
12953 fi
12954 done
12955     
12956   else
12957     
12958   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
12959 echo "configure:12951: checking for _isnanf declaration" >&5
12960   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
12961     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
12962   echo $ac_n "(cached) $ac_c" 1>&6
12963 else
12964   
12965       
12966       ac_ext=C
12967 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12968 ac_cpp='$CXXCPP $CPPFLAGS'
12969 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12970 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12971 cross_compiling=$ac_cv_prog_cxx_cross
12972
12973       cat > conftest.$ac_ext <<EOF
12974 #line 12966 "configure"
12975 #include "confdefs.h"
12976 #include <math.h>
12977                       #ifdef HAVE_IEEEFP_H
12978                       #include <ieeefp.h>
12979                       #endif
12980                      
12981 int main() {
12982  _isnanf(0);
12983 ; return 0; }
12984 EOF
12985 if { (eval echo configure:12977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12986   rm -rf conftest*
12987   glibcpp_cv_func__isnanf_use=yes
12988 else
12989   echo "configure: failed program was:" >&5
12990   cat conftest.$ac_ext >&5
12991   rm -rf conftest*
12992   glibcpp_cv_func__isnanf_use=no
12993 fi
12994 rm -f conftest*
12995       ac_ext=c
12996 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12997 ac_cpp='$CPP $CPPFLAGS'
12998 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12999 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13000 cross_compiling=$ac_cv_prog_cc_cross
13001
13002     
13003 fi
13004
13005   fi
13006   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13007
13008     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13009       for ac_func in _isnanf
13010 do
13011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13012 echo "configure:13004: checking for $ac_func" >&5
13013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13014   echo $ac_n "(cached) $ac_c" 1>&6
13015 else
13016   cat > conftest.$ac_ext <<EOF
13017 #line 13009 "configure"
13018 #include "confdefs.h"
13019 /* System header to define __stub macros and hopefully few prototypes,
13020     which can conflict with char $ac_func(); below.  */
13021 #include <assert.h>
13022 /* Override any gcc2 internal prototype to avoid an error.  */
13023 /* We use char because int might match the return type of a gcc2
13024     builtin and then its argument prototype would still apply.  */
13025 char $ac_func();
13026
13027 int main() {
13028
13029 /* The GNU C library defines this for functions which it implements
13030     to always fail with ENOSYS.  Some functions are actually named
13031     something starting with __ and the normal name is an alias.  */
13032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13033 choke me
13034 #else
13035 $ac_func();
13036 #endif
13037
13038 ; return 0; }
13039 EOF
13040 if { (eval echo configure:13032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13041   rm -rf conftest*
13042   eval "ac_cv_func_$ac_func=yes"
13043 else
13044   echo "configure: failed program was:" >&5
13045   cat conftest.$ac_ext >&5
13046   rm -rf conftest*
13047   eval "ac_cv_func_$ac_func=no"
13048 fi
13049 rm -f conftest*
13050 fi
13051
13052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13053   echo "$ac_t""yes" 1>&6
13054     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13055   cat >> confdefs.h <<EOF
13056 #define $ac_tr_func 1
13057 EOF
13058  
13059 else
13060   echo "$ac_t""no" 1>&6
13061 fi
13062 done
13063     
13064     fi
13065   fi
13066
13067   
13068   
13069   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13070 echo "configure:13062: checking for isinff declaration" >&5
13071   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13072     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13073   echo $ac_n "(cached) $ac_c" 1>&6
13074 else
13075   
13076       
13077       ac_ext=C
13078 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13079 ac_cpp='$CXXCPP $CPPFLAGS'
13080 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13081 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13082 cross_compiling=$ac_cv_prog_cxx_cross
13083
13084       cat > conftest.$ac_ext <<EOF
13085 #line 13077 "configure"
13086 #include "confdefs.h"
13087 #include <math.h>
13088                       #ifdef HAVE_IEEEFP_H
13089                       #include <ieeefp.h>
13090                       #endif
13091                      
13092 int main() {
13093  isinff(0);
13094 ; return 0; }
13095 EOF
13096 if { (eval echo configure:13088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13097   rm -rf conftest*
13098   glibcpp_cv_func_isinff_use=yes
13099 else
13100   echo "configure: failed program was:" >&5
13101   cat conftest.$ac_ext >&5
13102   rm -rf conftest*
13103   glibcpp_cv_func_isinff_use=no
13104 fi
13105 rm -f conftest*
13106       ac_ext=c
13107 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13108 ac_cpp='$CPP $CPPFLAGS'
13109 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13110 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13111 cross_compiling=$ac_cv_prog_cc_cross
13112
13113     
13114 fi
13115
13116   fi
13117   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13118
13119   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13120     for ac_func in isinff
13121 do
13122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13123 echo "configure:13115: checking for $ac_func" >&5
13124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13125   echo $ac_n "(cached) $ac_c" 1>&6
13126 else
13127   cat > conftest.$ac_ext <<EOF
13128 #line 13120 "configure"
13129 #include "confdefs.h"
13130 /* System header to define __stub macros and hopefully few prototypes,
13131     which can conflict with char $ac_func(); below.  */
13132 #include <assert.h>
13133 /* Override any gcc2 internal prototype to avoid an error.  */
13134 /* We use char because int might match the return type of a gcc2
13135     builtin and then its argument prototype would still apply.  */
13136 char $ac_func();
13137
13138 int main() {
13139
13140 /* The GNU C library defines this for functions which it implements
13141     to always fail with ENOSYS.  Some functions are actually named
13142     something starting with __ and the normal name is an alias.  */
13143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13144 choke me
13145 #else
13146 $ac_func();
13147 #endif
13148
13149 ; return 0; }
13150 EOF
13151 if { (eval echo configure:13143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13152   rm -rf conftest*
13153   eval "ac_cv_func_$ac_func=yes"
13154 else
13155   echo "configure: failed program was:" >&5
13156   cat conftest.$ac_ext >&5
13157   rm -rf conftest*
13158   eval "ac_cv_func_$ac_func=no"
13159 fi
13160 rm -f conftest*
13161 fi
13162
13163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13164   echo "$ac_t""yes" 1>&6
13165     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13166   cat >> confdefs.h <<EOF
13167 #define $ac_tr_func 1
13168 EOF
13169  
13170 else
13171   echo "$ac_t""no" 1>&6
13172 fi
13173 done
13174     
13175   else
13176     
13177   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13178 echo "configure:13170: checking for _isinff declaration" >&5
13179   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13180     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13181   echo $ac_n "(cached) $ac_c" 1>&6
13182 else
13183   
13184       
13185       ac_ext=C
13186 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13187 ac_cpp='$CXXCPP $CPPFLAGS'
13188 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13189 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13190 cross_compiling=$ac_cv_prog_cxx_cross
13191
13192       cat > conftest.$ac_ext <<EOF
13193 #line 13185 "configure"
13194 #include "confdefs.h"
13195 #include <math.h>
13196                       #ifdef HAVE_IEEEFP_H
13197                       #include <ieeefp.h>
13198                       #endif
13199                      
13200 int main() {
13201  _isinff(0);
13202 ; return 0; }
13203 EOF
13204 if { (eval echo configure:13196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13205   rm -rf conftest*
13206   glibcpp_cv_func__isinff_use=yes
13207 else
13208   echo "configure: failed program was:" >&5
13209   cat conftest.$ac_ext >&5
13210   rm -rf conftest*
13211   glibcpp_cv_func__isinff_use=no
13212 fi
13213 rm -f conftest*
13214       ac_ext=c
13215 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13216 ac_cpp='$CPP $CPPFLAGS'
13217 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13218 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13219 cross_compiling=$ac_cv_prog_cc_cross
13220
13221     
13222 fi
13223
13224   fi
13225   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13226
13227     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13228       for ac_func in _isinff
13229 do
13230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13231 echo "configure:13223: checking for $ac_func" >&5
13232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13233   echo $ac_n "(cached) $ac_c" 1>&6
13234 else
13235   cat > conftest.$ac_ext <<EOF
13236 #line 13228 "configure"
13237 #include "confdefs.h"
13238 /* System header to define __stub macros and hopefully few prototypes,
13239     which can conflict with char $ac_func(); below.  */
13240 #include <assert.h>
13241 /* Override any gcc2 internal prototype to avoid an error.  */
13242 /* We use char because int might match the return type of a gcc2
13243     builtin and then its argument prototype would still apply.  */
13244 char $ac_func();
13245
13246 int main() {
13247
13248 /* The GNU C library defines this for functions which it implements
13249     to always fail with ENOSYS.  Some functions are actually named
13250     something starting with __ and the normal name is an alias.  */
13251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13252 choke me
13253 #else
13254 $ac_func();
13255 #endif
13256
13257 ; return 0; }
13258 EOF
13259 if { (eval echo configure:13251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13260   rm -rf conftest*
13261   eval "ac_cv_func_$ac_func=yes"
13262 else
13263   echo "configure: failed program was:" >&5
13264   cat conftest.$ac_ext >&5
13265   rm -rf conftest*
13266   eval "ac_cv_func_$ac_func=no"
13267 fi
13268 rm -f conftest*
13269 fi
13270
13271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13272   echo "$ac_t""yes" 1>&6
13273     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13274   cat >> confdefs.h <<EOF
13275 #define $ac_tr_func 1
13276 EOF
13277  
13278 else
13279   echo "$ac_t""no" 1>&6
13280 fi
13281 done
13282     
13283     fi
13284   fi
13285
13286   
13287   
13288   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13289 echo "configure:13281: checking for atan2f declaration" >&5
13290   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13291     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13292   echo $ac_n "(cached) $ac_c" 1>&6
13293 else
13294   
13295       
13296       ac_ext=C
13297 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13298 ac_cpp='$CXXCPP $CPPFLAGS'
13299 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13300 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13301 cross_compiling=$ac_cv_prog_cxx_cross
13302
13303       cat > conftest.$ac_ext <<EOF
13304 #line 13296 "configure"
13305 #include "confdefs.h"
13306 #include <math.h>
13307 int main() {
13308  atan2f(0, 0);
13309 ; return 0; }
13310 EOF
13311 if { (eval echo configure:13303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13312   rm -rf conftest*
13313   glibcpp_cv_func_atan2f_use=yes
13314 else
13315   echo "configure: failed program was:" >&5
13316   cat conftest.$ac_ext >&5
13317   rm -rf conftest*
13318   glibcpp_cv_func_atan2f_use=no
13319 fi
13320 rm -f conftest*
13321       ac_ext=c
13322 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13323 ac_cpp='$CPP $CPPFLAGS'
13324 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13325 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13326 cross_compiling=$ac_cv_prog_cc_cross
13327
13328     
13329 fi
13330
13331   fi
13332   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13333
13334   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13335     for ac_func in atan2f
13336 do
13337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13338 echo "configure:13330: checking for $ac_func" >&5
13339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13340   echo $ac_n "(cached) $ac_c" 1>&6
13341 else
13342   cat > conftest.$ac_ext <<EOF
13343 #line 13335 "configure"
13344 #include "confdefs.h"
13345 /* System header to define __stub macros and hopefully few prototypes,
13346     which can conflict with char $ac_func(); below.  */
13347 #include <assert.h>
13348 /* Override any gcc2 internal prototype to avoid an error.  */
13349 /* We use char because int might match the return type of a gcc2
13350     builtin and then its argument prototype would still apply.  */
13351 char $ac_func();
13352
13353 int main() {
13354
13355 /* The GNU C library defines this for functions which it implements
13356     to always fail with ENOSYS.  Some functions are actually named
13357     something starting with __ and the normal name is an alias.  */
13358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13359 choke me
13360 #else
13361 $ac_func();
13362 #endif
13363
13364 ; return 0; }
13365 EOF
13366 if { (eval echo configure:13358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13367   rm -rf conftest*
13368   eval "ac_cv_func_$ac_func=yes"
13369 else
13370   echo "configure: failed program was:" >&5
13371   cat conftest.$ac_ext >&5
13372   rm -rf conftest*
13373   eval "ac_cv_func_$ac_func=no"
13374 fi
13375 rm -f conftest*
13376 fi
13377
13378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13379   echo "$ac_t""yes" 1>&6
13380     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13381   cat >> confdefs.h <<EOF
13382 #define $ac_tr_func 1
13383 EOF
13384  
13385 else
13386   echo "$ac_t""no" 1>&6
13387 fi
13388 done
13389     
13390   else
13391     
13392   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13393 echo "configure:13385: checking for _atan2f declaration" >&5
13394   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13395     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13396   echo $ac_n "(cached) $ac_c" 1>&6
13397 else
13398   
13399       
13400       ac_ext=C
13401 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13402 ac_cpp='$CXXCPP $CPPFLAGS'
13403 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13404 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13405 cross_compiling=$ac_cv_prog_cxx_cross
13406
13407       cat > conftest.$ac_ext <<EOF
13408 #line 13400 "configure"
13409 #include "confdefs.h"
13410 #include <math.h>
13411 int main() {
13412  _atan2f(0, 0);
13413 ; return 0; }
13414 EOF
13415 if { (eval echo configure:13407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13416   rm -rf conftest*
13417   glibcpp_cv_func__atan2f_use=yes
13418 else
13419   echo "configure: failed program was:" >&5
13420   cat conftest.$ac_ext >&5
13421   rm -rf conftest*
13422   glibcpp_cv_func__atan2f_use=no
13423 fi
13424 rm -f conftest*
13425       ac_ext=c
13426 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13427 ac_cpp='$CPP $CPPFLAGS'
13428 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13429 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13430 cross_compiling=$ac_cv_prog_cc_cross
13431
13432     
13433 fi
13434
13435   fi
13436   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13437
13438     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13439       for ac_func in _atan2f
13440 do
13441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13442 echo "configure:13434: checking for $ac_func" >&5
13443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13444   echo $ac_n "(cached) $ac_c" 1>&6
13445 else
13446   cat > conftest.$ac_ext <<EOF
13447 #line 13439 "configure"
13448 #include "confdefs.h"
13449 /* System header to define __stub macros and hopefully few prototypes,
13450     which can conflict with char $ac_func(); below.  */
13451 #include <assert.h>
13452 /* Override any gcc2 internal prototype to avoid an error.  */
13453 /* We use char because int might match the return type of a gcc2
13454     builtin and then its argument prototype would still apply.  */
13455 char $ac_func();
13456
13457 int main() {
13458
13459 /* The GNU C library defines this for functions which it implements
13460     to always fail with ENOSYS.  Some functions are actually named
13461     something starting with __ and the normal name is an alias.  */
13462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13463 choke me
13464 #else
13465 $ac_func();
13466 #endif
13467
13468 ; return 0; }
13469 EOF
13470 if { (eval echo configure:13462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13471   rm -rf conftest*
13472   eval "ac_cv_func_$ac_func=yes"
13473 else
13474   echo "configure: failed program was:" >&5
13475   cat conftest.$ac_ext >&5
13476   rm -rf conftest*
13477   eval "ac_cv_func_$ac_func=no"
13478 fi
13479 rm -f conftest*
13480 fi
13481
13482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13483   echo "$ac_t""yes" 1>&6
13484     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13485   cat >> confdefs.h <<EOF
13486 #define $ac_tr_func 1
13487 EOF
13488  
13489 else
13490   echo "$ac_t""no" 1>&6
13491 fi
13492 done
13493     
13494     fi
13495   fi
13496
13497   
13498   
13499   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13500 echo "configure:13492: checking for fabsf declaration" >&5
13501   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13502     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13503   echo $ac_n "(cached) $ac_c" 1>&6
13504 else
13505   
13506       
13507       ac_ext=C
13508 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13509 ac_cpp='$CXXCPP $CPPFLAGS'
13510 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13511 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13512 cross_compiling=$ac_cv_prog_cxx_cross
13513
13514       cat > conftest.$ac_ext <<EOF
13515 #line 13507 "configure"
13516 #include "confdefs.h"
13517 #include <math.h>
13518                       #ifdef HAVE_IEEEFP_H
13519                       #include <ieeefp.h>
13520                       #endif
13521                      
13522 int main() {
13523  fabsf(0);
13524 ; return 0; }
13525 EOF
13526 if { (eval echo configure:13518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13527   rm -rf conftest*
13528   glibcpp_cv_func_fabsf_use=yes
13529 else
13530   echo "configure: failed program was:" >&5
13531   cat conftest.$ac_ext >&5
13532   rm -rf conftest*
13533   glibcpp_cv_func_fabsf_use=no
13534 fi
13535 rm -f conftest*
13536       ac_ext=c
13537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13538 ac_cpp='$CPP $CPPFLAGS'
13539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13541 cross_compiling=$ac_cv_prog_cc_cross
13542
13543     
13544 fi
13545
13546   fi
13547   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13548
13549   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13550     for ac_func in fabsf
13551 do
13552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13553 echo "configure:13545: checking for $ac_func" >&5
13554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13555   echo $ac_n "(cached) $ac_c" 1>&6
13556 else
13557   cat > conftest.$ac_ext <<EOF
13558 #line 13550 "configure"
13559 #include "confdefs.h"
13560 /* System header to define __stub macros and hopefully few prototypes,
13561     which can conflict with char $ac_func(); below.  */
13562 #include <assert.h>
13563 /* Override any gcc2 internal prototype to avoid an error.  */
13564 /* We use char because int might match the return type of a gcc2
13565     builtin and then its argument prototype would still apply.  */
13566 char $ac_func();
13567
13568 int main() {
13569
13570 /* The GNU C library defines this for functions which it implements
13571     to always fail with ENOSYS.  Some functions are actually named
13572     something starting with __ and the normal name is an alias.  */
13573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13574 choke me
13575 #else
13576 $ac_func();
13577 #endif
13578
13579 ; return 0; }
13580 EOF
13581 if { (eval echo configure:13573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13582   rm -rf conftest*
13583   eval "ac_cv_func_$ac_func=yes"
13584 else
13585   echo "configure: failed program was:" >&5
13586   cat conftest.$ac_ext >&5
13587   rm -rf conftest*
13588   eval "ac_cv_func_$ac_func=no"
13589 fi
13590 rm -f conftest*
13591 fi
13592
13593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13594   echo "$ac_t""yes" 1>&6
13595     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13596   cat >> confdefs.h <<EOF
13597 #define $ac_tr_func 1
13598 EOF
13599  
13600 else
13601   echo "$ac_t""no" 1>&6
13602 fi
13603 done
13604     
13605   else
13606     
13607   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13608 echo "configure:13600: checking for _fabsf declaration" >&5
13609   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13610     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13611   echo $ac_n "(cached) $ac_c" 1>&6
13612 else
13613   
13614       
13615       ac_ext=C
13616 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13617 ac_cpp='$CXXCPP $CPPFLAGS'
13618 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13619 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13620 cross_compiling=$ac_cv_prog_cxx_cross
13621
13622       cat > conftest.$ac_ext <<EOF
13623 #line 13615 "configure"
13624 #include "confdefs.h"
13625 #include <math.h>
13626                       #ifdef HAVE_IEEEFP_H
13627                       #include <ieeefp.h>
13628                       #endif
13629                      
13630 int main() {
13631  _fabsf(0);
13632 ; return 0; }
13633 EOF
13634 if { (eval echo configure:13626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13635   rm -rf conftest*
13636   glibcpp_cv_func__fabsf_use=yes
13637 else
13638   echo "configure: failed program was:" >&5
13639   cat conftest.$ac_ext >&5
13640   rm -rf conftest*
13641   glibcpp_cv_func__fabsf_use=no
13642 fi
13643 rm -f conftest*
13644       ac_ext=c
13645 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13646 ac_cpp='$CPP $CPPFLAGS'
13647 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13648 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13649 cross_compiling=$ac_cv_prog_cc_cross
13650
13651     
13652 fi
13653
13654   fi
13655   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13656
13657     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13658       for ac_func in _fabsf
13659 do
13660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13661 echo "configure:13653: checking for $ac_func" >&5
13662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13663   echo $ac_n "(cached) $ac_c" 1>&6
13664 else
13665   cat > conftest.$ac_ext <<EOF
13666 #line 13658 "configure"
13667 #include "confdefs.h"
13668 /* System header to define __stub macros and hopefully few prototypes,
13669     which can conflict with char $ac_func(); below.  */
13670 #include <assert.h>
13671 /* Override any gcc2 internal prototype to avoid an error.  */
13672 /* We use char because int might match the return type of a gcc2
13673     builtin and then its argument prototype would still apply.  */
13674 char $ac_func();
13675
13676 int main() {
13677
13678 /* The GNU C library defines this for functions which it implements
13679     to always fail with ENOSYS.  Some functions are actually named
13680     something starting with __ and the normal name is an alias.  */
13681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13682 choke me
13683 #else
13684 $ac_func();
13685 #endif
13686
13687 ; return 0; }
13688 EOF
13689 if { (eval echo configure:13681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13690   rm -rf conftest*
13691   eval "ac_cv_func_$ac_func=yes"
13692 else
13693   echo "configure: failed program was:" >&5
13694   cat conftest.$ac_ext >&5
13695   rm -rf conftest*
13696   eval "ac_cv_func_$ac_func=no"
13697 fi
13698 rm -f conftest*
13699 fi
13700
13701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13702   echo "$ac_t""yes" 1>&6
13703     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13704   cat >> confdefs.h <<EOF
13705 #define $ac_tr_func 1
13706 EOF
13707  
13708 else
13709   echo "$ac_t""no" 1>&6
13710 fi
13711 done
13712     
13713     fi
13714   fi
13715
13716   
13717   
13718   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13719 echo "configure:13711: checking for fmodf declaration" >&5
13720   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13721     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13722   echo $ac_n "(cached) $ac_c" 1>&6
13723 else
13724   
13725       
13726       ac_ext=C
13727 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13728 ac_cpp='$CXXCPP $CPPFLAGS'
13729 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13730 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13731 cross_compiling=$ac_cv_prog_cxx_cross
13732
13733       cat > conftest.$ac_ext <<EOF
13734 #line 13726 "configure"
13735 #include "confdefs.h"
13736 #include <math.h>
13737 int main() {
13738  fmodf(0, 0);
13739 ; return 0; }
13740 EOF
13741 if { (eval echo configure:13733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13742   rm -rf conftest*
13743   glibcpp_cv_func_fmodf_use=yes
13744 else
13745   echo "configure: failed program was:" >&5
13746   cat conftest.$ac_ext >&5
13747   rm -rf conftest*
13748   glibcpp_cv_func_fmodf_use=no
13749 fi
13750 rm -f conftest*
13751       ac_ext=c
13752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13753 ac_cpp='$CPP $CPPFLAGS'
13754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13756 cross_compiling=$ac_cv_prog_cc_cross
13757
13758     
13759 fi
13760
13761   fi
13762   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13763
13764   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13765     for ac_func in fmodf
13766 do
13767 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13768 echo "configure:13760: checking for $ac_func" >&5
13769 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13770   echo $ac_n "(cached) $ac_c" 1>&6
13771 else
13772   cat > conftest.$ac_ext <<EOF
13773 #line 13765 "configure"
13774 #include "confdefs.h"
13775 /* System header to define __stub macros and hopefully few prototypes,
13776     which can conflict with char $ac_func(); below.  */
13777 #include <assert.h>
13778 /* Override any gcc2 internal prototype to avoid an error.  */
13779 /* We use char because int might match the return type of a gcc2
13780     builtin and then its argument prototype would still apply.  */
13781 char $ac_func();
13782
13783 int main() {
13784
13785 /* The GNU C library defines this for functions which it implements
13786     to always fail with ENOSYS.  Some functions are actually named
13787     something starting with __ and the normal name is an alias.  */
13788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13789 choke me
13790 #else
13791 $ac_func();
13792 #endif
13793
13794 ; return 0; }
13795 EOF
13796 if { (eval echo configure:13788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13797   rm -rf conftest*
13798   eval "ac_cv_func_$ac_func=yes"
13799 else
13800   echo "configure: failed program was:" >&5
13801   cat conftest.$ac_ext >&5
13802   rm -rf conftest*
13803   eval "ac_cv_func_$ac_func=no"
13804 fi
13805 rm -f conftest*
13806 fi
13807
13808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13809   echo "$ac_t""yes" 1>&6
13810     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13811   cat >> confdefs.h <<EOF
13812 #define $ac_tr_func 1
13813 EOF
13814  
13815 else
13816   echo "$ac_t""no" 1>&6
13817 fi
13818 done
13819     
13820   else
13821     
13822   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13823 echo "configure:13815: checking for _fmodf declaration" >&5
13824   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13825     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13826   echo $ac_n "(cached) $ac_c" 1>&6
13827 else
13828   
13829       
13830       ac_ext=C
13831 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13832 ac_cpp='$CXXCPP $CPPFLAGS'
13833 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13834 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13835 cross_compiling=$ac_cv_prog_cxx_cross
13836
13837       cat > conftest.$ac_ext <<EOF
13838 #line 13830 "configure"
13839 #include "confdefs.h"
13840 #include <math.h>
13841 int main() {
13842  _fmodf(0, 0);
13843 ; return 0; }
13844 EOF
13845 if { (eval echo configure:13837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13846   rm -rf conftest*
13847   glibcpp_cv_func__fmodf_use=yes
13848 else
13849   echo "configure: failed program was:" >&5
13850   cat conftest.$ac_ext >&5
13851   rm -rf conftest*
13852   glibcpp_cv_func__fmodf_use=no
13853 fi
13854 rm -f conftest*
13855       ac_ext=c
13856 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13857 ac_cpp='$CPP $CPPFLAGS'
13858 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13859 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13860 cross_compiling=$ac_cv_prog_cc_cross
13861
13862     
13863 fi
13864
13865   fi
13866   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13867
13868     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13869       for ac_func in _fmodf
13870 do
13871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13872 echo "configure:13864: checking for $ac_func" >&5
13873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13874   echo $ac_n "(cached) $ac_c" 1>&6
13875 else
13876   cat > conftest.$ac_ext <<EOF
13877 #line 13869 "configure"
13878 #include "confdefs.h"
13879 /* System header to define __stub macros and hopefully few prototypes,
13880     which can conflict with char $ac_func(); below.  */
13881 #include <assert.h>
13882 /* Override any gcc2 internal prototype to avoid an error.  */
13883 /* We use char because int might match the return type of a gcc2
13884     builtin and then its argument prototype would still apply.  */
13885 char $ac_func();
13886
13887 int main() {
13888
13889 /* The GNU C library defines this for functions which it implements
13890     to always fail with ENOSYS.  Some functions are actually named
13891     something starting with __ and the normal name is an alias.  */
13892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13893 choke me
13894 #else
13895 $ac_func();
13896 #endif
13897
13898 ; return 0; }
13899 EOF
13900 if { (eval echo configure:13892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13901   rm -rf conftest*
13902   eval "ac_cv_func_$ac_func=yes"
13903 else
13904   echo "configure: failed program was:" >&5
13905   cat conftest.$ac_ext >&5
13906   rm -rf conftest*
13907   eval "ac_cv_func_$ac_func=no"
13908 fi
13909 rm -f conftest*
13910 fi
13911
13912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13913   echo "$ac_t""yes" 1>&6
13914     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13915   cat >> confdefs.h <<EOF
13916 #define $ac_tr_func 1
13917 EOF
13918  
13919 else
13920   echo "$ac_t""no" 1>&6
13921 fi
13922 done
13923     
13924     fi
13925   fi
13926
13927   
13928   
13929   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13930 echo "configure:13922: checking for frexpf declaration" >&5
13931   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
13932     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
13933   echo $ac_n "(cached) $ac_c" 1>&6
13934 else
13935   
13936       
13937       ac_ext=C
13938 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13939 ac_cpp='$CXXCPP $CPPFLAGS'
13940 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13941 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13942 cross_compiling=$ac_cv_prog_cxx_cross
13943
13944       cat > conftest.$ac_ext <<EOF
13945 #line 13937 "configure"
13946 #include "confdefs.h"
13947 #include <math.h>
13948 int main() {
13949  frexpf(0, 0);
13950 ; return 0; }
13951 EOF
13952 if { (eval echo configure:13944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13953   rm -rf conftest*
13954   glibcpp_cv_func_frexpf_use=yes
13955 else
13956   echo "configure: failed program was:" >&5
13957   cat conftest.$ac_ext >&5
13958   rm -rf conftest*
13959   glibcpp_cv_func_frexpf_use=no
13960 fi
13961 rm -f conftest*
13962       ac_ext=c
13963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13964 ac_cpp='$CPP $CPPFLAGS'
13965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13967 cross_compiling=$ac_cv_prog_cc_cross
13968
13969     
13970 fi
13971
13972   fi
13973   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
13974
13975   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
13976     for ac_func in frexpf
13977 do
13978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13979 echo "configure:13971: checking for $ac_func" >&5
13980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13981   echo $ac_n "(cached) $ac_c" 1>&6
13982 else
13983   cat > conftest.$ac_ext <<EOF
13984 #line 13976 "configure"
13985 #include "confdefs.h"
13986 /* System header to define __stub macros and hopefully few prototypes,
13987     which can conflict with char $ac_func(); below.  */
13988 #include <assert.h>
13989 /* Override any gcc2 internal prototype to avoid an error.  */
13990 /* We use char because int might match the return type of a gcc2
13991     builtin and then its argument prototype would still apply.  */
13992 char $ac_func();
13993
13994 int main() {
13995
13996 /* The GNU C library defines this for functions which it implements
13997     to always fail with ENOSYS.  Some functions are actually named
13998     something starting with __ and the normal name is an alias.  */
13999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14000 choke me
14001 #else
14002 $ac_func();
14003 #endif
14004
14005 ; return 0; }
14006 EOF
14007 if { (eval echo configure:13999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14008   rm -rf conftest*
14009   eval "ac_cv_func_$ac_func=yes"
14010 else
14011   echo "configure: failed program was:" >&5
14012   cat conftest.$ac_ext >&5
14013   rm -rf conftest*
14014   eval "ac_cv_func_$ac_func=no"
14015 fi
14016 rm -f conftest*
14017 fi
14018
14019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14020   echo "$ac_t""yes" 1>&6
14021     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14022   cat >> confdefs.h <<EOF
14023 #define $ac_tr_func 1
14024 EOF
14025  
14026 else
14027   echo "$ac_t""no" 1>&6
14028 fi
14029 done
14030     
14031   else
14032     
14033   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14034 echo "configure:14026: checking for _frexpf declaration" >&5
14035   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14036     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14037   echo $ac_n "(cached) $ac_c" 1>&6
14038 else
14039   
14040       
14041       ac_ext=C
14042 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14043 ac_cpp='$CXXCPP $CPPFLAGS'
14044 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14045 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14046 cross_compiling=$ac_cv_prog_cxx_cross
14047
14048       cat > conftest.$ac_ext <<EOF
14049 #line 14041 "configure"
14050 #include "confdefs.h"
14051 #include <math.h>
14052 int main() {
14053  _frexpf(0, 0);
14054 ; return 0; }
14055 EOF
14056 if { (eval echo configure:14048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14057   rm -rf conftest*
14058   glibcpp_cv_func__frexpf_use=yes
14059 else
14060   echo "configure: failed program was:" >&5
14061   cat conftest.$ac_ext >&5
14062   rm -rf conftest*
14063   glibcpp_cv_func__frexpf_use=no
14064 fi
14065 rm -f conftest*
14066       ac_ext=c
14067 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14068 ac_cpp='$CPP $CPPFLAGS'
14069 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14070 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14071 cross_compiling=$ac_cv_prog_cc_cross
14072
14073     
14074 fi
14075
14076   fi
14077   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14078
14079     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14080       for ac_func in _frexpf
14081 do
14082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14083 echo "configure:14075: checking for $ac_func" >&5
14084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14085   echo $ac_n "(cached) $ac_c" 1>&6
14086 else
14087   cat > conftest.$ac_ext <<EOF
14088 #line 14080 "configure"
14089 #include "confdefs.h"
14090 /* System header to define __stub macros and hopefully few prototypes,
14091     which can conflict with char $ac_func(); below.  */
14092 #include <assert.h>
14093 /* Override any gcc2 internal prototype to avoid an error.  */
14094 /* We use char because int might match the return type of a gcc2
14095     builtin and then its argument prototype would still apply.  */
14096 char $ac_func();
14097
14098 int main() {
14099
14100 /* The GNU C library defines this for functions which it implements
14101     to always fail with ENOSYS.  Some functions are actually named
14102     something starting with __ and the normal name is an alias.  */
14103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14104 choke me
14105 #else
14106 $ac_func();
14107 #endif
14108
14109 ; return 0; }
14110 EOF
14111 if { (eval echo configure:14103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14112   rm -rf conftest*
14113   eval "ac_cv_func_$ac_func=yes"
14114 else
14115   echo "configure: failed program was:" >&5
14116   cat conftest.$ac_ext >&5
14117   rm -rf conftest*
14118   eval "ac_cv_func_$ac_func=no"
14119 fi
14120 rm -f conftest*
14121 fi
14122
14123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14124   echo "$ac_t""yes" 1>&6
14125     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14126   cat >> confdefs.h <<EOF
14127 #define $ac_tr_func 1
14128 EOF
14129  
14130 else
14131   echo "$ac_t""no" 1>&6
14132 fi
14133 done
14134     
14135     fi
14136   fi
14137
14138   
14139   
14140   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14141 echo "configure:14133: checking for hypotf declaration" >&5
14142   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14143     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14144   echo $ac_n "(cached) $ac_c" 1>&6
14145 else
14146   
14147       
14148       ac_ext=C
14149 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14150 ac_cpp='$CXXCPP $CPPFLAGS'
14151 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14152 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14153 cross_compiling=$ac_cv_prog_cxx_cross
14154
14155       cat > conftest.$ac_ext <<EOF
14156 #line 14148 "configure"
14157 #include "confdefs.h"
14158 #include <math.h>
14159 int main() {
14160  hypotf(0, 0);
14161 ; return 0; }
14162 EOF
14163 if { (eval echo configure:14155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14164   rm -rf conftest*
14165   glibcpp_cv_func_hypotf_use=yes
14166 else
14167   echo "configure: failed program was:" >&5
14168   cat conftest.$ac_ext >&5
14169   rm -rf conftest*
14170   glibcpp_cv_func_hypotf_use=no
14171 fi
14172 rm -f conftest*
14173       ac_ext=c
14174 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14175 ac_cpp='$CPP $CPPFLAGS'
14176 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14177 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14178 cross_compiling=$ac_cv_prog_cc_cross
14179
14180     
14181 fi
14182
14183   fi
14184   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14185
14186   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14187     for ac_func in hypotf
14188 do
14189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14190 echo "configure:14182: checking for $ac_func" >&5
14191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14192   echo $ac_n "(cached) $ac_c" 1>&6
14193 else
14194   cat > conftest.$ac_ext <<EOF
14195 #line 14187 "configure"
14196 #include "confdefs.h"
14197 /* System header to define __stub macros and hopefully few prototypes,
14198     which can conflict with char $ac_func(); below.  */
14199 #include <assert.h>
14200 /* Override any gcc2 internal prototype to avoid an error.  */
14201 /* We use char because int might match the return type of a gcc2
14202     builtin and then its argument prototype would still apply.  */
14203 char $ac_func();
14204
14205 int main() {
14206
14207 /* The GNU C library defines this for functions which it implements
14208     to always fail with ENOSYS.  Some functions are actually named
14209     something starting with __ and the normal name is an alias.  */
14210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14211 choke me
14212 #else
14213 $ac_func();
14214 #endif
14215
14216 ; return 0; }
14217 EOF
14218 if { (eval echo configure:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14219   rm -rf conftest*
14220   eval "ac_cv_func_$ac_func=yes"
14221 else
14222   echo "configure: failed program was:" >&5
14223   cat conftest.$ac_ext >&5
14224   rm -rf conftest*
14225   eval "ac_cv_func_$ac_func=no"
14226 fi
14227 rm -f conftest*
14228 fi
14229
14230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14231   echo "$ac_t""yes" 1>&6
14232     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14233   cat >> confdefs.h <<EOF
14234 #define $ac_tr_func 1
14235 EOF
14236  
14237 else
14238   echo "$ac_t""no" 1>&6
14239 fi
14240 done
14241     
14242   else
14243     
14244   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14245 echo "configure:14237: checking for _hypotf declaration" >&5
14246   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14247     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14248   echo $ac_n "(cached) $ac_c" 1>&6
14249 else
14250   
14251       
14252       ac_ext=C
14253 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14254 ac_cpp='$CXXCPP $CPPFLAGS'
14255 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14256 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14257 cross_compiling=$ac_cv_prog_cxx_cross
14258
14259       cat > conftest.$ac_ext <<EOF
14260 #line 14252 "configure"
14261 #include "confdefs.h"
14262 #include <math.h>
14263 int main() {
14264  _hypotf(0, 0);
14265 ; return 0; }
14266 EOF
14267 if { (eval echo configure:14259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14268   rm -rf conftest*
14269   glibcpp_cv_func__hypotf_use=yes
14270 else
14271   echo "configure: failed program was:" >&5
14272   cat conftest.$ac_ext >&5
14273   rm -rf conftest*
14274   glibcpp_cv_func__hypotf_use=no
14275 fi
14276 rm -f conftest*
14277       ac_ext=c
14278 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14279 ac_cpp='$CPP $CPPFLAGS'
14280 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14281 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14282 cross_compiling=$ac_cv_prog_cc_cross
14283
14284     
14285 fi
14286
14287   fi
14288   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14289
14290     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14291       for ac_func in _hypotf
14292 do
14293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14294 echo "configure:14286: checking for $ac_func" >&5
14295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14296   echo $ac_n "(cached) $ac_c" 1>&6
14297 else
14298   cat > conftest.$ac_ext <<EOF
14299 #line 14291 "configure"
14300 #include "confdefs.h"
14301 /* System header to define __stub macros and hopefully few prototypes,
14302     which can conflict with char $ac_func(); below.  */
14303 #include <assert.h>
14304 /* Override any gcc2 internal prototype to avoid an error.  */
14305 /* We use char because int might match the return type of a gcc2
14306     builtin and then its argument prototype would still apply.  */
14307 char $ac_func();
14308
14309 int main() {
14310
14311 /* The GNU C library defines this for functions which it implements
14312     to always fail with ENOSYS.  Some functions are actually named
14313     something starting with __ and the normal name is an alias.  */
14314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14315 choke me
14316 #else
14317 $ac_func();
14318 #endif
14319
14320 ; return 0; }
14321 EOF
14322 if { (eval echo configure:14314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14323   rm -rf conftest*
14324   eval "ac_cv_func_$ac_func=yes"
14325 else
14326   echo "configure: failed program was:" >&5
14327   cat conftest.$ac_ext >&5
14328   rm -rf conftest*
14329   eval "ac_cv_func_$ac_func=no"
14330 fi
14331 rm -f conftest*
14332 fi
14333
14334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14335   echo "$ac_t""yes" 1>&6
14336     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14337   cat >> confdefs.h <<EOF
14338 #define $ac_tr_func 1
14339 EOF
14340  
14341 else
14342   echo "$ac_t""no" 1>&6
14343 fi
14344 done
14345     
14346     fi
14347   fi
14348
14349   
14350   
14351   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14352 echo "configure:14344: checking for ldexpf declaration" >&5
14353   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14354     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14355   echo $ac_n "(cached) $ac_c" 1>&6
14356 else
14357   
14358       
14359       ac_ext=C
14360 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14361 ac_cpp='$CXXCPP $CPPFLAGS'
14362 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14363 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14364 cross_compiling=$ac_cv_prog_cxx_cross
14365
14366       cat > conftest.$ac_ext <<EOF
14367 #line 14359 "configure"
14368 #include "confdefs.h"
14369 #include <math.h>
14370 int main() {
14371  ldexpf(0, 0);
14372 ; return 0; }
14373 EOF
14374 if { (eval echo configure:14366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14375   rm -rf conftest*
14376   glibcpp_cv_func_ldexpf_use=yes
14377 else
14378   echo "configure: failed program was:" >&5
14379   cat conftest.$ac_ext >&5
14380   rm -rf conftest*
14381   glibcpp_cv_func_ldexpf_use=no
14382 fi
14383 rm -f conftest*
14384       ac_ext=c
14385 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14386 ac_cpp='$CPP $CPPFLAGS'
14387 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14388 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14389 cross_compiling=$ac_cv_prog_cc_cross
14390
14391     
14392 fi
14393
14394   fi
14395   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14396
14397   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14398     for ac_func in ldexpf
14399 do
14400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14401 echo "configure:14393: checking for $ac_func" >&5
14402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14403   echo $ac_n "(cached) $ac_c" 1>&6
14404 else
14405   cat > conftest.$ac_ext <<EOF
14406 #line 14398 "configure"
14407 #include "confdefs.h"
14408 /* System header to define __stub macros and hopefully few prototypes,
14409     which can conflict with char $ac_func(); below.  */
14410 #include <assert.h>
14411 /* Override any gcc2 internal prototype to avoid an error.  */
14412 /* We use char because int might match the return type of a gcc2
14413     builtin and then its argument prototype would still apply.  */
14414 char $ac_func();
14415
14416 int main() {
14417
14418 /* The GNU C library defines this for functions which it implements
14419     to always fail with ENOSYS.  Some functions are actually named
14420     something starting with __ and the normal name is an alias.  */
14421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14422 choke me
14423 #else
14424 $ac_func();
14425 #endif
14426
14427 ; return 0; }
14428 EOF
14429 if { (eval echo configure:14421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14430   rm -rf conftest*
14431   eval "ac_cv_func_$ac_func=yes"
14432 else
14433   echo "configure: failed program was:" >&5
14434   cat conftest.$ac_ext >&5
14435   rm -rf conftest*
14436   eval "ac_cv_func_$ac_func=no"
14437 fi
14438 rm -f conftest*
14439 fi
14440
14441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14442   echo "$ac_t""yes" 1>&6
14443     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14444   cat >> confdefs.h <<EOF
14445 #define $ac_tr_func 1
14446 EOF
14447  
14448 else
14449   echo "$ac_t""no" 1>&6
14450 fi
14451 done
14452     
14453   else
14454     
14455   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14456 echo "configure:14448: checking for _ldexpf declaration" >&5
14457   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14458     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14459   echo $ac_n "(cached) $ac_c" 1>&6
14460 else
14461   
14462       
14463       ac_ext=C
14464 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14465 ac_cpp='$CXXCPP $CPPFLAGS'
14466 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14467 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14468 cross_compiling=$ac_cv_prog_cxx_cross
14469
14470       cat > conftest.$ac_ext <<EOF
14471 #line 14463 "configure"
14472 #include "confdefs.h"
14473 #include <math.h>
14474 int main() {
14475  _ldexpf(0, 0);
14476 ; return 0; }
14477 EOF
14478 if { (eval echo configure:14470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14479   rm -rf conftest*
14480   glibcpp_cv_func__ldexpf_use=yes
14481 else
14482   echo "configure: failed program was:" >&5
14483   cat conftest.$ac_ext >&5
14484   rm -rf conftest*
14485   glibcpp_cv_func__ldexpf_use=no
14486 fi
14487 rm -f conftest*
14488       ac_ext=c
14489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14490 ac_cpp='$CPP $CPPFLAGS'
14491 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14492 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14493 cross_compiling=$ac_cv_prog_cc_cross
14494
14495     
14496 fi
14497
14498   fi
14499   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14500
14501     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14502       for ac_func in _ldexpf
14503 do
14504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14505 echo "configure:14497: checking for $ac_func" >&5
14506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14507   echo $ac_n "(cached) $ac_c" 1>&6
14508 else
14509   cat > conftest.$ac_ext <<EOF
14510 #line 14502 "configure"
14511 #include "confdefs.h"
14512 /* System header to define __stub macros and hopefully few prototypes,
14513     which can conflict with char $ac_func(); below.  */
14514 #include <assert.h>
14515 /* Override any gcc2 internal prototype to avoid an error.  */
14516 /* We use char because int might match the return type of a gcc2
14517     builtin and then its argument prototype would still apply.  */
14518 char $ac_func();
14519
14520 int main() {
14521
14522 /* The GNU C library defines this for functions which it implements
14523     to always fail with ENOSYS.  Some functions are actually named
14524     something starting with __ and the normal name is an alias.  */
14525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14526 choke me
14527 #else
14528 $ac_func();
14529 #endif
14530
14531 ; return 0; }
14532 EOF
14533 if { (eval echo configure:14525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14534   rm -rf conftest*
14535   eval "ac_cv_func_$ac_func=yes"
14536 else
14537   echo "configure: failed program was:" >&5
14538   cat conftest.$ac_ext >&5
14539   rm -rf conftest*
14540   eval "ac_cv_func_$ac_func=no"
14541 fi
14542 rm -f conftest*
14543 fi
14544
14545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14546   echo "$ac_t""yes" 1>&6
14547     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14548   cat >> confdefs.h <<EOF
14549 #define $ac_tr_func 1
14550 EOF
14551  
14552 else
14553   echo "$ac_t""no" 1>&6
14554 fi
14555 done
14556     
14557     fi
14558   fi
14559
14560   
14561   
14562   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14563 echo "configure:14555: checking for logf declaration" >&5
14564   if test x${glibcpp_cv_func_logf_use+set} != xset; then
14565     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14566   echo $ac_n "(cached) $ac_c" 1>&6
14567 else
14568   
14569       
14570       ac_ext=C
14571 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14572 ac_cpp='$CXXCPP $CPPFLAGS'
14573 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14574 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14575 cross_compiling=$ac_cv_prog_cxx_cross
14576
14577       cat > conftest.$ac_ext <<EOF
14578 #line 14570 "configure"
14579 #include "confdefs.h"
14580 #include <math.h>
14581                       #ifdef HAVE_IEEEFP_H
14582                       #include <ieeefp.h>
14583                       #endif
14584                      
14585 int main() {
14586  logf(0);
14587 ; return 0; }
14588 EOF
14589 if { (eval echo configure:14581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14590   rm -rf conftest*
14591   glibcpp_cv_func_logf_use=yes
14592 else
14593   echo "configure: failed program was:" >&5
14594   cat conftest.$ac_ext >&5
14595   rm -rf conftest*
14596   glibcpp_cv_func_logf_use=no
14597 fi
14598 rm -f conftest*
14599       ac_ext=c
14600 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14601 ac_cpp='$CPP $CPPFLAGS'
14602 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14603 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14604 cross_compiling=$ac_cv_prog_cc_cross
14605
14606     
14607 fi
14608
14609   fi
14610   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14611
14612   if test x$glibcpp_cv_func_logf_use = x"yes"; then
14613     for ac_func in logf
14614 do
14615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14616 echo "configure:14608: checking for $ac_func" >&5
14617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14618   echo $ac_n "(cached) $ac_c" 1>&6
14619 else
14620   cat > conftest.$ac_ext <<EOF
14621 #line 14613 "configure"
14622 #include "confdefs.h"
14623 /* System header to define __stub macros and hopefully few prototypes,
14624     which can conflict with char $ac_func(); below.  */
14625 #include <assert.h>
14626 /* Override any gcc2 internal prototype to avoid an error.  */
14627 /* We use char because int might match the return type of a gcc2
14628     builtin and then its argument prototype would still apply.  */
14629 char $ac_func();
14630
14631 int main() {
14632
14633 /* The GNU C library defines this for functions which it implements
14634     to always fail with ENOSYS.  Some functions are actually named
14635     something starting with __ and the normal name is an alias.  */
14636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14637 choke me
14638 #else
14639 $ac_func();
14640 #endif
14641
14642 ; return 0; }
14643 EOF
14644 if { (eval echo configure:14636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14645   rm -rf conftest*
14646   eval "ac_cv_func_$ac_func=yes"
14647 else
14648   echo "configure: failed program was:" >&5
14649   cat conftest.$ac_ext >&5
14650   rm -rf conftest*
14651   eval "ac_cv_func_$ac_func=no"
14652 fi
14653 rm -f conftest*
14654 fi
14655
14656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14657   echo "$ac_t""yes" 1>&6
14658     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14659   cat >> confdefs.h <<EOF
14660 #define $ac_tr_func 1
14661 EOF
14662  
14663 else
14664   echo "$ac_t""no" 1>&6
14665 fi
14666 done
14667     
14668   else
14669     
14670   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14671 echo "configure:14663: checking for _logf declaration" >&5
14672   if test x${glibcpp_cv_func__logf_use+set} != xset; then
14673     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14674   echo $ac_n "(cached) $ac_c" 1>&6
14675 else
14676   
14677       
14678       ac_ext=C
14679 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14680 ac_cpp='$CXXCPP $CPPFLAGS'
14681 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14682 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14683 cross_compiling=$ac_cv_prog_cxx_cross
14684
14685       cat > conftest.$ac_ext <<EOF
14686 #line 14678 "configure"
14687 #include "confdefs.h"
14688 #include <math.h>
14689                       #ifdef HAVE_IEEEFP_H
14690                       #include <ieeefp.h>
14691                       #endif
14692                      
14693 int main() {
14694  _logf(0);
14695 ; return 0; }
14696 EOF
14697 if { (eval echo configure:14689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14698   rm -rf conftest*
14699   glibcpp_cv_func__logf_use=yes
14700 else
14701   echo "configure: failed program was:" >&5
14702   cat conftest.$ac_ext >&5
14703   rm -rf conftest*
14704   glibcpp_cv_func__logf_use=no
14705 fi
14706 rm -f conftest*
14707       ac_ext=c
14708 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14709 ac_cpp='$CPP $CPPFLAGS'
14710 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14711 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14712 cross_compiling=$ac_cv_prog_cc_cross
14713
14714     
14715 fi
14716
14717   fi
14718   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14719
14720     if test x$glibcpp_cv_func__logf_use = x"yes"; then
14721       for ac_func in _logf
14722 do
14723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14724 echo "configure:14716: checking for $ac_func" >&5
14725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14726   echo $ac_n "(cached) $ac_c" 1>&6
14727 else
14728   cat > conftest.$ac_ext <<EOF
14729 #line 14721 "configure"
14730 #include "confdefs.h"
14731 /* System header to define __stub macros and hopefully few prototypes,
14732     which can conflict with char $ac_func(); below.  */
14733 #include <assert.h>
14734 /* Override any gcc2 internal prototype to avoid an error.  */
14735 /* We use char because int might match the return type of a gcc2
14736     builtin and then its argument prototype would still apply.  */
14737 char $ac_func();
14738
14739 int main() {
14740
14741 /* The GNU C library defines this for functions which it implements
14742     to always fail with ENOSYS.  Some functions are actually named
14743     something starting with __ and the normal name is an alias.  */
14744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14745 choke me
14746 #else
14747 $ac_func();
14748 #endif
14749
14750 ; return 0; }
14751 EOF
14752 if { (eval echo configure:14744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14753   rm -rf conftest*
14754   eval "ac_cv_func_$ac_func=yes"
14755 else
14756   echo "configure: failed program was:" >&5
14757   cat conftest.$ac_ext >&5
14758   rm -rf conftest*
14759   eval "ac_cv_func_$ac_func=no"
14760 fi
14761 rm -f conftest*
14762 fi
14763
14764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14765   echo "$ac_t""yes" 1>&6
14766     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14767   cat >> confdefs.h <<EOF
14768 #define $ac_tr_func 1
14769 EOF
14770  
14771 else
14772   echo "$ac_t""no" 1>&6
14773 fi
14774 done
14775     
14776     fi
14777   fi
14778
14779   
14780   
14781   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14782 echo "configure:14774: checking for log10f declaration" >&5
14783   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14784     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14785   echo $ac_n "(cached) $ac_c" 1>&6
14786 else
14787   
14788       
14789       ac_ext=C
14790 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14791 ac_cpp='$CXXCPP $CPPFLAGS'
14792 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14793 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14794 cross_compiling=$ac_cv_prog_cxx_cross
14795
14796       cat > conftest.$ac_ext <<EOF
14797 #line 14789 "configure"
14798 #include "confdefs.h"
14799 #include <math.h>
14800                       #ifdef HAVE_IEEEFP_H
14801                       #include <ieeefp.h>
14802                       #endif
14803                      
14804 int main() {
14805  log10f(0);
14806 ; return 0; }
14807 EOF
14808 if { (eval echo configure:14800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14809   rm -rf conftest*
14810   glibcpp_cv_func_log10f_use=yes
14811 else
14812   echo "configure: failed program was:" >&5
14813   cat conftest.$ac_ext >&5
14814   rm -rf conftest*
14815   glibcpp_cv_func_log10f_use=no
14816 fi
14817 rm -f conftest*
14818       ac_ext=c
14819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14820 ac_cpp='$CPP $CPPFLAGS'
14821 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14822 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14823 cross_compiling=$ac_cv_prog_cc_cross
14824
14825     
14826 fi
14827
14828   fi
14829   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14830
14831   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14832     for ac_func in log10f
14833 do
14834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14835 echo "configure:14827: checking for $ac_func" >&5
14836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14837   echo $ac_n "(cached) $ac_c" 1>&6
14838 else
14839   cat > conftest.$ac_ext <<EOF
14840 #line 14832 "configure"
14841 #include "confdefs.h"
14842 /* System header to define __stub macros and hopefully few prototypes,
14843     which can conflict with char $ac_func(); below.  */
14844 #include <assert.h>
14845 /* Override any gcc2 internal prototype to avoid an error.  */
14846 /* We use char because int might match the return type of a gcc2
14847     builtin and then its argument prototype would still apply.  */
14848 char $ac_func();
14849
14850 int main() {
14851
14852 /* The GNU C library defines this for functions which it implements
14853     to always fail with ENOSYS.  Some functions are actually named
14854     something starting with __ and the normal name is an alias.  */
14855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14856 choke me
14857 #else
14858 $ac_func();
14859 #endif
14860
14861 ; return 0; }
14862 EOF
14863 if { (eval echo configure:14855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14864   rm -rf conftest*
14865   eval "ac_cv_func_$ac_func=yes"
14866 else
14867   echo "configure: failed program was:" >&5
14868   cat conftest.$ac_ext >&5
14869   rm -rf conftest*
14870   eval "ac_cv_func_$ac_func=no"
14871 fi
14872 rm -f conftest*
14873 fi
14874
14875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14876   echo "$ac_t""yes" 1>&6
14877     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14878   cat >> confdefs.h <<EOF
14879 #define $ac_tr_func 1
14880 EOF
14881  
14882 else
14883   echo "$ac_t""no" 1>&6
14884 fi
14885 done
14886     
14887   else
14888     
14889   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14890 echo "configure:14882: checking for _log10f declaration" >&5
14891   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14892     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14893   echo $ac_n "(cached) $ac_c" 1>&6
14894 else
14895   
14896       
14897       ac_ext=C
14898 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14899 ac_cpp='$CXXCPP $CPPFLAGS'
14900 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14901 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14902 cross_compiling=$ac_cv_prog_cxx_cross
14903
14904       cat > conftest.$ac_ext <<EOF
14905 #line 14897 "configure"
14906 #include "confdefs.h"
14907 #include <math.h>
14908                       #ifdef HAVE_IEEEFP_H
14909                       #include <ieeefp.h>
14910                       #endif
14911                      
14912 int main() {
14913  _log10f(0);
14914 ; return 0; }
14915 EOF
14916 if { (eval echo configure:14908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14917   rm -rf conftest*
14918   glibcpp_cv_func__log10f_use=yes
14919 else
14920   echo "configure: failed program was:" >&5
14921   cat conftest.$ac_ext >&5
14922   rm -rf conftest*
14923   glibcpp_cv_func__log10f_use=no
14924 fi
14925 rm -f conftest*
14926       ac_ext=c
14927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14928 ac_cpp='$CPP $CPPFLAGS'
14929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14931 cross_compiling=$ac_cv_prog_cc_cross
14932
14933     
14934 fi
14935
14936   fi
14937   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
14938
14939     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
14940       for ac_func in _log10f
14941 do
14942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14943 echo "configure:14935: checking for $ac_func" >&5
14944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14945   echo $ac_n "(cached) $ac_c" 1>&6
14946 else
14947   cat > conftest.$ac_ext <<EOF
14948 #line 14940 "configure"
14949 #include "confdefs.h"
14950 /* System header to define __stub macros and hopefully few prototypes,
14951     which can conflict with char $ac_func(); below.  */
14952 #include <assert.h>
14953 /* Override any gcc2 internal prototype to avoid an error.  */
14954 /* We use char because int might match the return type of a gcc2
14955     builtin and then its argument prototype would still apply.  */
14956 char $ac_func();
14957
14958 int main() {
14959
14960 /* The GNU C library defines this for functions which it implements
14961     to always fail with ENOSYS.  Some functions are actually named
14962     something starting with __ and the normal name is an alias.  */
14963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14964 choke me
14965 #else
14966 $ac_func();
14967 #endif
14968
14969 ; return 0; }
14970 EOF
14971 if { (eval echo configure:14963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14972   rm -rf conftest*
14973   eval "ac_cv_func_$ac_func=yes"
14974 else
14975   echo "configure: failed program was:" >&5
14976   cat conftest.$ac_ext >&5
14977   rm -rf conftest*
14978   eval "ac_cv_func_$ac_func=no"
14979 fi
14980 rm -f conftest*
14981 fi
14982
14983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14984   echo "$ac_t""yes" 1>&6
14985     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14986   cat >> confdefs.h <<EOF
14987 #define $ac_tr_func 1
14988 EOF
14989  
14990 else
14991   echo "$ac_t""no" 1>&6
14992 fi
14993 done
14994     
14995     fi
14996   fi
14997
14998   
14999   
15000   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15001 echo "configure:14993: checking for modff declaration" >&5
15002   if test x${glibcpp_cv_func_modff_use+set} != xset; then
15003     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15004   echo $ac_n "(cached) $ac_c" 1>&6
15005 else
15006   
15007       
15008       ac_ext=C
15009 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15010 ac_cpp='$CXXCPP $CPPFLAGS'
15011 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15012 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15013 cross_compiling=$ac_cv_prog_cxx_cross
15014
15015       cat > conftest.$ac_ext <<EOF
15016 #line 15008 "configure"
15017 #include "confdefs.h"
15018 #include <math.h>
15019 int main() {
15020  modff(0, 0);
15021 ; return 0; }
15022 EOF
15023 if { (eval echo configure:15015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15024   rm -rf conftest*
15025   glibcpp_cv_func_modff_use=yes
15026 else
15027   echo "configure: failed program was:" >&5
15028   cat conftest.$ac_ext >&5
15029   rm -rf conftest*
15030   glibcpp_cv_func_modff_use=no
15031 fi
15032 rm -f conftest*
15033       ac_ext=c
15034 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15035 ac_cpp='$CPP $CPPFLAGS'
15036 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15037 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15038 cross_compiling=$ac_cv_prog_cc_cross
15039
15040     
15041 fi
15042
15043   fi
15044   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15045
15046   if test x$glibcpp_cv_func_modff_use = x"yes"; then
15047     for ac_func in modff
15048 do
15049 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15050 echo "configure:15042: checking for $ac_func" >&5
15051 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15052   echo $ac_n "(cached) $ac_c" 1>&6
15053 else
15054   cat > conftest.$ac_ext <<EOF
15055 #line 15047 "configure"
15056 #include "confdefs.h"
15057 /* System header to define __stub macros and hopefully few prototypes,
15058     which can conflict with char $ac_func(); below.  */
15059 #include <assert.h>
15060 /* Override any gcc2 internal prototype to avoid an error.  */
15061 /* We use char because int might match the return type of a gcc2
15062     builtin and then its argument prototype would still apply.  */
15063 char $ac_func();
15064
15065 int main() {
15066
15067 /* The GNU C library defines this for functions which it implements
15068     to always fail with ENOSYS.  Some functions are actually named
15069     something starting with __ and the normal name is an alias.  */
15070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15071 choke me
15072 #else
15073 $ac_func();
15074 #endif
15075
15076 ; return 0; }
15077 EOF
15078 if { (eval echo configure:15070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15079   rm -rf conftest*
15080   eval "ac_cv_func_$ac_func=yes"
15081 else
15082   echo "configure: failed program was:" >&5
15083   cat conftest.$ac_ext >&5
15084   rm -rf conftest*
15085   eval "ac_cv_func_$ac_func=no"
15086 fi
15087 rm -f conftest*
15088 fi
15089
15090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15091   echo "$ac_t""yes" 1>&6
15092     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15093   cat >> confdefs.h <<EOF
15094 #define $ac_tr_func 1
15095 EOF
15096  
15097 else
15098   echo "$ac_t""no" 1>&6
15099 fi
15100 done
15101     
15102   else
15103     
15104   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15105 echo "configure:15097: checking for _modff declaration" >&5
15106   if test x${glibcpp_cv_func__modff_use+set} != xset; then
15107     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15108   echo $ac_n "(cached) $ac_c" 1>&6
15109 else
15110   
15111       
15112       ac_ext=C
15113 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15114 ac_cpp='$CXXCPP $CPPFLAGS'
15115 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15116 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15117 cross_compiling=$ac_cv_prog_cxx_cross
15118
15119       cat > conftest.$ac_ext <<EOF
15120 #line 15112 "configure"
15121 #include "confdefs.h"
15122 #include <math.h>
15123 int main() {
15124  _modff(0, 0);
15125 ; return 0; }
15126 EOF
15127 if { (eval echo configure:15119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15128   rm -rf conftest*
15129   glibcpp_cv_func__modff_use=yes
15130 else
15131   echo "configure: failed program was:" >&5
15132   cat conftest.$ac_ext >&5
15133   rm -rf conftest*
15134   glibcpp_cv_func__modff_use=no
15135 fi
15136 rm -f conftest*
15137       ac_ext=c
15138 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15139 ac_cpp='$CPP $CPPFLAGS'
15140 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15141 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15142 cross_compiling=$ac_cv_prog_cc_cross
15143
15144     
15145 fi
15146
15147   fi
15148   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15149
15150     if test x$glibcpp_cv_func__modff_use = x"yes"; then
15151       for ac_func in _modff
15152 do
15153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15154 echo "configure:15146: checking for $ac_func" >&5
15155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15156   echo $ac_n "(cached) $ac_c" 1>&6
15157 else
15158   cat > conftest.$ac_ext <<EOF
15159 #line 15151 "configure"
15160 #include "confdefs.h"
15161 /* System header to define __stub macros and hopefully few prototypes,
15162     which can conflict with char $ac_func(); below.  */
15163 #include <assert.h>
15164 /* Override any gcc2 internal prototype to avoid an error.  */
15165 /* We use char because int might match the return type of a gcc2
15166     builtin and then its argument prototype would still apply.  */
15167 char $ac_func();
15168
15169 int main() {
15170
15171 /* The GNU C library defines this for functions which it implements
15172     to always fail with ENOSYS.  Some functions are actually named
15173     something starting with __ and the normal name is an alias.  */
15174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15175 choke me
15176 #else
15177 $ac_func();
15178 #endif
15179
15180 ; return 0; }
15181 EOF
15182 if { (eval echo configure:15174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15183   rm -rf conftest*
15184   eval "ac_cv_func_$ac_func=yes"
15185 else
15186   echo "configure: failed program was:" >&5
15187   cat conftest.$ac_ext >&5
15188   rm -rf conftest*
15189   eval "ac_cv_func_$ac_func=no"
15190 fi
15191 rm -f conftest*
15192 fi
15193
15194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15195   echo "$ac_t""yes" 1>&6
15196     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15197   cat >> confdefs.h <<EOF
15198 #define $ac_tr_func 1
15199 EOF
15200  
15201 else
15202   echo "$ac_t""no" 1>&6
15203 fi
15204 done
15205     
15206     fi
15207   fi
15208
15209   
15210   
15211   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15212 echo "configure:15204: checking for powf declaration" >&5
15213   if test x${glibcpp_cv_func_powf_use+set} != xset; then
15214     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15215   echo $ac_n "(cached) $ac_c" 1>&6
15216 else
15217   
15218       
15219       ac_ext=C
15220 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15221 ac_cpp='$CXXCPP $CPPFLAGS'
15222 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15223 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15224 cross_compiling=$ac_cv_prog_cxx_cross
15225
15226       cat > conftest.$ac_ext <<EOF
15227 #line 15219 "configure"
15228 #include "confdefs.h"
15229 #include <math.h>
15230 int main() {
15231  powf(0, 0);
15232 ; return 0; }
15233 EOF
15234 if { (eval echo configure:15226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15235   rm -rf conftest*
15236   glibcpp_cv_func_powf_use=yes
15237 else
15238   echo "configure: failed program was:" >&5
15239   cat conftest.$ac_ext >&5
15240   rm -rf conftest*
15241   glibcpp_cv_func_powf_use=no
15242 fi
15243 rm -f conftest*
15244       ac_ext=c
15245 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15246 ac_cpp='$CPP $CPPFLAGS'
15247 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15248 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15249 cross_compiling=$ac_cv_prog_cc_cross
15250
15251     
15252 fi
15253
15254   fi
15255   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15256
15257   if test x$glibcpp_cv_func_powf_use = x"yes"; then
15258     for ac_func in powf
15259 do
15260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15261 echo "configure:15253: checking for $ac_func" >&5
15262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15263   echo $ac_n "(cached) $ac_c" 1>&6
15264 else
15265   cat > conftest.$ac_ext <<EOF
15266 #line 15258 "configure"
15267 #include "confdefs.h"
15268 /* System header to define __stub macros and hopefully few prototypes,
15269     which can conflict with char $ac_func(); below.  */
15270 #include <assert.h>
15271 /* Override any gcc2 internal prototype to avoid an error.  */
15272 /* We use char because int might match the return type of a gcc2
15273     builtin and then its argument prototype would still apply.  */
15274 char $ac_func();
15275
15276 int main() {
15277
15278 /* The GNU C library defines this for functions which it implements
15279     to always fail with ENOSYS.  Some functions are actually named
15280     something starting with __ and the normal name is an alias.  */
15281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15282 choke me
15283 #else
15284 $ac_func();
15285 #endif
15286
15287 ; return 0; }
15288 EOF
15289 if { (eval echo configure:15281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15290   rm -rf conftest*
15291   eval "ac_cv_func_$ac_func=yes"
15292 else
15293   echo "configure: failed program was:" >&5
15294   cat conftest.$ac_ext >&5
15295   rm -rf conftest*
15296   eval "ac_cv_func_$ac_func=no"
15297 fi
15298 rm -f conftest*
15299 fi
15300
15301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15302   echo "$ac_t""yes" 1>&6
15303     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15304   cat >> confdefs.h <<EOF
15305 #define $ac_tr_func 1
15306 EOF
15307  
15308 else
15309   echo "$ac_t""no" 1>&6
15310 fi
15311 done
15312     
15313   else
15314     
15315   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15316 echo "configure:15308: checking for _powf declaration" >&5
15317   if test x${glibcpp_cv_func__powf_use+set} != xset; then
15318     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15319   echo $ac_n "(cached) $ac_c" 1>&6
15320 else
15321   
15322       
15323       ac_ext=C
15324 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15325 ac_cpp='$CXXCPP $CPPFLAGS'
15326 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15327 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15328 cross_compiling=$ac_cv_prog_cxx_cross
15329
15330       cat > conftest.$ac_ext <<EOF
15331 #line 15323 "configure"
15332 #include "confdefs.h"
15333 #include <math.h>
15334 int main() {
15335  _powf(0, 0);
15336 ; return 0; }
15337 EOF
15338 if { (eval echo configure:15330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15339   rm -rf conftest*
15340   glibcpp_cv_func__powf_use=yes
15341 else
15342   echo "configure: failed program was:" >&5
15343   cat conftest.$ac_ext >&5
15344   rm -rf conftest*
15345   glibcpp_cv_func__powf_use=no
15346 fi
15347 rm -f conftest*
15348       ac_ext=c
15349 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15350 ac_cpp='$CPP $CPPFLAGS'
15351 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15352 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15353 cross_compiling=$ac_cv_prog_cc_cross
15354
15355     
15356 fi
15357
15358   fi
15359   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15360
15361     if test x$glibcpp_cv_func__powf_use = x"yes"; then
15362       for ac_func in _powf
15363 do
15364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15365 echo "configure:15357: checking for $ac_func" >&5
15366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15367   echo $ac_n "(cached) $ac_c" 1>&6
15368 else
15369   cat > conftest.$ac_ext <<EOF
15370 #line 15362 "configure"
15371 #include "confdefs.h"
15372 /* System header to define __stub macros and hopefully few prototypes,
15373     which can conflict with char $ac_func(); below.  */
15374 #include <assert.h>
15375 /* Override any gcc2 internal prototype to avoid an error.  */
15376 /* We use char because int might match the return type of a gcc2
15377     builtin and then its argument prototype would still apply.  */
15378 char $ac_func();
15379
15380 int main() {
15381
15382 /* The GNU C library defines this for functions which it implements
15383     to always fail with ENOSYS.  Some functions are actually named
15384     something starting with __ and the normal name is an alias.  */
15385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15386 choke me
15387 #else
15388 $ac_func();
15389 #endif
15390
15391 ; return 0; }
15392 EOF
15393 if { (eval echo configure:15385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15394   rm -rf conftest*
15395   eval "ac_cv_func_$ac_func=yes"
15396 else
15397   echo "configure: failed program was:" >&5
15398   cat conftest.$ac_ext >&5
15399   rm -rf conftest*
15400   eval "ac_cv_func_$ac_func=no"
15401 fi
15402 rm -f conftest*
15403 fi
15404
15405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15406   echo "$ac_t""yes" 1>&6
15407     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15408   cat >> confdefs.h <<EOF
15409 #define $ac_tr_func 1
15410 EOF
15411  
15412 else
15413   echo "$ac_t""no" 1>&6
15414 fi
15415 done
15416     
15417     fi
15418   fi
15419
15420   
15421   
15422   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15423 echo "configure:15415: checking for sqrtf declaration" >&5
15424   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15425     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15426   echo $ac_n "(cached) $ac_c" 1>&6
15427 else
15428   
15429       
15430       ac_ext=C
15431 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15432 ac_cpp='$CXXCPP $CPPFLAGS'
15433 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15434 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15435 cross_compiling=$ac_cv_prog_cxx_cross
15436
15437       cat > conftest.$ac_ext <<EOF
15438 #line 15430 "configure"
15439 #include "confdefs.h"
15440 #include <math.h>
15441                       #ifdef HAVE_IEEEFP_H
15442                       #include <ieeefp.h>
15443                       #endif
15444                      
15445 int main() {
15446  sqrtf(0);
15447 ; return 0; }
15448 EOF
15449 if { (eval echo configure:15441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15450   rm -rf conftest*
15451   glibcpp_cv_func_sqrtf_use=yes
15452 else
15453   echo "configure: failed program was:" >&5
15454   cat conftest.$ac_ext >&5
15455   rm -rf conftest*
15456   glibcpp_cv_func_sqrtf_use=no
15457 fi
15458 rm -f conftest*
15459       ac_ext=c
15460 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15461 ac_cpp='$CPP $CPPFLAGS'
15462 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15463 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15464 cross_compiling=$ac_cv_prog_cc_cross
15465
15466     
15467 fi
15468
15469   fi
15470   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15471
15472   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15473     for ac_func in sqrtf
15474 do
15475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15476 echo "configure:15468: checking for $ac_func" >&5
15477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15478   echo $ac_n "(cached) $ac_c" 1>&6
15479 else
15480   cat > conftest.$ac_ext <<EOF
15481 #line 15473 "configure"
15482 #include "confdefs.h"
15483 /* System header to define __stub macros and hopefully few prototypes,
15484     which can conflict with char $ac_func(); below.  */
15485 #include <assert.h>
15486 /* Override any gcc2 internal prototype to avoid an error.  */
15487 /* We use char because int might match the return type of a gcc2
15488     builtin and then its argument prototype would still apply.  */
15489 char $ac_func();
15490
15491 int main() {
15492
15493 /* The GNU C library defines this for functions which it implements
15494     to always fail with ENOSYS.  Some functions are actually named
15495     something starting with __ and the normal name is an alias.  */
15496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15497 choke me
15498 #else
15499 $ac_func();
15500 #endif
15501
15502 ; return 0; }
15503 EOF
15504 if { (eval echo configure:15496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15505   rm -rf conftest*
15506   eval "ac_cv_func_$ac_func=yes"
15507 else
15508   echo "configure: failed program was:" >&5
15509   cat conftest.$ac_ext >&5
15510   rm -rf conftest*
15511   eval "ac_cv_func_$ac_func=no"
15512 fi
15513 rm -f conftest*
15514 fi
15515
15516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15517   echo "$ac_t""yes" 1>&6
15518     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15519   cat >> confdefs.h <<EOF
15520 #define $ac_tr_func 1
15521 EOF
15522  
15523 else
15524   echo "$ac_t""no" 1>&6
15525 fi
15526 done
15527     
15528   else
15529     
15530   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15531 echo "configure:15523: checking for _sqrtf declaration" >&5
15532   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15533     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15534   echo $ac_n "(cached) $ac_c" 1>&6
15535 else
15536   
15537       
15538       ac_ext=C
15539 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15540 ac_cpp='$CXXCPP $CPPFLAGS'
15541 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15542 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15543 cross_compiling=$ac_cv_prog_cxx_cross
15544
15545       cat > conftest.$ac_ext <<EOF
15546 #line 15538 "configure"
15547 #include "confdefs.h"
15548 #include <math.h>
15549                       #ifdef HAVE_IEEEFP_H
15550                       #include <ieeefp.h>
15551                       #endif
15552                      
15553 int main() {
15554  _sqrtf(0);
15555 ; return 0; }
15556 EOF
15557 if { (eval echo configure:15549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15558   rm -rf conftest*
15559   glibcpp_cv_func__sqrtf_use=yes
15560 else
15561   echo "configure: failed program was:" >&5
15562   cat conftest.$ac_ext >&5
15563   rm -rf conftest*
15564   glibcpp_cv_func__sqrtf_use=no
15565 fi
15566 rm -f conftest*
15567       ac_ext=c
15568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15569 ac_cpp='$CPP $CPPFLAGS'
15570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15572 cross_compiling=$ac_cv_prog_cc_cross
15573
15574     
15575 fi
15576
15577   fi
15578   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15579
15580     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15581       for ac_func in _sqrtf
15582 do
15583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15584 echo "configure:15576: checking for $ac_func" >&5
15585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15586   echo $ac_n "(cached) $ac_c" 1>&6
15587 else
15588   cat > conftest.$ac_ext <<EOF
15589 #line 15581 "configure"
15590 #include "confdefs.h"
15591 /* System header to define __stub macros and hopefully few prototypes,
15592     which can conflict with char $ac_func(); below.  */
15593 #include <assert.h>
15594 /* Override any gcc2 internal prototype to avoid an error.  */
15595 /* We use char because int might match the return type of a gcc2
15596     builtin and then its argument prototype would still apply.  */
15597 char $ac_func();
15598
15599 int main() {
15600
15601 /* The GNU C library defines this for functions which it implements
15602     to always fail with ENOSYS.  Some functions are actually named
15603     something starting with __ and the normal name is an alias.  */
15604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15605 choke me
15606 #else
15607 $ac_func();
15608 #endif
15609
15610 ; return 0; }
15611 EOF
15612 if { (eval echo configure:15604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15613   rm -rf conftest*
15614   eval "ac_cv_func_$ac_func=yes"
15615 else
15616   echo "configure: failed program was:" >&5
15617   cat conftest.$ac_ext >&5
15618   rm -rf conftest*
15619   eval "ac_cv_func_$ac_func=no"
15620 fi
15621 rm -f conftest*
15622 fi
15623
15624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15625   echo "$ac_t""yes" 1>&6
15626     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15627   cat >> confdefs.h <<EOF
15628 #define $ac_tr_func 1
15629 EOF
15630  
15631 else
15632   echo "$ac_t""no" 1>&6
15633 fi
15634 done
15635     
15636     fi
15637   fi
15638
15639   
15640   
15641   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15642 echo "configure:15634: checking for sincosf declaration" >&5
15643   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15644     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15645   echo $ac_n "(cached) $ac_c" 1>&6
15646 else
15647   
15648       
15649       ac_ext=C
15650 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15651 ac_cpp='$CXXCPP $CPPFLAGS'
15652 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15653 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15654 cross_compiling=$ac_cv_prog_cxx_cross
15655
15656       cat > conftest.$ac_ext <<EOF
15657 #line 15649 "configure"
15658 #include "confdefs.h"
15659 #include <math.h>
15660 int main() {
15661  sincosf(0, 0, 0);
15662 ; return 0; }
15663 EOF
15664 if { (eval echo configure:15656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15665   rm -rf conftest*
15666   glibcpp_cv_func_sincosf_use=yes
15667 else
15668   echo "configure: failed program was:" >&5
15669   cat conftest.$ac_ext >&5
15670   rm -rf conftest*
15671   glibcpp_cv_func_sincosf_use=no
15672 fi
15673 rm -f conftest*
15674       ac_ext=c
15675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15676 ac_cpp='$CPP $CPPFLAGS'
15677 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15678 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15679 cross_compiling=$ac_cv_prog_cc_cross
15680
15681     
15682 fi
15683
15684   fi
15685   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15686
15687   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15688     for ac_func in sincosf
15689 do
15690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15691 echo "configure:15683: checking for $ac_func" >&5
15692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15693   echo $ac_n "(cached) $ac_c" 1>&6
15694 else
15695   cat > conftest.$ac_ext <<EOF
15696 #line 15688 "configure"
15697 #include "confdefs.h"
15698 /* System header to define __stub macros and hopefully few prototypes,
15699     which can conflict with char $ac_func(); below.  */
15700 #include <assert.h>
15701 /* Override any gcc2 internal prototype to avoid an error.  */
15702 /* We use char because int might match the return type of a gcc2
15703     builtin and then its argument prototype would still apply.  */
15704 char $ac_func();
15705
15706 int main() {
15707
15708 /* The GNU C library defines this for functions which it implements
15709     to always fail with ENOSYS.  Some functions are actually named
15710     something starting with __ and the normal name is an alias.  */
15711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15712 choke me
15713 #else
15714 $ac_func();
15715 #endif
15716
15717 ; return 0; }
15718 EOF
15719 if { (eval echo configure:15711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15720   rm -rf conftest*
15721   eval "ac_cv_func_$ac_func=yes"
15722 else
15723   echo "configure: failed program was:" >&5
15724   cat conftest.$ac_ext >&5
15725   rm -rf conftest*
15726   eval "ac_cv_func_$ac_func=no"
15727 fi
15728 rm -f conftest*
15729 fi
15730
15731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15732   echo "$ac_t""yes" 1>&6
15733     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15734   cat >> confdefs.h <<EOF
15735 #define $ac_tr_func 1
15736 EOF
15737  
15738 else
15739   echo "$ac_t""no" 1>&6
15740 fi
15741 done
15742     
15743   else
15744     
15745   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15746 echo "configure:15738: checking for _sincosf declaration" >&5
15747   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15748     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15749   echo $ac_n "(cached) $ac_c" 1>&6
15750 else
15751   
15752       
15753       ac_ext=C
15754 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15755 ac_cpp='$CXXCPP $CPPFLAGS'
15756 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15757 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15758 cross_compiling=$ac_cv_prog_cxx_cross
15759
15760       cat > conftest.$ac_ext <<EOF
15761 #line 15753 "configure"
15762 #include "confdefs.h"
15763 #include <math.h>
15764 int main() {
15765  _sincosf(0, 0, 0);
15766 ; return 0; }
15767 EOF
15768 if { (eval echo configure:15760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15769   rm -rf conftest*
15770   glibcpp_cv_func__sincosf_use=yes
15771 else
15772   echo "configure: failed program was:" >&5
15773   cat conftest.$ac_ext >&5
15774   rm -rf conftest*
15775   glibcpp_cv_func__sincosf_use=no
15776 fi
15777 rm -f conftest*
15778       ac_ext=c
15779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15780 ac_cpp='$CPP $CPPFLAGS'
15781 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15782 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15783 cross_compiling=$ac_cv_prog_cc_cross
15784
15785     
15786 fi
15787
15788   fi
15789   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15790
15791     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15792       for ac_func in _sincosf
15793 do
15794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15795 echo "configure:15787: checking for $ac_func" >&5
15796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15797   echo $ac_n "(cached) $ac_c" 1>&6
15798 else
15799   cat > conftest.$ac_ext <<EOF
15800 #line 15792 "configure"
15801 #include "confdefs.h"
15802 /* System header to define __stub macros and hopefully few prototypes,
15803     which can conflict with char $ac_func(); below.  */
15804 #include <assert.h>
15805 /* Override any gcc2 internal prototype to avoid an error.  */
15806 /* We use char because int might match the return type of a gcc2
15807     builtin and then its argument prototype would still apply.  */
15808 char $ac_func();
15809
15810 int main() {
15811
15812 /* The GNU C library defines this for functions which it implements
15813     to always fail with ENOSYS.  Some functions are actually named
15814     something starting with __ and the normal name is an alias.  */
15815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15816 choke me
15817 #else
15818 $ac_func();
15819 #endif
15820
15821 ; return 0; }
15822 EOF
15823 if { (eval echo configure:15815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15824   rm -rf conftest*
15825   eval "ac_cv_func_$ac_func=yes"
15826 else
15827   echo "configure: failed program was:" >&5
15828   cat conftest.$ac_ext >&5
15829   rm -rf conftest*
15830   eval "ac_cv_func_$ac_func=no"
15831 fi
15832 rm -f conftest*
15833 fi
15834
15835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15836   echo "$ac_t""yes" 1>&6
15837     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15838   cat >> confdefs.h <<EOF
15839 #define $ac_tr_func 1
15840 EOF
15841  
15842 else
15843   echo "$ac_t""no" 1>&6
15844 fi
15845 done
15846     
15847     fi
15848   fi
15849
15850   
15851   
15852   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15853 echo "configure:15845: checking for finitef declaration" >&5
15854   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15855     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15856   echo $ac_n "(cached) $ac_c" 1>&6
15857 else
15858   
15859       
15860       ac_ext=C
15861 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15862 ac_cpp='$CXXCPP $CPPFLAGS'
15863 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15864 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15865 cross_compiling=$ac_cv_prog_cxx_cross
15866
15867       cat > conftest.$ac_ext <<EOF
15868 #line 15860 "configure"
15869 #include "confdefs.h"
15870 #include <math.h>
15871                       #ifdef HAVE_IEEEFP_H
15872                       #include <ieeefp.h>
15873                       #endif
15874                      
15875 int main() {
15876  finitef(0);
15877 ; return 0; }
15878 EOF
15879 if { (eval echo configure:15871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15880   rm -rf conftest*
15881   glibcpp_cv_func_finitef_use=yes
15882 else
15883   echo "configure: failed program was:" >&5
15884   cat conftest.$ac_ext >&5
15885   rm -rf conftest*
15886   glibcpp_cv_func_finitef_use=no
15887 fi
15888 rm -f conftest*
15889       ac_ext=c
15890 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15891 ac_cpp='$CPP $CPPFLAGS'
15892 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15893 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15894 cross_compiling=$ac_cv_prog_cc_cross
15895
15896     
15897 fi
15898
15899   fi
15900   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15901
15902   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15903     for ac_func in finitef
15904 do
15905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15906 echo "configure:15898: checking for $ac_func" >&5
15907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15908   echo $ac_n "(cached) $ac_c" 1>&6
15909 else
15910   cat > conftest.$ac_ext <<EOF
15911 #line 15903 "configure"
15912 #include "confdefs.h"
15913 /* System header to define __stub macros and hopefully few prototypes,
15914     which can conflict with char $ac_func(); below.  */
15915 #include <assert.h>
15916 /* Override any gcc2 internal prototype to avoid an error.  */
15917 /* We use char because int might match the return type of a gcc2
15918     builtin and then its argument prototype would still apply.  */
15919 char $ac_func();
15920
15921 int main() {
15922
15923 /* The GNU C library defines this for functions which it implements
15924     to always fail with ENOSYS.  Some functions are actually named
15925     something starting with __ and the normal name is an alias.  */
15926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15927 choke me
15928 #else
15929 $ac_func();
15930 #endif
15931
15932 ; return 0; }
15933 EOF
15934 if { (eval echo configure:15926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15935   rm -rf conftest*
15936   eval "ac_cv_func_$ac_func=yes"
15937 else
15938   echo "configure: failed program was:" >&5
15939   cat conftest.$ac_ext >&5
15940   rm -rf conftest*
15941   eval "ac_cv_func_$ac_func=no"
15942 fi
15943 rm -f conftest*
15944 fi
15945
15946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15947   echo "$ac_t""yes" 1>&6
15948     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15949   cat >> confdefs.h <<EOF
15950 #define $ac_tr_func 1
15951 EOF
15952  
15953 else
15954   echo "$ac_t""no" 1>&6
15955 fi
15956 done
15957     
15958   else
15959     
15960   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
15961 echo "configure:15953: checking for _finitef declaration" >&5
15962   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
15963     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
15964   echo $ac_n "(cached) $ac_c" 1>&6
15965 else
15966   
15967       
15968       ac_ext=C
15969 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15970 ac_cpp='$CXXCPP $CPPFLAGS'
15971 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15972 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15973 cross_compiling=$ac_cv_prog_cxx_cross
15974
15975       cat > conftest.$ac_ext <<EOF
15976 #line 15968 "configure"
15977 #include "confdefs.h"
15978 #include <math.h>
15979                       #ifdef HAVE_IEEEFP_H
15980                       #include <ieeefp.h>
15981                       #endif
15982                      
15983 int main() {
15984  _finitef(0);
15985 ; return 0; }
15986 EOF
15987 if { (eval echo configure:15979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15988   rm -rf conftest*
15989   glibcpp_cv_func__finitef_use=yes
15990 else
15991   echo "configure: failed program was:" >&5
15992   cat conftest.$ac_ext >&5
15993   rm -rf conftest*
15994   glibcpp_cv_func__finitef_use=no
15995 fi
15996 rm -f conftest*
15997       ac_ext=c
15998 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15999 ac_cpp='$CPP $CPPFLAGS'
16000 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16001 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16002 cross_compiling=$ac_cv_prog_cc_cross
16003
16004     
16005 fi
16006
16007   fi
16008   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16009
16010     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16011       for ac_func in _finitef
16012 do
16013 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16014 echo "configure:16006: checking for $ac_func" >&5
16015 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16016   echo $ac_n "(cached) $ac_c" 1>&6
16017 else
16018   cat > conftest.$ac_ext <<EOF
16019 #line 16011 "configure"
16020 #include "confdefs.h"
16021 /* System header to define __stub macros and hopefully few prototypes,
16022     which can conflict with char $ac_func(); below.  */
16023 #include <assert.h>
16024 /* Override any gcc2 internal prototype to avoid an error.  */
16025 /* We use char because int might match the return type of a gcc2
16026     builtin and then its argument prototype would still apply.  */
16027 char $ac_func();
16028
16029 int main() {
16030
16031 /* The GNU C library defines this for functions which it implements
16032     to always fail with ENOSYS.  Some functions are actually named
16033     something starting with __ and the normal name is an alias.  */
16034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16035 choke me
16036 #else
16037 $ac_func();
16038 #endif
16039
16040 ; return 0; }
16041 EOF
16042 if { (eval echo configure:16034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16043   rm -rf conftest*
16044   eval "ac_cv_func_$ac_func=yes"
16045 else
16046   echo "configure: failed program was:" >&5
16047   cat conftest.$ac_ext >&5
16048   rm -rf conftest*
16049   eval "ac_cv_func_$ac_func=no"
16050 fi
16051 rm -f conftest*
16052 fi
16053
16054 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16055   echo "$ac_t""yes" 1>&6
16056     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16057   cat >> confdefs.h <<EOF
16058 #define $ac_tr_func 1
16059 EOF
16060  
16061 else
16062   echo "$ac_t""no" 1>&6
16063 fi
16064 done
16065     
16066     fi
16067   fi
16068
16069
16070     
16071   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16072 echo "configure:16064: checking for long double trig functions" >&5
16073   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16074   echo $ac_n "(cached) $ac_c" 1>&6
16075 else
16076   
16077     
16078     ac_ext=C
16079 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16080 ac_cpp='$CXXCPP $CPPFLAGS'
16081 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16082 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16083 cross_compiling=$ac_cv_prog_cxx_cross
16084
16085     cat > conftest.$ac_ext <<EOF
16086 #line 16078 "configure"
16087 #include "confdefs.h"
16088 #include <math.h>
16089 int main() {
16090  `for x in acosl asinl atanl \
16091                                           cosl sinl tanl \
16092                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
16093 ; return 0; }
16094 EOF
16095 if { (eval echo configure:16087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16096   rm -rf conftest*
16097   glibcpp_cv_func_long_double_trig_use=yes
16098 else
16099   echo "configure: failed program was:" >&5
16100   cat conftest.$ac_ext >&5
16101   rm -rf conftest*
16102   glibcpp_cv_func_long_double_trig_use=no
16103 fi
16104 rm -f conftest*
16105     ac_ext=c
16106 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16107 ac_cpp='$CPP $CPPFLAGS'
16108 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16109 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16110 cross_compiling=$ac_cv_prog_cc_cross
16111
16112 fi
16113
16114   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16115   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16116     for ac_func in acosl asinl atanl \
16117                                           cosl sinl tanl \
16118                                           coshl sinhl tanhl
16119 do
16120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16121 echo "configure:16113: checking for $ac_func" >&5
16122 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16123   echo $ac_n "(cached) $ac_c" 1>&6
16124 else
16125   cat > conftest.$ac_ext <<EOF
16126 #line 16118 "configure"
16127 #include "confdefs.h"
16128 /* System header to define __stub macros and hopefully few prototypes,
16129     which can conflict with char $ac_func(); below.  */
16130 #include <assert.h>
16131 /* Override any gcc2 internal prototype to avoid an error.  */
16132 /* We use char because int might match the return type of a gcc2
16133     builtin and then its argument prototype would still apply.  */
16134 char $ac_func();
16135
16136 int main() {
16137
16138 /* The GNU C library defines this for functions which it implements
16139     to always fail with ENOSYS.  Some functions are actually named
16140     something starting with __ and the normal name is an alias.  */
16141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16142 choke me
16143 #else
16144 $ac_func();
16145 #endif
16146
16147 ; return 0; }
16148 EOF
16149 if { (eval echo configure:16141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16150   rm -rf conftest*
16151   eval "ac_cv_func_$ac_func=yes"
16152 else
16153   echo "configure: failed program was:" >&5
16154   cat conftest.$ac_ext >&5
16155   rm -rf conftest*
16156   eval "ac_cv_func_$ac_func=no"
16157 fi
16158 rm -f conftest*
16159 fi
16160
16161 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16162   echo "$ac_t""yes" 1>&6
16163     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16164   cat >> confdefs.h <<EOF
16165 #define $ac_tr_func 1
16166 EOF
16167  
16168 else
16169   echo "$ac_t""no" 1>&6
16170 fi
16171 done
16172
16173   fi
16174
16175   
16176   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16177 echo "configure:16169: checking for long double round functions" >&5
16178   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16179   echo $ac_n "(cached) $ac_c" 1>&6
16180 else
16181   
16182     
16183     ac_ext=C
16184 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16185 ac_cpp='$CXXCPP $CPPFLAGS'
16186 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16187 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16188 cross_compiling=$ac_cv_prog_cxx_cross
16189
16190     cat > conftest.$ac_ext <<EOF
16191 #line 16183 "configure"
16192 #include "confdefs.h"
16193 #include <math.h>
16194 int main() {
16195  `for x in ceill floorl; do echo "$x (0);"; done` 
16196 ; return 0; }
16197 EOF
16198 if { (eval echo configure:16190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16199   rm -rf conftest*
16200   glibcpp_cv_func_long_double_round_use=yes
16201 else
16202   echo "configure: failed program was:" >&5
16203   cat conftest.$ac_ext >&5
16204   rm -rf conftest*
16205   glibcpp_cv_func_long_double_round_use=no
16206 fi
16207 rm -f conftest*
16208     ac_ext=c
16209 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16210 ac_cpp='$CPP $CPPFLAGS'
16211 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16212 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16213 cross_compiling=$ac_cv_prog_cc_cross
16214
16215 fi
16216
16217   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16218   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16219     for ac_func in ceill floorl
16220 do
16221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16222 echo "configure:16214: checking for $ac_func" >&5
16223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16224   echo $ac_n "(cached) $ac_c" 1>&6
16225 else
16226   cat > conftest.$ac_ext <<EOF
16227 #line 16219 "configure"
16228 #include "confdefs.h"
16229 /* System header to define __stub macros and hopefully few prototypes,
16230     which can conflict with char $ac_func(); below.  */
16231 #include <assert.h>
16232 /* Override any gcc2 internal prototype to avoid an error.  */
16233 /* We use char because int might match the return type of a gcc2
16234     builtin and then its argument prototype would still apply.  */
16235 char $ac_func();
16236
16237 int main() {
16238
16239 /* The GNU C library defines this for functions which it implements
16240     to always fail with ENOSYS.  Some functions are actually named
16241     something starting with __ and the normal name is an alias.  */
16242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16243 choke me
16244 #else
16245 $ac_func();
16246 #endif
16247
16248 ; return 0; }
16249 EOF
16250 if { (eval echo configure:16242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16251   rm -rf conftest*
16252   eval "ac_cv_func_$ac_func=yes"
16253 else
16254   echo "configure: failed program was:" >&5
16255   cat conftest.$ac_ext >&5
16256   rm -rf conftest*
16257   eval "ac_cv_func_$ac_func=no"
16258 fi
16259 rm -f conftest*
16260 fi
16261
16262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16263   echo "$ac_t""yes" 1>&6
16264     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16265   cat >> confdefs.h <<EOF
16266 #define $ac_tr_func 1
16267 EOF
16268  
16269 else
16270   echo "$ac_t""no" 1>&6
16271 fi
16272 done
16273
16274   fi
16275
16276   
16277   
16278   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16279 echo "configure:16271: checking for isnanl declaration" >&5
16280   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16281     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16282   echo $ac_n "(cached) $ac_c" 1>&6
16283 else
16284   
16285       
16286       ac_ext=C
16287 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16288 ac_cpp='$CXXCPP $CPPFLAGS'
16289 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16290 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16291 cross_compiling=$ac_cv_prog_cxx_cross
16292
16293       cat > conftest.$ac_ext <<EOF
16294 #line 16286 "configure"
16295 #include "confdefs.h"
16296 #include <math.h>
16297                       #ifdef HAVE_IEEEFP_H
16298                       #include <ieeefp.h>
16299                       #endif
16300                      
16301 int main() {
16302  isnanl(0);
16303 ; return 0; }
16304 EOF
16305 if { (eval echo configure:16297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16306   rm -rf conftest*
16307   glibcpp_cv_func_isnanl_use=yes
16308 else
16309   echo "configure: failed program was:" >&5
16310   cat conftest.$ac_ext >&5
16311   rm -rf conftest*
16312   glibcpp_cv_func_isnanl_use=no
16313 fi
16314 rm -f conftest*
16315       ac_ext=c
16316 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16317 ac_cpp='$CPP $CPPFLAGS'
16318 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16319 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16320 cross_compiling=$ac_cv_prog_cc_cross
16321
16322     
16323 fi
16324
16325   fi
16326   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16327
16328   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16329     for ac_func in isnanl
16330 do
16331 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16332 echo "configure:16324: checking for $ac_func" >&5
16333 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16334   echo $ac_n "(cached) $ac_c" 1>&6
16335 else
16336   cat > conftest.$ac_ext <<EOF
16337 #line 16329 "configure"
16338 #include "confdefs.h"
16339 /* System header to define __stub macros and hopefully few prototypes,
16340     which can conflict with char $ac_func(); below.  */
16341 #include <assert.h>
16342 /* Override any gcc2 internal prototype to avoid an error.  */
16343 /* We use char because int might match the return type of a gcc2
16344     builtin and then its argument prototype would still apply.  */
16345 char $ac_func();
16346
16347 int main() {
16348
16349 /* The GNU C library defines this for functions which it implements
16350     to always fail with ENOSYS.  Some functions are actually named
16351     something starting with __ and the normal name is an alias.  */
16352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16353 choke me
16354 #else
16355 $ac_func();
16356 #endif
16357
16358 ; return 0; }
16359 EOF
16360 if { (eval echo configure:16352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16361   rm -rf conftest*
16362   eval "ac_cv_func_$ac_func=yes"
16363 else
16364   echo "configure: failed program was:" >&5
16365   cat conftest.$ac_ext >&5
16366   rm -rf conftest*
16367   eval "ac_cv_func_$ac_func=no"
16368 fi
16369 rm -f conftest*
16370 fi
16371
16372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16373   echo "$ac_t""yes" 1>&6
16374     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16375   cat >> confdefs.h <<EOF
16376 #define $ac_tr_func 1
16377 EOF
16378  
16379 else
16380   echo "$ac_t""no" 1>&6
16381 fi
16382 done
16383     
16384   else
16385     
16386   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16387 echo "configure:16379: checking for _isnanl declaration" >&5
16388   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16389     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16390   echo $ac_n "(cached) $ac_c" 1>&6
16391 else
16392   
16393       
16394       ac_ext=C
16395 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16396 ac_cpp='$CXXCPP $CPPFLAGS'
16397 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16398 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16399 cross_compiling=$ac_cv_prog_cxx_cross
16400
16401       cat > conftest.$ac_ext <<EOF
16402 #line 16394 "configure"
16403 #include "confdefs.h"
16404 #include <math.h>
16405                       #ifdef HAVE_IEEEFP_H
16406                       #include <ieeefp.h>
16407                       #endif
16408                      
16409 int main() {
16410  _isnanl(0);
16411 ; return 0; }
16412 EOF
16413 if { (eval echo configure:16405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16414   rm -rf conftest*
16415   glibcpp_cv_func__isnanl_use=yes
16416 else
16417   echo "configure: failed program was:" >&5
16418   cat conftest.$ac_ext >&5
16419   rm -rf conftest*
16420   glibcpp_cv_func__isnanl_use=no
16421 fi
16422 rm -f conftest*
16423       ac_ext=c
16424 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16425 ac_cpp='$CPP $CPPFLAGS'
16426 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16427 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16428 cross_compiling=$ac_cv_prog_cc_cross
16429
16430     
16431 fi
16432
16433   fi
16434   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16435
16436     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16437       for ac_func in _isnanl
16438 do
16439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16440 echo "configure:16432: checking for $ac_func" >&5
16441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16442   echo $ac_n "(cached) $ac_c" 1>&6
16443 else
16444   cat > conftest.$ac_ext <<EOF
16445 #line 16437 "configure"
16446 #include "confdefs.h"
16447 /* System header to define __stub macros and hopefully few prototypes,
16448     which can conflict with char $ac_func(); below.  */
16449 #include <assert.h>
16450 /* Override any gcc2 internal prototype to avoid an error.  */
16451 /* We use char because int might match the return type of a gcc2
16452     builtin and then its argument prototype would still apply.  */
16453 char $ac_func();
16454
16455 int main() {
16456
16457 /* The GNU C library defines this for functions which it implements
16458     to always fail with ENOSYS.  Some functions are actually named
16459     something starting with __ and the normal name is an alias.  */
16460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16461 choke me
16462 #else
16463 $ac_func();
16464 #endif
16465
16466 ; return 0; }
16467 EOF
16468 if { (eval echo configure:16460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16469   rm -rf conftest*
16470   eval "ac_cv_func_$ac_func=yes"
16471 else
16472   echo "configure: failed program was:" >&5
16473   cat conftest.$ac_ext >&5
16474   rm -rf conftest*
16475   eval "ac_cv_func_$ac_func=no"
16476 fi
16477 rm -f conftest*
16478 fi
16479
16480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16481   echo "$ac_t""yes" 1>&6
16482     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16483   cat >> confdefs.h <<EOF
16484 #define $ac_tr_func 1
16485 EOF
16486  
16487 else
16488   echo "$ac_t""no" 1>&6
16489 fi
16490 done
16491     
16492     fi
16493   fi
16494
16495   
16496   
16497   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16498 echo "configure:16490: checking for isinfl declaration" >&5
16499   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16500     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16501   echo $ac_n "(cached) $ac_c" 1>&6
16502 else
16503   
16504       
16505       ac_ext=C
16506 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16507 ac_cpp='$CXXCPP $CPPFLAGS'
16508 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16509 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16510 cross_compiling=$ac_cv_prog_cxx_cross
16511
16512       cat > conftest.$ac_ext <<EOF
16513 #line 16505 "configure"
16514 #include "confdefs.h"
16515 #include <math.h>
16516                       #ifdef HAVE_IEEEFP_H
16517                       #include <ieeefp.h>
16518                       #endif
16519                      
16520 int main() {
16521  isinfl(0);
16522 ; return 0; }
16523 EOF
16524 if { (eval echo configure:16516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16525   rm -rf conftest*
16526   glibcpp_cv_func_isinfl_use=yes
16527 else
16528   echo "configure: failed program was:" >&5
16529   cat conftest.$ac_ext >&5
16530   rm -rf conftest*
16531   glibcpp_cv_func_isinfl_use=no
16532 fi
16533 rm -f conftest*
16534       ac_ext=c
16535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16536 ac_cpp='$CPP $CPPFLAGS'
16537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16539 cross_compiling=$ac_cv_prog_cc_cross
16540
16541     
16542 fi
16543
16544   fi
16545   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16546
16547   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16548     for ac_func in isinfl
16549 do
16550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16551 echo "configure:16543: checking for $ac_func" >&5
16552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16553   echo $ac_n "(cached) $ac_c" 1>&6
16554 else
16555   cat > conftest.$ac_ext <<EOF
16556 #line 16548 "configure"
16557 #include "confdefs.h"
16558 /* System header to define __stub macros and hopefully few prototypes,
16559     which can conflict with char $ac_func(); below.  */
16560 #include <assert.h>
16561 /* Override any gcc2 internal prototype to avoid an error.  */
16562 /* We use char because int might match the return type of a gcc2
16563     builtin and then its argument prototype would still apply.  */
16564 char $ac_func();
16565
16566 int main() {
16567
16568 /* The GNU C library defines this for functions which it implements
16569     to always fail with ENOSYS.  Some functions are actually named
16570     something starting with __ and the normal name is an alias.  */
16571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16572 choke me
16573 #else
16574 $ac_func();
16575 #endif
16576
16577 ; return 0; }
16578 EOF
16579 if { (eval echo configure:16571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16580   rm -rf conftest*
16581   eval "ac_cv_func_$ac_func=yes"
16582 else
16583   echo "configure: failed program was:" >&5
16584   cat conftest.$ac_ext >&5
16585   rm -rf conftest*
16586   eval "ac_cv_func_$ac_func=no"
16587 fi
16588 rm -f conftest*
16589 fi
16590
16591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16592   echo "$ac_t""yes" 1>&6
16593     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16594   cat >> confdefs.h <<EOF
16595 #define $ac_tr_func 1
16596 EOF
16597  
16598 else
16599   echo "$ac_t""no" 1>&6
16600 fi
16601 done
16602     
16603   else
16604     
16605   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16606 echo "configure:16598: checking for _isinfl declaration" >&5
16607   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16608     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16609   echo $ac_n "(cached) $ac_c" 1>&6
16610 else
16611   
16612       
16613       ac_ext=C
16614 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16615 ac_cpp='$CXXCPP $CPPFLAGS'
16616 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16617 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16618 cross_compiling=$ac_cv_prog_cxx_cross
16619
16620       cat > conftest.$ac_ext <<EOF
16621 #line 16613 "configure"
16622 #include "confdefs.h"
16623 #include <math.h>
16624                       #ifdef HAVE_IEEEFP_H
16625                       #include <ieeefp.h>
16626                       #endif
16627                      
16628 int main() {
16629  _isinfl(0);
16630 ; return 0; }
16631 EOF
16632 if { (eval echo configure:16624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16633   rm -rf conftest*
16634   glibcpp_cv_func__isinfl_use=yes
16635 else
16636   echo "configure: failed program was:" >&5
16637   cat conftest.$ac_ext >&5
16638   rm -rf conftest*
16639   glibcpp_cv_func__isinfl_use=no
16640 fi
16641 rm -f conftest*
16642       ac_ext=c
16643 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16644 ac_cpp='$CPP $CPPFLAGS'
16645 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16646 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16647 cross_compiling=$ac_cv_prog_cc_cross
16648
16649     
16650 fi
16651
16652   fi
16653   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16654
16655     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16656       for ac_func in _isinfl
16657 do
16658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16659 echo "configure:16651: checking for $ac_func" >&5
16660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16661   echo $ac_n "(cached) $ac_c" 1>&6
16662 else
16663   cat > conftest.$ac_ext <<EOF
16664 #line 16656 "configure"
16665 #include "confdefs.h"
16666 /* System header to define __stub macros and hopefully few prototypes,
16667     which can conflict with char $ac_func(); below.  */
16668 #include <assert.h>
16669 /* Override any gcc2 internal prototype to avoid an error.  */
16670 /* We use char because int might match the return type of a gcc2
16671     builtin and then its argument prototype would still apply.  */
16672 char $ac_func();
16673
16674 int main() {
16675
16676 /* The GNU C library defines this for functions which it implements
16677     to always fail with ENOSYS.  Some functions are actually named
16678     something starting with __ and the normal name is an alias.  */
16679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16680 choke me
16681 #else
16682 $ac_func();
16683 #endif
16684
16685 ; return 0; }
16686 EOF
16687 if { (eval echo configure:16679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16688   rm -rf conftest*
16689   eval "ac_cv_func_$ac_func=yes"
16690 else
16691   echo "configure: failed program was:" >&5
16692   cat conftest.$ac_ext >&5
16693   rm -rf conftest*
16694   eval "ac_cv_func_$ac_func=no"
16695 fi
16696 rm -f conftest*
16697 fi
16698
16699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16700   echo "$ac_t""yes" 1>&6
16701     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16702   cat >> confdefs.h <<EOF
16703 #define $ac_tr_func 1
16704 EOF
16705  
16706 else
16707   echo "$ac_t""no" 1>&6
16708 fi
16709 done
16710     
16711     fi
16712   fi
16713
16714   
16715   
16716   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16717 echo "configure:16709: checking for copysignl declaration" >&5
16718   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16719     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16720   echo $ac_n "(cached) $ac_c" 1>&6
16721 else
16722   
16723       
16724       ac_ext=C
16725 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16726 ac_cpp='$CXXCPP $CPPFLAGS'
16727 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16728 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16729 cross_compiling=$ac_cv_prog_cxx_cross
16730
16731       cat > conftest.$ac_ext <<EOF
16732 #line 16724 "configure"
16733 #include "confdefs.h"
16734 #include <math.h>
16735 int main() {
16736  copysignl(0, 0);
16737 ; return 0; }
16738 EOF
16739 if { (eval echo configure:16731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16740   rm -rf conftest*
16741   glibcpp_cv_func_copysignl_use=yes
16742 else
16743   echo "configure: failed program was:" >&5
16744   cat conftest.$ac_ext >&5
16745   rm -rf conftest*
16746   glibcpp_cv_func_copysignl_use=no
16747 fi
16748 rm -f conftest*
16749       ac_ext=c
16750 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16751 ac_cpp='$CPP $CPPFLAGS'
16752 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16753 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16754 cross_compiling=$ac_cv_prog_cc_cross
16755
16756     
16757 fi
16758
16759   fi
16760   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16761
16762   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16763     for ac_func in copysignl
16764 do
16765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16766 echo "configure:16758: checking for $ac_func" >&5
16767 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16768   echo $ac_n "(cached) $ac_c" 1>&6
16769 else
16770   cat > conftest.$ac_ext <<EOF
16771 #line 16763 "configure"
16772 #include "confdefs.h"
16773 /* System header to define __stub macros and hopefully few prototypes,
16774     which can conflict with char $ac_func(); below.  */
16775 #include <assert.h>
16776 /* Override any gcc2 internal prototype to avoid an error.  */
16777 /* We use char because int might match the return type of a gcc2
16778     builtin and then its argument prototype would still apply.  */
16779 char $ac_func();
16780
16781 int main() {
16782
16783 /* The GNU C library defines this for functions which it implements
16784     to always fail with ENOSYS.  Some functions are actually named
16785     something starting with __ and the normal name is an alias.  */
16786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16787 choke me
16788 #else
16789 $ac_func();
16790 #endif
16791
16792 ; return 0; }
16793 EOF
16794 if { (eval echo configure:16786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16795   rm -rf conftest*
16796   eval "ac_cv_func_$ac_func=yes"
16797 else
16798   echo "configure: failed program was:" >&5
16799   cat conftest.$ac_ext >&5
16800   rm -rf conftest*
16801   eval "ac_cv_func_$ac_func=no"
16802 fi
16803 rm -f conftest*
16804 fi
16805
16806 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16807   echo "$ac_t""yes" 1>&6
16808     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16809   cat >> confdefs.h <<EOF
16810 #define $ac_tr_func 1
16811 EOF
16812  
16813 else
16814   echo "$ac_t""no" 1>&6
16815 fi
16816 done
16817     
16818   else
16819     
16820   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16821 echo "configure:16813: checking for _copysignl declaration" >&5
16822   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16823     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16824   echo $ac_n "(cached) $ac_c" 1>&6
16825 else
16826   
16827       
16828       ac_ext=C
16829 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16830 ac_cpp='$CXXCPP $CPPFLAGS'
16831 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16832 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16833 cross_compiling=$ac_cv_prog_cxx_cross
16834
16835       cat > conftest.$ac_ext <<EOF
16836 #line 16828 "configure"
16837 #include "confdefs.h"
16838 #include <math.h>
16839 int main() {
16840  _copysignl(0, 0);
16841 ; return 0; }
16842 EOF
16843 if { (eval echo configure:16835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16844   rm -rf conftest*
16845   glibcpp_cv_func__copysignl_use=yes
16846 else
16847   echo "configure: failed program was:" >&5
16848   cat conftest.$ac_ext >&5
16849   rm -rf conftest*
16850   glibcpp_cv_func__copysignl_use=no
16851 fi
16852 rm -f conftest*
16853       ac_ext=c
16854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16855 ac_cpp='$CPP $CPPFLAGS'
16856 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16857 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16858 cross_compiling=$ac_cv_prog_cc_cross
16859
16860     
16861 fi
16862
16863   fi
16864   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16865
16866     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16867       for ac_func in _copysignl
16868 do
16869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16870 echo "configure:16862: checking for $ac_func" >&5
16871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16872   echo $ac_n "(cached) $ac_c" 1>&6
16873 else
16874   cat > conftest.$ac_ext <<EOF
16875 #line 16867 "configure"
16876 #include "confdefs.h"
16877 /* System header to define __stub macros and hopefully few prototypes,
16878     which can conflict with char $ac_func(); below.  */
16879 #include <assert.h>
16880 /* Override any gcc2 internal prototype to avoid an error.  */
16881 /* We use char because int might match the return type of a gcc2
16882     builtin and then its argument prototype would still apply.  */
16883 char $ac_func();
16884
16885 int main() {
16886
16887 /* The GNU C library defines this for functions which it implements
16888     to always fail with ENOSYS.  Some functions are actually named
16889     something starting with __ and the normal name is an alias.  */
16890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16891 choke me
16892 #else
16893 $ac_func();
16894 #endif
16895
16896 ; return 0; }
16897 EOF
16898 if { (eval echo configure:16890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16899   rm -rf conftest*
16900   eval "ac_cv_func_$ac_func=yes"
16901 else
16902   echo "configure: failed program was:" >&5
16903   cat conftest.$ac_ext >&5
16904   rm -rf conftest*
16905   eval "ac_cv_func_$ac_func=no"
16906 fi
16907 rm -f conftest*
16908 fi
16909
16910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16911   echo "$ac_t""yes" 1>&6
16912     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16913   cat >> confdefs.h <<EOF
16914 #define $ac_tr_func 1
16915 EOF
16916  
16917 else
16918   echo "$ac_t""no" 1>&6
16919 fi
16920 done
16921     
16922     fi
16923   fi
16924
16925   
16926   
16927   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16928 echo "configure:16920: checking for atan2l declaration" >&5
16929   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16930     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16931   echo $ac_n "(cached) $ac_c" 1>&6
16932 else
16933   
16934       
16935       ac_ext=C
16936 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16937 ac_cpp='$CXXCPP $CPPFLAGS'
16938 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16939 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16940 cross_compiling=$ac_cv_prog_cxx_cross
16941
16942       cat > conftest.$ac_ext <<EOF
16943 #line 16935 "configure"
16944 #include "confdefs.h"
16945 #include <math.h>
16946 int main() {
16947  atan2l(0, 0);
16948 ; return 0; }
16949 EOF
16950 if { (eval echo configure:16942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16951   rm -rf conftest*
16952   glibcpp_cv_func_atan2l_use=yes
16953 else
16954   echo "configure: failed program was:" >&5
16955   cat conftest.$ac_ext >&5
16956   rm -rf conftest*
16957   glibcpp_cv_func_atan2l_use=no
16958 fi
16959 rm -f conftest*
16960       ac_ext=c
16961 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16962 ac_cpp='$CPP $CPPFLAGS'
16963 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16964 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16965 cross_compiling=$ac_cv_prog_cc_cross
16966
16967     
16968 fi
16969
16970   fi
16971   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
16972
16973   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
16974     for ac_func in atan2l
16975 do
16976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16977 echo "configure:16969: checking for $ac_func" >&5
16978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16979   echo $ac_n "(cached) $ac_c" 1>&6
16980 else
16981   cat > conftest.$ac_ext <<EOF
16982 #line 16974 "configure"
16983 #include "confdefs.h"
16984 /* System header to define __stub macros and hopefully few prototypes,
16985     which can conflict with char $ac_func(); below.  */
16986 #include <assert.h>
16987 /* Override any gcc2 internal prototype to avoid an error.  */
16988 /* We use char because int might match the return type of a gcc2
16989     builtin and then its argument prototype would still apply.  */
16990 char $ac_func();
16991
16992 int main() {
16993
16994 /* The GNU C library defines this for functions which it implements
16995     to always fail with ENOSYS.  Some functions are actually named
16996     something starting with __ and the normal name is an alias.  */
16997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16998 choke me
16999 #else
17000 $ac_func();
17001 #endif
17002
17003 ; return 0; }
17004 EOF
17005 if { (eval echo configure:16997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17006   rm -rf conftest*
17007   eval "ac_cv_func_$ac_func=yes"
17008 else
17009   echo "configure: failed program was:" >&5
17010   cat conftest.$ac_ext >&5
17011   rm -rf conftest*
17012   eval "ac_cv_func_$ac_func=no"
17013 fi
17014 rm -f conftest*
17015 fi
17016
17017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17018   echo "$ac_t""yes" 1>&6
17019     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17020   cat >> confdefs.h <<EOF
17021 #define $ac_tr_func 1
17022 EOF
17023  
17024 else
17025   echo "$ac_t""no" 1>&6
17026 fi
17027 done
17028     
17029   else
17030     
17031   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17032 echo "configure:17024: checking for _atan2l declaration" >&5
17033   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17034     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17035   echo $ac_n "(cached) $ac_c" 1>&6
17036 else
17037   
17038       
17039       ac_ext=C
17040 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17041 ac_cpp='$CXXCPP $CPPFLAGS'
17042 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17043 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17044 cross_compiling=$ac_cv_prog_cxx_cross
17045
17046       cat > conftest.$ac_ext <<EOF
17047 #line 17039 "configure"
17048 #include "confdefs.h"
17049 #include <math.h>
17050 int main() {
17051  _atan2l(0, 0);
17052 ; return 0; }
17053 EOF
17054 if { (eval echo configure:17046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17055   rm -rf conftest*
17056   glibcpp_cv_func__atan2l_use=yes
17057 else
17058   echo "configure: failed program was:" >&5
17059   cat conftest.$ac_ext >&5
17060   rm -rf conftest*
17061   glibcpp_cv_func__atan2l_use=no
17062 fi
17063 rm -f conftest*
17064       ac_ext=c
17065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17066 ac_cpp='$CPP $CPPFLAGS'
17067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17069 cross_compiling=$ac_cv_prog_cc_cross
17070
17071     
17072 fi
17073
17074   fi
17075   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17076
17077     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17078       for ac_func in _atan2l
17079 do
17080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17081 echo "configure:17073: checking for $ac_func" >&5
17082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17083   echo $ac_n "(cached) $ac_c" 1>&6
17084 else
17085   cat > conftest.$ac_ext <<EOF
17086 #line 17078 "configure"
17087 #include "confdefs.h"
17088 /* System header to define __stub macros and hopefully few prototypes,
17089     which can conflict with char $ac_func(); below.  */
17090 #include <assert.h>
17091 /* Override any gcc2 internal prototype to avoid an error.  */
17092 /* We use char because int might match the return type of a gcc2
17093     builtin and then its argument prototype would still apply.  */
17094 char $ac_func();
17095
17096 int main() {
17097
17098 /* The GNU C library defines this for functions which it implements
17099     to always fail with ENOSYS.  Some functions are actually named
17100     something starting with __ and the normal name is an alias.  */
17101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17102 choke me
17103 #else
17104 $ac_func();
17105 #endif
17106
17107 ; return 0; }
17108 EOF
17109 if { (eval echo configure:17101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17110   rm -rf conftest*
17111   eval "ac_cv_func_$ac_func=yes"
17112 else
17113   echo "configure: failed program was:" >&5
17114   cat conftest.$ac_ext >&5
17115   rm -rf conftest*
17116   eval "ac_cv_func_$ac_func=no"
17117 fi
17118 rm -f conftest*
17119 fi
17120
17121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17122   echo "$ac_t""yes" 1>&6
17123     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17124   cat >> confdefs.h <<EOF
17125 #define $ac_tr_func 1
17126 EOF
17127  
17128 else
17129   echo "$ac_t""no" 1>&6
17130 fi
17131 done
17132     
17133     fi
17134   fi
17135
17136   
17137   
17138   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17139 echo "configure:17131: checking for expl declaration" >&5
17140   if test x${glibcpp_cv_func_expl_use+set} != xset; then
17141     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17142   echo $ac_n "(cached) $ac_c" 1>&6
17143 else
17144   
17145       
17146       ac_ext=C
17147 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17148 ac_cpp='$CXXCPP $CPPFLAGS'
17149 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17150 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17151 cross_compiling=$ac_cv_prog_cxx_cross
17152
17153       cat > conftest.$ac_ext <<EOF
17154 #line 17146 "configure"
17155 #include "confdefs.h"
17156 #include <math.h>
17157                       #ifdef HAVE_IEEEFP_H
17158                       #include <ieeefp.h>
17159                       #endif
17160                      
17161 int main() {
17162  expl(0);
17163 ; return 0; }
17164 EOF
17165 if { (eval echo configure:17157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17166   rm -rf conftest*
17167   glibcpp_cv_func_expl_use=yes
17168 else
17169   echo "configure: failed program was:" >&5
17170   cat conftest.$ac_ext >&5
17171   rm -rf conftest*
17172   glibcpp_cv_func_expl_use=no
17173 fi
17174 rm -f conftest*
17175       ac_ext=c
17176 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17177 ac_cpp='$CPP $CPPFLAGS'
17178 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17179 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17180 cross_compiling=$ac_cv_prog_cc_cross
17181
17182     
17183 fi
17184
17185   fi
17186   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17187
17188   if test x$glibcpp_cv_func_expl_use = x"yes"; then
17189     for ac_func in expl
17190 do
17191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17192 echo "configure:17184: checking for $ac_func" >&5
17193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17194   echo $ac_n "(cached) $ac_c" 1>&6
17195 else
17196   cat > conftest.$ac_ext <<EOF
17197 #line 17189 "configure"
17198 #include "confdefs.h"
17199 /* System header to define __stub macros and hopefully few prototypes,
17200     which can conflict with char $ac_func(); below.  */
17201 #include <assert.h>
17202 /* Override any gcc2 internal prototype to avoid an error.  */
17203 /* We use char because int might match the return type of a gcc2
17204     builtin and then its argument prototype would still apply.  */
17205 char $ac_func();
17206
17207 int main() {
17208
17209 /* The GNU C library defines this for functions which it implements
17210     to always fail with ENOSYS.  Some functions are actually named
17211     something starting with __ and the normal name is an alias.  */
17212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17213 choke me
17214 #else
17215 $ac_func();
17216 #endif
17217
17218 ; return 0; }
17219 EOF
17220 if { (eval echo configure:17212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17221   rm -rf conftest*
17222   eval "ac_cv_func_$ac_func=yes"
17223 else
17224   echo "configure: failed program was:" >&5
17225   cat conftest.$ac_ext >&5
17226   rm -rf conftest*
17227   eval "ac_cv_func_$ac_func=no"
17228 fi
17229 rm -f conftest*
17230 fi
17231
17232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17233   echo "$ac_t""yes" 1>&6
17234     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17235   cat >> confdefs.h <<EOF
17236 #define $ac_tr_func 1
17237 EOF
17238  
17239 else
17240   echo "$ac_t""no" 1>&6
17241 fi
17242 done
17243     
17244   else
17245     
17246   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17247 echo "configure:17239: checking for _expl declaration" >&5
17248   if test x${glibcpp_cv_func__expl_use+set} != xset; then
17249     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17250   echo $ac_n "(cached) $ac_c" 1>&6
17251 else
17252   
17253       
17254       ac_ext=C
17255 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17256 ac_cpp='$CXXCPP $CPPFLAGS'
17257 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17258 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17259 cross_compiling=$ac_cv_prog_cxx_cross
17260
17261       cat > conftest.$ac_ext <<EOF
17262 #line 17254 "configure"
17263 #include "confdefs.h"
17264 #include <math.h>
17265                       #ifdef HAVE_IEEEFP_H
17266                       #include <ieeefp.h>
17267                       #endif
17268                      
17269 int main() {
17270  _expl(0);
17271 ; return 0; }
17272 EOF
17273 if { (eval echo configure:17265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17274   rm -rf conftest*
17275   glibcpp_cv_func__expl_use=yes
17276 else
17277   echo "configure: failed program was:" >&5
17278   cat conftest.$ac_ext >&5
17279   rm -rf conftest*
17280   glibcpp_cv_func__expl_use=no
17281 fi
17282 rm -f conftest*
17283       ac_ext=c
17284 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17285 ac_cpp='$CPP $CPPFLAGS'
17286 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17287 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17288 cross_compiling=$ac_cv_prog_cc_cross
17289
17290     
17291 fi
17292
17293   fi
17294   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17295
17296     if test x$glibcpp_cv_func__expl_use = x"yes"; then
17297       for ac_func in _expl
17298 do
17299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17300 echo "configure:17292: checking for $ac_func" >&5
17301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17302   echo $ac_n "(cached) $ac_c" 1>&6
17303 else
17304   cat > conftest.$ac_ext <<EOF
17305 #line 17297 "configure"
17306 #include "confdefs.h"
17307 /* System header to define __stub macros and hopefully few prototypes,
17308     which can conflict with char $ac_func(); below.  */
17309 #include <assert.h>
17310 /* Override any gcc2 internal prototype to avoid an error.  */
17311 /* We use char because int might match the return type of a gcc2
17312     builtin and then its argument prototype would still apply.  */
17313 char $ac_func();
17314
17315 int main() {
17316
17317 /* The GNU C library defines this for functions which it implements
17318     to always fail with ENOSYS.  Some functions are actually named
17319     something starting with __ and the normal name is an alias.  */
17320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17321 choke me
17322 #else
17323 $ac_func();
17324 #endif
17325
17326 ; return 0; }
17327 EOF
17328 if { (eval echo configure:17320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17329   rm -rf conftest*
17330   eval "ac_cv_func_$ac_func=yes"
17331 else
17332   echo "configure: failed program was:" >&5
17333   cat conftest.$ac_ext >&5
17334   rm -rf conftest*
17335   eval "ac_cv_func_$ac_func=no"
17336 fi
17337 rm -f conftest*
17338 fi
17339
17340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17341   echo "$ac_t""yes" 1>&6
17342     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17343   cat >> confdefs.h <<EOF
17344 #define $ac_tr_func 1
17345 EOF
17346  
17347 else
17348   echo "$ac_t""no" 1>&6
17349 fi
17350 done
17351     
17352     fi
17353   fi
17354
17355   
17356   
17357   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17358 echo "configure:17350: checking for fabsl declaration" >&5
17359   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17360     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17361   echo $ac_n "(cached) $ac_c" 1>&6
17362 else
17363   
17364       
17365       ac_ext=C
17366 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17367 ac_cpp='$CXXCPP $CPPFLAGS'
17368 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17369 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17370 cross_compiling=$ac_cv_prog_cxx_cross
17371
17372       cat > conftest.$ac_ext <<EOF
17373 #line 17365 "configure"
17374 #include "confdefs.h"
17375 #include <math.h>
17376                       #ifdef HAVE_IEEEFP_H
17377                       #include <ieeefp.h>
17378                       #endif
17379                      
17380 int main() {
17381  fabsl(0);
17382 ; return 0; }
17383 EOF
17384 if { (eval echo configure:17376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17385   rm -rf conftest*
17386   glibcpp_cv_func_fabsl_use=yes
17387 else
17388   echo "configure: failed program was:" >&5
17389   cat conftest.$ac_ext >&5
17390   rm -rf conftest*
17391   glibcpp_cv_func_fabsl_use=no
17392 fi
17393 rm -f conftest*
17394       ac_ext=c
17395 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17396 ac_cpp='$CPP $CPPFLAGS'
17397 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17398 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17399 cross_compiling=$ac_cv_prog_cc_cross
17400
17401     
17402 fi
17403
17404   fi
17405   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17406
17407   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17408     for ac_func in fabsl
17409 do
17410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17411 echo "configure:17403: checking for $ac_func" >&5
17412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17413   echo $ac_n "(cached) $ac_c" 1>&6
17414 else
17415   cat > conftest.$ac_ext <<EOF
17416 #line 17408 "configure"
17417 #include "confdefs.h"
17418 /* System header to define __stub macros and hopefully few prototypes,
17419     which can conflict with char $ac_func(); below.  */
17420 #include <assert.h>
17421 /* Override any gcc2 internal prototype to avoid an error.  */
17422 /* We use char because int might match the return type of a gcc2
17423     builtin and then its argument prototype would still apply.  */
17424 char $ac_func();
17425
17426 int main() {
17427
17428 /* The GNU C library defines this for functions which it implements
17429     to always fail with ENOSYS.  Some functions are actually named
17430     something starting with __ and the normal name is an alias.  */
17431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17432 choke me
17433 #else
17434 $ac_func();
17435 #endif
17436
17437 ; return 0; }
17438 EOF
17439 if { (eval echo configure:17431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17440   rm -rf conftest*
17441   eval "ac_cv_func_$ac_func=yes"
17442 else
17443   echo "configure: failed program was:" >&5
17444   cat conftest.$ac_ext >&5
17445   rm -rf conftest*
17446   eval "ac_cv_func_$ac_func=no"
17447 fi
17448 rm -f conftest*
17449 fi
17450
17451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17452   echo "$ac_t""yes" 1>&6
17453     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17454   cat >> confdefs.h <<EOF
17455 #define $ac_tr_func 1
17456 EOF
17457  
17458 else
17459   echo "$ac_t""no" 1>&6
17460 fi
17461 done
17462     
17463   else
17464     
17465   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17466 echo "configure:17458: checking for _fabsl declaration" >&5
17467   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17468     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17469   echo $ac_n "(cached) $ac_c" 1>&6
17470 else
17471   
17472       
17473       ac_ext=C
17474 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17475 ac_cpp='$CXXCPP $CPPFLAGS'
17476 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17477 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17478 cross_compiling=$ac_cv_prog_cxx_cross
17479
17480       cat > conftest.$ac_ext <<EOF
17481 #line 17473 "configure"
17482 #include "confdefs.h"
17483 #include <math.h>
17484                       #ifdef HAVE_IEEEFP_H
17485                       #include <ieeefp.h>
17486                       #endif
17487                      
17488 int main() {
17489  _fabsl(0);
17490 ; return 0; }
17491 EOF
17492 if { (eval echo configure:17484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17493   rm -rf conftest*
17494   glibcpp_cv_func__fabsl_use=yes
17495 else
17496   echo "configure: failed program was:" >&5
17497   cat conftest.$ac_ext >&5
17498   rm -rf conftest*
17499   glibcpp_cv_func__fabsl_use=no
17500 fi
17501 rm -f conftest*
17502       ac_ext=c
17503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17504 ac_cpp='$CPP $CPPFLAGS'
17505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17507 cross_compiling=$ac_cv_prog_cc_cross
17508
17509     
17510 fi
17511
17512   fi
17513   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17514
17515     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17516       for ac_func in _fabsl
17517 do
17518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17519 echo "configure:17511: checking for $ac_func" >&5
17520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17521   echo $ac_n "(cached) $ac_c" 1>&6
17522 else
17523   cat > conftest.$ac_ext <<EOF
17524 #line 17516 "configure"
17525 #include "confdefs.h"
17526 /* System header to define __stub macros and hopefully few prototypes,
17527     which can conflict with char $ac_func(); below.  */
17528 #include <assert.h>
17529 /* Override any gcc2 internal prototype to avoid an error.  */
17530 /* We use char because int might match the return type of a gcc2
17531     builtin and then its argument prototype would still apply.  */
17532 char $ac_func();
17533
17534 int main() {
17535
17536 /* The GNU C library defines this for functions which it implements
17537     to always fail with ENOSYS.  Some functions are actually named
17538     something starting with __ and the normal name is an alias.  */
17539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17540 choke me
17541 #else
17542 $ac_func();
17543 #endif
17544
17545 ; return 0; }
17546 EOF
17547 if { (eval echo configure:17539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17548   rm -rf conftest*
17549   eval "ac_cv_func_$ac_func=yes"
17550 else
17551   echo "configure: failed program was:" >&5
17552   cat conftest.$ac_ext >&5
17553   rm -rf conftest*
17554   eval "ac_cv_func_$ac_func=no"
17555 fi
17556 rm -f conftest*
17557 fi
17558
17559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17560   echo "$ac_t""yes" 1>&6
17561     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17562   cat >> confdefs.h <<EOF
17563 #define $ac_tr_func 1
17564 EOF
17565  
17566 else
17567   echo "$ac_t""no" 1>&6
17568 fi
17569 done
17570     
17571     fi
17572   fi
17573
17574   
17575   
17576   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17577 echo "configure:17569: checking for fmodl declaration" >&5
17578   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17579     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17580   echo $ac_n "(cached) $ac_c" 1>&6
17581 else
17582   
17583       
17584       ac_ext=C
17585 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17586 ac_cpp='$CXXCPP $CPPFLAGS'
17587 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17588 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17589 cross_compiling=$ac_cv_prog_cxx_cross
17590
17591       cat > conftest.$ac_ext <<EOF
17592 #line 17584 "configure"
17593 #include "confdefs.h"
17594 #include <math.h>
17595 int main() {
17596  fmodl(0, 0);
17597 ; return 0; }
17598 EOF
17599 if { (eval echo configure:17591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17600   rm -rf conftest*
17601   glibcpp_cv_func_fmodl_use=yes
17602 else
17603   echo "configure: failed program was:" >&5
17604   cat conftest.$ac_ext >&5
17605   rm -rf conftest*
17606   glibcpp_cv_func_fmodl_use=no
17607 fi
17608 rm -f conftest*
17609       ac_ext=c
17610 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17611 ac_cpp='$CPP $CPPFLAGS'
17612 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17613 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17614 cross_compiling=$ac_cv_prog_cc_cross
17615
17616     
17617 fi
17618
17619   fi
17620   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17621
17622   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17623     for ac_func in fmodl
17624 do
17625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17626 echo "configure:17618: checking for $ac_func" >&5
17627 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17628   echo $ac_n "(cached) $ac_c" 1>&6
17629 else
17630   cat > conftest.$ac_ext <<EOF
17631 #line 17623 "configure"
17632 #include "confdefs.h"
17633 /* System header to define __stub macros and hopefully few prototypes,
17634     which can conflict with char $ac_func(); below.  */
17635 #include <assert.h>
17636 /* Override any gcc2 internal prototype to avoid an error.  */
17637 /* We use char because int might match the return type of a gcc2
17638     builtin and then its argument prototype would still apply.  */
17639 char $ac_func();
17640
17641 int main() {
17642
17643 /* The GNU C library defines this for functions which it implements
17644     to always fail with ENOSYS.  Some functions are actually named
17645     something starting with __ and the normal name is an alias.  */
17646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17647 choke me
17648 #else
17649 $ac_func();
17650 #endif
17651
17652 ; return 0; }
17653 EOF
17654 if { (eval echo configure:17646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17655   rm -rf conftest*
17656   eval "ac_cv_func_$ac_func=yes"
17657 else
17658   echo "configure: failed program was:" >&5
17659   cat conftest.$ac_ext >&5
17660   rm -rf conftest*
17661   eval "ac_cv_func_$ac_func=no"
17662 fi
17663 rm -f conftest*
17664 fi
17665
17666 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17667   echo "$ac_t""yes" 1>&6
17668     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17669   cat >> confdefs.h <<EOF
17670 #define $ac_tr_func 1
17671 EOF
17672  
17673 else
17674   echo "$ac_t""no" 1>&6
17675 fi
17676 done
17677     
17678   else
17679     
17680   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17681 echo "configure:17673: checking for _fmodl declaration" >&5
17682   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17683     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17684   echo $ac_n "(cached) $ac_c" 1>&6
17685 else
17686   
17687       
17688       ac_ext=C
17689 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17690 ac_cpp='$CXXCPP $CPPFLAGS'
17691 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17692 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17693 cross_compiling=$ac_cv_prog_cxx_cross
17694
17695       cat > conftest.$ac_ext <<EOF
17696 #line 17688 "configure"
17697 #include "confdefs.h"
17698 #include <math.h>
17699 int main() {
17700  _fmodl(0, 0);
17701 ; return 0; }
17702 EOF
17703 if { (eval echo configure:17695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17704   rm -rf conftest*
17705   glibcpp_cv_func__fmodl_use=yes
17706 else
17707   echo "configure: failed program was:" >&5
17708   cat conftest.$ac_ext >&5
17709   rm -rf conftest*
17710   glibcpp_cv_func__fmodl_use=no
17711 fi
17712 rm -f conftest*
17713       ac_ext=c
17714 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17715 ac_cpp='$CPP $CPPFLAGS'
17716 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17717 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17718 cross_compiling=$ac_cv_prog_cc_cross
17719
17720     
17721 fi
17722
17723   fi
17724   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17725
17726     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17727       for ac_func in _fmodl
17728 do
17729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17730 echo "configure:17722: checking for $ac_func" >&5
17731 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17732   echo $ac_n "(cached) $ac_c" 1>&6
17733 else
17734   cat > conftest.$ac_ext <<EOF
17735 #line 17727 "configure"
17736 #include "confdefs.h"
17737 /* System header to define __stub macros and hopefully few prototypes,
17738     which can conflict with char $ac_func(); below.  */
17739 #include <assert.h>
17740 /* Override any gcc2 internal prototype to avoid an error.  */
17741 /* We use char because int might match the return type of a gcc2
17742     builtin and then its argument prototype would still apply.  */
17743 char $ac_func();
17744
17745 int main() {
17746
17747 /* The GNU C library defines this for functions which it implements
17748     to always fail with ENOSYS.  Some functions are actually named
17749     something starting with __ and the normal name is an alias.  */
17750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17751 choke me
17752 #else
17753 $ac_func();
17754 #endif
17755
17756 ; return 0; }
17757 EOF
17758 if { (eval echo configure:17750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17759   rm -rf conftest*
17760   eval "ac_cv_func_$ac_func=yes"
17761 else
17762   echo "configure: failed program was:" >&5
17763   cat conftest.$ac_ext >&5
17764   rm -rf conftest*
17765   eval "ac_cv_func_$ac_func=no"
17766 fi
17767 rm -f conftest*
17768 fi
17769
17770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17771   echo "$ac_t""yes" 1>&6
17772     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17773   cat >> confdefs.h <<EOF
17774 #define $ac_tr_func 1
17775 EOF
17776  
17777 else
17778   echo "$ac_t""no" 1>&6
17779 fi
17780 done
17781     
17782     fi
17783   fi
17784
17785   
17786   
17787   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17788 echo "configure:17780: checking for frexpl declaration" >&5
17789   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17790     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17791   echo $ac_n "(cached) $ac_c" 1>&6
17792 else
17793   
17794       
17795       ac_ext=C
17796 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17797 ac_cpp='$CXXCPP $CPPFLAGS'
17798 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17799 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17800 cross_compiling=$ac_cv_prog_cxx_cross
17801
17802       cat > conftest.$ac_ext <<EOF
17803 #line 17795 "configure"
17804 #include "confdefs.h"
17805 #include <math.h>
17806 int main() {
17807  frexpl(0, 0);
17808 ; return 0; }
17809 EOF
17810 if { (eval echo configure:17802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17811   rm -rf conftest*
17812   glibcpp_cv_func_frexpl_use=yes
17813 else
17814   echo "configure: failed program was:" >&5
17815   cat conftest.$ac_ext >&5
17816   rm -rf conftest*
17817   glibcpp_cv_func_frexpl_use=no
17818 fi
17819 rm -f conftest*
17820       ac_ext=c
17821 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17822 ac_cpp='$CPP $CPPFLAGS'
17823 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17824 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17825 cross_compiling=$ac_cv_prog_cc_cross
17826
17827     
17828 fi
17829
17830   fi
17831   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17832
17833   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17834     for ac_func in frexpl
17835 do
17836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17837 echo "configure:17829: checking for $ac_func" >&5
17838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17839   echo $ac_n "(cached) $ac_c" 1>&6
17840 else
17841   cat > conftest.$ac_ext <<EOF
17842 #line 17834 "configure"
17843 #include "confdefs.h"
17844 /* System header to define __stub macros and hopefully few prototypes,
17845     which can conflict with char $ac_func(); below.  */
17846 #include <assert.h>
17847 /* Override any gcc2 internal prototype to avoid an error.  */
17848 /* We use char because int might match the return type of a gcc2
17849     builtin and then its argument prototype would still apply.  */
17850 char $ac_func();
17851
17852 int main() {
17853
17854 /* The GNU C library defines this for functions which it implements
17855     to always fail with ENOSYS.  Some functions are actually named
17856     something starting with __ and the normal name is an alias.  */
17857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17858 choke me
17859 #else
17860 $ac_func();
17861 #endif
17862
17863 ; return 0; }
17864 EOF
17865 if { (eval echo configure:17857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17866   rm -rf conftest*
17867   eval "ac_cv_func_$ac_func=yes"
17868 else
17869   echo "configure: failed program was:" >&5
17870   cat conftest.$ac_ext >&5
17871   rm -rf conftest*
17872   eval "ac_cv_func_$ac_func=no"
17873 fi
17874 rm -f conftest*
17875 fi
17876
17877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17878   echo "$ac_t""yes" 1>&6
17879     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17880   cat >> confdefs.h <<EOF
17881 #define $ac_tr_func 1
17882 EOF
17883  
17884 else
17885   echo "$ac_t""no" 1>&6
17886 fi
17887 done
17888     
17889   else
17890     
17891   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17892 echo "configure:17884: checking for _frexpl declaration" >&5
17893   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17894     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17895   echo $ac_n "(cached) $ac_c" 1>&6
17896 else
17897   
17898       
17899       ac_ext=C
17900 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17901 ac_cpp='$CXXCPP $CPPFLAGS'
17902 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17903 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17904 cross_compiling=$ac_cv_prog_cxx_cross
17905
17906       cat > conftest.$ac_ext <<EOF
17907 #line 17899 "configure"
17908 #include "confdefs.h"
17909 #include <math.h>
17910 int main() {
17911  _frexpl(0, 0);
17912 ; return 0; }
17913 EOF
17914 if { (eval echo configure:17906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17915   rm -rf conftest*
17916   glibcpp_cv_func__frexpl_use=yes
17917 else
17918   echo "configure: failed program was:" >&5
17919   cat conftest.$ac_ext >&5
17920   rm -rf conftest*
17921   glibcpp_cv_func__frexpl_use=no
17922 fi
17923 rm -f conftest*
17924       ac_ext=c
17925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17926 ac_cpp='$CPP $CPPFLAGS'
17927 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17928 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17929 cross_compiling=$ac_cv_prog_cc_cross
17930
17931     
17932 fi
17933
17934   fi
17935   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
17936
17937     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
17938       for ac_func in _frexpl
17939 do
17940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17941 echo "configure:17933: checking for $ac_func" >&5
17942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17943   echo $ac_n "(cached) $ac_c" 1>&6
17944 else
17945   cat > conftest.$ac_ext <<EOF
17946 #line 17938 "configure"
17947 #include "confdefs.h"
17948 /* System header to define __stub macros and hopefully few prototypes,
17949     which can conflict with char $ac_func(); below.  */
17950 #include <assert.h>
17951 /* Override any gcc2 internal prototype to avoid an error.  */
17952 /* We use char because int might match the return type of a gcc2
17953     builtin and then its argument prototype would still apply.  */
17954 char $ac_func();
17955
17956 int main() {
17957
17958 /* The GNU C library defines this for functions which it implements
17959     to always fail with ENOSYS.  Some functions are actually named
17960     something starting with __ and the normal name is an alias.  */
17961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17962 choke me
17963 #else
17964 $ac_func();
17965 #endif
17966
17967 ; return 0; }
17968 EOF
17969 if { (eval echo configure:17961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17970   rm -rf conftest*
17971   eval "ac_cv_func_$ac_func=yes"
17972 else
17973   echo "configure: failed program was:" >&5
17974   cat conftest.$ac_ext >&5
17975   rm -rf conftest*
17976   eval "ac_cv_func_$ac_func=no"
17977 fi
17978 rm -f conftest*
17979 fi
17980
17981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17982   echo "$ac_t""yes" 1>&6
17983     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17984   cat >> confdefs.h <<EOF
17985 #define $ac_tr_func 1
17986 EOF
17987  
17988 else
17989   echo "$ac_t""no" 1>&6
17990 fi
17991 done
17992     
17993     fi
17994   fi
17995
17996   
17997   
17998   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
17999 echo "configure:17991: checking for hypotl declaration" >&5
18000   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18001     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18002   echo $ac_n "(cached) $ac_c" 1>&6
18003 else
18004   
18005       
18006       ac_ext=C
18007 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18008 ac_cpp='$CXXCPP $CPPFLAGS'
18009 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18010 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18011 cross_compiling=$ac_cv_prog_cxx_cross
18012
18013       cat > conftest.$ac_ext <<EOF
18014 #line 18006 "configure"
18015 #include "confdefs.h"
18016 #include <math.h>
18017 int main() {
18018  hypotl(0, 0);
18019 ; return 0; }
18020 EOF
18021 if { (eval echo configure:18013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18022   rm -rf conftest*
18023   glibcpp_cv_func_hypotl_use=yes
18024 else
18025   echo "configure: failed program was:" >&5
18026   cat conftest.$ac_ext >&5
18027   rm -rf conftest*
18028   glibcpp_cv_func_hypotl_use=no
18029 fi
18030 rm -f conftest*
18031       ac_ext=c
18032 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18033 ac_cpp='$CPP $CPPFLAGS'
18034 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18035 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18036 cross_compiling=$ac_cv_prog_cc_cross
18037
18038     
18039 fi
18040
18041   fi
18042   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18043
18044   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18045     for ac_func in hypotl
18046 do
18047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18048 echo "configure:18040: checking for $ac_func" >&5
18049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18050   echo $ac_n "(cached) $ac_c" 1>&6
18051 else
18052   cat > conftest.$ac_ext <<EOF
18053 #line 18045 "configure"
18054 #include "confdefs.h"
18055 /* System header to define __stub macros and hopefully few prototypes,
18056     which can conflict with char $ac_func(); below.  */
18057 #include <assert.h>
18058 /* Override any gcc2 internal prototype to avoid an error.  */
18059 /* We use char because int might match the return type of a gcc2
18060     builtin and then its argument prototype would still apply.  */
18061 char $ac_func();
18062
18063 int main() {
18064
18065 /* The GNU C library defines this for functions which it implements
18066     to always fail with ENOSYS.  Some functions are actually named
18067     something starting with __ and the normal name is an alias.  */
18068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18069 choke me
18070 #else
18071 $ac_func();
18072 #endif
18073
18074 ; return 0; }
18075 EOF
18076 if { (eval echo configure:18068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18077   rm -rf conftest*
18078   eval "ac_cv_func_$ac_func=yes"
18079 else
18080   echo "configure: failed program was:" >&5
18081   cat conftest.$ac_ext >&5
18082   rm -rf conftest*
18083   eval "ac_cv_func_$ac_func=no"
18084 fi
18085 rm -f conftest*
18086 fi
18087
18088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18089   echo "$ac_t""yes" 1>&6
18090     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18091   cat >> confdefs.h <<EOF
18092 #define $ac_tr_func 1
18093 EOF
18094  
18095 else
18096   echo "$ac_t""no" 1>&6
18097 fi
18098 done
18099     
18100   else
18101     
18102   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18103 echo "configure:18095: checking for _hypotl declaration" >&5
18104   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18105     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18106   echo $ac_n "(cached) $ac_c" 1>&6
18107 else
18108   
18109       
18110       ac_ext=C
18111 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18112 ac_cpp='$CXXCPP $CPPFLAGS'
18113 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18114 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18115 cross_compiling=$ac_cv_prog_cxx_cross
18116
18117       cat > conftest.$ac_ext <<EOF
18118 #line 18110 "configure"
18119 #include "confdefs.h"
18120 #include <math.h>
18121 int main() {
18122  _hypotl(0, 0);
18123 ; return 0; }
18124 EOF
18125 if { (eval echo configure:18117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18126   rm -rf conftest*
18127   glibcpp_cv_func__hypotl_use=yes
18128 else
18129   echo "configure: failed program was:" >&5
18130   cat conftest.$ac_ext >&5
18131   rm -rf conftest*
18132   glibcpp_cv_func__hypotl_use=no
18133 fi
18134 rm -f conftest*
18135       ac_ext=c
18136 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18137 ac_cpp='$CPP $CPPFLAGS'
18138 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18139 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18140 cross_compiling=$ac_cv_prog_cc_cross
18141
18142     
18143 fi
18144
18145   fi
18146   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18147
18148     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18149       for ac_func in _hypotl
18150 do
18151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18152 echo "configure:18144: checking for $ac_func" >&5
18153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18154   echo $ac_n "(cached) $ac_c" 1>&6
18155 else
18156   cat > conftest.$ac_ext <<EOF
18157 #line 18149 "configure"
18158 #include "confdefs.h"
18159 /* System header to define __stub macros and hopefully few prototypes,
18160     which can conflict with char $ac_func(); below.  */
18161 #include <assert.h>
18162 /* Override any gcc2 internal prototype to avoid an error.  */
18163 /* We use char because int might match the return type of a gcc2
18164     builtin and then its argument prototype would still apply.  */
18165 char $ac_func();
18166
18167 int main() {
18168
18169 /* The GNU C library defines this for functions which it implements
18170     to always fail with ENOSYS.  Some functions are actually named
18171     something starting with __ and the normal name is an alias.  */
18172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18173 choke me
18174 #else
18175 $ac_func();
18176 #endif
18177
18178 ; return 0; }
18179 EOF
18180 if { (eval echo configure:18172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18181   rm -rf conftest*
18182   eval "ac_cv_func_$ac_func=yes"
18183 else
18184   echo "configure: failed program was:" >&5
18185   cat conftest.$ac_ext >&5
18186   rm -rf conftest*
18187   eval "ac_cv_func_$ac_func=no"
18188 fi
18189 rm -f conftest*
18190 fi
18191
18192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18193   echo "$ac_t""yes" 1>&6
18194     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18195   cat >> confdefs.h <<EOF
18196 #define $ac_tr_func 1
18197 EOF
18198  
18199 else
18200   echo "$ac_t""no" 1>&6
18201 fi
18202 done
18203     
18204     fi
18205   fi
18206
18207   
18208   
18209   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18210 echo "configure:18202: checking for ldexpl declaration" >&5
18211   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18212     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18213   echo $ac_n "(cached) $ac_c" 1>&6
18214 else
18215   
18216       
18217       ac_ext=C
18218 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18219 ac_cpp='$CXXCPP $CPPFLAGS'
18220 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18221 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18222 cross_compiling=$ac_cv_prog_cxx_cross
18223
18224       cat > conftest.$ac_ext <<EOF
18225 #line 18217 "configure"
18226 #include "confdefs.h"
18227 #include <math.h>
18228 int main() {
18229  ldexpl(0, 0);
18230 ; return 0; }
18231 EOF
18232 if { (eval echo configure:18224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18233   rm -rf conftest*
18234   glibcpp_cv_func_ldexpl_use=yes
18235 else
18236   echo "configure: failed program was:" >&5
18237   cat conftest.$ac_ext >&5
18238   rm -rf conftest*
18239   glibcpp_cv_func_ldexpl_use=no
18240 fi
18241 rm -f conftest*
18242       ac_ext=c
18243 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18244 ac_cpp='$CPP $CPPFLAGS'
18245 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18246 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18247 cross_compiling=$ac_cv_prog_cc_cross
18248
18249     
18250 fi
18251
18252   fi
18253   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18254
18255   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18256     for ac_func in ldexpl
18257 do
18258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18259 echo "configure:18251: checking for $ac_func" >&5
18260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18261   echo $ac_n "(cached) $ac_c" 1>&6
18262 else
18263   cat > conftest.$ac_ext <<EOF
18264 #line 18256 "configure"
18265 #include "confdefs.h"
18266 /* System header to define __stub macros and hopefully few prototypes,
18267     which can conflict with char $ac_func(); below.  */
18268 #include <assert.h>
18269 /* Override any gcc2 internal prototype to avoid an error.  */
18270 /* We use char because int might match the return type of a gcc2
18271     builtin and then its argument prototype would still apply.  */
18272 char $ac_func();
18273
18274 int main() {
18275
18276 /* The GNU C library defines this for functions which it implements
18277     to always fail with ENOSYS.  Some functions are actually named
18278     something starting with __ and the normal name is an alias.  */
18279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18280 choke me
18281 #else
18282 $ac_func();
18283 #endif
18284
18285 ; return 0; }
18286 EOF
18287 if { (eval echo configure:18279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18288   rm -rf conftest*
18289   eval "ac_cv_func_$ac_func=yes"
18290 else
18291   echo "configure: failed program was:" >&5
18292   cat conftest.$ac_ext >&5
18293   rm -rf conftest*
18294   eval "ac_cv_func_$ac_func=no"
18295 fi
18296 rm -f conftest*
18297 fi
18298
18299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18300   echo "$ac_t""yes" 1>&6
18301     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18302   cat >> confdefs.h <<EOF
18303 #define $ac_tr_func 1
18304 EOF
18305  
18306 else
18307   echo "$ac_t""no" 1>&6
18308 fi
18309 done
18310     
18311   else
18312     
18313   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18314 echo "configure:18306: checking for _ldexpl declaration" >&5
18315   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18316     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18317   echo $ac_n "(cached) $ac_c" 1>&6
18318 else
18319   
18320       
18321       ac_ext=C
18322 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18323 ac_cpp='$CXXCPP $CPPFLAGS'
18324 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18325 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18326 cross_compiling=$ac_cv_prog_cxx_cross
18327
18328       cat > conftest.$ac_ext <<EOF
18329 #line 18321 "configure"
18330 #include "confdefs.h"
18331 #include <math.h>
18332 int main() {
18333  _ldexpl(0, 0);
18334 ; return 0; }
18335 EOF
18336 if { (eval echo configure:18328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18337   rm -rf conftest*
18338   glibcpp_cv_func__ldexpl_use=yes
18339 else
18340   echo "configure: failed program was:" >&5
18341   cat conftest.$ac_ext >&5
18342   rm -rf conftest*
18343   glibcpp_cv_func__ldexpl_use=no
18344 fi
18345 rm -f conftest*
18346       ac_ext=c
18347 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18348 ac_cpp='$CPP $CPPFLAGS'
18349 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18350 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18351 cross_compiling=$ac_cv_prog_cc_cross
18352
18353     
18354 fi
18355
18356   fi
18357   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18358
18359     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18360       for ac_func in _ldexpl
18361 do
18362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18363 echo "configure:18355: checking for $ac_func" >&5
18364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18365   echo $ac_n "(cached) $ac_c" 1>&6
18366 else
18367   cat > conftest.$ac_ext <<EOF
18368 #line 18360 "configure"
18369 #include "confdefs.h"
18370 /* System header to define __stub macros and hopefully few prototypes,
18371     which can conflict with char $ac_func(); below.  */
18372 #include <assert.h>
18373 /* Override any gcc2 internal prototype to avoid an error.  */
18374 /* We use char because int might match the return type of a gcc2
18375     builtin and then its argument prototype would still apply.  */
18376 char $ac_func();
18377
18378 int main() {
18379
18380 /* The GNU C library defines this for functions which it implements
18381     to always fail with ENOSYS.  Some functions are actually named
18382     something starting with __ and the normal name is an alias.  */
18383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18384 choke me
18385 #else
18386 $ac_func();
18387 #endif
18388
18389 ; return 0; }
18390 EOF
18391 if { (eval echo configure:18383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18392   rm -rf conftest*
18393   eval "ac_cv_func_$ac_func=yes"
18394 else
18395   echo "configure: failed program was:" >&5
18396   cat conftest.$ac_ext >&5
18397   rm -rf conftest*
18398   eval "ac_cv_func_$ac_func=no"
18399 fi
18400 rm -f conftest*
18401 fi
18402
18403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18404   echo "$ac_t""yes" 1>&6
18405     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18406   cat >> confdefs.h <<EOF
18407 #define $ac_tr_func 1
18408 EOF
18409  
18410 else
18411   echo "$ac_t""no" 1>&6
18412 fi
18413 done
18414     
18415     fi
18416   fi
18417
18418   
18419   
18420   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18421 echo "configure:18413: checking for logl declaration" >&5
18422   if test x${glibcpp_cv_func_logl_use+set} != xset; then
18423     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18424   echo $ac_n "(cached) $ac_c" 1>&6
18425 else
18426   
18427       
18428       ac_ext=C
18429 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18430 ac_cpp='$CXXCPP $CPPFLAGS'
18431 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18432 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18433 cross_compiling=$ac_cv_prog_cxx_cross
18434
18435       cat > conftest.$ac_ext <<EOF
18436 #line 18428 "configure"
18437 #include "confdefs.h"
18438 #include <math.h>
18439                       #ifdef HAVE_IEEEFP_H
18440                       #include <ieeefp.h>
18441                       #endif
18442                      
18443 int main() {
18444  logl(0);
18445 ; return 0; }
18446 EOF
18447 if { (eval echo configure:18439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18448   rm -rf conftest*
18449   glibcpp_cv_func_logl_use=yes
18450 else
18451   echo "configure: failed program was:" >&5
18452   cat conftest.$ac_ext >&5
18453   rm -rf conftest*
18454   glibcpp_cv_func_logl_use=no
18455 fi
18456 rm -f conftest*
18457       ac_ext=c
18458 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18459 ac_cpp='$CPP $CPPFLAGS'
18460 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18461 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18462 cross_compiling=$ac_cv_prog_cc_cross
18463
18464     
18465 fi
18466
18467   fi
18468   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18469
18470   if test x$glibcpp_cv_func_logl_use = x"yes"; then
18471     for ac_func in logl
18472 do
18473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18474 echo "configure:18466: checking for $ac_func" >&5
18475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18476   echo $ac_n "(cached) $ac_c" 1>&6
18477 else
18478   cat > conftest.$ac_ext <<EOF
18479 #line 18471 "configure"
18480 #include "confdefs.h"
18481 /* System header to define __stub macros and hopefully few prototypes,
18482     which can conflict with char $ac_func(); below.  */
18483 #include <assert.h>
18484 /* Override any gcc2 internal prototype to avoid an error.  */
18485 /* We use char because int might match the return type of a gcc2
18486     builtin and then its argument prototype would still apply.  */
18487 char $ac_func();
18488
18489 int main() {
18490
18491 /* The GNU C library defines this for functions which it implements
18492     to always fail with ENOSYS.  Some functions are actually named
18493     something starting with __ and the normal name is an alias.  */
18494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18495 choke me
18496 #else
18497 $ac_func();
18498 #endif
18499
18500 ; return 0; }
18501 EOF
18502 if { (eval echo configure:18494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18503   rm -rf conftest*
18504   eval "ac_cv_func_$ac_func=yes"
18505 else
18506   echo "configure: failed program was:" >&5
18507   cat conftest.$ac_ext >&5
18508   rm -rf conftest*
18509   eval "ac_cv_func_$ac_func=no"
18510 fi
18511 rm -f conftest*
18512 fi
18513
18514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18515   echo "$ac_t""yes" 1>&6
18516     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18517   cat >> confdefs.h <<EOF
18518 #define $ac_tr_func 1
18519 EOF
18520  
18521 else
18522   echo "$ac_t""no" 1>&6
18523 fi
18524 done
18525     
18526   else
18527     
18528   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18529 echo "configure:18521: checking for _logl declaration" >&5
18530   if test x${glibcpp_cv_func__logl_use+set} != xset; then
18531     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18532   echo $ac_n "(cached) $ac_c" 1>&6
18533 else
18534   
18535       
18536       ac_ext=C
18537 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18538 ac_cpp='$CXXCPP $CPPFLAGS'
18539 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18540 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18541 cross_compiling=$ac_cv_prog_cxx_cross
18542
18543       cat > conftest.$ac_ext <<EOF
18544 #line 18536 "configure"
18545 #include "confdefs.h"
18546 #include <math.h>
18547                       #ifdef HAVE_IEEEFP_H
18548                       #include <ieeefp.h>
18549                       #endif
18550                      
18551 int main() {
18552  _logl(0);
18553 ; return 0; }
18554 EOF
18555 if { (eval echo configure:18547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18556   rm -rf conftest*
18557   glibcpp_cv_func__logl_use=yes
18558 else
18559   echo "configure: failed program was:" >&5
18560   cat conftest.$ac_ext >&5
18561   rm -rf conftest*
18562   glibcpp_cv_func__logl_use=no
18563 fi
18564 rm -f conftest*
18565       ac_ext=c
18566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18567 ac_cpp='$CPP $CPPFLAGS'
18568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18570 cross_compiling=$ac_cv_prog_cc_cross
18571
18572     
18573 fi
18574
18575   fi
18576   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18577
18578     if test x$glibcpp_cv_func__logl_use = x"yes"; then
18579       for ac_func in _logl
18580 do
18581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18582 echo "configure:18574: checking for $ac_func" >&5
18583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18584   echo $ac_n "(cached) $ac_c" 1>&6
18585 else
18586   cat > conftest.$ac_ext <<EOF
18587 #line 18579 "configure"
18588 #include "confdefs.h"
18589 /* System header to define __stub macros and hopefully few prototypes,
18590     which can conflict with char $ac_func(); below.  */
18591 #include <assert.h>
18592 /* Override any gcc2 internal prototype to avoid an error.  */
18593 /* We use char because int might match the return type of a gcc2
18594     builtin and then its argument prototype would still apply.  */
18595 char $ac_func();
18596
18597 int main() {
18598
18599 /* The GNU C library defines this for functions which it implements
18600     to always fail with ENOSYS.  Some functions are actually named
18601     something starting with __ and the normal name is an alias.  */
18602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18603 choke me
18604 #else
18605 $ac_func();
18606 #endif
18607
18608 ; return 0; }
18609 EOF
18610 if { (eval echo configure:18602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18611   rm -rf conftest*
18612   eval "ac_cv_func_$ac_func=yes"
18613 else
18614   echo "configure: failed program was:" >&5
18615   cat conftest.$ac_ext >&5
18616   rm -rf conftest*
18617   eval "ac_cv_func_$ac_func=no"
18618 fi
18619 rm -f conftest*
18620 fi
18621
18622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18623   echo "$ac_t""yes" 1>&6
18624     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18625   cat >> confdefs.h <<EOF
18626 #define $ac_tr_func 1
18627 EOF
18628  
18629 else
18630   echo "$ac_t""no" 1>&6
18631 fi
18632 done
18633     
18634     fi
18635   fi
18636
18637   
18638   
18639   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18640 echo "configure:18632: checking for log10l declaration" >&5
18641   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18642     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18643   echo $ac_n "(cached) $ac_c" 1>&6
18644 else
18645   
18646       
18647       ac_ext=C
18648 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18649 ac_cpp='$CXXCPP $CPPFLAGS'
18650 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18651 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18652 cross_compiling=$ac_cv_prog_cxx_cross
18653
18654       cat > conftest.$ac_ext <<EOF
18655 #line 18647 "configure"
18656 #include "confdefs.h"
18657 #include <math.h>
18658                       #ifdef HAVE_IEEEFP_H
18659                       #include <ieeefp.h>
18660                       #endif
18661                      
18662 int main() {
18663  log10l(0);
18664 ; return 0; }
18665 EOF
18666 if { (eval echo configure:18658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18667   rm -rf conftest*
18668   glibcpp_cv_func_log10l_use=yes
18669 else
18670   echo "configure: failed program was:" >&5
18671   cat conftest.$ac_ext >&5
18672   rm -rf conftest*
18673   glibcpp_cv_func_log10l_use=no
18674 fi
18675 rm -f conftest*
18676       ac_ext=c
18677 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18678 ac_cpp='$CPP $CPPFLAGS'
18679 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18680 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18681 cross_compiling=$ac_cv_prog_cc_cross
18682
18683     
18684 fi
18685
18686   fi
18687   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18688
18689   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18690     for ac_func in log10l
18691 do
18692 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18693 echo "configure:18685: checking for $ac_func" >&5
18694 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18695   echo $ac_n "(cached) $ac_c" 1>&6
18696 else
18697   cat > conftest.$ac_ext <<EOF
18698 #line 18690 "configure"
18699 #include "confdefs.h"
18700 /* System header to define __stub macros and hopefully few prototypes,
18701     which can conflict with char $ac_func(); below.  */
18702 #include <assert.h>
18703 /* Override any gcc2 internal prototype to avoid an error.  */
18704 /* We use char because int might match the return type of a gcc2
18705     builtin and then its argument prototype would still apply.  */
18706 char $ac_func();
18707
18708 int main() {
18709
18710 /* The GNU C library defines this for functions which it implements
18711     to always fail with ENOSYS.  Some functions are actually named
18712     something starting with __ and the normal name is an alias.  */
18713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18714 choke me
18715 #else
18716 $ac_func();
18717 #endif
18718
18719 ; return 0; }
18720 EOF
18721 if { (eval echo configure:18713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18722   rm -rf conftest*
18723   eval "ac_cv_func_$ac_func=yes"
18724 else
18725   echo "configure: failed program was:" >&5
18726   cat conftest.$ac_ext >&5
18727   rm -rf conftest*
18728   eval "ac_cv_func_$ac_func=no"
18729 fi
18730 rm -f conftest*
18731 fi
18732
18733 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18734   echo "$ac_t""yes" 1>&6
18735     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18736   cat >> confdefs.h <<EOF
18737 #define $ac_tr_func 1
18738 EOF
18739  
18740 else
18741   echo "$ac_t""no" 1>&6
18742 fi
18743 done
18744     
18745   else
18746     
18747   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18748 echo "configure:18740: checking for _log10l declaration" >&5
18749   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18750     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18751   echo $ac_n "(cached) $ac_c" 1>&6
18752 else
18753   
18754       
18755       ac_ext=C
18756 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18757 ac_cpp='$CXXCPP $CPPFLAGS'
18758 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18759 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18760 cross_compiling=$ac_cv_prog_cxx_cross
18761
18762       cat > conftest.$ac_ext <<EOF
18763 #line 18755 "configure"
18764 #include "confdefs.h"
18765 #include <math.h>
18766                       #ifdef HAVE_IEEEFP_H
18767                       #include <ieeefp.h>
18768                       #endif
18769                      
18770 int main() {
18771  _log10l(0);
18772 ; return 0; }
18773 EOF
18774 if { (eval echo configure:18766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18775   rm -rf conftest*
18776   glibcpp_cv_func__log10l_use=yes
18777 else
18778   echo "configure: failed program was:" >&5
18779   cat conftest.$ac_ext >&5
18780   rm -rf conftest*
18781   glibcpp_cv_func__log10l_use=no
18782 fi
18783 rm -f conftest*
18784       ac_ext=c
18785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18786 ac_cpp='$CPP $CPPFLAGS'
18787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18788 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18789 cross_compiling=$ac_cv_prog_cc_cross
18790
18791     
18792 fi
18793
18794   fi
18795   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18796
18797     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18798       for ac_func in _log10l
18799 do
18800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18801 echo "configure:18793: checking for $ac_func" >&5
18802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18803   echo $ac_n "(cached) $ac_c" 1>&6
18804 else
18805   cat > conftest.$ac_ext <<EOF
18806 #line 18798 "configure"
18807 #include "confdefs.h"
18808 /* System header to define __stub macros and hopefully few prototypes,
18809     which can conflict with char $ac_func(); below.  */
18810 #include <assert.h>
18811 /* Override any gcc2 internal prototype to avoid an error.  */
18812 /* We use char because int might match the return type of a gcc2
18813     builtin and then its argument prototype would still apply.  */
18814 char $ac_func();
18815
18816 int main() {
18817
18818 /* The GNU C library defines this for functions which it implements
18819     to always fail with ENOSYS.  Some functions are actually named
18820     something starting with __ and the normal name is an alias.  */
18821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18822 choke me
18823 #else
18824 $ac_func();
18825 #endif
18826
18827 ; return 0; }
18828 EOF
18829 if { (eval echo configure:18821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18830   rm -rf conftest*
18831   eval "ac_cv_func_$ac_func=yes"
18832 else
18833   echo "configure: failed program was:" >&5
18834   cat conftest.$ac_ext >&5
18835   rm -rf conftest*
18836   eval "ac_cv_func_$ac_func=no"
18837 fi
18838 rm -f conftest*
18839 fi
18840
18841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18842   echo "$ac_t""yes" 1>&6
18843     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18844   cat >> confdefs.h <<EOF
18845 #define $ac_tr_func 1
18846 EOF
18847  
18848 else
18849   echo "$ac_t""no" 1>&6
18850 fi
18851 done
18852     
18853     fi
18854   fi
18855
18856   
18857   
18858   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18859 echo "configure:18851: checking for modfl declaration" >&5
18860   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18861     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18862   echo $ac_n "(cached) $ac_c" 1>&6
18863 else
18864   
18865       
18866       ac_ext=C
18867 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18868 ac_cpp='$CXXCPP $CPPFLAGS'
18869 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18870 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18871 cross_compiling=$ac_cv_prog_cxx_cross
18872
18873       cat > conftest.$ac_ext <<EOF
18874 #line 18866 "configure"
18875 #include "confdefs.h"
18876 #include <math.h>
18877 int main() {
18878  modfl(0, 0);
18879 ; return 0; }
18880 EOF
18881 if { (eval echo configure:18873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18882   rm -rf conftest*
18883   glibcpp_cv_func_modfl_use=yes
18884 else
18885   echo "configure: failed program was:" >&5
18886   cat conftest.$ac_ext >&5
18887   rm -rf conftest*
18888   glibcpp_cv_func_modfl_use=no
18889 fi
18890 rm -f conftest*
18891       ac_ext=c
18892 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18893 ac_cpp='$CPP $CPPFLAGS'
18894 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18895 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18896 cross_compiling=$ac_cv_prog_cc_cross
18897
18898     
18899 fi
18900
18901   fi
18902   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18903
18904   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18905     for ac_func in modfl
18906 do
18907 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18908 echo "configure:18900: checking for $ac_func" >&5
18909 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18910   echo $ac_n "(cached) $ac_c" 1>&6
18911 else
18912   cat > conftest.$ac_ext <<EOF
18913 #line 18905 "configure"
18914 #include "confdefs.h"
18915 /* System header to define __stub macros and hopefully few prototypes,
18916     which can conflict with char $ac_func(); below.  */
18917 #include <assert.h>
18918 /* Override any gcc2 internal prototype to avoid an error.  */
18919 /* We use char because int might match the return type of a gcc2
18920     builtin and then its argument prototype would still apply.  */
18921 char $ac_func();
18922
18923 int main() {
18924
18925 /* The GNU C library defines this for functions which it implements
18926     to always fail with ENOSYS.  Some functions are actually named
18927     something starting with __ and the normal name is an alias.  */
18928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18929 choke me
18930 #else
18931 $ac_func();
18932 #endif
18933
18934 ; return 0; }
18935 EOF
18936 if { (eval echo configure:18928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18937   rm -rf conftest*
18938   eval "ac_cv_func_$ac_func=yes"
18939 else
18940   echo "configure: failed program was:" >&5
18941   cat conftest.$ac_ext >&5
18942   rm -rf conftest*
18943   eval "ac_cv_func_$ac_func=no"
18944 fi
18945 rm -f conftest*
18946 fi
18947
18948 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18949   echo "$ac_t""yes" 1>&6
18950     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18951   cat >> confdefs.h <<EOF
18952 #define $ac_tr_func 1
18953 EOF
18954  
18955 else
18956   echo "$ac_t""no" 1>&6
18957 fi
18958 done
18959     
18960   else
18961     
18962   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
18963 echo "configure:18955: checking for _modfl declaration" >&5
18964   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
18965     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
18966   echo $ac_n "(cached) $ac_c" 1>&6
18967 else
18968   
18969       
18970       ac_ext=C
18971 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18972 ac_cpp='$CXXCPP $CPPFLAGS'
18973 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18974 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18975 cross_compiling=$ac_cv_prog_cxx_cross
18976
18977       cat > conftest.$ac_ext <<EOF
18978 #line 18970 "configure"
18979 #include "confdefs.h"
18980 #include <math.h>
18981 int main() {
18982  _modfl(0, 0);
18983 ; return 0; }
18984 EOF
18985 if { (eval echo configure:18977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18986   rm -rf conftest*
18987   glibcpp_cv_func__modfl_use=yes
18988 else
18989   echo "configure: failed program was:" >&5
18990   cat conftest.$ac_ext >&5
18991   rm -rf conftest*
18992   glibcpp_cv_func__modfl_use=no
18993 fi
18994 rm -f conftest*
18995       ac_ext=c
18996 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18997 ac_cpp='$CPP $CPPFLAGS'
18998 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18999 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19000 cross_compiling=$ac_cv_prog_cc_cross
19001
19002     
19003 fi
19004
19005   fi
19006   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19007
19008     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19009       for ac_func in _modfl
19010 do
19011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19012 echo "configure:19004: checking for $ac_func" >&5
19013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19014   echo $ac_n "(cached) $ac_c" 1>&6
19015 else
19016   cat > conftest.$ac_ext <<EOF
19017 #line 19009 "configure"
19018 #include "confdefs.h"
19019 /* System header to define __stub macros and hopefully few prototypes,
19020     which can conflict with char $ac_func(); below.  */
19021 #include <assert.h>
19022 /* Override any gcc2 internal prototype to avoid an error.  */
19023 /* We use char because int might match the return type of a gcc2
19024     builtin and then its argument prototype would still apply.  */
19025 char $ac_func();
19026
19027 int main() {
19028
19029 /* The GNU C library defines this for functions which it implements
19030     to always fail with ENOSYS.  Some functions are actually named
19031     something starting with __ and the normal name is an alias.  */
19032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19033 choke me
19034 #else
19035 $ac_func();
19036 #endif
19037
19038 ; return 0; }
19039 EOF
19040 if { (eval echo configure:19032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19041   rm -rf conftest*
19042   eval "ac_cv_func_$ac_func=yes"
19043 else
19044   echo "configure: failed program was:" >&5
19045   cat conftest.$ac_ext >&5
19046   rm -rf conftest*
19047   eval "ac_cv_func_$ac_func=no"
19048 fi
19049 rm -f conftest*
19050 fi
19051
19052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19053   echo "$ac_t""yes" 1>&6
19054     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19055   cat >> confdefs.h <<EOF
19056 #define $ac_tr_func 1
19057 EOF
19058  
19059 else
19060   echo "$ac_t""no" 1>&6
19061 fi
19062 done
19063     
19064     fi
19065   fi
19066
19067   
19068   
19069   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19070 echo "configure:19062: checking for powl declaration" >&5
19071   if test x${glibcpp_cv_func_powl_use+set} != xset; then
19072     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19073   echo $ac_n "(cached) $ac_c" 1>&6
19074 else
19075   
19076       
19077       ac_ext=C
19078 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19079 ac_cpp='$CXXCPP $CPPFLAGS'
19080 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19081 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19082 cross_compiling=$ac_cv_prog_cxx_cross
19083
19084       cat > conftest.$ac_ext <<EOF
19085 #line 19077 "configure"
19086 #include "confdefs.h"
19087 #include <math.h>
19088 int main() {
19089  powl(0, 0);
19090 ; return 0; }
19091 EOF
19092 if { (eval echo configure:19084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19093   rm -rf conftest*
19094   glibcpp_cv_func_powl_use=yes
19095 else
19096   echo "configure: failed program was:" >&5
19097   cat conftest.$ac_ext >&5
19098   rm -rf conftest*
19099   glibcpp_cv_func_powl_use=no
19100 fi
19101 rm -f conftest*
19102       ac_ext=c
19103 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19104 ac_cpp='$CPP $CPPFLAGS'
19105 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19106 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19107 cross_compiling=$ac_cv_prog_cc_cross
19108
19109     
19110 fi
19111
19112   fi
19113   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19114
19115   if test x$glibcpp_cv_func_powl_use = x"yes"; then
19116     for ac_func in powl
19117 do
19118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19119 echo "configure:19111: checking for $ac_func" >&5
19120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19121   echo $ac_n "(cached) $ac_c" 1>&6
19122 else
19123   cat > conftest.$ac_ext <<EOF
19124 #line 19116 "configure"
19125 #include "confdefs.h"
19126 /* System header to define __stub macros and hopefully few prototypes,
19127     which can conflict with char $ac_func(); below.  */
19128 #include <assert.h>
19129 /* Override any gcc2 internal prototype to avoid an error.  */
19130 /* We use char because int might match the return type of a gcc2
19131     builtin and then its argument prototype would still apply.  */
19132 char $ac_func();
19133
19134 int main() {
19135
19136 /* The GNU C library defines this for functions which it implements
19137     to always fail with ENOSYS.  Some functions are actually named
19138     something starting with __ and the normal name is an alias.  */
19139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19140 choke me
19141 #else
19142 $ac_func();
19143 #endif
19144
19145 ; return 0; }
19146 EOF
19147 if { (eval echo configure:19139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19148   rm -rf conftest*
19149   eval "ac_cv_func_$ac_func=yes"
19150 else
19151   echo "configure: failed program was:" >&5
19152   cat conftest.$ac_ext >&5
19153   rm -rf conftest*
19154   eval "ac_cv_func_$ac_func=no"
19155 fi
19156 rm -f conftest*
19157 fi
19158
19159 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19160   echo "$ac_t""yes" 1>&6
19161     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19162   cat >> confdefs.h <<EOF
19163 #define $ac_tr_func 1
19164 EOF
19165  
19166 else
19167   echo "$ac_t""no" 1>&6
19168 fi
19169 done
19170     
19171   else
19172     
19173   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19174 echo "configure:19166: checking for _powl declaration" >&5
19175   if test x${glibcpp_cv_func__powl_use+set} != xset; then
19176     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19177   echo $ac_n "(cached) $ac_c" 1>&6
19178 else
19179   
19180       
19181       ac_ext=C
19182 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19183 ac_cpp='$CXXCPP $CPPFLAGS'
19184 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19185 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19186 cross_compiling=$ac_cv_prog_cxx_cross
19187
19188       cat > conftest.$ac_ext <<EOF
19189 #line 19181 "configure"
19190 #include "confdefs.h"
19191 #include <math.h>
19192 int main() {
19193  _powl(0, 0);
19194 ; return 0; }
19195 EOF
19196 if { (eval echo configure:19188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19197   rm -rf conftest*
19198   glibcpp_cv_func__powl_use=yes
19199 else
19200   echo "configure: failed program was:" >&5
19201   cat conftest.$ac_ext >&5
19202   rm -rf conftest*
19203   glibcpp_cv_func__powl_use=no
19204 fi
19205 rm -f conftest*
19206       ac_ext=c
19207 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19208 ac_cpp='$CPP $CPPFLAGS'
19209 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19210 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19211 cross_compiling=$ac_cv_prog_cc_cross
19212
19213     
19214 fi
19215
19216   fi
19217   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19218
19219     if test x$glibcpp_cv_func__powl_use = x"yes"; then
19220       for ac_func in _powl
19221 do
19222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19223 echo "configure:19215: checking for $ac_func" >&5
19224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19225   echo $ac_n "(cached) $ac_c" 1>&6
19226 else
19227   cat > conftest.$ac_ext <<EOF
19228 #line 19220 "configure"
19229 #include "confdefs.h"
19230 /* System header to define __stub macros and hopefully few prototypes,
19231     which can conflict with char $ac_func(); below.  */
19232 #include <assert.h>
19233 /* Override any gcc2 internal prototype to avoid an error.  */
19234 /* We use char because int might match the return type of a gcc2
19235     builtin and then its argument prototype would still apply.  */
19236 char $ac_func();
19237
19238 int main() {
19239
19240 /* The GNU C library defines this for functions which it implements
19241     to always fail with ENOSYS.  Some functions are actually named
19242     something starting with __ and the normal name is an alias.  */
19243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19244 choke me
19245 #else
19246 $ac_func();
19247 #endif
19248
19249 ; return 0; }
19250 EOF
19251 if { (eval echo configure:19243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19252   rm -rf conftest*
19253   eval "ac_cv_func_$ac_func=yes"
19254 else
19255   echo "configure: failed program was:" >&5
19256   cat conftest.$ac_ext >&5
19257   rm -rf conftest*
19258   eval "ac_cv_func_$ac_func=no"
19259 fi
19260 rm -f conftest*
19261 fi
19262
19263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19264   echo "$ac_t""yes" 1>&6
19265     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19266   cat >> confdefs.h <<EOF
19267 #define $ac_tr_func 1
19268 EOF
19269  
19270 else
19271   echo "$ac_t""no" 1>&6
19272 fi
19273 done
19274     
19275     fi
19276   fi
19277
19278   
19279   
19280   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19281 echo "configure:19273: checking for sqrtl declaration" >&5
19282   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19283     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19284   echo $ac_n "(cached) $ac_c" 1>&6
19285 else
19286   
19287       
19288       ac_ext=C
19289 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19290 ac_cpp='$CXXCPP $CPPFLAGS'
19291 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19292 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19293 cross_compiling=$ac_cv_prog_cxx_cross
19294
19295       cat > conftest.$ac_ext <<EOF
19296 #line 19288 "configure"
19297 #include "confdefs.h"
19298 #include <math.h>
19299                       #ifdef HAVE_IEEEFP_H
19300                       #include <ieeefp.h>
19301                       #endif
19302                      
19303 int main() {
19304  sqrtl(0);
19305 ; return 0; }
19306 EOF
19307 if { (eval echo configure:19299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19308   rm -rf conftest*
19309   glibcpp_cv_func_sqrtl_use=yes
19310 else
19311   echo "configure: failed program was:" >&5
19312   cat conftest.$ac_ext >&5
19313   rm -rf conftest*
19314   glibcpp_cv_func_sqrtl_use=no
19315 fi
19316 rm -f conftest*
19317       ac_ext=c
19318 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19319 ac_cpp='$CPP $CPPFLAGS'
19320 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19321 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19322 cross_compiling=$ac_cv_prog_cc_cross
19323
19324     
19325 fi
19326
19327   fi
19328   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19329
19330   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19331     for ac_func in sqrtl
19332 do
19333 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19334 echo "configure:19326: checking for $ac_func" >&5
19335 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19336   echo $ac_n "(cached) $ac_c" 1>&6
19337 else
19338   cat > conftest.$ac_ext <<EOF
19339 #line 19331 "configure"
19340 #include "confdefs.h"
19341 /* System header to define __stub macros and hopefully few prototypes,
19342     which can conflict with char $ac_func(); below.  */
19343 #include <assert.h>
19344 /* Override any gcc2 internal prototype to avoid an error.  */
19345 /* We use char because int might match the return type of a gcc2
19346     builtin and then its argument prototype would still apply.  */
19347 char $ac_func();
19348
19349 int main() {
19350
19351 /* The GNU C library defines this for functions which it implements
19352     to always fail with ENOSYS.  Some functions are actually named
19353     something starting with __ and the normal name is an alias.  */
19354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19355 choke me
19356 #else
19357 $ac_func();
19358 #endif
19359
19360 ; return 0; }
19361 EOF
19362 if { (eval echo configure:19354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19363   rm -rf conftest*
19364   eval "ac_cv_func_$ac_func=yes"
19365 else
19366   echo "configure: failed program was:" >&5
19367   cat conftest.$ac_ext >&5
19368   rm -rf conftest*
19369   eval "ac_cv_func_$ac_func=no"
19370 fi
19371 rm -f conftest*
19372 fi
19373
19374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19375   echo "$ac_t""yes" 1>&6
19376     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19377   cat >> confdefs.h <<EOF
19378 #define $ac_tr_func 1
19379 EOF
19380  
19381 else
19382   echo "$ac_t""no" 1>&6
19383 fi
19384 done
19385     
19386   else
19387     
19388   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19389 echo "configure:19381: checking for _sqrtl declaration" >&5
19390   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19391     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19392   echo $ac_n "(cached) $ac_c" 1>&6
19393 else
19394   
19395       
19396       ac_ext=C
19397 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19398 ac_cpp='$CXXCPP $CPPFLAGS'
19399 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19400 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19401 cross_compiling=$ac_cv_prog_cxx_cross
19402
19403       cat > conftest.$ac_ext <<EOF
19404 #line 19396 "configure"
19405 #include "confdefs.h"
19406 #include <math.h>
19407                       #ifdef HAVE_IEEEFP_H
19408                       #include <ieeefp.h>
19409                       #endif
19410                      
19411 int main() {
19412  _sqrtl(0);
19413 ; return 0; }
19414 EOF
19415 if { (eval echo configure:19407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19416   rm -rf conftest*
19417   glibcpp_cv_func__sqrtl_use=yes
19418 else
19419   echo "configure: failed program was:" >&5
19420   cat conftest.$ac_ext >&5
19421   rm -rf conftest*
19422   glibcpp_cv_func__sqrtl_use=no
19423 fi
19424 rm -f conftest*
19425       ac_ext=c
19426 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19427 ac_cpp='$CPP $CPPFLAGS'
19428 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19429 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19430 cross_compiling=$ac_cv_prog_cc_cross
19431
19432     
19433 fi
19434
19435   fi
19436   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19437
19438     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19439       for ac_func in _sqrtl
19440 do
19441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19442 echo "configure:19434: checking for $ac_func" >&5
19443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19444   echo $ac_n "(cached) $ac_c" 1>&6
19445 else
19446   cat > conftest.$ac_ext <<EOF
19447 #line 19439 "configure"
19448 #include "confdefs.h"
19449 /* System header to define __stub macros and hopefully few prototypes,
19450     which can conflict with char $ac_func(); below.  */
19451 #include <assert.h>
19452 /* Override any gcc2 internal prototype to avoid an error.  */
19453 /* We use char because int might match the return type of a gcc2
19454     builtin and then its argument prototype would still apply.  */
19455 char $ac_func();
19456
19457 int main() {
19458
19459 /* The GNU C library defines this for functions which it implements
19460     to always fail with ENOSYS.  Some functions are actually named
19461     something starting with __ and the normal name is an alias.  */
19462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19463 choke me
19464 #else
19465 $ac_func();
19466 #endif
19467
19468 ; return 0; }
19469 EOF
19470 if { (eval echo configure:19462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19471   rm -rf conftest*
19472   eval "ac_cv_func_$ac_func=yes"
19473 else
19474   echo "configure: failed program was:" >&5
19475   cat conftest.$ac_ext >&5
19476   rm -rf conftest*
19477   eval "ac_cv_func_$ac_func=no"
19478 fi
19479 rm -f conftest*
19480 fi
19481
19482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19483   echo "$ac_t""yes" 1>&6
19484     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19485   cat >> confdefs.h <<EOF
19486 #define $ac_tr_func 1
19487 EOF
19488  
19489 else
19490   echo "$ac_t""no" 1>&6
19491 fi
19492 done
19493     
19494     fi
19495   fi
19496
19497   
19498   
19499   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19500 echo "configure:19492: checking for sincosl declaration" >&5
19501   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19502     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19503   echo $ac_n "(cached) $ac_c" 1>&6
19504 else
19505   
19506       
19507       ac_ext=C
19508 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19509 ac_cpp='$CXXCPP $CPPFLAGS'
19510 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19511 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19512 cross_compiling=$ac_cv_prog_cxx_cross
19513
19514       cat > conftest.$ac_ext <<EOF
19515 #line 19507 "configure"
19516 #include "confdefs.h"
19517 #include <math.h>
19518 int main() {
19519  sincosl(0, 0, 0);
19520 ; return 0; }
19521 EOF
19522 if { (eval echo configure:19514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19523   rm -rf conftest*
19524   glibcpp_cv_func_sincosl_use=yes
19525 else
19526   echo "configure: failed program was:" >&5
19527   cat conftest.$ac_ext >&5
19528   rm -rf conftest*
19529   glibcpp_cv_func_sincosl_use=no
19530 fi
19531 rm -f conftest*
19532       ac_ext=c
19533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19534 ac_cpp='$CPP $CPPFLAGS'
19535 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19536 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19537 cross_compiling=$ac_cv_prog_cc_cross
19538
19539     
19540 fi
19541
19542   fi
19543   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19544
19545   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19546     for ac_func in sincosl
19547 do
19548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19549 echo "configure:19541: checking for $ac_func" >&5
19550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19551   echo $ac_n "(cached) $ac_c" 1>&6
19552 else
19553   cat > conftest.$ac_ext <<EOF
19554 #line 19546 "configure"
19555 #include "confdefs.h"
19556 /* System header to define __stub macros and hopefully few prototypes,
19557     which can conflict with char $ac_func(); below.  */
19558 #include <assert.h>
19559 /* Override any gcc2 internal prototype to avoid an error.  */
19560 /* We use char because int might match the return type of a gcc2
19561     builtin and then its argument prototype would still apply.  */
19562 char $ac_func();
19563
19564 int main() {
19565
19566 /* The GNU C library defines this for functions which it implements
19567     to always fail with ENOSYS.  Some functions are actually named
19568     something starting with __ and the normal name is an alias.  */
19569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19570 choke me
19571 #else
19572 $ac_func();
19573 #endif
19574
19575 ; return 0; }
19576 EOF
19577 if { (eval echo configure:19569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19578   rm -rf conftest*
19579   eval "ac_cv_func_$ac_func=yes"
19580 else
19581   echo "configure: failed program was:" >&5
19582   cat conftest.$ac_ext >&5
19583   rm -rf conftest*
19584   eval "ac_cv_func_$ac_func=no"
19585 fi
19586 rm -f conftest*
19587 fi
19588
19589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19590   echo "$ac_t""yes" 1>&6
19591     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19592   cat >> confdefs.h <<EOF
19593 #define $ac_tr_func 1
19594 EOF
19595  
19596 else
19597   echo "$ac_t""no" 1>&6
19598 fi
19599 done
19600     
19601   else
19602     
19603   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19604 echo "configure:19596: checking for _sincosl declaration" >&5
19605   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19606     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19607   echo $ac_n "(cached) $ac_c" 1>&6
19608 else
19609   
19610       
19611       ac_ext=C
19612 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19613 ac_cpp='$CXXCPP $CPPFLAGS'
19614 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19615 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19616 cross_compiling=$ac_cv_prog_cxx_cross
19617
19618       cat > conftest.$ac_ext <<EOF
19619 #line 19611 "configure"
19620 #include "confdefs.h"
19621 #include <math.h>
19622 int main() {
19623  _sincosl(0, 0, 0);
19624 ; return 0; }
19625 EOF
19626 if { (eval echo configure:19618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19627   rm -rf conftest*
19628   glibcpp_cv_func__sincosl_use=yes
19629 else
19630   echo "configure: failed program was:" >&5
19631   cat conftest.$ac_ext >&5
19632   rm -rf conftest*
19633   glibcpp_cv_func__sincosl_use=no
19634 fi
19635 rm -f conftest*
19636       ac_ext=c
19637 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19638 ac_cpp='$CPP $CPPFLAGS'
19639 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19640 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19641 cross_compiling=$ac_cv_prog_cc_cross
19642
19643     
19644 fi
19645
19646   fi
19647   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19648
19649     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19650       for ac_func in _sincosl
19651 do
19652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19653 echo "configure:19645: checking for $ac_func" >&5
19654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19655   echo $ac_n "(cached) $ac_c" 1>&6
19656 else
19657   cat > conftest.$ac_ext <<EOF
19658 #line 19650 "configure"
19659 #include "confdefs.h"
19660 /* System header to define __stub macros and hopefully few prototypes,
19661     which can conflict with char $ac_func(); below.  */
19662 #include <assert.h>
19663 /* Override any gcc2 internal prototype to avoid an error.  */
19664 /* We use char because int might match the return type of a gcc2
19665     builtin and then its argument prototype would still apply.  */
19666 char $ac_func();
19667
19668 int main() {
19669
19670 /* The GNU C library defines this for functions which it implements
19671     to always fail with ENOSYS.  Some functions are actually named
19672     something starting with __ and the normal name is an alias.  */
19673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19674 choke me
19675 #else
19676 $ac_func();
19677 #endif
19678
19679 ; return 0; }
19680 EOF
19681 if { (eval echo configure:19673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19682   rm -rf conftest*
19683   eval "ac_cv_func_$ac_func=yes"
19684 else
19685   echo "configure: failed program was:" >&5
19686   cat conftest.$ac_ext >&5
19687   rm -rf conftest*
19688   eval "ac_cv_func_$ac_func=no"
19689 fi
19690 rm -f conftest*
19691 fi
19692
19693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19694   echo "$ac_t""yes" 1>&6
19695     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19696   cat >> confdefs.h <<EOF
19697 #define $ac_tr_func 1
19698 EOF
19699  
19700 else
19701   echo "$ac_t""no" 1>&6
19702 fi
19703 done
19704     
19705     fi
19706   fi
19707
19708   
19709   
19710   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19711 echo "configure:19703: checking for finitel declaration" >&5
19712   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19713     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19714   echo $ac_n "(cached) $ac_c" 1>&6
19715 else
19716   
19717       
19718       ac_ext=C
19719 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19720 ac_cpp='$CXXCPP $CPPFLAGS'
19721 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19722 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19723 cross_compiling=$ac_cv_prog_cxx_cross
19724
19725       cat > conftest.$ac_ext <<EOF
19726 #line 19718 "configure"
19727 #include "confdefs.h"
19728 #include <math.h>
19729                       #ifdef HAVE_IEEEFP_H
19730                       #include <ieeefp.h>
19731                       #endif
19732                      
19733 int main() {
19734  finitel(0);
19735 ; return 0; }
19736 EOF
19737 if { (eval echo configure:19729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19738   rm -rf conftest*
19739   glibcpp_cv_func_finitel_use=yes
19740 else
19741   echo "configure: failed program was:" >&5
19742   cat conftest.$ac_ext >&5
19743   rm -rf conftest*
19744   glibcpp_cv_func_finitel_use=no
19745 fi
19746 rm -f conftest*
19747       ac_ext=c
19748 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19749 ac_cpp='$CPP $CPPFLAGS'
19750 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19751 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19752 cross_compiling=$ac_cv_prog_cc_cross
19753
19754     
19755 fi
19756
19757   fi
19758   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19759
19760   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19761     for ac_func in finitel
19762 do
19763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19764 echo "configure:19756: checking for $ac_func" >&5
19765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19766   echo $ac_n "(cached) $ac_c" 1>&6
19767 else
19768   cat > conftest.$ac_ext <<EOF
19769 #line 19761 "configure"
19770 #include "confdefs.h"
19771 /* System header to define __stub macros and hopefully few prototypes,
19772     which can conflict with char $ac_func(); below.  */
19773 #include <assert.h>
19774 /* Override any gcc2 internal prototype to avoid an error.  */
19775 /* We use char because int might match the return type of a gcc2
19776     builtin and then its argument prototype would still apply.  */
19777 char $ac_func();
19778
19779 int main() {
19780
19781 /* The GNU C library defines this for functions which it implements
19782     to always fail with ENOSYS.  Some functions are actually named
19783     something starting with __ and the normal name is an alias.  */
19784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19785 choke me
19786 #else
19787 $ac_func();
19788 #endif
19789
19790 ; return 0; }
19791 EOF
19792 if { (eval echo configure:19784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19793   rm -rf conftest*
19794   eval "ac_cv_func_$ac_func=yes"
19795 else
19796   echo "configure: failed program was:" >&5
19797   cat conftest.$ac_ext >&5
19798   rm -rf conftest*
19799   eval "ac_cv_func_$ac_func=no"
19800 fi
19801 rm -f conftest*
19802 fi
19803
19804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19805   echo "$ac_t""yes" 1>&6
19806     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19807   cat >> confdefs.h <<EOF
19808 #define $ac_tr_func 1
19809 EOF
19810  
19811 else
19812   echo "$ac_t""no" 1>&6
19813 fi
19814 done
19815     
19816   else
19817     
19818   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19819 echo "configure:19811: checking for _finitel declaration" >&5
19820   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19821     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19822   echo $ac_n "(cached) $ac_c" 1>&6
19823 else
19824   
19825       
19826       ac_ext=C
19827 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19828 ac_cpp='$CXXCPP $CPPFLAGS'
19829 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19830 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19831 cross_compiling=$ac_cv_prog_cxx_cross
19832
19833       cat > conftest.$ac_ext <<EOF
19834 #line 19826 "configure"
19835 #include "confdefs.h"
19836 #include <math.h>
19837                       #ifdef HAVE_IEEEFP_H
19838                       #include <ieeefp.h>
19839                       #endif
19840                      
19841 int main() {
19842  _finitel(0);
19843 ; return 0; }
19844 EOF
19845 if { (eval echo configure:19837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19846   rm -rf conftest*
19847   glibcpp_cv_func__finitel_use=yes
19848 else
19849   echo "configure: failed program was:" >&5
19850   cat conftest.$ac_ext >&5
19851   rm -rf conftest*
19852   glibcpp_cv_func__finitel_use=no
19853 fi
19854 rm -f conftest*
19855       ac_ext=c
19856 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19857 ac_cpp='$CPP $CPPFLAGS'
19858 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19859 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19860 cross_compiling=$ac_cv_prog_cc_cross
19861
19862     
19863 fi
19864
19865   fi
19866   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19867
19868     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19869       for ac_func in _finitel
19870 do
19871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19872 echo "configure:19864: checking for $ac_func" >&5
19873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19874   echo $ac_n "(cached) $ac_c" 1>&6
19875 else
19876   cat > conftest.$ac_ext <<EOF
19877 #line 19869 "configure"
19878 #include "confdefs.h"
19879 /* System header to define __stub macros and hopefully few prototypes,
19880     which can conflict with char $ac_func(); below.  */
19881 #include <assert.h>
19882 /* Override any gcc2 internal prototype to avoid an error.  */
19883 /* We use char because int might match the return type of a gcc2
19884     builtin and then its argument prototype would still apply.  */
19885 char $ac_func();
19886
19887 int main() {
19888
19889 /* The GNU C library defines this for functions which it implements
19890     to always fail with ENOSYS.  Some functions are actually named
19891     something starting with __ and the normal name is an alias.  */
19892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19893 choke me
19894 #else
19895 $ac_func();
19896 #endif
19897
19898 ; return 0; }
19899 EOF
19900 if { (eval echo configure:19892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19901   rm -rf conftest*
19902   eval "ac_cv_func_$ac_func=yes"
19903 else
19904   echo "configure: failed program was:" >&5
19905   cat conftest.$ac_ext >&5
19906   rm -rf conftest*
19907   eval "ac_cv_func_$ac_func=no"
19908 fi
19909 rm -f conftest*
19910 fi
19911
19912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19913   echo "$ac_t""yes" 1>&6
19914     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19915   cat >> confdefs.h <<EOF
19916 #define $ac_tr_func 1
19917 EOF
19918  
19919 else
19920   echo "$ac_t""no" 1>&6
19921 fi
19922 done
19923     
19924     fi
19925   fi
19926
19927
19928         
19929     
19930   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19931 echo "configure:19923: checking for _float trig functions" >&5
19932   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
19933   echo $ac_n "(cached) $ac_c" 1>&6
19934 else
19935   
19936     
19937     ac_ext=C
19938 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19939 ac_cpp='$CXXCPP $CPPFLAGS'
19940 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19941 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19942 cross_compiling=$ac_cv_prog_cxx_cross
19943
19944     cat > conftest.$ac_ext <<EOF
19945 #line 19937 "configure"
19946 #include "confdefs.h"
19947 #include <math.h>
19948 int main() {
19949  `for x in _acosf _asinf _atanf \
19950                                           _cosf _sinf _tanf \
19951                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
19952 ; return 0; }
19953 EOF
19954 if { (eval echo configure:19946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19955   rm -rf conftest*
19956   glibcpp_cv_func__float_trig_use=yes
19957 else
19958   echo "configure: failed program was:" >&5
19959   cat conftest.$ac_ext >&5
19960   rm -rf conftest*
19961   glibcpp_cv_func__float_trig_use=no
19962 fi
19963 rm -f conftest*
19964     ac_ext=c
19965 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19966 ac_cpp='$CPP $CPPFLAGS'
19967 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19968 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19969 cross_compiling=$ac_cv_prog_cc_cross
19970
19971 fi
19972
19973   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
19974   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
19975     for ac_func in _acosf _asinf _atanf \
19976                                           _cosf _sinf _tanf \
19977                                           _coshf _sinhf _tanhf
19978 do
19979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19980 echo "configure:19972: checking for $ac_func" >&5
19981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19982   echo $ac_n "(cached) $ac_c" 1>&6
19983 else
19984   cat > conftest.$ac_ext <<EOF
19985 #line 19977 "configure"
19986 #include "confdefs.h"
19987 /* System header to define __stub macros and hopefully few prototypes,
19988     which can conflict with char $ac_func(); below.  */
19989 #include <assert.h>
19990 /* Override any gcc2 internal prototype to avoid an error.  */
19991 /* We use char because int might match the return type of a gcc2
19992     builtin and then its argument prototype would still apply.  */
19993 char $ac_func();
19994
19995 int main() {
19996
19997 /* The GNU C library defines this for functions which it implements
19998     to always fail with ENOSYS.  Some functions are actually named
19999     something starting with __ and the normal name is an alias.  */
20000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20001 choke me
20002 #else
20003 $ac_func();
20004 #endif
20005
20006 ; return 0; }
20007 EOF
20008 if { (eval echo configure:20000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20009   rm -rf conftest*
20010   eval "ac_cv_func_$ac_func=yes"
20011 else
20012   echo "configure: failed program was:" >&5
20013   cat conftest.$ac_ext >&5
20014   rm -rf conftest*
20015   eval "ac_cv_func_$ac_func=no"
20016 fi
20017 rm -f conftest*
20018 fi
20019
20020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20021   echo "$ac_t""yes" 1>&6
20022     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20023   cat >> confdefs.h <<EOF
20024 #define $ac_tr_func 1
20025 EOF
20026  
20027 else
20028   echo "$ac_t""no" 1>&6
20029 fi
20030 done
20031
20032   fi
20033
20034   
20035   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20036 echo "configure:20028: checking for _float round functions" >&5
20037   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20038   echo $ac_n "(cached) $ac_c" 1>&6
20039 else
20040   
20041     
20042     ac_ext=C
20043 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20044 ac_cpp='$CXXCPP $CPPFLAGS'
20045 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20046 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20047 cross_compiling=$ac_cv_prog_cxx_cross
20048
20049     cat > conftest.$ac_ext <<EOF
20050 #line 20042 "configure"
20051 #include "confdefs.h"
20052 #include <math.h>
20053 int main() {
20054  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
20055 ; return 0; }
20056 EOF
20057 if { (eval echo configure:20049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20058   rm -rf conftest*
20059   glibcpp_cv_func__float_round_use=yes
20060 else
20061   echo "configure: failed program was:" >&5
20062   cat conftest.$ac_ext >&5
20063   rm -rf conftest*
20064   glibcpp_cv_func__float_round_use=no
20065 fi
20066 rm -f conftest*
20067     ac_ext=c
20068 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20069 ac_cpp='$CPP $CPPFLAGS'
20070 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20071 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20072 cross_compiling=$ac_cv_prog_cc_cross
20073
20074 fi
20075
20076   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20077   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20078     for ac_func in _ceilf _floorf
20079 do
20080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20081 echo "configure:20073: checking for $ac_func" >&5
20082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20083   echo $ac_n "(cached) $ac_c" 1>&6
20084 else
20085   cat > conftest.$ac_ext <<EOF
20086 #line 20078 "configure"
20087 #include "confdefs.h"
20088 /* System header to define __stub macros and hopefully few prototypes,
20089     which can conflict with char $ac_func(); below.  */
20090 #include <assert.h>
20091 /* Override any gcc2 internal prototype to avoid an error.  */
20092 /* We use char because int might match the return type of a gcc2
20093     builtin and then its argument prototype would still apply.  */
20094 char $ac_func();
20095
20096 int main() {
20097
20098 /* The GNU C library defines this for functions which it implements
20099     to always fail with ENOSYS.  Some functions are actually named
20100     something starting with __ and the normal name is an alias.  */
20101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20102 choke me
20103 #else
20104 $ac_func();
20105 #endif
20106
20107 ; return 0; }
20108 EOF
20109 if { (eval echo configure:20101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20110   rm -rf conftest*
20111   eval "ac_cv_func_$ac_func=yes"
20112 else
20113   echo "configure: failed program was:" >&5
20114   cat conftest.$ac_ext >&5
20115   rm -rf conftest*
20116   eval "ac_cv_func_$ac_func=no"
20117 fi
20118 rm -f conftest*
20119 fi
20120
20121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20122   echo "$ac_t""yes" 1>&6
20123     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20124   cat >> confdefs.h <<EOF
20125 #define $ac_tr_func 1
20126 EOF
20127  
20128 else
20129   echo "$ac_t""no" 1>&6
20130 fi
20131 done
20132
20133   fi
20134
20135
20136     
20137   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20138 echo "configure:20130: checking for _long double trig functions" >&5
20139   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20140   echo $ac_n "(cached) $ac_c" 1>&6
20141 else
20142   
20143     
20144     ac_ext=C
20145 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20146 ac_cpp='$CXXCPP $CPPFLAGS'
20147 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20148 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20149 cross_compiling=$ac_cv_prog_cxx_cross
20150
20151     cat > conftest.$ac_ext <<EOF
20152 #line 20144 "configure"
20153 #include "confdefs.h"
20154 #include <math.h>
20155 int main() {
20156  `for x in _acosl _asinl _atanl \
20157                                           _cosl _sinl _tanl \
20158                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
20159 ; return 0; }
20160 EOF
20161 if { (eval echo configure:20153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20162   rm -rf conftest*
20163   glibcpp_cv_func__long_double_trig_use=yes
20164 else
20165   echo "configure: failed program was:" >&5
20166   cat conftest.$ac_ext >&5
20167   rm -rf conftest*
20168   glibcpp_cv_func__long_double_trig_use=no
20169 fi
20170 rm -f conftest*
20171     ac_ext=c
20172 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20173 ac_cpp='$CPP $CPPFLAGS'
20174 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20175 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20176 cross_compiling=$ac_cv_prog_cc_cross
20177
20178 fi
20179
20180   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20181   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20182     for ac_func in _acosl _asinl _atanl \
20183                                           _cosl _sinl _tanl \
20184                                           _coshl _sinhl _tanhl
20185 do
20186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20187 echo "configure:20179: checking for $ac_func" >&5
20188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20189   echo $ac_n "(cached) $ac_c" 1>&6
20190 else
20191   cat > conftest.$ac_ext <<EOF
20192 #line 20184 "configure"
20193 #include "confdefs.h"
20194 /* System header to define __stub macros and hopefully few prototypes,
20195     which can conflict with char $ac_func(); below.  */
20196 #include <assert.h>
20197 /* Override any gcc2 internal prototype to avoid an error.  */
20198 /* We use char because int might match the return type of a gcc2
20199     builtin and then its argument prototype would still apply.  */
20200 char $ac_func();
20201
20202 int main() {
20203
20204 /* The GNU C library defines this for functions which it implements
20205     to always fail with ENOSYS.  Some functions are actually named
20206     something starting with __ and the normal name is an alias.  */
20207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20208 choke me
20209 #else
20210 $ac_func();
20211 #endif
20212
20213 ; return 0; }
20214 EOF
20215 if { (eval echo configure:20207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20216   rm -rf conftest*
20217   eval "ac_cv_func_$ac_func=yes"
20218 else
20219   echo "configure: failed program was:" >&5
20220   cat conftest.$ac_ext >&5
20221   rm -rf conftest*
20222   eval "ac_cv_func_$ac_func=no"
20223 fi
20224 rm -f conftest*
20225 fi
20226
20227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20228   echo "$ac_t""yes" 1>&6
20229     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20230   cat >> confdefs.h <<EOF
20231 #define $ac_tr_func 1
20232 EOF
20233  
20234 else
20235   echo "$ac_t""no" 1>&6
20236 fi
20237 done
20238
20239   fi
20240
20241   
20242   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20243 echo "configure:20235: checking for _long double round functions" >&5
20244   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20245   echo $ac_n "(cached) $ac_c" 1>&6
20246 else
20247   
20248     
20249     ac_ext=C
20250 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20251 ac_cpp='$CXXCPP $CPPFLAGS'
20252 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20253 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20254 cross_compiling=$ac_cv_prog_cxx_cross
20255
20256     cat > conftest.$ac_ext <<EOF
20257 #line 20249 "configure"
20258 #include "confdefs.h"
20259 #include <math.h>
20260 int main() {
20261  `for x in _ceill _floorl; do echo "$x (0);"; done` 
20262 ; return 0; }
20263 EOF
20264 if { (eval echo configure:20256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20265   rm -rf conftest*
20266   glibcpp_cv_func__long_double_round_use=yes
20267 else
20268   echo "configure: failed program was:" >&5
20269   cat conftest.$ac_ext >&5
20270   rm -rf conftest*
20271   glibcpp_cv_func__long_double_round_use=no
20272 fi
20273 rm -f conftest*
20274     ac_ext=c
20275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20276 ac_cpp='$CPP $CPPFLAGS'
20277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20279 cross_compiling=$ac_cv_prog_cc_cross
20280
20281 fi
20282
20283   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20284   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20285     for ac_func in _ceill _floorl
20286 do
20287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20288 echo "configure:20280: checking for $ac_func" >&5
20289 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20290   echo $ac_n "(cached) $ac_c" 1>&6
20291 else
20292   cat > conftest.$ac_ext <<EOF
20293 #line 20285 "configure"
20294 #include "confdefs.h"
20295 /* System header to define __stub macros and hopefully few prototypes,
20296     which can conflict with char $ac_func(); below.  */
20297 #include <assert.h>
20298 /* Override any gcc2 internal prototype to avoid an error.  */
20299 /* We use char because int might match the return type of a gcc2
20300     builtin and then its argument prototype would still apply.  */
20301 char $ac_func();
20302
20303 int main() {
20304
20305 /* The GNU C library defines this for functions which it implements
20306     to always fail with ENOSYS.  Some functions are actually named
20307     something starting with __ and the normal name is an alias.  */
20308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20309 choke me
20310 #else
20311 $ac_func();
20312 #endif
20313
20314 ; return 0; }
20315 EOF
20316 if { (eval echo configure:20308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20317   rm -rf conftest*
20318   eval "ac_cv_func_$ac_func=yes"
20319 else
20320   echo "configure: failed program was:" >&5
20321   cat conftest.$ac_ext >&5
20322   rm -rf conftest*
20323   eval "ac_cv_func_$ac_func=no"
20324 fi
20325 rm -f conftest*
20326 fi
20327
20328 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20329   echo "$ac_t""yes" 1>&6
20330     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20331   cat >> confdefs.h <<EOF
20332 #define $ac_tr_func 1
20333 EOF
20334  
20335 else
20336   echo "$ac_t""no" 1>&6
20337 fi
20338 done
20339
20340   fi
20341
20342
20343   LIBS="$ac_save_LIBS"
20344   CXXFLAGS="$ac_save_CXXFLAGS"
20345
20346   
20347     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
20348 echo "configure:20340: checking for main in -lm" >&5
20349 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
20350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20351   echo $ac_n "(cached) $ac_c" 1>&6
20352 else
20353   ac_save_LIBS="$LIBS"
20354 LIBS="-lm  $LIBS"
20355 cat > conftest.$ac_ext <<EOF
20356 #line 20348 "configure"
20357 #include "confdefs.h"
20358
20359 int main() {
20360 main()
20361 ; return 0; }
20362 EOF
20363 if { (eval echo configure:20355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20364   rm -rf conftest*
20365   eval "ac_cv_lib_$ac_lib_var=yes"
20366 else
20367   echo "configure: failed program was:" >&5
20368   cat conftest.$ac_ext >&5
20369   rm -rf conftest*
20370   eval "ac_cv_lib_$ac_lib_var=no"
20371 fi
20372 rm -f conftest*
20373 LIBS="$ac_save_LIBS"
20374
20375 fi
20376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20377   echo "$ac_t""yes" 1>&6
20378     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
20379     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
20380   cat >> confdefs.h <<EOF
20381 #define $ac_tr_lib 1
20382 EOF
20383
20384   LIBS="-lm $LIBS"
20385
20386 else
20387   echo "$ac_t""no" 1>&6
20388 fi
20389
20390   for ac_func in nan copysignf
20391 do
20392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20393 echo "configure:20385: checking for $ac_func" >&5
20394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20395   echo $ac_n "(cached) $ac_c" 1>&6
20396 else
20397   cat > conftest.$ac_ext <<EOF
20398 #line 20390 "configure"
20399 #include "confdefs.h"
20400 /* System header to define __stub macros and hopefully few prototypes,
20401     which can conflict with char $ac_func(); below.  */
20402 #include <assert.h>
20403 /* Override any gcc2 internal prototype to avoid an error.  */
20404 /* We use char because int might match the return type of a gcc2
20405     builtin and then its argument prototype would still apply.  */
20406 char $ac_func();
20407
20408 int main() {
20409
20410 /* The GNU C library defines this for functions which it implements
20411     to always fail with ENOSYS.  Some functions are actually named
20412     something starting with __ and the normal name is an alias.  */
20413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20414 choke me
20415 #else
20416 $ac_func();
20417 #endif
20418
20419 ; return 0; }
20420 EOF
20421 if { (eval echo configure:20413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20422   rm -rf conftest*
20423   eval "ac_cv_func_$ac_func=yes"
20424 else
20425   echo "configure: failed program was:" >&5
20426   cat conftest.$ac_ext >&5
20427   rm -rf conftest*
20428   eval "ac_cv_func_$ac_func=no"
20429 fi
20430 rm -f conftest*
20431 fi
20432
20433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20434   echo "$ac_t""yes" 1>&6
20435     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20436   cat >> confdefs.h <<EOF
20437 #define $ac_tr_func 1
20438 EOF
20439  
20440 else
20441   echo "$ac_t""no" 1>&6
20442 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
20443 fi
20444 done
20445
20446
20447     for ac_func in __signbit
20448 do
20449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20450 echo "configure:20442: checking for $ac_func" >&5
20451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20452   echo $ac_n "(cached) $ac_c" 1>&6
20453 else
20454   cat > conftest.$ac_ext <<EOF
20455 #line 20447 "configure"
20456 #include "confdefs.h"
20457 /* System header to define __stub macros and hopefully few prototypes,
20458     which can conflict with char $ac_func(); below.  */
20459 #include <assert.h>
20460 /* Override any gcc2 internal prototype to avoid an error.  */
20461 /* We use char because int might match the return type of a gcc2
20462     builtin and then its argument prototype would still apply.  */
20463 char $ac_func();
20464
20465 int main() {
20466
20467 /* The GNU C library defines this for functions which it implements
20468     to always fail with ENOSYS.  Some functions are actually named
20469     something starting with __ and the normal name is an alias.  */
20470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20471 choke me
20472 #else
20473 $ac_func();
20474 #endif
20475
20476 ; return 0; }
20477 EOF
20478 if { (eval echo configure:20470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20479   rm -rf conftest*
20480   eval "ac_cv_func_$ac_func=yes"
20481 else
20482   echo "configure: failed program was:" >&5
20483   cat conftest.$ac_ext >&5
20484   rm -rf conftest*
20485   eval "ac_cv_func_$ac_func=no"
20486 fi
20487 rm -f conftest*
20488 fi
20489
20490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20491   echo "$ac_t""yes" 1>&6
20492     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20493   cat >> confdefs.h <<EOF
20494 #define $ac_tr_func 1
20495 EOF
20496  
20497 else
20498   echo "$ac_t""no" 1>&6
20499 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
20500 fi
20501 done
20502
20503   for ac_func in __signbitf
20504 do
20505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20506 echo "configure:20498: checking for $ac_func" >&5
20507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20508   echo $ac_n "(cached) $ac_c" 1>&6
20509 else
20510   cat > conftest.$ac_ext <<EOF
20511 #line 20503 "configure"
20512 #include "confdefs.h"
20513 /* System header to define __stub macros and hopefully few prototypes,
20514     which can conflict with char $ac_func(); below.  */
20515 #include <assert.h>
20516 /* Override any gcc2 internal prototype to avoid an error.  */
20517 /* We use char because int might match the return type of a gcc2
20518     builtin and then its argument prototype would still apply.  */
20519 char $ac_func();
20520
20521 int main() {
20522
20523 /* The GNU C library defines this for functions which it implements
20524     to always fail with ENOSYS.  Some functions are actually named
20525     something starting with __ and the normal name is an alias.  */
20526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20527 choke me
20528 #else
20529 $ac_func();
20530 #endif
20531
20532 ; return 0; }
20533 EOF
20534 if { (eval echo configure:20526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20535   rm -rf conftest*
20536   eval "ac_cv_func_$ac_func=yes"
20537 else
20538   echo "configure: failed program was:" >&5
20539   cat conftest.$ac_ext >&5
20540   rm -rf conftest*
20541   eval "ac_cv_func_$ac_func=no"
20542 fi
20543 rm -f conftest*
20544 fi
20545
20546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20547   echo "$ac_t""yes" 1>&6
20548     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20549   cat >> confdefs.h <<EOF
20550 #define $ac_tr_func 1
20551 EOF
20552  
20553 else
20554   echo "$ac_t""no" 1>&6
20555 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
20556 fi
20557 done
20558
20559
20560           if test x$ac_cv_func_copysignl = x"yes"; then
20561     for ac_func in __signbitl
20562 do
20563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20564 echo "configure:20556: checking for $ac_func" >&5
20565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20566   echo $ac_n "(cached) $ac_c" 1>&6
20567 else
20568   cat > conftest.$ac_ext <<EOF
20569 #line 20561 "configure"
20570 #include "confdefs.h"
20571 /* System header to define __stub macros and hopefully few prototypes,
20572     which can conflict with char $ac_func(); below.  */
20573 #include <assert.h>
20574 /* Override any gcc2 internal prototype to avoid an error.  */
20575 /* We use char because int might match the return type of a gcc2
20576     builtin and then its argument prototype would still apply.  */
20577 char $ac_func();
20578
20579 int main() {
20580
20581 /* The GNU C library defines this for functions which it implements
20582     to always fail with ENOSYS.  Some functions are actually named
20583     something starting with __ and the normal name is an alias.  */
20584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20585 choke me
20586 #else
20587 $ac_func();
20588 #endif
20589
20590 ; return 0; }
20591 EOF
20592 if { (eval echo configure:20584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20593   rm -rf conftest*
20594   eval "ac_cv_func_$ac_func=yes"
20595 else
20596   echo "configure: failed program was:" >&5
20597   cat conftest.$ac_ext >&5
20598   rm -rf conftest*
20599   eval "ac_cv_func_$ac_func=no"
20600 fi
20601 rm -f conftest*
20602 fi
20603
20604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20605   echo "$ac_t""yes" 1>&6
20606     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20607   cat >> confdefs.h <<EOF
20608 #define $ac_tr_func 1
20609 EOF
20610  
20611 else
20612   echo "$ac_t""no" 1>&6
20613 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
20614 fi
20615 done
20616
20617   fi
20618
20619   
20620
20621   
20622
20623       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
20624 echo "configure:20616: checking for mbstate_t" >&5
20625   cat > conftest.$ac_ext <<EOF
20626 #line 20618 "configure"
20627 #include "confdefs.h"
20628 #include <wchar.h>
20629 int main() {
20630 mbstate_t teststate;
20631 ; return 0; }
20632 EOF
20633 if { (eval echo configure:20625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20634   rm -rf conftest*
20635   have_mbstate_t=yes
20636 else
20637   echo "configure: failed program was:" >&5
20638   cat conftest.$ac_ext >&5
20639   rm -rf conftest*
20640   have_mbstate_t=no
20641 fi
20642 rm -f conftest*
20643   echo "$ac_t""$have_mbstate_t" 1>&6
20644   if test x"$have_mbstate_t" = xyes; then
20645     cat >> confdefs.h <<\EOF
20646 #define HAVE_MBSTATE_T 1
20647 EOF
20648
20649   fi
20650
20651     for ac_hdr in wchar.h
20652 do
20653 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20654 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20655 echo "configure:20647: checking for $ac_hdr" >&5
20656 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20657   echo $ac_n "(cached) $ac_c" 1>&6
20658 else
20659   cat > conftest.$ac_ext <<EOF
20660 #line 20652 "configure"
20661 #include "confdefs.h"
20662 #include <$ac_hdr>
20663 EOF
20664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20665 { (eval echo configure:20657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20667 if test -z "$ac_err"; then
20668   rm -rf conftest*
20669   eval "ac_cv_header_$ac_safe=yes"
20670 else
20671   echo "$ac_err" >&5
20672   echo "configure: failed program was:" >&5
20673   cat conftest.$ac_ext >&5
20674   rm -rf conftest*
20675   eval "ac_cv_header_$ac_safe=no"
20676 fi
20677 rm -f conftest*
20678 fi
20679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20680   echo "$ac_t""yes" 1>&6
20681     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20682   cat >> confdefs.h <<EOF
20683 #define $ac_tr_hdr 1
20684 EOF
20685  ac_has_wchar_h=yes
20686 else
20687   echo "$ac_t""no" 1>&6
20688 ac_has_wchar_h=no
20689 fi
20690 done
20691
20692   for ac_hdr in wctype.h
20693 do
20694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20696 echo "configure:20688: checking for $ac_hdr" >&5
20697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20698   echo $ac_n "(cached) $ac_c" 1>&6
20699 else
20700   cat > conftest.$ac_ext <<EOF
20701 #line 20693 "configure"
20702 #include "confdefs.h"
20703 #include <$ac_hdr>
20704 EOF
20705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20706 { (eval echo configure:20698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20708 if test -z "$ac_err"; then
20709   rm -rf conftest*
20710   eval "ac_cv_header_$ac_safe=yes"
20711 else
20712   echo "$ac_err" >&5
20713   echo "configure: failed program was:" >&5
20714   cat conftest.$ac_ext >&5
20715   rm -rf conftest*
20716   eval "ac_cv_header_$ac_safe=no"
20717 fi
20718 rm -f conftest*
20719 fi
20720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20721   echo "$ac_t""yes" 1>&6
20722     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20723   cat >> confdefs.h <<EOF
20724 #define $ac_tr_hdr 1
20725 EOF
20726  ac_has_wctype_h=yes
20727 else
20728   echo "$ac_t""no" 1>&6
20729 ac_has_wctype_h=no
20730 fi
20731 done
20732
20733   
20734     if test x"$ac_has_wchar_h" = xyes &&
20735      test x"$ac_has_wctype_h" = xyes &&
20736      test x"$enable_c_mbchar" != xno; then
20737       
20738             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
20739 echo "configure:20731: checking for WCHAR_MIN and WCHAR_MAX" >&5
20740     cat > conftest.$ac_ext <<EOF
20741 #line 20733 "configure"
20742 #include "confdefs.h"
20743 #include <wchar.h>
20744 int main() {
20745 int i = WCHAR_MIN; int j = WCHAR_MAX;
20746 ; return 0; }
20747 EOF
20748 if { (eval echo configure:20740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20749   rm -rf conftest*
20750   has_wchar_minmax=yes
20751 else
20752   echo "configure: failed program was:" >&5
20753   cat conftest.$ac_ext >&5
20754   rm -rf conftest*
20755   has_wchar_minmax=no
20756 fi
20757 rm -f conftest*
20758     echo "$ac_t""$has_wchar_minmax" 1>&6
20759     
20760             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
20761 echo "configure:20753: checking for WEOF" >&5
20762     cat > conftest.$ac_ext <<EOF
20763 #line 20755 "configure"
20764 #include "confdefs.h"
20765
20766       #include <wchar.h>
20767       #include <stddef.h>
20768 int main() {
20769 wint_t i = WEOF;
20770 ; return 0; }
20771 EOF
20772 if { (eval echo configure:20764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20773   rm -rf conftest*
20774   has_weof=yes
20775 else
20776   echo "configure: failed program was:" >&5
20777   cat conftest.$ac_ext >&5
20778   rm -rf conftest*
20779   has_weof=no
20780 fi
20781 rm -f conftest*
20782     echo "$ac_t""$has_weof" 1>&6
20783   
20784         ac_wfuncs=yes
20785     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
20786 do
20787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20788 echo "configure:20780: checking for $ac_func" >&5
20789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20790   echo $ac_n "(cached) $ac_c" 1>&6
20791 else
20792   cat > conftest.$ac_ext <<EOF
20793 #line 20785 "configure"
20794 #include "confdefs.h"
20795 /* System header to define __stub macros and hopefully few prototypes,
20796     which can conflict with char $ac_func(); below.  */
20797 #include <assert.h>
20798 /* Override any gcc2 internal prototype to avoid an error.  */
20799 /* We use char because int might match the return type of a gcc2
20800     builtin and then its argument prototype would still apply.  */
20801 char $ac_func();
20802
20803 int main() {
20804
20805 /* The GNU C library defines this for functions which it implements
20806     to always fail with ENOSYS.  Some functions are actually named
20807     something starting with __ and the normal name is an alias.  */
20808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20809 choke me
20810 #else
20811 $ac_func();
20812 #endif
20813
20814 ; return 0; }
20815 EOF
20816 if { (eval echo configure:20808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20817   rm -rf conftest*
20818   eval "ac_cv_func_$ac_func=yes"
20819 else
20820   echo "configure: failed program was:" >&5
20821   cat conftest.$ac_ext >&5
20822   rm -rf conftest*
20823   eval "ac_cv_func_$ac_func=no"
20824 fi
20825 rm -f conftest*
20826 fi
20827
20828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20829   echo "$ac_t""yes" 1>&6
20830     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20831   cat >> confdefs.h <<EOF
20832 #define $ac_tr_func 1
20833 EOF
20834  
20835 else
20836   echo "$ac_t""no" 1>&6
20837 \
20838     ac_wfuncs=no
20839 fi
20840 done
20841
20842   
20843         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
20844     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
20845     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
20846     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
20847     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
20848     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
20849 do
20850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20851 echo "configure:20843: checking for $ac_func" >&5
20852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20853   echo $ac_n "(cached) $ac_c" 1>&6
20854 else
20855   cat > conftest.$ac_ext <<EOF
20856 #line 20848 "configure"
20857 #include "confdefs.h"
20858 /* System header to define __stub macros and hopefully few prototypes,
20859     which can conflict with char $ac_func(); below.  */
20860 #include <assert.h>
20861 /* Override any gcc2 internal prototype to avoid an error.  */
20862 /* We use char because int might match the return type of a gcc2
20863     builtin and then its argument prototype would still apply.  */
20864 char $ac_func();
20865
20866 int main() {
20867
20868 /* The GNU C library defines this for functions which it implements
20869     to always fail with ENOSYS.  Some functions are actually named
20870     something starting with __ and the normal name is an alias.  */
20871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20872 choke me
20873 #else
20874 $ac_func();
20875 #endif
20876
20877 ; return 0; }
20878 EOF
20879 if { (eval echo configure:20871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20880   rm -rf conftest*
20881   eval "ac_cv_func_$ac_func=yes"
20882 else
20883   echo "configure: failed program was:" >&5
20884   cat conftest.$ac_ext >&5
20885   rm -rf conftest*
20886   eval "ac_cv_func_$ac_func=no"
20887 fi
20888 rm -f conftest*
20889 fi
20890
20891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20892   echo "$ac_t""yes" 1>&6
20893     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20894   cat >> confdefs.h <<EOF
20895 #define $ac_tr_func 1
20896 EOF
20897  
20898 else
20899   echo "$ac_t""no" 1>&6
20900 \
20901     ac_wfuncs=no
20902 fi
20903 done
20904
20905
20906     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
20907 echo "configure:20899: checking for ISO C99 wchar_t support" >&5
20908     if test x"$has_weof" = xyes &&
20909        test x"$has_wchar_minmax" = xyes &&
20910        test x"$ac_wfuncs" = xyes; then
20911       ac_isoC99_wchar_t=yes
20912     else
20913       ac_isoC99_wchar_t=no
20914     fi
20915     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
20916   
20917             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
20918 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
20919 echo "configure:20911: checking for iconv.h" >&5
20920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20921   echo $ac_n "(cached) $ac_c" 1>&6
20922 else
20923   cat > conftest.$ac_ext <<EOF
20924 #line 20916 "configure"
20925 #include "confdefs.h"
20926 #include <iconv.h>
20927 EOF
20928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20929 { (eval echo configure:20921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20931 if test -z "$ac_err"; then
20932   rm -rf conftest*
20933   eval "ac_cv_header_$ac_safe=yes"
20934 else
20935   echo "$ac_err" >&5
20936   echo "configure: failed program was:" >&5
20937   cat conftest.$ac_ext >&5
20938   rm -rf conftest*
20939   eval "ac_cv_header_$ac_safe=no"
20940 fi
20941 rm -f conftest*
20942 fi
20943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20944   echo "$ac_t""yes" 1>&6
20945   ac_has_iconv_h=yes
20946 else
20947   echo "$ac_t""no" 1>&6
20948 ac_has_iconv_h=no
20949 fi
20950
20951     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
20952 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
20953 echo "configure:20945: checking for langinfo.h" >&5
20954 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20955   echo $ac_n "(cached) $ac_c" 1>&6
20956 else
20957   cat > conftest.$ac_ext <<EOF
20958 #line 20950 "configure"
20959 #include "confdefs.h"
20960 #include <langinfo.h>
20961 EOF
20962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20963 { (eval echo configure:20955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20965 if test -z "$ac_err"; then
20966   rm -rf conftest*
20967   eval "ac_cv_header_$ac_safe=yes"
20968 else
20969   echo "$ac_err" >&5
20970   echo "configure: failed program was:" >&5
20971   cat conftest.$ac_ext >&5
20972   rm -rf conftest*
20973   eval "ac_cv_header_$ac_safe=no"
20974 fi
20975 rm -f conftest*
20976 fi
20977 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20978   echo "$ac_t""yes" 1>&6
20979   ac_has_langinfo_h=yes
20980 else
20981   echo "$ac_t""no" 1>&6
20982 ac_has_langinfo_h=no
20983 fi
20984
20985
20986         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
20987 echo "configure:20979: checking for iconv in -liconv" >&5
20988 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
20989 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20990   echo $ac_n "(cached) $ac_c" 1>&6
20991 else
20992   ac_save_LIBS="$LIBS"
20993 LIBS="-liconv  $LIBS"
20994 cat > conftest.$ac_ext <<EOF
20995 #line 20987 "configure"
20996 #include "confdefs.h"
20997 /* Override any gcc2 internal prototype to avoid an error.  */
20998 /* We use char because int might match the return type of a gcc2
20999     builtin and then its argument prototype would still apply.  */
21000 char iconv();
21001
21002 int main() {
21003 iconv()
21004 ; return 0; }
21005 EOF
21006 if { (eval echo configure:20998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21007   rm -rf conftest*
21008   eval "ac_cv_lib_$ac_lib_var=yes"
21009 else
21010   echo "configure: failed program was:" >&5
21011   cat conftest.$ac_ext >&5
21012   rm -rf conftest*
21013   eval "ac_cv_lib_$ac_lib_var=no"
21014 fi
21015 rm -f conftest*
21016 LIBS="$ac_save_LIBS"
21017
21018 fi
21019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21020   echo "$ac_t""yes" 1>&6
21021   libiconv="-liconv"
21022 else
21023   echo "$ac_t""no" 1>&6
21024 fi
21025
21026     ac_save_LIBS="$LIBS"
21027     LIBS="$LIBS $libiconv"
21028
21029     for ac_func in iconv_open iconv_close iconv nl_langinfo
21030 do
21031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21032 echo "configure:21024: checking for $ac_func" >&5
21033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21034   echo $ac_n "(cached) $ac_c" 1>&6
21035 else
21036   cat > conftest.$ac_ext <<EOF
21037 #line 21029 "configure"
21038 #include "confdefs.h"
21039 /* System header to define __stub macros and hopefully few prototypes,
21040     which can conflict with char $ac_func(); below.  */
21041 #include <assert.h>
21042 /* Override any gcc2 internal prototype to avoid an error.  */
21043 /* We use char because int might match the return type of a gcc2
21044     builtin and then its argument prototype would still apply.  */
21045 char $ac_func();
21046
21047 int main() {
21048
21049 /* The GNU C library defines this for functions which it implements
21050     to always fail with ENOSYS.  Some functions are actually named
21051     something starting with __ and the normal name is an alias.  */
21052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21053 choke me
21054 #else
21055 $ac_func();
21056 #endif
21057
21058 ; return 0; }
21059 EOF
21060 if { (eval echo configure:21052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21061   rm -rf conftest*
21062   eval "ac_cv_func_$ac_func=yes"
21063 else
21064   echo "configure: failed program was:" >&5
21065   cat conftest.$ac_ext >&5
21066   rm -rf conftest*
21067   eval "ac_cv_func_$ac_func=no"
21068 fi
21069 rm -f conftest*
21070 fi
21071
21072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21073   echo "$ac_t""yes" 1>&6
21074     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21075   cat >> confdefs.h <<EOF
21076 #define $ac_tr_func 1
21077 EOF
21078  \
21079     ac_XPG2funcs=yes
21080 else
21081   echo "$ac_t""no" 1>&6
21082 ac_XPG2funcs=no
21083 fi
21084 done
21085
21086   
21087     LIBS="$ac_save_LIBS"
21088
21089     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
21090 echo "configure:21082: checking for XPG2 wchar_t support" >&5
21091     if test x"$ac_has_iconv_h" = xyes &&
21092        test x"$ac_has_langinfo_h" = xyes &&
21093        test x"$ac_XPG2funcs" = xyes; then
21094       ac_XPG2_wchar_t=yes
21095     else
21096       ac_XPG2_wchar_t=no
21097     fi
21098     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
21099   
21100             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
21101 echo "configure:21093: checking for enabled wchar_t specializations" >&5
21102     if test x"$ac_isoC99_wchar_t" = xyes &&
21103        test x"$ac_XPG2_wchar_t" = xyes; then
21104       cat >> confdefs.h <<\EOF
21105 #define _GLIBCPP_USE_WCHAR_T 1
21106 EOF
21107
21108       echo "$ac_t"""yes"" 1>&6
21109     else
21110       echo "$ac_t"""no"" 1>&6
21111     fi
21112   else
21113         echo "configure: warning: wchar_t support disabled." 1>&2
21114   fi
21115
21116   
21117   ac_test_CXXFLAGS="${CXXFLAGS+set}"
21118   ac_save_CXXFLAGS="$CXXFLAGS"
21119   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
21120
21121   
21122   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
21123 echo "configure:21115: checking for strtold declaration" >&5
21124   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
21125     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
21126   echo $ac_n "(cached) $ac_c" 1>&6
21127 else
21128   
21129       
21130       ac_ext=C
21131 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21132 ac_cpp='$CXXCPP $CPPFLAGS'
21133 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21134 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21135 cross_compiling=$ac_cv_prog_cxx_cross
21136
21137       cat > conftest.$ac_ext <<EOF
21138 #line 21130 "configure"
21139 #include "confdefs.h"
21140 #include <stdlib.h>
21141 int main() {
21142  strtold(0, 0);
21143 ; return 0; }
21144 EOF
21145 if { (eval echo configure:21137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21146   rm -rf conftest*
21147   glibcpp_cv_func_strtold_use=yes
21148 else
21149   echo "configure: failed program was:" >&5
21150   cat conftest.$ac_ext >&5
21151   rm -rf conftest*
21152   glibcpp_cv_func_strtold_use=no
21153 fi
21154 rm -f conftest*
21155       ac_ext=c
21156 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21157 ac_cpp='$CPP $CPPFLAGS'
21158 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21159 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21160 cross_compiling=$ac_cv_prog_cc_cross
21161
21162     
21163 fi
21164
21165   fi
21166   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
21167   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
21168     for ac_func in strtold
21169 do
21170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21171 echo "configure:21163: checking for $ac_func" >&5
21172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21173   echo $ac_n "(cached) $ac_c" 1>&6
21174 else
21175   cat > conftest.$ac_ext <<EOF
21176 #line 21168 "configure"
21177 #include "confdefs.h"
21178 /* System header to define __stub macros and hopefully few prototypes,
21179     which can conflict with char $ac_func(); below.  */
21180 #include <assert.h>
21181 /* Override any gcc2 internal prototype to avoid an error.  */
21182 /* We use char because int might match the return type of a gcc2
21183     builtin and then its argument prototype would still apply.  */
21184 char $ac_func();
21185
21186 int main() {
21187
21188 /* The GNU C library defines this for functions which it implements
21189     to always fail with ENOSYS.  Some functions are actually named
21190     something starting with __ and the normal name is an alias.  */
21191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21192 choke me
21193 #else
21194 $ac_func();
21195 #endif
21196
21197 ; return 0; }
21198 EOF
21199 if { (eval echo configure:21191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21200   rm -rf conftest*
21201   eval "ac_cv_func_$ac_func=yes"
21202 else
21203   echo "configure: failed program was:" >&5
21204   cat conftest.$ac_ext >&5
21205   rm -rf conftest*
21206   eval "ac_cv_func_$ac_func=no"
21207 fi
21208 rm -f conftest*
21209 fi
21210
21211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21212   echo "$ac_t""yes" 1>&6
21213     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21214   cat >> confdefs.h <<EOF
21215 #define $ac_tr_func 1
21216 EOF
21217  
21218 else
21219   echo "$ac_t""no" 1>&6
21220 fi
21221 done
21222     
21223   fi
21224
21225   
21226   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
21227 echo "configure:21219: checking for strtof declaration" >&5
21228   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
21229     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
21230   echo $ac_n "(cached) $ac_c" 1>&6
21231 else
21232   
21233       
21234       ac_ext=C
21235 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21236 ac_cpp='$CXXCPP $CPPFLAGS'
21237 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21238 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21239 cross_compiling=$ac_cv_prog_cxx_cross
21240
21241       cat > conftest.$ac_ext <<EOF
21242 #line 21234 "configure"
21243 #include "confdefs.h"
21244 #include <stdlib.h>
21245 int main() {
21246  strtof(0, 0);
21247 ; return 0; }
21248 EOF
21249 if { (eval echo configure:21241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21250   rm -rf conftest*
21251   glibcpp_cv_func_strtof_use=yes
21252 else
21253   echo "configure: failed program was:" >&5
21254   cat conftest.$ac_ext >&5
21255   rm -rf conftest*
21256   glibcpp_cv_func_strtof_use=no
21257 fi
21258 rm -f conftest*
21259       ac_ext=c
21260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21261 ac_cpp='$CPP $CPPFLAGS'
21262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21264 cross_compiling=$ac_cv_prog_cc_cross
21265
21266     
21267 fi
21268
21269   fi
21270   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
21271   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
21272     for ac_func in strtof
21273 do
21274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21275 echo "configure:21267: checking for $ac_func" >&5
21276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21277   echo $ac_n "(cached) $ac_c" 1>&6
21278 else
21279   cat > conftest.$ac_ext <<EOF
21280 #line 21272 "configure"
21281 #include "confdefs.h"
21282 /* System header to define __stub macros and hopefully few prototypes,
21283     which can conflict with char $ac_func(); below.  */
21284 #include <assert.h>
21285 /* Override any gcc2 internal prototype to avoid an error.  */
21286 /* We use char because int might match the return type of a gcc2
21287     builtin and then its argument prototype would still apply.  */
21288 char $ac_func();
21289
21290 int main() {
21291
21292 /* The GNU C library defines this for functions which it implements
21293     to always fail with ENOSYS.  Some functions are actually named
21294     something starting with __ and the normal name is an alias.  */
21295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21296 choke me
21297 #else
21298 $ac_func();
21299 #endif
21300
21301 ; return 0; }
21302 EOF
21303 if { (eval echo configure:21295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21304   rm -rf conftest*
21305   eval "ac_cv_func_$ac_func=yes"
21306 else
21307   echo "configure: failed program was:" >&5
21308   cat conftest.$ac_ext >&5
21309   rm -rf conftest*
21310   eval "ac_cv_func_$ac_func=no"
21311 fi
21312 rm -f conftest*
21313 fi
21314
21315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21316   echo "$ac_t""yes" 1>&6
21317     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21318   cat >> confdefs.h <<EOF
21319 #define $ac_tr_func 1
21320 EOF
21321  
21322 else
21323   echo "$ac_t""no" 1>&6
21324 fi
21325 done
21326     
21327   fi
21328
21329   for ac_func in drand48
21330 do
21331 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21332 echo "configure:21324: checking for $ac_func" >&5
21333 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21334   echo $ac_n "(cached) $ac_c" 1>&6
21335 else
21336   cat > conftest.$ac_ext <<EOF
21337 #line 21329 "configure"
21338 #include "confdefs.h"
21339 /* System header to define __stub macros and hopefully few prototypes,
21340     which can conflict with char $ac_func(); below.  */
21341 #include <assert.h>
21342 /* Override any gcc2 internal prototype to avoid an error.  */
21343 /* We use char because int might match the return type of a gcc2
21344     builtin and then its argument prototype would still apply.  */
21345 char $ac_func();
21346
21347 int main() {
21348
21349 /* The GNU C library defines this for functions which it implements
21350     to always fail with ENOSYS.  Some functions are actually named
21351     something starting with __ and the normal name is an alias.  */
21352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21353 choke me
21354 #else
21355 $ac_func();
21356 #endif
21357
21358 ; return 0; }
21359 EOF
21360 if { (eval echo configure:21352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21361   rm -rf conftest*
21362   eval "ac_cv_func_$ac_func=yes"
21363 else
21364   echo "configure: failed program was:" >&5
21365   cat conftest.$ac_ext >&5
21366   rm -rf conftest*
21367   eval "ac_cv_func_$ac_func=no"
21368 fi
21369 rm -f conftest*
21370 fi
21371
21372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21373   echo "$ac_t""yes" 1>&6
21374     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21375   cat >> confdefs.h <<EOF
21376 #define $ac_tr_func 1
21377 EOF
21378  
21379 else
21380   echo "$ac_t""no" 1>&6
21381 fi
21382 done
21383
21384
21385   CXXFLAGS="$ac_save_CXXFLAGS"
21386
21387   
21388   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
21389 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
21390 echo "configure:21382: checking for locale.h" >&5
21391 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21392   echo $ac_n "(cached) $ac_c" 1>&6
21393 else
21394   cat > conftest.$ac_ext <<EOF
21395 #line 21387 "configure"
21396 #include "confdefs.h"
21397 #include <locale.h>
21398 EOF
21399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21400 { (eval echo configure:21392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21402 if test -z "$ac_err"; then
21403   rm -rf conftest*
21404   eval "ac_cv_header_$ac_safe=yes"
21405 else
21406   echo "$ac_err" >&5
21407   echo "configure: failed program was:" >&5
21408   cat conftest.$ac_ext >&5
21409   rm -rf conftest*
21410   eval "ac_cv_header_$ac_safe=no"
21411 fi
21412 rm -f conftest*
21413 fi
21414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21415   echo "$ac_t""yes" 1>&6
21416   
21417     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
21418 echo "configure:21410: checking for LC_MESSAGES" >&5
21419 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
21420   echo $ac_n "(cached) $ac_c" 1>&6
21421 else
21422   cat > conftest.$ac_ext <<EOF
21423 #line 21415 "configure"
21424 #include "confdefs.h"
21425 #include <locale.h>
21426 int main() {
21427 return LC_MESSAGES
21428 ; return 0; }
21429 EOF
21430 if { (eval echo configure:21422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21431   rm -rf conftest*
21432   ac_cv_val_LC_MESSAGES=yes
21433 else
21434   echo "configure: failed program was:" >&5
21435   cat conftest.$ac_ext >&5
21436   rm -rf conftest*
21437   ac_cv_val_LC_MESSAGES=no
21438 fi
21439 rm -f conftest*
21440 fi
21441
21442 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
21443     if test $ac_cv_val_LC_MESSAGES = yes; then
21444       cat >> confdefs.h <<\EOF
21445 #define HAVE_LC_MESSAGES 1
21446 EOF
21447
21448     fi
21449   
21450 else
21451   echo "$ac_t""no" 1>&6
21452 fi
21453
21454
21455
21456   cat > conftest.$ac_ext <<EOF
21457 #line 21449 "configure"
21458 #include "confdefs.h"
21459
21460   #include <setjmp.h>
21461   
21462 int main() {
21463 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21464 ; return 0; }
21465 EOF
21466 if { (eval echo configure:21458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21467   rm -rf conftest*
21468   cat >> confdefs.h <<\EOF
21469 #define HAVE_SIGSETJMP 1
21470 EOF
21471
21472   
21473 else
21474   echo "configure: failed program was:" >&5
21475   cat conftest.$ac_ext >&5
21476 fi
21477 rm -f conftest*
21478
21479   for ac_hdr in unistd.h
21480 do
21481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21483 echo "configure:21475: checking for $ac_hdr" >&5
21484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21485   echo $ac_n "(cached) $ac_c" 1>&6
21486 else
21487   cat > conftest.$ac_ext <<EOF
21488 #line 21480 "configure"
21489 #include "confdefs.h"
21490 #include <$ac_hdr>
21491 EOF
21492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21493 { (eval echo configure:21485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21495 if test -z "$ac_err"; then
21496   rm -rf conftest*
21497   eval "ac_cv_header_$ac_safe=yes"
21498 else
21499   echo "$ac_err" >&5
21500   echo "configure: failed program was:" >&5
21501   cat conftest.$ac_ext >&5
21502   rm -rf conftest*
21503   eval "ac_cv_header_$ac_safe=no"
21504 fi
21505 rm -f conftest*
21506 fi
21507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21508   echo "$ac_t""yes" 1>&6
21509     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21510   cat >> confdefs.h <<EOF
21511 #define $ac_tr_hdr 1
21512 EOF
21513  
21514 else
21515   echo "$ac_t""no" 1>&6
21516 fi
21517 done
21518
21519 for ac_func in getpagesize
21520 do
21521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21522 echo "configure:21514: checking for $ac_func" >&5
21523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21524   echo $ac_n "(cached) $ac_c" 1>&6
21525 else
21526   cat > conftest.$ac_ext <<EOF
21527 #line 21519 "configure"
21528 #include "confdefs.h"
21529 /* System header to define __stub macros and hopefully few prototypes,
21530     which can conflict with char $ac_func(); below.  */
21531 #include <assert.h>
21532 /* Override any gcc2 internal prototype to avoid an error.  */
21533 /* We use char because int might match the return type of a gcc2
21534     builtin and then its argument prototype would still apply.  */
21535 char $ac_func();
21536
21537 int main() {
21538
21539 /* The GNU C library defines this for functions which it implements
21540     to always fail with ENOSYS.  Some functions are actually named
21541     something starting with __ and the normal name is an alias.  */
21542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21543 choke me
21544 #else
21545 $ac_func();
21546 #endif
21547
21548 ; return 0; }
21549 EOF
21550 if { (eval echo configure:21542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21551   rm -rf conftest*
21552   eval "ac_cv_func_$ac_func=yes"
21553 else
21554   echo "configure: failed program was:" >&5
21555   cat conftest.$ac_ext >&5
21556   rm -rf conftest*
21557   eval "ac_cv_func_$ac_func=no"
21558 fi
21559 rm -f conftest*
21560 fi
21561
21562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21563   echo "$ac_t""yes" 1>&6
21564     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21565   cat >> confdefs.h <<EOF
21566 #define $ac_tr_func 1
21567 EOF
21568  
21569 else
21570   echo "$ac_t""no" 1>&6
21571 fi
21572 done
21573
21574 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
21575 echo "configure:21567: checking for working mmap" >&5
21576 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
21577   echo $ac_n "(cached) $ac_c" 1>&6
21578 else
21579   if test "$cross_compiling" = yes; then
21580   ac_cv_func_mmap_fixed_mapped=no
21581 else
21582   cat > conftest.$ac_ext <<EOF
21583 #line 21575 "configure"
21584 #include "confdefs.h"
21585
21586 /* Thanks to Mike Haertel and Jim Avera for this test.
21587    Here is a matrix of mmap possibilities:
21588         mmap private not fixed
21589         mmap private fixed at somewhere currently unmapped
21590         mmap private fixed at somewhere already mapped
21591         mmap shared not fixed
21592         mmap shared fixed at somewhere currently unmapped
21593         mmap shared fixed at somewhere already mapped
21594    For private mappings, we should verify that changes cannot be read()
21595    back from the file, nor mmap's back from the file at a different
21596    address.  (There have been systems where private was not correctly
21597    implemented like the infamous i386 svr4.0, and systems where the
21598    VM page cache was not coherent with the filesystem buffer cache
21599    like early versions of FreeBSD and possibly contemporary NetBSD.)
21600    For shared mappings, we should conversely verify that changes get
21601    propogated back to all the places they're supposed to be.
21602
21603    Grep wants private fixed already mapped.
21604    The main things grep needs to know about mmap are:
21605    * does it exist and is it safe to write into the mmap'd area
21606    * how to use it (BSD variants)  */
21607 #include <sys/types.h>
21608 #include <fcntl.h>
21609 #include <sys/mman.h>
21610
21611 /* This mess was copied from the GNU getpagesize.h.  */
21612 #ifndef HAVE_GETPAGESIZE
21613 # ifdef HAVE_UNISTD_H
21614 #  include <unistd.h>
21615 # endif
21616
21617 /* Assume that all systems that can run configure have sys/param.h.  */
21618 # ifndef HAVE_SYS_PARAM_H
21619 #  define HAVE_SYS_PARAM_H 1
21620 # endif
21621
21622 # ifdef _SC_PAGESIZE
21623 #  define getpagesize() sysconf(_SC_PAGESIZE)
21624 # else /* no _SC_PAGESIZE */
21625 #  ifdef HAVE_SYS_PARAM_H
21626 #   include <sys/param.h>
21627 #   ifdef EXEC_PAGESIZE
21628 #    define getpagesize() EXEC_PAGESIZE
21629 #   else /* no EXEC_PAGESIZE */
21630 #    ifdef NBPG
21631 #     define getpagesize() NBPG * CLSIZE
21632 #     ifndef CLSIZE
21633 #      define CLSIZE 1
21634 #     endif /* no CLSIZE */
21635 #    else /* no NBPG */
21636 #     ifdef NBPC
21637 #      define getpagesize() NBPC
21638 #     else /* no NBPC */
21639 #      ifdef PAGESIZE
21640 #       define getpagesize() PAGESIZE
21641 #      endif /* PAGESIZE */
21642 #     endif /* no NBPC */
21643 #    endif /* no NBPG */
21644 #   endif /* no EXEC_PAGESIZE */
21645 #  else /* no HAVE_SYS_PARAM_H */
21646 #   define getpagesize() 8192   /* punt totally */
21647 #  endif /* no HAVE_SYS_PARAM_H */
21648 # endif /* no _SC_PAGESIZE */
21649
21650 #endif /* no HAVE_GETPAGESIZE */
21651
21652 #ifdef __cplusplus
21653 extern "C" { void *malloc(unsigned); }
21654 #else
21655 char *malloc();
21656 #endif
21657
21658 int
21659 main()
21660 {
21661         char *data, *data2, *data3;
21662         int i, pagesize;
21663         int fd;
21664
21665         pagesize = getpagesize();
21666
21667         /*
21668          * First, make a file with some known garbage in it.
21669          */
21670         data = malloc(pagesize);
21671         if (!data)
21672                 exit(1);
21673         for (i = 0; i < pagesize; ++i)
21674                 *(data + i) = rand();
21675         umask(0);
21676         fd = creat("conftestmmap", 0600);
21677         if (fd < 0)
21678                 exit(1);
21679         if (write(fd, data, pagesize) != pagesize)
21680                 exit(1);
21681         close(fd);
21682
21683         /*
21684          * Next, try to mmap the file at a fixed address which
21685          * already has something else allocated at it.  If we can,
21686          * also make sure that we see the same garbage.
21687          */
21688         fd = open("conftestmmap", O_RDWR);
21689         if (fd < 0)
21690                 exit(1);
21691         data2 = malloc(2 * pagesize);
21692         if (!data2)
21693                 exit(1);
21694         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21695         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
21696             MAP_PRIVATE | MAP_FIXED, fd, 0L))
21697                 exit(1);
21698         for (i = 0; i < pagesize; ++i)
21699                 if (*(data + i) != *(data2 + i))
21700                         exit(1);
21701
21702         /*
21703          * Finally, make sure that changes to the mapped area
21704          * do not percolate back to the file as seen by read().
21705          * (This is a bug on some variants of i386 svr4.0.)
21706          */
21707         for (i = 0; i < pagesize; ++i)
21708                 *(data2 + i) = *(data2 + i) + 1;
21709         data3 = malloc(pagesize);
21710         if (!data3)
21711                 exit(1);
21712         if (read(fd, data3, pagesize) != pagesize)
21713                 exit(1);
21714         for (i = 0; i < pagesize; ++i)
21715                 if (*(data + i) != *(data3 + i))
21716                         exit(1);
21717         close(fd);
21718         unlink("conftestmmap");
21719         exit(0);
21720 }
21721
21722 EOF
21723 if { (eval echo configure:21715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21724 then
21725   ac_cv_func_mmap_fixed_mapped=yes
21726 else
21727   echo "configure: failed program was:" >&5
21728   cat conftest.$ac_ext >&5
21729   rm -fr conftest*
21730   ac_cv_func_mmap_fixed_mapped=no
21731 fi
21732 rm -fr conftest*
21733 fi
21734
21735 fi
21736
21737 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
21738 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21739   cat >> confdefs.h <<\EOF
21740 #define HAVE_MMAP 1
21741 EOF
21742
21743 fi
21744
21745
21746   # Establish limits on memory usage during 'make check'
21747   
21748   
21749   setrlimit_have_headers=yes
21750   for ac_hdr in unistd.h sys/time.h sys/resource.h
21751 do
21752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21754 echo "configure:21746: checking for $ac_hdr" >&5
21755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21756   echo $ac_n "(cached) $ac_c" 1>&6
21757 else
21758   cat > conftest.$ac_ext <<EOF
21759 #line 21751 "configure"
21760 #include "confdefs.h"
21761 #include <$ac_hdr>
21762 EOF
21763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21764 { (eval echo configure:21756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21766 if test -z "$ac_err"; then
21767   rm -rf conftest*
21768   eval "ac_cv_header_$ac_safe=yes"
21769 else
21770   echo "$ac_err" >&5
21771   echo "configure: failed program was:" >&5
21772   cat conftest.$ac_ext >&5
21773   rm -rf conftest*
21774   eval "ac_cv_header_$ac_safe=no"
21775 fi
21776 rm -f conftest*
21777 fi
21778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21779   echo "$ac_t""yes" 1>&6
21780     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21781   cat >> confdefs.h <<EOF
21782 #define $ac_tr_hdr 1
21783 EOF
21784  
21785 else
21786   echo "$ac_t""no" 1>&6
21787 setrlimit_have_headers=no
21788 fi
21789 done
21790
21791   # If don't have the headers, then we can't run the tests now, and we
21792   # won't be seeing any of these during testsuite compilation.
21793   if test $setrlimit_have_headers = yes; then
21794     # Can't do these in a loop, else the resulting syntax is wrong.
21795     
21796   cat > conftest.$ac_ext <<EOF
21797 #line 21789 "configure"
21798 #include "confdefs.h"
21799 #include <unistd.h>
21800                   #include <sys/time.h>
21801                   #include <sys/resource.h>
21802                  
21803 int main() {
21804  int f = RLIMIT_DATA ; 
21805 ; return 0; }
21806 EOF
21807 if { (eval echo configure:21799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21808   rm -rf conftest*
21809   glibcpp_mresult=1
21810 else
21811   echo "configure: failed program was:" >&5
21812   cat conftest.$ac_ext >&5
21813   rm -rf conftest*
21814   glibcpp_mresult=0
21815 fi
21816 rm -f conftest*
21817   cat >> confdefs.h <<EOF
21818 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
21819 EOF
21820
21821
21822     
21823   cat > conftest.$ac_ext <<EOF
21824 #line 21816 "configure"
21825 #include "confdefs.h"
21826 #include <unistd.h>
21827                   #include <sys/time.h>
21828                   #include <sys/resource.h>
21829                  
21830 int main() {
21831  int f = RLIMIT_RSS ; 
21832 ; return 0; }
21833 EOF
21834 if { (eval echo configure:21826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21835   rm -rf conftest*
21836   glibcpp_mresult=1
21837 else
21838   echo "configure: failed program was:" >&5
21839   cat conftest.$ac_ext >&5
21840   rm -rf conftest*
21841   glibcpp_mresult=0
21842 fi
21843 rm -f conftest*
21844   cat >> confdefs.h <<EOF
21845 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
21846 EOF
21847
21848
21849     
21850   cat > conftest.$ac_ext <<EOF
21851 #line 21843 "configure"
21852 #include "confdefs.h"
21853 #include <unistd.h>
21854                   #include <sys/time.h>
21855                   #include <sys/resource.h>
21856                  
21857 int main() {
21858  int f = RLIMIT_VMEM ; 
21859 ; return 0; }
21860 EOF
21861 if { (eval echo configure:21853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21862   rm -rf conftest*
21863   glibcpp_mresult=1
21864 else
21865   echo "configure: failed program was:" >&5
21866   cat conftest.$ac_ext >&5
21867   rm -rf conftest*
21868   glibcpp_mresult=0
21869 fi
21870 rm -f conftest*
21871   cat >> confdefs.h <<EOF
21872 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
21873 EOF
21874
21875
21876     
21877   cat > conftest.$ac_ext <<EOF
21878 #line 21870 "configure"
21879 #include "confdefs.h"
21880 #include <unistd.h>
21881                   #include <sys/time.h>
21882                   #include <sys/resource.h>
21883                  
21884 int main() {
21885  int f = RLIMIT_AS ; 
21886 ; return 0; }
21887 EOF
21888 if { (eval echo configure:21880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21889   rm -rf conftest*
21890   glibcpp_mresult=1
21891 else
21892   echo "configure: failed program was:" >&5
21893   cat conftest.$ac_ext >&5
21894   rm -rf conftest*
21895   glibcpp_mresult=0
21896 fi
21897 rm -f conftest*
21898   cat >> confdefs.h <<EOF
21899 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
21900 EOF
21901
21902
21903
21904     # Check for rlimit, setrlimit.
21905     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
21906   echo $ac_n "(cached) $ac_c" 1>&6
21907 else
21908   
21909       cat > conftest.$ac_ext <<EOF
21910 #line 21902 "configure"
21911 #include "confdefs.h"
21912 #include <unistd.h>
21913                   #include <sys/time.h>
21914                   #include <sys/resource.h>
21915                      
21916 int main() {
21917  struct rlimit r; setrlimit(0, &r);
21918 ; return 0; }
21919 EOF
21920 if { (eval echo configure:21912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21921   rm -rf conftest*
21922   ac_setrlimit=yes
21923 else
21924   echo "configure: failed program was:" >&5
21925   cat conftest.$ac_ext >&5
21926   rm -rf conftest*
21927   ac_setrlimit=no
21928 fi
21929 rm -f conftest*
21930     
21931 fi
21932
21933   fi
21934
21935   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
21936 echo "configure:21928: checking for testsuite memory limit support" >&5
21937   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
21938     ac_mem_limits=yes
21939     cat >> confdefs.h <<\EOF
21940 #define _GLIBCPP_MEM_LIMITS 1
21941 EOF
21942
21943   else
21944     ac_mem_limits=no
21945   fi
21946   echo "$ac_t""$ac_mem_limits" 1>&6
21947
21948
21949   # Look for setenv, so that extended locale tests can be performed.
21950   
21951   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
21952 echo "configure:21944: checking for setenv declaration" >&5
21953   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
21954     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
21955   echo $ac_n "(cached) $ac_c" 1>&6
21956 else
21957   
21958       
21959       ac_ext=C
21960 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21961 ac_cpp='$CXXCPP $CPPFLAGS'
21962 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21963 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21964 cross_compiling=$ac_cv_prog_cxx_cross
21965
21966       cat > conftest.$ac_ext <<EOF
21967 #line 21959 "configure"
21968 #include "confdefs.h"
21969 #include <stdlib.h>
21970 int main() {
21971  setenv(0, 0, 0);
21972 ; return 0; }
21973 EOF
21974 if { (eval echo configure:21966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21975   rm -rf conftest*
21976   glibcpp_cv_func_setenv_use=yes
21977 else
21978   echo "configure: failed program was:" >&5
21979   cat conftest.$ac_ext >&5
21980   rm -rf conftest*
21981   glibcpp_cv_func_setenv_use=no
21982 fi
21983 rm -f conftest*
21984       ac_ext=c
21985 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21986 ac_cpp='$CPP $CPPFLAGS'
21987 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21988 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21989 cross_compiling=$ac_cv_prog_cc_cross
21990
21991     
21992 fi
21993
21994   fi
21995   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
21996   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
21997     for ac_func in setenv
21998 do
21999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22000 echo "configure:21992: checking for $ac_func" >&5
22001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22002   echo $ac_n "(cached) $ac_c" 1>&6
22003 else
22004   cat > conftest.$ac_ext <<EOF
22005 #line 21997 "configure"
22006 #include "confdefs.h"
22007 /* System header to define __stub macros and hopefully few prototypes,
22008     which can conflict with char $ac_func(); below.  */
22009 #include <assert.h>
22010 /* Override any gcc2 internal prototype to avoid an error.  */
22011 /* We use char because int might match the return type of a gcc2
22012     builtin and then its argument prototype would still apply.  */
22013 char $ac_func();
22014
22015 int main() {
22016
22017 /* The GNU C library defines this for functions which it implements
22018     to always fail with ENOSYS.  Some functions are actually named
22019     something starting with __ and the normal name is an alias.  */
22020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22021 choke me
22022 #else
22023 $ac_func();
22024 #endif
22025
22026 ; return 0; }
22027 EOF
22028 if { (eval echo configure:22020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22029   rm -rf conftest*
22030   eval "ac_cv_func_$ac_func=yes"
22031 else
22032   echo "configure: failed program was:" >&5
22033   cat conftest.$ac_ext >&5
22034   rm -rf conftest*
22035   eval "ac_cv_func_$ac_func=no"
22036 fi
22037 rm -f conftest*
22038 fi
22039
22040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22041   echo "$ac_t""yes" 1>&6
22042     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22043   cat >> confdefs.h <<EOF
22044 #define $ac_tr_func 1
22045 EOF
22046  
22047 else
22048   echo "$ac_t""no" 1>&6
22049 fi
22050 done
22051     
22052   fi
22053
22054
22055   # Export file names for ABI checking.
22056   baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
22057   
22058
22059   # Don't do ABI checking unless native.
22060   
22061
22062 if test x"$build" = x"$host" && test -z "$with_cross_host"; then
22063   GLIBCPP_BUILD_ABI_CHECK_TRUE=
22064   GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
22065 else
22066   GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
22067   GLIBCPP_BUILD_ABI_CHECK_FALSE=
22068 fi
22069
22070 fi
22071
22072 # This depends on the possibly-skipped linker test above.
22073 # Check whether --enable-symvers or --disable-symvers was given.
22074 if test "${enable_symvers+set}" = set; then
22075   enableval="$enable_symvers"
22076   case "$enableval" in
22077  yes) enable_symvers=yes ;;
22078  no)  enable_symvers=no ;;
22079  # other names here, just as sanity checks
22080  #gnu|sun|etcetera) enable_symvers=$enableval ;;
22081  gnu) enable_symvers=$enableval ;;
22082  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
22083  esac
22084 else
22085   enable_symvers=yes
22086 fi
22087
22088 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
22089 # don't know enough about $LD to do tricks... 
22090 if test x$enable_shared = xno || 
22091         test "x$LD" = x || 
22092         test x$glibcpp_gnu_ld_version = x; then
22093   enable_symvers=no
22094 fi
22095
22096 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
22097 if test $enable_symvers != no; then
22098   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
22099 echo "configure:22091: checking for shared libgcc" >&5
22100   ac_save_CFLAGS="$CFLAGS"
22101   CFLAGS=' -lgcc_s'
22102   cat > conftest.$ac_ext <<EOF
22103 #line 22095 "configure"
22104 #include "confdefs.h"
22105
22106 int main() {
22107 return 0
22108 ; return 0; }
22109 EOF
22110 if { (eval echo configure:22102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22111   rm -rf conftest*
22112   glibcpp_shared_libgcc=yes
22113 else
22114   echo "configure: failed program was:" >&5
22115   cat conftest.$ac_ext >&5
22116   rm -rf conftest*
22117   glibcpp_shared_libgcc=no
22118 fi
22119 rm -f conftest*
22120   CFLAGS="$ac_save_CFLAGS"
22121   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
22122 fi
22123
22124 # For GNU ld, we need at least this version.  It's 2.12 in the same format
22125 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
22126 glibcpp_min_gnu_ld_version=21200
22127
22128 # Check to see if unspecified "yes" value can win, given results
22129 # above.  
22130 if test $enable_symvers = yes ; then
22131   if test $with_gnu_ld = yes &&
22132     test $glibcpp_shared_libgcc = yes ;
22133   then
22134     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
22135         enable_symvers=gnu
22136     else
22137       ac_test_CFLAGS="${CFLAGS+set}"
22138       ac_save_CFLAGS="$CFLAGS"
22139       CFLAGS='-shared -Wl,--version-script,conftest.map'
22140       enable_symvers=no
22141       
22142       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
22143       
22144       cat > conftest.$ac_ext <<EOF
22145 #line 22137 "configure"
22146 #include "confdefs.h"
22147 int foo;
22148 int main() {
22149
22150 ; return 0; }
22151 EOF
22152 if { (eval echo configure:22144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22153   rm -rf conftest*
22154   enable_symvers=gnu
22155 else
22156   echo "configure: failed program was:" >&5
22157   cat conftest.$ac_ext >&5
22158 fi
22159 rm -f conftest*
22160       if test "$ac_test_CFLAGS" = set; then
22161         CFLAGS="$ac_save_CFLAGS"
22162       else
22163         # this is the suspicious part
22164         CFLAGS=''
22165       fi
22166       rm -f conftest.map
22167     fi
22168   else
22169     # just fail for now
22170     enable_symvers=no
22171   fi
22172 fi
22173
22174 case $enable_symvers in
22175   no)
22176       LINKER_MAP=config/linker-map.dummy
22177       ;;
22178   gnu)
22179       LINKER_MAP=config/linker-map.gnu
22180       ;;
22181 esac
22182
22183
22184
22185
22186 if test $enable_symvers != no; then
22187   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
22188   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
22189 else
22190   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
22191   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
22192 fi
22193 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
22194 echo "configure:22186: checking versioning on shared library symbols" >&5
22195 echo "$ac_t""$enable_symvers" 1>&6
22196
22197
22198 # Propagate the target-specific source directories through the build chain.
22199 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH and
22200 # CPULIMITSH [might] use it, and they only get used here.)
22201 OS_INC_SRCDIR=config/${os_include_dir}
22202 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
22203 CPU_LIMITS_INC_SRCDIR=config/${CPULIMITSH}
22204
22205
22206
22207
22208 # Set up cross-compile flags
22209   
22210
22211 if test "$CANADIAN" = yes; then
22212   CANADIAN_TRUE=
22213   CANADIAN_FALSE='#'
22214 else
22215   CANADIAN_TRUE='#'
22216   CANADIAN_FALSE=
22217 fi
22218  
22219 cat > confcache <<\EOF
22220 # This file is a shell script that caches the results of configure
22221 # tests run on this system so they can be shared between configure
22222 # scripts and configure runs.  It is not useful on other systems.
22223 # If it contains results you don't want to keep, you may remove or edit it.
22224 #
22225 # By default, configure uses ./config.cache as the cache file,
22226 # creating it if it does not exist already.  You can give configure
22227 # the --cache-file=FILE option to use a different cache file; that is
22228 # what configure does when it calls configure scripts in
22229 # subdirectories, so they share the cache.
22230 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22231 # config.status only pays attention to the cache file if you give it the
22232 # --recheck option to rerun configure.
22233 #
22234 EOF
22235 # The following way of writing the cache mishandles newlines in values,
22236 # but we know of no workaround that is simple, portable, and efficient.
22237 # So, don't put newlines in cache variables' values.
22238 # Ultrix sh set writes to stderr and can't be redirected directly,
22239 # and sets the high bit in the cache file unless we assign to the vars.
22240 (set) 2>&1 |
22241   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22242   *ac_space=\ *)
22243     # `set' does not quote correctly, so add quotes (double-quote substitution
22244     # turns \\\\ into \\, and sed turns \\ into \).
22245     sed -n \
22246       -e "s/'/'\\\\''/g" \
22247       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22248     ;;
22249   *)
22250     # `set' quotes correctly as required by POSIX, so do not add quotes.
22251     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22252     ;;
22253   esac >> confcache
22254 if cmp -s $cache_file confcache; then
22255   :
22256 else
22257   if test -w $cache_file; then
22258     echo "updating cache $cache_file"
22259     cat confcache > $cache_file
22260   else
22261     echo "not updating unwritable cache $cache_file"
22262   fi
22263 fi
22264 rm -f confcache
22265
22266
22267 if test "${multilib}" = "yes"; then
22268   multilib_arg="--enable-multilib"
22269 else
22270   multilib_arg=
22271 fi
22272
22273 # Export all the install information
22274
22275 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
22276 # exported correctly in GLIBCPP_CONFIGURE.
22277 glibcpp_toolexecdir=no
22278 glibcpp_toolexeclibdir=no
22279 glibcpp_prefixdir=${prefix}
22280
22281 # Process the option --with-gxx-include-dir=<path to include-files directory>
22282 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
22283 echo "configure:22275: checking for --with-gxx-include-dir" >&5
22284 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
22285 if test "${with_gxx_include_dir+set}" = set; then
22286   withval="$with_gxx_include_dir"
22287   case "${withval}" in
22288   yes)
22289     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
22290     gxx_include_dir=no
22291     ;;
22292   no)
22293     gxx_include_dir=no
22294     ;;
22295   *)
22296     gxx_include_dir=${withval}
22297     ;;
22298 esac
22299 else
22300   gxx_include_dir=no
22301 fi
22302
22303 echo "$ac_t""$gxx_include_dir" 1>&6
22304
22305 # Process the option "--enable-version-specific-runtime-libs"
22306 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
22307 echo "configure:22299: checking for --enable-version-specific-runtime-libs" >&5
22308 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
22309 if test "${enable_version_specific_runtime_libs+set}" = set; then
22310   enableval="$enable_version_specific_runtime_libs"
22311   case "$enableval" in
22312  yes) version_specific_libs=yes ;;
22313  no)  version_specific_libs=no ;;
22314  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
22315  esac
22316 else
22317   version_specific_libs=no
22318 fi
22319 # Option set, now we can test it.
22320 echo "$ac_t""$version_specific_libs" 1>&6
22321
22322 # Default case for install directory for include files.
22323 if test $version_specific_libs = no && test $gxx_include_dir = no; then
22324   gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
22325 fi
22326
22327 # Version-specific runtime libs processing.
22328 if test $version_specific_libs = yes; then
22329   # Need the gcc compiler version to know where to install libraries
22330   # and header files if --enable-version-specific-runtime-libs option
22331   # is selected.
22332   if test x"$gxx_include_dir" = x"no"; then
22333     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
22334   fi
22335   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22336   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
22337 fi
22338
22339 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
22340 # Install a library built with a cross compiler in tooldir, not libdir.
22341 if test x"$glibcpp_toolexecdir" = x"no"; then 
22342   if test -n "$with_cross_host" &&
22343      test x"$with_cross_host" != x"no"; then
22344     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
22345     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
22346   else
22347     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22348     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
22349   fi
22350 fi
22351
22352 echo $ac_n "checking for install location""... $ac_c" 1>&6
22353 echo "configure:22345: checking for install location" >&5
22354 echo "$ac_t""$gxx_include_dir" 1>&6
22355
22356
22357
22358
22359
22360
22361
22362 # Export all the include and flag information to makefiles.
22363
22364   # Root level of the build directory include sources.
22365   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
22366
22367   # Passed down for canadian crosses.
22368   if test x"$CANADIAN" = xyes; then
22369     TOPLEVEL_INCLUDES='-I$(includedir)'
22370   fi
22371
22372   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
22373
22374   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
22375
22376   if test x"$need_libio" = xyes; then
22377     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
22378     
22379   fi
22380
22381   # Now, export this to all the little Makefiles....
22382   
22383   
22384   
22385   
22386
22387
22388   # Optimization flags that are probably a good idea for thrill-seekers. Just
22389   # uncomment the lines below and make, everything else is ready to go... 
22390   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
22391   OPTIMIZE_CXXFLAGS=
22392   
22393
22394   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
22395   
22396
22397
22398 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
22399    grep "enable shared" > /dev/null; then
22400   LIBSUPCXX_PICFLAGS=-prefer-pic
22401 else
22402   LIBSUPCXX_PICFLAGS=
22403 fi
22404
22405
22406 # Generate the various Makefiles, include files, and scripts.
22407 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
22408 # and libsupc++/Makefile.am so that multilib installs will end up
22409 # installed in the correct place. To work around this not being passed
22410 # down from config-ml.in -> top_srcdir/Makefile.am ->
22411 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
22412 trap '' 1 2 15
22413 cat > confcache <<\EOF
22414 # This file is a shell script that caches the results of configure
22415 # tests run on this system so they can be shared between configure
22416 # scripts and configure runs.  It is not useful on other systems.
22417 # If it contains results you don't want to keep, you may remove or edit it.
22418 #
22419 # By default, configure uses ./config.cache as the cache file,
22420 # creating it if it does not exist already.  You can give configure
22421 # the --cache-file=FILE option to use a different cache file; that is
22422 # what configure does when it calls configure scripts in
22423 # subdirectories, so they share the cache.
22424 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22425 # config.status only pays attention to the cache file if you give it the
22426 # --recheck option to rerun configure.
22427 #
22428 EOF
22429 # The following way of writing the cache mishandles newlines in values,
22430 # but we know of no workaround that is simple, portable, and efficient.
22431 # So, don't put newlines in cache variables' values.
22432 # Ultrix sh set writes to stderr and can't be redirected directly,
22433 # and sets the high bit in the cache file unless we assign to the vars.
22434 (set) 2>&1 |
22435   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22436   *ac_space=\ *)
22437     # `set' does not quote correctly, so add quotes (double-quote substitution
22438     # turns \\\\ into \\, and sed turns \\ into \).
22439     sed -n \
22440       -e "s/'/'\\\\''/g" \
22441       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22442     ;;
22443   *)
22444     # `set' quotes correctly as required by POSIX, so do not add quotes.
22445     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22446     ;;
22447   esac >> confcache
22448 if cmp -s $cache_file confcache; then
22449   :
22450 else
22451   if test -w $cache_file; then
22452     echo "updating cache $cache_file"
22453     cat confcache > $cache_file
22454   else
22455     echo "not updating unwritable cache $cache_file"
22456   fi
22457 fi
22458 rm -f confcache
22459
22460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22461
22462 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22463 # Let make expand exec_prefix.
22464 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22465
22466 # Any assignment to VPATH causes Sun make to only execute
22467 # the first set of double-colon rules, so remove it if not needed.
22468 # If there is a colon in the path, we need to keep it.
22469 if test "x$srcdir" = x.; then
22470   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
22471 fi
22472
22473 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22474
22475 DEFS=-DHAVE_CONFIG_H
22476
22477 # Without the "./", some shells look in PATH for config.status.
22478 : ${CONFIG_STATUS=./config.status}
22479
22480 echo creating $CONFIG_STATUS
22481 rm -f $CONFIG_STATUS
22482 cat > $CONFIG_STATUS <<EOF
22483 #! /bin/sh
22484 # Generated automatically by configure.
22485 # Run this file to recreate the current configuration.
22486 # This directory was configured as follows,
22487 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22488 #
22489 # $0 $ac_configure_args
22490 #
22491 # Compiler output produced by configure, useful for debugging
22492 # configure, is in ./config.log if it exists.
22493
22494 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22495 for ac_option
22496 do
22497   case "\$ac_option" in
22498   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22499     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22500     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22501   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22502     echo "$CONFIG_STATUS generated by autoconf version 2.13"
22503     exit 0 ;;
22504   -help | --help | --hel | --he | --h)
22505     echo "\$ac_cs_usage"; exit 0 ;;
22506   *) echo "\$ac_cs_usage"; exit 1 ;;
22507   esac
22508 done
22509
22510 ac_given_srcdir=$srcdir
22511 ac_given_INSTALL="$INSTALL"
22512
22513 trap 'rm -fr `echo "Makefile \
22514     include/Makefile src/Makefile \
22515     libmath/Makefile libio/Makefile libsupc++/Makefile \
22516     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22517 EOF
22518 cat >> $CONFIG_STATUS <<EOF
22519
22520 # Protect against being on the right side of a sed subst in config.status.
22521 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22522  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22523 $ac_vpsub
22524 $extrasub
22525 s%@SHELL@%$SHELL%g
22526 s%@CFLAGS@%$CFLAGS%g
22527 s%@CPPFLAGS@%$CPPFLAGS%g
22528 s%@CXXFLAGS@%$CXXFLAGS%g
22529 s%@FFLAGS@%$FFLAGS%g
22530 s%@DEFS@%$DEFS%g
22531 s%@LDFLAGS@%$LDFLAGS%g
22532 s%@LIBS@%$LIBS%g
22533 s%@exec_prefix@%$exec_prefix%g
22534 s%@prefix@%$prefix%g
22535 s%@program_transform_name@%$program_transform_name%g
22536 s%@bindir@%$bindir%g
22537 s%@sbindir@%$sbindir%g
22538 s%@libexecdir@%$libexecdir%g
22539 s%@datadir@%$datadir%g
22540 s%@sysconfdir@%$sysconfdir%g
22541 s%@sharedstatedir@%$sharedstatedir%g
22542 s%@localstatedir@%$localstatedir%g
22543 s%@libdir@%$libdir%g
22544 s%@includedir@%$includedir%g
22545 s%@oldincludedir@%$oldincludedir%g
22546 s%@infodir@%$infodir%g
22547 s%@mandir@%$mandir%g
22548 s%@PACKAGE@%$PACKAGE%g
22549 s%@libtool_VERSION@%$libtool_VERSION%g
22550 s%@toplevel_srcdir@%$toplevel_srcdir%g
22551 s%@host@%$host%g
22552 s%@host_alias@%$host_alias%g
22553 s%@host_cpu@%$host_cpu%g
22554 s%@host_vendor@%$host_vendor%g
22555 s%@host_os@%$host_os%g
22556 s%@target@%$target%g
22557 s%@target_alias@%$target_alias%g
22558 s%@target_cpu@%$target_cpu%g
22559 s%@target_vendor@%$target_vendor%g
22560 s%@target_os@%$target_os%g
22561 s%@build@%$build%g
22562 s%@build_alias@%$build_alias%g
22563 s%@build_cpu@%$build_cpu%g
22564 s%@build_vendor@%$build_vendor%g
22565 s%@build_os@%$build_os%g
22566 s%@glibcpp_builddir@%$glibcpp_builddir%g
22567 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
22568 s%@AWK@%$AWK%g
22569 s%@LN_S@%$LN_S%g
22570 s%@glibcpp_basedir@%$glibcpp_basedir%g
22571 s%@CC@%$CC%g
22572 s%@glibcpp_CXX@%$glibcpp_CXX%g
22573 s%@AS@%$AS%g
22574 s%@AR@%$AR%g
22575 s%@RANLIB@%$RANLIB%g
22576 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22577 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22578 s%@INSTALL_DATA@%$INSTALL_DATA%g
22579 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
22580 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
22581 s%@MAINT@%$MAINT%g
22582 s%@EXEEXT@%$EXEEXT%g
22583 s%@VERSION@%$VERSION%g
22584 s%@ACLOCAL@%$ACLOCAL%g
22585 s%@AUTOCONF@%$AUTOCONF%g
22586 s%@AUTOMAKE@%$AUTOMAKE%g
22587 s%@AUTOHEADER@%$AUTOHEADER%g
22588 s%@MAKEINFO@%$MAKEINFO%g
22589 s%@SET_MAKE@%$SET_MAKE%g
22590 s%@OBJEXT@%$OBJEXT%g
22591 s%@STRIP@%$STRIP%g
22592 s%@LIBTOOL@%$LIBTOOL%g
22593 s%@CXXCPP@%$CXXCPP%g
22594 s%@enable_shared@%$enable_shared%g
22595 s%@enable_static@%$enable_static%g
22596 s%@ifGNUmake@%$ifGNUmake%g
22597 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
22598 s%@CPP@%$CPP%g
22599 s%@CSTDIO_H@%$CSTDIO_H%g
22600 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
22601 s%@CCODECVT_C@%$CCODECVT_C%g
22602 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
22603 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
22604 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
22605 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
22606 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
22607 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
22608 s%@libio_la@%$libio_la%g
22609 s%@check_msgfmt@%$check_msgfmt%g
22610 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
22611 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
22612 s%@glibcpp_localedir@%$glibcpp_localedir%g
22613 s%@USE_NLS@%$USE_NLS%g
22614 s%@CLOCALE_H@%$CLOCALE_H%g
22615 s%@CCODECVT_H@%$CCODECVT_H%g
22616 s%@CMESSAGES_H@%$CMESSAGES_H%g
22617 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
22618 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
22619 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
22620 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
22621 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
22622 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
22623 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
22624 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
22625 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
22626 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
22627 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
22628 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
22629 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
22630 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
22631 s%@WERROR@%$WERROR%g
22632 s%@baseline_file@%$baseline_file%g
22633 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
22634 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
22635 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
22636 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
22637 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
22638 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
22639 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
22640 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
22641 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
22642 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
22643 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
22644 s%@gxx_include_dir@%$gxx_include_dir%g
22645 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
22646 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
22647 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
22648 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
22649 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
22650 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
22651 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
22652 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
22653 s%@WARN_FLAGS@%$WARN_FLAGS%g
22654 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
22655
22656 CEOF
22657 EOF
22658
22659 cat >> $CONFIG_STATUS <<\EOF
22660
22661 # Split the substitutions into bite-sized pieces for seds with
22662 # small command number limits, like on Digital OSF/1 and HP-UX.
22663 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22664 ac_file=1 # Number of current file.
22665 ac_beg=1 # First line for current file.
22666 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22667 ac_more_lines=:
22668 ac_sed_cmds=""
22669 while $ac_more_lines; do
22670   if test $ac_beg -gt 1; then
22671     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22672   else
22673     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22674   fi
22675   if test ! -s conftest.s$ac_file; then
22676     ac_more_lines=false
22677     rm -f conftest.s$ac_file
22678   else
22679     if test -z "$ac_sed_cmds"; then
22680       ac_sed_cmds="sed -f conftest.s$ac_file"
22681     else
22682       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22683     fi
22684     ac_file=`expr $ac_file + 1`
22685     ac_beg=$ac_end
22686     ac_end=`expr $ac_end + $ac_max_sed_cmds`
22687   fi
22688 done
22689 if test -z "$ac_sed_cmds"; then
22690   ac_sed_cmds=cat
22691 fi
22692 EOF
22693
22694 cat >> $CONFIG_STATUS <<EOF
22695
22696 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
22697     include/Makefile src/Makefile \
22698     libmath/Makefile libio/Makefile libsupc++/Makefile \
22699     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
22700 EOF
22701 cat >> $CONFIG_STATUS <<\EOF
22702 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22703   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22704   case "$ac_file" in
22705   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22706        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22707   *) ac_file_in="${ac_file}.in" ;;
22708   esac
22709
22710   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22711
22712   # Remove last slash and all that follows it.  Not all systems have dirname.
22713   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22714   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22715     # The file is in a subdirectory.
22716     test ! -d "$ac_dir" && mkdir "$ac_dir"
22717     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22718     # A "../" for each directory in $ac_dir_suffix.
22719     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22720   else
22721     ac_dir_suffix= ac_dots=
22722   fi
22723
22724   case "$ac_given_srcdir" in
22725   .)  srcdir=.
22726       if test -z "$ac_dots"; then top_srcdir=.
22727       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22728   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22729   *) # Relative path.
22730     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22731     top_srcdir="$ac_dots$ac_given_srcdir" ;;
22732   esac
22733
22734   case "$ac_given_INSTALL" in
22735   [/$]*) INSTALL="$ac_given_INSTALL" ;;
22736   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22737   esac
22738
22739   echo creating "$ac_file"
22740   rm -f "$ac_file"
22741   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22742   case "$ac_file" in
22743   *Makefile*) ac_comsub="1i\\
22744 # $configure_input" ;;
22745   *) ac_comsub= ;;
22746   esac
22747
22748   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22749   sed -e "$ac_comsub
22750 s%@configure_input@%$configure_input%g
22751 s%@srcdir@%$srcdir%g
22752 s%@top_srcdir@%$top_srcdir%g
22753 s%@INSTALL@%$INSTALL%g
22754 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22755 fi; done
22756 rm -f conftest.s*
22757
22758 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22759 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22760 #
22761 # ac_d sets the value in "#define NAME VALUE" lines.
22762 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
22763 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
22764 ac_dC='\3'
22765 ac_dD='%g'
22766 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22767 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22768 ac_uB='\([      ]\)%\1#\2define\3'
22769 ac_uC=' '
22770 ac_uD='\4%g'
22771 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22772 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22773 ac_eB='$%\1#\2define\3'
22774 ac_eC=' '
22775 ac_eD='%g'
22776
22777 if test "${CONFIG_HEADERS+set}" != set; then
22778 EOF
22779 cat >> $CONFIG_STATUS <<EOF
22780   CONFIG_HEADERS="config.h"
22781 EOF
22782 cat >> $CONFIG_STATUS <<\EOF
22783 fi
22784 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22785   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22786   case "$ac_file" in
22787   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22788        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22789   *) ac_file_in="${ac_file}.in" ;;
22790   esac
22791
22792   echo creating $ac_file
22793
22794   rm -f conftest.frag conftest.in conftest.out
22795   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22796   cat $ac_file_inputs > conftest.in
22797
22798 EOF
22799
22800 # Transform confdefs.h into a sed script conftest.vals that substitutes
22801 # the proper values into config.h.in to produce config.h.  And first:
22802 # Protect against being on the right side of a sed subst in config.status.
22803 # Protect against being in an unquoted here document in config.status.
22804 rm -f conftest.vals
22805 cat > conftest.hdr <<\EOF
22806 s/[\\&%]/\\&/g
22807 s%[\\$`]%\\&%g
22808 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22809 s%ac_d%ac_u%gp
22810 s%ac_u%ac_e%gp
22811 EOF
22812 sed -n -f conftest.hdr confdefs.h > conftest.vals
22813 rm -f conftest.hdr
22814
22815 # This sed command replaces #undef with comments.  This is necessary, for
22816 # example, in the case of _POSIX_SOURCE, which is predefined and required
22817 # on some systems where configure will not decide to define it.
22818 cat >> conftest.vals <<\EOF
22819 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22820 EOF
22821
22822 # Break up conftest.vals because some shells have a limit on
22823 # the size of here documents, and old seds have small limits too.
22824
22825 rm -f conftest.tail
22826 while :
22827 do
22828   ac_lines=`grep -c . conftest.vals`
22829   # grep -c gives empty output for an empty file on some AIX systems.
22830   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22831   # Write a limited-size here document to conftest.frag.
22832   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22833   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22834   echo 'CEOF
22835   sed -f conftest.frag conftest.in > conftest.out
22836   rm -f conftest.in
22837   mv conftest.out conftest.in
22838 ' >> $CONFIG_STATUS
22839   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22840   rm -f conftest.vals
22841   mv conftest.tail conftest.vals
22842 done
22843 rm -f conftest.vals
22844
22845 cat >> $CONFIG_STATUS <<\EOF
22846   rm -f conftest.frag conftest.h
22847   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
22848   cat conftest.in >> conftest.h
22849   rm -f conftest.in
22850   if cmp -s $ac_file conftest.h 2>/dev/null; then
22851     echo "$ac_file is unchanged"
22852     rm -f conftest.h
22853   else
22854     # Remove last slash and all that follows it.  Not all systems have dirname.
22855       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22856       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22857       # The file is in a subdirectory.
22858       test ! -d "$ac_dir" && mkdir "$ac_dir"
22859     fi
22860     rm -f $ac_file
22861     mv conftest.h $ac_file
22862   fi
22863 fi; done
22864
22865 EOF
22866
22867 cat >> $CONFIG_STATUS <<EOF
22868 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $CLOCALE_INTERNAL_H $LINKER_MAP"
22869 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/c++locale_internal.h src/linker.map"
22870 EOF
22871
22872 cat >> $CONFIG_STATUS <<\EOF
22873 srcdir=$ac_given_srcdir
22874 while test -n "$ac_sources"; do
22875   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22876   set $ac_sources; ac_source=$1; shift; ac_sources=$*
22877
22878   echo "linking $srcdir/$ac_source to $ac_dest"
22879
22880   if test ! -r $srcdir/$ac_source; then
22881     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
22882   fi
22883   rm -f $ac_dest
22884
22885   # Make relative symlinks.
22886   # Remove last slash and all that follows it.  Not all systems have dirname.
22887   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
22888   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
22889     # The dest file is in a subdirectory.
22890     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
22891     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
22892     # A "../" for each directory in $ac_dest_dir_suffix.
22893     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
22894   else
22895     ac_dest_dir_suffix= ac_dots=
22896   fi
22897
22898   case "$srcdir" in
22899   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
22900   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
22901   esac
22902
22903   # Make a symlink if possible; otherwise try a hard link.
22904   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22905     ln $srcdir/$ac_source $ac_dest; then :
22906   else
22907     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
22908   fi
22909 done
22910 EOF
22911 cat >> $CONFIG_STATUS <<EOF
22912
22913 srcdir=${srcdir}
22914 host=${host}
22915 target=${target}
22916 with_multisubdir=${with_multisubdir}
22917 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22918 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22919 glibcpp_basedir=${glibcpp_basedir}
22920 CC="${CC}"
22921 CXX="${CXX}"
22922
22923 EOF
22924 cat >> $CONFIG_STATUS <<\EOF
22925 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
22926 if test -n "$CONFIG_FILES"; then
22927   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
22928   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
22929   grep '^MULTISUBDIR =' Makefile >> src/Makefile
22930   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
22931 fi
22932 chmod +x mkcheck
22933 chmod +x testsuite_flags
22934
22935 exit 0
22936 EOF
22937 chmod +x $CONFIG_STATUS
22938 rm -fr confdefs* $ac_clean_files
22939 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22940
22941
22942
22943 # Sanity checking & User-visible messages.
22944 # Checks down here, otherwise they get scrolled off before
22945 # the user will notice.
22946
22947 # Trying to get more people to read documentation.  Possibly remove
22948 # check and warn all the time. There is no "informational" AC_MSG_
22949 # macro, so these are going to be printed even when --quiet/--silent
22950 # is given.
22951 if test ! -f stamp-sanity-warned; then
22952   touch stamp-sanity-warned
22953   echo ""
22954   echo "Please make certain that you read the installation information here:"
22955   echo "  faster => ${srcdir}/docs/html/install.html"
22956   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
22957   echo ""
22958   echo "and the configuration information here:"
22959   echo "  faster => ${srcdir}/docs/html/configopts.html"
22960   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
22961   echo ""
22962   echo "before proceeding with ${_cv_gnu_make_command}."
22963   echo ""
22964 fi