OSDN Git Service

2002-10-18 Phil Edwards <pme@gcc.gnu.org>
[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   # Export build and source directories.
827   # These need to be absolute paths, yet at the same time need to
828   # canonicalize only relative paths, because then amd will not unmount
829   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
830   glibcpp_builddir=`${PWDCMD-pwd}`
831   case $srcdir in
832   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
833   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
834   esac
835   
836   
837
838     
839
840   for ac_prog in mawk gawk nawk awk
841 do
842 # Extract the first word of "$ac_prog", so it can be a program name with args.
843 set dummy $ac_prog; ac_word=$2
844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
845 echo "configure:846: checking for $ac_word" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
847   echo $ac_n "(cached) $ac_c" 1>&6
848 else
849   if test -n "$AWK"; then
850   ac_cv_prog_AWK="$AWK" # Let the user override the test.
851 else
852   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
853   ac_dummy="$PATH"
854   for ac_dir in $ac_dummy; do
855     test -z "$ac_dir" && ac_dir=.
856     if test -f $ac_dir/$ac_word; then
857       ac_cv_prog_AWK="$ac_prog"
858       break
859     fi
860   done
861   IFS="$ac_save_ifs"
862 fi
863 fi
864 AWK="$ac_cv_prog_AWK"
865 if test -n "$AWK"; then
866   echo "$ac_t""$AWK" 1>&6
867 else
868   echo "$ac_t""no" 1>&6
869 fi
870
871 test -n "$AWK" && break
872 done
873
874   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
875   # be 'cp -p' if linking isn't available.  Uncomment the next line to
876   # force a particular method.
877   #ac_cv_prog_LN_S='cp -p'
878   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
879 echo "configure:880: checking whether ln -s works" >&5
880 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
881   echo $ac_n "(cached) $ac_c" 1>&6
882 else
883   rm -f conftestdata
884 if ln -s X conftestdata 2>/dev/null
885 then
886   rm -f conftestdata
887   ac_cv_prog_LN_S="ln -s"
888 else
889   ac_cv_prog_LN_S=ln
890 fi
891 fi
892 LN_S="$ac_cv_prog_LN_S"
893 if test "$ac_cv_prog_LN_S" = "ln -s"; then
894   echo "$ac_t""yes" 1>&6
895 else
896   echo "$ac_t""no" 1>&6
897 fi
898
899
900   # We use these options to decide which functions to include.
901   # Check whether --with-target-subdir or --without-target-subdir was given.
902 if test "${with_target_subdir+set}" = set; then
903   withval="$with_target_subdir"
904   :
905 fi
906
907   # Check whether --with-cross-host or --without-cross-host was given.
908 if test "${with_cross_host+set}" = set; then
909   withval="$with_cross_host"
910   :
911 fi
912
913
914   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
915   
916
917   # Never versions of autoconf add an underscore to these functions.
918   # Prevent future problems ...
919   
920   
921   
922   
923
924   # AC_PROG_CC
925   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
926   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
927   # are probably using a cross compiler, which will not be able to fully
928   # link an executable.  This is addressed in later versions of autoconf.
929
930   
931
932       
933   # Extract the first word of "gcc", so it can be a program name with args.
934 set dummy gcc; ac_word=$2
935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
936 echo "configure:937: checking for $ac_word" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
938   echo $ac_n "(cached) $ac_c" 1>&6
939 else
940   if test -n "$CC"; then
941   ac_cv_prog_CC="$CC" # Let the user override the test.
942 else
943   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
944   ac_dummy="$PATH"
945   for ac_dir in $ac_dummy; do
946     test -z "$ac_dir" && ac_dir=.
947     if test -f $ac_dir/$ac_word; then
948       ac_cv_prog_CC="gcc"
949       break
950     fi
951   done
952   IFS="$ac_save_ifs"
953 fi
954 fi
955 CC="$ac_cv_prog_CC"
956 if test -n "$CC"; then
957   echo "$ac_t""$CC" 1>&6
958 else
959   echo "$ac_t""no" 1>&6
960 fi
961
962   if test -z "$CC"; then
963     # Extract the first word of "cc", so it can be a program name with args.
964 set dummy cc; ac_word=$2
965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
966 echo "configure:967: checking for $ac_word" >&5
967 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
968   echo $ac_n "(cached) $ac_c" 1>&6
969 else
970   if test -n "$CC"; then
971   ac_cv_prog_CC="$CC" # Let the user override the test.
972 else
973   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
974   ac_prog_rejected=no
975   ac_dummy="$PATH"
976   for ac_dir in $ac_dummy; do
977     test -z "$ac_dir" && ac_dir=.
978     if test -f $ac_dir/$ac_word; then
979       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
980         ac_prog_rejected=yes
981         continue
982       fi
983       ac_cv_prog_CC="cc"
984       break
985     fi
986   done
987   IFS="$ac_save_ifs"
988 if test $ac_prog_rejected = yes; then
989   # We found a bogon in the path, so make sure we never use it.
990   set dummy $ac_cv_prog_CC
991   shift
992   if test $# -gt 0; then
993     # We chose a different compiler from the bogus one.
994     # However, it has the same basename, so the bogon will be chosen
995     # first if we set CC to just the basename; use the full file name.
996     shift
997     set dummy "$ac_dir/$ac_word" "$@"
998     shift
999     ac_cv_prog_CC="$@"
1000   fi
1001 fi
1002 fi
1003 fi
1004 CC="$ac_cv_prog_CC"
1005 if test -n "$CC"; then
1006   echo "$ac_t""$CC" 1>&6
1007 else
1008   echo "$ac_t""no" 1>&6
1009 fi
1010
1011     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1012   fi
1013
1014   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1015 echo "configure:1016: checking whether we are using GNU C" >&5
1016 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1017   echo $ac_n "(cached) $ac_c" 1>&6
1018 else
1019   cat > conftest.c <<EOF
1020 #ifdef __GNUC__
1021   yes;
1022 #endif
1023 EOF
1024 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1025   ac_cv_prog_gcc=yes
1026 else
1027   ac_cv_prog_gcc=no
1028 fi
1029 fi
1030
1031 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1032
1033   if test $ac_cv_prog_gcc = yes; then
1034     GCC=yes
1035           ac_test_CFLAGS="${CFLAGS+set}"
1036     ac_save_CFLAGS="$CFLAGS"
1037     CFLAGS=
1038     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1039 echo "configure:1040: checking whether ${CC-cc} accepts -g" >&5
1040 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1041   echo $ac_n "(cached) $ac_c" 1>&6
1042 else
1043   echo 'void f(){}' > conftest.c
1044 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1045   ac_cv_prog_cc_g=yes
1046 else
1047   ac_cv_prog_cc_g=no
1048 fi
1049 rm -f conftest*
1050
1051 fi
1052
1053 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1054     if test "$ac_test_CFLAGS" = set; then
1055       CFLAGS="$ac_save_CFLAGS"
1056     elif test $ac_cv_prog_cc_g = yes; then
1057       CFLAGS="-g -O2"
1058     else
1059       CFLAGS="-O2"
1060     fi
1061   else
1062     GCC=
1063     test "${CFLAGS+set}" = set || CFLAGS="-g"
1064   fi
1065   
1066
1067   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1068   # will try to link in libstdc++.
1069   
1070
1071       
1072   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1073   # flags that come in CXX while configuring libstdc++.  They're different
1074   # from those used for all other target libraries.  If CXX is set in
1075   # the environment, respect that here.
1076   glibcpp_CXX=$CXX
1077   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1078 do
1079 # Extract the first word of "$ac_prog", so it can be a program name with args.
1080 set dummy $ac_prog; ac_word=$2
1081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1082 echo "configure:1083: checking for $ac_word" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1084   echo $ac_n "(cached) $ac_c" 1>&6
1085 else
1086   if test -n "$glibcpp_CXX"; then
1087   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1088 else
1089   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1090   ac_dummy="$PATH"
1091   for ac_dir in $ac_dummy; do
1092     test -z "$ac_dir" && ac_dir=.
1093     if test -f $ac_dir/$ac_word; then
1094       ac_cv_prog_glibcpp_CXX="$ac_prog"
1095       break
1096     fi
1097   done
1098   IFS="$ac_save_ifs"
1099 fi
1100 fi
1101 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1102 if test -n "$glibcpp_CXX"; then
1103   echo "$ac_t""$glibcpp_CXX" 1>&6
1104 else
1105   echo "$ac_t""no" 1>&6
1106 fi
1107
1108 test -n "$glibcpp_CXX" && break
1109 done
1110 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1111
1112   
1113   CXX=$glibcpp_CXX
1114   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1115
1116   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether we are using GNU C++" >&5
1118 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1119   echo $ac_n "(cached) $ac_c" 1>&6
1120 else
1121   cat > conftest.C <<EOF
1122 #ifdef __GNUC__
1123   yes;
1124 #endif
1125 EOF
1126 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1127   ac_cv_prog_gxx=yes
1128 else
1129   ac_cv_prog_gxx=no
1130 fi
1131 fi
1132
1133 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1134
1135   if test $ac_cv_prog_gxx = yes; then
1136     GXX=yes
1137                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1138     ac_save_CXXFLAGS="$CXXFLAGS"
1139     CXXFLAGS=
1140     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1141 echo "configure:1142: checking whether ${CXX-g++} accepts -g" >&5
1142 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1143   echo $ac_n "(cached) $ac_c" 1>&6
1144 else
1145   echo 'void f(){}' > conftest.cc
1146 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1147   ac_cv_prog_cxx_g=yes
1148 else
1149   ac_cv_prog_cxx_g=no
1150 fi
1151 rm -f conftest*
1152
1153 fi
1154
1155 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1156     if test "$ac_test_CXXFLAGS" = set; then
1157       CXXFLAGS="$ac_save_CXXFLAGS"
1158     elif test $ac_cv_prog_cxx_g = yes; then
1159       CXXFLAGS="-g -O2"
1160     else
1161       CXXFLAGS="-O2"
1162     fi
1163   else
1164     GXX=
1165     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1166   fi
1167   
1168
1169   # For directory versioning (e.g., headers) and other variables.
1170   echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1171 echo "configure:1172: checking for GCC version number" >&5
1172   gcc_version=`$glibcpp_CXX -dumpversion`
1173   echo "$ac_t""$gcc_version" 1>&6
1174
1175   # For some reason, gettext needs this.
1176   
1177         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1178 echo "configure:1179: checking for strerror in -lcposix" >&5
1179 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1181   echo $ac_n "(cached) $ac_c" 1>&6
1182 else
1183   ac_save_LIBS="$LIBS"
1184 LIBS="-lcposix  $LIBS"
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1188 /* Override any gcc2 internal prototype to avoid an error.  */
1189 /* We use char because int might match the return type of a gcc2
1190     builtin and then its argument prototype would still apply.  */
1191 char strerror();
1192
1193 int main() {
1194 strerror()
1195 ; return 0; }
1196 EOF
1197 if { (eval echo configure:1198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1198   rm -rf conftest*
1199   eval "ac_cv_lib_$ac_lib_var=yes"
1200 else
1201   echo "configure: failed program was:" >&5
1202   cat conftest.$ac_ext >&5
1203   rm -rf conftest*
1204   eval "ac_cv_lib_$ac_lib_var=no"
1205 fi
1206 rm -f conftest*
1207 LIBS="$ac_save_LIBS"
1208
1209 fi
1210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1211   echo "$ac_t""yes" 1>&6
1212   LIBS="$LIBS -lcposix"
1213 else
1214   echo "$ac_t""no" 1>&6
1215 fi
1216
1217   
1218
1219
1220   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1221 set dummy ${ac_tool_prefix}as; ac_word=$2
1222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1223 echo "configure:1224: checking for $ac_word" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1225   echo $ac_n "(cached) $ac_c" 1>&6
1226 else
1227   if test -n "$AS"; then
1228   ac_cv_prog_AS="$AS" # Let the user override the test.
1229 else
1230   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1231   ac_dummy="$PATH"
1232   for ac_dir in $ac_dummy; do
1233     test -z "$ac_dir" && ac_dir=.
1234     if test -f $ac_dir/$ac_word; then
1235       ac_cv_prog_AS="${ac_tool_prefix}as"
1236       break
1237     fi
1238   done
1239   IFS="$ac_save_ifs"
1240   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1241 fi
1242 fi
1243 AS="$ac_cv_prog_AS"
1244 if test -n "$AS"; then
1245   echo "$ac_t""$AS" 1>&6
1246 else
1247   echo "$ac_t""no" 1>&6
1248 fi
1249
1250
1251
1252   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1253 set dummy ${ac_tool_prefix}ar; ac_word=$2
1254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1255 echo "configure:1256: checking for $ac_word" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1257   echo $ac_n "(cached) $ac_c" 1>&6
1258 else
1259   if test -n "$AR"; then
1260   ac_cv_prog_AR="$AR" # Let the user override the test.
1261 else
1262   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1263   ac_dummy="$PATH"
1264   for ac_dir in $ac_dummy; do
1265     test -z "$ac_dir" && ac_dir=.
1266     if test -f $ac_dir/$ac_word; then
1267       ac_cv_prog_AR="${ac_tool_prefix}ar"
1268       break
1269     fi
1270   done
1271   IFS="$ac_save_ifs"
1272   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1273 fi
1274 fi
1275 AR="$ac_cv_prog_AR"
1276 if test -n "$AR"; then
1277   echo "$ac_t""$AR" 1>&6
1278 else
1279   echo "$ac_t""no" 1>&6
1280 fi
1281
1282
1283
1284   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1285 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1287 echo "configure:1288: checking for $ac_word" >&5
1288 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1289   echo $ac_n "(cached) $ac_c" 1>&6
1290 else
1291   if test -n "$RANLIB"; then
1292   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1293 else
1294   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1295   ac_dummy="$PATH"
1296   for ac_dir in $ac_dummy; do
1297     test -z "$ac_dir" && ac_dir=.
1298     if test -f $ac_dir/$ac_word; then
1299       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1300       break
1301     fi
1302   done
1303   IFS="$ac_save_ifs"
1304 fi
1305 fi
1306 RANLIB="$ac_cv_prog_RANLIB"
1307 if test -n "$RANLIB"; then
1308   echo "$ac_t""$RANLIB" 1>&6
1309 else
1310   echo "$ac_t""no" 1>&6
1311 fi
1312
1313
1314 if test -z "$ac_cv_prog_RANLIB"; then
1315 if test -n "$ac_tool_prefix"; then
1316   # Extract the first word of "ranlib", so it can be a program name with args.
1317 set dummy ranlib; ac_word=$2
1318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1319 echo "configure:1320: checking for $ac_word" >&5
1320 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1321   echo $ac_n "(cached) $ac_c" 1>&6
1322 else
1323   if test -n "$RANLIB"; then
1324   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1325 else
1326   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1327   ac_dummy="$PATH"
1328   for ac_dir in $ac_dummy; do
1329     test -z "$ac_dir" && ac_dir=.
1330     if test -f $ac_dir/$ac_word; then
1331       ac_cv_prog_RANLIB="ranlib"
1332       break
1333     fi
1334   done
1335   IFS="$ac_save_ifs"
1336   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1337 fi
1338 fi
1339 RANLIB="$ac_cv_prog_RANLIB"
1340 if test -n "$RANLIB"; then
1341   echo "$ac_t""$RANLIB" 1>&6
1342 else
1343   echo "$ac_t""no" 1>&6
1344 fi
1345
1346 else
1347   RANLIB="ranlib-not-found-in-path-error"
1348 fi
1349 fi
1350
1351   # Find a good install program.  We prefer a C program (faster),
1352 # so one script is as good as another.  But avoid the broken or
1353 # incompatible versions:
1354 # SysV /etc/install, /usr/sbin/install
1355 # SunOS /usr/etc/install
1356 # IRIX /sbin/install
1357 # AIX /bin/install
1358 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1359 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1360 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1361 # ./install, which can be erroneously created by make from ./install.sh.
1362 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1363 echo "configure:1364: checking for a BSD compatible install" >&5
1364 if test -z "$INSTALL"; then
1365 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1366   echo $ac_n "(cached) $ac_c" 1>&6
1367 else
1368     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1369   for ac_dir in $PATH; do
1370     # Account for people who put trailing slashes in PATH elements.
1371     case "$ac_dir/" in
1372     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1373     *)
1374       # OSF1 and SCO ODT 3.0 have their own names for install.
1375       # Don't use installbsd from OSF since it installs stuff as root
1376       # by default.
1377       for ac_prog in ginstall scoinst install; do
1378         if test -f $ac_dir/$ac_prog; then
1379           if test $ac_prog = install &&
1380             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1381             # AIX install.  It has an incompatible calling convention.
1382             :
1383           else
1384             ac_cv_path_install="$ac_dir/$ac_prog -c"
1385             break 2
1386           fi
1387         fi
1388       done
1389       ;;
1390     esac
1391   done
1392   IFS="$ac_save_IFS"
1393
1394 fi
1395   if test "${ac_cv_path_install+set}" = set; then
1396     INSTALL="$ac_cv_path_install"
1397   else
1398     # As a last resort, use the slow shell script.  We don't cache a
1399     # path for INSTALL within a source directory, because that will
1400     # break other packages using the cache if that directory is
1401     # removed, or if the path is relative.
1402     INSTALL="$ac_install_sh"
1403   fi
1404 fi
1405 echo "$ac_t""$INSTALL" 1>&6
1406
1407 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1408 # It thinks the first close brace ends the variable substitution.
1409 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1410
1411 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1412
1413 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1414
1415
1416   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1417 echo "configure:1418: checking whether to enable maintainer-specific portions of Makefiles" >&5
1418     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1419 if test "${enable_maintainer_mode+set}" = set; then
1420   enableval="$enable_maintainer_mode"
1421   USE_MAINTAINER_MODE=$enableval
1422 else
1423   USE_MAINTAINER_MODE=no
1424 fi
1425
1426   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1427   
1428
1429 if test $USE_MAINTAINER_MODE = yes; then
1430   MAINTAINER_MODE_TRUE=
1431   MAINTAINER_MODE_FALSE='#'
1432 else
1433   MAINTAINER_MODE_TRUE='#'
1434   MAINTAINER_MODE_FALSE=
1435 fi
1436   MAINT=$MAINTAINER_MODE_TRUE
1437   
1438
1439
1440   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1441   # at least currently, we never actually build a program, so we never
1442   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1443   # fails, because we are probably configuring with a cross compiler
1444   # which can't create executables.  So we include AC_EXEEXT to keep
1445   # automake happy, but we don't execute it, since we don't care about
1446   # the result.
1447   if false; then
1448     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1449     # to nothing, so nothing would remain between `then' and `fi' if it
1450     # were not for the `:' below.
1451     :
1452     
1453
1454 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1455 echo "configure:1456: checking for executable suffix" >&5
1456 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1457   echo $ac_n "(cached) $ac_c" 1>&6
1458 else
1459   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1460   ac_cv_exeext=.exe
1461 else
1462   rm -f conftest*
1463   echo 'int main () { return 0; }' > conftest.$ac_ext
1464   ac_cv_exeext=
1465   if { (eval echo configure:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1466     for file in conftest.*; do
1467       case $file in
1468       *.$ac_ext | *.c | *.o | *.obj) ;;
1469       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1470       esac
1471     done
1472   else
1473     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1474   fi
1475   rm -f conftest*
1476   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1477 fi
1478 fi
1479
1480 EXEEXT=""
1481 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1482 echo "$ac_t""${ac_cv_exeext}" 1>&6
1483 ac_exeext=$EXEEXT
1484
1485   fi
1486
1487   case ${glibcpp_basedir} in
1488     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1489     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1490   esac
1491
1492   # Find platform-specific directories containing configuration info.  In
1493   # addition to possibly modifying the same flags, it also sets up symlinks.
1494   
1495     . ${glibcpp_basedir}/configure.target
1496     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1497     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1498
1499
1500
1501 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1502 echo "configure:1503: checking whether build environment is sane" >&5
1503 # Just in case
1504 sleep 1
1505 echo timestamp > conftestfile
1506 # Do `set' in a subshell so we don't clobber the current shell's
1507 # arguments.  Must try -L first in case configure is actually a
1508 # symlink; some systems play weird games with the mod time of symlinks
1509 # (eg FreeBSD returns the mod time of the symlink's containing
1510 # directory).
1511 if (
1512    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1513    if test "$*" = "X"; then
1514       # -L didn't work.
1515       set X `ls -t $srcdir/configure conftestfile`
1516    fi
1517    if test "$*" != "X $srcdir/configure conftestfile" \
1518       && test "$*" != "X conftestfile $srcdir/configure"; then
1519
1520       # If neither matched, then we have a broken ls.  This can happen
1521       # if, for instance, CONFIG_SHELL is bash and it inherits a
1522       # broken ls alias from the environment.  This has actually
1523       # happened.  Such a system could not be considered "sane".
1524       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1525 alias in your environment" 1>&2; exit 1; }
1526    fi
1527
1528    test "$2" = conftestfile
1529    )
1530 then
1531    # Ok.
1532    :
1533 else
1534    { echo "configure: error: newly created file is older than distributed files!
1535 Check your system clock" 1>&2; exit 1; }
1536 fi
1537 rm -f conftest*
1538 echo "$ac_t""yes" 1>&6
1539 if test "$program_transform_name" = s,x,x,; then
1540   program_transform_name=
1541 else
1542   # Double any \ or $.  echo might interpret backslashes.
1543   cat <<\EOF_SED > conftestsed
1544 s,\\,\\\\,g; s,\$,$$,g
1545 EOF_SED
1546   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1547   rm -f conftestsed
1548 fi
1549 test "$program_prefix" != NONE &&
1550   program_transform_name="s,^,${program_prefix},; $program_transform_name"
1551 # Use a double $ so make ignores it.
1552 test "$program_suffix" != NONE &&
1553   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1554
1555 # sed with no file args requires a program.
1556 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1557
1558 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1559 echo "configure:1560: checking whether ${MAKE-make} sets \${MAKE}" >&5
1560 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1561 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1562   echo $ac_n "(cached) $ac_c" 1>&6
1563 else
1564   cat > conftestmake <<\EOF
1565 all:
1566         @echo 'ac_maketemp="${MAKE}"'
1567 EOF
1568 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1569 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1570 if test -n "$ac_maketemp"; then
1571   eval ac_cv_prog_make_${ac_make}_set=yes
1572 else
1573   eval ac_cv_prog_make_${ac_make}_set=no
1574 fi
1575 rm -f conftestmake
1576 fi
1577 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1578   echo "$ac_t""yes" 1>&6
1579   SET_MAKE=
1580 else
1581   echo "$ac_t""no" 1>&6
1582   SET_MAKE="MAKE=${MAKE-make}"
1583 fi
1584
1585
1586 PACKAGE=$PACKAGE
1587
1588 VERSION=$gcc_version
1589
1590 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1591   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1592 fi
1593 cat >> confdefs.h <<EOF
1594 #define PACKAGE "$PACKAGE"
1595 EOF
1596
1597 cat >> confdefs.h <<EOF
1598 #define VERSION "$VERSION"
1599 EOF
1600
1601
1602
1603 missing_dir=`cd $ac_aux_dir && pwd`
1604 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1605 echo "configure:1606: checking for working aclocal" >&5
1606 # Run test in a subshell; some versions of sh will print an error if
1607 # an executable is not found, even if stderr is redirected.
1608 # Redirect stdin to placate older versions of autoconf.  Sigh.
1609 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1610    ACLOCAL=aclocal
1611    echo "$ac_t""found" 1>&6
1612 else
1613    ACLOCAL="$missing_dir/missing aclocal"
1614    echo "$ac_t""missing" 1>&6
1615 fi
1616
1617 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1618 echo "configure:1619: checking for working autoconf" >&5
1619 # Run test in a subshell; some versions of sh will print an error if
1620 # an executable is not found, even if stderr is redirected.
1621 # Redirect stdin to placate older versions of autoconf.  Sigh.
1622 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1623    AUTOCONF=autoconf
1624    echo "$ac_t""found" 1>&6
1625 else
1626    AUTOCONF="$missing_dir/missing autoconf"
1627    echo "$ac_t""missing" 1>&6
1628 fi
1629
1630 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1631 echo "configure:1632: checking for working automake" >&5
1632 # Run test in a subshell; some versions of sh will print an error if
1633 # an executable is not found, even if stderr is redirected.
1634 # Redirect stdin to placate older versions of autoconf.  Sigh.
1635 if (automake --version) < /dev/null > /dev/null 2>&1; then
1636    AUTOMAKE=automake
1637    echo "$ac_t""found" 1>&6
1638 else
1639    AUTOMAKE="$missing_dir/missing automake"
1640    echo "$ac_t""missing" 1>&6
1641 fi
1642
1643 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1644 echo "configure:1645: checking for working autoheader" >&5
1645 # Run test in a subshell; some versions of sh will print an error if
1646 # an executable is not found, even if stderr is redirected.
1647 # Redirect stdin to placate older versions of autoconf.  Sigh.
1648 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1649    AUTOHEADER=autoheader
1650    echo "$ac_t""found" 1>&6
1651 else
1652    AUTOHEADER="$missing_dir/missing autoheader"
1653    echo "$ac_t""missing" 1>&6
1654 fi
1655
1656 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1657 echo "configure:1658: checking for working makeinfo" >&5
1658 # Run test in a subshell; some versions of sh will print an error if
1659 # an executable is not found, even if stderr is redirected.
1660 # Redirect stdin to placate older versions of autoconf.  Sigh.
1661 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1662    MAKEINFO=makeinfo
1663    echo "$ac_t""found" 1>&6
1664 else
1665    MAKEINFO="$missing_dir/missing makeinfo"
1666    echo "$ac_t""missing" 1>&6
1667 fi
1668
1669
1670
1671
1672
1673
1674
1675 # Check whether --enable-shared or --disable-shared was given.
1676 if test "${enable_shared+set}" = set; then
1677   enableval="$enable_shared"
1678   p=${PACKAGE-default}
1679 case $enableval in
1680 yes) enable_shared=yes ;;
1681 no) enable_shared=no ;;
1682 *)
1683   enable_shared=no
1684   # Look at the argument we got.  We use all the common list separators.
1685   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1686   for pkg in $enableval; do
1687     if test "X$pkg" = "X$p"; then
1688       enable_shared=yes
1689     fi
1690   done
1691   IFS="$ac_save_ifs"
1692   ;;
1693 esac
1694 else
1695   enable_shared=yes
1696 fi
1697
1698 # Check whether --enable-static or --disable-static was given.
1699 if test "${enable_static+set}" = set; then
1700   enableval="$enable_static"
1701   p=${PACKAGE-default}
1702 case $enableval in
1703 yes) enable_static=yes ;;
1704 no) enable_static=no ;;
1705 *)
1706   enable_static=no
1707   # Look at the argument we got.  We use all the common list separators.
1708   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1709   for pkg in $enableval; do
1710     if test "X$pkg" = "X$p"; then
1711       enable_static=yes
1712     fi
1713   done
1714   IFS="$ac_save_ifs"
1715   ;;
1716 esac
1717 else
1718   enable_static=yes
1719 fi
1720
1721 # Check whether --enable-fast-install or --disable-fast-install was given.
1722 if test "${enable_fast_install+set}" = set; then
1723   enableval="$enable_fast_install"
1724   p=${PACKAGE-default}
1725 case $enableval in
1726 yes) enable_fast_install=yes ;;
1727 no) enable_fast_install=no ;;
1728 *)
1729   enable_fast_install=no
1730   # Look at the argument we got.  We use all the common list separators.
1731   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1732   for pkg in $enableval; do
1733     if test "X$pkg" = "X$p"; then
1734       enable_fast_install=yes
1735     fi
1736   done
1737   IFS="$ac_save_ifs"
1738   ;;
1739 esac
1740 else
1741   enable_fast_install=yes
1742 fi
1743
1744 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1745 if test "${with_gnu_ld+set}" = set; then
1746   withval="$with_gnu_ld"
1747   test "$withval" = no || with_gnu_ld=yes
1748 else
1749   with_gnu_ld=no
1750 fi
1751
1752 ac_prog=ld
1753 if test "$GCC" = yes; then
1754   # Check if gcc -print-prog-name=ld gives a path.
1755   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1756 echo "configure:1757: checking for ld used by GCC" >&5
1757   case $host in
1758   *-*-mingw*)
1759     # gcc leaves a trailing carriage return which upsets mingw
1760     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1761   *)
1762     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1763   esac
1764   case $ac_prog in
1765     # Accept absolute paths.
1766     [\\/]* | [A-Za-z]:[\\/]*)
1767       re_direlt='/[^/][^/]*/\.\./'
1768       # Canonicalize the path of ld
1769       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1770       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1771         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1772       done
1773       test -z "$LD" && LD="$ac_prog"
1774       ;;
1775   "")
1776     # If it fails, then pretend we aren't using GCC.
1777     ac_prog=ld
1778     ;;
1779   *)
1780     # If it is relative, then search for the first ld in PATH.
1781     with_gnu_ld=unknown
1782     ;;
1783   esac
1784 elif test "$with_gnu_ld" = yes; then
1785   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1786 echo "configure:1787: checking for GNU ld" >&5
1787 else
1788   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1789 echo "configure:1790: checking for non-GNU ld" >&5
1790 fi
1791 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1792   echo $ac_n "(cached) $ac_c" 1>&6
1793 else
1794   if test -z "$LD"; then
1795   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1796   for ac_dir in $PATH; do
1797     test -z "$ac_dir" && ac_dir=.
1798     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1799       lt_cv_path_LD="$ac_dir/$ac_prog"
1800       # Check to see if the program is GNU ld.  I'd rather use --version,
1801       # but apparently some GNU ld's only accept -v.
1802       # Break only if it was the GNU/non-GNU ld that we prefer.
1803       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1804         test "$with_gnu_ld" != no && break
1805       else
1806         test "$with_gnu_ld" != yes && break
1807       fi
1808     fi
1809   done
1810   IFS="$ac_save_ifs"
1811 else
1812   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1813 fi
1814 fi
1815
1816 LD="$lt_cv_path_LD"
1817 if test -n "$LD"; then
1818   echo "$ac_t""$LD" 1>&6
1819 else
1820   echo "$ac_t""no" 1>&6
1821 fi
1822 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1823 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1824 echo "configure:1825: checking if the linker ($LD) is GNU ld" >&5
1825 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1826   echo $ac_n "(cached) $ac_c" 1>&6
1827 else
1828   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1829 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1830   lt_cv_prog_gnu_ld=yes
1831 else
1832   lt_cv_prog_gnu_ld=no
1833 fi
1834 fi
1835
1836 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1837 with_gnu_ld=$lt_cv_prog_gnu_ld
1838
1839
1840 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1841 echo "configure:1842: checking for $LD option to reload object files" >&5
1842 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1843   echo $ac_n "(cached) $ac_c" 1>&6
1844 else
1845   lt_cv_ld_reload_flag='-r'
1846 fi
1847
1848 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1849 reload_flag=$lt_cv_ld_reload_flag
1850 test -n "$reload_flag" && reload_flag=" $reload_flag"
1851
1852 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1853 echo "configure:1854: checking for BSD-compatible nm" >&5
1854 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1855   echo $ac_n "(cached) $ac_c" 1>&6
1856 else
1857   if test -n "$NM"; then
1858   # Let the user override the test.
1859   lt_cv_path_NM="$NM"
1860 else
1861   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1862   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1863     test -z "$ac_dir" && ac_dir=.
1864     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1865     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1866       # Check to see if the nm accepts a BSD-compat flag.
1867       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1868       #   nm: unknown option "B" ignored
1869       # Tru64's nm complains that /dev/null is an invalid object file
1870       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1871         lt_cv_path_NM="$tmp_nm -B"
1872         break
1873       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1874         lt_cv_path_NM="$tmp_nm -p"
1875         break
1876       else
1877         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1878         continue # so that we can try to find one that supports BSD flags
1879       fi
1880     fi
1881   done
1882   IFS="$ac_save_ifs"
1883   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1884 fi
1885 fi
1886
1887 NM="$lt_cv_path_NM"
1888 echo "$ac_t""$NM" 1>&6
1889
1890 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1891 echo "configure:1892: checking how to recognise dependant libraries" >&5
1892 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1893   echo $ac_n "(cached) $ac_c" 1>&6
1894 else
1895   lt_cv_file_magic_cmd='$MAGIC_CMD'
1896 lt_cv_file_magic_test_file=
1897 lt_cv_deplibs_check_method='unknown'
1898 # Need to set the preceding variable on all platforms that support
1899 # interlibrary dependencies.
1900 # 'none' -- dependencies not supported.
1901 # `unknown' -- same as none, but documents that we really don't know.
1902 # 'pass_all' -- all dependencies passed with no checks.
1903 # 'test_compile' -- check by making test program.
1904 # 'file_magic [regex]' -- check by looking for files in library path
1905 # which responds to the $file_magic_cmd with a given egrep regex.
1906 # If you have `file' or equivalent on your system and you're not sure
1907 # whether `pass_all' will *always* work, you probably want this one.
1908
1909 case $host_os in
1910 aix*)
1911   lt_cv_deplibs_check_method=pass_all
1912   ;;
1913
1914 beos*)
1915   lt_cv_deplibs_check_method=pass_all
1916   ;;
1917
1918 bsdi4*)
1919   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1920   lt_cv_file_magic_cmd='/usr/bin/file -L'
1921   lt_cv_file_magic_test_file=/shlib/libc.so
1922   ;;
1923
1924 cygwin* | mingw* |pw32*)
1925   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1926   lt_cv_file_magic_cmd='$OBJDUMP -f'
1927   ;;
1928
1929 darwin* | rhapsody*)
1930   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1931   lt_cv_file_magic_cmd='/usr/bin/file -L'
1932   case "$host_os" in
1933   rhapsody* | darwin1.012)
1934     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1935     ;;
1936   *) # Darwin 1.3 on
1937     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1938     ;;
1939   esac
1940   ;;
1941
1942 freebsd* )
1943   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1944     case $host_cpu in
1945     i*86 )
1946       # Not sure whether the presence of OpenBSD here was a mistake.
1947       # Let's accept both of them until this is cleared up.
1948       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1949       lt_cv_file_magic_cmd=/usr/bin/file
1950       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1951       ;;
1952     esac
1953   else
1954     lt_cv_deplibs_check_method=pass_all
1955   fi
1956   ;;
1957
1958 gnu*)
1959   lt_cv_deplibs_check_method=pass_all
1960   ;;
1961
1962 hpux10.20*|hpux11*)
1963   case $host_cpu in
1964   hppa*)
1965     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1966     lt_cv_file_magic_cmd=/usr/bin/file
1967     lt_cv_file_magic_test_file=/usr/lib/libc.sl
1968     ;;
1969   ia64*)
1970     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1971     lt_cv_file_magic_cmd=/usr/bin/file
1972     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1973     ;;
1974   esac
1975   ;;
1976
1977 irix5* | irix6*)
1978   case $host_os in
1979   irix5*)
1980     # this will be overridden with pass_all, but let us keep it just in case
1981     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1982     ;;
1983   *)
1984     case $LD in
1985     *-32|*"-32 ") libmagic=32-bit;;
1986     *-n32|*"-n32 ") libmagic=N32;;
1987     *-64|*"-64 ") libmagic=64-bit;;
1988     *) libmagic=never-match;;
1989     esac
1990     # this will be overridden with pass_all, but let us keep it just in case
1991     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1992     ;;
1993   esac
1994   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1995   lt_cv_deplibs_check_method=pass_all
1996   ;;
1997
1998 # This must be Linux ELF.
1999 linux-gnu*)
2000   case $host_cpu in
2001   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2002     lt_cv_deplibs_check_method=pass_all ;;
2003   *)
2004     # glibc up to 2.1.1 does not perform some relocations on ARM
2005     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2006   esac
2007   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2008   ;;
2009
2010 netbsd*)
2011   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2012     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2013   else
2014     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2015   fi
2016   ;;
2017
2018 newsos6)
2019   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2020   lt_cv_file_magic_cmd=/usr/bin/file
2021   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2022   ;;
2023
2024 osf3* | osf4* | osf5*)
2025   # this will be overridden with pass_all, but let us keep it just in case
2026   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2027   lt_cv_file_magic_test_file=/shlib/libc.so
2028   lt_cv_deplibs_check_method=pass_all
2029   ;;
2030
2031 sco3.2v5*)
2032   lt_cv_deplibs_check_method=pass_all
2033   ;;
2034
2035 solaris*)
2036   lt_cv_deplibs_check_method=pass_all
2037   lt_cv_file_magic_test_file=/lib/libc.so
2038   ;;
2039
2040 sysv5uw[78]* | sysv4*uw2*)
2041   lt_cv_deplibs_check_method=pass_all
2042   ;;
2043
2044 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2045   case $host_vendor in
2046   ncr)
2047     lt_cv_deplibs_check_method=pass_all
2048     ;;
2049   motorola)
2050     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]'
2051     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2052     ;;
2053   esac
2054   ;;
2055 esac
2056
2057 fi
2058
2059 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2060 file_magic_cmd=$lt_cv_file_magic_cmd
2061 deplibs_check_method=$lt_cv_deplibs_check_method
2062
2063 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2064 echo "configure:2065: checking for object suffix" >&5
2065 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2066   echo $ac_n "(cached) $ac_c" 1>&6
2067 else
2068   rm -f conftest*
2069 echo 'int i = 1;' > conftest.$ac_ext
2070 if { (eval echo configure:2071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2071   for ac_file in conftest.*; do
2072     case $ac_file in
2073     *.c) ;;
2074     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2075     esac
2076   done
2077 else
2078   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2079 fi
2080 rm -f conftest*
2081 fi
2082
2083 echo "$ac_t""$ac_cv_objext" 1>&6
2084 OBJEXT=$ac_cv_objext
2085 ac_objext=$ac_cv_objext
2086
2087 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2088
2089 # Only perform the check for file, if the check method requires it
2090 case $deplibs_check_method in
2091 file_magic*)
2092   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2093     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2094 echo "configure:2095: checking for ${ac_tool_prefix}file" >&5
2095 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2096   echo $ac_n "(cached) $ac_c" 1>&6
2097 else
2098   case $MAGIC_CMD in
2099   /*)
2100   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2101   ;;
2102   ?:/*)
2103   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2104   ;;
2105   *)
2106   ac_save_MAGIC_CMD="$MAGIC_CMD"
2107   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2108   ac_dummy="/usr/bin:$PATH"
2109   for ac_dir in $ac_dummy; do
2110     test -z "$ac_dir" && ac_dir=.
2111     if test -f $ac_dir/${ac_tool_prefix}file; then
2112       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2113       if test -n "$file_magic_test_file"; then
2114         case $deplibs_check_method in
2115         "file_magic "*)
2116           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2117           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2118           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2119             egrep "$file_magic_regex" > /dev/null; then
2120             :
2121           else
2122             cat <<EOF 1>&2
2123
2124 *** Warning: the command libtool uses to detect shared libraries,
2125 *** $file_magic_cmd, produces output that libtool cannot recognize.
2126 *** The result is that libtool may fail to recognize shared libraries
2127 *** as such.  This will affect the creation of libtool libraries that
2128 *** depend on shared libraries, but programs linked with such libtool
2129 *** libraries will work regardless of this problem.  Nevertheless, you
2130 *** may want to report the problem to your system manager and/or to
2131 *** bug-libtool@gnu.org
2132
2133 EOF
2134           fi ;;
2135         esac
2136       fi
2137       break
2138     fi
2139   done
2140   IFS="$ac_save_ifs"
2141   MAGIC_CMD="$ac_save_MAGIC_CMD"
2142   ;;
2143 esac
2144 fi
2145
2146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2147 if test -n "$MAGIC_CMD"; then
2148   echo "$ac_t""$MAGIC_CMD" 1>&6
2149 else
2150   echo "$ac_t""no" 1>&6
2151 fi
2152
2153 if test -z "$lt_cv_path_MAGIC_CMD"; then
2154   if test -n "$ac_tool_prefix"; then
2155     echo $ac_n "checking for file""... $ac_c" 1>&6
2156 echo "configure:2157: checking for file" >&5
2157 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2158   echo $ac_n "(cached) $ac_c" 1>&6
2159 else
2160   case $MAGIC_CMD in
2161   /*)
2162   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2163   ;;
2164   ?:/*)
2165   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2166   ;;
2167   *)
2168   ac_save_MAGIC_CMD="$MAGIC_CMD"
2169   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2170   ac_dummy="/usr/bin:$PATH"
2171   for ac_dir in $ac_dummy; do
2172     test -z "$ac_dir" && ac_dir=.
2173     if test -f $ac_dir/file; then
2174       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2175       if test -n "$file_magic_test_file"; then
2176         case $deplibs_check_method in
2177         "file_magic "*)
2178           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2179           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2180           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2181             egrep "$file_magic_regex" > /dev/null; then
2182             :
2183           else
2184             cat <<EOF 1>&2
2185
2186 *** Warning: the command libtool uses to detect shared libraries,
2187 *** $file_magic_cmd, produces output that libtool cannot recognize.
2188 *** The result is that libtool may fail to recognize shared libraries
2189 *** as such.  This will affect the creation of libtool libraries that
2190 *** depend on shared libraries, but programs linked with such libtool
2191 *** libraries will work regardless of this problem.  Nevertheless, you
2192 *** may want to report the problem to your system manager and/or to
2193 *** bug-libtool@gnu.org
2194
2195 EOF
2196           fi ;;
2197         esac
2198       fi
2199       break
2200     fi
2201   done
2202   IFS="$ac_save_ifs"
2203   MAGIC_CMD="$ac_save_MAGIC_CMD"
2204   ;;
2205 esac
2206 fi
2207
2208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2209 if test -n "$MAGIC_CMD"; then
2210   echo "$ac_t""$MAGIC_CMD" 1>&6
2211 else
2212   echo "$ac_t""no" 1>&6
2213 fi
2214
2215   else
2216     MAGIC_CMD=:
2217   fi
2218 fi
2219
2220   fi
2221   ;;
2222 esac
2223
2224 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2225 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2227 echo "configure:2228: checking for $ac_word" >&5
2228 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2229   echo $ac_n "(cached) $ac_c" 1>&6
2230 else
2231   if test -n "$RANLIB"; then
2232   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2233 else
2234   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2235   ac_dummy="$PATH"
2236   for ac_dir in $ac_dummy; do
2237     test -z "$ac_dir" && ac_dir=.
2238     if test -f $ac_dir/$ac_word; then
2239       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2240       break
2241     fi
2242   done
2243   IFS="$ac_save_ifs"
2244 fi
2245 fi
2246 RANLIB="$ac_cv_prog_RANLIB"
2247 if test -n "$RANLIB"; then
2248   echo "$ac_t""$RANLIB" 1>&6
2249 else
2250   echo "$ac_t""no" 1>&6
2251 fi
2252
2253
2254 if test -z "$ac_cv_prog_RANLIB"; then
2255 if test -n "$ac_tool_prefix"; then
2256   # Extract the first word of "ranlib", so it can be a program name with args.
2257 set dummy ranlib; ac_word=$2
2258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2259 echo "configure:2260: checking for $ac_word" >&5
2260 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2261   echo $ac_n "(cached) $ac_c" 1>&6
2262 else
2263   if test -n "$RANLIB"; then
2264   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2265 else
2266   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2267   ac_dummy="$PATH"
2268   for ac_dir in $ac_dummy; do
2269     test -z "$ac_dir" && ac_dir=.
2270     if test -f $ac_dir/$ac_word; then
2271       ac_cv_prog_RANLIB="ranlib"
2272       break
2273     fi
2274   done
2275   IFS="$ac_save_ifs"
2276   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2277 fi
2278 fi
2279 RANLIB="$ac_cv_prog_RANLIB"
2280 if test -n "$RANLIB"; then
2281   echo "$ac_t""$RANLIB" 1>&6
2282 else
2283   echo "$ac_t""no" 1>&6
2284 fi
2285
2286 else
2287   RANLIB=":"
2288 fi
2289 fi
2290
2291 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2292 set dummy ${ac_tool_prefix}strip; ac_word=$2
2293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2294 echo "configure:2295: checking for $ac_word" >&5
2295 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2296   echo $ac_n "(cached) $ac_c" 1>&6
2297 else
2298   if test -n "$STRIP"; then
2299   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2300 else
2301   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2302   ac_dummy="$PATH"
2303   for ac_dir in $ac_dummy; do
2304     test -z "$ac_dir" && ac_dir=.
2305     if test -f $ac_dir/$ac_word; then
2306       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2307       break
2308     fi
2309   done
2310   IFS="$ac_save_ifs"
2311 fi
2312 fi
2313 STRIP="$ac_cv_prog_STRIP"
2314 if test -n "$STRIP"; then
2315   echo "$ac_t""$STRIP" 1>&6
2316 else
2317   echo "$ac_t""no" 1>&6
2318 fi
2319
2320
2321 if test -z "$ac_cv_prog_STRIP"; then
2322 if test -n "$ac_tool_prefix"; then
2323   # Extract the first word of "strip", so it can be a program name with args.
2324 set dummy strip; ac_word=$2
2325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2326 echo "configure:2327: checking for $ac_word" >&5
2327 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2328   echo $ac_n "(cached) $ac_c" 1>&6
2329 else
2330   if test -n "$STRIP"; then
2331   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2332 else
2333   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2334   ac_dummy="$PATH"
2335   for ac_dir in $ac_dummy; do
2336     test -z "$ac_dir" && ac_dir=.
2337     if test -f $ac_dir/$ac_word; then
2338       ac_cv_prog_STRIP="strip"
2339       break
2340     fi
2341   done
2342   IFS="$ac_save_ifs"
2343   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2344 fi
2345 fi
2346 STRIP="$ac_cv_prog_STRIP"
2347 if test -n "$STRIP"; then
2348   echo "$ac_t""$STRIP" 1>&6
2349 else
2350   echo "$ac_t""no" 1>&6
2351 fi
2352
2353 else
2354   STRIP=":"
2355 fi
2356 fi
2357
2358
2359 # Check for any special flags to pass to ltconfig.
2360 libtool_flags="--cache-file=$cache_file"
2361 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2362 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2363 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2364 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2365 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2366 libtool_flags="$libtool_flags --enable-dlopen"
2367
2368 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2369 if test "${enable_libtool_lock+set}" = set; then
2370   enableval="$enable_libtool_lock"
2371   :
2372 fi
2373
2374 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2375 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2376
2377 # Check whether --with-pic or --without-pic was given.
2378 if test "${with_pic+set}" = set; then
2379   withval="$with_pic"
2380   pic_mode="$withval"
2381 else
2382   pic_mode=default
2383 fi
2384
2385 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2386 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2387
2388 # Some flags need to be propagated to the compiler or linker for good
2389 # libtool support.
2390 case $host in
2391 *-*-irix6*)
2392   # Find out which ABI we are using.
2393   echo '#line 2394 "configure"' > conftest.$ac_ext
2394   if { (eval echo configure:2395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2395     case `/usr/bin/file conftest.$ac_objext` in
2396     *32-bit*)
2397       LD="${LD-ld} -32"
2398       ;;
2399     *N32*)
2400       LD="${LD-ld} -n32"
2401       ;;
2402     *64-bit*)
2403       LD="${LD-ld} -64"
2404       ;;
2405     esac
2406   fi
2407   rm -rf conftest*
2408   ;;
2409
2410 ia64-*-hpux*)
2411   # Find out which ABI we are using.
2412   echo 'int i;' > conftest.$ac_ext
2413   if { (eval echo configure:2414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2414     case "`/usr/bin/file conftest.o`" in
2415     *ELF-32*)
2416       HPUX_IA64_MODE="32"
2417       ;;
2418     *ELF-64*)
2419       HPUX_IA64_MODE="64"
2420       ;;
2421     esac
2422   fi
2423   rm -rf conftest*
2424   ;;
2425
2426 *-*-sco3.2v5*)
2427   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2428   SAVE_CFLAGS="$CFLAGS"
2429   CFLAGS="$CFLAGS -belf"
2430   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2431 echo "configure:2432: checking whether the C compiler needs -belf" >&5
2432 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2433   echo $ac_n "(cached) $ac_c" 1>&6
2434 else
2435   
2436      ac_ext=c
2437 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2438 ac_cpp='$CPP $CPPFLAGS'
2439 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2440 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2441 cross_compiling=$ac_cv_prog_cc_cross
2442
2443      cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2446
2447 int main() {
2448
2449 ; return 0; }
2450 EOF
2451 if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2452   rm -rf conftest*
2453   lt_cv_cc_needs_belf=yes
2454 else
2455   echo "configure: failed program was:" >&5
2456   cat conftest.$ac_ext >&5
2457   rm -rf conftest*
2458   lt_cv_cc_needs_belf=no
2459 fi
2460 rm -f conftest*
2461      ac_ext=c
2462 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2463 ac_cpp='$CPP $CPPFLAGS'
2464 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2465 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2466 cross_compiling=$ac_cv_prog_cc_cross
2467
2468 fi
2469
2470 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2471   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2472     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2473     CFLAGS="$SAVE_CFLAGS"
2474   fi
2475   ;;
2476
2477
2478 esac
2479
2480 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2481 echo "configure:2482: checking how to run the C++ preprocessor" >&5
2482 if test -z "$CXXCPP"; then
2483 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2484   echo $ac_n "(cached) $ac_c" 1>&6
2485 else
2486   ac_ext=C
2487 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2488 ac_cpp='$CXXCPP $CPPFLAGS'
2489 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2490 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2491 cross_compiling=$ac_cv_prog_cxx_cross
2492   CXXCPP="${CXX-g++} -E"
2493   cat > conftest.$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2496 #include <stdlib.h>
2497 EOF
2498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2499 { (eval echo configure:2500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2501 if test -z "$ac_err"; then
2502   :
2503 else
2504   echo "$ac_err" >&5
2505   echo "configure: failed program was:" >&5
2506   cat conftest.$ac_ext >&5
2507   rm -rf conftest*
2508   CXXCPP=/lib/cpp
2509 fi
2510 rm -f conftest*
2511   ac_cv_prog_CXXCPP="$CXXCPP"
2512 ac_ext=c
2513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2517 cross_compiling=$ac_cv_prog_cc_cross
2518 fi
2519 fi
2520 CXXCPP="$ac_cv_prog_CXXCPP"
2521 echo "$ac_t""$CXXCPP" 1>&6
2522
2523
2524 # Save cache, so that ltconfig can load it
2525 cat > confcache <<\EOF
2526 # This file is a shell script that caches the results of configure
2527 # tests run on this system so they can be shared between configure
2528 # scripts and configure runs.  It is not useful on other systems.
2529 # If it contains results you don't want to keep, you may remove or edit it.
2530 #
2531 # By default, configure uses ./config.cache as the cache file,
2532 # creating it if it does not exist already.  You can give configure
2533 # the --cache-file=FILE option to use a different cache file; that is
2534 # what configure does when it calls configure scripts in
2535 # subdirectories, so they share the cache.
2536 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2537 # config.status only pays attention to the cache file if you give it the
2538 # --recheck option to rerun configure.
2539 #
2540 EOF
2541 # The following way of writing the cache mishandles newlines in values,
2542 # but we know of no workaround that is simple, portable, and efficient.
2543 # So, don't put newlines in cache variables' values.
2544 # Ultrix sh set writes to stderr and can't be redirected directly,
2545 # and sets the high bit in the cache file unless we assign to the vars.
2546 (set) 2>&1 |
2547   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2548   *ac_space=\ *)
2549     # `set' does not quote correctly, so add quotes (double-quote substitution
2550     # turns \\\\ into \\, and sed turns \\ into \).
2551     sed -n \
2552       -e "s/'/'\\\\''/g" \
2553       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2554     ;;
2555   *)
2556     # `set' quotes correctly as required by POSIX, so do not add quotes.
2557     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2558     ;;
2559   esac >> confcache
2560 if cmp -s $cache_file confcache; then
2561   :
2562 else
2563   if test -w $cache_file; then
2564     echo "updating cache $cache_file"
2565     cat confcache > $cache_file
2566   else
2567     echo "not updating unwritable cache $cache_file"
2568   fi
2569 fi
2570 rm -f confcache
2571
2572
2573 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2574 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2575 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2576 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2577 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2578 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2579 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2580 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2581 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2582 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2583
2584 # Reload cache, that may have been modified by ltconfig
2585 if test -r "$cache_file"; then
2586   echo "loading cache $cache_file"
2587   . $cache_file
2588 else
2589   echo "creating cache $cache_file"
2590   > $cache_file
2591 fi
2592
2593
2594 # This can be used to rebuild libtool when needed
2595 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2596
2597 # Always use our own libtool.
2598 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2599
2600 # Redirect the config.log output again, so that the ltconfig log is not
2601 # clobbered by the next message.
2602 exec 5>>./config.log
2603
2604
2605
2606 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2607 lt_save_CC="$CC"
2608 lt_save_CFLAGS="$CFLAGS"
2609 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2610 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2611 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2612 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2613 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2614 deplibs_check_method="$deplibs_check_method" \
2615 file_magic_cmd="$file_magic_cmd" \
2616 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2617 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2618 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2619 CC="$lt_save_CC"
2620 CFLAGS="$lt_save_CFLAGS"
2621
2622 # Redirect the config.log output again, so that the ltconfig log is not
2623 # clobbered by the next message.
2624 exec 5>>./config.log
2625
2626   
2627
2628   
2629          
2630          
2631
2632
2633
2634 # Check for c++ or library specific bits that don't require linking.
2635 #GLIBCPP_CHECK_COMPILER_VERSION
2636 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2637 echo "configure:2638: checking for GNU make" >&5
2638 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2639   echo $ac_n "(cached) $ac_c" 1>&6
2640 else
2641   _cv_gnu_make_command='' ;
2642           for a in "${MAKE-make}" make gmake gnumake ; do
2643                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2644                   then
2645                           _cv_gnu_make_command=$a ;
2646                           break;
2647                   fi
2648           done ;
2649   
2650 fi
2651
2652 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2653   if test  "x$_cv_gnu_make_command" != "x"  ; then
2654           ifGNUmake='' ;
2655   else
2656           ifGNUmake='#' ;
2657   fi
2658   
2659
2660
2661 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2662 # Check whether --enable-debug or --disable-debug was given.
2663 if test "${enable_debug+set}" = set; then
2664   enableval="$enable_debug"
2665   case "${enableval}" in
2666  yes) enable_debug=yes ;;
2667  no)  enable_debug=no ;;
2668  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2669  esac
2670 else
2671   enable_debug=no
2672 fi
2673
2674 case "${enable_debug}" in
2675     yes) 
2676         DEBUG_FLAGS='-O0 -ggdb3'                        
2677         ;; 
2678     no)   
2679         DEBUG_FLAGS='-g'
2680         ;;
2681 esac
2682
2683
2684 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2685 echo "configure:2686: checking how to run the C preprocessor" >&5
2686 # On Suns, sometimes $CPP names a directory.
2687 if test -n "$CPP" && test -d "$CPP"; then
2688   CPP=
2689 fi
2690 if test -z "$CPP"; then
2691 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2692   echo $ac_n "(cached) $ac_c" 1>&6
2693 else
2694     # This must be in double quotes, not single quotes, because CPP may get
2695   # substituted into the Makefile and "${CC-cc}" will confuse make.
2696   CPP="${CC-cc} -E"
2697   # On the NeXT, cc -E runs the code through the compiler's parser,
2698   # not just through cpp.
2699   cat > conftest.$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2702 #include <assert.h>
2703 Syntax Error
2704 EOF
2705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2706 { (eval echo configure:2707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2708 if test -z "$ac_err"; then
2709   :
2710 else
2711   echo "$ac_err" >&5
2712   echo "configure: failed program was:" >&5
2713   cat conftest.$ac_ext >&5
2714   rm -rf conftest*
2715   CPP="${CC-cc} -E -traditional-cpp"
2716   cat > conftest.$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2719 #include <assert.h>
2720 Syntax Error
2721 EOF
2722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2723 { (eval echo configure:2724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2725 if test -z "$ac_err"; then
2726   :
2727 else
2728   echo "$ac_err" >&5
2729   echo "configure: failed program was:" >&5
2730   cat conftest.$ac_ext >&5
2731   rm -rf conftest*
2732   CPP="${CC-cc} -nologo -E"
2733   cat > conftest.$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2736 #include <assert.h>
2737 Syntax Error
2738 EOF
2739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2740 { (eval echo configure:2741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2742 if test -z "$ac_err"; then
2743   :
2744 else
2745   echo "$ac_err" >&5
2746   echo "configure: failed program was:" >&5
2747   cat conftest.$ac_ext >&5
2748   rm -rf conftest*
2749   CPP=/lib/cpp
2750 fi
2751 rm -f conftest*
2752 fi
2753 rm -f conftest*
2754 fi
2755 rm -f conftest*
2756   ac_cv_prog_CPP="$CPP"
2757 fi
2758   CPP="$ac_cv_prog_CPP"
2759 else
2760   ac_cv_prog_CPP="$CPP"
2761 fi
2762 echo "$ac_t""$CPP" 1>&6
2763
2764
2765   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2766 echo "configure:2767: checking for cstdio to use" >&5
2767   # Check whether --enable-cstdio or --disable-cstdio was given.
2768 if test "${enable_cstdio+set}" = set; then
2769   enableval="$enable_cstdio"
2770   if test x$enable_cstdio = xno; then
2771      enable_cstdio=stdio
2772   fi
2773 else
2774   enable_cstdio=stdio
2775 fi
2776
2777
2778   enable_cstdio_flag=$enable_cstdio
2779
2780     case x${enable_cstdio_flag} in
2781     xlibio)
2782       CSTDIO_H=config/io/c_io_libio.h
2783       BASIC_FILE_H=config/io/basic_file_libio.h
2784       BASIC_FILE_CC=config/io/basic_file_libio.cc
2785       echo "$ac_t""libio" 1>&6
2786
2787       # see if we are on a system with libio native (ie, linux)
2788       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2789 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2790 echo "configure:2791: checking for libio.h" >&5
2791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2792   echo $ac_n "(cached) $ac_c" 1>&6
2793 else
2794   cat > conftest.$ac_ext <<EOF
2795 #line 2796 "configure"
2796 #include "confdefs.h"
2797 #include <libio.h>
2798 EOF
2799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2800 { (eval echo configure:2801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2802 if test -z "$ac_err"; then
2803   rm -rf conftest*
2804   eval "ac_cv_header_$ac_safe=yes"
2805 else
2806   echo "$ac_err" >&5
2807   echo "configure: failed program was:" >&5
2808   cat conftest.$ac_ext >&5
2809   rm -rf conftest*
2810   eval "ac_cv_header_$ac_safe=no"
2811 fi
2812 rm -f conftest*
2813 fi
2814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2815   echo "$ac_t""yes" 1>&6
2816   has_libio=yes
2817 else
2818   echo "$ac_t""no" 1>&6
2819 has_libio=no
2820 fi
2821
2822
2823       # Need to check and see what version of glibc is being used. If
2824       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2825       # compile most of libio for linux systems.
2826       if test x$has_libio = x"yes"; then
2827         case "$target" in
2828           *-*-linux*)
2829               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2830 echo "configure:2831: checking for glibc version >= 2.2" >&5
2831               cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834
2835             #include <features.h>
2836               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2837                     ok
2838               #endif
2839               
2840 EOF
2841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2842   egrep "ok" >/dev/null 2>&1; then
2843   rm -rf conftest*
2844   glibc_satisfactory=yes
2845 else
2846   rm -rf conftest*
2847   glibc_satisfactory=no
2848 fi
2849 rm -f conftest*
2850
2851               echo "$ac_t""$glibc_satisfactory" 1>&6
2852             ;;
2853         esac
2854
2855         # XXX at the moment, admit defeat and force the recompilation
2856         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2857         glibc_satisfactory=no        
2858
2859         if test x$glibc_satisfactory = x"yes"; then
2860            need_libio=no
2861            need_wlibio=no        
2862         else
2863            need_libio=yes
2864            # bkoz XXX need to add checks to enable this
2865            # pme XXX here's a first pass at such a check
2866            if test x$enable_c_mbchar != xno; then
2867               need_wlibio=yes
2868            else
2869               need_wlibio=no
2870            fi
2871         fi
2872
2873       else
2874          # Using libio, but <libio.h> doesn't exist on the target system. . .
2875          need_libio=yes
2876          # bkoz XXX need to add checks to enable this
2877          # pme XXX here's a first pass at such a check
2878          if test x$enable_c_mbchar != xno; then
2879              need_wlibio=yes
2880          else
2881              need_wlibio=no
2882          fi
2883       fi
2884       ;;
2885     xstdio | x | xno | xnone | xyes)
2886       # default
2887       CSTDIO_H=config/io/c_io_stdio.h
2888       BASIC_FILE_H=config/io/basic_file_stdio.h
2889       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2890       echo "$ac_t""stdio" 1>&6
2891
2892       # We're not using stdio.
2893       need_libio=no
2894       need_wlibio=no
2895       ;;
2896     *)
2897       echo "$enable_cstdio is an unknown io package" 1>&2
2898       exit 1
2899       ;;
2900   esac
2901   
2902   
2903   
2904
2905   # 2000-08-04 bkoz hack
2906   CCODECVT_C=config/io/c_io_libio_codecvt.c
2907   
2908   # 2000-08-04 bkoz hack
2909
2910   
2911
2912 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2913   GLIBCPP_BUILD_LIBIO_TRUE=
2914   GLIBCPP_BUILD_LIBIO_FALSE='#'
2915 else
2916   GLIBCPP_BUILD_LIBIO_TRUE='#'
2917   GLIBCPP_BUILD_LIBIO_FALSE=
2918 fi
2919   
2920
2921 if test "$need_libio" = yes; then
2922   GLIBCPP_NEED_LIBIO_TRUE=
2923   GLIBCPP_NEED_LIBIO_FALSE='#'
2924 else
2925   GLIBCPP_NEED_LIBIO_TRUE='#'
2926   GLIBCPP_NEED_LIBIO_FALSE=
2927 fi
2928   
2929
2930 if test "$need_wlibio" = yes; then
2931   GLIBCPP_NEED_WLIBIO_TRUE=
2932   GLIBCPP_NEED_WLIBIO_FALSE='#'
2933 else
2934   GLIBCPP_NEED_WLIBIO_TRUE='#'
2935   GLIBCPP_NEED_WLIBIO_FALSE=
2936 fi
2937   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2938     libio_la=../libio/libio.la
2939   else
2940     libio_la=
2941   fi
2942   
2943
2944
2945   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2946 echo "configure:2947: checking for clocale to use" >&5
2947   # Check whether --enable-clocale or --disable-clocale was given.
2948 if test "${enable_clocale+set}" = set; then
2949   enableval="$enable_clocale"
2950   if test x$enable_clocale = xno; then
2951      enable_clocale=no
2952   fi
2953 else
2954   enable_clocale=no
2955 fi
2956
2957
2958   enable_clocale_flag=$enable_clocale
2959
2960       if test x$enable_clocale_flag = xno; then
2961     case x${target_os} in
2962       xlinux* | xgnu*)
2963         cat > conftest.$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2966
2967         #include <features.h>
2968         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2969           _GLIBCPP_ok
2970         #endif
2971         
2972 EOF
2973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2974   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2975   rm -rf conftest*
2976   enable_clocale_flag=gnu
2977 else
2978   rm -rf conftest*
2979   enable_clocale_flag=generic
2980 fi
2981 rm -f conftest*
2982
2983
2984         # Test for bugs early in glibc-2.2.x series
2985         if test x$enable_clocale_flag = xgnu; then
2986           if test "$cross_compiling" = yes; then
2987   enable_clocale_flag=generic
2988 else
2989   cat > conftest.$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2992
2993           #define _GNU_SOURCE 1
2994           #include <locale.h>
2995           #include <string.h>
2996           #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
2997           extern __typeof(newlocale) __newlocale;
2998           extern __typeof(duplocale) __duplocale;
2999           extern __typeof(strcoll_l) __strcoll_l;
3000           #endif
3001           int main()
3002           {
3003             const char __one[] = "Äuglein Augmen";
3004             const char __two[] = "Äuglein";
3005             int i;
3006             int j;
3007             __locale_t  loc;
3008             __locale_t  loc_dup;
3009             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3010             loc_dup = __duplocale(loc);
3011             i = __strcoll_l(__one, __two, loc);
3012             j = __strcoll_l(__one, __two, loc_dup);
3013             return 0;
3014           }
3015           
3016 EOF
3017 if { (eval echo configure:3018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3018 then
3019   enable_clocale_flag=gnu
3020 else
3021   echo "configure: failed program was:" >&5
3022   cat conftest.$ac_ext >&5
3023   rm -fr conftest*
3024   enable_clocale_flag=generic
3025 fi
3026 rm -fr conftest*
3027 fi
3028
3029         fi
3030
3031         # ... at some point put __strxfrm_l tests in as well.
3032         ;;
3033       *)
3034         enable_clocale_flag=generic
3035         ;;
3036     esac
3037   fi
3038
3039     # Check whether --enable-nls or --disable-nls was given.
3040 if test "${enable_nls+set}" = set; then
3041   enableval="$enable_nls"
3042   :
3043 else
3044   enable_nls=yes
3045 fi
3046
3047   USE_NLS=no
3048
3049     case x${enable_clocale_flag} in
3050     xgeneric)
3051       echo "$ac_t""generic" 1>&6
3052
3053       CLOCALE_H=config/locale/generic/c_locale.h
3054       CLOCALE_CC=config/locale/generic/c_locale.cc
3055       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3056       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3057       CCOLLATE_CC=config/locale/generic/collate_members.cc
3058       CCTYPE_CC=config/locale/generic/ctype_members.cc
3059       CMESSAGES_H=config/locale/generic/messages_members.h
3060       CMESSAGES_CC=config/locale/generic/messages_members.cc
3061       CMONEY_CC=config/locale/generic/monetary_members.cc
3062       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3063       CTIME_CC=config/locale/generic/time_members.cc
3064       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3065       ;;
3066     xgnu)
3067       echo "$ac_t""gnu" 1>&6
3068
3069       # Declare intention to use gettext, and add support for specific
3070       # languages.
3071       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3072       ALL_LINGUAS="de fr"
3073
3074       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3075       # Extract the first word of "msgfmt", so it can be a program name with args.
3076 set dummy msgfmt; ac_word=$2
3077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3078 echo "configure:3079: checking for $ac_word" >&5
3079 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3080   echo $ac_n "(cached) $ac_c" 1>&6
3081 else
3082   if test -n "$check_msgfmt"; then
3083   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3084 else
3085   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3086   ac_dummy="$PATH"
3087   for ac_dir in $ac_dummy; do
3088     test -z "$ac_dir" && ac_dir=.
3089     if test -f $ac_dir/$ac_word; then
3090       ac_cv_prog_check_msgfmt="yes"
3091       break
3092     fi
3093   done
3094   IFS="$ac_save_ifs"
3095   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3096 fi
3097 fi
3098 check_msgfmt="$ac_cv_prog_check_msgfmt"
3099 if test -n "$check_msgfmt"; then
3100   echo "$ac_t""$check_msgfmt" 1>&6
3101 else
3102   echo "$ac_t""no" 1>&6
3103 fi
3104
3105       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3106         USE_NLS=yes
3107       fi
3108       # Export the build objects.
3109       for ling in $ALL_LINGUAS; do \
3110         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3111         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3112       done
3113       
3114       
3115
3116       CLOCALE_H=config/locale/gnu/c_locale.h
3117       CLOCALE_CC=config/locale/gnu/c_locale.cc
3118       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3119       CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3120       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3121       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3122       CMESSAGES_H=config/locale/gnu/messages_members.h
3123       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3124       CMONEY_CC=config/locale/gnu/monetary_members.cc
3125       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3126       CTIME_CC=config/locale/gnu/time_members.cc
3127       CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3128       ;;
3129     xieee_1003.1-2001)
3130       echo "$ac_t""generic" 1>&6
3131
3132       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3133       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3134       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3135       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3136       CCOLLATE_CC=config/locale/generic/collate_members.cc
3137       CCTYPE_CC=config/locale/generic/ctype_members.cc
3138       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3139       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3140       CMONEY_CC=config/locale/generic/monetary_members.cc
3141       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3142       CTIME_CC=config/locale/generic/time_members.cc
3143       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3144       ;;
3145     *)
3146       echo "$enable_clocale is an unknown locale package" 1>&2
3147       exit 1
3148       ;;
3149   esac
3150
3151   # This is where the testsuite looks for locale catalogs, using the
3152   # -DLOCALEDIR define during testsuite compilation.
3153   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3154   
3155
3156   # For the time being, transform ctype_noninline.h to ctype_members_char.cc
3157 #  CCTYPE_CHAR_CC=config/${os_include_dir}/ctype_noninline.h
3158
3159   
3160   
3161   
3162   
3163   
3164   
3165   
3166 #  AC_LINK_FILES($CCTYPE_CHAR_CC, src/ctype_members_char.cc)
3167   
3168   
3169   
3170   
3171   
3172   
3173
3174 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3175 if test "${enable_c_mbchar+set}" = set; then
3176   enableval="$enable_c_mbchar"
3177   case "$enableval" in
3178  yes) enable_c_mbchar=yes ;;
3179  no)  enable_c_mbchar=no ;;
3180  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3181  esac
3182 else
3183   enable_c_mbchar=yes
3184 fi
3185
3186   
3187   # Check whether --enable-c99 or --disable-c99 was given.
3188 if test "${enable_c99+set}" = set; then
3189   enableval="$enable_c99"
3190     case "$enableval" in
3191    yes) enable_c99=yes ;;
3192    no)  enable_c99=no ;;
3193    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3194    esac
3195 else
3196   enable_c99=yes
3197 fi
3198  
3199   
3200   ac_ext=C
3201 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3202 ac_cpp='$CXXCPP $CPPFLAGS'
3203 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3204 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3205 cross_compiling=$ac_cv_prog_cxx_cross
3206
3207
3208   # Check for the existence of <math.h> functions used if C99 is enabled.
3209   ac_c99_math=yes;
3210   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3211 echo "configure:3212: checking for ISO C99 support in <math.h>" >&5
3212   cat > conftest.$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3215 #include <math.h>
3216 int main() {
3217 fpclassify(0.0);
3218 ; return 0; }
3219 EOF
3220 if { (eval echo configure:3221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3221   :
3222 else
3223   echo "configure: failed program was:" >&5
3224   cat conftest.$ac_ext >&5
3225   rm -rf conftest*
3226   ac_c99_math=no
3227 fi
3228 rm -f conftest*
3229   cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3232 #include <math.h>
3233 int main() {
3234 isfinite(0.0);
3235 ; return 0; }
3236 EOF
3237 if { (eval echo configure:3238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3238   :
3239 else
3240   echo "configure: failed program was:" >&5
3241   cat conftest.$ac_ext >&5
3242   rm -rf conftest*
3243   ac_c99_math=no
3244 fi
3245 rm -f conftest*
3246   cat > conftest.$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3249 #include <math.h>
3250 int main() {
3251 isinf(0.0);
3252 ; return 0; }
3253 EOF
3254 if { (eval echo configure:3255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3255   :
3256 else
3257   echo "configure: failed program was:" >&5
3258   cat conftest.$ac_ext >&5
3259   rm -rf conftest*
3260   ac_c99_math=no
3261 fi
3262 rm -f conftest*
3263   cat > conftest.$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3266 #include <math.h>
3267 int main() {
3268 isnan(0.0);
3269 ; return 0; }
3270 EOF
3271 if { (eval echo configure:3272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3272   :
3273 else
3274   echo "configure: failed program was:" >&5
3275   cat conftest.$ac_ext >&5
3276   rm -rf conftest*
3277   ac_c99_math=no
3278 fi
3279 rm -f conftest*
3280   cat > conftest.$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3283 #include <math.h>
3284 int main() {
3285 isnormal(0.0);
3286 ; return 0; }
3287 EOF
3288 if { (eval echo configure:3289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3289   :
3290 else
3291   echo "configure: failed program was:" >&5
3292   cat conftest.$ac_ext >&5
3293   rm -rf conftest*
3294   ac_c99_math=no
3295 fi
3296 rm -f conftest*
3297   cat > conftest.$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3300 #include <math.h>
3301 int main() {
3302 signbit(0.0);
3303 ; return 0; }
3304 EOF
3305 if { (eval echo configure:3306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3306   :
3307 else
3308   echo "configure: failed program was:" >&5
3309   cat conftest.$ac_ext >&5
3310   rm -rf conftest*
3311   ac_c99_math=no
3312 fi
3313 rm -f conftest*
3314   cat > conftest.$ac_ext <<EOF
3315 #line 3316 "configure"
3316 #include "confdefs.h"
3317 #include <math.h>
3318 int main() {
3319 isgreater(0.0,0.0);
3320 ; return 0; }
3321 EOF
3322 if { (eval echo configure:3323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3323   :
3324 else
3325   echo "configure: failed program was:" >&5
3326   cat conftest.$ac_ext >&5
3327   rm -rf conftest*
3328   ac_c99_math=no
3329 fi
3330 rm -f conftest*
3331   cat > conftest.$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 #include <math.h>
3335 int main() {
3336 isgreaterequal(0.0,0.0);
3337 ; return 0; }
3338 EOF
3339 if { (eval echo configure:3340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3340   :
3341 else
3342   echo "configure: failed program was:" >&5
3343   cat conftest.$ac_ext >&5
3344   rm -rf conftest*
3345   ac_c99_math=no
3346 fi
3347 rm -f conftest*
3348   cat > conftest.$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3351 #include <math.h>
3352 int main() {
3353 isless(0.0,0.0);
3354 ; return 0; }
3355 EOF
3356 if { (eval echo configure:3357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3357   :
3358 else
3359   echo "configure: failed program was:" >&5
3360   cat conftest.$ac_ext >&5
3361   rm -rf conftest*
3362   ac_c99_math=no
3363 fi
3364 rm -f conftest*
3365   cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 #include <math.h>
3369 int main() {
3370 islessequal(0.0,0.0);
3371 ; return 0; }
3372 EOF
3373 if { (eval echo configure:3374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3374   :
3375 else
3376   echo "configure: failed program was:" >&5
3377   cat conftest.$ac_ext >&5
3378   rm -rf conftest*
3379   ac_c99_math=no
3380 fi
3381 rm -f conftest*
3382   cat > conftest.$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3385 #include <math.h>
3386 int main() {
3387 islessgreater(0.0,0.0);
3388 ; return 0; }
3389 EOF
3390 if { (eval echo configure:3391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3391   :
3392 else
3393   echo "configure: failed program was:" >&5
3394   cat conftest.$ac_ext >&5
3395   rm -rf conftest*
3396   ac_c99_math=no
3397 fi
3398 rm -f conftest*
3399   cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3402 #include <math.h>
3403 int main() {
3404 isunordered(0.0,0.0);
3405 ; return 0; }
3406 EOF
3407 if { (eval echo configure:3408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3408   :
3409 else
3410   echo "configure: failed program was:" >&5
3411   cat conftest.$ac_ext >&5
3412   rm -rf conftest*
3413   ac_c99_math=no
3414 fi
3415 rm -f conftest*
3416   echo "$ac_t""$ac_c99_math" 1>&6
3417
3418   # Check for the existence in <stdio.h> of vscanf, et. al.
3419   ac_c99_stdio=yes;
3420   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3421 echo "configure:3422: checking for ISO C99 support in <stdio.h>" >&5
3422   cat > conftest.$ac_ext <<EOF
3423 #line 3424 "configure"
3424 #include "confdefs.h"
3425 #include <stdio.h>
3426 int main() {
3427 snprintf("12", 0, "%i");
3428 ; return 0; }
3429 EOF
3430 if { (eval echo configure:3431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3431   :
3432 else
3433   echo "configure: failed program was:" >&5
3434   cat conftest.$ac_ext >&5
3435   rm -rf conftest*
3436   ac_c99_stdio=no
3437 fi
3438 rm -f conftest*
3439   cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 #include <stdio.h>
3443                   #include <stdarg.h>
3444                   void foo(char* fmt, ...)
3445                   {va_list args; va_start(args, fmt);
3446                   vfscanf(stderr, "%i", args);}
3447 int main() {
3448
3449 ; return 0; }
3450 EOF
3451 if { (eval echo configure:3452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3452   :
3453 else
3454   echo "configure: failed program was:" >&5
3455   cat conftest.$ac_ext >&5
3456   rm -rf conftest*
3457   ac_c99_stdio=no
3458 fi
3459 rm -f conftest*
3460   cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3463 #include <stdio.h>
3464                   #include <stdarg.h>
3465                   void foo(char* fmt, ...)
3466                   {va_list args; va_start(args, fmt);
3467                   vscanf("%i", args);}
3468 int main() {
3469
3470 ; return 0; }
3471 EOF
3472 if { (eval echo configure:3473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3473   :
3474 else
3475   echo "configure: failed program was:" >&5
3476   cat conftest.$ac_ext >&5
3477   rm -rf conftest*
3478   ac_c99_stdio=no
3479 fi
3480 rm -f conftest*
3481   cat > conftest.$ac_ext <<EOF
3482 #line 3483 "configure"
3483 #include "confdefs.h"
3484 #include <stdio.h>
3485                   #include <stdarg.h>
3486                   void foo(char* fmt, ...)
3487                   {va_list args; va_start(args, fmt);
3488                   vsnprintf(fmt, 0, "%i", args);}
3489 int main() {
3490
3491 ; return 0; }
3492 EOF
3493 if { (eval echo configure:3494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3494   :
3495 else
3496   echo "configure: failed program was:" >&5
3497   cat conftest.$ac_ext >&5
3498   rm -rf conftest*
3499   ac_c99_stdio=no
3500 fi
3501 rm -f conftest*
3502   cat > conftest.$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3505 #include <stdio.h>
3506                   #include <stdarg.h>
3507                   void foo(char* fmt, ...)
3508                   {va_list args; va_start(args, fmt);
3509                   vsscanf(fmt, "%i", args);}
3510 int main() {
3511
3512 ; return 0; }
3513 EOF
3514 if { (eval echo configure:3515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3515   :
3516 else
3517   echo "configure: failed program was:" >&5
3518   cat conftest.$ac_ext >&5
3519   rm -rf conftest*
3520   ac_c99_stdio=no
3521 fi
3522 rm -f conftest*
3523   echo "$ac_t""$ac_c99_stdio" 1>&6
3524
3525   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3526   ac_c99_stdlib=yes;
3527   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3528 echo "configure:3529: checking for lldiv_t declaration" >&5
3529   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3530   echo $ac_n "(cached) $ac_c" 1>&6
3531 else
3532   
3533   cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3536 #include <stdlib.h>
3537 int main() {
3538  lldiv_t mydivt;
3539 ; return 0; }
3540 EOF
3541 if { (eval echo configure:3542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3542   rm -rf conftest*
3543   ac_c99_lldiv_t=yes
3544 else
3545   echo "configure: failed program was:" >&5
3546   cat conftest.$ac_ext >&5
3547   rm -rf conftest*
3548   ac_c99_lldiv_t=no
3549 fi
3550 rm -f conftest*
3551   
3552 fi
3553
3554   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3555
3556   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3557 echo "configure:3558: checking for ISO C99 support in <stdlib.h>" >&5
3558   cat > conftest.$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 #include <stdlib.h>
3562 int main() {
3563 char* tmp; strtof("gnu", &tmp);
3564 ; return 0; }
3565 EOF
3566 if { (eval echo configure:3567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3567   :
3568 else
3569   echo "configure: failed program was:" >&5
3570   cat conftest.$ac_ext >&5
3571   rm -rf conftest*
3572   ac_c99_stdlib=no
3573 fi
3574 rm -f conftest*
3575   cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 #include <stdlib.h>
3579 int main() {
3580 char* tmp; strtold("gnu", &tmp);
3581 ; return 0; }
3582 EOF
3583 if { (eval echo configure:3584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3584   :
3585 else
3586   echo "configure: failed program was:" >&5
3587   cat conftest.$ac_ext >&5
3588   rm -rf conftest*
3589   ac_c99_stdlib=no
3590 fi
3591 rm -f conftest*
3592   cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 #include <stdlib.h>
3596 int main() {
3597 llabs(10);
3598 ; return 0; }
3599 EOF
3600 if { (eval echo configure:3601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3601   :
3602 else
3603   echo "configure: failed program was:" >&5
3604   cat conftest.$ac_ext >&5
3605   rm -rf conftest*
3606   ac_c99_stdlib=no
3607 fi
3608 rm -f conftest*
3609   cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3612 #include <stdlib.h>
3613 int main() {
3614 lldiv(10,1);
3615 ; return 0; }
3616 EOF
3617 if { (eval echo configure:3618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3618   :
3619 else
3620   echo "configure: failed program was:" >&5
3621   cat conftest.$ac_ext >&5
3622   rm -rf conftest*
3623   ac_c99_stdlib=no
3624 fi
3625 rm -f conftest*
3626   cat > conftest.$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3629 #include <stdlib.h>
3630 int main() {
3631 atoll("10");
3632 ; return 0; }
3633 EOF
3634 if { (eval echo configure:3635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3635   :
3636 else
3637   echo "configure: failed program was:" >&5
3638   cat conftest.$ac_ext >&5
3639   rm -rf conftest*
3640   ac_c99_stdlib=no
3641 fi
3642 rm -f conftest*
3643   cat > conftest.$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 #include <stdlib.h>
3647 int main() {
3648 _Exit(0);
3649 ; return 0; }
3650 EOF
3651 if { (eval echo configure:3652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3652   :
3653 else
3654   echo "configure: failed program was:" >&5
3655   cat conftest.$ac_ext >&5
3656   rm -rf conftest*
3657   ac_c99_stdlib=no
3658 fi
3659 rm -f conftest*
3660   if test x"$ac_c99_lldiv_t" = x"no"; then
3661     ac_c99_stdlib=no; 
3662   fi; 
3663   echo "$ac_t""$ac_c99_stdlib" 1>&6
3664
3665   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3666   # XXX the wchar.h checks should be rolled into the general C99 bits.
3667   ac_c99_wchar=yes;
3668   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3669 echo "configure:3670: checking for additional ISO C99 support in <wchar.h>" >&5
3670   cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3673 #include <wchar.h>
3674 int main() {
3675 wcstold(L"10.0", NULL);
3676 ; return 0; }
3677 EOF
3678 if { (eval echo configure:3679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3679   :
3680 else
3681   echo "configure: failed program was:" >&5
3682   cat conftest.$ac_ext >&5
3683   rm -rf conftest*
3684   ac_c99_wchar=no
3685 fi
3686 rm -f conftest*
3687   cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 #include <wchar.h>
3691 int main() {
3692 wcstoll(L"10", NULL, 10);
3693 ; return 0; }
3694 EOF
3695 if { (eval echo configure:3696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3696   :
3697 else
3698   echo "configure: failed program was:" >&5
3699   cat conftest.$ac_ext >&5
3700   rm -rf conftest*
3701   ac_c99_wchar=no
3702 fi
3703 rm -f conftest*
3704   cat > conftest.$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3707 #include <wchar.h>
3708 int main() {
3709 wcstoull(L"10", NULL, 10);
3710 ; return 0; }
3711 EOF
3712 if { (eval echo configure:3713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3713   :
3714 else
3715   echo "configure: failed program was:" >&5
3716   cat conftest.$ac_ext >&5
3717   rm -rf conftest*
3718   ac_c99_wchar=no
3719 fi
3720 rm -f conftest*
3721   echo "$ac_t""$ac_c99_wchar" 1>&6
3722
3723   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3724 echo "configure:3725: checking for enabled ISO C99 support" >&5
3725   if test x"$ac_c99_math" = x"no" ||
3726      test x"$ac_c99_stdio" = x"no" ||
3727      test x"$ac_c99_stdlib" = x"no" ||
3728      test x"$ac_c99_wchar" = x"no"; then
3729     enable_c99=no; 
3730   fi; 
3731   echo "$ac_t""$enable_c99" 1>&6
3732
3733   # Option parsed, now set things appropriately
3734   if test x"$enable_c99" = x"yes"; then
3735     cat >> confdefs.h <<\EOF
3736 #define _GLIBCPP_USE_C99 1
3737 EOF
3738
3739   fi
3740
3741   ac_ext=c
3742 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3745 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3746 cross_compiling=$ac_cv_prog_cc_cross
3747
3748
3749   
3750   # Check whether --enable-long-long or --disable-long-long was given.
3751 if test "${enable_long_long+set}" = set; then
3752   enableval="$enable_long_long"
3753     case "$enableval" in
3754    yes) enable_long_long=yes ;;
3755    no)  enable_long_long=no ;;
3756    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3757    esac
3758 else
3759   enable_long_long=yes
3760 fi
3761
3762   
3763   ac_ext=C
3764 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3765 ac_cpp='$CXXCPP $CPPFLAGS'
3766 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3767 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3768 cross_compiling=$ac_cv_prog_cxx_cross
3769
3770
3771   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3772 echo "configure:3773: checking for enabled long long I/O support" >&5
3773   # iostreams require strtoll, strtoull to compile
3774   cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3777 #include <stdlib.h>
3778 int main() {
3779 char* tmp; strtoll("gnu", &tmp, 10);
3780 ; return 0; }
3781 EOF
3782 if { (eval echo configure:3783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3783   :
3784 else
3785   echo "configure: failed program was:" >&5
3786   cat conftest.$ac_ext >&5
3787   rm -rf conftest*
3788   enable_long_long=no
3789 fi
3790 rm -f conftest*
3791   cat > conftest.$ac_ext <<EOF
3792 #line 3793 "configure"
3793 #include "confdefs.h"
3794 #include <stdlib.h>
3795 int main() {
3796 char* tmp; strtoull("gnu", &tmp, 10);
3797 ; return 0; }
3798 EOF
3799 if { (eval echo configure:3800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3800   :
3801 else
3802   echo "configure: failed program was:" >&5
3803   cat conftest.$ac_ext >&5
3804   rm -rf conftest*
3805   enable_long_long=no
3806 fi
3807 rm -f conftest*
3808
3809   # Option parsed, now set things appropriately
3810   if test x"$enable_long_long" = xyes; then
3811     cat >> confdefs.h <<\EOF
3812 #define _GLIBCPP_USE_LONG_LONG 1
3813 EOF
3814
3815   fi
3816   echo "$ac_t""$enable_long_long" 1>&6
3817
3818   ac_ext=c
3819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3822 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3823 cross_compiling=$ac_cv_prog_cc_cross
3824
3825
3826 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3827 echo "configure:3828: checking for c header strategy to use" >&5
3828 # Check whether --enable-cheaders or --disable-cheaders was given.
3829 if test "${enable_cheaders+set}" = set; then
3830   enableval="$enable_cheaders"
3831   
3832   case "$enableval" in
3833    c) 
3834         enable_cheaders=c 
3835         ;;
3836    c_std)  
3837         enable_cheaders=c_std 
3838         ;;
3839    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3840         ;;
3841   esac
3842 else
3843   enable_cheaders=c_std
3844 fi
3845
3846   echo "$ac_t""$enable_cheaders" 1>&6
3847
3848     case "$enable_cheaders" in
3849     c_std)   
3850         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3851         ;;
3852     c)   
3853         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3854         ;;
3855   esac
3856
3857   
3858   
3859
3860 if test "$enable_cheaders" = c; then
3861   GLIBCPP_C_HEADERS_C_TRUE=
3862   GLIBCPP_C_HEADERS_C_FALSE='#'
3863 else
3864   GLIBCPP_C_HEADERS_C_TRUE='#'
3865   GLIBCPP_C_HEADERS_C_FALSE=
3866 fi
3867   
3868
3869 if test "$enable_cheaders" = c_std; then
3870   GLIBCPP_C_HEADERS_C_STD_TRUE=
3871   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3872 else
3873   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3874   GLIBCPP_C_HEADERS_C_STD_FALSE=
3875 fi
3876   
3877
3878 if test "$c_compatibility" = yes; then
3879   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3880   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3881 else
3882   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3883   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3884 fi
3885
3886
3887   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3888 echo "configure:3889: checking for thread model used by GCC" >&5
3889   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3890   echo "$ac_t""$target_thread_file" 1>&6
3891
3892   if test $target_thread_file != single; then
3893     cat >> confdefs.h <<\EOF
3894 #define HAVE_GTHR_DEFAULT 1
3895 EOF
3896
3897     cat >> confdefs.h <<\EOF
3898 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3899 EOF
3900
3901   fi
3902
3903   glibcpp_thread_h=gthr-$target_thread_file.h
3904   
3905
3906 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3907 if test "${enable_cxx_flags+set}" = set; then
3908   enableval="$enable_cxx_flags"
3909   case "x$enableval" in
3910  xyes)   
3911         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3912  xno|x)  
3913         enable_cxx_flags='' ;;
3914  *)      
3915         enable_cxx_flags="$enableval" ;;
3916  esac
3917 else
3918   enable_cxx_flags='none'
3919 fi
3920
3921
3922 if test "$enable_cxx_flags" = "none"; then 
3923   enable_cxx_flags=''; 
3924 fi
3925
3926 if test -n "$enable_cxx_flags"; then
3927     for f in $enable_cxx_flags; do
3928         case "$f" in
3929             -fhonor-std)  ;;
3930             -*)  ;;
3931             *)   # and we're trying to pass /what/ exactly?
3932                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3933         esac
3934     done
3935 fi
3936 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3937
3938
3939
3940   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3941 echo "configure:3942: checking for exception model to use" >&5
3942   
3943   ac_ext=C
3944 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3945 ac_cpp='$CXXCPP $CPPFLAGS'
3946 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3947 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3948 cross_compiling=$ac_cv_prog_cxx_cross
3949
3950   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3951 if test "${enable_sjlj_exceptions+set}" = set; then
3952   enableval="$enable_sjlj_exceptions"
3953   :
3954 else
3955                        cat > conftest.$ac_ext << EOF
3956 #line 3957 "configure"
3957 struct S { ~S(); };
3958 void bar();
3959 void foo()
3960 {
3961   S s;
3962   bar();
3963 }
3964 EOF
3965    old_CXXFLAGS="$CXXFLAGS"  
3966    CXXFLAGS=-S
3967    if { (eval echo configure:3968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3968      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3969        enable_sjlj_exceptions=yes
3970      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3971        enable_sjlj_exceptions=no
3972      fi
3973    fi
3974    CXXFLAGS="$old_CXXFLAGS"
3975    rm -f conftest*
3976 fi
3977
3978    if test x$enable_sjlj_exceptions = xyes; then
3979      cat >> confdefs.h <<\EOF
3980 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3981 EOF
3982
3983      ac_exception_model_name=sjlj
3984    elif test x$enable_sjlj_exceptions = xno; then
3985      ac_exception_model_name="call frame"
3986    else
3987      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3988    fi
3989    ac_ext=c
3990 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3993 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3994 cross_compiling=$ac_cv_prog_cc_cross
3995
3996    echo "$ac_t""$ac_exception_model_name" 1>&6
3997
3998
3999   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4000 echo "configure:4001: checking for use of libunwind" >&5
4001   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4002 if test "${enable_libunwind_exceptions+set}" = set; then
4003   enableval="$enable_libunwind_exceptions"
4004   use_libunwind_exceptions=$enableval
4005 else
4006   use_libunwind_exceptions=no
4007 fi
4008
4009   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4010     if test x"$use_libunwind_exceptions" = xyes; then
4011     LIBUNWIND_FLAG="-lunwind"
4012   else
4013     LIBUNWIND_FLAG=""
4014   fi
4015   
4016
4017 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4018 if test "${enable_concept_checks+set}" = set; then
4019   enableval="$enable_concept_checks"
4020   case "$enableval" in
4021  yes) enable_concept_checks=yes ;;
4022  no)  enable_concept_checks=no ;;
4023  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4024  esac
4025 else
4026   enable_concept_checks=no
4027 fi
4028 if test x"$enable_concept_checks" = xyes; then
4029   cat >> confdefs.h <<\EOF
4030 #define _GLIBCPP_CONCEPT_CHECKS 1
4031 EOF
4032
4033 fi
4034
4035
4036 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4037 for ac_hdr in string.h stdlib.h
4038 do
4039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4041 echo "configure:4042: checking for $ac_hdr" >&5
4042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4043   echo $ac_n "(cached) $ac_c" 1>&6
4044 else
4045   cat > conftest.$ac_ext <<EOF
4046 #line 4047 "configure"
4047 #include "confdefs.h"
4048 #include <$ac_hdr>
4049 EOF
4050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4051 { (eval echo configure:4052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4053 if test -z "$ac_err"; then
4054   rm -rf conftest*
4055   eval "ac_cv_header_$ac_safe=yes"
4056 else
4057   echo "$ac_err" >&5
4058   echo "configure: failed program was:" >&5
4059   cat conftest.$ac_ext >&5
4060   rm -rf conftest*
4061   eval "ac_cv_header_$ac_safe=no"
4062 fi
4063 rm -f conftest*
4064 fi
4065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4066   echo "$ac_t""yes" 1>&6
4067     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4068   cat >> confdefs.h <<EOF
4069 #define $ac_tr_hdr 1
4070 EOF
4071  
4072 else
4073   echo "$ac_t""no" 1>&6
4074 fi
4075 done
4076
4077
4078 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4079
4080   # We are being configured with some form of cross compiler.
4081   GLIBCPP_IS_CROSS_COMPILING=1
4082
4083   # This lets us hard-code the functionality we know we'll have in the cross
4084   # target environment.  "Let" is a sugar-coated word placed on an especially
4085   # dull and tedious hack, actually.
4086   #
4087   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4088   # that involve linking, can't be used:
4089   #    "cannot open sim-crt0.o"
4090   #    "cannot open crt0.o"
4091   # etc.  All this is because there currently exists no unified, consistent
4092   # way for top level CC information to be passed down to target directories:
4093   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4094   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4095   # crosses can be removed.
4096
4097   # If Canadian cross, then don't pick up tools from the build directory.
4098   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4099   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4100     CANADIAN=yes
4101   else
4102     CANADIAN=no
4103   fi
4104
4105   # Construct crosses by hand, eliminating bits that need ld...
4106   # GLIBCPP_CHECK_COMPILER_FEATURES
4107   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4108   # GLIBCPP_CHECK_MATH_SUPPORT
4109
4110   case "$target" in
4111     *-linux*)
4112       os_include_dir="os/gnu-linux"
4113       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4114         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4115         fp.h locale.h float.h inttypes.h
4116 do
4117 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4119 echo "configure:4120: checking for $ac_hdr" >&5
4120 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4121   echo $ac_n "(cached) $ac_c" 1>&6
4122 else
4123   cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126 #include <$ac_hdr>
4127 EOF
4128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4129 { (eval echo configure:4130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4131 if test -z "$ac_err"; then
4132   rm -rf conftest*
4133   eval "ac_cv_header_$ac_safe=yes"
4134 else
4135   echo "$ac_err" >&5
4136   echo "configure: failed program was:" >&5
4137   cat conftest.$ac_ext >&5
4138   rm -rf conftest*
4139   eval "ac_cv_header_$ac_safe=no"
4140 fi
4141 rm -f conftest*
4142 fi
4143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4144   echo "$ac_t""yes" 1>&6
4145     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4146   cat >> confdefs.h <<EOF
4147 #define $ac_tr_hdr 1
4148 EOF
4149  
4150 else
4151   echo "$ac_t""no" 1>&6
4152 fi
4153 done
4154
4155       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4156       
4157       
4158   # If we're not using GNU ld, then there's no point in even trying these
4159   # tests.  Check for that first.  We should have already tested for gld
4160   # by now (in libtool), but require it now just to be safe...
4161   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4162   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4163   
4164
4165   # The name set by libtool depends on the version of libtool.  Shame on us
4166   # for depending on an impl detail, but c'est la vie.  Older versions used
4167   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4168   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4169   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4170   # set (hence we're using an older libtool), then set it.
4171   if test x${with_gnu_ld+set} != xset; then
4172     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4173       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4174       with_gnu_ld=no
4175     else
4176       with_gnu_ld=$ac_cv_prog_gnu_ld
4177     fi
4178   fi
4179
4180   # Start by getting the version number.  I think the libtool test already
4181   # does some of this, but throws away the result.
4182   
4183   ldver=`$LD --version 2>/dev/null | head -1 | \
4184          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4185   
4186   glibcpp_gnu_ld_version=`echo $ldver | \
4187          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4188
4189   # Set --gc-sections.
4190   if test "$with_gnu_ld" = "notbroken"; then
4191     # GNU ld it is!  Joy and bunny rabbits!
4192
4193     # All these tests are for C++; save the language and the compiler flags.
4194     # Need to do this so that g++ won't try to link in libstdc++
4195     ac_test_CFLAGS="${CFLAGS+set}"
4196     ac_save_CFLAGS="$CFLAGS"
4197     CFLAGS='-x c++  -Wl,--gc-sections'
4198
4199     # Check for -Wl,--gc-sections
4200     # XXX This test is broken at the moment, as symbols required for
4201     # linking are now in libsupc++ (not built yet.....). In addition, 
4202     # this test has cored on solaris in the past. In addition,
4203     # --gc-sections doesn't really work at the moment (keeps on discarding
4204     # used sections, first .eh_frame and now some of the glibc sections for
4205     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4206     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4207 echo "configure:4208: checking for ld that supports -Wl,--gc-sections" >&5
4208     if test "$cross_compiling" = yes; then
4209   ac_sectionLDflags=yes
4210 else
4211   cat > conftest.$ac_ext <<EOF
4212 #line 4213 "configure"
4213 #include "confdefs.h"
4214
4215      int main(void) 
4216      {
4217        try { throw 1; }
4218        catch (...) { };
4219        return 0;
4220      }
4221     
4222 EOF
4223 if { (eval echo configure:4224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4224 then
4225   ac_sectionLDflags=yes
4226 else
4227   echo "configure: failed program was:" >&5
4228   cat conftest.$ac_ext >&5
4229   rm -fr conftest*
4230   ac_sectionLDflags=no
4231 fi
4232 rm -fr conftest*
4233 fi
4234
4235     if test "$ac_test_CFLAGS" = set; then
4236       CFLAGS="$ac_save_CFLAGS"
4237     else
4238       # this is the suspicious part
4239       CFLAGS=''
4240     fi
4241     if test "$ac_sectionLDflags" = "yes"; then
4242       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4243     fi
4244     echo "$ac_t""$ac_sectionLDflags" 1>&6
4245   fi
4246
4247   # Set linker optimization flags.
4248   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4249     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4250   fi
4251
4252   
4253   
4254
4255       
4256     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4257 echo "configure:4258: checking for main in -lm" >&5
4258 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4260   echo $ac_n "(cached) $ac_c" 1>&6
4261 else
4262   ac_save_LIBS="$LIBS"
4263 LIBS="-lm  $LIBS"
4264 cat > conftest.$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4267
4268 int main() {
4269 main()
4270 ; return 0; }
4271 EOF
4272 if { (eval echo configure:4273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4273   rm -rf conftest*
4274   eval "ac_cv_lib_$ac_lib_var=yes"
4275 else
4276   echo "configure: failed program was:" >&5
4277   cat conftest.$ac_ext >&5
4278   rm -rf conftest*
4279   eval "ac_cv_lib_$ac_lib_var=no"
4280 fi
4281 rm -f conftest*
4282 LIBS="$ac_save_LIBS"
4283
4284 fi
4285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4286   echo "$ac_t""yes" 1>&6
4287     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4288     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4289   cat >> confdefs.h <<EOF
4290 #define $ac_tr_lib 1
4291 EOF
4292
4293   LIBS="-lm $LIBS"
4294
4295 else
4296   echo "$ac_t""no" 1>&6
4297 fi
4298
4299   for ac_func in nan copysignf
4300 do
4301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4302 echo "configure:4303: checking for $ac_func" >&5
4303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4304   echo $ac_n "(cached) $ac_c" 1>&6
4305 else
4306   cat > conftest.$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4309 /* System header to define __stub macros and hopefully few prototypes,
4310     which can conflict with char $ac_func(); below.  */
4311 #include <assert.h>
4312 /* Override any gcc2 internal prototype to avoid an error.  */
4313 /* We use char because int might match the return type of a gcc2
4314     builtin and then its argument prototype would still apply.  */
4315 char $ac_func();
4316
4317 int main() {
4318
4319 /* The GNU C library defines this for functions which it implements
4320     to always fail with ENOSYS.  Some functions are actually named
4321     something starting with __ and the normal name is an alias.  */
4322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4323 choke me
4324 #else
4325 $ac_func();
4326 #endif
4327
4328 ; return 0; }
4329 EOF
4330 if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4331   rm -rf conftest*
4332   eval "ac_cv_func_$ac_func=yes"
4333 else
4334   echo "configure: failed program was:" >&5
4335   cat conftest.$ac_ext >&5
4336   rm -rf conftest*
4337   eval "ac_cv_func_$ac_func=no"
4338 fi
4339 rm -f conftest*
4340 fi
4341
4342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4343   echo "$ac_t""yes" 1>&6
4344     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4345   cat >> confdefs.h <<EOF
4346 #define $ac_tr_func 1
4347 EOF
4348  
4349 else
4350   echo "$ac_t""no" 1>&6
4351 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4352 fi
4353 done
4354
4355
4356     for ac_func in __signbit
4357 do
4358 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4359 echo "configure:4360: checking for $ac_func" >&5
4360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4361   echo $ac_n "(cached) $ac_c" 1>&6
4362 else
4363   cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4366 /* System header to define __stub macros and hopefully few prototypes,
4367     which can conflict with char $ac_func(); below.  */
4368 #include <assert.h>
4369 /* Override any gcc2 internal prototype to avoid an error.  */
4370 /* We use char because int might match the return type of a gcc2
4371     builtin and then its argument prototype would still apply.  */
4372 char $ac_func();
4373
4374 int main() {
4375
4376 /* The GNU C library defines this for functions which it implements
4377     to always fail with ENOSYS.  Some functions are actually named
4378     something starting with __ and the normal name is an alias.  */
4379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4380 choke me
4381 #else
4382 $ac_func();
4383 #endif
4384
4385 ; return 0; }
4386 EOF
4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4388   rm -rf conftest*
4389   eval "ac_cv_func_$ac_func=yes"
4390 else
4391   echo "configure: failed program was:" >&5
4392   cat conftest.$ac_ext >&5
4393   rm -rf conftest*
4394   eval "ac_cv_func_$ac_func=no"
4395 fi
4396 rm -f conftest*
4397 fi
4398
4399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4400   echo "$ac_t""yes" 1>&6
4401     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4402   cat >> confdefs.h <<EOF
4403 #define $ac_tr_func 1
4404 EOF
4405  
4406 else
4407   echo "$ac_t""no" 1>&6
4408 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4409 fi
4410 done
4411
4412   for ac_func in __signbitf
4413 do
4414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4415 echo "configure:4416: checking for $ac_func" >&5
4416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4417   echo $ac_n "(cached) $ac_c" 1>&6
4418 else
4419   cat > conftest.$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4422 /* System header to define __stub macros and hopefully few prototypes,
4423     which can conflict with char $ac_func(); below.  */
4424 #include <assert.h>
4425 /* Override any gcc2 internal prototype to avoid an error.  */
4426 /* We use char because int might match the return type of a gcc2
4427     builtin and then its argument prototype would still apply.  */
4428 char $ac_func();
4429
4430 int main() {
4431
4432 /* The GNU C library defines this for functions which it implements
4433     to always fail with ENOSYS.  Some functions are actually named
4434     something starting with __ and the normal name is an alias.  */
4435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4436 choke me
4437 #else
4438 $ac_func();
4439 #endif
4440
4441 ; return 0; }
4442 EOF
4443 if { (eval echo configure:4444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4444   rm -rf conftest*
4445   eval "ac_cv_func_$ac_func=yes"
4446 else
4447   echo "configure: failed program was:" >&5
4448   cat conftest.$ac_ext >&5
4449   rm -rf conftest*
4450   eval "ac_cv_func_$ac_func=no"
4451 fi
4452 rm -f conftest*
4453 fi
4454
4455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4456   echo "$ac_t""yes" 1>&6
4457     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4458   cat >> confdefs.h <<EOF
4459 #define $ac_tr_func 1
4460 EOF
4461  
4462 else
4463   echo "$ac_t""no" 1>&6
4464 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4465 fi
4466 done
4467
4468
4469           if test x$ac_cv_func_copysignl = x"yes"; then
4470     for ac_func in __signbitl
4471 do
4472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4473 echo "configure:4474: checking for $ac_func" >&5
4474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4475   echo $ac_n "(cached) $ac_c" 1>&6
4476 else
4477   cat > conftest.$ac_ext <<EOF
4478 #line 4479 "configure"
4479 #include "confdefs.h"
4480 /* System header to define __stub macros and hopefully few prototypes,
4481     which can conflict with char $ac_func(); below.  */
4482 #include <assert.h>
4483 /* Override any gcc2 internal prototype to avoid an error.  */
4484 /* We use char because int might match the return type of a gcc2
4485     builtin and then its argument prototype would still apply.  */
4486 char $ac_func();
4487
4488 int main() {
4489
4490 /* The GNU C library defines this for functions which it implements
4491     to always fail with ENOSYS.  Some functions are actually named
4492     something starting with __ and the normal name is an alias.  */
4493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4494 choke me
4495 #else
4496 $ac_func();
4497 #endif
4498
4499 ; return 0; }
4500 EOF
4501 if { (eval echo configure:4502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4502   rm -rf conftest*
4503   eval "ac_cv_func_$ac_func=yes"
4504 else
4505   echo "configure: failed program was:" >&5
4506   cat conftest.$ac_ext >&5
4507   rm -rf conftest*
4508   eval "ac_cv_func_$ac_func=no"
4509 fi
4510 rm -f conftest*
4511 fi
4512
4513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4514   echo "$ac_t""yes" 1>&6
4515     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4516   cat >> confdefs.h <<EOF
4517 #define $ac_tr_func 1
4518 EOF
4519  
4520 else
4521   echo "$ac_t""no" 1>&6
4522 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4523 fi
4524 done
4525
4526   fi
4527
4528   
4529
4530       
4531
4532       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4533 echo "configure:4534: checking for mbstate_t" >&5
4534   cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4537 #include <wchar.h>
4538 int main() {
4539 mbstate_t teststate;
4540 ; return 0; }
4541 EOF
4542 if { (eval echo configure:4543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4543   rm -rf conftest*
4544   have_mbstate_t=yes
4545 else
4546   echo "configure: failed program was:" >&5
4547   cat conftest.$ac_ext >&5
4548   rm -rf conftest*
4549   have_mbstate_t=no
4550 fi
4551 rm -f conftest*
4552   echo "$ac_t""$have_mbstate_t" 1>&6
4553   if test x"$have_mbstate_t" = xyes; then
4554     cat >> confdefs.h <<\EOF
4555 #define HAVE_MBSTATE_T 1
4556 EOF
4557
4558   fi
4559
4560     for ac_hdr in wchar.h
4561 do
4562 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4563 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4564 echo "configure:4565: checking for $ac_hdr" >&5
4565 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4566   echo $ac_n "(cached) $ac_c" 1>&6
4567 else
4568   cat > conftest.$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4571 #include <$ac_hdr>
4572 EOF
4573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4574 { (eval echo configure:4575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4576 if test -z "$ac_err"; then
4577   rm -rf conftest*
4578   eval "ac_cv_header_$ac_safe=yes"
4579 else
4580   echo "$ac_err" >&5
4581   echo "configure: failed program was:" >&5
4582   cat conftest.$ac_ext >&5
4583   rm -rf conftest*
4584   eval "ac_cv_header_$ac_safe=no"
4585 fi
4586 rm -f conftest*
4587 fi
4588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4589   echo "$ac_t""yes" 1>&6
4590     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4591   cat >> confdefs.h <<EOF
4592 #define $ac_tr_hdr 1
4593 EOF
4594  ac_has_wchar_h=yes
4595 else
4596   echo "$ac_t""no" 1>&6
4597 ac_has_wchar_h=no
4598 fi
4599 done
4600
4601   for ac_hdr in wctype.h
4602 do
4603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4605 echo "configure:4606: checking for $ac_hdr" >&5
4606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4607   echo $ac_n "(cached) $ac_c" 1>&6
4608 else
4609   cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 #include <$ac_hdr>
4613 EOF
4614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4615 { (eval echo configure:4616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4617 if test -z "$ac_err"; then
4618   rm -rf conftest*
4619   eval "ac_cv_header_$ac_safe=yes"
4620 else
4621   echo "$ac_err" >&5
4622   echo "configure: failed program was:" >&5
4623   cat conftest.$ac_ext >&5
4624   rm -rf conftest*
4625   eval "ac_cv_header_$ac_safe=no"
4626 fi
4627 rm -f conftest*
4628 fi
4629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4630   echo "$ac_t""yes" 1>&6
4631     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4632   cat >> confdefs.h <<EOF
4633 #define $ac_tr_hdr 1
4634 EOF
4635  ac_has_wctype_h=yes
4636 else
4637   echo "$ac_t""no" 1>&6
4638 ac_has_wctype_h=no
4639 fi
4640 done
4641
4642   
4643     if test x"$ac_has_wchar_h" = xyes &&
4644      test x"$ac_has_wctype_h" = xyes &&
4645      test x"$enable_c_mbchar" != xno; then
4646       
4647             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4648 echo "configure:4649: checking for WCHAR_MIN and WCHAR_MAX" >&5
4649     cat > conftest.$ac_ext <<EOF
4650 #line 4651 "configure"
4651 #include "confdefs.h"
4652 #include <wchar.h>
4653 int main() {
4654 int i = WCHAR_MIN; int j = WCHAR_MAX;
4655 ; return 0; }
4656 EOF
4657 if { (eval echo configure:4658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4658   rm -rf conftest*
4659   has_wchar_minmax=yes
4660 else
4661   echo "configure: failed program was:" >&5
4662   cat conftest.$ac_ext >&5
4663   rm -rf conftest*
4664   has_wchar_minmax=no
4665 fi
4666 rm -f conftest*
4667     echo "$ac_t""$has_wchar_minmax" 1>&6
4668     
4669             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4670 echo "configure:4671: checking for WEOF" >&5
4671     cat > conftest.$ac_ext <<EOF
4672 #line 4673 "configure"
4673 #include "confdefs.h"
4674
4675       #include <wchar.h>
4676       #include <stddef.h>
4677 int main() {
4678 wint_t i = WEOF;
4679 ; return 0; }
4680 EOF
4681 if { (eval echo configure:4682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4682   rm -rf conftest*
4683   has_weof=yes
4684 else
4685   echo "configure: failed program was:" >&5
4686   cat conftest.$ac_ext >&5
4687   rm -rf conftest*
4688   has_weof=no
4689 fi
4690 rm -f conftest*
4691     echo "$ac_t""$has_weof" 1>&6
4692   
4693         ac_wfuncs=yes
4694     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4695 do
4696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4697 echo "configure:4698: checking for $ac_func" >&5
4698 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4699   echo $ac_n "(cached) $ac_c" 1>&6
4700 else
4701   cat > conftest.$ac_ext <<EOF
4702 #line 4703 "configure"
4703 #include "confdefs.h"
4704 /* System header to define __stub macros and hopefully few prototypes,
4705     which can conflict with char $ac_func(); below.  */
4706 #include <assert.h>
4707 /* Override any gcc2 internal prototype to avoid an error.  */
4708 /* We use char because int might match the return type of a gcc2
4709     builtin and then its argument prototype would still apply.  */
4710 char $ac_func();
4711
4712 int main() {
4713
4714 /* The GNU C library defines this for functions which it implements
4715     to always fail with ENOSYS.  Some functions are actually named
4716     something starting with __ and the normal name is an alias.  */
4717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4718 choke me
4719 #else
4720 $ac_func();
4721 #endif
4722
4723 ; return 0; }
4724 EOF
4725 if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4726   rm -rf conftest*
4727   eval "ac_cv_func_$ac_func=yes"
4728 else
4729   echo "configure: failed program was:" >&5
4730   cat conftest.$ac_ext >&5
4731   rm -rf conftest*
4732   eval "ac_cv_func_$ac_func=no"
4733 fi
4734 rm -f conftest*
4735 fi
4736
4737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4738   echo "$ac_t""yes" 1>&6
4739     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4740   cat >> confdefs.h <<EOF
4741 #define $ac_tr_func 1
4742 EOF
4743  
4744 else
4745   echo "$ac_t""no" 1>&6
4746 \
4747     ac_wfuncs=no
4748 fi
4749 done
4750
4751   
4752         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4753     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4754     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4755     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4756     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4757     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4758 do
4759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4760 echo "configure:4761: checking for $ac_func" >&5
4761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4762   echo $ac_n "(cached) $ac_c" 1>&6
4763 else
4764   cat > conftest.$ac_ext <<EOF
4765 #line 4766 "configure"
4766 #include "confdefs.h"
4767 /* System header to define __stub macros and hopefully few prototypes,
4768     which can conflict with char $ac_func(); below.  */
4769 #include <assert.h>
4770 /* Override any gcc2 internal prototype to avoid an error.  */
4771 /* We use char because int might match the return type of a gcc2
4772     builtin and then its argument prototype would still apply.  */
4773 char $ac_func();
4774
4775 int main() {
4776
4777 /* The GNU C library defines this for functions which it implements
4778     to always fail with ENOSYS.  Some functions are actually named
4779     something starting with __ and the normal name is an alias.  */
4780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4781 choke me
4782 #else
4783 $ac_func();
4784 #endif
4785
4786 ; return 0; }
4787 EOF
4788 if { (eval echo configure:4789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4789   rm -rf conftest*
4790   eval "ac_cv_func_$ac_func=yes"
4791 else
4792   echo "configure: failed program was:" >&5
4793   cat conftest.$ac_ext >&5
4794   rm -rf conftest*
4795   eval "ac_cv_func_$ac_func=no"
4796 fi
4797 rm -f conftest*
4798 fi
4799
4800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4801   echo "$ac_t""yes" 1>&6
4802     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4803   cat >> confdefs.h <<EOF
4804 #define $ac_tr_func 1
4805 EOF
4806  
4807 else
4808   echo "$ac_t""no" 1>&6
4809 \
4810     ac_wfuncs=no
4811 fi
4812 done
4813
4814
4815     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4816 echo "configure:4817: checking for ISO C99 wchar_t support" >&5
4817     if test x"$has_weof" = xyes &&
4818        test x"$has_wchar_minmax" = xyes &&
4819        test x"$ac_wfuncs" = xyes; then
4820       ac_isoC99_wchar_t=yes
4821     else
4822       ac_isoC99_wchar_t=no
4823     fi
4824     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4825   
4826             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4827 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4828 echo "configure:4829: checking for iconv.h" >&5
4829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4830   echo $ac_n "(cached) $ac_c" 1>&6
4831 else
4832   cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4835 #include <iconv.h>
4836 EOF
4837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4838 { (eval echo configure:4839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4840 if test -z "$ac_err"; then
4841   rm -rf conftest*
4842   eval "ac_cv_header_$ac_safe=yes"
4843 else
4844   echo "$ac_err" >&5
4845   echo "configure: failed program was:" >&5
4846   cat conftest.$ac_ext >&5
4847   rm -rf conftest*
4848   eval "ac_cv_header_$ac_safe=no"
4849 fi
4850 rm -f conftest*
4851 fi
4852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4853   echo "$ac_t""yes" 1>&6
4854   ac_has_iconv_h=yes
4855 else
4856   echo "$ac_t""no" 1>&6
4857 ac_has_iconv_h=no
4858 fi
4859
4860     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4861 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4862 echo "configure:4863: checking for langinfo.h" >&5
4863 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4864   echo $ac_n "(cached) $ac_c" 1>&6
4865 else
4866   cat > conftest.$ac_ext <<EOF
4867 #line 4868 "configure"
4868 #include "confdefs.h"
4869 #include <langinfo.h>
4870 EOF
4871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4872 { (eval echo configure:4873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4874 if test -z "$ac_err"; then
4875   rm -rf conftest*
4876   eval "ac_cv_header_$ac_safe=yes"
4877 else
4878   echo "$ac_err" >&5
4879   echo "configure: failed program was:" >&5
4880   cat conftest.$ac_ext >&5
4881   rm -rf conftest*
4882   eval "ac_cv_header_$ac_safe=no"
4883 fi
4884 rm -f conftest*
4885 fi
4886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4887   echo "$ac_t""yes" 1>&6
4888   ac_has_langinfo_h=yes
4889 else
4890   echo "$ac_t""no" 1>&6
4891 ac_has_langinfo_h=no
4892 fi
4893
4894
4895         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4896 echo "configure:4897: checking for iconv in -liconv" >&5
4897 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4898 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4899   echo $ac_n "(cached) $ac_c" 1>&6
4900 else
4901   ac_save_LIBS="$LIBS"
4902 LIBS="-liconv  $LIBS"
4903 cat > conftest.$ac_ext <<EOF
4904 #line 4905 "configure"
4905 #include "confdefs.h"
4906 /* Override any gcc2 internal prototype to avoid an error.  */
4907 /* We use char because int might match the return type of a gcc2
4908     builtin and then its argument prototype would still apply.  */
4909 char iconv();
4910
4911 int main() {
4912 iconv()
4913 ; return 0; }
4914 EOF
4915 if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4916   rm -rf conftest*
4917   eval "ac_cv_lib_$ac_lib_var=yes"
4918 else
4919   echo "configure: failed program was:" >&5
4920   cat conftest.$ac_ext >&5
4921   rm -rf conftest*
4922   eval "ac_cv_lib_$ac_lib_var=no"
4923 fi
4924 rm -f conftest*
4925 LIBS="$ac_save_LIBS"
4926
4927 fi
4928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4929   echo "$ac_t""yes" 1>&6
4930   libiconv="-liconv"
4931 else
4932   echo "$ac_t""no" 1>&6
4933 fi
4934
4935     ac_save_LIBS="$LIBS"
4936     LIBS="$LIBS $libiconv"
4937
4938     for ac_func in iconv_open iconv_close iconv nl_langinfo
4939 do
4940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4941 echo "configure:4942: checking for $ac_func" >&5
4942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4943   echo $ac_n "(cached) $ac_c" 1>&6
4944 else
4945   cat > conftest.$ac_ext <<EOF
4946 #line 4947 "configure"
4947 #include "confdefs.h"
4948 /* System header to define __stub macros and hopefully few prototypes,
4949     which can conflict with char $ac_func(); below.  */
4950 #include <assert.h>
4951 /* Override any gcc2 internal prototype to avoid an error.  */
4952 /* We use char because int might match the return type of a gcc2
4953     builtin and then its argument prototype would still apply.  */
4954 char $ac_func();
4955
4956 int main() {
4957
4958 /* The GNU C library defines this for functions which it implements
4959     to always fail with ENOSYS.  Some functions are actually named
4960     something starting with __ and the normal name is an alias.  */
4961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4962 choke me
4963 #else
4964 $ac_func();
4965 #endif
4966
4967 ; return 0; }
4968 EOF
4969 if { (eval echo configure:4970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4970   rm -rf conftest*
4971   eval "ac_cv_func_$ac_func=yes"
4972 else
4973   echo "configure: failed program was:" >&5
4974   cat conftest.$ac_ext >&5
4975   rm -rf conftest*
4976   eval "ac_cv_func_$ac_func=no"
4977 fi
4978 rm -f conftest*
4979 fi
4980
4981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4982   echo "$ac_t""yes" 1>&6
4983     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4984   cat >> confdefs.h <<EOF
4985 #define $ac_tr_func 1
4986 EOF
4987  \
4988     ac_XPG2funcs=yes
4989 else
4990   echo "$ac_t""no" 1>&6
4991 ac_XPG2funcs=no
4992 fi
4993 done
4994
4995   
4996     LIBS="$ac_save_LIBS"
4997
4998     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
4999 echo "configure:5000: checking for XPG2 wchar_t support" >&5
5000     if test x"$ac_has_iconv_h" = xyes &&
5001        test x"$ac_has_langinfo_h" = xyes &&
5002        test x"$ac_XPG2funcs" = xyes; then
5003       ac_XPG2_wchar_t=yes
5004     else
5005       ac_XPG2_wchar_t=no
5006     fi
5007     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5008   
5009             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5010 echo "configure:5011: checking for enabled wchar_t specializations" >&5
5011     if test x"$ac_isoC99_wchar_t" = xyes &&
5012        test x"$ac_XPG2_wchar_t" = xyes; then
5013       cat >> confdefs.h <<\EOF
5014 #define _GLIBCPP_USE_WCHAR_T 1
5015 EOF
5016
5017       echo "$ac_t"""yes"" 1>&6
5018     else
5019       echo "$ac_t"""no"" 1>&6
5020     fi
5021   else
5022         echo "configure: warning: wchar_t support disabled." 1>&2
5023   fi
5024
5025       cat >> confdefs.h <<\EOF
5026 #define HAVE_COPYSIGN 1
5027 EOF
5028
5029       cat >> confdefs.h <<\EOF
5030 #define HAVE_COPYSIGNF 1
5031 EOF
5032
5033       cat >> confdefs.h <<\EOF
5034 #define HAVE_FINITE 1
5035 EOF
5036
5037       cat >> confdefs.h <<\EOF
5038 #define HAVE_FINITEF 1
5039 EOF
5040
5041       cat >> confdefs.h <<\EOF
5042 #define HAVE_FREXPF 1
5043 EOF
5044
5045       cat >> confdefs.h <<\EOF
5046 #define HAVE_HYPOTF 1
5047 EOF
5048
5049       cat >> confdefs.h <<\EOF
5050 #define HAVE_ISINF 1
5051 EOF
5052
5053       cat >> confdefs.h <<\EOF
5054 #define HAVE_ISINFF 1
5055 EOF
5056
5057       cat >> confdefs.h <<\EOF
5058 #define HAVE_ISNAN 1
5059 EOF
5060
5061       cat >> confdefs.h <<\EOF
5062 #define HAVE_ISNANF 1
5063 EOF
5064
5065       cat >> confdefs.h <<\EOF
5066 #define HAVE_SINCOS 1
5067 EOF
5068
5069       cat >> confdefs.h <<\EOF
5070 #define HAVE_SINCOSF 1
5071 EOF
5072
5073       if test x"long_double_math_on_this_cpu" = x"yes"; then
5074         cat >> confdefs.h <<\EOF
5075 #define HAVE_FINITEL 1
5076 EOF
5077
5078         cat >> confdefs.h <<\EOF
5079 #define HAVE_HYPOTL 1
5080 EOF
5081
5082         cat >> confdefs.h <<\EOF
5083 #define HAVE_ISINFL 1
5084 EOF
5085
5086         cat >> confdefs.h <<\EOF
5087 #define HAVE_ISNANL 1
5088 EOF
5089
5090       fi
5091       ;;
5092     *-hpux*)
5093       # Check for available headers.
5094       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5095         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5096         fp.h locale.h float.h inttypes.h
5097 do
5098 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5100 echo "configure:5101: checking for $ac_hdr" >&5
5101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5102   echo $ac_n "(cached) $ac_c" 1>&6
5103 else
5104   cat > conftest.$ac_ext <<EOF
5105 #line 5106 "configure"
5106 #include "confdefs.h"
5107 #include <$ac_hdr>
5108 EOF
5109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5110 { (eval echo configure:5111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5112 if test -z "$ac_err"; then
5113   rm -rf conftest*
5114   eval "ac_cv_header_$ac_safe=yes"
5115 else
5116   echo "$ac_err" >&5
5117   echo "configure: failed program was:" >&5
5118   cat conftest.$ac_ext >&5
5119   rm -rf conftest*
5120   eval "ac_cv_header_$ac_safe=no"
5121 fi
5122 rm -f conftest*
5123 fi
5124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5125   echo "$ac_t""yes" 1>&6
5126     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5127   cat >> confdefs.h <<EOF
5128 #define $ac_tr_hdr 1
5129 EOF
5130  
5131 else
5132   echo "$ac_t""no" 1>&6
5133 fi
5134 done
5135
5136       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5137       
5138       
5139   # If we're not using GNU ld, then there's no point in even trying these
5140   # tests.  Check for that first.  We should have already tested for gld
5141   # by now (in libtool), but require it now just to be safe...
5142   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5143   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5144   
5145
5146   # The name set by libtool depends on the version of libtool.  Shame on us
5147   # for depending on an impl detail, but c'est la vie.  Older versions used
5148   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5149   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5150   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5151   # set (hence we're using an older libtool), then set it.
5152   if test x${with_gnu_ld+set} != xset; then
5153     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5154       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5155       with_gnu_ld=no
5156     else
5157       with_gnu_ld=$ac_cv_prog_gnu_ld
5158     fi
5159   fi
5160
5161   # Start by getting the version number.  I think the libtool test already
5162   # does some of this, but throws away the result.
5163   
5164   ldver=`$LD --version 2>/dev/null | head -1 | \
5165          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5166   
5167   glibcpp_gnu_ld_version=`echo $ldver | \
5168          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5169
5170   # Set --gc-sections.
5171   if test "$with_gnu_ld" = "notbroken"; then
5172     # GNU ld it is!  Joy and bunny rabbits!
5173
5174     # All these tests are for C++; save the language and the compiler flags.
5175     # Need to do this so that g++ won't try to link in libstdc++
5176     ac_test_CFLAGS="${CFLAGS+set}"
5177     ac_save_CFLAGS="$CFLAGS"
5178     CFLAGS='-x c++  -Wl,--gc-sections'
5179
5180     # Check for -Wl,--gc-sections
5181     # XXX This test is broken at the moment, as symbols required for
5182     # linking are now in libsupc++ (not built yet.....). In addition, 
5183     # this test has cored on solaris in the past. In addition,
5184     # --gc-sections doesn't really work at the moment (keeps on discarding
5185     # used sections, first .eh_frame and now some of the glibc sections for
5186     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5187     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5188 echo "configure:5189: checking for ld that supports -Wl,--gc-sections" >&5
5189     if test "$cross_compiling" = yes; then
5190   ac_sectionLDflags=yes
5191 else
5192   cat > conftest.$ac_ext <<EOF
5193 #line 5194 "configure"
5194 #include "confdefs.h"
5195
5196      int main(void) 
5197      {
5198        try { throw 1; }
5199        catch (...) { };
5200        return 0;
5201      }
5202     
5203 EOF
5204 if { (eval echo configure:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5205 then
5206   ac_sectionLDflags=yes
5207 else
5208   echo "configure: failed program was:" >&5
5209   cat conftest.$ac_ext >&5
5210   rm -fr conftest*
5211   ac_sectionLDflags=no
5212 fi
5213 rm -fr conftest*
5214 fi
5215
5216     if test "$ac_test_CFLAGS" = set; then
5217       CFLAGS="$ac_save_CFLAGS"
5218     else
5219       # this is the suspicious part
5220       CFLAGS=''
5221     fi
5222     if test "$ac_sectionLDflags" = "yes"; then
5223       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5224     fi
5225     echo "$ac_t""$ac_sectionLDflags" 1>&6
5226   fi
5227
5228   # Set linker optimization flags.
5229   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5230     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5231   fi
5232
5233   
5234   
5235
5236       
5237     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5238 echo "configure:5239: checking for main in -lm" >&5
5239 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5241   echo $ac_n "(cached) $ac_c" 1>&6
5242 else
5243   ac_save_LIBS="$LIBS"
5244 LIBS="-lm  $LIBS"
5245 cat > conftest.$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5248
5249 int main() {
5250 main()
5251 ; return 0; }
5252 EOF
5253 if { (eval echo configure:5254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5254   rm -rf conftest*
5255   eval "ac_cv_lib_$ac_lib_var=yes"
5256 else
5257   echo "configure: failed program was:" >&5
5258   cat conftest.$ac_ext >&5
5259   rm -rf conftest*
5260   eval "ac_cv_lib_$ac_lib_var=no"
5261 fi
5262 rm -f conftest*
5263 LIBS="$ac_save_LIBS"
5264
5265 fi
5266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5267   echo "$ac_t""yes" 1>&6
5268     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5269     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5270   cat >> confdefs.h <<EOF
5271 #define $ac_tr_lib 1
5272 EOF
5273
5274   LIBS="-lm $LIBS"
5275
5276 else
5277   echo "$ac_t""no" 1>&6
5278 fi
5279
5280   for ac_func in nan copysignf
5281 do
5282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5283 echo "configure:5284: checking for $ac_func" >&5
5284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5285   echo $ac_n "(cached) $ac_c" 1>&6
5286 else
5287   cat > conftest.$ac_ext <<EOF
5288 #line 5289 "configure"
5289 #include "confdefs.h"
5290 /* System header to define __stub macros and hopefully few prototypes,
5291     which can conflict with char $ac_func(); below.  */
5292 #include <assert.h>
5293 /* Override any gcc2 internal prototype to avoid an error.  */
5294 /* We use char because int might match the return type of a gcc2
5295     builtin and then its argument prototype would still apply.  */
5296 char $ac_func();
5297
5298 int main() {
5299
5300 /* The GNU C library defines this for functions which it implements
5301     to always fail with ENOSYS.  Some functions are actually named
5302     something starting with __ and the normal name is an alias.  */
5303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5304 choke me
5305 #else
5306 $ac_func();
5307 #endif
5308
5309 ; return 0; }
5310 EOF
5311 if { (eval echo configure:5312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5312   rm -rf conftest*
5313   eval "ac_cv_func_$ac_func=yes"
5314 else
5315   echo "configure: failed program was:" >&5
5316   cat conftest.$ac_ext >&5
5317   rm -rf conftest*
5318   eval "ac_cv_func_$ac_func=no"
5319 fi
5320 rm -f conftest*
5321 fi
5322
5323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5324   echo "$ac_t""yes" 1>&6
5325     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5326   cat >> confdefs.h <<EOF
5327 #define $ac_tr_func 1
5328 EOF
5329  
5330 else
5331   echo "$ac_t""no" 1>&6
5332 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5333 fi
5334 done
5335
5336
5337     for ac_func in __signbit
5338 do
5339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5340 echo "configure:5341: checking for $ac_func" >&5
5341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5342   echo $ac_n "(cached) $ac_c" 1>&6
5343 else
5344   cat > conftest.$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5347 /* System header to define __stub macros and hopefully few prototypes,
5348     which can conflict with char $ac_func(); below.  */
5349 #include <assert.h>
5350 /* Override any gcc2 internal prototype to avoid an error.  */
5351 /* We use char because int might match the return type of a gcc2
5352     builtin and then its argument prototype would still apply.  */
5353 char $ac_func();
5354
5355 int main() {
5356
5357 /* The GNU C library defines this for functions which it implements
5358     to always fail with ENOSYS.  Some functions are actually named
5359     something starting with __ and the normal name is an alias.  */
5360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5361 choke me
5362 #else
5363 $ac_func();
5364 #endif
5365
5366 ; return 0; }
5367 EOF
5368 if { (eval echo configure:5369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5369   rm -rf conftest*
5370   eval "ac_cv_func_$ac_func=yes"
5371 else
5372   echo "configure: failed program was:" >&5
5373   cat conftest.$ac_ext >&5
5374   rm -rf conftest*
5375   eval "ac_cv_func_$ac_func=no"
5376 fi
5377 rm -f conftest*
5378 fi
5379
5380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5381   echo "$ac_t""yes" 1>&6
5382     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5383   cat >> confdefs.h <<EOF
5384 #define $ac_tr_func 1
5385 EOF
5386  
5387 else
5388   echo "$ac_t""no" 1>&6
5389 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5390 fi
5391 done
5392
5393   for ac_func in __signbitf
5394 do
5395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5396 echo "configure:5397: checking for $ac_func" >&5
5397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5398   echo $ac_n "(cached) $ac_c" 1>&6
5399 else
5400   cat > conftest.$ac_ext <<EOF
5401 #line 5402 "configure"
5402 #include "confdefs.h"
5403 /* System header to define __stub macros and hopefully few prototypes,
5404     which can conflict with char $ac_func(); below.  */
5405 #include <assert.h>
5406 /* Override any gcc2 internal prototype to avoid an error.  */
5407 /* We use char because int might match the return type of a gcc2
5408     builtin and then its argument prototype would still apply.  */
5409 char $ac_func();
5410
5411 int main() {
5412
5413 /* The GNU C library defines this for functions which it implements
5414     to always fail with ENOSYS.  Some functions are actually named
5415     something starting with __ and the normal name is an alias.  */
5416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5417 choke me
5418 #else
5419 $ac_func();
5420 #endif
5421
5422 ; return 0; }
5423 EOF
5424 if { (eval echo configure:5425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5425   rm -rf conftest*
5426   eval "ac_cv_func_$ac_func=yes"
5427 else
5428   echo "configure: failed program was:" >&5
5429   cat conftest.$ac_ext >&5
5430   rm -rf conftest*
5431   eval "ac_cv_func_$ac_func=no"
5432 fi
5433 rm -f conftest*
5434 fi
5435
5436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5437   echo "$ac_t""yes" 1>&6
5438     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5439   cat >> confdefs.h <<EOF
5440 #define $ac_tr_func 1
5441 EOF
5442  
5443 else
5444   echo "$ac_t""no" 1>&6
5445 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5446 fi
5447 done
5448
5449
5450           if test x$ac_cv_func_copysignl = x"yes"; then
5451     for ac_func in __signbitl
5452 do
5453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5454 echo "configure:5455: checking for $ac_func" >&5
5455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5456   echo $ac_n "(cached) $ac_c" 1>&6
5457 else
5458   cat > conftest.$ac_ext <<EOF
5459 #line 5460 "configure"
5460 #include "confdefs.h"
5461 /* System header to define __stub macros and hopefully few prototypes,
5462     which can conflict with char $ac_func(); below.  */
5463 #include <assert.h>
5464 /* Override any gcc2 internal prototype to avoid an error.  */
5465 /* We use char because int might match the return type of a gcc2
5466     builtin and then its argument prototype would still apply.  */
5467 char $ac_func();
5468
5469 int main() {
5470
5471 /* The GNU C library defines this for functions which it implements
5472     to always fail with ENOSYS.  Some functions are actually named
5473     something starting with __ and the normal name is an alias.  */
5474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5475 choke me
5476 #else
5477 $ac_func();
5478 #endif
5479
5480 ; return 0; }
5481 EOF
5482 if { (eval echo configure:5483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5483   rm -rf conftest*
5484   eval "ac_cv_func_$ac_func=yes"
5485 else
5486   echo "configure: failed program was:" >&5
5487   cat conftest.$ac_ext >&5
5488   rm -rf conftest*
5489   eval "ac_cv_func_$ac_func=no"
5490 fi
5491 rm -f conftest*
5492 fi
5493
5494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5495   echo "$ac_t""yes" 1>&6
5496     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5497   cat >> confdefs.h <<EOF
5498 #define $ac_tr_func 1
5499 EOF
5500  
5501 else
5502   echo "$ac_t""no" 1>&6
5503 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5504 fi
5505 done
5506
5507   fi
5508
5509   
5510
5511       
5512
5513       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5514 echo "configure:5515: checking for mbstate_t" >&5
5515   cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5518 #include <wchar.h>
5519 int main() {
5520 mbstate_t teststate;
5521 ; return 0; }
5522 EOF
5523 if { (eval echo configure:5524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5524   rm -rf conftest*
5525   have_mbstate_t=yes
5526 else
5527   echo "configure: failed program was:" >&5
5528   cat conftest.$ac_ext >&5
5529   rm -rf conftest*
5530   have_mbstate_t=no
5531 fi
5532 rm -f conftest*
5533   echo "$ac_t""$have_mbstate_t" 1>&6
5534   if test x"$have_mbstate_t" = xyes; then
5535     cat >> confdefs.h <<\EOF
5536 #define HAVE_MBSTATE_T 1
5537 EOF
5538
5539   fi
5540
5541     for ac_hdr in wchar.h
5542 do
5543 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5545 echo "configure:5546: checking for $ac_hdr" >&5
5546 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5547   echo $ac_n "(cached) $ac_c" 1>&6
5548 else
5549   cat > conftest.$ac_ext <<EOF
5550 #line 5551 "configure"
5551 #include "confdefs.h"
5552 #include <$ac_hdr>
5553 EOF
5554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5555 { (eval echo configure:5556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5557 if test -z "$ac_err"; then
5558   rm -rf conftest*
5559   eval "ac_cv_header_$ac_safe=yes"
5560 else
5561   echo "$ac_err" >&5
5562   echo "configure: failed program was:" >&5
5563   cat conftest.$ac_ext >&5
5564   rm -rf conftest*
5565   eval "ac_cv_header_$ac_safe=no"
5566 fi
5567 rm -f conftest*
5568 fi
5569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5570   echo "$ac_t""yes" 1>&6
5571     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5572   cat >> confdefs.h <<EOF
5573 #define $ac_tr_hdr 1
5574 EOF
5575  ac_has_wchar_h=yes
5576 else
5577   echo "$ac_t""no" 1>&6
5578 ac_has_wchar_h=no
5579 fi
5580 done
5581
5582   for ac_hdr in wctype.h
5583 do
5584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5586 echo "configure:5587: checking for $ac_hdr" >&5
5587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5588   echo $ac_n "(cached) $ac_c" 1>&6
5589 else
5590   cat > conftest.$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5593 #include <$ac_hdr>
5594 EOF
5595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5596 { (eval echo configure:5597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5598 if test -z "$ac_err"; then
5599   rm -rf conftest*
5600   eval "ac_cv_header_$ac_safe=yes"
5601 else
5602   echo "$ac_err" >&5
5603   echo "configure: failed program was:" >&5
5604   cat conftest.$ac_ext >&5
5605   rm -rf conftest*
5606   eval "ac_cv_header_$ac_safe=no"
5607 fi
5608 rm -f conftest*
5609 fi
5610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5611   echo "$ac_t""yes" 1>&6
5612     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5613   cat >> confdefs.h <<EOF
5614 #define $ac_tr_hdr 1
5615 EOF
5616  ac_has_wctype_h=yes
5617 else
5618   echo "$ac_t""no" 1>&6
5619 ac_has_wctype_h=no
5620 fi
5621 done
5622
5623   
5624     if test x"$ac_has_wchar_h" = xyes &&
5625      test x"$ac_has_wctype_h" = xyes &&
5626      test x"$enable_c_mbchar" != xno; then
5627       
5628             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5629 echo "configure:5630: checking for WCHAR_MIN and WCHAR_MAX" >&5
5630     cat > conftest.$ac_ext <<EOF
5631 #line 5632 "configure"
5632 #include "confdefs.h"
5633 #include <wchar.h>
5634 int main() {
5635 int i = WCHAR_MIN; int j = WCHAR_MAX;
5636 ; return 0; }
5637 EOF
5638 if { (eval echo configure:5639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5639   rm -rf conftest*
5640   has_wchar_minmax=yes
5641 else
5642   echo "configure: failed program was:" >&5
5643   cat conftest.$ac_ext >&5
5644   rm -rf conftest*
5645   has_wchar_minmax=no
5646 fi
5647 rm -f conftest*
5648     echo "$ac_t""$has_wchar_minmax" 1>&6
5649     
5650             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5651 echo "configure:5652: checking for WEOF" >&5
5652     cat > conftest.$ac_ext <<EOF
5653 #line 5654 "configure"
5654 #include "confdefs.h"
5655
5656       #include <wchar.h>
5657       #include <stddef.h>
5658 int main() {
5659 wint_t i = WEOF;
5660 ; return 0; }
5661 EOF
5662 if { (eval echo configure:5663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5663   rm -rf conftest*
5664   has_weof=yes
5665 else
5666   echo "configure: failed program was:" >&5
5667   cat conftest.$ac_ext >&5
5668   rm -rf conftest*
5669   has_weof=no
5670 fi
5671 rm -f conftest*
5672     echo "$ac_t""$has_weof" 1>&6
5673   
5674         ac_wfuncs=yes
5675     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5676 do
5677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5678 echo "configure:5679: checking for $ac_func" >&5
5679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5680   echo $ac_n "(cached) $ac_c" 1>&6
5681 else
5682   cat > conftest.$ac_ext <<EOF
5683 #line 5684 "configure"
5684 #include "confdefs.h"
5685 /* System header to define __stub macros and hopefully few prototypes,
5686     which can conflict with char $ac_func(); below.  */
5687 #include <assert.h>
5688 /* Override any gcc2 internal prototype to avoid an error.  */
5689 /* We use char because int might match the return type of a gcc2
5690     builtin and then its argument prototype would still apply.  */
5691 char $ac_func();
5692
5693 int main() {
5694
5695 /* The GNU C library defines this for functions which it implements
5696     to always fail with ENOSYS.  Some functions are actually named
5697     something starting with __ and the normal name is an alias.  */
5698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5699 choke me
5700 #else
5701 $ac_func();
5702 #endif
5703
5704 ; return 0; }
5705 EOF
5706 if { (eval echo configure:5707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5707   rm -rf conftest*
5708   eval "ac_cv_func_$ac_func=yes"
5709 else
5710   echo "configure: failed program was:" >&5
5711   cat conftest.$ac_ext >&5
5712   rm -rf conftest*
5713   eval "ac_cv_func_$ac_func=no"
5714 fi
5715 rm -f conftest*
5716 fi
5717
5718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5719   echo "$ac_t""yes" 1>&6
5720     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5721   cat >> confdefs.h <<EOF
5722 #define $ac_tr_func 1
5723 EOF
5724  
5725 else
5726   echo "$ac_t""no" 1>&6
5727 \
5728     ac_wfuncs=no
5729 fi
5730 done
5731
5732   
5733         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5734     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5735     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5736     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5737     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5738     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5739 do
5740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5741 echo "configure:5742: checking for $ac_func" >&5
5742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5743   echo $ac_n "(cached) $ac_c" 1>&6
5744 else
5745   cat > conftest.$ac_ext <<EOF
5746 #line 5747 "configure"
5747 #include "confdefs.h"
5748 /* System header to define __stub macros and hopefully few prototypes,
5749     which can conflict with char $ac_func(); below.  */
5750 #include <assert.h>
5751 /* Override any gcc2 internal prototype to avoid an error.  */
5752 /* We use char because int might match the return type of a gcc2
5753     builtin and then its argument prototype would still apply.  */
5754 char $ac_func();
5755
5756 int main() {
5757
5758 /* The GNU C library defines this for functions which it implements
5759     to always fail with ENOSYS.  Some functions are actually named
5760     something starting with __ and the normal name is an alias.  */
5761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5762 choke me
5763 #else
5764 $ac_func();
5765 #endif
5766
5767 ; return 0; }
5768 EOF
5769 if { (eval echo configure:5770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5770   rm -rf conftest*
5771   eval "ac_cv_func_$ac_func=yes"
5772 else
5773   echo "configure: failed program was:" >&5
5774   cat conftest.$ac_ext >&5
5775   rm -rf conftest*
5776   eval "ac_cv_func_$ac_func=no"
5777 fi
5778 rm -f conftest*
5779 fi
5780
5781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5782   echo "$ac_t""yes" 1>&6
5783     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5784   cat >> confdefs.h <<EOF
5785 #define $ac_tr_func 1
5786 EOF
5787  
5788 else
5789   echo "$ac_t""no" 1>&6
5790 \
5791     ac_wfuncs=no
5792 fi
5793 done
5794
5795
5796     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5797 echo "configure:5798: checking for ISO C99 wchar_t support" >&5
5798     if test x"$has_weof" = xyes &&
5799        test x"$has_wchar_minmax" = xyes &&
5800        test x"$ac_wfuncs" = xyes; then
5801       ac_isoC99_wchar_t=yes
5802     else
5803       ac_isoC99_wchar_t=no
5804     fi
5805     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5806   
5807             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5808 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5809 echo "configure:5810: checking for iconv.h" >&5
5810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5811   echo $ac_n "(cached) $ac_c" 1>&6
5812 else
5813   cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5816 #include <iconv.h>
5817 EOF
5818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5819 { (eval echo configure:5820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5821 if test -z "$ac_err"; then
5822   rm -rf conftest*
5823   eval "ac_cv_header_$ac_safe=yes"
5824 else
5825   echo "$ac_err" >&5
5826   echo "configure: failed program was:" >&5
5827   cat conftest.$ac_ext >&5
5828   rm -rf conftest*
5829   eval "ac_cv_header_$ac_safe=no"
5830 fi
5831 rm -f conftest*
5832 fi
5833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5834   echo "$ac_t""yes" 1>&6
5835   ac_has_iconv_h=yes
5836 else
5837   echo "$ac_t""no" 1>&6
5838 ac_has_iconv_h=no
5839 fi
5840
5841     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5842 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5843 echo "configure:5844: checking for langinfo.h" >&5
5844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5845   echo $ac_n "(cached) $ac_c" 1>&6
5846 else
5847   cat > conftest.$ac_ext <<EOF
5848 #line 5849 "configure"
5849 #include "confdefs.h"
5850 #include <langinfo.h>
5851 EOF
5852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5853 { (eval echo configure:5854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5855 if test -z "$ac_err"; then
5856   rm -rf conftest*
5857   eval "ac_cv_header_$ac_safe=yes"
5858 else
5859   echo "$ac_err" >&5
5860   echo "configure: failed program was:" >&5
5861   cat conftest.$ac_ext >&5
5862   rm -rf conftest*
5863   eval "ac_cv_header_$ac_safe=no"
5864 fi
5865 rm -f conftest*
5866 fi
5867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5868   echo "$ac_t""yes" 1>&6
5869   ac_has_langinfo_h=yes
5870 else
5871   echo "$ac_t""no" 1>&6
5872 ac_has_langinfo_h=no
5873 fi
5874
5875
5876         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5877 echo "configure:5878: checking for iconv in -liconv" >&5
5878 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5880   echo $ac_n "(cached) $ac_c" 1>&6
5881 else
5882   ac_save_LIBS="$LIBS"
5883 LIBS="-liconv  $LIBS"
5884 cat > conftest.$ac_ext <<EOF
5885 #line 5886 "configure"
5886 #include "confdefs.h"
5887 /* Override any gcc2 internal prototype to avoid an error.  */
5888 /* We use char because int might match the return type of a gcc2
5889     builtin and then its argument prototype would still apply.  */
5890 char iconv();
5891
5892 int main() {
5893 iconv()
5894 ; return 0; }
5895 EOF
5896 if { (eval echo configure:5897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5897   rm -rf conftest*
5898   eval "ac_cv_lib_$ac_lib_var=yes"
5899 else
5900   echo "configure: failed program was:" >&5
5901   cat conftest.$ac_ext >&5
5902   rm -rf conftest*
5903   eval "ac_cv_lib_$ac_lib_var=no"
5904 fi
5905 rm -f conftest*
5906 LIBS="$ac_save_LIBS"
5907
5908 fi
5909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5910   echo "$ac_t""yes" 1>&6
5911   libiconv="-liconv"
5912 else
5913   echo "$ac_t""no" 1>&6
5914 fi
5915
5916     ac_save_LIBS="$LIBS"
5917     LIBS="$LIBS $libiconv"
5918
5919     for ac_func in iconv_open iconv_close iconv nl_langinfo
5920 do
5921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5922 echo "configure:5923: checking for $ac_func" >&5
5923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5924   echo $ac_n "(cached) $ac_c" 1>&6
5925 else
5926   cat > conftest.$ac_ext <<EOF
5927 #line 5928 "configure"
5928 #include "confdefs.h"
5929 /* System header to define __stub macros and hopefully few prototypes,
5930     which can conflict with char $ac_func(); below.  */
5931 #include <assert.h>
5932 /* Override any gcc2 internal prototype to avoid an error.  */
5933 /* We use char because int might match the return type of a gcc2
5934     builtin and then its argument prototype would still apply.  */
5935 char $ac_func();
5936
5937 int main() {
5938
5939 /* The GNU C library defines this for functions which it implements
5940     to always fail with ENOSYS.  Some functions are actually named
5941     something starting with __ and the normal name is an alias.  */
5942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5943 choke me
5944 #else
5945 $ac_func();
5946 #endif
5947
5948 ; return 0; }
5949 EOF
5950 if { (eval echo configure:5951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5951   rm -rf conftest*
5952   eval "ac_cv_func_$ac_func=yes"
5953 else
5954   echo "configure: failed program was:" >&5
5955   cat conftest.$ac_ext >&5
5956   rm -rf conftest*
5957   eval "ac_cv_func_$ac_func=no"
5958 fi
5959 rm -f conftest*
5960 fi
5961
5962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5963   echo "$ac_t""yes" 1>&6
5964     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5965   cat >> confdefs.h <<EOF
5966 #define $ac_tr_func 1
5967 EOF
5968  \
5969     ac_XPG2funcs=yes
5970 else
5971   echo "$ac_t""no" 1>&6
5972 ac_XPG2funcs=no
5973 fi
5974 done
5975
5976   
5977     LIBS="$ac_save_LIBS"
5978
5979     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5980 echo "configure:5981: checking for XPG2 wchar_t support" >&5
5981     if test x"$ac_has_iconv_h" = xyes &&
5982        test x"$ac_has_langinfo_h" = xyes &&
5983        test x"$ac_XPG2funcs" = xyes; then
5984       ac_XPG2_wchar_t=yes
5985     else
5986       ac_XPG2_wchar_t=no
5987     fi
5988     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5989   
5990             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5991 echo "configure:5992: checking for enabled wchar_t specializations" >&5
5992     if test x"$ac_isoC99_wchar_t" = xyes &&
5993        test x"$ac_XPG2_wchar_t" = xyes; then
5994       cat >> confdefs.h <<\EOF
5995 #define _GLIBCPP_USE_WCHAR_T 1
5996 EOF
5997
5998       echo "$ac_t"""yes"" 1>&6
5999     else
6000       echo "$ac_t"""no"" 1>&6
6001     fi
6002   else
6003         echo "configure: warning: wchar_t support disabled." 1>&2
6004   fi
6005
6006       os_include_dir="os/hpux"
6007       cat >> confdefs.h <<\EOF
6008 #define HAVE_COPYSIGN 1
6009 EOF
6010
6011       cat >> confdefs.h <<\EOF
6012 #define HAVE_COPYSIGNF 1
6013 EOF
6014
6015       cat >> confdefs.h <<\EOF
6016 #define HAVE_FREXPF 1
6017 EOF
6018
6019       cat >> confdefs.h <<\EOF
6020 #define HAVE_HYPOT 1
6021 EOF
6022
6023       case "$target" in
6024         *-hpux10*)
6025           cat >> confdefs.h <<\EOF
6026 #define HAVE_FINITE 1
6027 EOF
6028
6029           cat >> confdefs.h <<\EOF
6030 #define HAVE_FINITEF 1
6031 EOF
6032
6033           cat >> confdefs.h <<\EOF
6034 #define HAVE_ISINF 1
6035 EOF
6036
6037           cat >> confdefs.h <<\EOF
6038 #define HAVE_ISINFF 1
6039 EOF
6040
6041           cat >> confdefs.h <<\EOF
6042 #define HAVE_ISNAN 1
6043 EOF
6044
6045           cat >> confdefs.h <<\EOF
6046 #define HAVE_ISNANF 1
6047 EOF
6048
6049           ;;
6050       esac
6051
6052       ;;
6053     *-netbsd*)
6054       # Check for available headers.
6055       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6056         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6057         fp.h locale.h float.h inttypes.h
6058 do
6059 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6060 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6061 echo "configure:6062: checking for $ac_hdr" >&5
6062 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6063   echo $ac_n "(cached) $ac_c" 1>&6
6064 else
6065   cat > conftest.$ac_ext <<EOF
6066 #line 6067 "configure"
6067 #include "confdefs.h"
6068 #include <$ac_hdr>
6069 EOF
6070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6071 { (eval echo configure:6072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6073 if test -z "$ac_err"; then
6074   rm -rf conftest*
6075   eval "ac_cv_header_$ac_safe=yes"
6076 else
6077   echo "$ac_err" >&5
6078   echo "configure: failed program was:" >&5
6079   cat conftest.$ac_ext >&5
6080   rm -rf conftest*
6081   eval "ac_cv_header_$ac_safe=no"
6082 fi
6083 rm -f conftest*
6084 fi
6085 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6086   echo "$ac_t""yes" 1>&6
6087     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6088   cat >> confdefs.h <<EOF
6089 #define $ac_tr_hdr 1
6090 EOF
6091  
6092 else
6093   echo "$ac_t""no" 1>&6
6094 fi
6095 done
6096
6097       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6098        
6099       
6100   # If we're not using GNU ld, then there's no point in even trying these
6101   # tests.  Check for that first.  We should have already tested for gld
6102   # by now (in libtool), but require it now just to be safe...
6103   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6104   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6105   
6106
6107   # The name set by libtool depends on the version of libtool.  Shame on us
6108   # for depending on an impl detail, but c'est la vie.  Older versions used
6109   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6110   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6111   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6112   # set (hence we're using an older libtool), then set it.
6113   if test x${with_gnu_ld+set} != xset; then
6114     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6115       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6116       with_gnu_ld=no
6117     else
6118       with_gnu_ld=$ac_cv_prog_gnu_ld
6119     fi
6120   fi
6121
6122   # Start by getting the version number.  I think the libtool test already
6123   # does some of this, but throws away the result.
6124   
6125   ldver=`$LD --version 2>/dev/null | head -1 | \
6126          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6127   
6128   glibcpp_gnu_ld_version=`echo $ldver | \
6129          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6130
6131   # Set --gc-sections.
6132   if test "$with_gnu_ld" = "notbroken"; then
6133     # GNU ld it is!  Joy and bunny rabbits!
6134
6135     # All these tests are for C++; save the language and the compiler flags.
6136     # Need to do this so that g++ won't try to link in libstdc++
6137     ac_test_CFLAGS="${CFLAGS+set}"
6138     ac_save_CFLAGS="$CFLAGS"
6139     CFLAGS='-x c++  -Wl,--gc-sections'
6140
6141     # Check for -Wl,--gc-sections
6142     # XXX This test is broken at the moment, as symbols required for
6143     # linking are now in libsupc++ (not built yet.....). In addition, 
6144     # this test has cored on solaris in the past. In addition,
6145     # --gc-sections doesn't really work at the moment (keeps on discarding
6146     # used sections, first .eh_frame and now some of the glibc sections for
6147     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6148     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6149 echo "configure:6150: checking for ld that supports -Wl,--gc-sections" >&5
6150     if test "$cross_compiling" = yes; then
6151   ac_sectionLDflags=yes
6152 else
6153   cat > conftest.$ac_ext <<EOF
6154 #line 6155 "configure"
6155 #include "confdefs.h"
6156
6157      int main(void) 
6158      {
6159        try { throw 1; }
6160        catch (...) { };
6161        return 0;
6162      }
6163     
6164 EOF
6165 if { (eval echo configure:6166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6166 then
6167   ac_sectionLDflags=yes
6168 else
6169   echo "configure: failed program was:" >&5
6170   cat conftest.$ac_ext >&5
6171   rm -fr conftest*
6172   ac_sectionLDflags=no
6173 fi
6174 rm -fr conftest*
6175 fi
6176
6177     if test "$ac_test_CFLAGS" = set; then
6178       CFLAGS="$ac_save_CFLAGS"
6179     else
6180       # this is the suspicious part
6181       CFLAGS=''
6182     fi
6183     if test "$ac_sectionLDflags" = "yes"; then
6184       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6185     fi
6186     echo "$ac_t""$ac_sectionLDflags" 1>&6
6187   fi
6188
6189   # Set linker optimization flags.
6190   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6191     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6192   fi
6193
6194   
6195   
6196
6197       
6198     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6199 echo "configure:6200: checking for main in -lm" >&5
6200 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6202   echo $ac_n "(cached) $ac_c" 1>&6
6203 else
6204   ac_save_LIBS="$LIBS"
6205 LIBS="-lm  $LIBS"
6206 cat > conftest.$ac_ext <<EOF
6207 #line 6208 "configure"
6208 #include "confdefs.h"
6209
6210 int main() {
6211 main()
6212 ; return 0; }
6213 EOF
6214 if { (eval echo configure:6215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6215   rm -rf conftest*
6216   eval "ac_cv_lib_$ac_lib_var=yes"
6217 else
6218   echo "configure: failed program was:" >&5
6219   cat conftest.$ac_ext >&5
6220   rm -rf conftest*
6221   eval "ac_cv_lib_$ac_lib_var=no"
6222 fi
6223 rm -f conftest*
6224 LIBS="$ac_save_LIBS"
6225
6226 fi
6227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6228   echo "$ac_t""yes" 1>&6
6229     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6230     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6231   cat >> confdefs.h <<EOF
6232 #define $ac_tr_lib 1
6233 EOF
6234
6235   LIBS="-lm $LIBS"
6236
6237 else
6238   echo "$ac_t""no" 1>&6
6239 fi
6240
6241   for ac_func in nan copysignf
6242 do
6243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6244 echo "configure:6245: checking for $ac_func" >&5
6245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6246   echo $ac_n "(cached) $ac_c" 1>&6
6247 else
6248   cat > conftest.$ac_ext <<EOF
6249 #line 6250 "configure"
6250 #include "confdefs.h"
6251 /* System header to define __stub macros and hopefully few prototypes,
6252     which can conflict with char $ac_func(); below.  */
6253 #include <assert.h>
6254 /* Override any gcc2 internal prototype to avoid an error.  */
6255 /* We use char because int might match the return type of a gcc2
6256     builtin and then its argument prototype would still apply.  */
6257 char $ac_func();
6258
6259 int main() {
6260
6261 /* The GNU C library defines this for functions which it implements
6262     to always fail with ENOSYS.  Some functions are actually named
6263     something starting with __ and the normal name is an alias.  */
6264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6265 choke me
6266 #else
6267 $ac_func();
6268 #endif
6269
6270 ; return 0; }
6271 EOF
6272 if { (eval echo configure:6273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6273   rm -rf conftest*
6274   eval "ac_cv_func_$ac_func=yes"
6275 else
6276   echo "configure: failed program was:" >&5
6277   cat conftest.$ac_ext >&5
6278   rm -rf conftest*
6279   eval "ac_cv_func_$ac_func=no"
6280 fi
6281 rm -f conftest*
6282 fi
6283
6284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6285   echo "$ac_t""yes" 1>&6
6286     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6287   cat >> confdefs.h <<EOF
6288 #define $ac_tr_func 1
6289 EOF
6290  
6291 else
6292   echo "$ac_t""no" 1>&6
6293 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6294 fi
6295 done
6296
6297
6298     for ac_func in __signbit
6299 do
6300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6301 echo "configure:6302: checking for $ac_func" >&5
6302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6303   echo $ac_n "(cached) $ac_c" 1>&6
6304 else
6305   cat > conftest.$ac_ext <<EOF
6306 #line 6307 "configure"
6307 #include "confdefs.h"
6308 /* System header to define __stub macros and hopefully few prototypes,
6309     which can conflict with char $ac_func(); below.  */
6310 #include <assert.h>
6311 /* Override any gcc2 internal prototype to avoid an error.  */
6312 /* We use char because int might match the return type of a gcc2
6313     builtin and then its argument prototype would still apply.  */
6314 char $ac_func();
6315
6316 int main() {
6317
6318 /* The GNU C library defines this for functions which it implements
6319     to always fail with ENOSYS.  Some functions are actually named
6320     something starting with __ and the normal name is an alias.  */
6321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6322 choke me
6323 #else
6324 $ac_func();
6325 #endif
6326
6327 ; return 0; }
6328 EOF
6329 if { (eval echo configure:6330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6330   rm -rf conftest*
6331   eval "ac_cv_func_$ac_func=yes"
6332 else
6333   echo "configure: failed program was:" >&5
6334   cat conftest.$ac_ext >&5
6335   rm -rf conftest*
6336   eval "ac_cv_func_$ac_func=no"
6337 fi
6338 rm -f conftest*
6339 fi
6340
6341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6342   echo "$ac_t""yes" 1>&6
6343     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6344   cat >> confdefs.h <<EOF
6345 #define $ac_tr_func 1
6346 EOF
6347  
6348 else
6349   echo "$ac_t""no" 1>&6
6350 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6351 fi
6352 done
6353
6354   for ac_func in __signbitf
6355 do
6356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6357 echo "configure:6358: checking for $ac_func" >&5
6358 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6359   echo $ac_n "(cached) $ac_c" 1>&6
6360 else
6361   cat > conftest.$ac_ext <<EOF
6362 #line 6363 "configure"
6363 #include "confdefs.h"
6364 /* System header to define __stub macros and hopefully few prototypes,
6365     which can conflict with char $ac_func(); below.  */
6366 #include <assert.h>
6367 /* Override any gcc2 internal prototype to avoid an error.  */
6368 /* We use char because int might match the return type of a gcc2
6369     builtin and then its argument prototype would still apply.  */
6370 char $ac_func();
6371
6372 int main() {
6373
6374 /* The GNU C library defines this for functions which it implements
6375     to always fail with ENOSYS.  Some functions are actually named
6376     something starting with __ and the normal name is an alias.  */
6377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6378 choke me
6379 #else
6380 $ac_func();
6381 #endif
6382
6383 ; return 0; }
6384 EOF
6385 if { (eval echo configure:6386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6386   rm -rf conftest*
6387   eval "ac_cv_func_$ac_func=yes"
6388 else
6389   echo "configure: failed program was:" >&5
6390   cat conftest.$ac_ext >&5
6391   rm -rf conftest*
6392   eval "ac_cv_func_$ac_func=no"
6393 fi
6394 rm -f conftest*
6395 fi
6396
6397 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6398   echo "$ac_t""yes" 1>&6
6399     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6400   cat >> confdefs.h <<EOF
6401 #define $ac_tr_func 1
6402 EOF
6403  
6404 else
6405   echo "$ac_t""no" 1>&6
6406 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6407 fi
6408 done
6409
6410
6411           if test x$ac_cv_func_copysignl = x"yes"; then
6412     for ac_func in __signbitl
6413 do
6414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6415 echo "configure:6416: checking for $ac_func" >&5
6416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6417   echo $ac_n "(cached) $ac_c" 1>&6
6418 else
6419   cat > conftest.$ac_ext <<EOF
6420 #line 6421 "configure"
6421 #include "confdefs.h"
6422 /* System header to define __stub macros and hopefully few prototypes,
6423     which can conflict with char $ac_func(); below.  */
6424 #include <assert.h>
6425 /* Override any gcc2 internal prototype to avoid an error.  */
6426 /* We use char because int might match the return type of a gcc2
6427     builtin and then its argument prototype would still apply.  */
6428 char $ac_func();
6429
6430 int main() {
6431
6432 /* The GNU C library defines this for functions which it implements
6433     to always fail with ENOSYS.  Some functions are actually named
6434     something starting with __ and the normal name is an alias.  */
6435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6436 choke me
6437 #else
6438 $ac_func();
6439 #endif
6440
6441 ; return 0; }
6442 EOF
6443 if { (eval echo configure:6444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6444   rm -rf conftest*
6445   eval "ac_cv_func_$ac_func=yes"
6446 else
6447   echo "configure: failed program was:" >&5
6448   cat conftest.$ac_ext >&5
6449   rm -rf conftest*
6450   eval "ac_cv_func_$ac_func=no"
6451 fi
6452 rm -f conftest*
6453 fi
6454
6455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6456   echo "$ac_t""yes" 1>&6
6457     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6458   cat >> confdefs.h <<EOF
6459 #define $ac_tr_func 1
6460 EOF
6461  
6462 else
6463   echo "$ac_t""no" 1>&6
6464 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6465 fi
6466 done
6467
6468   fi
6469
6470   
6471
6472       
6473
6474       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6475 echo "configure:6476: checking for mbstate_t" >&5
6476   cat > conftest.$ac_ext <<EOF
6477 #line 6478 "configure"
6478 #include "confdefs.h"
6479 #include <wchar.h>
6480 int main() {
6481 mbstate_t teststate;
6482 ; return 0; }
6483 EOF
6484 if { (eval echo configure:6485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6485   rm -rf conftest*
6486   have_mbstate_t=yes
6487 else
6488   echo "configure: failed program was:" >&5
6489   cat conftest.$ac_ext >&5
6490   rm -rf conftest*
6491   have_mbstate_t=no
6492 fi
6493 rm -f conftest*
6494   echo "$ac_t""$have_mbstate_t" 1>&6
6495   if test x"$have_mbstate_t" = xyes; then
6496     cat >> confdefs.h <<\EOF
6497 #define HAVE_MBSTATE_T 1
6498 EOF
6499
6500   fi
6501
6502     for ac_hdr in wchar.h
6503 do
6504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6506 echo "configure:6507: checking for $ac_hdr" >&5
6507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6508   echo $ac_n "(cached) $ac_c" 1>&6
6509 else
6510   cat > conftest.$ac_ext <<EOF
6511 #line 6512 "configure"
6512 #include "confdefs.h"
6513 #include <$ac_hdr>
6514 EOF
6515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6516 { (eval echo configure:6517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6518 if test -z "$ac_err"; then
6519   rm -rf conftest*
6520   eval "ac_cv_header_$ac_safe=yes"
6521 else
6522   echo "$ac_err" >&5
6523   echo "configure: failed program was:" >&5
6524   cat conftest.$ac_ext >&5
6525   rm -rf conftest*
6526   eval "ac_cv_header_$ac_safe=no"
6527 fi
6528 rm -f conftest*
6529 fi
6530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6531   echo "$ac_t""yes" 1>&6
6532     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6533   cat >> confdefs.h <<EOF
6534 #define $ac_tr_hdr 1
6535 EOF
6536  ac_has_wchar_h=yes
6537 else
6538   echo "$ac_t""no" 1>&6
6539 ac_has_wchar_h=no
6540 fi
6541 done
6542
6543   for ac_hdr in wctype.h
6544 do
6545 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6546 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6547 echo "configure:6548: checking for $ac_hdr" >&5
6548 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6549   echo $ac_n "(cached) $ac_c" 1>&6
6550 else
6551   cat > conftest.$ac_ext <<EOF
6552 #line 6553 "configure"
6553 #include "confdefs.h"
6554 #include <$ac_hdr>
6555 EOF
6556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6557 { (eval echo configure:6558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6559 if test -z "$ac_err"; then
6560   rm -rf conftest*
6561   eval "ac_cv_header_$ac_safe=yes"
6562 else
6563   echo "$ac_err" >&5
6564   echo "configure: failed program was:" >&5
6565   cat conftest.$ac_ext >&5
6566   rm -rf conftest*
6567   eval "ac_cv_header_$ac_safe=no"
6568 fi
6569 rm -f conftest*
6570 fi
6571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6572   echo "$ac_t""yes" 1>&6
6573     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6574   cat >> confdefs.h <<EOF
6575 #define $ac_tr_hdr 1
6576 EOF
6577  ac_has_wctype_h=yes
6578 else
6579   echo "$ac_t""no" 1>&6
6580 ac_has_wctype_h=no
6581 fi
6582 done
6583
6584   
6585     if test x"$ac_has_wchar_h" = xyes &&
6586      test x"$ac_has_wctype_h" = xyes &&
6587      test x"$enable_c_mbchar" != xno; then
6588       
6589             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6590 echo "configure:6591: checking for WCHAR_MIN and WCHAR_MAX" >&5
6591     cat > conftest.$ac_ext <<EOF
6592 #line 6593 "configure"
6593 #include "confdefs.h"
6594 #include <wchar.h>
6595 int main() {
6596 int i = WCHAR_MIN; int j = WCHAR_MAX;
6597 ; return 0; }
6598 EOF
6599 if { (eval echo configure:6600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6600   rm -rf conftest*
6601   has_wchar_minmax=yes
6602 else
6603   echo "configure: failed program was:" >&5
6604   cat conftest.$ac_ext >&5
6605   rm -rf conftest*
6606   has_wchar_minmax=no
6607 fi
6608 rm -f conftest*
6609     echo "$ac_t""$has_wchar_minmax" 1>&6
6610     
6611             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6612 echo "configure:6613: checking for WEOF" >&5
6613     cat > conftest.$ac_ext <<EOF
6614 #line 6615 "configure"
6615 #include "confdefs.h"
6616
6617       #include <wchar.h>
6618       #include <stddef.h>
6619 int main() {
6620 wint_t i = WEOF;
6621 ; return 0; }
6622 EOF
6623 if { (eval echo configure:6624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6624   rm -rf conftest*
6625   has_weof=yes
6626 else
6627   echo "configure: failed program was:" >&5
6628   cat conftest.$ac_ext >&5
6629   rm -rf conftest*
6630   has_weof=no
6631 fi
6632 rm -f conftest*
6633     echo "$ac_t""$has_weof" 1>&6
6634   
6635         ac_wfuncs=yes
6636     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6637 do
6638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6639 echo "configure:6640: checking for $ac_func" >&5
6640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6641   echo $ac_n "(cached) $ac_c" 1>&6
6642 else
6643   cat > conftest.$ac_ext <<EOF
6644 #line 6645 "configure"
6645 #include "confdefs.h"
6646 /* System header to define __stub macros and hopefully few prototypes,
6647     which can conflict with char $ac_func(); below.  */
6648 #include <assert.h>
6649 /* Override any gcc2 internal prototype to avoid an error.  */
6650 /* We use char because int might match the return type of a gcc2
6651     builtin and then its argument prototype would still apply.  */
6652 char $ac_func();
6653
6654 int main() {
6655
6656 /* The GNU C library defines this for functions which it implements
6657     to always fail with ENOSYS.  Some functions are actually named
6658     something starting with __ and the normal name is an alias.  */
6659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6660 choke me
6661 #else
6662 $ac_func();
6663 #endif
6664
6665 ; return 0; }
6666 EOF
6667 if { (eval echo configure:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6668   rm -rf conftest*
6669   eval "ac_cv_func_$ac_func=yes"
6670 else
6671   echo "configure: failed program was:" >&5
6672   cat conftest.$ac_ext >&5
6673   rm -rf conftest*
6674   eval "ac_cv_func_$ac_func=no"
6675 fi
6676 rm -f conftest*
6677 fi
6678
6679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6680   echo "$ac_t""yes" 1>&6
6681     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6682   cat >> confdefs.h <<EOF
6683 #define $ac_tr_func 1
6684 EOF
6685  
6686 else
6687   echo "$ac_t""no" 1>&6
6688 \
6689     ac_wfuncs=no
6690 fi
6691 done
6692
6693   
6694         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6695     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6696     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6697     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6698     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6699     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6700 do
6701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6702 echo "configure:6703: checking for $ac_func" >&5
6703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6704   echo $ac_n "(cached) $ac_c" 1>&6
6705 else
6706   cat > conftest.$ac_ext <<EOF
6707 #line 6708 "configure"
6708 #include "confdefs.h"
6709 /* System header to define __stub macros and hopefully few prototypes,
6710     which can conflict with char $ac_func(); below.  */
6711 #include <assert.h>
6712 /* Override any gcc2 internal prototype to avoid an error.  */
6713 /* We use char because int might match the return type of a gcc2
6714     builtin and then its argument prototype would still apply.  */
6715 char $ac_func();
6716
6717 int main() {
6718
6719 /* The GNU C library defines this for functions which it implements
6720     to always fail with ENOSYS.  Some functions are actually named
6721     something starting with __ and the normal name is an alias.  */
6722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6723 choke me
6724 #else
6725 $ac_func();
6726 #endif
6727
6728 ; return 0; }
6729 EOF
6730 if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6731   rm -rf conftest*
6732   eval "ac_cv_func_$ac_func=yes"
6733 else
6734   echo "configure: failed program was:" >&5
6735   cat conftest.$ac_ext >&5
6736   rm -rf conftest*
6737   eval "ac_cv_func_$ac_func=no"
6738 fi
6739 rm -f conftest*
6740 fi
6741
6742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6743   echo "$ac_t""yes" 1>&6
6744     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6745   cat >> confdefs.h <<EOF
6746 #define $ac_tr_func 1
6747 EOF
6748  
6749 else
6750   echo "$ac_t""no" 1>&6
6751 \
6752     ac_wfuncs=no
6753 fi
6754 done
6755
6756
6757     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6758 echo "configure:6759: checking for ISO C99 wchar_t support" >&5
6759     if test x"$has_weof" = xyes &&
6760        test x"$has_wchar_minmax" = xyes &&
6761        test x"$ac_wfuncs" = xyes; then
6762       ac_isoC99_wchar_t=yes
6763     else
6764       ac_isoC99_wchar_t=no
6765     fi
6766     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6767   
6768             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6769 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6770 echo "configure:6771: checking for iconv.h" >&5
6771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6772   echo $ac_n "(cached) $ac_c" 1>&6
6773 else
6774   cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6777 #include <iconv.h>
6778 EOF
6779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6780 { (eval echo configure:6781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6782 if test -z "$ac_err"; then
6783   rm -rf conftest*
6784   eval "ac_cv_header_$ac_safe=yes"
6785 else
6786   echo "$ac_err" >&5
6787   echo "configure: failed program was:" >&5
6788   cat conftest.$ac_ext >&5
6789   rm -rf conftest*
6790   eval "ac_cv_header_$ac_safe=no"
6791 fi
6792 rm -f conftest*
6793 fi
6794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6795   echo "$ac_t""yes" 1>&6
6796   ac_has_iconv_h=yes
6797 else
6798   echo "$ac_t""no" 1>&6
6799 ac_has_iconv_h=no
6800 fi
6801
6802     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6803 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6804 echo "configure:6805: checking for langinfo.h" >&5
6805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6806   echo $ac_n "(cached) $ac_c" 1>&6
6807 else
6808   cat > conftest.$ac_ext <<EOF
6809 #line 6810 "configure"
6810 #include "confdefs.h"
6811 #include <langinfo.h>
6812 EOF
6813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6814 { (eval echo configure:6815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6815 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6816 if test -z "$ac_err"; then
6817   rm -rf conftest*
6818   eval "ac_cv_header_$ac_safe=yes"
6819 else
6820   echo "$ac_err" >&5
6821   echo "configure: failed program was:" >&5
6822   cat conftest.$ac_ext >&5
6823   rm -rf conftest*
6824   eval "ac_cv_header_$ac_safe=no"
6825 fi
6826 rm -f conftest*
6827 fi
6828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6829   echo "$ac_t""yes" 1>&6
6830   ac_has_langinfo_h=yes
6831 else
6832   echo "$ac_t""no" 1>&6
6833 ac_has_langinfo_h=no
6834 fi
6835
6836
6837         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6838 echo "configure:6839: checking for iconv in -liconv" >&5
6839 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6841   echo $ac_n "(cached) $ac_c" 1>&6
6842 else
6843   ac_save_LIBS="$LIBS"
6844 LIBS="-liconv  $LIBS"
6845 cat > conftest.$ac_ext <<EOF
6846 #line 6847 "configure"
6847 #include "confdefs.h"
6848 /* Override any gcc2 internal prototype to avoid an error.  */
6849 /* We use char because int might match the return type of a gcc2
6850     builtin and then its argument prototype would still apply.  */
6851 char iconv();
6852
6853 int main() {
6854 iconv()
6855 ; return 0; }
6856 EOF
6857 if { (eval echo configure:6858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6858   rm -rf conftest*
6859   eval "ac_cv_lib_$ac_lib_var=yes"
6860 else
6861   echo "configure: failed program was:" >&5
6862   cat conftest.$ac_ext >&5
6863   rm -rf conftest*
6864   eval "ac_cv_lib_$ac_lib_var=no"
6865 fi
6866 rm -f conftest*
6867 LIBS="$ac_save_LIBS"
6868
6869 fi
6870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6871   echo "$ac_t""yes" 1>&6
6872   libiconv="-liconv"
6873 else
6874   echo "$ac_t""no" 1>&6
6875 fi
6876
6877     ac_save_LIBS="$LIBS"
6878     LIBS="$LIBS $libiconv"
6879
6880     for ac_func in iconv_open iconv_close iconv nl_langinfo
6881 do
6882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6883 echo "configure:6884: checking for $ac_func" >&5
6884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6885   echo $ac_n "(cached) $ac_c" 1>&6
6886 else
6887   cat > conftest.$ac_ext <<EOF
6888 #line 6889 "configure"
6889 #include "confdefs.h"
6890 /* System header to define __stub macros and hopefully few prototypes,
6891     which can conflict with char $ac_func(); below.  */
6892 #include <assert.h>
6893 /* Override any gcc2 internal prototype to avoid an error.  */
6894 /* We use char because int might match the return type of a gcc2
6895     builtin and then its argument prototype would still apply.  */
6896 char $ac_func();
6897
6898 int main() {
6899
6900 /* The GNU C library defines this for functions which it implements
6901     to always fail with ENOSYS.  Some functions are actually named
6902     something starting with __ and the normal name is an alias.  */
6903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6904 choke me
6905 #else
6906 $ac_func();
6907 #endif
6908
6909 ; return 0; }
6910 EOF
6911 if { (eval echo configure:6912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6912   rm -rf conftest*
6913   eval "ac_cv_func_$ac_func=yes"
6914 else
6915   echo "configure: failed program was:" >&5
6916   cat conftest.$ac_ext >&5
6917   rm -rf conftest*
6918   eval "ac_cv_func_$ac_func=no"
6919 fi
6920 rm -f conftest*
6921 fi
6922
6923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6924   echo "$ac_t""yes" 1>&6
6925     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6926   cat >> confdefs.h <<EOF
6927 #define $ac_tr_func 1
6928 EOF
6929  \
6930     ac_XPG2funcs=yes
6931 else
6932   echo "$ac_t""no" 1>&6
6933 ac_XPG2funcs=no
6934 fi
6935 done
6936
6937   
6938     LIBS="$ac_save_LIBS"
6939
6940     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6941 echo "configure:6942: checking for XPG2 wchar_t support" >&5
6942     if test x"$ac_has_iconv_h" = xyes &&
6943        test x"$ac_has_langinfo_h" = xyes &&
6944        test x"$ac_XPG2funcs" = xyes; then
6945       ac_XPG2_wchar_t=yes
6946     else
6947       ac_XPG2_wchar_t=no
6948     fi
6949     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6950   
6951             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6952 echo "configure:6953: checking for enabled wchar_t specializations" >&5
6953     if test x"$ac_isoC99_wchar_t" = xyes &&
6954        test x"$ac_XPG2_wchar_t" = xyes; then
6955       cat >> confdefs.h <<\EOF
6956 #define _GLIBCPP_USE_WCHAR_T 1
6957 EOF
6958
6959       echo "$ac_t"""yes"" 1>&6
6960     else
6961       echo "$ac_t"""no"" 1>&6
6962     fi
6963   else
6964         echo "configure: warning: wchar_t support disabled." 1>&2
6965   fi
6966
6967       os_include_dir="os/bsd/netbsd"
6968       cat >> confdefs.h <<\EOF
6969 #define HAVE_COPYSIGN 1
6970 EOF
6971
6972       cat >> confdefs.h <<\EOF
6973 #define HAVE_COPYSIGNF 1
6974 EOF
6975
6976       cat >> confdefs.h <<\EOF
6977 #define HAVE_FINITEF 1
6978 EOF
6979
6980       cat >> confdefs.h <<\EOF
6981 #define HAVE_FINITE 1
6982 EOF
6983
6984       cat >> confdefs.h <<\EOF
6985 #define HAVE_FREXPF 1
6986 EOF
6987
6988       cat >> confdefs.h <<\EOF
6989 #define HAVE_HYPOTF 1
6990 EOF
6991
6992       cat >> confdefs.h <<\EOF
6993 #define HAVE_ISINF 1
6994 EOF
6995
6996       cat >> confdefs.h <<\EOF
6997 #define HAVE_ISINFF 1
6998 EOF
6999
7000       cat >> confdefs.h <<\EOF
7001 #define HAVE_ISNAN 1
7002 EOF
7003
7004       cat >> confdefs.h <<\EOF
7005 #define HAVE_ISNANF 1
7006 EOF
7007
7008       if test x"long_double_math_on_this_cpu" = x"yes"; then
7009         cat >> confdefs.h <<\EOF
7010 #define HAVE_FINITEL 1
7011 EOF
7012
7013         cat >> confdefs.h <<\EOF
7014 #define HAVE_ISINFL 1
7015 EOF
7016
7017         cat >> confdefs.h <<\EOF
7018 #define HAVE_ISNANL 1
7019 EOF
7020
7021       fi
7022       ;;
7023     *-freebsd*)
7024       # Check for available headers.
7025       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
7026         machine/endian.h machine/param.h sys/machine.h sys/types.h \
7027         fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
7028         sys/time.h unistd.h
7029 do
7030 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7031 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7032 echo "configure:7033: checking for $ac_hdr" >&5
7033 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7034   echo $ac_n "(cached) $ac_c" 1>&6
7035 else
7036   cat > conftest.$ac_ext <<EOF
7037 #line 7038 "configure"
7038 #include "confdefs.h"
7039 #include <$ac_hdr>
7040 EOF
7041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7042 { (eval echo configure:7043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7044 if test -z "$ac_err"; then
7045   rm -rf conftest*
7046   eval "ac_cv_header_$ac_safe=yes"
7047 else
7048   echo "$ac_err" >&5
7049   echo "configure: failed program was:" >&5
7050   cat conftest.$ac_ext >&5
7051   rm -rf conftest*
7052   eval "ac_cv_header_$ac_safe=no"
7053 fi
7054 rm -f conftest*
7055 fi
7056 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7057   echo "$ac_t""yes" 1>&6
7058     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7059   cat >> confdefs.h <<EOF
7060 #define $ac_tr_hdr 1
7061 EOF
7062  
7063 else
7064   echo "$ac_t""no" 1>&6
7065 fi
7066 done
7067
7068       SECTION_FLAGS='-ffunction-sections -fdata-sections'
7069        
7070       
7071   # If we're not using GNU ld, then there's no point in even trying these
7072   # tests.  Check for that first.  We should have already tested for gld
7073   # by now (in libtool), but require it now just to be safe...
7074   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7075   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7076   
7077
7078   # The name set by libtool depends on the version of libtool.  Shame on us
7079   # for depending on an impl detail, but c'est la vie.  Older versions used
7080   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7081   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7082   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7083   # set (hence we're using an older libtool), then set it.
7084   if test x${with_gnu_ld+set} != xset; then
7085     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7086       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7087       with_gnu_ld=no
7088     else
7089       with_gnu_ld=$ac_cv_prog_gnu_ld
7090     fi
7091   fi
7092
7093   # Start by getting the version number.  I think the libtool test already
7094   # does some of this, but throws away the result.
7095   
7096   ldver=`$LD --version 2>/dev/null | head -1 | \
7097          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7098   
7099   glibcpp_gnu_ld_version=`echo $ldver | \
7100          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7101
7102   # Set --gc-sections.
7103   if test "$with_gnu_ld" = "notbroken"; then
7104     # GNU ld it is!  Joy and bunny rabbits!
7105
7106     # All these tests are for C++; save the language and the compiler flags.
7107     # Need to do this so that g++ won't try to link in libstdc++
7108     ac_test_CFLAGS="${CFLAGS+set}"
7109     ac_save_CFLAGS="$CFLAGS"
7110     CFLAGS='-x c++  -Wl,--gc-sections'
7111
7112     # Check for -Wl,--gc-sections
7113     # XXX This test is broken at the moment, as symbols required for
7114     # linking are now in libsupc++ (not built yet.....). In addition, 
7115     # this test has cored on solaris in the past. In addition,
7116     # --gc-sections doesn't really work at the moment (keeps on discarding
7117     # used sections, first .eh_frame and now some of the glibc sections for
7118     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7119     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7120 echo "configure:7121: checking for ld that supports -Wl,--gc-sections" >&5
7121     if test "$cross_compiling" = yes; then
7122   ac_sectionLDflags=yes
7123 else
7124   cat > conftest.$ac_ext <<EOF
7125 #line 7126 "configure"
7126 #include "confdefs.h"
7127
7128      int main(void) 
7129      {
7130        try { throw 1; }
7131        catch (...) { };
7132        return 0;
7133      }
7134     
7135 EOF
7136 if { (eval echo configure:7137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7137 then
7138   ac_sectionLDflags=yes
7139 else
7140   echo "configure: failed program was:" >&5
7141   cat conftest.$ac_ext >&5
7142   rm -fr conftest*
7143   ac_sectionLDflags=no
7144 fi
7145 rm -fr conftest*
7146 fi
7147
7148     if test "$ac_test_CFLAGS" = set; then
7149       CFLAGS="$ac_save_CFLAGS"
7150     else
7151       # this is the suspicious part
7152       CFLAGS=''
7153     fi
7154     if test "$ac_sectionLDflags" = "yes"; then
7155       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7156     fi
7157     echo "$ac_t""$ac_sectionLDflags" 1>&6
7158   fi
7159
7160   # Set linker optimization flags.
7161   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7162     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7163   fi
7164
7165   
7166   
7167
7168       
7169     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7170 echo "configure:7171: checking for main in -lm" >&5
7171 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7172 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7173   echo $ac_n "(cached) $ac_c" 1>&6
7174 else
7175   ac_save_LIBS="$LIBS"
7176 LIBS="-lm  $LIBS"
7177 cat > conftest.$ac_ext <<EOF
7178 #line 7179 "configure"
7179 #include "confdefs.h"
7180
7181 int main() {
7182 main()
7183 ; return 0; }
7184 EOF
7185 if { (eval echo configure:7186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7186   rm -rf conftest*
7187   eval "ac_cv_lib_$ac_lib_var=yes"
7188 else
7189   echo "configure: failed program was:" >&5
7190   cat conftest.$ac_ext >&5
7191   rm -rf conftest*
7192   eval "ac_cv_lib_$ac_lib_var=no"
7193 fi
7194 rm -f conftest*
7195 LIBS="$ac_save_LIBS"
7196
7197 fi
7198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7199   echo "$ac_t""yes" 1>&6
7200     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7201     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7202   cat >> confdefs.h <<EOF
7203 #define $ac_tr_lib 1
7204 EOF
7205
7206   LIBS="-lm $LIBS"
7207
7208 else
7209   echo "$ac_t""no" 1>&6
7210 fi
7211
7212   for ac_func in nan copysignf
7213 do
7214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7215 echo "configure:7216: checking for $ac_func" >&5
7216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7217   echo $ac_n "(cached) $ac_c" 1>&6
7218 else
7219   cat > conftest.$ac_ext <<EOF
7220 #line 7221 "configure"
7221 #include "confdefs.h"
7222 /* System header to define __stub macros and hopefully few prototypes,
7223     which can conflict with char $ac_func(); below.  */
7224 #include <assert.h>
7225 /* Override any gcc2 internal prototype to avoid an error.  */
7226 /* We use char because int might match the return type of a gcc2
7227     builtin and then its argument prototype would still apply.  */
7228 char $ac_func();
7229
7230 int main() {
7231
7232 /* The GNU C library defines this for functions which it implements
7233     to always fail with ENOSYS.  Some functions are actually named
7234     something starting with __ and the normal name is an alias.  */
7235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7236 choke me
7237 #else
7238 $ac_func();
7239 #endif
7240
7241 ; return 0; }
7242 EOF
7243 if { (eval echo configure:7244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7244   rm -rf conftest*
7245   eval "ac_cv_func_$ac_func=yes"
7246 else
7247   echo "configure: failed program was:" >&5
7248   cat conftest.$ac_ext >&5
7249   rm -rf conftest*
7250   eval "ac_cv_func_$ac_func=no"
7251 fi
7252 rm -f conftest*
7253 fi
7254
7255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7256   echo "$ac_t""yes" 1>&6
7257     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7258   cat >> confdefs.h <<EOF
7259 #define $ac_tr_func 1
7260 EOF
7261  
7262 else
7263   echo "$ac_t""no" 1>&6
7264 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7265 fi
7266 done
7267
7268
7269     for ac_func in __signbit
7270 do
7271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7272 echo "configure:7273: checking for $ac_func" >&5
7273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7274   echo $ac_n "(cached) $ac_c" 1>&6
7275 else
7276   cat > conftest.$ac_ext <<EOF
7277 #line 7278 "configure"
7278 #include "confdefs.h"
7279 /* System header to define __stub macros and hopefully few prototypes,
7280     which can conflict with char $ac_func(); below.  */
7281 #include <assert.h>
7282 /* Override any gcc2 internal prototype to avoid an error.  */
7283 /* We use char because int might match the return type of a gcc2
7284     builtin and then its argument prototype would still apply.  */
7285 char $ac_func();
7286
7287 int main() {
7288
7289 /* The GNU C library defines this for functions which it implements
7290     to always fail with ENOSYS.  Some functions are actually named
7291     something starting with __ and the normal name is an alias.  */
7292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7293 choke me
7294 #else
7295 $ac_func();
7296 #endif
7297
7298 ; return 0; }
7299 EOF
7300 if { (eval echo configure:7301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7301   rm -rf conftest*
7302   eval "ac_cv_func_$ac_func=yes"
7303 else
7304   echo "configure: failed program was:" >&5
7305   cat conftest.$ac_ext >&5
7306   rm -rf conftest*
7307   eval "ac_cv_func_$ac_func=no"
7308 fi
7309 rm -f conftest*
7310 fi
7311
7312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7313   echo "$ac_t""yes" 1>&6
7314     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7315   cat >> confdefs.h <<EOF
7316 #define $ac_tr_func 1
7317 EOF
7318  
7319 else
7320   echo "$ac_t""no" 1>&6
7321 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7322 fi
7323 done
7324
7325   for ac_func in __signbitf
7326 do
7327 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7328 echo "configure:7329: checking for $ac_func" >&5
7329 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7330   echo $ac_n "(cached) $ac_c" 1>&6
7331 else
7332   cat > conftest.$ac_ext <<EOF
7333 #line 7334 "configure"
7334 #include "confdefs.h"
7335 /* System header to define __stub macros and hopefully few prototypes,
7336     which can conflict with char $ac_func(); below.  */
7337 #include <assert.h>
7338 /* Override any gcc2 internal prototype to avoid an error.  */
7339 /* We use char because int might match the return type of a gcc2
7340     builtin and then its argument prototype would still apply.  */
7341 char $ac_func();
7342
7343 int main() {
7344
7345 /* The GNU C library defines this for functions which it implements
7346     to always fail with ENOSYS.  Some functions are actually named
7347     something starting with __ and the normal name is an alias.  */
7348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7349 choke me
7350 #else
7351 $ac_func();
7352 #endif
7353
7354 ; return 0; }
7355 EOF
7356 if { (eval echo configure:7357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7357   rm -rf conftest*
7358   eval "ac_cv_func_$ac_func=yes"
7359 else
7360   echo "configure: failed program was:" >&5
7361   cat conftest.$ac_ext >&5
7362   rm -rf conftest*
7363   eval "ac_cv_func_$ac_func=no"
7364 fi
7365 rm -f conftest*
7366 fi
7367
7368 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7369   echo "$ac_t""yes" 1>&6
7370     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7371   cat >> confdefs.h <<EOF
7372 #define $ac_tr_func 1
7373 EOF
7374  
7375 else
7376   echo "$ac_t""no" 1>&6
7377 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7378 fi
7379 done
7380
7381
7382           if test x$ac_cv_func_copysignl = x"yes"; then
7383     for ac_func in __signbitl
7384 do
7385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7386 echo "configure:7387: checking for $ac_func" >&5
7387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7388   echo $ac_n "(cached) $ac_c" 1>&6
7389 else
7390   cat > conftest.$ac_ext <<EOF
7391 #line 7392 "configure"
7392 #include "confdefs.h"
7393 /* System header to define __stub macros and hopefully few prototypes,
7394     which can conflict with char $ac_func(); below.  */
7395 #include <assert.h>
7396 /* Override any gcc2 internal prototype to avoid an error.  */
7397 /* We use char because int might match the return type of a gcc2
7398     builtin and then its argument prototype would still apply.  */
7399 char $ac_func();
7400
7401 int main() {
7402
7403 /* The GNU C library defines this for functions which it implements
7404     to always fail with ENOSYS.  Some functions are actually named
7405     something starting with __ and the normal name is an alias.  */
7406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7407 choke me
7408 #else
7409 $ac_func();
7410 #endif
7411
7412 ; return 0; }
7413 EOF
7414 if { (eval echo configure:7415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7415   rm -rf conftest*
7416   eval "ac_cv_func_$ac_func=yes"
7417 else
7418   echo "configure: failed program was:" >&5
7419   cat conftest.$ac_ext >&5
7420   rm -rf conftest*
7421   eval "ac_cv_func_$ac_func=no"
7422 fi
7423 rm -f conftest*
7424 fi
7425
7426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7427   echo "$ac_t""yes" 1>&6
7428     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7429   cat >> confdefs.h <<EOF
7430 #define $ac_tr_func 1
7431 EOF
7432  
7433 else
7434   echo "$ac_t""no" 1>&6
7435 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7436 fi
7437 done
7438
7439   fi
7440
7441   
7442
7443       
7444
7445       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7446 echo "configure:7447: checking for mbstate_t" >&5
7447   cat > conftest.$ac_ext <<EOF
7448 #line 7449 "configure"
7449 #include "confdefs.h"
7450 #include <wchar.h>
7451 int main() {
7452 mbstate_t teststate;
7453 ; return 0; }
7454 EOF
7455 if { (eval echo configure:7456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7456   rm -rf conftest*
7457   have_mbstate_t=yes
7458 else
7459   echo "configure: failed program was:" >&5
7460   cat conftest.$ac_ext >&5
7461   rm -rf conftest*
7462   have_mbstate_t=no
7463 fi
7464 rm -f conftest*
7465   echo "$ac_t""$have_mbstate_t" 1>&6
7466   if test x"$have_mbstate_t" = xyes; then
7467     cat >> confdefs.h <<\EOF
7468 #define HAVE_MBSTATE_T 1
7469 EOF
7470
7471   fi
7472
7473     for ac_hdr in wchar.h
7474 do
7475 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7476 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7477 echo "configure:7478: checking for $ac_hdr" >&5
7478 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7479   echo $ac_n "(cached) $ac_c" 1>&6
7480 else
7481   cat > conftest.$ac_ext <<EOF
7482 #line 7483 "configure"
7483 #include "confdefs.h"
7484 #include <$ac_hdr>
7485 EOF
7486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7487 { (eval echo configure:7488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7489 if test -z "$ac_err"; then
7490   rm -rf conftest*
7491   eval "ac_cv_header_$ac_safe=yes"
7492 else
7493   echo "$ac_err" >&5
7494   echo "configure: failed program was:" >&5
7495   cat conftest.$ac_ext >&5
7496   rm -rf conftest*
7497   eval "ac_cv_header_$ac_safe=no"
7498 fi
7499 rm -f conftest*
7500 fi
7501 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7502   echo "$ac_t""yes" 1>&6
7503     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7504   cat >> confdefs.h <<EOF
7505 #define $ac_tr_hdr 1
7506 EOF
7507  ac_has_wchar_h=yes
7508 else
7509   echo "$ac_t""no" 1>&6
7510 ac_has_wchar_h=no
7511 fi
7512 done
7513
7514   for ac_hdr in wctype.h
7515 do
7516 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7517 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7518 echo "configure:7519: checking for $ac_hdr" >&5
7519 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7520   echo $ac_n "(cached) $ac_c" 1>&6
7521 else
7522   cat > conftest.$ac_ext <<EOF
7523 #line 7524 "configure"
7524 #include "confdefs.h"
7525 #include <$ac_hdr>
7526 EOF
7527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7528 { (eval echo configure:7529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7530 if test -z "$ac_err"; then
7531   rm -rf conftest*
7532   eval "ac_cv_header_$ac_safe=yes"
7533 else
7534   echo "$ac_err" >&5
7535   echo "configure: failed program was:" >&5
7536   cat conftest.$ac_ext >&5
7537   rm -rf conftest*
7538   eval "ac_cv_header_$ac_safe=no"
7539 fi
7540 rm -f conftest*
7541 fi
7542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7543   echo "$ac_t""yes" 1>&6
7544     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7545   cat >> confdefs.h <<EOF
7546 #define $ac_tr_hdr 1
7547 EOF
7548  ac_has_wctype_h=yes
7549 else
7550   echo "$ac_t""no" 1>&6
7551 ac_has_wctype_h=no
7552 fi
7553 done
7554
7555   
7556     if test x"$ac_has_wchar_h" = xyes &&
7557      test x"$ac_has_wctype_h" = xyes &&
7558      test x"$enable_c_mbchar" != xno; then
7559       
7560             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7561 echo "configure:7562: checking for WCHAR_MIN and WCHAR_MAX" >&5
7562     cat > conftest.$ac_ext <<EOF
7563 #line 7564 "configure"
7564 #include "confdefs.h"
7565 #include <wchar.h>
7566 int main() {
7567 int i = WCHAR_MIN; int j = WCHAR_MAX;
7568 ; return 0; }
7569 EOF
7570 if { (eval echo configure:7571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7571   rm -rf conftest*
7572   has_wchar_minmax=yes
7573 else
7574   echo "configure: failed program was:" >&5
7575   cat conftest.$ac_ext >&5
7576   rm -rf conftest*
7577   has_wchar_minmax=no
7578 fi
7579 rm -f conftest*
7580     echo "$ac_t""$has_wchar_minmax" 1>&6
7581     
7582             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7583 echo "configure:7584: checking for WEOF" >&5
7584     cat > conftest.$ac_ext <<EOF
7585 #line 7586 "configure"
7586 #include "confdefs.h"
7587
7588       #include <wchar.h>
7589       #include <stddef.h>
7590 int main() {
7591 wint_t i = WEOF;
7592 ; return 0; }
7593 EOF
7594 if { (eval echo configure:7595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7595   rm -rf conftest*
7596   has_weof=yes
7597 else
7598   echo "configure: failed program was:" >&5
7599   cat conftest.$ac_ext >&5
7600   rm -rf conftest*
7601   has_weof=no
7602 fi
7603 rm -f conftest*
7604     echo "$ac_t""$has_weof" 1>&6
7605   
7606         ac_wfuncs=yes
7607     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7608 do
7609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7610 echo "configure:7611: checking for $ac_func" >&5
7611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7612   echo $ac_n "(cached) $ac_c" 1>&6
7613 else
7614   cat > conftest.$ac_ext <<EOF
7615 #line 7616 "configure"
7616 #include "confdefs.h"
7617 /* System header to define __stub macros and hopefully few prototypes,
7618     which can conflict with char $ac_func(); below.  */
7619 #include <assert.h>
7620 /* Override any gcc2 internal prototype to avoid an error.  */
7621 /* We use char because int might match the return type of a gcc2
7622     builtin and then its argument prototype would still apply.  */
7623 char $ac_func();
7624
7625 int main() {
7626
7627 /* The GNU C library defines this for functions which it implements
7628     to always fail with ENOSYS.  Some functions are actually named
7629     something starting with __ and the normal name is an alias.  */
7630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7631 choke me
7632 #else
7633 $ac_func();
7634 #endif
7635
7636 ; return 0; }
7637 EOF
7638 if { (eval echo configure:7639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7639   rm -rf conftest*
7640   eval "ac_cv_func_$ac_func=yes"
7641 else
7642   echo "configure: failed program was:" >&5
7643   cat conftest.$ac_ext >&5
7644   rm -rf conftest*
7645   eval "ac_cv_func_$ac_func=no"
7646 fi
7647 rm -f conftest*
7648 fi
7649
7650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7651   echo "$ac_t""yes" 1>&6
7652     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7653   cat >> confdefs.h <<EOF
7654 #define $ac_tr_func 1
7655 EOF
7656  
7657 else
7658   echo "$ac_t""no" 1>&6
7659 \
7660     ac_wfuncs=no
7661 fi
7662 done
7663
7664   
7665         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7666     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7667     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7668     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7669     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7670     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7671 do
7672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7673 echo "configure:7674: checking for $ac_func" >&5
7674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7675   echo $ac_n "(cached) $ac_c" 1>&6
7676 else
7677   cat > conftest.$ac_ext <<EOF
7678 #line 7679 "configure"
7679 #include "confdefs.h"
7680 /* System header to define __stub macros and hopefully few prototypes,
7681     which can conflict with char $ac_func(); below.  */
7682 #include <assert.h>
7683 /* Override any gcc2 internal prototype to avoid an error.  */
7684 /* We use char because int might match the return type of a gcc2
7685     builtin and then its argument prototype would still apply.  */
7686 char $ac_func();
7687
7688 int main() {
7689
7690 /* The GNU C library defines this for functions which it implements
7691     to always fail with ENOSYS.  Some functions are actually named
7692     something starting with __ and the normal name is an alias.  */
7693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7694 choke me
7695 #else
7696 $ac_func();
7697 #endif
7698
7699 ; return 0; }
7700 EOF
7701 if { (eval echo configure:7702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7702   rm -rf conftest*
7703   eval "ac_cv_func_$ac_func=yes"
7704 else
7705   echo "configure: failed program was:" >&5
7706   cat conftest.$ac_ext >&5
7707   rm -rf conftest*
7708   eval "ac_cv_func_$ac_func=no"
7709 fi
7710 rm -f conftest*
7711 fi
7712
7713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7714   echo "$ac_t""yes" 1>&6
7715     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7716   cat >> confdefs.h <<EOF
7717 #define $ac_tr_func 1
7718 EOF
7719  
7720 else
7721   echo "$ac_t""no" 1>&6
7722 \
7723     ac_wfuncs=no
7724 fi
7725 done
7726
7727
7728     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7729 echo "configure:7730: checking for ISO C99 wchar_t support" >&5
7730     if test x"$has_weof" = xyes &&
7731        test x"$has_wchar_minmax" = xyes &&
7732        test x"$ac_wfuncs" = xyes; then
7733       ac_isoC99_wchar_t=yes
7734     else
7735       ac_isoC99_wchar_t=no
7736     fi
7737     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7738   
7739             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7740 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7741 echo "configure:7742: checking for iconv.h" >&5
7742 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7743   echo $ac_n "(cached) $ac_c" 1>&6
7744 else
7745   cat > conftest.$ac_ext <<EOF
7746 #line 7747 "configure"
7747 #include "confdefs.h"
7748 #include <iconv.h>
7749 EOF
7750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7751 { (eval echo configure:7752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7753 if test -z "$ac_err"; then
7754   rm -rf conftest*
7755   eval "ac_cv_header_$ac_safe=yes"
7756 else
7757   echo "$ac_err" >&5
7758   echo "configure: failed program was:" >&5
7759   cat conftest.$ac_ext >&5
7760   rm -rf conftest*
7761   eval "ac_cv_header_$ac_safe=no"
7762 fi
7763 rm -f conftest*
7764 fi
7765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7766   echo "$ac_t""yes" 1>&6
7767   ac_has_iconv_h=yes
7768 else
7769   echo "$ac_t""no" 1>&6
7770 ac_has_iconv_h=no
7771 fi
7772
7773     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7774 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7775 echo "configure:7776: checking for langinfo.h" >&5
7776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7777   echo $ac_n "(cached) $ac_c" 1>&6
7778 else
7779   cat > conftest.$ac_ext <<EOF
7780 #line 7781 "configure"
7781 #include "confdefs.h"
7782 #include <langinfo.h>
7783 EOF
7784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7785 { (eval echo configure:7786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7787 if test -z "$ac_err"; then
7788   rm -rf conftest*
7789   eval "ac_cv_header_$ac_safe=yes"
7790 else
7791   echo "$ac_err" >&5
7792   echo "configure: failed program was:" >&5
7793   cat conftest.$ac_ext >&5
7794   rm -rf conftest*
7795   eval "ac_cv_header_$ac_safe=no"
7796 fi
7797 rm -f conftest*
7798 fi
7799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7800   echo "$ac_t""yes" 1>&6
7801   ac_has_langinfo_h=yes
7802 else
7803   echo "$ac_t""no" 1>&6
7804 ac_has_langinfo_h=no
7805 fi
7806
7807
7808         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7809 echo "configure:7810: checking for iconv in -liconv" >&5
7810 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7812   echo $ac_n "(cached) $ac_c" 1>&6
7813 else
7814   ac_save_LIBS="$LIBS"
7815 LIBS="-liconv  $LIBS"
7816 cat > conftest.$ac_ext <<EOF
7817 #line 7818 "configure"
7818 #include "confdefs.h"
7819 /* Override any gcc2 internal prototype to avoid an error.  */
7820 /* We use char because int might match the return type of a gcc2
7821     builtin and then its argument prototype would still apply.  */
7822 char iconv();
7823
7824 int main() {
7825 iconv()
7826 ; return 0; }
7827 EOF
7828 if { (eval echo configure:7829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7829   rm -rf conftest*
7830   eval "ac_cv_lib_$ac_lib_var=yes"
7831 else
7832   echo "configure: failed program was:" >&5
7833   cat conftest.$ac_ext >&5
7834   rm -rf conftest*
7835   eval "ac_cv_lib_$ac_lib_var=no"
7836 fi
7837 rm -f conftest*
7838 LIBS="$ac_save_LIBS"
7839
7840 fi
7841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7842   echo "$ac_t""yes" 1>&6
7843   libiconv="-liconv"
7844 else
7845   echo "$ac_t""no" 1>&6
7846 fi
7847
7848     ac_save_LIBS="$LIBS"
7849     LIBS="$LIBS $libiconv"
7850
7851     for ac_func in iconv_open iconv_close iconv nl_langinfo
7852 do
7853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7854 echo "configure:7855: checking for $ac_func" >&5
7855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7856   echo $ac_n "(cached) $ac_c" 1>&6
7857 else
7858   cat > conftest.$ac_ext <<EOF
7859 #line 7860 "configure"
7860 #include "confdefs.h"
7861 /* System header to define __stub macros and hopefully few prototypes,
7862     which can conflict with char $ac_func(); below.  */
7863 #include <assert.h>
7864 /* Override any gcc2 internal prototype to avoid an error.  */
7865 /* We use char because int might match the return type of a gcc2
7866     builtin and then its argument prototype would still apply.  */
7867 char $ac_func();
7868
7869 int main() {
7870
7871 /* The GNU C library defines this for functions which it implements
7872     to always fail with ENOSYS.  Some functions are actually named
7873     something starting with __ and the normal name is an alias.  */
7874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7875 choke me
7876 #else
7877 $ac_func();
7878 #endif
7879
7880 ; return 0; }
7881 EOF
7882 if { (eval echo configure:7883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7883   rm -rf conftest*
7884   eval "ac_cv_func_$ac_func=yes"
7885 else
7886   echo "configure: failed program was:" >&5
7887   cat conftest.$ac_ext >&5
7888   rm -rf conftest*
7889   eval "ac_cv_func_$ac_func=no"
7890 fi
7891 rm -f conftest*
7892 fi
7893
7894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7895   echo "$ac_t""yes" 1>&6
7896     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7897   cat >> confdefs.h <<EOF
7898 #define $ac_tr_func 1
7899 EOF
7900  \
7901     ac_XPG2funcs=yes
7902 else
7903   echo "$ac_t""no" 1>&6
7904 ac_XPG2funcs=no
7905 fi
7906 done
7907
7908   
7909     LIBS="$ac_save_LIBS"
7910
7911     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7912 echo "configure:7913: checking for XPG2 wchar_t support" >&5
7913     if test x"$ac_has_iconv_h" = xyes &&
7914        test x"$ac_has_langinfo_h" = xyes &&
7915        test x"$ac_XPG2funcs" = xyes; then
7916       ac_XPG2_wchar_t=yes
7917     else
7918       ac_XPG2_wchar_t=no
7919     fi
7920     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7921   
7922             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7923 echo "configure:7924: checking for enabled wchar_t specializations" >&5
7924     if test x"$ac_isoC99_wchar_t" = xyes &&
7925        test x"$ac_XPG2_wchar_t" = xyes; then
7926       cat >> confdefs.h <<\EOF
7927 #define _GLIBCPP_USE_WCHAR_T 1
7928 EOF
7929
7930       echo "$ac_t"""yes"" 1>&6
7931     else
7932       echo "$ac_t"""no"" 1>&6
7933     fi
7934   else
7935         echo "configure: warning: wchar_t support disabled." 1>&2
7936   fi
7937
7938       os_include_dir="os/bsd/freebsd"
7939       cat >> confdefs.h <<\EOF
7940 #define HAVE_LC_MESSAGES 1
7941 EOF
7942
7943       cat >> confdefs.h <<\EOF
7944 #define HAVE_DRAND48 1
7945 EOF
7946
7947       cat >> confdefs.h <<\EOF
7948 #define HAVE_GETPAGESIZE 1
7949 EOF
7950
7951       cat >> confdefs.h <<\EOF
7952 #define HAVE_SETENV 1
7953 EOF
7954
7955       cat >> confdefs.h <<\EOF
7956 #define HAVE_SIGSETJMP 1
7957 EOF
7958
7959       cat >> confdefs.h <<\EOF
7960 #define HAVE_COPYSIGN 1
7961 EOF
7962
7963       cat >> confdefs.h <<\EOF
7964 #define HAVE_COPYSIGNF 1
7965 EOF
7966
7967       cat >> confdefs.h <<\EOF
7968 #define HAVE_FINITEF 1
7969 EOF
7970
7971       cat >> confdefs.h <<\EOF
7972 #define HAVE_FINITE 1
7973 EOF
7974
7975       cat >> confdefs.h <<\EOF
7976 #define HAVE_FREXPF 1
7977 EOF
7978
7979       cat >> confdefs.h <<\EOF
7980 #define HAVE_HYPOT 1
7981 EOF
7982
7983       cat >> confdefs.h <<\EOF
7984 #define HAVE_HYPOTF 1
7985 EOF
7986
7987       cat >> confdefs.h <<\EOF
7988 #define HAVE_ISINF 1
7989 EOF
7990
7991       cat >> confdefs.h <<\EOF
7992 #define HAVE_ISNAN 1
7993 EOF
7994
7995       cat >> confdefs.h <<\EOF
7996 #define HAVE_ISNANF 1
7997 EOF
7998
7999       if test x"long_double_math_on_this_cpu" = x"yes"; then
8000         cat >> confdefs.h <<\EOF
8001 #define HAVE_FINITEL 1
8002 EOF
8003
8004         cat >> confdefs.h <<\EOF
8005 #define HAVE_ISINFL 1
8006 EOF
8007
8008         cat >> confdefs.h <<\EOF
8009 #define HAVE_ISNANL 1
8010 EOF
8011
8012       fi
8013       ;;
8014     *-mingw32*)
8015       for ac_hdr in sys/types.h locale.h float.h
8016 do
8017 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8018 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8019 echo "configure:8020: checking for $ac_hdr" >&5
8020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8021   echo $ac_n "(cached) $ac_c" 1>&6
8022 else
8023   cat > conftest.$ac_ext <<EOF
8024 #line 8025 "configure"
8025 #include "confdefs.h"
8026 #include <$ac_hdr>
8027 EOF
8028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8029 { (eval echo configure:8030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8031 if test -z "$ac_err"; then
8032   rm -rf conftest*
8033   eval "ac_cv_header_$ac_safe=yes"
8034 else
8035   echo "$ac_err" >&5
8036   echo "configure: failed program was:" >&5
8037   cat conftest.$ac_ext >&5
8038   rm -rf conftest*
8039   eval "ac_cv_header_$ac_safe=no"
8040 fi
8041 rm -f conftest*
8042 fi
8043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8044   echo "$ac_t""yes" 1>&6
8045     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8046   cat >> confdefs.h <<EOF
8047 #define $ac_tr_hdr 1
8048 EOF
8049  
8050 else
8051   echo "$ac_t""no" 1>&6
8052 fi
8053 done
8054
8055       
8056   # If we're not using GNU ld, then there's no point in even trying these
8057   # tests.  Check for that first.  We should have already tested for gld
8058   # by now (in libtool), but require it now just to be safe...
8059   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8060   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8061   
8062
8063   # The name set by libtool depends on the version of libtool.  Shame on us
8064   # for depending on an impl detail, but c'est la vie.  Older versions used
8065   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8066   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8067   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8068   # set (hence we're using an older libtool), then set it.
8069   if test x${with_gnu_ld+set} != xset; then
8070     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8071       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8072       with_gnu_ld=no
8073     else
8074       with_gnu_ld=$ac_cv_prog_gnu_ld
8075     fi
8076   fi
8077
8078   # Start by getting the version number.  I think the libtool test already
8079   # does some of this, but throws away the result.
8080   
8081   ldver=`$LD --version 2>/dev/null | head -1 | \
8082          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8083   
8084   glibcpp_gnu_ld_version=`echo $ldver | \
8085          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8086
8087   # Set --gc-sections.
8088   if test "$with_gnu_ld" = "notbroken"; then
8089     # GNU ld it is!  Joy and bunny rabbits!
8090
8091     # All these tests are for C++; save the language and the compiler flags.
8092     # Need to do this so that g++ won't try to link in libstdc++
8093     ac_test_CFLAGS="${CFLAGS+set}"
8094     ac_save_CFLAGS="$CFLAGS"
8095     CFLAGS='-x c++  -Wl,--gc-sections'
8096
8097     # Check for -Wl,--gc-sections
8098     # XXX This test is broken at the moment, as symbols required for
8099     # linking are now in libsupc++ (not built yet.....). In addition, 
8100     # this test has cored on solaris in the past. In addition,
8101     # --gc-sections doesn't really work at the moment (keeps on discarding
8102     # used sections, first .eh_frame and now some of the glibc sections for
8103     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8104     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8105 echo "configure:8106: checking for ld that supports -Wl,--gc-sections" >&5
8106     if test "$cross_compiling" = yes; then
8107   ac_sectionLDflags=yes
8108 else
8109   cat > conftest.$ac_ext <<EOF
8110 #line 8111 "configure"
8111 #include "confdefs.h"
8112
8113      int main(void) 
8114      {
8115        try { throw 1; }
8116        catch (...) { };
8117        return 0;
8118      }
8119     
8120 EOF
8121 if { (eval echo configure:8122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8122 then
8123   ac_sectionLDflags=yes
8124 else
8125   echo "configure: failed program was:" >&5
8126   cat conftest.$ac_ext >&5
8127   rm -fr conftest*
8128   ac_sectionLDflags=no
8129 fi
8130 rm -fr conftest*
8131 fi
8132
8133     if test "$ac_test_CFLAGS" = set; then
8134       CFLAGS="$ac_save_CFLAGS"
8135     else
8136       # this is the suspicious part
8137       CFLAGS=''
8138     fi
8139     if test "$ac_sectionLDflags" = "yes"; then
8140       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8141     fi
8142     echo "$ac_t""$ac_sectionLDflags" 1>&6
8143   fi
8144
8145   # Set linker optimization flags.
8146   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
8147     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8148   fi
8149
8150   
8151   
8152
8153       
8154     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8155 echo "configure:8156: checking for main in -lm" >&5
8156 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8158   echo $ac_n "(cached) $ac_c" 1>&6
8159 else
8160   ac_save_LIBS="$LIBS"
8161 LIBS="-lm  $LIBS"
8162 cat > conftest.$ac_ext <<EOF
8163 #line 8164 "configure"
8164 #include "confdefs.h"
8165
8166 int main() {
8167 main()
8168 ; return 0; }
8169 EOF
8170 if { (eval echo configure:8171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8171   rm -rf conftest*
8172   eval "ac_cv_lib_$ac_lib_var=yes"
8173 else
8174   echo "configure: failed program was:" >&5
8175   cat conftest.$ac_ext >&5
8176   rm -rf conftest*
8177   eval "ac_cv_lib_$ac_lib_var=no"
8178 fi
8179 rm -f conftest*
8180 LIBS="$ac_save_LIBS"
8181
8182 fi
8183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8184   echo "$ac_t""yes" 1>&6
8185     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8186     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8187   cat >> confdefs.h <<EOF
8188 #define $ac_tr_lib 1
8189 EOF
8190
8191   LIBS="-lm $LIBS"
8192
8193 else
8194   echo "$ac_t""no" 1>&6
8195 fi
8196
8197   for ac_func in nan copysignf
8198 do
8199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8200 echo "configure:8201: checking for $ac_func" >&5
8201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8202   echo $ac_n "(cached) $ac_c" 1>&6
8203 else
8204   cat > conftest.$ac_ext <<EOF
8205 #line 8206 "configure"
8206 #include "confdefs.h"
8207 /* System header to define __stub macros and hopefully few prototypes,
8208     which can conflict with char $ac_func(); below.  */
8209 #include <assert.h>
8210 /* Override any gcc2 internal prototype to avoid an error.  */
8211 /* We use char because int might match the return type of a gcc2
8212     builtin and then its argument prototype would still apply.  */
8213 char $ac_func();
8214
8215 int main() {
8216
8217 /* The GNU C library defines this for functions which it implements
8218     to always fail with ENOSYS.  Some functions are actually named
8219     something starting with __ and the normal name is an alias.  */
8220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8221 choke me
8222 #else
8223 $ac_func();
8224 #endif
8225
8226 ; return 0; }
8227 EOF
8228 if { (eval echo configure:8229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8229   rm -rf conftest*
8230   eval "ac_cv_func_$ac_func=yes"
8231 else
8232   echo "configure: failed program was:" >&5
8233   cat conftest.$ac_ext >&5
8234   rm -rf conftest*
8235   eval "ac_cv_func_$ac_func=no"
8236 fi
8237 rm -f conftest*
8238 fi
8239
8240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8241   echo "$ac_t""yes" 1>&6
8242     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8243   cat >> confdefs.h <<EOF
8244 #define $ac_tr_func 1
8245 EOF
8246  
8247 else
8248   echo "$ac_t""no" 1>&6
8249 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8250 fi
8251 done
8252
8253
8254     for ac_func in __signbit
8255 do
8256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8257 echo "configure:8258: checking for $ac_func" >&5
8258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8259   echo $ac_n "(cached) $ac_c" 1>&6
8260 else
8261   cat > conftest.$ac_ext <<EOF
8262 #line 8263 "configure"
8263 #include "confdefs.h"
8264 /* System header to define __stub macros and hopefully few prototypes,
8265     which can conflict with char $ac_func(); below.  */
8266 #include <assert.h>
8267 /* Override any gcc2 internal prototype to avoid an error.  */
8268 /* We use char because int might match the return type of a gcc2
8269     builtin and then its argument prototype would still apply.  */
8270 char $ac_func();
8271
8272 int main() {
8273
8274 /* The GNU C library defines this for functions which it implements
8275     to always fail with ENOSYS.  Some functions are actually named
8276     something starting with __ and the normal name is an alias.  */
8277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8278 choke me
8279 #else
8280 $ac_func();
8281 #endif
8282
8283 ; return 0; }
8284 EOF
8285 if { (eval echo configure:8286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8286   rm -rf conftest*
8287   eval "ac_cv_func_$ac_func=yes"
8288 else
8289   echo "configure: failed program was:" >&5
8290   cat conftest.$ac_ext >&5
8291   rm -rf conftest*
8292   eval "ac_cv_func_$ac_func=no"
8293 fi
8294 rm -f conftest*
8295 fi
8296
8297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8298   echo "$ac_t""yes" 1>&6
8299     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8300   cat >> confdefs.h <<EOF
8301 #define $ac_tr_func 1
8302 EOF
8303  
8304 else
8305   echo "$ac_t""no" 1>&6
8306 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8307 fi
8308 done
8309
8310   for ac_func in __signbitf
8311 do
8312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8313 echo "configure:8314: checking for $ac_func" >&5
8314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8315   echo $ac_n "(cached) $ac_c" 1>&6
8316 else
8317   cat > conftest.$ac_ext <<EOF
8318 #line 8319 "configure"
8319 #include "confdefs.h"
8320 /* System header to define __stub macros and hopefully few prototypes,
8321     which can conflict with char $ac_func(); below.  */
8322 #include <assert.h>
8323 /* Override any gcc2 internal prototype to avoid an error.  */
8324 /* We use char because int might match the return type of a gcc2
8325     builtin and then its argument prototype would still apply.  */
8326 char $ac_func();
8327
8328 int main() {
8329
8330 /* The GNU C library defines this for functions which it implements
8331     to always fail with ENOSYS.  Some functions are actually named
8332     something starting with __ and the normal name is an alias.  */
8333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8334 choke me
8335 #else
8336 $ac_func();
8337 #endif
8338
8339 ; return 0; }
8340 EOF
8341 if { (eval echo configure:8342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8342   rm -rf conftest*
8343   eval "ac_cv_func_$ac_func=yes"
8344 else
8345   echo "configure: failed program was:" >&5
8346   cat conftest.$ac_ext >&5
8347   rm -rf conftest*
8348   eval "ac_cv_func_$ac_func=no"
8349 fi
8350 rm -f conftest*
8351 fi
8352
8353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8354   echo "$ac_t""yes" 1>&6
8355     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8356   cat >> confdefs.h <<EOF
8357 #define $ac_tr_func 1
8358 EOF
8359  
8360 else
8361   echo "$ac_t""no" 1>&6
8362 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8363 fi
8364 done
8365
8366
8367           if test x$ac_cv_func_copysignl = x"yes"; then
8368     for ac_func in __signbitl
8369 do
8370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8371 echo "configure:8372: checking for $ac_func" >&5
8372 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8373   echo $ac_n "(cached) $ac_c" 1>&6
8374 else
8375   cat > conftest.$ac_ext <<EOF
8376 #line 8377 "configure"
8377 #include "confdefs.h"
8378 /* System header to define __stub macros and hopefully few prototypes,
8379     which can conflict with char $ac_func(); below.  */
8380 #include <assert.h>
8381 /* Override any gcc2 internal prototype to avoid an error.  */
8382 /* We use char because int might match the return type of a gcc2
8383     builtin and then its argument prototype would still apply.  */
8384 char $ac_func();
8385
8386 int main() {
8387
8388 /* The GNU C library defines this for functions which it implements
8389     to always fail with ENOSYS.  Some functions are actually named
8390     something starting with __ and the normal name is an alias.  */
8391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8392 choke me
8393 #else
8394 $ac_func();
8395 #endif
8396
8397 ; return 0; }
8398 EOF
8399 if { (eval echo configure:8400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8400   rm -rf conftest*
8401   eval "ac_cv_func_$ac_func=yes"
8402 else
8403   echo "configure: failed program was:" >&5
8404   cat conftest.$ac_ext >&5
8405   rm -rf conftest*
8406   eval "ac_cv_func_$ac_func=no"
8407 fi
8408 rm -f conftest*
8409 fi
8410
8411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8412   echo "$ac_t""yes" 1>&6
8413     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8414   cat >> confdefs.h <<EOF
8415 #define $ac_tr_func 1
8416 EOF
8417  
8418 else
8419   echo "$ac_t""no" 1>&6
8420 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8421 fi
8422 done
8423
8424   fi
8425
8426   
8427
8428       
8429
8430       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8431 echo "configure:8432: checking for mbstate_t" >&5
8432   cat > conftest.$ac_ext <<EOF
8433 #line 8434 "configure"
8434 #include "confdefs.h"
8435 #include <wchar.h>
8436 int main() {
8437 mbstate_t teststate;
8438 ; return 0; }
8439 EOF
8440 if { (eval echo configure:8441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8441   rm -rf conftest*
8442   have_mbstate_t=yes
8443 else
8444   echo "configure: failed program was:" >&5
8445   cat conftest.$ac_ext >&5
8446   rm -rf conftest*
8447   have_mbstate_t=no
8448 fi
8449 rm -f conftest*
8450   echo "$ac_t""$have_mbstate_t" 1>&6
8451   if test x"$have_mbstate_t" = xyes; then
8452     cat >> confdefs.h <<\EOF
8453 #define HAVE_MBSTATE_T 1
8454 EOF
8455
8456   fi
8457
8458     for ac_hdr in wchar.h
8459 do
8460 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8461 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8462 echo "configure:8463: checking for $ac_hdr" >&5
8463 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8464   echo $ac_n "(cached) $ac_c" 1>&6
8465 else
8466   cat > conftest.$ac_ext <<EOF
8467 #line 8468 "configure"
8468 #include "confdefs.h"
8469 #include <$ac_hdr>
8470 EOF
8471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8472 { (eval echo configure:8473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8474 if test -z "$ac_err"; then
8475   rm -rf conftest*
8476   eval "ac_cv_header_$ac_safe=yes"
8477 else
8478   echo "$ac_err" >&5
8479   echo "configure: failed program was:" >&5
8480   cat conftest.$ac_ext >&5
8481   rm -rf conftest*
8482   eval "ac_cv_header_$ac_safe=no"
8483 fi
8484 rm -f conftest*
8485 fi
8486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8487   echo "$ac_t""yes" 1>&6
8488     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8489   cat >> confdefs.h <<EOF
8490 #define $ac_tr_hdr 1
8491 EOF
8492  ac_has_wchar_h=yes
8493 else
8494   echo "$ac_t""no" 1>&6
8495 ac_has_wchar_h=no
8496 fi
8497 done
8498
8499   for ac_hdr in wctype.h
8500 do
8501 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8503 echo "configure:8504: checking for $ac_hdr" >&5
8504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8505   echo $ac_n "(cached) $ac_c" 1>&6
8506 else
8507   cat > conftest.$ac_ext <<EOF
8508 #line 8509 "configure"
8509 #include "confdefs.h"
8510 #include <$ac_hdr>
8511 EOF
8512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8513 { (eval echo configure:8514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8515 if test -z "$ac_err"; then
8516   rm -rf conftest*
8517   eval "ac_cv_header_$ac_safe=yes"
8518 else
8519   echo "$ac_err" >&5
8520   echo "configure: failed program was:" >&5
8521   cat conftest.$ac_ext >&5
8522   rm -rf conftest*
8523   eval "ac_cv_header_$ac_safe=no"
8524 fi
8525 rm -f conftest*
8526 fi
8527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8528   echo "$ac_t""yes" 1>&6
8529     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8530   cat >> confdefs.h <<EOF
8531 #define $ac_tr_hdr 1
8532 EOF
8533  ac_has_wctype_h=yes
8534 else
8535   echo "$ac_t""no" 1>&6
8536 ac_has_wctype_h=no
8537 fi
8538 done
8539
8540   
8541     if test x"$ac_has_wchar_h" = xyes &&
8542      test x"$ac_has_wctype_h" = xyes &&
8543      test x"$enable_c_mbchar" != xno; then
8544       
8545             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8546 echo "configure:8547: checking for WCHAR_MIN and WCHAR_MAX" >&5
8547     cat > conftest.$ac_ext <<EOF
8548 #line 8549 "configure"
8549 #include "confdefs.h"
8550 #include <wchar.h>
8551 int main() {
8552 int i = WCHAR_MIN; int j = WCHAR_MAX;
8553 ; return 0; }
8554 EOF
8555 if { (eval echo configure:8556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8556   rm -rf conftest*
8557   has_wchar_minmax=yes
8558 else
8559   echo "configure: failed program was:" >&5
8560   cat conftest.$ac_ext >&5
8561   rm -rf conftest*
8562   has_wchar_minmax=no
8563 fi
8564 rm -f conftest*
8565     echo "$ac_t""$has_wchar_minmax" 1>&6
8566     
8567             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8568 echo "configure:8569: checking for WEOF" >&5
8569     cat > conftest.$ac_ext <<EOF
8570 #line 8571 "configure"
8571 #include "confdefs.h"
8572
8573       #include <wchar.h>
8574       #include <stddef.h>
8575 int main() {
8576 wint_t i = WEOF;
8577 ; return 0; }
8578 EOF
8579 if { (eval echo configure:8580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8580   rm -rf conftest*
8581   has_weof=yes
8582 else
8583   echo "configure: failed program was:" >&5
8584   cat conftest.$ac_ext >&5
8585   rm -rf conftest*
8586   has_weof=no
8587 fi
8588 rm -f conftest*
8589     echo "$ac_t""$has_weof" 1>&6
8590   
8591         ac_wfuncs=yes
8592     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8593 do
8594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8595 echo "configure:8596: checking for $ac_func" >&5
8596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8597   echo $ac_n "(cached) $ac_c" 1>&6
8598 else
8599   cat > conftest.$ac_ext <<EOF
8600 #line 8601 "configure"
8601 #include "confdefs.h"
8602 /* System header to define __stub macros and hopefully few prototypes,
8603     which can conflict with char $ac_func(); below.  */
8604 #include <assert.h>
8605 /* Override any gcc2 internal prototype to avoid an error.  */
8606 /* We use char because int might match the return type of a gcc2
8607     builtin and then its argument prototype would still apply.  */
8608 char $ac_func();
8609
8610 int main() {
8611
8612 /* The GNU C library defines this for functions which it implements
8613     to always fail with ENOSYS.  Some functions are actually named
8614     something starting with __ and the normal name is an alias.  */
8615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8616 choke me
8617 #else
8618 $ac_func();
8619 #endif
8620
8621 ; return 0; }
8622 EOF
8623 if { (eval echo configure:8624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8624   rm -rf conftest*
8625   eval "ac_cv_func_$ac_func=yes"
8626 else
8627   echo "configure: failed program was:" >&5
8628   cat conftest.$ac_ext >&5
8629   rm -rf conftest*
8630   eval "ac_cv_func_$ac_func=no"
8631 fi
8632 rm -f conftest*
8633 fi
8634
8635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8636   echo "$ac_t""yes" 1>&6
8637     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8638   cat >> confdefs.h <<EOF
8639 #define $ac_tr_func 1
8640 EOF
8641  
8642 else
8643   echo "$ac_t""no" 1>&6
8644 \
8645     ac_wfuncs=no
8646 fi
8647 done
8648
8649   
8650         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8651     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8652     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8653     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8654     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8655     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8656 do
8657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8658 echo "configure:8659: checking for $ac_func" >&5
8659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8660   echo $ac_n "(cached) $ac_c" 1>&6
8661 else
8662   cat > conftest.$ac_ext <<EOF
8663 #line 8664 "configure"
8664 #include "confdefs.h"
8665 /* System header to define __stub macros and hopefully few prototypes,
8666     which can conflict with char $ac_func(); below.  */
8667 #include <assert.h>
8668 /* Override any gcc2 internal prototype to avoid an error.  */
8669 /* We use char because int might match the return type of a gcc2
8670     builtin and then its argument prototype would still apply.  */
8671 char $ac_func();
8672
8673 int main() {
8674
8675 /* The GNU C library defines this for functions which it implements
8676     to always fail with ENOSYS.  Some functions are actually named
8677     something starting with __ and the normal name is an alias.  */
8678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8679 choke me
8680 #else
8681 $ac_func();
8682 #endif
8683
8684 ; return 0; }
8685 EOF
8686 if { (eval echo configure:8687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8687   rm -rf conftest*
8688   eval "ac_cv_func_$ac_func=yes"
8689 else
8690   echo "configure: failed program was:" >&5
8691   cat conftest.$ac_ext >&5
8692   rm -rf conftest*
8693   eval "ac_cv_func_$ac_func=no"
8694 fi
8695 rm -f conftest*
8696 fi
8697
8698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8699   echo "$ac_t""yes" 1>&6
8700     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8701   cat >> confdefs.h <<EOF
8702 #define $ac_tr_func 1
8703 EOF
8704  
8705 else
8706   echo "$ac_t""no" 1>&6
8707 \
8708     ac_wfuncs=no
8709 fi
8710 done
8711
8712
8713     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8714 echo "configure:8715: checking for ISO C99 wchar_t support" >&5
8715     if test x"$has_weof" = xyes &&
8716        test x"$has_wchar_minmax" = xyes &&
8717        test x"$ac_wfuncs" = xyes; then
8718       ac_isoC99_wchar_t=yes
8719     else
8720       ac_isoC99_wchar_t=no
8721     fi
8722     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8723   
8724             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8725 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8726 echo "configure:8727: checking for iconv.h" >&5
8727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8728   echo $ac_n "(cached) $ac_c" 1>&6
8729 else
8730   cat > conftest.$ac_ext <<EOF
8731 #line 8732 "configure"
8732 #include "confdefs.h"
8733 #include <iconv.h>
8734 EOF
8735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8736 { (eval echo configure:8737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8738 if test -z "$ac_err"; then
8739   rm -rf conftest*
8740   eval "ac_cv_header_$ac_safe=yes"
8741 else
8742   echo "$ac_err" >&5
8743   echo "configure: failed program was:" >&5
8744   cat conftest.$ac_ext >&5
8745   rm -rf conftest*
8746   eval "ac_cv_header_$ac_safe=no"
8747 fi
8748 rm -f conftest*
8749 fi
8750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8751   echo "$ac_t""yes" 1>&6
8752   ac_has_iconv_h=yes
8753 else
8754   echo "$ac_t""no" 1>&6
8755 ac_has_iconv_h=no
8756 fi
8757
8758     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8759 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8760 echo "configure:8761: checking for langinfo.h" >&5
8761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8762   echo $ac_n "(cached) $ac_c" 1>&6
8763 else
8764   cat > conftest.$ac_ext <<EOF
8765 #line 8766 "configure"
8766 #include "confdefs.h"
8767 #include <langinfo.h>
8768 EOF
8769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8770 { (eval echo configure:8771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8772 if test -z "$ac_err"; then
8773   rm -rf conftest*
8774   eval "ac_cv_header_$ac_safe=yes"
8775 else
8776   echo "$ac_err" >&5
8777   echo "configure: failed program was:" >&5
8778   cat conftest.$ac_ext >&5
8779   rm -rf conftest*
8780   eval "ac_cv_header_$ac_safe=no"
8781 fi
8782 rm -f conftest*
8783 fi
8784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8785   echo "$ac_t""yes" 1>&6
8786   ac_has_langinfo_h=yes
8787 else
8788   echo "$ac_t""no" 1>&6
8789 ac_has_langinfo_h=no
8790 fi
8791
8792
8793         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8794 echo "configure:8795: checking for iconv in -liconv" >&5
8795 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8796 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8797   echo $ac_n "(cached) $ac_c" 1>&6
8798 else
8799   ac_save_LIBS="$LIBS"
8800 LIBS="-liconv  $LIBS"
8801 cat > conftest.$ac_ext <<EOF
8802 #line 8803 "configure"
8803 #include "confdefs.h"
8804 /* Override any gcc2 internal prototype to avoid an error.  */
8805 /* We use char because int might match the return type of a gcc2
8806     builtin and then its argument prototype would still apply.  */
8807 char iconv();
8808
8809 int main() {
8810 iconv()
8811 ; return 0; }
8812 EOF
8813 if { (eval echo configure:8814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8814   rm -rf conftest*
8815   eval "ac_cv_lib_$ac_lib_var=yes"
8816 else
8817   echo "configure: failed program was:" >&5
8818   cat conftest.$ac_ext >&5
8819   rm -rf conftest*
8820   eval "ac_cv_lib_$ac_lib_var=no"
8821 fi
8822 rm -f conftest*
8823 LIBS="$ac_save_LIBS"
8824
8825 fi
8826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8827   echo "$ac_t""yes" 1>&6
8828   libiconv="-liconv"
8829 else
8830   echo "$ac_t""no" 1>&6
8831 fi
8832
8833     ac_save_LIBS="$LIBS"
8834     LIBS="$LIBS $libiconv"
8835
8836     for ac_func in iconv_open iconv_close iconv nl_langinfo
8837 do
8838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8839 echo "configure:8840: checking for $ac_func" >&5
8840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8841   echo $ac_n "(cached) $ac_c" 1>&6
8842 else
8843   cat > conftest.$ac_ext <<EOF
8844 #line 8845 "configure"
8845 #include "confdefs.h"
8846 /* System header to define __stub macros and hopefully few prototypes,
8847     which can conflict with char $ac_func(); below.  */
8848 #include <assert.h>
8849 /* Override any gcc2 internal prototype to avoid an error.  */
8850 /* We use char because int might match the return type of a gcc2
8851     builtin and then its argument prototype would still apply.  */
8852 char $ac_func();
8853
8854 int main() {
8855
8856 /* The GNU C library defines this for functions which it implements
8857     to always fail with ENOSYS.  Some functions are actually named
8858     something starting with __ and the normal name is an alias.  */
8859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8860 choke me
8861 #else
8862 $ac_func();
8863 #endif
8864
8865 ; return 0; }
8866 EOF
8867 if { (eval echo configure:8868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8868   rm -rf conftest*
8869   eval "ac_cv_func_$ac_func=yes"
8870 else
8871   echo "configure: failed program was:" >&5
8872   cat conftest.$ac_ext >&5
8873   rm -rf conftest*
8874   eval "ac_cv_func_$ac_func=no"
8875 fi
8876 rm -f conftest*
8877 fi
8878
8879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8880   echo "$ac_t""yes" 1>&6
8881     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8882   cat >> confdefs.h <<EOF
8883 #define $ac_tr_func 1
8884 EOF
8885  \
8886     ac_XPG2funcs=yes
8887 else
8888   echo "$ac_t""no" 1>&6
8889 ac_XPG2funcs=no
8890 fi
8891 done
8892
8893   
8894     LIBS="$ac_save_LIBS"
8895
8896     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8897 echo "configure:8898: checking for XPG2 wchar_t support" >&5
8898     if test x"$ac_has_iconv_h" = xyes &&
8899        test x"$ac_has_langinfo_h" = xyes &&
8900        test x"$ac_XPG2funcs" = xyes; then
8901       ac_XPG2_wchar_t=yes
8902     else
8903       ac_XPG2_wchar_t=no
8904     fi
8905     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8906   
8907             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8908 echo "configure:8909: checking for enabled wchar_t specializations" >&5
8909     if test x"$ac_isoC99_wchar_t" = xyes &&
8910        test x"$ac_XPG2_wchar_t" = xyes; then
8911       cat >> confdefs.h <<\EOF
8912 #define _GLIBCPP_USE_WCHAR_T 1
8913 EOF
8914
8915       echo "$ac_t"""yes"" 1>&6
8916     else
8917       echo "$ac_t"""no"" 1>&6
8918     fi
8919   else
8920         echo "configure: warning: wchar_t support disabled." 1>&2
8921   fi
8922
8923       os_include_dir="os/mingw32"
8924       ;;
8925     *-windiss*)
8926       os_include_dir="os/windiss"
8927       ;;
8928     *-qnx6.[12]*)
8929       SECTION_FLAGS='-ffunction-sections -fdata-sections'
8930        
8931       
8932   # If we're not using GNU ld, then there's no point in even trying these
8933   # tests.  Check for that first.  We should have already tested for gld
8934   # by now (in libtool), but require it now just to be safe...
8935   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8936   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8937   
8938
8939   # The name set by libtool depends on the version of libtool.  Shame on us
8940   # for depending on an impl detail, but c'est la vie.  Older versions used
8941   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8942   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8943   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8944   # set (hence we're using an older libtool), then set it.
8945   if test x${with_gnu_ld+set} != xset; then
8946     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8947       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8948       with_gnu_ld=no
8949     else
8950       with_gnu_ld=$ac_cv_prog_gnu_ld
8951     fi
8952   fi
8953
8954   # Start by getting the version number.  I think the libtool test already
8955   # does some of this, but throws away the result.
8956   
8957   ldver=`$LD --version 2>/dev/null | head -1 | \
8958          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8959   
8960   glibcpp_gnu_ld_version=`echo $ldver | \
8961          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8962
8963   # Set --gc-sections.
8964   if test "$with_gnu_ld" = "notbroken"; then
8965     # GNU ld it is!  Joy and bunny rabbits!
8966
8967     # All these tests are for C++; save the language and the compiler flags.
8968     # Need to do this so that g++ won't try to link in libstdc++
8969     ac_test_CFLAGS="${CFLAGS+set}"
8970     ac_save_CFLAGS="$CFLAGS"
8971     CFLAGS='-x c++  -Wl,--gc-sections'
8972
8973     # Check for -Wl,--gc-sections
8974     # XXX This test is broken at the moment, as symbols required for
8975     # linking are now in libsupc++ (not built yet.....). In addition, 
8976     # this test has cored on solaris in the past. In addition,
8977     # --gc-sections doesn't really work at the moment (keeps on discarding
8978     # used sections, first .eh_frame and now some of the glibc sections for
8979     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8980     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8981 echo "configure:8982: checking for ld that supports -Wl,--gc-sections" >&5
8982     if test "$cross_compiling" = yes; then
8983   ac_sectionLDflags=yes
8984 else
8985   cat > conftest.$ac_ext <<EOF
8986 #line 8987 "configure"
8987 #include "confdefs.h"
8988
8989      int main(void) 
8990      {
8991        try { throw 1; }
8992        catch (...) { };
8993        return 0;
8994      }
8995     
8996 EOF
8997 if { (eval echo configure:8998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8998 then
8999   ac_sectionLDflags=yes
9000 else
9001   echo "configure: failed program was:" >&5
9002   cat conftest.$ac_ext >&5
9003   rm -fr conftest*
9004   ac_sectionLDflags=no
9005 fi
9006 rm -fr conftest*
9007 fi
9008
9009     if test "$ac_test_CFLAGS" = set; then
9010       CFLAGS="$ac_save_CFLAGS"
9011     else
9012       # this is the suspicious part
9013       CFLAGS=''
9014     fi
9015     if test "$ac_sectionLDflags" = "yes"; then
9016       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9017     fi
9018     echo "$ac_t""$ac_sectionLDflags" 1>&6
9019   fi
9020
9021   # Set linker optimization flags.
9022   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9023     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9024   fi
9025
9026   
9027   
9028
9029       
9030     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9031 echo "configure:9032: checking for main in -lm" >&5
9032 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9033 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9034   echo $ac_n "(cached) $ac_c" 1>&6
9035 else
9036   ac_save_LIBS="$LIBS"
9037 LIBS="-lm  $LIBS"
9038 cat > conftest.$ac_ext <<EOF
9039 #line 9040 "configure"
9040 #include "confdefs.h"
9041
9042 int main() {
9043 main()
9044 ; return 0; }
9045 EOF
9046 if { (eval echo configure:9047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9047   rm -rf conftest*
9048   eval "ac_cv_lib_$ac_lib_var=yes"
9049 else
9050   echo "configure: failed program was:" >&5
9051   cat conftest.$ac_ext >&5
9052   rm -rf conftest*
9053   eval "ac_cv_lib_$ac_lib_var=no"
9054 fi
9055 rm -f conftest*
9056 LIBS="$ac_save_LIBS"
9057
9058 fi
9059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9060   echo "$ac_t""yes" 1>&6
9061     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9062     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9063   cat >> confdefs.h <<EOF
9064 #define $ac_tr_lib 1
9065 EOF
9066
9067   LIBS="-lm $LIBS"
9068
9069 else
9070   echo "$ac_t""no" 1>&6
9071 fi
9072
9073   for ac_func in nan copysignf
9074 do
9075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9076 echo "configure:9077: checking for $ac_func" >&5
9077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9078   echo $ac_n "(cached) $ac_c" 1>&6
9079 else
9080   cat > conftest.$ac_ext <<EOF
9081 #line 9082 "configure"
9082 #include "confdefs.h"
9083 /* System header to define __stub macros and hopefully few prototypes,
9084     which can conflict with char $ac_func(); below.  */
9085 #include <assert.h>
9086 /* Override any gcc2 internal prototype to avoid an error.  */
9087 /* We use char because int might match the return type of a gcc2
9088     builtin and then its argument prototype would still apply.  */
9089 char $ac_func();
9090
9091 int main() {
9092
9093 /* The GNU C library defines this for functions which it implements
9094     to always fail with ENOSYS.  Some functions are actually named
9095     something starting with __ and the normal name is an alias.  */
9096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9097 choke me
9098 #else
9099 $ac_func();
9100 #endif
9101
9102 ; return 0; }
9103 EOF
9104 if { (eval echo configure:9105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9105   rm -rf conftest*
9106   eval "ac_cv_func_$ac_func=yes"
9107 else
9108   echo "configure: failed program was:" >&5
9109   cat conftest.$ac_ext >&5
9110   rm -rf conftest*
9111   eval "ac_cv_func_$ac_func=no"
9112 fi
9113 rm -f conftest*
9114 fi
9115
9116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9117   echo "$ac_t""yes" 1>&6
9118     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9119   cat >> confdefs.h <<EOF
9120 #define $ac_tr_func 1
9121 EOF
9122  
9123 else
9124   echo "$ac_t""no" 1>&6
9125 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9126 fi
9127 done
9128
9129
9130     for ac_func in __signbit
9131 do
9132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9133 echo "configure:9134: checking for $ac_func" >&5
9134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9135   echo $ac_n "(cached) $ac_c" 1>&6
9136 else
9137   cat > conftest.$ac_ext <<EOF
9138 #line 9139 "configure"
9139 #include "confdefs.h"
9140 /* System header to define __stub macros and hopefully few prototypes,
9141     which can conflict with char $ac_func(); below.  */
9142 #include <assert.h>
9143 /* Override any gcc2 internal prototype to avoid an error.  */
9144 /* We use char because int might match the return type of a gcc2
9145     builtin and then its argument prototype would still apply.  */
9146 char $ac_func();
9147
9148 int main() {
9149
9150 /* The GNU C library defines this for functions which it implements
9151     to always fail with ENOSYS.  Some functions are actually named
9152     something starting with __ and the normal name is an alias.  */
9153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9154 choke me
9155 #else
9156 $ac_func();
9157 #endif
9158
9159 ; return 0; }
9160 EOF
9161 if { (eval echo configure:9162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9162   rm -rf conftest*
9163   eval "ac_cv_func_$ac_func=yes"
9164 else
9165   echo "configure: failed program was:" >&5
9166   cat conftest.$ac_ext >&5
9167   rm -rf conftest*
9168   eval "ac_cv_func_$ac_func=no"
9169 fi
9170 rm -f conftest*
9171 fi
9172
9173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9174   echo "$ac_t""yes" 1>&6
9175     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9176   cat >> confdefs.h <<EOF
9177 #define $ac_tr_func 1
9178 EOF
9179  
9180 else
9181   echo "$ac_t""no" 1>&6
9182 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9183 fi
9184 done
9185
9186   for ac_func in __signbitf
9187 do
9188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9189 echo "configure:9190: checking for $ac_func" >&5
9190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9191   echo $ac_n "(cached) $ac_c" 1>&6
9192 else
9193   cat > conftest.$ac_ext <<EOF
9194 #line 9195 "configure"
9195 #include "confdefs.h"
9196 /* System header to define __stub macros and hopefully few prototypes,
9197     which can conflict with char $ac_func(); below.  */
9198 #include <assert.h>
9199 /* Override any gcc2 internal prototype to avoid an error.  */
9200 /* We use char because int might match the return type of a gcc2
9201     builtin and then its argument prototype would still apply.  */
9202 char $ac_func();
9203
9204 int main() {
9205
9206 /* The GNU C library defines this for functions which it implements
9207     to always fail with ENOSYS.  Some functions are actually named
9208     something starting with __ and the normal name is an alias.  */
9209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9210 choke me
9211 #else
9212 $ac_func();
9213 #endif
9214
9215 ; return 0; }
9216 EOF
9217 if { (eval echo configure:9218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9218   rm -rf conftest*
9219   eval "ac_cv_func_$ac_func=yes"
9220 else
9221   echo "configure: failed program was:" >&5
9222   cat conftest.$ac_ext >&5
9223   rm -rf conftest*
9224   eval "ac_cv_func_$ac_func=no"
9225 fi
9226 rm -f conftest*
9227 fi
9228
9229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9230   echo "$ac_t""yes" 1>&6
9231     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9232   cat >> confdefs.h <<EOF
9233 #define $ac_tr_func 1
9234 EOF
9235  
9236 else
9237   echo "$ac_t""no" 1>&6
9238 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9239 fi
9240 done
9241
9242
9243           if test x$ac_cv_func_copysignl = x"yes"; then
9244     for ac_func in __signbitl
9245 do
9246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9247 echo "configure:9248: checking for $ac_func" >&5
9248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9249   echo $ac_n "(cached) $ac_c" 1>&6
9250 else
9251   cat > conftest.$ac_ext <<EOF
9252 #line 9253 "configure"
9253 #include "confdefs.h"
9254 /* System header to define __stub macros and hopefully few prototypes,
9255     which can conflict with char $ac_func(); below.  */
9256 #include <assert.h>
9257 /* Override any gcc2 internal prototype to avoid an error.  */
9258 /* We use char because int might match the return type of a gcc2
9259     builtin and then its argument prototype would still apply.  */
9260 char $ac_func();
9261
9262 int main() {
9263
9264 /* The GNU C library defines this for functions which it implements
9265     to always fail with ENOSYS.  Some functions are actually named
9266     something starting with __ and the normal name is an alias.  */
9267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9268 choke me
9269 #else
9270 $ac_func();
9271 #endif
9272
9273 ; return 0; }
9274 EOF
9275 if { (eval echo configure:9276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9276   rm -rf conftest*
9277   eval "ac_cv_func_$ac_func=yes"
9278 else
9279   echo "configure: failed program was:" >&5
9280   cat conftest.$ac_ext >&5
9281   rm -rf conftest*
9282   eval "ac_cv_func_$ac_func=no"
9283 fi
9284 rm -f conftest*
9285 fi
9286
9287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9288   echo "$ac_t""yes" 1>&6
9289     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9290   cat >> confdefs.h <<EOF
9291 #define $ac_tr_func 1
9292 EOF
9293  
9294 else
9295   echo "$ac_t""no" 1>&6
9296 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9297 fi
9298 done
9299
9300   fi
9301
9302   
9303
9304       
9305
9306       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9307 echo "configure:9308: checking for mbstate_t" >&5
9308   cat > conftest.$ac_ext <<EOF
9309 #line 9310 "configure"
9310 #include "confdefs.h"
9311 #include <wchar.h>
9312 int main() {
9313 mbstate_t teststate;
9314 ; return 0; }
9315 EOF
9316 if { (eval echo configure:9317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9317   rm -rf conftest*
9318   have_mbstate_t=yes
9319 else
9320   echo "configure: failed program was:" >&5
9321   cat conftest.$ac_ext >&5
9322   rm -rf conftest*
9323   have_mbstate_t=no
9324 fi
9325 rm -f conftest*
9326   echo "$ac_t""$have_mbstate_t" 1>&6
9327   if test x"$have_mbstate_t" = xyes; then
9328     cat >> confdefs.h <<\EOF
9329 #define HAVE_MBSTATE_T 1
9330 EOF
9331
9332   fi
9333
9334     for ac_hdr in wchar.h
9335 do
9336 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9337 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9338 echo "configure:9339: checking for $ac_hdr" >&5
9339 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9340   echo $ac_n "(cached) $ac_c" 1>&6
9341 else
9342   cat > conftest.$ac_ext <<EOF
9343 #line 9344 "configure"
9344 #include "confdefs.h"
9345 #include <$ac_hdr>
9346 EOF
9347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9348 { (eval echo configure:9349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9350 if test -z "$ac_err"; then
9351   rm -rf conftest*
9352   eval "ac_cv_header_$ac_safe=yes"
9353 else
9354   echo "$ac_err" >&5
9355   echo "configure: failed program was:" >&5
9356   cat conftest.$ac_ext >&5
9357   rm -rf conftest*
9358   eval "ac_cv_header_$ac_safe=no"
9359 fi
9360 rm -f conftest*
9361 fi
9362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9363   echo "$ac_t""yes" 1>&6
9364     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9365   cat >> confdefs.h <<EOF
9366 #define $ac_tr_hdr 1
9367 EOF
9368  ac_has_wchar_h=yes
9369 else
9370   echo "$ac_t""no" 1>&6
9371 ac_has_wchar_h=no
9372 fi
9373 done
9374
9375   for ac_hdr in wctype.h
9376 do
9377 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9378 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9379 echo "configure:9380: checking for $ac_hdr" >&5
9380 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9381   echo $ac_n "(cached) $ac_c" 1>&6
9382 else
9383   cat > conftest.$ac_ext <<EOF
9384 #line 9385 "configure"
9385 #include "confdefs.h"
9386 #include <$ac_hdr>
9387 EOF
9388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9389 { (eval echo configure:9390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9391 if test -z "$ac_err"; then
9392   rm -rf conftest*
9393   eval "ac_cv_header_$ac_safe=yes"
9394 else
9395   echo "$ac_err" >&5
9396   echo "configure: failed program was:" >&5
9397   cat conftest.$ac_ext >&5
9398   rm -rf conftest*
9399   eval "ac_cv_header_$ac_safe=no"
9400 fi
9401 rm -f conftest*
9402 fi
9403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9404   echo "$ac_t""yes" 1>&6
9405     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9406   cat >> confdefs.h <<EOF
9407 #define $ac_tr_hdr 1
9408 EOF
9409  ac_has_wctype_h=yes
9410 else
9411   echo "$ac_t""no" 1>&6
9412 ac_has_wctype_h=no
9413 fi
9414 done
9415
9416   
9417     if test x"$ac_has_wchar_h" = xyes &&
9418      test x"$ac_has_wctype_h" = xyes &&
9419      test x"$enable_c_mbchar" != xno; then
9420       
9421             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9422 echo "configure:9423: checking for WCHAR_MIN and WCHAR_MAX" >&5
9423     cat > conftest.$ac_ext <<EOF
9424 #line 9425 "configure"
9425 #include "confdefs.h"
9426 #include <wchar.h>
9427 int main() {
9428 int i = WCHAR_MIN; int j = WCHAR_MAX;
9429 ; return 0; }
9430 EOF
9431 if { (eval echo configure:9432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9432   rm -rf conftest*
9433   has_wchar_minmax=yes
9434 else
9435   echo "configure: failed program was:" >&5
9436   cat conftest.$ac_ext >&5
9437   rm -rf conftest*
9438   has_wchar_minmax=no
9439 fi
9440 rm -f conftest*
9441     echo "$ac_t""$has_wchar_minmax" 1>&6
9442     
9443             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9444 echo "configure:9445: checking for WEOF" >&5
9445     cat > conftest.$ac_ext <<EOF
9446 #line 9447 "configure"
9447 #include "confdefs.h"
9448
9449       #include <wchar.h>
9450       #include <stddef.h>
9451 int main() {
9452 wint_t i = WEOF;
9453 ; return 0; }
9454 EOF
9455 if { (eval echo configure:9456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9456   rm -rf conftest*
9457   has_weof=yes
9458 else
9459   echo "configure: failed program was:" >&5
9460   cat conftest.$ac_ext >&5
9461   rm -rf conftest*
9462   has_weof=no
9463 fi
9464 rm -f conftest*
9465     echo "$ac_t""$has_weof" 1>&6
9466   
9467         ac_wfuncs=yes
9468     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9469 do
9470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9471 echo "configure:9472: checking for $ac_func" >&5
9472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9473   echo $ac_n "(cached) $ac_c" 1>&6
9474 else
9475   cat > conftest.$ac_ext <<EOF
9476 #line 9477 "configure"
9477 #include "confdefs.h"
9478 /* System header to define __stub macros and hopefully few prototypes,
9479     which can conflict with char $ac_func(); below.  */
9480 #include <assert.h>
9481 /* Override any gcc2 internal prototype to avoid an error.  */
9482 /* We use char because int might match the return type of a gcc2
9483     builtin and then its argument prototype would still apply.  */
9484 char $ac_func();
9485
9486 int main() {
9487
9488 /* The GNU C library defines this for functions which it implements
9489     to always fail with ENOSYS.  Some functions are actually named
9490     something starting with __ and the normal name is an alias.  */
9491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9492 choke me
9493 #else
9494 $ac_func();
9495 #endif
9496
9497 ; return 0; }
9498 EOF
9499 if { (eval echo configure:9500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9500   rm -rf conftest*
9501   eval "ac_cv_func_$ac_func=yes"
9502 else
9503   echo "configure: failed program was:" >&5
9504   cat conftest.$ac_ext >&5
9505   rm -rf conftest*
9506   eval "ac_cv_func_$ac_func=no"
9507 fi
9508 rm -f conftest*
9509 fi
9510
9511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9512   echo "$ac_t""yes" 1>&6
9513     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9514   cat >> confdefs.h <<EOF
9515 #define $ac_tr_func 1
9516 EOF
9517  
9518 else
9519   echo "$ac_t""no" 1>&6
9520 \
9521     ac_wfuncs=no
9522 fi
9523 done
9524
9525   
9526         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
9527     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9528     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9529     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9530     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9531     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9532 do
9533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9534 echo "configure:9535: checking for $ac_func" >&5
9535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9536   echo $ac_n "(cached) $ac_c" 1>&6
9537 else
9538   cat > conftest.$ac_ext <<EOF
9539 #line 9540 "configure"
9540 #include "confdefs.h"
9541 /* System header to define __stub macros and hopefully few prototypes,
9542     which can conflict with char $ac_func(); below.  */
9543 #include <assert.h>
9544 /* Override any gcc2 internal prototype to avoid an error.  */
9545 /* We use char because int might match the return type of a gcc2
9546     builtin and then its argument prototype would still apply.  */
9547 char $ac_func();
9548
9549 int main() {
9550
9551 /* The GNU C library defines this for functions which it implements
9552     to always fail with ENOSYS.  Some functions are actually named
9553     something starting with __ and the normal name is an alias.  */
9554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9555 choke me
9556 #else
9557 $ac_func();
9558 #endif
9559
9560 ; return 0; }
9561 EOF
9562 if { (eval echo configure:9563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9563   rm -rf conftest*
9564   eval "ac_cv_func_$ac_func=yes"
9565 else
9566   echo "configure: failed program was:" >&5
9567   cat conftest.$ac_ext >&5
9568   rm -rf conftest*
9569   eval "ac_cv_func_$ac_func=no"
9570 fi
9571 rm -f conftest*
9572 fi
9573
9574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9575   echo "$ac_t""yes" 1>&6
9576     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9577   cat >> confdefs.h <<EOF
9578 #define $ac_tr_func 1
9579 EOF
9580  
9581 else
9582   echo "$ac_t""no" 1>&6
9583 \
9584     ac_wfuncs=no
9585 fi
9586 done
9587
9588
9589     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9590 echo "configure:9591: checking for ISO C99 wchar_t support" >&5
9591     if test x"$has_weof" = xyes &&
9592        test x"$has_wchar_minmax" = xyes &&
9593        test x"$ac_wfuncs" = xyes; then
9594       ac_isoC99_wchar_t=yes
9595     else
9596       ac_isoC99_wchar_t=no
9597     fi
9598     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9599   
9600             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9601 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9602 echo "configure:9603: checking for iconv.h" >&5
9603 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9604   echo $ac_n "(cached) $ac_c" 1>&6
9605 else
9606   cat > conftest.$ac_ext <<EOF
9607 #line 9608 "configure"
9608 #include "confdefs.h"
9609 #include <iconv.h>
9610 EOF
9611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9612 { (eval echo configure:9613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9614 if test -z "$ac_err"; then
9615   rm -rf conftest*
9616   eval "ac_cv_header_$ac_safe=yes"
9617 else
9618   echo "$ac_err" >&5
9619   echo "configure: failed program was:" >&5
9620   cat conftest.$ac_ext >&5
9621   rm -rf conftest*
9622   eval "ac_cv_header_$ac_safe=no"
9623 fi
9624 rm -f conftest*
9625 fi
9626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9627   echo "$ac_t""yes" 1>&6
9628   ac_has_iconv_h=yes
9629 else
9630   echo "$ac_t""no" 1>&6
9631 ac_has_iconv_h=no
9632 fi
9633
9634     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9635 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9636 echo "configure:9637: checking for langinfo.h" >&5
9637 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9638   echo $ac_n "(cached) $ac_c" 1>&6
9639 else
9640   cat > conftest.$ac_ext <<EOF
9641 #line 9642 "configure"
9642 #include "confdefs.h"
9643 #include <langinfo.h>
9644 EOF
9645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9646 { (eval echo configure:9647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9648 if test -z "$ac_err"; then
9649   rm -rf conftest*
9650   eval "ac_cv_header_$ac_safe=yes"
9651 else
9652   echo "$ac_err" >&5
9653   echo "configure: failed program was:" >&5
9654   cat conftest.$ac_ext >&5
9655   rm -rf conftest*
9656   eval "ac_cv_header_$ac_safe=no"
9657 fi
9658 rm -f conftest*
9659 fi
9660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9661   echo "$ac_t""yes" 1>&6
9662   ac_has_langinfo_h=yes
9663 else
9664   echo "$ac_t""no" 1>&6
9665 ac_has_langinfo_h=no
9666 fi
9667
9668
9669         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9670 echo "configure:9671: checking for iconv in -liconv" >&5
9671 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9673   echo $ac_n "(cached) $ac_c" 1>&6
9674 else
9675   ac_save_LIBS="$LIBS"
9676 LIBS="-liconv  $LIBS"
9677 cat > conftest.$ac_ext <<EOF
9678 #line 9679 "configure"
9679 #include "confdefs.h"
9680 /* Override any gcc2 internal prototype to avoid an error.  */
9681 /* We use char because int might match the return type of a gcc2
9682     builtin and then its argument prototype would still apply.  */
9683 char iconv();
9684
9685 int main() {
9686 iconv()
9687 ; return 0; }
9688 EOF
9689 if { (eval echo configure:9690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9690   rm -rf conftest*
9691   eval "ac_cv_lib_$ac_lib_var=yes"
9692 else
9693   echo "configure: failed program was:" >&5
9694   cat conftest.$ac_ext >&5
9695   rm -rf conftest*
9696   eval "ac_cv_lib_$ac_lib_var=no"
9697 fi
9698 rm -f conftest*
9699 LIBS="$ac_save_LIBS"
9700
9701 fi
9702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9703   echo "$ac_t""yes" 1>&6
9704   libiconv="-liconv"
9705 else
9706   echo "$ac_t""no" 1>&6
9707 fi
9708
9709     ac_save_LIBS="$LIBS"
9710     LIBS="$LIBS $libiconv"
9711
9712     for ac_func in iconv_open iconv_close iconv nl_langinfo
9713 do
9714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9715 echo "configure:9716: checking for $ac_func" >&5
9716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9717   echo $ac_n "(cached) $ac_c" 1>&6
9718 else
9719   cat > conftest.$ac_ext <<EOF
9720 #line 9721 "configure"
9721 #include "confdefs.h"
9722 /* System header to define __stub macros and hopefully few prototypes,
9723     which can conflict with char $ac_func(); below.  */
9724 #include <assert.h>
9725 /* Override any gcc2 internal prototype to avoid an error.  */
9726 /* We use char because int might match the return type of a gcc2
9727     builtin and then its argument prototype would still apply.  */
9728 char $ac_func();
9729
9730 int main() {
9731
9732 /* The GNU C library defines this for functions which it implements
9733     to always fail with ENOSYS.  Some functions are actually named
9734     something starting with __ and the normal name is an alias.  */
9735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9736 choke me
9737 #else
9738 $ac_func();
9739 #endif
9740
9741 ; return 0; }
9742 EOF
9743 if { (eval echo configure:9744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9744   rm -rf conftest*
9745   eval "ac_cv_func_$ac_func=yes"
9746 else
9747   echo "configure: failed program was:" >&5
9748   cat conftest.$ac_ext >&5
9749   rm -rf conftest*
9750   eval "ac_cv_func_$ac_func=no"
9751 fi
9752 rm -f conftest*
9753 fi
9754
9755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9756   echo "$ac_t""yes" 1>&6
9757     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9758   cat >> confdefs.h <<EOF
9759 #define $ac_tr_func 1
9760 EOF
9761  \
9762     ac_XPG2funcs=yes
9763 else
9764   echo "$ac_t""no" 1>&6
9765 ac_XPG2funcs=no
9766 fi
9767 done
9768
9769   
9770     LIBS="$ac_save_LIBS"
9771
9772     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9773 echo "configure:9774: checking for XPG2 wchar_t support" >&5
9774     if test x"$ac_has_iconv_h" = xyes &&
9775        test x"$ac_has_langinfo_h" = xyes &&
9776        test x"$ac_XPG2funcs" = xyes; then
9777       ac_XPG2_wchar_t=yes
9778     else
9779       ac_XPG2_wchar_t=no
9780     fi
9781     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9782   
9783             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9784 echo "configure:9785: checking for enabled wchar_t specializations" >&5
9785     if test x"$ac_isoC99_wchar_t" = xyes &&
9786        test x"$ac_XPG2_wchar_t" = xyes; then
9787       cat >> confdefs.h <<\EOF
9788 #define _GLIBCPP_USE_WCHAR_T 1
9789 EOF
9790
9791       echo "$ac_t"""yes"" 1>&6
9792     else
9793       echo "$ac_t"""no"" 1>&6
9794     fi
9795   else
9796         echo "configure: warning: wchar_t support disabled." 1>&2
9797   fi
9798
9799       os_include_dir="os/qnx/qnx6.1"
9800       cat >> confdefs.h <<\EOF
9801 #define HAVE_COSF 1
9802 EOF
9803
9804       cat >> confdefs.h <<\EOF
9805 #define HAVE_COSL 1
9806 EOF
9807
9808       cat >> confdefs.h <<\EOF
9809 #define HAVE_COSHF 1
9810 EOF
9811
9812       cat >> confdefs.h <<\EOF
9813 #define HAVE_COSHL 1
9814 EOF
9815
9816       cat >> confdefs.h <<\EOF
9817 #define HAVE_LOGF 1
9818 EOF
9819
9820       cat >> confdefs.h <<\EOF
9821 #define HAVE_LOGL 1
9822 EOF
9823
9824       cat >> confdefs.h <<\EOF
9825 #define HAVE_LOG10F 1
9826 EOF
9827
9828       cat >> confdefs.h <<\EOF
9829 #define HAVE_LOG10L 1
9830 EOF
9831
9832       cat >> confdefs.h <<\EOF
9833 #define HAVE_SINF 1
9834 EOF
9835
9836       cat >> confdefs.h <<\EOF
9837 #define HAVE_SINL 1
9838 EOF
9839
9840       cat >> confdefs.h <<\EOF
9841 #define HAVE_SINHF 1
9842 EOF
9843
9844       cat >> confdefs.h <<\EOF
9845 #define HAVE_SINHL 1
9846 EOF
9847
9848       ;;
9849     *)
9850       os_include_dir="os/newlib"
9851       cat >> confdefs.h <<\EOF
9852 #define HAVE_HYPOT 1
9853 EOF
9854
9855       ;;
9856   esac
9857
9858   case "$target" in
9859     *-mingw32*)
9860       ;;
9861     *-windiss*)
9862       cat >> confdefs.h <<\EOF
9863 #define HAVE_ACOSF 1
9864 EOF
9865
9866       cat >> confdefs.h <<\EOF
9867 #define HAVE_ASINF 1
9868 EOF
9869
9870       cat >> confdefs.h <<\EOF
9871 #define HAVE_ATAN2F 1
9872 EOF
9873
9874       cat >> confdefs.h <<\EOF
9875 #define HAVE_ATANF 1
9876 EOF
9877
9878       cat >> confdefs.h <<\EOF
9879 #define HAVE_CEILF 1
9880 EOF
9881
9882       cat >> confdefs.h <<\EOF
9883 #define HAVE_COPYSIGN 1
9884 EOF
9885
9886       cat >> confdefs.h <<\EOF
9887 #define HAVE_COPYSIGNF 1
9888 EOF
9889
9890       cat >> confdefs.h <<\EOF
9891 #define HAVE_COSF 1
9892 EOF
9893
9894       cat >> confdefs.h <<\EOF
9895 #define HAVE_COSHF 1
9896 EOF
9897
9898       cat >> confdefs.h <<\EOF
9899 #define HAVE_EXPF 1
9900 EOF
9901
9902       cat >> confdefs.h <<\EOF
9903 #define HAVE_FABSF 1
9904 EOF
9905
9906       cat >> confdefs.h <<\EOF
9907 #define HAVE_FLOORF 1
9908 EOF
9909
9910       cat >> confdefs.h <<\EOF
9911 #define HAVE_FMODF 1
9912 EOF
9913
9914       cat >> confdefs.h <<\EOF
9915 #define HAVE_FREXPF 1
9916 EOF
9917
9918       cat >> confdefs.h <<\EOF
9919 #define HAVE_LDEXPF 1
9920 EOF
9921
9922       cat >> confdefs.h <<\EOF
9923 #define HAVE_LOG10F 1
9924 EOF
9925
9926       cat >> confdefs.h <<\EOF
9927 #define HAVE_LOGF 1
9928 EOF
9929
9930       cat >> confdefs.h <<\EOF
9931 #define HAVE_MODFF 1
9932 EOF
9933
9934       cat >> confdefs.h <<\EOF
9935 #define HAVE_POWF 1
9936 EOF
9937
9938       cat >> confdefs.h <<\EOF
9939 #define HAVE_SINF 1
9940 EOF
9941
9942       cat >> confdefs.h <<\EOF
9943 #define HAVE_SINHF 1
9944 EOF
9945
9946       cat >> confdefs.h <<\EOF
9947 #define HAVE_SQRTF 1
9948 EOF
9949
9950       cat >> confdefs.h <<\EOF
9951 #define HAVE_TANF 1
9952 EOF
9953
9954       cat >> confdefs.h <<\EOF
9955 #define HAVE_TANHF 1
9956 EOF
9957
9958       ;;
9959     *-freebsd*)
9960       # Must replicate generic section since we don't have strtof or strtold.
9961       cat >> confdefs.h <<\EOF
9962 #define HAVE_MMAP 1
9963 EOF
9964
9965       cat >> confdefs.h <<\EOF
9966 #define HAVE_ACOSF 1
9967 EOF
9968
9969       cat >> confdefs.h <<\EOF
9970 #define HAVE_ASINF 1
9971 EOF
9972
9973       cat >> confdefs.h <<\EOF
9974 #define HAVE_ATAN2F 1
9975 EOF
9976
9977       cat >> confdefs.h <<\EOF
9978 #define HAVE_ATANF 1
9979 EOF
9980
9981       cat >> confdefs.h <<\EOF
9982 #define HAVE_CEILF 1
9983 EOF
9984
9985       cat >> confdefs.h <<\EOF
9986 #define HAVE_COPYSIGN 1
9987 EOF
9988
9989       cat >> confdefs.h <<\EOF
9990 #define HAVE_COPYSIGNF 1
9991 EOF
9992
9993       cat >> confdefs.h <<\EOF
9994 #define HAVE_COSF 1
9995 EOF
9996
9997       cat >> confdefs.h <<\EOF
9998 #define HAVE_COSHF 1
9999 EOF
10000
10001       cat >> confdefs.h <<\EOF
10002 #define HAVE_EXPF 1
10003 EOF
10004
10005       cat >> confdefs.h <<\EOF
10006 #define HAVE_FABSF 1
10007 EOF
10008
10009       cat >> confdefs.h <<\EOF
10010 #define HAVE_FLOORF 1
10011 EOF
10012
10013       cat >> confdefs.h <<\EOF
10014 #define HAVE_FMODF 1
10015 EOF
10016
10017       cat >> confdefs.h <<\EOF
10018 #define HAVE_FREXPF 1
10019 EOF
10020
10021       cat >> confdefs.h <<\EOF
10022 #define HAVE_LDEXPF 1
10023 EOF
10024
10025       cat >> confdefs.h <<\EOF
10026 #define HAVE_LOG10F 1
10027 EOF
10028
10029       cat >> confdefs.h <<\EOF
10030 #define HAVE_LOGF 1
10031 EOF
10032
10033       cat >> confdefs.h <<\EOF
10034 #define HAVE_MODFF 1
10035 EOF
10036
10037       cat >> confdefs.h <<\EOF
10038 #define HAVE_POWF 1
10039 EOF
10040
10041       cat >> confdefs.h <<\EOF
10042 #define HAVE_SINF 1
10043 EOF
10044
10045       cat >> confdefs.h <<\EOF
10046 #define HAVE_SINHF 1
10047 EOF
10048
10049       cat >> confdefs.h <<\EOF
10050 #define HAVE_SQRTF 1
10051 EOF
10052
10053       cat >> confdefs.h <<\EOF
10054 #define HAVE_TANF 1
10055 EOF
10056
10057       cat >> confdefs.h <<\EOF
10058 #define HAVE_TANHF 1
10059 EOF
10060
10061       ;;
10062     *)
10063       # GLIBCPP_CHECK_STDLIB_SUPPORT
10064       cat >> confdefs.h <<\EOF
10065 #define HAVE_STRTOF 1
10066 EOF
10067         
10068       cat >> confdefs.h <<\EOF
10069 #define HAVE_STRTOLD 1
10070 EOF
10071         
10072       # AC_FUNC_MMAP
10073       cat >> confdefs.h <<\EOF
10074 #define HAVE_MMAP 1
10075 EOF
10076
10077
10078       cat >> confdefs.h <<\EOF
10079 #define HAVE_ACOSF 1
10080 EOF
10081
10082       cat >> confdefs.h <<\EOF
10083 #define HAVE_ASINF 1
10084 EOF
10085
10086       cat >> confdefs.h <<\EOF
10087 #define HAVE_ATAN2F 1
10088 EOF
10089
10090       cat >> confdefs.h <<\EOF
10091 #define HAVE_ATANF 1
10092 EOF
10093
10094       cat >> confdefs.h <<\EOF
10095 #define HAVE_CEILF 1
10096 EOF
10097
10098       cat >> confdefs.h <<\EOF
10099 #define HAVE_COPYSIGN 1
10100 EOF
10101
10102       cat >> confdefs.h <<\EOF
10103 #define HAVE_COPYSIGNF 1
10104 EOF
10105
10106       cat >> confdefs.h <<\EOF
10107 #define HAVE_COSF 1
10108 EOF
10109
10110       cat >> confdefs.h <<\EOF
10111 #define HAVE_COSHF 1
10112 EOF
10113
10114       cat >> confdefs.h <<\EOF
10115 #define HAVE_EXPF 1
10116 EOF
10117
10118       cat >> confdefs.h <<\EOF
10119 #define HAVE_FABSF 1
10120 EOF
10121
10122       cat >> confdefs.h <<\EOF
10123 #define HAVE_FLOORF 1
10124 EOF
10125
10126       cat >> confdefs.h <<\EOF
10127 #define HAVE_FMODF 1
10128 EOF
10129
10130       cat >> confdefs.h <<\EOF
10131 #define HAVE_FREXPF 1
10132 EOF
10133
10134       cat >> confdefs.h <<\EOF
10135 #define HAVE_LDEXPF 1
10136 EOF
10137
10138       cat >> confdefs.h <<\EOF
10139 #define HAVE_LOG10F 1
10140 EOF
10141
10142       cat >> confdefs.h <<\EOF
10143 #define HAVE_LOGF 1
10144 EOF
10145
10146       cat >> confdefs.h <<\EOF
10147 #define HAVE_MODFF 1
10148 EOF
10149
10150       cat >> confdefs.h <<\EOF
10151 #define HAVE_POWF 1
10152 EOF
10153
10154       cat >> confdefs.h <<\EOF
10155 #define HAVE_SINF 1
10156 EOF
10157
10158       cat >> confdefs.h <<\EOF
10159 #define HAVE_SINHF 1
10160 EOF
10161
10162       cat >> confdefs.h <<\EOF
10163 #define HAVE_SQRTF 1
10164 EOF
10165
10166       cat >> confdefs.h <<\EOF
10167 #define HAVE_TANF 1
10168 EOF
10169
10170       cat >> confdefs.h <<\EOF
10171 #define HAVE_TANHF 1
10172 EOF
10173
10174       ;;
10175   esac
10176
10177   # At some point, we should differentiate between architectures
10178   # like x86, which have long double versions, and alpha/powerpc/etc.,
10179   # which don't. For the time being, punt.
10180   if test x"long_double_math_on_this_cpu" = x"yes"; then
10181     cat >> confdefs.h <<\EOF
10182 #define HAVE_ACOSL 1
10183 EOF
10184
10185     cat >> confdefs.h <<\EOF
10186 #define HAVE_ASINL 1
10187 EOF
10188
10189     cat >> confdefs.h <<\EOF
10190 #define HAVE_ATAN2L 1
10191 EOF
10192
10193     cat >> confdefs.h <<\EOF
10194 #define HAVE_ATANL 1
10195 EOF
10196
10197     cat >> confdefs.h <<\EOF
10198 #define HAVE_CEILL 1
10199 EOF
10200
10201     cat >> confdefs.h <<\EOF
10202 #define HAVE_COPYSIGNL 1
10203 EOF
10204
10205     cat >> confdefs.h <<\EOF
10206 #define HAVE_COSL 1
10207 EOF
10208
10209     cat >> confdefs.h <<\EOF
10210 #define HAVE_COSHL 1
10211 EOF
10212
10213     cat >> confdefs.h <<\EOF
10214 #define HAVE_EXPL 1
10215 EOF
10216
10217     cat >> confdefs.h <<\EOF
10218 #define HAVE_FABSL 1
10219 EOF
10220
10221     cat >> confdefs.h <<\EOF
10222 #define HAVE_FLOORL 1
10223 EOF
10224
10225     cat >> confdefs.h <<\EOF
10226 #define HAVE_FMODL 1
10227 EOF
10228
10229     cat >> confdefs.h <<\EOF
10230 #define HAVE_FREXPL 1
10231 EOF
10232
10233     cat >> confdefs.h <<\EOF
10234 #define HAVE_LDEXPL 1
10235 EOF
10236
10237     cat >> confdefs.h <<\EOF
10238 #define HAVE_LOG10L 1
10239 EOF
10240
10241     cat >> confdefs.h <<\EOF
10242 #define HAVE_LOGL 1
10243 EOF
10244
10245     cat >> confdefs.h <<\EOF
10246 #define HAVE_MODFL 1
10247 EOF
10248
10249     cat >> confdefs.h <<\EOF
10250 #define HAVE_POWL 1
10251 EOF
10252
10253     cat >> confdefs.h <<\EOF
10254 #define HAVE_SINCOSL 1
10255 EOF
10256
10257     cat >> confdefs.h <<\EOF
10258 #define HAVE_SINL 1
10259 EOF
10260
10261     cat >> confdefs.h <<\EOF
10262 #define HAVE_SINHL 1
10263 EOF
10264
10265     cat >> confdefs.h <<\EOF
10266 #define HAVE_SQRTL 1
10267 EOF
10268
10269     cat >> confdefs.h <<\EOF
10270 #define HAVE_TANL 1
10271 EOF
10272
10273     cat >> confdefs.h <<\EOF
10274 #define HAVE_TANHL 1
10275 EOF
10276
10277   fi
10278
10279 else
10280
10281   # We are being configured natively. We can do more elaborate tests
10282   # that include AC_TRY_COMPILE now, as the linker is assumed to be
10283   # working.
10284   GLIBCPP_IS_CROSS_COMPILING=0
10285   CANADIAN=no
10286
10287   # Check for available headers.
10288   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10289   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
10290 do
10291 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10292 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10293 echo "configure:10294: checking for $ac_hdr" >&5
10294 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10295   echo $ac_n "(cached) $ac_c" 1>&6
10296 else
10297   cat > conftest.$ac_ext <<EOF
10298 #line 10299 "configure"
10299 #include "confdefs.h"
10300 #include <$ac_hdr>
10301 EOF
10302 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10303 { (eval echo configure:10304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10304 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10305 if test -z "$ac_err"; then
10306   rm -rf conftest*
10307   eval "ac_cv_header_$ac_safe=yes"
10308 else
10309   echo "$ac_err" >&5
10310   echo "configure: failed program was:" >&5
10311   cat conftest.$ac_ext >&5
10312   rm -rf conftest*
10313   eval "ac_cv_header_$ac_safe=no"
10314 fi
10315 rm -f conftest*
10316 fi
10317 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10318   echo "$ac_t""yes" 1>&6
10319     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10320   cat >> confdefs.h <<EOF
10321 #define $ac_tr_hdr 1
10322 EOF
10323  
10324 else
10325   echo "$ac_t""no" 1>&6
10326 fi
10327 done
10328
10329
10330   
10331   # All these tests are for C++; save the language and the compiler flags.
10332   # The CXXFLAGS thing is suspicious, but based on similar bits previously
10333   # found in GLIBCPP_CONFIGURE.
10334   
10335   ac_ext=C
10336 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10337 ac_cpp='$CXXCPP $CPPFLAGS'
10338 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10339 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10340 cross_compiling=$ac_cv_prog_cxx_cross
10341
10342   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10343   ac_save_CXXFLAGS="$CXXFLAGS"
10344
10345   # Check for maintainer-mode bits.
10346   if test x"$USE_MAINTAINER_MODE" = xno; then
10347     WERROR=''
10348   else
10349     WERROR='-Werror'
10350   fi
10351
10352   # Check for -ffunction-sections -fdata-sections
10353   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10354 echo "configure:10355: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10355   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10356   cat > conftest.$ac_ext <<EOF
10357 #line 10358 "configure"
10358 #include "confdefs.h"
10359
10360 int main() {
10361 int foo;
10362   
10363 ; return 0; }
10364 EOF
10365 if { (eval echo configure:10366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10366   rm -rf conftest*
10367   ac_fdsections=yes
10368 else
10369   echo "configure: failed program was:" >&5
10370   cat conftest.$ac_ext >&5
10371   rm -rf conftest*
10372   ac_fdsections=no
10373 fi
10374 rm -f conftest*
10375   if test "$ac_test_CXXFLAGS" = set; then
10376     CXXFLAGS="$ac_save_CXXFLAGS"
10377   else
10378     # this is the suspicious part
10379     CXXFLAGS=''
10380   fi
10381   if test x"$ac_fdsections" = x"yes" &&
10382      test x"$enable_debug" = x"no"; then
10383     SECTION_FLAGS='-ffunction-sections -fdata-sections'
10384   fi
10385   echo "$ac_t""$ac_fdsections" 1>&6
10386
10387   ac_ext=c
10388 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10389 ac_cpp='$CPP $CPPFLAGS'
10390 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10391 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10392 cross_compiling=$ac_cv_prog_cc_cross
10393
10394   
10395   
10396
10397   
10398   # If we're not using GNU ld, then there's no point in even trying these
10399   # tests.  Check for that first.  We should have already tested for gld
10400   # by now (in libtool), but require it now just to be safe...
10401   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10402   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10403   
10404
10405   # The name set by libtool depends on the version of libtool.  Shame on us
10406   # for depending on an impl detail, but c'est la vie.  Older versions used
10407   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10408   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10409   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
10410   # set (hence we're using an older libtool), then set it.
10411   if test x${with_gnu_ld+set} != xset; then
10412     if test x${ac_cv_prog_gnu_ld+set} != xset; then
10413       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
10414       with_gnu_ld=no
10415     else
10416       with_gnu_ld=$ac_cv_prog_gnu_ld
10417     fi
10418   fi
10419
10420   # Start by getting the version number.  I think the libtool test already
10421   # does some of this, but throws away the result.
10422   
10423   ldver=`$LD --version 2>/dev/null | head -1 | \
10424          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10425   
10426   glibcpp_gnu_ld_version=`echo $ldver | \
10427          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10428
10429   # Set --gc-sections.
10430   if test "$with_gnu_ld" = "notbroken"; then
10431     # GNU ld it is!  Joy and bunny rabbits!
10432
10433     # All these tests are for C++; save the language and the compiler flags.
10434     # Need to do this so that g++ won't try to link in libstdc++
10435     ac_test_CFLAGS="${CFLAGS+set}"
10436     ac_save_CFLAGS="$CFLAGS"
10437     CFLAGS='-x c++  -Wl,--gc-sections'
10438
10439     # Check for -Wl,--gc-sections
10440     # XXX This test is broken at the moment, as symbols required for
10441     # linking are now in libsupc++ (not built yet.....). In addition, 
10442     # this test has cored on solaris in the past. In addition,
10443     # --gc-sections doesn't really work at the moment (keeps on discarding
10444     # used sections, first .eh_frame and now some of the glibc sections for
10445     # iconv). Bzzzzt. Thanks for playing, maybe next time.
10446     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10447 echo "configure:10448: checking for ld that supports -Wl,--gc-sections" >&5
10448     if test "$cross_compiling" = yes; then
10449   ac_sectionLDflags=yes
10450 else
10451   cat > conftest.$ac_ext <<EOF
10452 #line 10453 "configure"
10453 #include "confdefs.h"
10454
10455      int main(void) 
10456      {
10457        try { throw 1; }
10458        catch (...) { };
10459        return 0;
10460      }
10461     
10462 EOF
10463 if { (eval echo configure:10464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10464 then
10465   ac_sectionLDflags=yes
10466 else
10467   echo "configure: failed program was:" >&5
10468   cat conftest.$ac_ext >&5
10469   rm -fr conftest*
10470   ac_sectionLDflags=no
10471 fi
10472 rm -fr conftest*
10473 fi
10474
10475     if test "$ac_test_CFLAGS" = set; then
10476       CFLAGS="$ac_save_CFLAGS"
10477     else
10478       # this is the suspicious part
10479       CFLAGS=''
10480     fi
10481     if test "$ac_sectionLDflags" = "yes"; then
10482       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10483     fi
10484     echo "$ac_t""$ac_sectionLDflags" 1>&6
10485   fi
10486
10487   # Set linker optimization flags.
10488   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
10489     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10490   fi
10491
10492   
10493   
10494
10495   
10496       
10497   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
10498 echo "configure:10499: checking for __builtin_abs declaration" >&5
10499   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
10500     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
10501   echo $ac_n "(cached) $ac_c" 1>&6
10502 else
10503   
10504       
10505       ac_ext=C
10506 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10507 ac_cpp='$CXXCPP $CPPFLAGS'
10508 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10509 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10510 cross_compiling=$ac_cv_prog_cxx_cross
10511
10512       cat > conftest.$ac_ext <<EOF
10513 #line 10514 "configure"
10514 #include "confdefs.h"
10515 #include <math.h>
10516 int main() {
10517  __builtin_abs(0);
10518 ; return 0; }
10519 EOF
10520 if { (eval echo configure:10521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10521   rm -rf conftest*
10522   glibcpp_cv_func___builtin_abs_use=yes
10523 else
10524   echo "configure: failed program was:" >&5
10525   cat conftest.$ac_ext >&5
10526   rm -rf conftest*
10527   glibcpp_cv_func___builtin_abs_use=no
10528 fi
10529 rm -f conftest*
10530       ac_ext=c
10531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10532 ac_cpp='$CPP $CPPFLAGS'
10533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10535 cross_compiling=$ac_cv_prog_cc_cross
10536
10537     
10538 fi
10539
10540   fi
10541   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
10542   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
10543     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
10544 echo "configure:10545: checking for __builtin_abs linkage" >&5
10545     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
10546       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
10547   echo $ac_n "(cached) $ac_c" 1>&6
10548 else
10549   
10550         cat > conftest.$ac_ext <<EOF
10551 #line 10552 "configure"
10552 #include "confdefs.h"
10553 #include <math.h>
10554 int main() {
10555  __builtin_abs(0);
10556 ; return 0; }
10557 EOF
10558 if { (eval echo configure:10559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10559   rm -rf conftest*
10560   glibcpp_cv_func___builtin_abs_link=yes
10561 else
10562   echo "configure: failed program was:" >&5
10563   cat conftest.$ac_ext >&5
10564   rm -rf conftest*
10565   glibcpp_cv_func___builtin_abs_link=no
10566 fi
10567 rm -f conftest*
10568       
10569 fi
10570
10571     fi
10572     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
10573     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
10574       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10575       cat >> confdefs.h <<EOF
10576 #define ${ac_tr_func} 1
10577 EOF
10578
10579     fi
10580   fi
10581
10582   
10583   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
10584 echo "configure:10585: checking for __builtin_fabsf declaration" >&5
10585   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
10586     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
10587   echo $ac_n "(cached) $ac_c" 1>&6
10588 else
10589   
10590       
10591       ac_ext=C
10592 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10593 ac_cpp='$CXXCPP $CPPFLAGS'
10594 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10595 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10596 cross_compiling=$ac_cv_prog_cxx_cross
10597
10598       cat > conftest.$ac_ext <<EOF
10599 #line 10600 "configure"
10600 #include "confdefs.h"
10601 #include <math.h>
10602 int main() {
10603  __builtin_fabsf(0);
10604 ; return 0; }
10605 EOF
10606 if { (eval echo configure:10607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10607   rm -rf conftest*
10608   glibcpp_cv_func___builtin_fabsf_use=yes
10609 else
10610   echo "configure: failed program was:" >&5
10611   cat conftest.$ac_ext >&5
10612   rm -rf conftest*
10613   glibcpp_cv_func___builtin_fabsf_use=no
10614 fi
10615 rm -f conftest*
10616       ac_ext=c
10617 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10618 ac_cpp='$CPP $CPPFLAGS'
10619 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10620 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10621 cross_compiling=$ac_cv_prog_cc_cross
10622
10623     
10624 fi
10625
10626   fi
10627   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
10628   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
10629     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
10630 echo "configure:10631: checking for __builtin_fabsf linkage" >&5
10631     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
10632       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
10633   echo $ac_n "(cached) $ac_c" 1>&6
10634 else
10635   
10636         cat > conftest.$ac_ext <<EOF
10637 #line 10638 "configure"
10638 #include "confdefs.h"
10639 #include <math.h>
10640 int main() {
10641  __builtin_fabsf(0);
10642 ; return 0; }
10643 EOF
10644 if { (eval echo configure:10645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10645   rm -rf conftest*
10646   glibcpp_cv_func___builtin_fabsf_link=yes
10647 else
10648   echo "configure: failed program was:" >&5
10649   cat conftest.$ac_ext >&5
10650   rm -rf conftest*
10651   glibcpp_cv_func___builtin_fabsf_link=no
10652 fi
10653 rm -f conftest*
10654       
10655 fi
10656
10657     fi
10658     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
10659     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
10660       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10661       cat >> confdefs.h <<EOF
10662 #define ${ac_tr_func} 1
10663 EOF
10664
10665     fi
10666   fi
10667
10668   
10669   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
10670 echo "configure:10671: checking for __builtin_fabs declaration" >&5
10671   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
10672     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
10673   echo $ac_n "(cached) $ac_c" 1>&6
10674 else
10675   
10676       
10677       ac_ext=C
10678 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10679 ac_cpp='$CXXCPP $CPPFLAGS'
10680 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10681 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10682 cross_compiling=$ac_cv_prog_cxx_cross
10683
10684       cat > conftest.$ac_ext <<EOF
10685 #line 10686 "configure"
10686 #include "confdefs.h"
10687 #include <math.h>
10688 int main() {
10689  __builtin_fabs(0);
10690 ; return 0; }
10691 EOF
10692 if { (eval echo configure:10693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10693   rm -rf conftest*
10694   glibcpp_cv_func___builtin_fabs_use=yes
10695 else
10696   echo "configure: failed program was:" >&5
10697   cat conftest.$ac_ext >&5
10698   rm -rf conftest*
10699   glibcpp_cv_func___builtin_fabs_use=no
10700 fi
10701 rm -f conftest*
10702       ac_ext=c
10703 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10704 ac_cpp='$CPP $CPPFLAGS'
10705 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10706 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10707 cross_compiling=$ac_cv_prog_cc_cross
10708
10709     
10710 fi
10711
10712   fi
10713   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
10714   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
10715     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
10716 echo "configure:10717: checking for __builtin_fabs linkage" >&5
10717     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
10718       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
10719   echo $ac_n "(cached) $ac_c" 1>&6
10720 else
10721   
10722         cat > conftest.$ac_ext <<EOF
10723 #line 10724 "configure"
10724 #include "confdefs.h"
10725 #include <math.h>
10726 int main() {
10727  __builtin_fabs(0);
10728 ; return 0; }
10729 EOF
10730 if { (eval echo configure:10731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10731   rm -rf conftest*
10732   glibcpp_cv_func___builtin_fabs_link=yes
10733 else
10734   echo "configure: failed program was:" >&5
10735   cat conftest.$ac_ext >&5
10736   rm -rf conftest*
10737   glibcpp_cv_func___builtin_fabs_link=no
10738 fi
10739 rm -f conftest*
10740       
10741 fi
10742
10743     fi
10744     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
10745     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
10746       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10747       cat >> confdefs.h <<EOF
10748 #define ${ac_tr_func} 1
10749 EOF
10750
10751     fi
10752   fi
10753
10754   
10755   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
10756 echo "configure:10757: checking for __builtin_fabsl declaration" >&5
10757   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
10758     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
10759   echo $ac_n "(cached) $ac_c" 1>&6
10760 else
10761   
10762       
10763       ac_ext=C
10764 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10765 ac_cpp='$CXXCPP $CPPFLAGS'
10766 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10767 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10768 cross_compiling=$ac_cv_prog_cxx_cross
10769
10770       cat > conftest.$ac_ext <<EOF
10771 #line 10772 "configure"
10772 #include "confdefs.h"
10773 #include <math.h>
10774 int main() {
10775  __builtin_fabsl(0);
10776 ; return 0; }
10777 EOF
10778 if { (eval echo configure:10779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10779   rm -rf conftest*
10780   glibcpp_cv_func___builtin_fabsl_use=yes
10781 else
10782   echo "configure: failed program was:" >&5
10783   cat conftest.$ac_ext >&5
10784   rm -rf conftest*
10785   glibcpp_cv_func___builtin_fabsl_use=no
10786 fi
10787 rm -f conftest*
10788       ac_ext=c
10789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10790 ac_cpp='$CPP $CPPFLAGS'
10791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10793 cross_compiling=$ac_cv_prog_cc_cross
10794
10795     
10796 fi
10797
10798   fi
10799   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
10800   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
10801     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
10802 echo "configure:10803: checking for __builtin_fabsl linkage" >&5
10803     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
10804       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
10805   echo $ac_n "(cached) $ac_c" 1>&6
10806 else
10807   
10808         cat > conftest.$ac_ext <<EOF
10809 #line 10810 "configure"
10810 #include "confdefs.h"
10811 #include <math.h>
10812 int main() {
10813  __builtin_fabsl(0);
10814 ; return 0; }
10815 EOF
10816 if { (eval echo configure:10817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10817   rm -rf conftest*
10818   glibcpp_cv_func___builtin_fabsl_link=yes
10819 else
10820   echo "configure: failed program was:" >&5
10821   cat conftest.$ac_ext >&5
10822   rm -rf conftest*
10823   glibcpp_cv_func___builtin_fabsl_link=no
10824 fi
10825 rm -f conftest*
10826       
10827 fi
10828
10829     fi
10830     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
10831     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
10832       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10833       cat >> confdefs.h <<EOF
10834 #define ${ac_tr_func} 1
10835 EOF
10836
10837     fi
10838   fi
10839
10840   
10841   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
10842 echo "configure:10843: checking for __builtin_labs declaration" >&5
10843   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
10844     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
10845   echo $ac_n "(cached) $ac_c" 1>&6
10846 else
10847   
10848       
10849       ac_ext=C
10850 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10851 ac_cpp='$CXXCPP $CPPFLAGS'
10852 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10853 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10854 cross_compiling=$ac_cv_prog_cxx_cross
10855
10856       cat > conftest.$ac_ext <<EOF
10857 #line 10858 "configure"
10858 #include "confdefs.h"
10859 #include <math.h>
10860 int main() {
10861  __builtin_labs(0);
10862 ; return 0; }
10863 EOF
10864 if { (eval echo configure:10865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10865   rm -rf conftest*
10866   glibcpp_cv_func___builtin_labs_use=yes
10867 else
10868   echo "configure: failed program was:" >&5
10869   cat conftest.$ac_ext >&5
10870   rm -rf conftest*
10871   glibcpp_cv_func___builtin_labs_use=no
10872 fi
10873 rm -f conftest*
10874       ac_ext=c
10875 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10876 ac_cpp='$CPP $CPPFLAGS'
10877 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10878 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10879 cross_compiling=$ac_cv_prog_cc_cross
10880
10881     
10882 fi
10883
10884   fi
10885   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
10886   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
10887     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
10888 echo "configure:10889: checking for __builtin_labs linkage" >&5
10889     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
10890       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
10891   echo $ac_n "(cached) $ac_c" 1>&6
10892 else
10893   
10894         cat > conftest.$ac_ext <<EOF
10895 #line 10896 "configure"
10896 #include "confdefs.h"
10897 #include <math.h>
10898 int main() {
10899  __builtin_labs(0);
10900 ; return 0; }
10901 EOF
10902 if { (eval echo configure:10903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10903   rm -rf conftest*
10904   glibcpp_cv_func___builtin_labs_link=yes
10905 else
10906   echo "configure: failed program was:" >&5
10907   cat conftest.$ac_ext >&5
10908   rm -rf conftest*
10909   glibcpp_cv_func___builtin_labs_link=no
10910 fi
10911 rm -f conftest*
10912       
10913 fi
10914
10915     fi
10916     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
10917     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
10918       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10919       cat >> confdefs.h <<EOF
10920 #define ${ac_tr_func} 1
10921 EOF
10922
10923     fi
10924   fi
10925
10926
10927   
10928   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
10929 echo "configure:10930: checking for __builtin_sqrtf declaration" >&5
10930   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
10931     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
10932   echo $ac_n "(cached) $ac_c" 1>&6
10933 else
10934   
10935       
10936       ac_ext=C
10937 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10938 ac_cpp='$CXXCPP $CPPFLAGS'
10939 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10940 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10941 cross_compiling=$ac_cv_prog_cxx_cross
10942
10943       cat > conftest.$ac_ext <<EOF
10944 #line 10945 "configure"
10945 #include "confdefs.h"
10946 #include <math.h>
10947 int main() {
10948  __builtin_sqrtf(0);
10949 ; return 0; }
10950 EOF
10951 if { (eval echo configure:10952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10952   rm -rf conftest*
10953   glibcpp_cv_func___builtin_sqrtf_use=yes
10954 else
10955   echo "configure: failed program was:" >&5
10956   cat conftest.$ac_ext >&5
10957   rm -rf conftest*
10958   glibcpp_cv_func___builtin_sqrtf_use=no
10959 fi
10960 rm -f conftest*
10961       ac_ext=c
10962 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10963 ac_cpp='$CPP $CPPFLAGS'
10964 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10965 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10966 cross_compiling=$ac_cv_prog_cc_cross
10967
10968     
10969 fi
10970
10971   fi
10972   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
10973   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
10974     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
10975 echo "configure:10976: checking for __builtin_sqrtf linkage" >&5
10976     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
10977       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
10978   echo $ac_n "(cached) $ac_c" 1>&6
10979 else
10980   
10981         cat > conftest.$ac_ext <<EOF
10982 #line 10983 "configure"
10983 #include "confdefs.h"
10984 #include <math.h>
10985 int main() {
10986  __builtin_sqrtf(0);
10987 ; return 0; }
10988 EOF
10989 if { (eval echo configure:10990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10990   rm -rf conftest*
10991   glibcpp_cv_func___builtin_sqrtf_link=yes
10992 else
10993   echo "configure: failed program was:" >&5
10994   cat conftest.$ac_ext >&5
10995   rm -rf conftest*
10996   glibcpp_cv_func___builtin_sqrtf_link=no
10997 fi
10998 rm -f conftest*
10999       
11000 fi
11001
11002     fi
11003     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
11004     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
11005       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11006       cat >> confdefs.h <<EOF
11007 #define ${ac_tr_func} 1
11008 EOF
11009
11010     fi
11011   fi
11012
11013   
11014   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
11015 echo "configure:11016: checking for __builtin_sqrt declaration" >&5
11016   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
11017     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
11018   echo $ac_n "(cached) $ac_c" 1>&6
11019 else
11020   
11021       
11022       ac_ext=C
11023 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11024 ac_cpp='$CXXCPP $CPPFLAGS'
11025 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11026 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11027 cross_compiling=$ac_cv_prog_cxx_cross
11028
11029       cat > conftest.$ac_ext <<EOF
11030 #line 11031 "configure"
11031 #include "confdefs.h"
11032 #include <math.h>
11033 int main() {
11034  __builtin_sqrt(0);
11035 ; return 0; }
11036 EOF
11037 if { (eval echo configure:11038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11038   rm -rf conftest*
11039   glibcpp_cv_func___builtin_sqrt_use=yes
11040 else
11041   echo "configure: failed program was:" >&5
11042   cat conftest.$ac_ext >&5
11043   rm -rf conftest*
11044   glibcpp_cv_func___builtin_sqrt_use=no
11045 fi
11046 rm -f conftest*
11047       ac_ext=c
11048 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11049 ac_cpp='$CPP $CPPFLAGS'
11050 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11051 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11052 cross_compiling=$ac_cv_prog_cc_cross
11053
11054     
11055 fi
11056
11057   fi
11058   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
11059   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
11060     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
11061 echo "configure:11062: checking for __builtin_sqrt linkage" >&5
11062     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
11063       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
11064   echo $ac_n "(cached) $ac_c" 1>&6
11065 else
11066   
11067         cat > conftest.$ac_ext <<EOF
11068 #line 11069 "configure"
11069 #include "confdefs.h"
11070 #include <math.h>
11071 int main() {
11072  __builtin_sqrt(0);
11073 ; return 0; }
11074 EOF
11075 if { (eval echo configure:11076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11076   rm -rf conftest*
11077   glibcpp_cv_func___builtin_sqrt_link=yes
11078 else
11079   echo "configure: failed program was:" >&5
11080   cat conftest.$ac_ext >&5
11081   rm -rf conftest*
11082   glibcpp_cv_func___builtin_sqrt_link=no
11083 fi
11084 rm -f conftest*
11085       
11086 fi
11087
11088     fi
11089     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
11090     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
11091       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11092       cat >> confdefs.h <<EOF
11093 #define ${ac_tr_func} 1
11094 EOF
11095
11096     fi
11097   fi
11098
11099   
11100   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
11101 echo "configure:11102: checking for __builtin_sqrtl declaration" >&5
11102   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
11103     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
11104   echo $ac_n "(cached) $ac_c" 1>&6
11105 else
11106   
11107       
11108       ac_ext=C
11109 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11110 ac_cpp='$CXXCPP $CPPFLAGS'
11111 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11112 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11113 cross_compiling=$ac_cv_prog_cxx_cross
11114
11115       cat > conftest.$ac_ext <<EOF
11116 #line 11117 "configure"
11117 #include "confdefs.h"
11118 #include <math.h>
11119 int main() {
11120  __builtin_sqrtl(0);
11121 ; return 0; }
11122 EOF
11123 if { (eval echo configure:11124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11124   rm -rf conftest*
11125   glibcpp_cv_func___builtin_sqrtl_use=yes
11126 else
11127   echo "configure: failed program was:" >&5
11128   cat conftest.$ac_ext >&5
11129   rm -rf conftest*
11130   glibcpp_cv_func___builtin_sqrtl_use=no
11131 fi
11132 rm -f conftest*
11133       ac_ext=c
11134 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11135 ac_cpp='$CPP $CPPFLAGS'
11136 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11137 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11138 cross_compiling=$ac_cv_prog_cc_cross
11139
11140     
11141 fi
11142
11143   fi
11144   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
11145   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
11146     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
11147 echo "configure:11148: checking for __builtin_sqrtl linkage" >&5
11148     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
11149       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
11150   echo $ac_n "(cached) $ac_c" 1>&6
11151 else
11152   
11153         cat > conftest.$ac_ext <<EOF
11154 #line 11155 "configure"
11155 #include "confdefs.h"
11156 #include <math.h>
11157 int main() {
11158  __builtin_sqrtl(0);
11159 ; return 0; }
11160 EOF
11161 if { (eval echo configure:11162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11162   rm -rf conftest*
11163   glibcpp_cv_func___builtin_sqrtl_link=yes
11164 else
11165   echo "configure: failed program was:" >&5
11166   cat conftest.$ac_ext >&5
11167   rm -rf conftest*
11168   glibcpp_cv_func___builtin_sqrtl_link=no
11169 fi
11170 rm -f conftest*
11171       
11172 fi
11173
11174     fi
11175     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
11176     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
11177       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11178       cat >> confdefs.h <<EOF
11179 #define ${ac_tr_func} 1
11180 EOF
11181
11182     fi
11183   fi
11184
11185
11186   
11187   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
11188 echo "configure:11189: checking for __builtin_sinf declaration" >&5
11189   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
11190     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
11191   echo $ac_n "(cached) $ac_c" 1>&6
11192 else
11193   
11194       
11195       ac_ext=C
11196 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11197 ac_cpp='$CXXCPP $CPPFLAGS'
11198 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11199 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11200 cross_compiling=$ac_cv_prog_cxx_cross
11201
11202       cat > conftest.$ac_ext <<EOF
11203 #line 11204 "configure"
11204 #include "confdefs.h"
11205 #include <math.h>
11206 int main() {
11207  __builtin_sinf(0);
11208 ; return 0; }
11209 EOF
11210 if { (eval echo configure:11211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11211   rm -rf conftest*
11212   glibcpp_cv_func___builtin_sinf_use=yes
11213 else
11214   echo "configure: failed program was:" >&5
11215   cat conftest.$ac_ext >&5
11216   rm -rf conftest*
11217   glibcpp_cv_func___builtin_sinf_use=no
11218 fi
11219 rm -f conftest*
11220       ac_ext=c
11221 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11222 ac_cpp='$CPP $CPPFLAGS'
11223 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11224 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11225 cross_compiling=$ac_cv_prog_cc_cross
11226
11227     
11228 fi
11229
11230   fi
11231   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
11232   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
11233     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
11234 echo "configure:11235: checking for __builtin_sinf linkage" >&5
11235     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
11236       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
11237   echo $ac_n "(cached) $ac_c" 1>&6
11238 else
11239   
11240         cat > conftest.$ac_ext <<EOF
11241 #line 11242 "configure"
11242 #include "confdefs.h"
11243 #include <math.h>
11244 int main() {
11245  __builtin_sinf(0);
11246 ; return 0; }
11247 EOF
11248 if { (eval echo configure:11249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11249   rm -rf conftest*
11250   glibcpp_cv_func___builtin_sinf_link=yes
11251 else
11252   echo "configure: failed program was:" >&5
11253   cat conftest.$ac_ext >&5
11254   rm -rf conftest*
11255   glibcpp_cv_func___builtin_sinf_link=no
11256 fi
11257 rm -f conftest*
11258       
11259 fi
11260
11261     fi
11262     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
11263     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
11264       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11265       cat >> confdefs.h <<EOF
11266 #define ${ac_tr_func} 1
11267 EOF
11268
11269     fi
11270   fi
11271
11272   
11273   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
11274 echo "configure:11275: checking for __builtin_sin declaration" >&5
11275   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
11276     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
11277   echo $ac_n "(cached) $ac_c" 1>&6
11278 else
11279   
11280       
11281       ac_ext=C
11282 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11283 ac_cpp='$CXXCPP $CPPFLAGS'
11284 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11285 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11286 cross_compiling=$ac_cv_prog_cxx_cross
11287
11288       cat > conftest.$ac_ext <<EOF
11289 #line 11290 "configure"
11290 #include "confdefs.h"
11291 #include <math.h>
11292 int main() {
11293  __builtin_sin(0);
11294 ; return 0; }
11295 EOF
11296 if { (eval echo configure:11297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11297   rm -rf conftest*
11298   glibcpp_cv_func___builtin_sin_use=yes
11299 else
11300   echo "configure: failed program was:" >&5
11301   cat conftest.$ac_ext >&5
11302   rm -rf conftest*
11303   glibcpp_cv_func___builtin_sin_use=no
11304 fi
11305 rm -f conftest*
11306       ac_ext=c
11307 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11308 ac_cpp='$CPP $CPPFLAGS'
11309 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11310 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11311 cross_compiling=$ac_cv_prog_cc_cross
11312
11313     
11314 fi
11315
11316   fi
11317   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
11318   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
11319     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
11320 echo "configure:11321: checking for __builtin_sin linkage" >&5
11321     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
11322       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
11323   echo $ac_n "(cached) $ac_c" 1>&6
11324 else
11325   
11326         cat > conftest.$ac_ext <<EOF
11327 #line 11328 "configure"
11328 #include "confdefs.h"
11329 #include <math.h>
11330 int main() {
11331  __builtin_sin(0);
11332 ; return 0; }
11333 EOF
11334 if { (eval echo configure:11335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11335   rm -rf conftest*
11336   glibcpp_cv_func___builtin_sin_link=yes
11337 else
11338   echo "configure: failed program was:" >&5
11339   cat conftest.$ac_ext >&5
11340   rm -rf conftest*
11341   glibcpp_cv_func___builtin_sin_link=no
11342 fi
11343 rm -f conftest*
11344       
11345 fi
11346
11347     fi
11348     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
11349     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
11350       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11351       cat >> confdefs.h <<EOF
11352 #define ${ac_tr_func} 1
11353 EOF
11354
11355     fi
11356   fi
11357
11358   
11359   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
11360 echo "configure:11361: checking for __builtin_sinl declaration" >&5
11361   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
11362     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
11363   echo $ac_n "(cached) $ac_c" 1>&6
11364 else
11365   
11366       
11367       ac_ext=C
11368 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11369 ac_cpp='$CXXCPP $CPPFLAGS'
11370 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11371 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11372 cross_compiling=$ac_cv_prog_cxx_cross
11373
11374       cat > conftest.$ac_ext <<EOF
11375 #line 11376 "configure"
11376 #include "confdefs.h"
11377 #include <math.h>
11378 int main() {
11379  __builtin_sinl(0);
11380 ; return 0; }
11381 EOF
11382 if { (eval echo configure:11383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11383   rm -rf conftest*
11384   glibcpp_cv_func___builtin_sinl_use=yes
11385 else
11386   echo "configure: failed program was:" >&5
11387   cat conftest.$ac_ext >&5
11388   rm -rf conftest*
11389   glibcpp_cv_func___builtin_sinl_use=no
11390 fi
11391 rm -f conftest*
11392       ac_ext=c
11393 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11394 ac_cpp='$CPP $CPPFLAGS'
11395 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11396 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11397 cross_compiling=$ac_cv_prog_cc_cross
11398
11399     
11400 fi
11401
11402   fi
11403   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
11404   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
11405     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
11406 echo "configure:11407: checking for __builtin_sinl linkage" >&5
11407     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
11408       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
11409   echo $ac_n "(cached) $ac_c" 1>&6
11410 else
11411   
11412         cat > conftest.$ac_ext <<EOF
11413 #line 11414 "configure"
11414 #include "confdefs.h"
11415 #include <math.h>
11416 int main() {
11417  __builtin_sinl(0);
11418 ; return 0; }
11419 EOF
11420 if { (eval echo configure:11421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11421   rm -rf conftest*
11422   glibcpp_cv_func___builtin_sinl_link=yes
11423 else
11424   echo "configure: failed program was:" >&5
11425   cat conftest.$ac_ext >&5
11426   rm -rf conftest*
11427   glibcpp_cv_func___builtin_sinl_link=no
11428 fi
11429 rm -f conftest*
11430       
11431 fi
11432
11433     fi
11434     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
11435     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
11436       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11437       cat >> confdefs.h <<EOF
11438 #define ${ac_tr_func} 1
11439 EOF
11440
11441     fi
11442   fi
11443
11444
11445   
11446   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
11447 echo "configure:11448: checking for __builtin_cosf declaration" >&5
11448   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
11449     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
11450   echo $ac_n "(cached) $ac_c" 1>&6
11451 else
11452   
11453       
11454       ac_ext=C
11455 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11456 ac_cpp='$CXXCPP $CPPFLAGS'
11457 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11458 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11459 cross_compiling=$ac_cv_prog_cxx_cross
11460
11461       cat > conftest.$ac_ext <<EOF
11462 #line 11463 "configure"
11463 #include "confdefs.h"
11464 #include <math.h>
11465 int main() {
11466  __builtin_cosf(0);
11467 ; return 0; }
11468 EOF
11469 if { (eval echo configure:11470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11470   rm -rf conftest*
11471   glibcpp_cv_func___builtin_cosf_use=yes
11472 else
11473   echo "configure: failed program was:" >&5
11474   cat conftest.$ac_ext >&5
11475   rm -rf conftest*
11476   glibcpp_cv_func___builtin_cosf_use=no
11477 fi
11478 rm -f conftest*
11479       ac_ext=c
11480 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11481 ac_cpp='$CPP $CPPFLAGS'
11482 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11483 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11484 cross_compiling=$ac_cv_prog_cc_cross
11485
11486     
11487 fi
11488
11489   fi
11490   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
11491   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
11492     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
11493 echo "configure:11494: checking for __builtin_cosf linkage" >&5
11494     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
11495       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
11496   echo $ac_n "(cached) $ac_c" 1>&6
11497 else
11498   
11499         cat > conftest.$ac_ext <<EOF
11500 #line 11501 "configure"
11501 #include "confdefs.h"
11502 #include <math.h>
11503 int main() {
11504  __builtin_cosf(0);
11505 ; return 0; }
11506 EOF
11507 if { (eval echo configure:11508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11508   rm -rf conftest*
11509   glibcpp_cv_func___builtin_cosf_link=yes
11510 else
11511   echo "configure: failed program was:" >&5
11512   cat conftest.$ac_ext >&5
11513   rm -rf conftest*
11514   glibcpp_cv_func___builtin_cosf_link=no
11515 fi
11516 rm -f conftest*
11517       
11518 fi
11519
11520     fi
11521     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
11522     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
11523       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11524       cat >> confdefs.h <<EOF
11525 #define ${ac_tr_func} 1
11526 EOF
11527
11528     fi
11529   fi
11530
11531   
11532   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
11533 echo "configure:11534: checking for __builtin_cos declaration" >&5
11534   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
11535     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
11536   echo $ac_n "(cached) $ac_c" 1>&6
11537 else
11538   
11539       
11540       ac_ext=C
11541 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11542 ac_cpp='$CXXCPP $CPPFLAGS'
11543 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11544 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11545 cross_compiling=$ac_cv_prog_cxx_cross
11546
11547       cat > conftest.$ac_ext <<EOF
11548 #line 11549 "configure"
11549 #include "confdefs.h"
11550 #include <math.h>
11551 int main() {
11552  __builtin_cos(0);
11553 ; return 0; }
11554 EOF
11555 if { (eval echo configure:11556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11556   rm -rf conftest*
11557   glibcpp_cv_func___builtin_cos_use=yes
11558 else
11559   echo "configure: failed program was:" >&5
11560   cat conftest.$ac_ext >&5
11561   rm -rf conftest*
11562   glibcpp_cv_func___builtin_cos_use=no
11563 fi
11564 rm -f conftest*
11565       ac_ext=c
11566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11567 ac_cpp='$CPP $CPPFLAGS'
11568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11570 cross_compiling=$ac_cv_prog_cc_cross
11571
11572     
11573 fi
11574
11575   fi
11576   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
11577   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
11578     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
11579 echo "configure:11580: checking for __builtin_cos linkage" >&5
11580     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
11581       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
11582   echo $ac_n "(cached) $ac_c" 1>&6
11583 else
11584   
11585         cat > conftest.$ac_ext <<EOF
11586 #line 11587 "configure"
11587 #include "confdefs.h"
11588 #include <math.h>
11589 int main() {
11590  __builtin_cos(0);
11591 ; return 0; }
11592 EOF
11593 if { (eval echo configure:11594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11594   rm -rf conftest*
11595   glibcpp_cv_func___builtin_cos_link=yes
11596 else
11597   echo "configure: failed program was:" >&5
11598   cat conftest.$ac_ext >&5
11599   rm -rf conftest*
11600   glibcpp_cv_func___builtin_cos_link=no
11601 fi
11602 rm -f conftest*
11603       
11604 fi
11605
11606     fi
11607     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
11608     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
11609       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11610       cat >> confdefs.h <<EOF
11611 #define ${ac_tr_func} 1
11612 EOF
11613
11614     fi
11615   fi
11616
11617   
11618   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
11619 echo "configure:11620: checking for __builtin_cosl declaration" >&5
11620   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
11621     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
11622   echo $ac_n "(cached) $ac_c" 1>&6
11623 else
11624   
11625       
11626       ac_ext=C
11627 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11628 ac_cpp='$CXXCPP $CPPFLAGS'
11629 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11630 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11631 cross_compiling=$ac_cv_prog_cxx_cross
11632
11633       cat > conftest.$ac_ext <<EOF
11634 #line 11635 "configure"
11635 #include "confdefs.h"
11636 #include <math.h>
11637 int main() {
11638  __builtin_cosl(0);
11639 ; return 0; }
11640 EOF
11641 if { (eval echo configure:11642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11642   rm -rf conftest*
11643   glibcpp_cv_func___builtin_cosl_use=yes
11644 else
11645   echo "configure: failed program was:" >&5
11646   cat conftest.$ac_ext >&5
11647   rm -rf conftest*
11648   glibcpp_cv_func___builtin_cosl_use=no
11649 fi
11650 rm -f conftest*
11651       ac_ext=c
11652 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11653 ac_cpp='$CPP $CPPFLAGS'
11654 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11655 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11656 cross_compiling=$ac_cv_prog_cc_cross
11657
11658     
11659 fi
11660
11661   fi
11662   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
11663   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
11664     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
11665 echo "configure:11666: checking for __builtin_cosl linkage" >&5
11666     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
11667       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
11668   echo $ac_n "(cached) $ac_c" 1>&6
11669 else
11670   
11671         cat > conftest.$ac_ext <<EOF
11672 #line 11673 "configure"
11673 #include "confdefs.h"
11674 #include <math.h>
11675 int main() {
11676  __builtin_cosl(0);
11677 ; return 0; }
11678 EOF
11679 if { (eval echo configure:11680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11680   rm -rf conftest*
11681   glibcpp_cv_func___builtin_cosl_link=yes
11682 else
11683   echo "configure: failed program was:" >&5
11684   cat conftest.$ac_ext >&5
11685   rm -rf conftest*
11686   glibcpp_cv_func___builtin_cosl_link=no
11687 fi
11688 rm -f conftest*
11689       
11690 fi
11691
11692     fi
11693     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
11694     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
11695       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11696       cat >> confdefs.h <<EOF
11697 #define ${ac_tr_func} 1
11698 EOF
11699
11700     fi
11701   fi
11702
11703
11704               dummyvar=no
11705   if test x$dummyvar = x"yes"; then
11706     cat >> confdefs.h <<\EOF
11707 #define HAVE___BUILTIN_ABS 1
11708 EOF
11709
11710     cat >> confdefs.h <<\EOF
11711 #define HAVE___BUILTIN_LABS 1
11712 EOF
11713
11714     cat >> confdefs.h <<\EOF
11715 #define HAVE___BUILTIN_COS 1
11716 EOF
11717
11718     cat >> confdefs.h <<\EOF
11719 #define HAVE___BUILTIN_COSF 1
11720 EOF
11721
11722     cat >> confdefs.h <<\EOF
11723 #define HAVE___BUILTIN_COSL 1
11724 EOF
11725
11726     cat >> confdefs.h <<\EOF
11727 #define HAVE___BUILTIN_FABS 1
11728 EOF
11729
11730     cat >> confdefs.h <<\EOF
11731 #define HAVE___BUILTIN_FABSF 1
11732 EOF
11733
11734     cat >> confdefs.h <<\EOF
11735 #define HAVE___BUILTIN_FABSL 1
11736 EOF
11737
11738     cat >> confdefs.h <<\EOF
11739 #define HAVE___BUILTIN_SIN 1
11740 EOF
11741
11742     cat >> confdefs.h <<\EOF
11743 #define HAVE___BUILTIN_SINF 1
11744 EOF
11745
11746     cat >> confdefs.h <<\EOF
11747 #define HAVE___BUILTIN_SINL 1
11748 EOF
11749
11750     cat >> confdefs.h <<\EOF
11751 #define HAVE___BUILTIN_SQRT 1
11752 EOF
11753
11754     cat >> confdefs.h <<\EOF
11755 #define HAVE___BUILTIN_SQRTF 1
11756 EOF
11757
11758     cat >> confdefs.h <<\EOF
11759 #define HAVE___BUILTIN_SQRTL 1
11760 EOF
11761
11762   fi
11763
11764   
11765   ac_test_CXXFLAGS="${CXXFLAGS+set}"
11766   ac_save_CXXFLAGS="$CXXFLAGS"
11767   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
11768
11769     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
11770 echo "configure:11771: checking for sin in -lm" >&5
11771 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
11772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11773   echo $ac_n "(cached) $ac_c" 1>&6
11774 else
11775   ac_save_LIBS="$LIBS"
11776 LIBS="-lm  $LIBS"
11777 cat > conftest.$ac_ext <<EOF
11778 #line 11779 "configure"
11779 #include "confdefs.h"
11780 /* Override any gcc2 internal prototype to avoid an error.  */
11781 /* We use char because int might match the return type of a gcc2
11782     builtin and then its argument prototype would still apply.  */
11783 char sin();
11784
11785 int main() {
11786 sin()
11787 ; return 0; }
11788 EOF
11789 if { (eval echo configure:11790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11790   rm -rf conftest*
11791   eval "ac_cv_lib_$ac_lib_var=yes"
11792 else
11793   echo "configure: failed program was:" >&5
11794   cat conftest.$ac_ext >&5
11795   rm -rf conftest*
11796   eval "ac_cv_lib_$ac_lib_var=no"
11797 fi
11798 rm -f conftest*
11799 LIBS="$ac_save_LIBS"
11800
11801 fi
11802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11803   echo "$ac_t""yes" 1>&6
11804   libm="-lm"
11805 else
11806   echo "$ac_t""no" 1>&6
11807 fi
11808
11809   ac_save_LIBS="$LIBS"
11810   LIBS="$LIBS $libm"
11811
11812     
11813   
11814   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
11815 echo "configure:11816: checking for isinf declaration" >&5
11816   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
11817     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
11818   echo $ac_n "(cached) $ac_c" 1>&6
11819 else
11820   
11821       
11822       ac_ext=C
11823 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11824 ac_cpp='$CXXCPP $CPPFLAGS'
11825 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11826 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11827 cross_compiling=$ac_cv_prog_cxx_cross
11828
11829       cat > conftest.$ac_ext <<EOF
11830 #line 11831 "configure"
11831 #include "confdefs.h"
11832 #include <math.h>
11833                       #ifdef HAVE_IEEEFP_H
11834                       #include <ieeefp.h>
11835                       #endif
11836                      
11837 int main() {
11838  isinf(0);
11839 ; return 0; }
11840 EOF
11841 if { (eval echo configure:11842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11842   rm -rf conftest*
11843   glibcpp_cv_func_isinf_use=yes
11844 else
11845   echo "configure: failed program was:" >&5
11846   cat conftest.$ac_ext >&5
11847   rm -rf conftest*
11848   glibcpp_cv_func_isinf_use=no
11849 fi
11850 rm -f conftest*
11851       ac_ext=c
11852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11853 ac_cpp='$CPP $CPPFLAGS'
11854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11855 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11856 cross_compiling=$ac_cv_prog_cc_cross
11857
11858     
11859 fi
11860
11861   fi
11862   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
11863
11864   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
11865     for ac_func in isinf
11866 do
11867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11868 echo "configure:11869: checking for $ac_func" >&5
11869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11870   echo $ac_n "(cached) $ac_c" 1>&6
11871 else
11872   cat > conftest.$ac_ext <<EOF
11873 #line 11874 "configure"
11874 #include "confdefs.h"
11875 /* System header to define __stub macros and hopefully few prototypes,
11876     which can conflict with char $ac_func(); below.  */
11877 #include <assert.h>
11878 /* Override any gcc2 internal prototype to avoid an error.  */
11879 /* We use char because int might match the return type of a gcc2
11880     builtin and then its argument prototype would still apply.  */
11881 char $ac_func();
11882
11883 int main() {
11884
11885 /* The GNU C library defines this for functions which it implements
11886     to always fail with ENOSYS.  Some functions are actually named
11887     something starting with __ and the normal name is an alias.  */
11888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11889 choke me
11890 #else
11891 $ac_func();
11892 #endif
11893
11894 ; return 0; }
11895 EOF
11896 if { (eval echo configure:11897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11897   rm -rf conftest*
11898   eval "ac_cv_func_$ac_func=yes"
11899 else
11900   echo "configure: failed program was:" >&5
11901   cat conftest.$ac_ext >&5
11902   rm -rf conftest*
11903   eval "ac_cv_func_$ac_func=no"
11904 fi
11905 rm -f conftest*
11906 fi
11907
11908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11909   echo "$ac_t""yes" 1>&6
11910     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11911   cat >> confdefs.h <<EOF
11912 #define $ac_tr_func 1
11913 EOF
11914  
11915 else
11916   echo "$ac_t""no" 1>&6
11917 fi
11918 done
11919     
11920   else
11921     
11922   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
11923 echo "configure:11924: checking for _isinf declaration" >&5
11924   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
11925     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
11926   echo $ac_n "(cached) $ac_c" 1>&6
11927 else
11928   
11929       
11930       ac_ext=C
11931 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11932 ac_cpp='$CXXCPP $CPPFLAGS'
11933 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11934 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11935 cross_compiling=$ac_cv_prog_cxx_cross
11936
11937       cat > conftest.$ac_ext <<EOF
11938 #line 11939 "configure"
11939 #include "confdefs.h"
11940 #include <math.h>
11941                       #ifdef HAVE_IEEEFP_H
11942                       #include <ieeefp.h>
11943                       #endif
11944                      
11945 int main() {
11946  _isinf(0);
11947 ; return 0; }
11948 EOF
11949 if { (eval echo configure:11950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11950   rm -rf conftest*
11951   glibcpp_cv_func__isinf_use=yes
11952 else
11953   echo "configure: failed program was:" >&5
11954   cat conftest.$ac_ext >&5
11955   rm -rf conftest*
11956   glibcpp_cv_func__isinf_use=no
11957 fi
11958 rm -f conftest*
11959       ac_ext=c
11960 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11961 ac_cpp='$CPP $CPPFLAGS'
11962 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11963 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11964 cross_compiling=$ac_cv_prog_cc_cross
11965
11966     
11967 fi
11968
11969   fi
11970   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
11971
11972     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
11973       for ac_func in _isinf
11974 do
11975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11976 echo "configure:11977: checking for $ac_func" >&5
11977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11978   echo $ac_n "(cached) $ac_c" 1>&6
11979 else
11980   cat > conftest.$ac_ext <<EOF
11981 #line 11982 "configure"
11982 #include "confdefs.h"
11983 /* System header to define __stub macros and hopefully few prototypes,
11984     which can conflict with char $ac_func(); below.  */
11985 #include <assert.h>
11986 /* Override any gcc2 internal prototype to avoid an error.  */
11987 /* We use char because int might match the return type of a gcc2
11988     builtin and then its argument prototype would still apply.  */
11989 char $ac_func();
11990
11991 int main() {
11992
11993 /* The GNU C library defines this for functions which it implements
11994     to always fail with ENOSYS.  Some functions are actually named
11995     something starting with __ and the normal name is an alias.  */
11996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11997 choke me
11998 #else
11999 $ac_func();
12000 #endif
12001
12002 ; return 0; }
12003 EOF
12004 if { (eval echo configure:12005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12005   rm -rf conftest*
12006   eval "ac_cv_func_$ac_func=yes"
12007 else
12008   echo "configure: failed program was:" >&5
12009   cat conftest.$ac_ext >&5
12010   rm -rf conftest*
12011   eval "ac_cv_func_$ac_func=no"
12012 fi
12013 rm -f conftest*
12014 fi
12015
12016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12017   echo "$ac_t""yes" 1>&6
12018     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12019   cat >> confdefs.h <<EOF
12020 #define $ac_tr_func 1
12021 EOF
12022  
12023 else
12024   echo "$ac_t""no" 1>&6
12025 fi
12026 done
12027     
12028     fi
12029   fi
12030
12031   
12032   
12033   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
12034 echo "configure:12035: checking for isnan declaration" >&5
12035   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
12036     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
12037   echo $ac_n "(cached) $ac_c" 1>&6
12038 else
12039   
12040       
12041       ac_ext=C
12042 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12043 ac_cpp='$CXXCPP $CPPFLAGS'
12044 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12045 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12046 cross_compiling=$ac_cv_prog_cxx_cross
12047
12048       cat > conftest.$ac_ext <<EOF
12049 #line 12050 "configure"
12050 #include "confdefs.h"
12051 #include <math.h>
12052                       #ifdef HAVE_IEEEFP_H
12053                       #include <ieeefp.h>
12054                       #endif
12055                      
12056 int main() {
12057  isnan(0);
12058 ; return 0; }
12059 EOF
12060 if { (eval echo configure:12061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12061   rm -rf conftest*
12062   glibcpp_cv_func_isnan_use=yes
12063 else
12064   echo "configure: failed program was:" >&5
12065   cat conftest.$ac_ext >&5
12066   rm -rf conftest*
12067   glibcpp_cv_func_isnan_use=no
12068 fi
12069 rm -f conftest*
12070       ac_ext=c
12071 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12072 ac_cpp='$CPP $CPPFLAGS'
12073 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12074 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12075 cross_compiling=$ac_cv_prog_cc_cross
12076
12077     
12078 fi
12079
12080   fi
12081   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
12082
12083   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
12084     for ac_func in isnan
12085 do
12086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12087 echo "configure:12088: checking for $ac_func" >&5
12088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12089   echo $ac_n "(cached) $ac_c" 1>&6
12090 else
12091   cat > conftest.$ac_ext <<EOF
12092 #line 12093 "configure"
12093 #include "confdefs.h"
12094 /* System header to define __stub macros and hopefully few prototypes,
12095     which can conflict with char $ac_func(); below.  */
12096 #include <assert.h>
12097 /* Override any gcc2 internal prototype to avoid an error.  */
12098 /* We use char because int might match the return type of a gcc2
12099     builtin and then its argument prototype would still apply.  */
12100 char $ac_func();
12101
12102 int main() {
12103
12104 /* The GNU C library defines this for functions which it implements
12105     to always fail with ENOSYS.  Some functions are actually named
12106     something starting with __ and the normal name is an alias.  */
12107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12108 choke me
12109 #else
12110 $ac_func();
12111 #endif
12112
12113 ; return 0; }
12114 EOF
12115 if { (eval echo configure:12116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12116   rm -rf conftest*
12117   eval "ac_cv_func_$ac_func=yes"
12118 else
12119   echo "configure: failed program was:" >&5
12120   cat conftest.$ac_ext >&5
12121   rm -rf conftest*
12122   eval "ac_cv_func_$ac_func=no"
12123 fi
12124 rm -f conftest*
12125 fi
12126
12127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12128   echo "$ac_t""yes" 1>&6
12129     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12130   cat >> confdefs.h <<EOF
12131 #define $ac_tr_func 1
12132 EOF
12133  
12134 else
12135   echo "$ac_t""no" 1>&6
12136 fi
12137 done
12138     
12139   else
12140     
12141   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
12142 echo "configure:12143: checking for _isnan declaration" >&5
12143   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
12144     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
12145   echo $ac_n "(cached) $ac_c" 1>&6
12146 else
12147   
12148       
12149       ac_ext=C
12150 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12151 ac_cpp='$CXXCPP $CPPFLAGS'
12152 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12153 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12154 cross_compiling=$ac_cv_prog_cxx_cross
12155
12156       cat > conftest.$ac_ext <<EOF
12157 #line 12158 "configure"
12158 #include "confdefs.h"
12159 #include <math.h>
12160                       #ifdef HAVE_IEEEFP_H
12161                       #include <ieeefp.h>
12162                       #endif
12163                      
12164 int main() {
12165  _isnan(0);
12166 ; return 0; }
12167 EOF
12168 if { (eval echo configure:12169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12169   rm -rf conftest*
12170   glibcpp_cv_func__isnan_use=yes
12171 else
12172   echo "configure: failed program was:" >&5
12173   cat conftest.$ac_ext >&5
12174   rm -rf conftest*
12175   glibcpp_cv_func__isnan_use=no
12176 fi
12177 rm -f conftest*
12178       ac_ext=c
12179 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12180 ac_cpp='$CPP $CPPFLAGS'
12181 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12182 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12183 cross_compiling=$ac_cv_prog_cc_cross
12184
12185     
12186 fi
12187
12188   fi
12189   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
12190
12191     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
12192       for ac_func in _isnan
12193 do
12194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12195 echo "configure:12196: checking for $ac_func" >&5
12196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12197   echo $ac_n "(cached) $ac_c" 1>&6
12198 else
12199   cat > conftest.$ac_ext <<EOF
12200 #line 12201 "configure"
12201 #include "confdefs.h"
12202 /* System header to define __stub macros and hopefully few prototypes,
12203     which can conflict with char $ac_func(); below.  */
12204 #include <assert.h>
12205 /* Override any gcc2 internal prototype to avoid an error.  */
12206 /* We use char because int might match the return type of a gcc2
12207     builtin and then its argument prototype would still apply.  */
12208 char $ac_func();
12209
12210 int main() {
12211
12212 /* The GNU C library defines this for functions which it implements
12213     to always fail with ENOSYS.  Some functions are actually named
12214     something starting with __ and the normal name is an alias.  */
12215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12216 choke me
12217 #else
12218 $ac_func();
12219 #endif
12220
12221 ; return 0; }
12222 EOF
12223 if { (eval echo configure:12224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12224   rm -rf conftest*
12225   eval "ac_cv_func_$ac_func=yes"
12226 else
12227   echo "configure: failed program was:" >&5
12228   cat conftest.$ac_ext >&5
12229   rm -rf conftest*
12230   eval "ac_cv_func_$ac_func=no"
12231 fi
12232 rm -f conftest*
12233 fi
12234
12235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12236   echo "$ac_t""yes" 1>&6
12237     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12238   cat >> confdefs.h <<EOF
12239 #define $ac_tr_func 1
12240 EOF
12241  
12242 else
12243   echo "$ac_t""no" 1>&6
12244 fi
12245 done
12246     
12247     fi
12248   fi
12249
12250   
12251   
12252   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
12253 echo "configure:12254: checking for finite declaration" >&5
12254   if test x${glibcpp_cv_func_finite_use+set} != xset; then
12255     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
12256   echo $ac_n "(cached) $ac_c" 1>&6
12257 else
12258   
12259       
12260       ac_ext=C
12261 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12262 ac_cpp='$CXXCPP $CPPFLAGS'
12263 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12264 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12265 cross_compiling=$ac_cv_prog_cxx_cross
12266
12267       cat > conftest.$ac_ext <<EOF
12268 #line 12269 "configure"
12269 #include "confdefs.h"
12270 #include <math.h>
12271                       #ifdef HAVE_IEEEFP_H
12272                       #include <ieeefp.h>
12273                       #endif
12274                      
12275 int main() {
12276  finite(0);
12277 ; return 0; }
12278 EOF
12279 if { (eval echo configure:12280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12280   rm -rf conftest*
12281   glibcpp_cv_func_finite_use=yes
12282 else
12283   echo "configure: failed program was:" >&5
12284   cat conftest.$ac_ext >&5
12285   rm -rf conftest*
12286   glibcpp_cv_func_finite_use=no
12287 fi
12288 rm -f conftest*
12289       ac_ext=c
12290 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12291 ac_cpp='$CPP $CPPFLAGS'
12292 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12293 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12294 cross_compiling=$ac_cv_prog_cc_cross
12295
12296     
12297 fi
12298
12299   fi
12300   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
12301
12302   if test x$glibcpp_cv_func_finite_use = x"yes"; then
12303     for ac_func in finite
12304 do
12305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12306 echo "configure:12307: checking for $ac_func" >&5
12307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12308   echo $ac_n "(cached) $ac_c" 1>&6
12309 else
12310   cat > conftest.$ac_ext <<EOF
12311 #line 12312 "configure"
12312 #include "confdefs.h"
12313 /* System header to define __stub macros and hopefully few prototypes,
12314     which can conflict with char $ac_func(); below.  */
12315 #include <assert.h>
12316 /* Override any gcc2 internal prototype to avoid an error.  */
12317 /* We use char because int might match the return type of a gcc2
12318     builtin and then its argument prototype would still apply.  */
12319 char $ac_func();
12320
12321 int main() {
12322
12323 /* The GNU C library defines this for functions which it implements
12324     to always fail with ENOSYS.  Some functions are actually named
12325     something starting with __ and the normal name is an alias.  */
12326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12327 choke me
12328 #else
12329 $ac_func();
12330 #endif
12331
12332 ; return 0; }
12333 EOF
12334 if { (eval echo configure:12335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12335   rm -rf conftest*
12336   eval "ac_cv_func_$ac_func=yes"
12337 else
12338   echo "configure: failed program was:" >&5
12339   cat conftest.$ac_ext >&5
12340   rm -rf conftest*
12341   eval "ac_cv_func_$ac_func=no"
12342 fi
12343 rm -f conftest*
12344 fi
12345
12346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12347   echo "$ac_t""yes" 1>&6
12348     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12349   cat >> confdefs.h <<EOF
12350 #define $ac_tr_func 1
12351 EOF
12352  
12353 else
12354   echo "$ac_t""no" 1>&6
12355 fi
12356 done
12357     
12358   else
12359     
12360   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
12361 echo "configure:12362: checking for _finite declaration" >&5
12362   if test x${glibcpp_cv_func__finite_use+set} != xset; then
12363     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
12364   echo $ac_n "(cached) $ac_c" 1>&6
12365 else
12366   
12367       
12368       ac_ext=C
12369 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12370 ac_cpp='$CXXCPP $CPPFLAGS'
12371 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12372 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12373 cross_compiling=$ac_cv_prog_cxx_cross
12374
12375       cat > conftest.$ac_ext <<EOF
12376 #line 12377 "configure"
12377 #include "confdefs.h"
12378 #include <math.h>
12379                       #ifdef HAVE_IEEEFP_H
12380                       #include <ieeefp.h>
12381                       #endif
12382                      
12383 int main() {
12384  _finite(0);
12385 ; return 0; }
12386 EOF
12387 if { (eval echo configure:12388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12388   rm -rf conftest*
12389   glibcpp_cv_func__finite_use=yes
12390 else
12391   echo "configure: failed program was:" >&5
12392   cat conftest.$ac_ext >&5
12393   rm -rf conftest*
12394   glibcpp_cv_func__finite_use=no
12395 fi
12396 rm -f conftest*
12397       ac_ext=c
12398 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12399 ac_cpp='$CPP $CPPFLAGS'
12400 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12401 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12402 cross_compiling=$ac_cv_prog_cc_cross
12403
12404     
12405 fi
12406
12407   fi
12408   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
12409
12410     if test x$glibcpp_cv_func__finite_use = x"yes"; then
12411       for ac_func in _finite
12412 do
12413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12414 echo "configure:12415: checking for $ac_func" >&5
12415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12416   echo $ac_n "(cached) $ac_c" 1>&6
12417 else
12418   cat > conftest.$ac_ext <<EOF
12419 #line 12420 "configure"
12420 #include "confdefs.h"
12421 /* System header to define __stub macros and hopefully few prototypes,
12422     which can conflict with char $ac_func(); below.  */
12423 #include <assert.h>
12424 /* Override any gcc2 internal prototype to avoid an error.  */
12425 /* We use char because int might match the return type of a gcc2
12426     builtin and then its argument prototype would still apply.  */
12427 char $ac_func();
12428
12429 int main() {
12430
12431 /* The GNU C library defines this for functions which it implements
12432     to always fail with ENOSYS.  Some functions are actually named
12433     something starting with __ and the normal name is an alias.  */
12434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12435 choke me
12436 #else
12437 $ac_func();
12438 #endif
12439
12440 ; return 0; }
12441 EOF
12442 if { (eval echo configure:12443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12443   rm -rf conftest*
12444   eval "ac_cv_func_$ac_func=yes"
12445 else
12446   echo "configure: failed program was:" >&5
12447   cat conftest.$ac_ext >&5
12448   rm -rf conftest*
12449   eval "ac_cv_func_$ac_func=no"
12450 fi
12451 rm -f conftest*
12452 fi
12453
12454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12455   echo "$ac_t""yes" 1>&6
12456     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12457   cat >> confdefs.h <<EOF
12458 #define $ac_tr_func 1
12459 EOF
12460  
12461 else
12462   echo "$ac_t""no" 1>&6
12463 fi
12464 done
12465     
12466     fi
12467   fi
12468
12469   
12470   
12471   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
12472 echo "configure:12473: checking for copysign declaration" >&5
12473   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
12474     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
12475   echo $ac_n "(cached) $ac_c" 1>&6
12476 else
12477   
12478       
12479       ac_ext=C
12480 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12481 ac_cpp='$CXXCPP $CPPFLAGS'
12482 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12483 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12484 cross_compiling=$ac_cv_prog_cxx_cross
12485
12486       cat > conftest.$ac_ext <<EOF
12487 #line 12488 "configure"
12488 #include "confdefs.h"
12489 #include <math.h>
12490 int main() {
12491  copysign(0, 0);
12492 ; return 0; }
12493 EOF
12494 if { (eval echo configure:12495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12495   rm -rf conftest*
12496   glibcpp_cv_func_copysign_use=yes
12497 else
12498   echo "configure: failed program was:" >&5
12499   cat conftest.$ac_ext >&5
12500   rm -rf conftest*
12501   glibcpp_cv_func_copysign_use=no
12502 fi
12503 rm -f conftest*
12504       ac_ext=c
12505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12506 ac_cpp='$CPP $CPPFLAGS'
12507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12509 cross_compiling=$ac_cv_prog_cc_cross
12510
12511     
12512 fi
12513
12514   fi
12515   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
12516
12517   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
12518     for ac_func in copysign
12519 do
12520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12521 echo "configure:12522: checking for $ac_func" >&5
12522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12523   echo $ac_n "(cached) $ac_c" 1>&6
12524 else
12525   cat > conftest.$ac_ext <<EOF
12526 #line 12527 "configure"
12527 #include "confdefs.h"
12528 /* System header to define __stub macros and hopefully few prototypes,
12529     which can conflict with char $ac_func(); below.  */
12530 #include <assert.h>
12531 /* Override any gcc2 internal prototype to avoid an error.  */
12532 /* We use char because int might match the return type of a gcc2
12533     builtin and then its argument prototype would still apply.  */
12534 char $ac_func();
12535
12536 int main() {
12537
12538 /* The GNU C library defines this for functions which it implements
12539     to always fail with ENOSYS.  Some functions are actually named
12540     something starting with __ and the normal name is an alias.  */
12541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12542 choke me
12543 #else
12544 $ac_func();
12545 #endif
12546
12547 ; return 0; }
12548 EOF
12549 if { (eval echo configure:12550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12550   rm -rf conftest*
12551   eval "ac_cv_func_$ac_func=yes"
12552 else
12553   echo "configure: failed program was:" >&5
12554   cat conftest.$ac_ext >&5
12555   rm -rf conftest*
12556   eval "ac_cv_func_$ac_func=no"
12557 fi
12558 rm -f conftest*
12559 fi
12560
12561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12562   echo "$ac_t""yes" 1>&6
12563     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12564   cat >> confdefs.h <<EOF
12565 #define $ac_tr_func 1
12566 EOF
12567  
12568 else
12569   echo "$ac_t""no" 1>&6
12570 fi
12571 done
12572     
12573   else
12574     
12575   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
12576 echo "configure:12577: checking for _copysign declaration" >&5
12577   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
12578     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
12579   echo $ac_n "(cached) $ac_c" 1>&6
12580 else
12581   
12582       
12583       ac_ext=C
12584 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12585 ac_cpp='$CXXCPP $CPPFLAGS'
12586 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12587 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12588 cross_compiling=$ac_cv_prog_cxx_cross
12589
12590       cat > conftest.$ac_ext <<EOF
12591 #line 12592 "configure"
12592 #include "confdefs.h"
12593 #include <math.h>
12594 int main() {
12595  _copysign(0, 0);
12596 ; return 0; }
12597 EOF
12598 if { (eval echo configure:12599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12599   rm -rf conftest*
12600   glibcpp_cv_func__copysign_use=yes
12601 else
12602   echo "configure: failed program was:" >&5
12603   cat conftest.$ac_ext >&5
12604   rm -rf conftest*
12605   glibcpp_cv_func__copysign_use=no
12606 fi
12607 rm -f conftest*
12608       ac_ext=c
12609 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12610 ac_cpp='$CPP $CPPFLAGS'
12611 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12612 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12613 cross_compiling=$ac_cv_prog_cc_cross
12614
12615     
12616 fi
12617
12618   fi
12619   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
12620
12621     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
12622       for ac_func in _copysign
12623 do
12624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12625 echo "configure:12626: checking for $ac_func" >&5
12626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12627   echo $ac_n "(cached) $ac_c" 1>&6
12628 else
12629   cat > conftest.$ac_ext <<EOF
12630 #line 12631 "configure"
12631 #include "confdefs.h"
12632 /* System header to define __stub macros and hopefully few prototypes,
12633     which can conflict with char $ac_func(); below.  */
12634 #include <assert.h>
12635 /* Override any gcc2 internal prototype to avoid an error.  */
12636 /* We use char because int might match the return type of a gcc2
12637     builtin and then its argument prototype would still apply.  */
12638 char $ac_func();
12639
12640 int main() {
12641
12642 /* The GNU C library defines this for functions which it implements
12643     to always fail with ENOSYS.  Some functions are actually named
12644     something starting with __ and the normal name is an alias.  */
12645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12646 choke me
12647 #else
12648 $ac_func();
12649 #endif
12650
12651 ; return 0; }
12652 EOF
12653 if { (eval echo configure:12654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12654   rm -rf conftest*
12655   eval "ac_cv_func_$ac_func=yes"
12656 else
12657   echo "configure: failed program was:" >&5
12658   cat conftest.$ac_ext >&5
12659   rm -rf conftest*
12660   eval "ac_cv_func_$ac_func=no"
12661 fi
12662 rm -f conftest*
12663 fi
12664
12665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12666   echo "$ac_t""yes" 1>&6
12667     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12668   cat >> confdefs.h <<EOF
12669 #define $ac_tr_func 1
12670 EOF
12671  
12672 else
12673   echo "$ac_t""no" 1>&6
12674 fi
12675 done
12676     
12677     fi
12678   fi
12679
12680   
12681   
12682   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
12683 echo "configure:12684: checking for sincos declaration" >&5
12684   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
12685     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
12686   echo $ac_n "(cached) $ac_c" 1>&6
12687 else
12688   
12689       
12690       ac_ext=C
12691 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12692 ac_cpp='$CXXCPP $CPPFLAGS'
12693 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12694 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12695 cross_compiling=$ac_cv_prog_cxx_cross
12696
12697       cat > conftest.$ac_ext <<EOF
12698 #line 12699 "configure"
12699 #include "confdefs.h"
12700 #include <math.h>
12701 int main() {
12702  sincos(0, 0, 0);
12703 ; return 0; }
12704 EOF
12705 if { (eval echo configure:12706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12706   rm -rf conftest*
12707   glibcpp_cv_func_sincos_use=yes
12708 else
12709   echo "configure: failed program was:" >&5
12710   cat conftest.$ac_ext >&5
12711   rm -rf conftest*
12712   glibcpp_cv_func_sincos_use=no
12713 fi
12714 rm -f conftest*
12715       ac_ext=c
12716 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12717 ac_cpp='$CPP $CPPFLAGS'
12718 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12719 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12720 cross_compiling=$ac_cv_prog_cc_cross
12721
12722     
12723 fi
12724
12725   fi
12726   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
12727
12728   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
12729     for ac_func in sincos
12730 do
12731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12732 echo "configure:12733: checking for $ac_func" >&5
12733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12734   echo $ac_n "(cached) $ac_c" 1>&6
12735 else
12736   cat > conftest.$ac_ext <<EOF
12737 #line 12738 "configure"
12738 #include "confdefs.h"
12739 /* System header to define __stub macros and hopefully few prototypes,
12740     which can conflict with char $ac_func(); below.  */
12741 #include <assert.h>
12742 /* Override any gcc2 internal prototype to avoid an error.  */
12743 /* We use char because int might match the return type of a gcc2
12744     builtin and then its argument prototype would still apply.  */
12745 char $ac_func();
12746
12747 int main() {
12748
12749 /* The GNU C library defines this for functions which it implements
12750     to always fail with ENOSYS.  Some functions are actually named
12751     something starting with __ and the normal name is an alias.  */
12752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12753 choke me
12754 #else
12755 $ac_func();
12756 #endif
12757
12758 ; return 0; }
12759 EOF
12760 if { (eval echo configure:12761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12761   rm -rf conftest*
12762   eval "ac_cv_func_$ac_func=yes"
12763 else
12764   echo "configure: failed program was:" >&5
12765   cat conftest.$ac_ext >&5
12766   rm -rf conftest*
12767   eval "ac_cv_func_$ac_func=no"
12768 fi
12769 rm -f conftest*
12770 fi
12771
12772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12773   echo "$ac_t""yes" 1>&6
12774     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12775   cat >> confdefs.h <<EOF
12776 #define $ac_tr_func 1
12777 EOF
12778  
12779 else
12780   echo "$ac_t""no" 1>&6
12781 fi
12782 done
12783     
12784   else
12785     
12786   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
12787 echo "configure:12788: checking for _sincos declaration" >&5
12788   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
12789     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
12790   echo $ac_n "(cached) $ac_c" 1>&6
12791 else
12792   
12793       
12794       ac_ext=C
12795 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12796 ac_cpp='$CXXCPP $CPPFLAGS'
12797 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12798 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12799 cross_compiling=$ac_cv_prog_cxx_cross
12800
12801       cat > conftest.$ac_ext <<EOF
12802 #line 12803 "configure"
12803 #include "confdefs.h"
12804 #include <math.h>
12805 int main() {
12806  _sincos(0, 0, 0);
12807 ; return 0; }
12808 EOF
12809 if { (eval echo configure:12810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12810   rm -rf conftest*
12811   glibcpp_cv_func__sincos_use=yes
12812 else
12813   echo "configure: failed program was:" >&5
12814   cat conftest.$ac_ext >&5
12815   rm -rf conftest*
12816   glibcpp_cv_func__sincos_use=no
12817 fi
12818 rm -f conftest*
12819       ac_ext=c
12820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12821 ac_cpp='$CPP $CPPFLAGS'
12822 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12823 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12824 cross_compiling=$ac_cv_prog_cc_cross
12825
12826     
12827 fi
12828
12829   fi
12830   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
12831
12832     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
12833       for ac_func in _sincos
12834 do
12835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12836 echo "configure:12837: checking for $ac_func" >&5
12837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12838   echo $ac_n "(cached) $ac_c" 1>&6
12839 else
12840   cat > conftest.$ac_ext <<EOF
12841 #line 12842 "configure"
12842 #include "confdefs.h"
12843 /* System header to define __stub macros and hopefully few prototypes,
12844     which can conflict with char $ac_func(); below.  */
12845 #include <assert.h>
12846 /* Override any gcc2 internal prototype to avoid an error.  */
12847 /* We use char because int might match the return type of a gcc2
12848     builtin and then its argument prototype would still apply.  */
12849 char $ac_func();
12850
12851 int main() {
12852
12853 /* The GNU C library defines this for functions which it implements
12854     to always fail with ENOSYS.  Some functions are actually named
12855     something starting with __ and the normal name is an alias.  */
12856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12857 choke me
12858 #else
12859 $ac_func();
12860 #endif
12861
12862 ; return 0; }
12863 EOF
12864 if { (eval echo configure:12865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12865   rm -rf conftest*
12866   eval "ac_cv_func_$ac_func=yes"
12867 else
12868   echo "configure: failed program was:" >&5
12869   cat conftest.$ac_ext >&5
12870   rm -rf conftest*
12871   eval "ac_cv_func_$ac_func=no"
12872 fi
12873 rm -f conftest*
12874 fi
12875
12876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12877   echo "$ac_t""yes" 1>&6
12878     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12879   cat >> confdefs.h <<EOF
12880 #define $ac_tr_func 1
12881 EOF
12882  
12883 else
12884   echo "$ac_t""no" 1>&6
12885 fi
12886 done
12887     
12888     fi
12889   fi
12890
12891   
12892   
12893   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
12894 echo "configure:12895: checking for fpclass declaration" >&5
12895   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
12896     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
12897   echo $ac_n "(cached) $ac_c" 1>&6
12898 else
12899   
12900       
12901       ac_ext=C
12902 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12903 ac_cpp='$CXXCPP $CPPFLAGS'
12904 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12905 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12906 cross_compiling=$ac_cv_prog_cxx_cross
12907
12908       cat > conftest.$ac_ext <<EOF
12909 #line 12910 "configure"
12910 #include "confdefs.h"
12911 #include <math.h>
12912                       #ifdef HAVE_IEEEFP_H
12913                       #include <ieeefp.h>
12914                       #endif
12915                      
12916 int main() {
12917  fpclass(0);
12918 ; return 0; }
12919 EOF
12920 if { (eval echo configure:12921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12921   rm -rf conftest*
12922   glibcpp_cv_func_fpclass_use=yes
12923 else
12924   echo "configure: failed program was:" >&5
12925   cat conftest.$ac_ext >&5
12926   rm -rf conftest*
12927   glibcpp_cv_func_fpclass_use=no
12928 fi
12929 rm -f conftest*
12930       ac_ext=c
12931 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12932 ac_cpp='$CPP $CPPFLAGS'
12933 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12934 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12935 cross_compiling=$ac_cv_prog_cc_cross
12936
12937     
12938 fi
12939
12940   fi
12941   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
12942
12943   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
12944     for ac_func in fpclass
12945 do
12946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12947 echo "configure:12948: checking for $ac_func" >&5
12948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12949   echo $ac_n "(cached) $ac_c" 1>&6
12950 else
12951   cat > conftest.$ac_ext <<EOF
12952 #line 12953 "configure"
12953 #include "confdefs.h"
12954 /* System header to define __stub macros and hopefully few prototypes,
12955     which can conflict with char $ac_func(); below.  */
12956 #include <assert.h>
12957 /* Override any gcc2 internal prototype to avoid an error.  */
12958 /* We use char because int might match the return type of a gcc2
12959     builtin and then its argument prototype would still apply.  */
12960 char $ac_func();
12961
12962 int main() {
12963
12964 /* The GNU C library defines this for functions which it implements
12965     to always fail with ENOSYS.  Some functions are actually named
12966     something starting with __ and the normal name is an alias.  */
12967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12968 choke me
12969 #else
12970 $ac_func();
12971 #endif
12972
12973 ; return 0; }
12974 EOF
12975 if { (eval echo configure:12976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12976   rm -rf conftest*
12977   eval "ac_cv_func_$ac_func=yes"
12978 else
12979   echo "configure: failed program was:" >&5
12980   cat conftest.$ac_ext >&5
12981   rm -rf conftest*
12982   eval "ac_cv_func_$ac_func=no"
12983 fi
12984 rm -f conftest*
12985 fi
12986
12987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12988   echo "$ac_t""yes" 1>&6
12989     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12990   cat >> confdefs.h <<EOF
12991 #define $ac_tr_func 1
12992 EOF
12993  
12994 else
12995   echo "$ac_t""no" 1>&6
12996 fi
12997 done
12998     
12999   else
13000     
13001   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
13002 echo "configure:13003: checking for _fpclass declaration" >&5
13003   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
13004     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
13005   echo $ac_n "(cached) $ac_c" 1>&6
13006 else
13007   
13008       
13009       ac_ext=C
13010 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13011 ac_cpp='$CXXCPP $CPPFLAGS'
13012 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13013 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13014 cross_compiling=$ac_cv_prog_cxx_cross
13015
13016       cat > conftest.$ac_ext <<EOF
13017 #line 13018 "configure"
13018 #include "confdefs.h"
13019 #include <math.h>
13020                       #ifdef HAVE_IEEEFP_H
13021                       #include <ieeefp.h>
13022                       #endif
13023                      
13024 int main() {
13025  _fpclass(0);
13026 ; return 0; }
13027 EOF
13028 if { (eval echo configure:13029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13029   rm -rf conftest*
13030   glibcpp_cv_func__fpclass_use=yes
13031 else
13032   echo "configure: failed program was:" >&5
13033   cat conftest.$ac_ext >&5
13034   rm -rf conftest*
13035   glibcpp_cv_func__fpclass_use=no
13036 fi
13037 rm -f conftest*
13038       ac_ext=c
13039 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13040 ac_cpp='$CPP $CPPFLAGS'
13041 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13042 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13043 cross_compiling=$ac_cv_prog_cc_cross
13044
13045     
13046 fi
13047
13048   fi
13049   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
13050
13051     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
13052       for ac_func in _fpclass
13053 do
13054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13055 echo "configure:13056: checking for $ac_func" >&5
13056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13057   echo $ac_n "(cached) $ac_c" 1>&6
13058 else
13059   cat > conftest.$ac_ext <<EOF
13060 #line 13061 "configure"
13061 #include "confdefs.h"
13062 /* System header to define __stub macros and hopefully few prototypes,
13063     which can conflict with char $ac_func(); below.  */
13064 #include <assert.h>
13065 /* Override any gcc2 internal prototype to avoid an error.  */
13066 /* We use char because int might match the return type of a gcc2
13067     builtin and then its argument prototype would still apply.  */
13068 char $ac_func();
13069
13070 int main() {
13071
13072 /* The GNU C library defines this for functions which it implements
13073     to always fail with ENOSYS.  Some functions are actually named
13074     something starting with __ and the normal name is an alias.  */
13075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13076 choke me
13077 #else
13078 $ac_func();
13079 #endif
13080
13081 ; return 0; }
13082 EOF
13083 if { (eval echo configure:13084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13084   rm -rf conftest*
13085   eval "ac_cv_func_$ac_func=yes"
13086 else
13087   echo "configure: failed program was:" >&5
13088   cat conftest.$ac_ext >&5
13089   rm -rf conftest*
13090   eval "ac_cv_func_$ac_func=no"
13091 fi
13092 rm -f conftest*
13093 fi
13094
13095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13096   echo "$ac_t""yes" 1>&6
13097     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13098   cat >> confdefs.h <<EOF
13099 #define $ac_tr_func 1
13100 EOF
13101  
13102 else
13103   echo "$ac_t""no" 1>&6
13104 fi
13105 done
13106     
13107     fi
13108   fi
13109
13110   
13111   
13112   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
13113 echo "configure:13114: checking for qfpclass declaration" >&5
13114   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
13115     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
13116   echo $ac_n "(cached) $ac_c" 1>&6
13117 else
13118   
13119       
13120       ac_ext=C
13121 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13122 ac_cpp='$CXXCPP $CPPFLAGS'
13123 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13124 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13125 cross_compiling=$ac_cv_prog_cxx_cross
13126
13127       cat > conftest.$ac_ext <<EOF
13128 #line 13129 "configure"
13129 #include "confdefs.h"
13130 #include <math.h>
13131                       #ifdef HAVE_IEEEFP_H
13132                       #include <ieeefp.h>
13133                       #endif
13134                      
13135 int main() {
13136  qfpclass(0);
13137 ; return 0; }
13138 EOF
13139 if { (eval echo configure:13140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13140   rm -rf conftest*
13141   glibcpp_cv_func_qfpclass_use=yes
13142 else
13143   echo "configure: failed program was:" >&5
13144   cat conftest.$ac_ext >&5
13145   rm -rf conftest*
13146   glibcpp_cv_func_qfpclass_use=no
13147 fi
13148 rm -f conftest*
13149       ac_ext=c
13150 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13151 ac_cpp='$CPP $CPPFLAGS'
13152 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13153 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13154 cross_compiling=$ac_cv_prog_cc_cross
13155
13156     
13157 fi
13158
13159   fi
13160   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
13161
13162   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
13163     for ac_func in qfpclass
13164 do
13165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13166 echo "configure:13167: checking for $ac_func" >&5
13167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13168   echo $ac_n "(cached) $ac_c" 1>&6
13169 else
13170   cat > conftest.$ac_ext <<EOF
13171 #line 13172 "configure"
13172 #include "confdefs.h"
13173 /* System header to define __stub macros and hopefully few prototypes,
13174     which can conflict with char $ac_func(); below.  */
13175 #include <assert.h>
13176 /* Override any gcc2 internal prototype to avoid an error.  */
13177 /* We use char because int might match the return type of a gcc2
13178     builtin and then its argument prototype would still apply.  */
13179 char $ac_func();
13180
13181 int main() {
13182
13183 /* The GNU C library defines this for functions which it implements
13184     to always fail with ENOSYS.  Some functions are actually named
13185     something starting with __ and the normal name is an alias.  */
13186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13187 choke me
13188 #else
13189 $ac_func();
13190 #endif
13191
13192 ; return 0; }
13193 EOF
13194 if { (eval echo configure:13195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13195   rm -rf conftest*
13196   eval "ac_cv_func_$ac_func=yes"
13197 else
13198   echo "configure: failed program was:" >&5
13199   cat conftest.$ac_ext >&5
13200   rm -rf conftest*
13201   eval "ac_cv_func_$ac_func=no"
13202 fi
13203 rm -f conftest*
13204 fi
13205
13206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13207   echo "$ac_t""yes" 1>&6
13208     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13209   cat >> confdefs.h <<EOF
13210 #define $ac_tr_func 1
13211 EOF
13212  
13213 else
13214   echo "$ac_t""no" 1>&6
13215 fi
13216 done
13217     
13218   else
13219     
13220   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
13221 echo "configure:13222: checking for _qfpclass declaration" >&5
13222   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
13223     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
13224   echo $ac_n "(cached) $ac_c" 1>&6
13225 else
13226   
13227       
13228       ac_ext=C
13229 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13230 ac_cpp='$CXXCPP $CPPFLAGS'
13231 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13232 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13233 cross_compiling=$ac_cv_prog_cxx_cross
13234
13235       cat > conftest.$ac_ext <<EOF
13236 #line 13237 "configure"
13237 #include "confdefs.h"
13238 #include <math.h>
13239                       #ifdef HAVE_IEEEFP_H
13240                       #include <ieeefp.h>
13241                       #endif
13242                      
13243 int main() {
13244  _qfpclass(0);
13245 ; return 0; }
13246 EOF
13247 if { (eval echo configure:13248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13248   rm -rf conftest*
13249   glibcpp_cv_func__qfpclass_use=yes
13250 else
13251   echo "configure: failed program was:" >&5
13252   cat conftest.$ac_ext >&5
13253   rm -rf conftest*
13254   glibcpp_cv_func__qfpclass_use=no
13255 fi
13256 rm -f conftest*
13257       ac_ext=c
13258 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13259 ac_cpp='$CPP $CPPFLAGS'
13260 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13261 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13262 cross_compiling=$ac_cv_prog_cc_cross
13263
13264     
13265 fi
13266
13267   fi
13268   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
13269
13270     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
13271       for ac_func in _qfpclass
13272 do
13273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13274 echo "configure:13275: checking for $ac_func" >&5
13275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13276   echo $ac_n "(cached) $ac_c" 1>&6
13277 else
13278   cat > conftest.$ac_ext <<EOF
13279 #line 13280 "configure"
13280 #include "confdefs.h"
13281 /* System header to define __stub macros and hopefully few prototypes,
13282     which can conflict with char $ac_func(); below.  */
13283 #include <assert.h>
13284 /* Override any gcc2 internal prototype to avoid an error.  */
13285 /* We use char because int might match the return type of a gcc2
13286     builtin and then its argument prototype would still apply.  */
13287 char $ac_func();
13288
13289 int main() {
13290
13291 /* The GNU C library defines this for functions which it implements
13292     to always fail with ENOSYS.  Some functions are actually named
13293     something starting with __ and the normal name is an alias.  */
13294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13295 choke me
13296 #else
13297 $ac_func();
13298 #endif
13299
13300 ; return 0; }
13301 EOF
13302 if { (eval echo configure:13303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13303   rm -rf conftest*
13304   eval "ac_cv_func_$ac_func=yes"
13305 else
13306   echo "configure: failed program was:" >&5
13307   cat conftest.$ac_ext >&5
13308   rm -rf conftest*
13309   eval "ac_cv_func_$ac_func=no"
13310 fi
13311 rm -f conftest*
13312 fi
13313
13314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13315   echo "$ac_t""yes" 1>&6
13316     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13317   cat >> confdefs.h <<EOF
13318 #define $ac_tr_func 1
13319 EOF
13320  
13321 else
13322   echo "$ac_t""no" 1>&6
13323 fi
13324 done
13325     
13326     fi
13327   fi
13328
13329   
13330   
13331   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
13332 echo "configure:13333: checking for hypot declaration" >&5
13333   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
13334     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
13335   echo $ac_n "(cached) $ac_c" 1>&6
13336 else
13337   
13338       
13339       ac_ext=C
13340 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13341 ac_cpp='$CXXCPP $CPPFLAGS'
13342 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13343 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13344 cross_compiling=$ac_cv_prog_cxx_cross
13345
13346       cat > conftest.$ac_ext <<EOF
13347 #line 13348 "configure"
13348 #include "confdefs.h"
13349 #include <math.h>
13350 int main() {
13351  hypot(0, 0);
13352 ; return 0; }
13353 EOF
13354 if { (eval echo configure:13355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13355   rm -rf conftest*
13356   glibcpp_cv_func_hypot_use=yes
13357 else
13358   echo "configure: failed program was:" >&5
13359   cat conftest.$ac_ext >&5
13360   rm -rf conftest*
13361   glibcpp_cv_func_hypot_use=no
13362 fi
13363 rm -f conftest*
13364       ac_ext=c
13365 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13366 ac_cpp='$CPP $CPPFLAGS'
13367 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13368 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13369 cross_compiling=$ac_cv_prog_cc_cross
13370
13371     
13372 fi
13373
13374   fi
13375   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
13376
13377   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
13378     for ac_func in hypot
13379 do
13380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13381 echo "configure:13382: checking for $ac_func" >&5
13382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13383   echo $ac_n "(cached) $ac_c" 1>&6
13384 else
13385   cat > conftest.$ac_ext <<EOF
13386 #line 13387 "configure"
13387 #include "confdefs.h"
13388 /* System header to define __stub macros and hopefully few prototypes,
13389     which can conflict with char $ac_func(); below.  */
13390 #include <assert.h>
13391 /* Override any gcc2 internal prototype to avoid an error.  */
13392 /* We use char because int might match the return type of a gcc2
13393     builtin and then its argument prototype would still apply.  */
13394 char $ac_func();
13395
13396 int main() {
13397
13398 /* The GNU C library defines this for functions which it implements
13399     to always fail with ENOSYS.  Some functions are actually named
13400     something starting with __ and the normal name is an alias.  */
13401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13402 choke me
13403 #else
13404 $ac_func();
13405 #endif
13406
13407 ; return 0; }
13408 EOF
13409 if { (eval echo configure:13410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13410   rm -rf conftest*
13411   eval "ac_cv_func_$ac_func=yes"
13412 else
13413   echo "configure: failed program was:" >&5
13414   cat conftest.$ac_ext >&5
13415   rm -rf conftest*
13416   eval "ac_cv_func_$ac_func=no"
13417 fi
13418 rm -f conftest*
13419 fi
13420
13421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13422   echo "$ac_t""yes" 1>&6
13423     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13424   cat >> confdefs.h <<EOF
13425 #define $ac_tr_func 1
13426 EOF
13427  
13428 else
13429   echo "$ac_t""no" 1>&6
13430 fi
13431 done
13432     
13433   else
13434     
13435   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
13436 echo "configure:13437: checking for _hypot declaration" >&5
13437   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
13438     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
13439   echo $ac_n "(cached) $ac_c" 1>&6
13440 else
13441   
13442       
13443       ac_ext=C
13444 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13445 ac_cpp='$CXXCPP $CPPFLAGS'
13446 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13447 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13448 cross_compiling=$ac_cv_prog_cxx_cross
13449
13450       cat > conftest.$ac_ext <<EOF
13451 #line 13452 "configure"
13452 #include "confdefs.h"
13453 #include <math.h>
13454 int main() {
13455  _hypot(0, 0);
13456 ; return 0; }
13457 EOF
13458 if { (eval echo configure:13459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13459   rm -rf conftest*
13460   glibcpp_cv_func__hypot_use=yes
13461 else
13462   echo "configure: failed program was:" >&5
13463   cat conftest.$ac_ext >&5
13464   rm -rf conftest*
13465   glibcpp_cv_func__hypot_use=no
13466 fi
13467 rm -f conftest*
13468       ac_ext=c
13469 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13470 ac_cpp='$CPP $CPPFLAGS'
13471 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13472 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13473 cross_compiling=$ac_cv_prog_cc_cross
13474
13475     
13476 fi
13477
13478   fi
13479   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
13480
13481     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
13482       for ac_func in _hypot
13483 do
13484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13485 echo "configure:13486: checking for $ac_func" >&5
13486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13487   echo $ac_n "(cached) $ac_c" 1>&6
13488 else
13489   cat > conftest.$ac_ext <<EOF
13490 #line 13491 "configure"
13491 #include "confdefs.h"
13492 /* System header to define __stub macros and hopefully few prototypes,
13493     which can conflict with char $ac_func(); below.  */
13494 #include <assert.h>
13495 /* Override any gcc2 internal prototype to avoid an error.  */
13496 /* We use char because int might match the return type of a gcc2
13497     builtin and then its argument prototype would still apply.  */
13498 char $ac_func();
13499
13500 int main() {
13501
13502 /* The GNU C library defines this for functions which it implements
13503     to always fail with ENOSYS.  Some functions are actually named
13504     something starting with __ and the normal name is an alias.  */
13505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13506 choke me
13507 #else
13508 $ac_func();
13509 #endif
13510
13511 ; return 0; }
13512 EOF
13513 if { (eval echo configure:13514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13514   rm -rf conftest*
13515   eval "ac_cv_func_$ac_func=yes"
13516 else
13517   echo "configure: failed program was:" >&5
13518   cat conftest.$ac_ext >&5
13519   rm -rf conftest*
13520   eval "ac_cv_func_$ac_func=no"
13521 fi
13522 rm -f conftest*
13523 fi
13524
13525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13526   echo "$ac_t""yes" 1>&6
13527     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13528   cat >> confdefs.h <<EOF
13529 #define $ac_tr_func 1
13530 EOF
13531  
13532 else
13533   echo "$ac_t""no" 1>&6
13534 fi
13535 done
13536     
13537     fi
13538   fi
13539
13540
13541     
13542   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
13543 echo "configure:13544: checking for float trig functions" >&5
13544   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
13545   echo $ac_n "(cached) $ac_c" 1>&6
13546 else
13547   
13548     
13549     ac_ext=C
13550 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13551 ac_cpp='$CXXCPP $CPPFLAGS'
13552 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13553 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13554 cross_compiling=$ac_cv_prog_cxx_cross
13555
13556     cat > conftest.$ac_ext <<EOF
13557 #line 13558 "configure"
13558 #include "confdefs.h"
13559 #include <math.h>
13560 int main() {
13561  `for x in acosf asinf atanf \
13562                                           cosf sinf tanf \
13563                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
13564 ; return 0; }
13565 EOF
13566 if { (eval echo configure:13567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13567   rm -rf conftest*
13568   glibcpp_cv_func_float_trig_use=yes
13569 else
13570   echo "configure: failed program was:" >&5
13571   cat conftest.$ac_ext >&5
13572   rm -rf conftest*
13573   glibcpp_cv_func_float_trig_use=no
13574 fi
13575 rm -f conftest*
13576     ac_ext=c
13577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13578 ac_cpp='$CPP $CPPFLAGS'
13579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13581 cross_compiling=$ac_cv_prog_cc_cross
13582
13583 fi
13584
13585   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
13586   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
13587     for ac_func in acosf asinf atanf \
13588                                           cosf sinf tanf \
13589                                           coshf sinhf tanhf
13590 do
13591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13592 echo "configure:13593: checking for $ac_func" >&5
13593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13594   echo $ac_n "(cached) $ac_c" 1>&6
13595 else
13596   cat > conftest.$ac_ext <<EOF
13597 #line 13598 "configure"
13598 #include "confdefs.h"
13599 /* System header to define __stub macros and hopefully few prototypes,
13600     which can conflict with char $ac_func(); below.  */
13601 #include <assert.h>
13602 /* Override any gcc2 internal prototype to avoid an error.  */
13603 /* We use char because int might match the return type of a gcc2
13604     builtin and then its argument prototype would still apply.  */
13605 char $ac_func();
13606
13607 int main() {
13608
13609 /* The GNU C library defines this for functions which it implements
13610     to always fail with ENOSYS.  Some functions are actually named
13611     something starting with __ and the normal name is an alias.  */
13612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13613 choke me
13614 #else
13615 $ac_func();
13616 #endif
13617
13618 ; return 0; }
13619 EOF
13620 if { (eval echo configure:13621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13621   rm -rf conftest*
13622   eval "ac_cv_func_$ac_func=yes"
13623 else
13624   echo "configure: failed program was:" >&5
13625   cat conftest.$ac_ext >&5
13626   rm -rf conftest*
13627   eval "ac_cv_func_$ac_func=no"
13628 fi
13629 rm -f conftest*
13630 fi
13631
13632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13633   echo "$ac_t""yes" 1>&6
13634     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13635   cat >> confdefs.h <<EOF
13636 #define $ac_tr_func 1
13637 EOF
13638  
13639 else
13640   echo "$ac_t""no" 1>&6
13641 fi
13642 done
13643
13644   fi
13645
13646   
13647   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
13648 echo "configure:13649: checking for float round functions" >&5
13649   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
13650   echo $ac_n "(cached) $ac_c" 1>&6
13651 else
13652   
13653     
13654     ac_ext=C
13655 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13656 ac_cpp='$CXXCPP $CPPFLAGS'
13657 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13658 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13659 cross_compiling=$ac_cv_prog_cxx_cross
13660
13661     cat > conftest.$ac_ext <<EOF
13662 #line 13663 "configure"
13663 #include "confdefs.h"
13664 #include <math.h>
13665 int main() {
13666  `for x in ceilf floorf; do echo "$x (0);"; done` 
13667 ; return 0; }
13668 EOF
13669 if { (eval echo configure:13670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13670   rm -rf conftest*
13671   glibcpp_cv_func_float_round_use=yes
13672 else
13673   echo "configure: failed program was:" >&5
13674   cat conftest.$ac_ext >&5
13675   rm -rf conftest*
13676   glibcpp_cv_func_float_round_use=no
13677 fi
13678 rm -f conftest*
13679     ac_ext=c
13680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13681 ac_cpp='$CPP $CPPFLAGS'
13682 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13683 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13684 cross_compiling=$ac_cv_prog_cc_cross
13685
13686 fi
13687
13688   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
13689   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
13690     for ac_func in ceilf floorf
13691 do
13692 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13693 echo "configure:13694: checking for $ac_func" >&5
13694 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13695   echo $ac_n "(cached) $ac_c" 1>&6
13696 else
13697   cat > conftest.$ac_ext <<EOF
13698 #line 13699 "configure"
13699 #include "confdefs.h"
13700 /* System header to define __stub macros and hopefully few prototypes,
13701     which can conflict with char $ac_func(); below.  */
13702 #include <assert.h>
13703 /* Override any gcc2 internal prototype to avoid an error.  */
13704 /* We use char because int might match the return type of a gcc2
13705     builtin and then its argument prototype would still apply.  */
13706 char $ac_func();
13707
13708 int main() {
13709
13710 /* The GNU C library defines this for functions which it implements
13711     to always fail with ENOSYS.  Some functions are actually named
13712     something starting with __ and the normal name is an alias.  */
13713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13714 choke me
13715 #else
13716 $ac_func();
13717 #endif
13718
13719 ; return 0; }
13720 EOF
13721 if { (eval echo configure:13722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13722   rm -rf conftest*
13723   eval "ac_cv_func_$ac_func=yes"
13724 else
13725   echo "configure: failed program was:" >&5
13726   cat conftest.$ac_ext >&5
13727   rm -rf conftest*
13728   eval "ac_cv_func_$ac_func=no"
13729 fi
13730 rm -f conftest*
13731 fi
13732
13733 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13734   echo "$ac_t""yes" 1>&6
13735     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13736   cat >> confdefs.h <<EOF
13737 #define $ac_tr_func 1
13738 EOF
13739  
13740 else
13741   echo "$ac_t""no" 1>&6
13742 fi
13743 done
13744
13745   fi
13746
13747   
13748   
13749   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
13750 echo "configure:13751: checking for expf declaration" >&5
13751   if test x${glibcpp_cv_func_expf_use+set} != xset; then
13752     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
13753   echo $ac_n "(cached) $ac_c" 1>&6
13754 else
13755   
13756       
13757       ac_ext=C
13758 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13759 ac_cpp='$CXXCPP $CPPFLAGS'
13760 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13761 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13762 cross_compiling=$ac_cv_prog_cxx_cross
13763
13764       cat > conftest.$ac_ext <<EOF
13765 #line 13766 "configure"
13766 #include "confdefs.h"
13767 #include <math.h>
13768                       #ifdef HAVE_IEEEFP_H
13769                       #include <ieeefp.h>
13770                       #endif
13771                      
13772 int main() {
13773  expf(0);
13774 ; return 0; }
13775 EOF
13776 if { (eval echo configure:13777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13777   rm -rf conftest*
13778   glibcpp_cv_func_expf_use=yes
13779 else
13780   echo "configure: failed program was:" >&5
13781   cat conftest.$ac_ext >&5
13782   rm -rf conftest*
13783   glibcpp_cv_func_expf_use=no
13784 fi
13785 rm -f conftest*
13786       ac_ext=c
13787 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13788 ac_cpp='$CPP $CPPFLAGS'
13789 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13790 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13791 cross_compiling=$ac_cv_prog_cc_cross
13792
13793     
13794 fi
13795
13796   fi
13797   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
13798
13799   if test x$glibcpp_cv_func_expf_use = x"yes"; then
13800     for ac_func in expf
13801 do
13802 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13803 echo "configure:13804: checking for $ac_func" >&5
13804 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13805   echo $ac_n "(cached) $ac_c" 1>&6
13806 else
13807   cat > conftest.$ac_ext <<EOF
13808 #line 13809 "configure"
13809 #include "confdefs.h"
13810 /* System header to define __stub macros and hopefully few prototypes,
13811     which can conflict with char $ac_func(); below.  */
13812 #include <assert.h>
13813 /* Override any gcc2 internal prototype to avoid an error.  */
13814 /* We use char because int might match the return type of a gcc2
13815     builtin and then its argument prototype would still apply.  */
13816 char $ac_func();
13817
13818 int main() {
13819
13820 /* The GNU C library defines this for functions which it implements
13821     to always fail with ENOSYS.  Some functions are actually named
13822     something starting with __ and the normal name is an alias.  */
13823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13824 choke me
13825 #else
13826 $ac_func();
13827 #endif
13828
13829 ; return 0; }
13830 EOF
13831 if { (eval echo configure:13832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13832   rm -rf conftest*
13833   eval "ac_cv_func_$ac_func=yes"
13834 else
13835   echo "configure: failed program was:" >&5
13836   cat conftest.$ac_ext >&5
13837   rm -rf conftest*
13838   eval "ac_cv_func_$ac_func=no"
13839 fi
13840 rm -f conftest*
13841 fi
13842
13843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13844   echo "$ac_t""yes" 1>&6
13845     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13846   cat >> confdefs.h <<EOF
13847 #define $ac_tr_func 1
13848 EOF
13849  
13850 else
13851   echo "$ac_t""no" 1>&6
13852 fi
13853 done
13854     
13855   else
13856     
13857   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
13858 echo "configure:13859: checking for _expf declaration" >&5
13859   if test x${glibcpp_cv_func__expf_use+set} != xset; then
13860     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
13861   echo $ac_n "(cached) $ac_c" 1>&6
13862 else
13863   
13864       
13865       ac_ext=C
13866 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13867 ac_cpp='$CXXCPP $CPPFLAGS'
13868 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13869 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13870 cross_compiling=$ac_cv_prog_cxx_cross
13871
13872       cat > conftest.$ac_ext <<EOF
13873 #line 13874 "configure"
13874 #include "confdefs.h"
13875 #include <math.h>
13876                       #ifdef HAVE_IEEEFP_H
13877                       #include <ieeefp.h>
13878                       #endif
13879                      
13880 int main() {
13881  _expf(0);
13882 ; return 0; }
13883 EOF
13884 if { (eval echo configure:13885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13885   rm -rf conftest*
13886   glibcpp_cv_func__expf_use=yes
13887 else
13888   echo "configure: failed program was:" >&5
13889   cat conftest.$ac_ext >&5
13890   rm -rf conftest*
13891   glibcpp_cv_func__expf_use=no
13892 fi
13893 rm -f conftest*
13894       ac_ext=c
13895 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13896 ac_cpp='$CPP $CPPFLAGS'
13897 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13898 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13899 cross_compiling=$ac_cv_prog_cc_cross
13900
13901     
13902 fi
13903
13904   fi
13905   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
13906
13907     if test x$glibcpp_cv_func__expf_use = x"yes"; then
13908       for ac_func in _expf
13909 do
13910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13911 echo "configure:13912: checking for $ac_func" >&5
13912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13913   echo $ac_n "(cached) $ac_c" 1>&6
13914 else
13915   cat > conftest.$ac_ext <<EOF
13916 #line 13917 "configure"
13917 #include "confdefs.h"
13918 /* System header to define __stub macros and hopefully few prototypes,
13919     which can conflict with char $ac_func(); below.  */
13920 #include <assert.h>
13921 /* Override any gcc2 internal prototype to avoid an error.  */
13922 /* We use char because int might match the return type of a gcc2
13923     builtin and then its argument prototype would still apply.  */
13924 char $ac_func();
13925
13926 int main() {
13927
13928 /* The GNU C library defines this for functions which it implements
13929     to always fail with ENOSYS.  Some functions are actually named
13930     something starting with __ and the normal name is an alias.  */
13931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13932 choke me
13933 #else
13934 $ac_func();
13935 #endif
13936
13937 ; return 0; }
13938 EOF
13939 if { (eval echo configure:13940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13940   rm -rf conftest*
13941   eval "ac_cv_func_$ac_func=yes"
13942 else
13943   echo "configure: failed program was:" >&5
13944   cat conftest.$ac_ext >&5
13945   rm -rf conftest*
13946   eval "ac_cv_func_$ac_func=no"
13947 fi
13948 rm -f conftest*
13949 fi
13950
13951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13952   echo "$ac_t""yes" 1>&6
13953     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13954   cat >> confdefs.h <<EOF
13955 #define $ac_tr_func 1
13956 EOF
13957  
13958 else
13959   echo "$ac_t""no" 1>&6
13960 fi
13961 done
13962     
13963     fi
13964   fi
13965
13966   
13967   
13968   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
13969 echo "configure:13970: checking for isnanf declaration" >&5
13970   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
13971     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
13972   echo $ac_n "(cached) $ac_c" 1>&6
13973 else
13974   
13975       
13976       ac_ext=C
13977 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13978 ac_cpp='$CXXCPP $CPPFLAGS'
13979 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13980 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13981 cross_compiling=$ac_cv_prog_cxx_cross
13982
13983       cat > conftest.$ac_ext <<EOF
13984 #line 13985 "configure"
13985 #include "confdefs.h"
13986 #include <math.h>
13987                       #ifdef HAVE_IEEEFP_H
13988                       #include <ieeefp.h>
13989                       #endif
13990                      
13991 int main() {
13992  isnanf(0);
13993 ; return 0; }
13994 EOF
13995 if { (eval echo configure:13996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13996   rm -rf conftest*
13997   glibcpp_cv_func_isnanf_use=yes
13998 else
13999   echo "configure: failed program was:" >&5
14000   cat conftest.$ac_ext >&5
14001   rm -rf conftest*
14002   glibcpp_cv_func_isnanf_use=no
14003 fi
14004 rm -f conftest*
14005       ac_ext=c
14006 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14007 ac_cpp='$CPP $CPPFLAGS'
14008 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14009 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14010 cross_compiling=$ac_cv_prog_cc_cross
14011
14012     
14013 fi
14014
14015   fi
14016   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
14017
14018   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
14019     for ac_func in isnanf
14020 do
14021 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14022 echo "configure:14023: checking for $ac_func" >&5
14023 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14024   echo $ac_n "(cached) $ac_c" 1>&6
14025 else
14026   cat > conftest.$ac_ext <<EOF
14027 #line 14028 "configure"
14028 #include "confdefs.h"
14029 /* System header to define __stub macros and hopefully few prototypes,
14030     which can conflict with char $ac_func(); below.  */
14031 #include <assert.h>
14032 /* Override any gcc2 internal prototype to avoid an error.  */
14033 /* We use char because int might match the return type of a gcc2
14034     builtin and then its argument prototype would still apply.  */
14035 char $ac_func();
14036
14037 int main() {
14038
14039 /* The GNU C library defines this for functions which it implements
14040     to always fail with ENOSYS.  Some functions are actually named
14041     something starting with __ and the normal name is an alias.  */
14042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14043 choke me
14044 #else
14045 $ac_func();
14046 #endif
14047
14048 ; return 0; }
14049 EOF
14050 if { (eval echo configure:14051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14051   rm -rf conftest*
14052   eval "ac_cv_func_$ac_func=yes"
14053 else
14054   echo "configure: failed program was:" >&5
14055   cat conftest.$ac_ext >&5
14056   rm -rf conftest*
14057   eval "ac_cv_func_$ac_func=no"
14058 fi
14059 rm -f conftest*
14060 fi
14061
14062 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14063   echo "$ac_t""yes" 1>&6
14064     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14065   cat >> confdefs.h <<EOF
14066 #define $ac_tr_func 1
14067 EOF
14068  
14069 else
14070   echo "$ac_t""no" 1>&6
14071 fi
14072 done
14073     
14074   else
14075     
14076   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
14077 echo "configure:14078: checking for _isnanf declaration" >&5
14078   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
14079     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
14080   echo $ac_n "(cached) $ac_c" 1>&6
14081 else
14082   
14083       
14084       ac_ext=C
14085 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14086 ac_cpp='$CXXCPP $CPPFLAGS'
14087 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14088 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14089 cross_compiling=$ac_cv_prog_cxx_cross
14090
14091       cat > conftest.$ac_ext <<EOF
14092 #line 14093 "configure"
14093 #include "confdefs.h"
14094 #include <math.h>
14095                       #ifdef HAVE_IEEEFP_H
14096                       #include <ieeefp.h>
14097                       #endif
14098                      
14099 int main() {
14100  _isnanf(0);
14101 ; return 0; }
14102 EOF
14103 if { (eval echo configure:14104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14104   rm -rf conftest*
14105   glibcpp_cv_func__isnanf_use=yes
14106 else
14107   echo "configure: failed program was:" >&5
14108   cat conftest.$ac_ext >&5
14109   rm -rf conftest*
14110   glibcpp_cv_func__isnanf_use=no
14111 fi
14112 rm -f conftest*
14113       ac_ext=c
14114 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14115 ac_cpp='$CPP $CPPFLAGS'
14116 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14117 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14118 cross_compiling=$ac_cv_prog_cc_cross
14119
14120     
14121 fi
14122
14123   fi
14124   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
14125
14126     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
14127       for ac_func in _isnanf
14128 do
14129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14130 echo "configure:14131: checking for $ac_func" >&5
14131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14132   echo $ac_n "(cached) $ac_c" 1>&6
14133 else
14134   cat > conftest.$ac_ext <<EOF
14135 #line 14136 "configure"
14136 #include "confdefs.h"
14137 /* System header to define __stub macros and hopefully few prototypes,
14138     which can conflict with char $ac_func(); below.  */
14139 #include <assert.h>
14140 /* Override any gcc2 internal prototype to avoid an error.  */
14141 /* We use char because int might match the return type of a gcc2
14142     builtin and then its argument prototype would still apply.  */
14143 char $ac_func();
14144
14145 int main() {
14146
14147 /* The GNU C library defines this for functions which it implements
14148     to always fail with ENOSYS.  Some functions are actually named
14149     something starting with __ and the normal name is an alias.  */
14150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14151 choke me
14152 #else
14153 $ac_func();
14154 #endif
14155
14156 ; return 0; }
14157 EOF
14158 if { (eval echo configure:14159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14159   rm -rf conftest*
14160   eval "ac_cv_func_$ac_func=yes"
14161 else
14162   echo "configure: failed program was:" >&5
14163   cat conftest.$ac_ext >&5
14164   rm -rf conftest*
14165   eval "ac_cv_func_$ac_func=no"
14166 fi
14167 rm -f conftest*
14168 fi
14169
14170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14171   echo "$ac_t""yes" 1>&6
14172     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14173   cat >> confdefs.h <<EOF
14174 #define $ac_tr_func 1
14175 EOF
14176  
14177 else
14178   echo "$ac_t""no" 1>&6
14179 fi
14180 done
14181     
14182     fi
14183   fi
14184
14185   
14186   
14187   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
14188 echo "configure:14189: checking for isinff declaration" >&5
14189   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
14190     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
14191   echo $ac_n "(cached) $ac_c" 1>&6
14192 else
14193   
14194       
14195       ac_ext=C
14196 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14197 ac_cpp='$CXXCPP $CPPFLAGS'
14198 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14199 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14200 cross_compiling=$ac_cv_prog_cxx_cross
14201
14202       cat > conftest.$ac_ext <<EOF
14203 #line 14204 "configure"
14204 #include "confdefs.h"
14205 #include <math.h>
14206                       #ifdef HAVE_IEEEFP_H
14207                       #include <ieeefp.h>
14208                       #endif
14209                      
14210 int main() {
14211  isinff(0);
14212 ; return 0; }
14213 EOF
14214 if { (eval echo configure:14215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14215   rm -rf conftest*
14216   glibcpp_cv_func_isinff_use=yes
14217 else
14218   echo "configure: failed program was:" >&5
14219   cat conftest.$ac_ext >&5
14220   rm -rf conftest*
14221   glibcpp_cv_func_isinff_use=no
14222 fi
14223 rm -f conftest*
14224       ac_ext=c
14225 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14226 ac_cpp='$CPP $CPPFLAGS'
14227 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14228 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14229 cross_compiling=$ac_cv_prog_cc_cross
14230
14231     
14232 fi
14233
14234   fi
14235   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
14236
14237   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
14238     for ac_func in isinff
14239 do
14240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14241 echo "configure:14242: checking for $ac_func" >&5
14242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14243   echo $ac_n "(cached) $ac_c" 1>&6
14244 else
14245   cat > conftest.$ac_ext <<EOF
14246 #line 14247 "configure"
14247 #include "confdefs.h"
14248 /* System header to define __stub macros and hopefully few prototypes,
14249     which can conflict with char $ac_func(); below.  */
14250 #include <assert.h>
14251 /* Override any gcc2 internal prototype to avoid an error.  */
14252 /* We use char because int might match the return type of a gcc2
14253     builtin and then its argument prototype would still apply.  */
14254 char $ac_func();
14255
14256 int main() {
14257
14258 /* The GNU C library defines this for functions which it implements
14259     to always fail with ENOSYS.  Some functions are actually named
14260     something starting with __ and the normal name is an alias.  */
14261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14262 choke me
14263 #else
14264 $ac_func();
14265 #endif
14266
14267 ; return 0; }
14268 EOF
14269 if { (eval echo configure:14270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14270   rm -rf conftest*
14271   eval "ac_cv_func_$ac_func=yes"
14272 else
14273   echo "configure: failed program was:" >&5
14274   cat conftest.$ac_ext >&5
14275   rm -rf conftest*
14276   eval "ac_cv_func_$ac_func=no"
14277 fi
14278 rm -f conftest*
14279 fi
14280
14281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14282   echo "$ac_t""yes" 1>&6
14283     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14284   cat >> confdefs.h <<EOF
14285 #define $ac_tr_func 1
14286 EOF
14287  
14288 else
14289   echo "$ac_t""no" 1>&6
14290 fi
14291 done
14292     
14293   else
14294     
14295   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
14296 echo "configure:14297: checking for _isinff declaration" >&5
14297   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
14298     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
14299   echo $ac_n "(cached) $ac_c" 1>&6
14300 else
14301   
14302       
14303       ac_ext=C
14304 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14305 ac_cpp='$CXXCPP $CPPFLAGS'
14306 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14307 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14308 cross_compiling=$ac_cv_prog_cxx_cross
14309
14310       cat > conftest.$ac_ext <<EOF
14311 #line 14312 "configure"
14312 #include "confdefs.h"
14313 #include <math.h>
14314                       #ifdef HAVE_IEEEFP_H
14315                       #include <ieeefp.h>
14316                       #endif
14317                      
14318 int main() {
14319  _isinff(0);
14320 ; return 0; }
14321 EOF
14322 if { (eval echo configure:14323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14323   rm -rf conftest*
14324   glibcpp_cv_func__isinff_use=yes
14325 else
14326   echo "configure: failed program was:" >&5
14327   cat conftest.$ac_ext >&5
14328   rm -rf conftest*
14329   glibcpp_cv_func__isinff_use=no
14330 fi
14331 rm -f conftest*
14332       ac_ext=c
14333 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14334 ac_cpp='$CPP $CPPFLAGS'
14335 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14336 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14337 cross_compiling=$ac_cv_prog_cc_cross
14338
14339     
14340 fi
14341
14342   fi
14343   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
14344
14345     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
14346       for ac_func in _isinff
14347 do
14348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14349 echo "configure:14350: checking for $ac_func" >&5
14350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14351   echo $ac_n "(cached) $ac_c" 1>&6
14352 else
14353   cat > conftest.$ac_ext <<EOF
14354 #line 14355 "configure"
14355 #include "confdefs.h"
14356 /* System header to define __stub macros and hopefully few prototypes,
14357     which can conflict with char $ac_func(); below.  */
14358 #include <assert.h>
14359 /* Override any gcc2 internal prototype to avoid an error.  */
14360 /* We use char because int might match the return type of a gcc2
14361     builtin and then its argument prototype would still apply.  */
14362 char $ac_func();
14363
14364 int main() {
14365
14366 /* The GNU C library defines this for functions which it implements
14367     to always fail with ENOSYS.  Some functions are actually named
14368     something starting with __ and the normal name is an alias.  */
14369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14370 choke me
14371 #else
14372 $ac_func();
14373 #endif
14374
14375 ; return 0; }
14376 EOF
14377 if { (eval echo configure:14378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14378   rm -rf conftest*
14379   eval "ac_cv_func_$ac_func=yes"
14380 else
14381   echo "configure: failed program was:" >&5
14382   cat conftest.$ac_ext >&5
14383   rm -rf conftest*
14384   eval "ac_cv_func_$ac_func=no"
14385 fi
14386 rm -f conftest*
14387 fi
14388
14389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14390   echo "$ac_t""yes" 1>&6
14391     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14392   cat >> confdefs.h <<EOF
14393 #define $ac_tr_func 1
14394 EOF
14395  
14396 else
14397   echo "$ac_t""no" 1>&6
14398 fi
14399 done
14400     
14401     fi
14402   fi
14403
14404   
14405   
14406   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
14407 echo "configure:14408: checking for atan2f declaration" >&5
14408   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
14409     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
14410   echo $ac_n "(cached) $ac_c" 1>&6
14411 else
14412   
14413       
14414       ac_ext=C
14415 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14416 ac_cpp='$CXXCPP $CPPFLAGS'
14417 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14418 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14419 cross_compiling=$ac_cv_prog_cxx_cross
14420
14421       cat > conftest.$ac_ext <<EOF
14422 #line 14423 "configure"
14423 #include "confdefs.h"
14424 #include <math.h>
14425 int main() {
14426  atan2f(0, 0);
14427 ; return 0; }
14428 EOF
14429 if { (eval echo configure:14430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14430   rm -rf conftest*
14431   glibcpp_cv_func_atan2f_use=yes
14432 else
14433   echo "configure: failed program was:" >&5
14434   cat conftest.$ac_ext >&5
14435   rm -rf conftest*
14436   glibcpp_cv_func_atan2f_use=no
14437 fi
14438 rm -f conftest*
14439       ac_ext=c
14440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14441 ac_cpp='$CPP $CPPFLAGS'
14442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14444 cross_compiling=$ac_cv_prog_cc_cross
14445
14446     
14447 fi
14448
14449   fi
14450   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
14451
14452   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
14453     for ac_func in atan2f
14454 do
14455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14456 echo "configure:14457: checking for $ac_func" >&5
14457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14458   echo $ac_n "(cached) $ac_c" 1>&6
14459 else
14460   cat > conftest.$ac_ext <<EOF
14461 #line 14462 "configure"
14462 #include "confdefs.h"
14463 /* System header to define __stub macros and hopefully few prototypes,
14464     which can conflict with char $ac_func(); below.  */
14465 #include <assert.h>
14466 /* Override any gcc2 internal prototype to avoid an error.  */
14467 /* We use char because int might match the return type of a gcc2
14468     builtin and then its argument prototype would still apply.  */
14469 char $ac_func();
14470
14471 int main() {
14472
14473 /* The GNU C library defines this for functions which it implements
14474     to always fail with ENOSYS.  Some functions are actually named
14475     something starting with __ and the normal name is an alias.  */
14476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14477 choke me
14478 #else
14479 $ac_func();
14480 #endif
14481
14482 ; return 0; }
14483 EOF
14484 if { (eval echo configure:14485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14485   rm -rf conftest*
14486   eval "ac_cv_func_$ac_func=yes"
14487 else
14488   echo "configure: failed program was:" >&5
14489   cat conftest.$ac_ext >&5
14490   rm -rf conftest*
14491   eval "ac_cv_func_$ac_func=no"
14492 fi
14493 rm -f conftest*
14494 fi
14495
14496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14497   echo "$ac_t""yes" 1>&6
14498     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14499   cat >> confdefs.h <<EOF
14500 #define $ac_tr_func 1
14501 EOF
14502  
14503 else
14504   echo "$ac_t""no" 1>&6
14505 fi
14506 done
14507     
14508   else
14509     
14510   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
14511 echo "configure:14512: checking for _atan2f declaration" >&5
14512   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
14513     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
14514   echo $ac_n "(cached) $ac_c" 1>&6
14515 else
14516   
14517       
14518       ac_ext=C
14519 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14520 ac_cpp='$CXXCPP $CPPFLAGS'
14521 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14522 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14523 cross_compiling=$ac_cv_prog_cxx_cross
14524
14525       cat > conftest.$ac_ext <<EOF
14526 #line 14527 "configure"
14527 #include "confdefs.h"
14528 #include <math.h>
14529 int main() {
14530  _atan2f(0, 0);
14531 ; return 0; }
14532 EOF
14533 if { (eval echo configure:14534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14534   rm -rf conftest*
14535   glibcpp_cv_func__atan2f_use=yes
14536 else
14537   echo "configure: failed program was:" >&5
14538   cat conftest.$ac_ext >&5
14539   rm -rf conftest*
14540   glibcpp_cv_func__atan2f_use=no
14541 fi
14542 rm -f conftest*
14543       ac_ext=c
14544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14545 ac_cpp='$CPP $CPPFLAGS'
14546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14548 cross_compiling=$ac_cv_prog_cc_cross
14549
14550     
14551 fi
14552
14553   fi
14554   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
14555
14556     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
14557       for ac_func in _atan2f
14558 do
14559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14560 echo "configure:14561: checking for $ac_func" >&5
14561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14562   echo $ac_n "(cached) $ac_c" 1>&6
14563 else
14564   cat > conftest.$ac_ext <<EOF
14565 #line 14566 "configure"
14566 #include "confdefs.h"
14567 /* System header to define __stub macros and hopefully few prototypes,
14568     which can conflict with char $ac_func(); below.  */
14569 #include <assert.h>
14570 /* Override any gcc2 internal prototype to avoid an error.  */
14571 /* We use char because int might match the return type of a gcc2
14572     builtin and then its argument prototype would still apply.  */
14573 char $ac_func();
14574
14575 int main() {
14576
14577 /* The GNU C library defines this for functions which it implements
14578     to always fail with ENOSYS.  Some functions are actually named
14579     something starting with __ and the normal name is an alias.  */
14580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14581 choke me
14582 #else
14583 $ac_func();
14584 #endif
14585
14586 ; return 0; }
14587 EOF
14588 if { (eval echo configure:14589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14589   rm -rf conftest*
14590   eval "ac_cv_func_$ac_func=yes"
14591 else
14592   echo "configure: failed program was:" >&5
14593   cat conftest.$ac_ext >&5
14594   rm -rf conftest*
14595   eval "ac_cv_func_$ac_func=no"
14596 fi
14597 rm -f conftest*
14598 fi
14599
14600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14601   echo "$ac_t""yes" 1>&6
14602     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14603   cat >> confdefs.h <<EOF
14604 #define $ac_tr_func 1
14605 EOF
14606  
14607 else
14608   echo "$ac_t""no" 1>&6
14609 fi
14610 done
14611     
14612     fi
14613   fi
14614
14615   
14616   
14617   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
14618 echo "configure:14619: checking for fabsf declaration" >&5
14619   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
14620     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
14621   echo $ac_n "(cached) $ac_c" 1>&6
14622 else
14623   
14624       
14625       ac_ext=C
14626 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14627 ac_cpp='$CXXCPP $CPPFLAGS'
14628 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14629 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14630 cross_compiling=$ac_cv_prog_cxx_cross
14631
14632       cat > conftest.$ac_ext <<EOF
14633 #line 14634 "configure"
14634 #include "confdefs.h"
14635 #include <math.h>
14636                       #ifdef HAVE_IEEEFP_H
14637                       #include <ieeefp.h>
14638                       #endif
14639                      
14640 int main() {
14641  fabsf(0);
14642 ; return 0; }
14643 EOF
14644 if { (eval echo configure:14645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14645   rm -rf conftest*
14646   glibcpp_cv_func_fabsf_use=yes
14647 else
14648   echo "configure: failed program was:" >&5
14649   cat conftest.$ac_ext >&5
14650   rm -rf conftest*
14651   glibcpp_cv_func_fabsf_use=no
14652 fi
14653 rm -f conftest*
14654       ac_ext=c
14655 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14656 ac_cpp='$CPP $CPPFLAGS'
14657 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14658 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14659 cross_compiling=$ac_cv_prog_cc_cross
14660
14661     
14662 fi
14663
14664   fi
14665   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
14666
14667   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
14668     for ac_func in fabsf
14669 do
14670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14671 echo "configure:14672: checking for $ac_func" >&5
14672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14673   echo $ac_n "(cached) $ac_c" 1>&6
14674 else
14675   cat > conftest.$ac_ext <<EOF
14676 #line 14677 "configure"
14677 #include "confdefs.h"
14678 /* System header to define __stub macros and hopefully few prototypes,
14679     which can conflict with char $ac_func(); below.  */
14680 #include <assert.h>
14681 /* Override any gcc2 internal prototype to avoid an error.  */
14682 /* We use char because int might match the return type of a gcc2
14683     builtin and then its argument prototype would still apply.  */
14684 char $ac_func();
14685
14686 int main() {
14687
14688 /* The GNU C library defines this for functions which it implements
14689     to always fail with ENOSYS.  Some functions are actually named
14690     something starting with __ and the normal name is an alias.  */
14691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14692 choke me
14693 #else
14694 $ac_func();
14695 #endif
14696
14697 ; return 0; }
14698 EOF
14699 if { (eval echo configure:14700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14700   rm -rf conftest*
14701   eval "ac_cv_func_$ac_func=yes"
14702 else
14703   echo "configure: failed program was:" >&5
14704   cat conftest.$ac_ext >&5
14705   rm -rf conftest*
14706   eval "ac_cv_func_$ac_func=no"
14707 fi
14708 rm -f conftest*
14709 fi
14710
14711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14712   echo "$ac_t""yes" 1>&6
14713     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14714   cat >> confdefs.h <<EOF
14715 #define $ac_tr_func 1
14716 EOF
14717  
14718 else
14719   echo "$ac_t""no" 1>&6
14720 fi
14721 done
14722     
14723   else
14724     
14725   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
14726 echo "configure:14727: checking for _fabsf declaration" >&5
14727   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
14728     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
14729   echo $ac_n "(cached) $ac_c" 1>&6
14730 else
14731   
14732       
14733       ac_ext=C
14734 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14735 ac_cpp='$CXXCPP $CPPFLAGS'
14736 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14737 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14738 cross_compiling=$ac_cv_prog_cxx_cross
14739
14740       cat > conftest.$ac_ext <<EOF
14741 #line 14742 "configure"
14742 #include "confdefs.h"
14743 #include <math.h>
14744                       #ifdef HAVE_IEEEFP_H
14745                       #include <ieeefp.h>
14746                       #endif
14747                      
14748 int main() {
14749  _fabsf(0);
14750 ; return 0; }
14751 EOF
14752 if { (eval echo configure:14753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14753   rm -rf conftest*
14754   glibcpp_cv_func__fabsf_use=yes
14755 else
14756   echo "configure: failed program was:" >&5
14757   cat conftest.$ac_ext >&5
14758   rm -rf conftest*
14759   glibcpp_cv_func__fabsf_use=no
14760 fi
14761 rm -f conftest*
14762       ac_ext=c
14763 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14764 ac_cpp='$CPP $CPPFLAGS'
14765 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14766 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14767 cross_compiling=$ac_cv_prog_cc_cross
14768
14769     
14770 fi
14771
14772   fi
14773   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
14774
14775     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
14776       for ac_func in _fabsf
14777 do
14778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14779 echo "configure:14780: checking for $ac_func" >&5
14780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14781   echo $ac_n "(cached) $ac_c" 1>&6
14782 else
14783   cat > conftest.$ac_ext <<EOF
14784 #line 14785 "configure"
14785 #include "confdefs.h"
14786 /* System header to define __stub macros and hopefully few prototypes,
14787     which can conflict with char $ac_func(); below.  */
14788 #include <assert.h>
14789 /* Override any gcc2 internal prototype to avoid an error.  */
14790 /* We use char because int might match the return type of a gcc2
14791     builtin and then its argument prototype would still apply.  */
14792 char $ac_func();
14793
14794 int main() {
14795
14796 /* The GNU C library defines this for functions which it implements
14797     to always fail with ENOSYS.  Some functions are actually named
14798     something starting with __ and the normal name is an alias.  */
14799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14800 choke me
14801 #else
14802 $ac_func();
14803 #endif
14804
14805 ; return 0; }
14806 EOF
14807 if { (eval echo configure:14808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14808   rm -rf conftest*
14809   eval "ac_cv_func_$ac_func=yes"
14810 else
14811   echo "configure: failed program was:" >&5
14812   cat conftest.$ac_ext >&5
14813   rm -rf conftest*
14814   eval "ac_cv_func_$ac_func=no"
14815 fi
14816 rm -f conftest*
14817 fi
14818
14819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14820   echo "$ac_t""yes" 1>&6
14821     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14822   cat >> confdefs.h <<EOF
14823 #define $ac_tr_func 1
14824 EOF
14825  
14826 else
14827   echo "$ac_t""no" 1>&6
14828 fi
14829 done
14830     
14831     fi
14832   fi
14833
14834   
14835   
14836   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
14837 echo "configure:14838: checking for fmodf declaration" >&5
14838   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
14839     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
14840   echo $ac_n "(cached) $ac_c" 1>&6
14841 else
14842   
14843       
14844       ac_ext=C
14845 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14846 ac_cpp='$CXXCPP $CPPFLAGS'
14847 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14848 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14849 cross_compiling=$ac_cv_prog_cxx_cross
14850
14851       cat > conftest.$ac_ext <<EOF
14852 #line 14853 "configure"
14853 #include "confdefs.h"
14854 #include <math.h>
14855 int main() {
14856  fmodf(0, 0);
14857 ; return 0; }
14858 EOF
14859 if { (eval echo configure:14860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14860   rm -rf conftest*
14861   glibcpp_cv_func_fmodf_use=yes
14862 else
14863   echo "configure: failed program was:" >&5
14864   cat conftest.$ac_ext >&5
14865   rm -rf conftest*
14866   glibcpp_cv_func_fmodf_use=no
14867 fi
14868 rm -f conftest*
14869       ac_ext=c
14870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14871 ac_cpp='$CPP $CPPFLAGS'
14872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14873 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14874 cross_compiling=$ac_cv_prog_cc_cross
14875
14876     
14877 fi
14878
14879   fi
14880   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
14881
14882   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
14883     for ac_func in fmodf
14884 do
14885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14886 echo "configure:14887: checking for $ac_func" >&5
14887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14888   echo $ac_n "(cached) $ac_c" 1>&6
14889 else
14890   cat > conftest.$ac_ext <<EOF
14891 #line 14892 "configure"
14892 #include "confdefs.h"
14893 /* System header to define __stub macros and hopefully few prototypes,
14894     which can conflict with char $ac_func(); below.  */
14895 #include <assert.h>
14896 /* Override any gcc2 internal prototype to avoid an error.  */
14897 /* We use char because int might match the return type of a gcc2
14898     builtin and then its argument prototype would still apply.  */
14899 char $ac_func();
14900
14901 int main() {
14902
14903 /* The GNU C library defines this for functions which it implements
14904     to always fail with ENOSYS.  Some functions are actually named
14905     something starting with __ and the normal name is an alias.  */
14906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14907 choke me
14908 #else
14909 $ac_func();
14910 #endif
14911
14912 ; return 0; }
14913 EOF
14914 if { (eval echo configure:14915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14915   rm -rf conftest*
14916   eval "ac_cv_func_$ac_func=yes"
14917 else
14918   echo "configure: failed program was:" >&5
14919   cat conftest.$ac_ext >&5
14920   rm -rf conftest*
14921   eval "ac_cv_func_$ac_func=no"
14922 fi
14923 rm -f conftest*
14924 fi
14925
14926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14927   echo "$ac_t""yes" 1>&6
14928     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14929   cat >> confdefs.h <<EOF
14930 #define $ac_tr_func 1
14931 EOF
14932  
14933 else
14934   echo "$ac_t""no" 1>&6
14935 fi
14936 done
14937     
14938   else
14939     
14940   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
14941 echo "configure:14942: checking for _fmodf declaration" >&5
14942   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
14943     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
14944   echo $ac_n "(cached) $ac_c" 1>&6
14945 else
14946   
14947       
14948       ac_ext=C
14949 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14950 ac_cpp='$CXXCPP $CPPFLAGS'
14951 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14952 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14953 cross_compiling=$ac_cv_prog_cxx_cross
14954
14955       cat > conftest.$ac_ext <<EOF
14956 #line 14957 "configure"
14957 #include "confdefs.h"
14958 #include <math.h>
14959 int main() {
14960  _fmodf(0, 0);
14961 ; return 0; }
14962 EOF
14963 if { (eval echo configure:14964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14964   rm -rf conftest*
14965   glibcpp_cv_func__fmodf_use=yes
14966 else
14967   echo "configure: failed program was:" >&5
14968   cat conftest.$ac_ext >&5
14969   rm -rf conftest*
14970   glibcpp_cv_func__fmodf_use=no
14971 fi
14972 rm -f conftest*
14973       ac_ext=c
14974 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14975 ac_cpp='$CPP $CPPFLAGS'
14976 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14977 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14978 cross_compiling=$ac_cv_prog_cc_cross
14979
14980     
14981 fi
14982
14983   fi
14984   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
14985
14986     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
14987       for ac_func in _fmodf
14988 do
14989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14990 echo "configure:14991: checking for $ac_func" >&5
14991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14992   echo $ac_n "(cached) $ac_c" 1>&6
14993 else
14994   cat > conftest.$ac_ext <<EOF
14995 #line 14996 "configure"
14996 #include "confdefs.h"
14997 /* System header to define __stub macros and hopefully few prototypes,
14998     which can conflict with char $ac_func(); below.  */
14999 #include <assert.h>
15000 /* Override any gcc2 internal prototype to avoid an error.  */
15001 /* We use char because int might match the return type of a gcc2
15002     builtin and then its argument prototype would still apply.  */
15003 char $ac_func();
15004
15005 int main() {
15006
15007 /* The GNU C library defines this for functions which it implements
15008     to always fail with ENOSYS.  Some functions are actually named
15009     something starting with __ and the normal name is an alias.  */
15010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15011 choke me
15012 #else
15013 $ac_func();
15014 #endif
15015
15016 ; return 0; }
15017 EOF
15018 if { (eval echo configure:15019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15019   rm -rf conftest*
15020   eval "ac_cv_func_$ac_func=yes"
15021 else
15022   echo "configure: failed program was:" >&5
15023   cat conftest.$ac_ext >&5
15024   rm -rf conftest*
15025   eval "ac_cv_func_$ac_func=no"
15026 fi
15027 rm -f conftest*
15028 fi
15029
15030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15031   echo "$ac_t""yes" 1>&6
15032     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15033   cat >> confdefs.h <<EOF
15034 #define $ac_tr_func 1
15035 EOF
15036  
15037 else
15038   echo "$ac_t""no" 1>&6
15039 fi
15040 done
15041     
15042     fi
15043   fi
15044
15045   
15046   
15047   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
15048 echo "configure:15049: checking for frexpf declaration" >&5
15049   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
15050     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
15051   echo $ac_n "(cached) $ac_c" 1>&6
15052 else
15053   
15054       
15055       ac_ext=C
15056 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15057 ac_cpp='$CXXCPP $CPPFLAGS'
15058 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15059 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15060 cross_compiling=$ac_cv_prog_cxx_cross
15061
15062       cat > conftest.$ac_ext <<EOF
15063 #line 15064 "configure"
15064 #include "confdefs.h"
15065 #include <math.h>
15066 int main() {
15067  frexpf(0, 0);
15068 ; return 0; }
15069 EOF
15070 if { (eval echo configure:15071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15071   rm -rf conftest*
15072   glibcpp_cv_func_frexpf_use=yes
15073 else
15074   echo "configure: failed program was:" >&5
15075   cat conftest.$ac_ext >&5
15076   rm -rf conftest*
15077   glibcpp_cv_func_frexpf_use=no
15078 fi
15079 rm -f conftest*
15080       ac_ext=c
15081 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15082 ac_cpp='$CPP $CPPFLAGS'
15083 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15084 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15085 cross_compiling=$ac_cv_prog_cc_cross
15086
15087     
15088 fi
15089
15090   fi
15091   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
15092
15093   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
15094     for ac_func in frexpf
15095 do
15096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15097 echo "configure:15098: checking for $ac_func" >&5
15098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15099   echo $ac_n "(cached) $ac_c" 1>&6
15100 else
15101   cat > conftest.$ac_ext <<EOF
15102 #line 15103 "configure"
15103 #include "confdefs.h"
15104 /* System header to define __stub macros and hopefully few prototypes,
15105     which can conflict with char $ac_func(); below.  */
15106 #include <assert.h>
15107 /* Override any gcc2 internal prototype to avoid an error.  */
15108 /* We use char because int might match the return type of a gcc2
15109     builtin and then its argument prototype would still apply.  */
15110 char $ac_func();
15111
15112 int main() {
15113
15114 /* The GNU C library defines this for functions which it implements
15115     to always fail with ENOSYS.  Some functions are actually named
15116     something starting with __ and the normal name is an alias.  */
15117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15118 choke me
15119 #else
15120 $ac_func();
15121 #endif
15122
15123 ; return 0; }
15124 EOF
15125 if { (eval echo configure:15126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15126   rm -rf conftest*
15127   eval "ac_cv_func_$ac_func=yes"
15128 else
15129   echo "configure: failed program was:" >&5
15130   cat conftest.$ac_ext >&5
15131   rm -rf conftest*
15132   eval "ac_cv_func_$ac_func=no"
15133 fi
15134 rm -f conftest*
15135 fi
15136
15137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15138   echo "$ac_t""yes" 1>&6
15139     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15140   cat >> confdefs.h <<EOF
15141 #define $ac_tr_func 1
15142 EOF
15143  
15144 else
15145   echo "$ac_t""no" 1>&6
15146 fi
15147 done
15148     
15149   else
15150     
15151   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
15152 echo "configure:15153: checking for _frexpf declaration" >&5
15153   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
15154     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
15155   echo $ac_n "(cached) $ac_c" 1>&6
15156 else
15157   
15158       
15159       ac_ext=C
15160 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15161 ac_cpp='$CXXCPP $CPPFLAGS'
15162 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15163 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15164 cross_compiling=$ac_cv_prog_cxx_cross
15165
15166       cat > conftest.$ac_ext <<EOF
15167 #line 15168 "configure"
15168 #include "confdefs.h"
15169 #include <math.h>
15170 int main() {
15171  _frexpf(0, 0);
15172 ; return 0; }
15173 EOF
15174 if { (eval echo configure:15175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15175   rm -rf conftest*
15176   glibcpp_cv_func__frexpf_use=yes
15177 else
15178   echo "configure: failed program was:" >&5
15179   cat conftest.$ac_ext >&5
15180   rm -rf conftest*
15181   glibcpp_cv_func__frexpf_use=no
15182 fi
15183 rm -f conftest*
15184       ac_ext=c
15185 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15186 ac_cpp='$CPP $CPPFLAGS'
15187 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15188 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15189 cross_compiling=$ac_cv_prog_cc_cross
15190
15191     
15192 fi
15193
15194   fi
15195   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
15196
15197     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
15198       for ac_func in _frexpf
15199 do
15200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15201 echo "configure:15202: checking for $ac_func" >&5
15202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15203   echo $ac_n "(cached) $ac_c" 1>&6
15204 else
15205   cat > conftest.$ac_ext <<EOF
15206 #line 15207 "configure"
15207 #include "confdefs.h"
15208 /* System header to define __stub macros and hopefully few prototypes,
15209     which can conflict with char $ac_func(); below.  */
15210 #include <assert.h>
15211 /* Override any gcc2 internal prototype to avoid an error.  */
15212 /* We use char because int might match the return type of a gcc2
15213     builtin and then its argument prototype would still apply.  */
15214 char $ac_func();
15215
15216 int main() {
15217
15218 /* The GNU C library defines this for functions which it implements
15219     to always fail with ENOSYS.  Some functions are actually named
15220     something starting with __ and the normal name is an alias.  */
15221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15222 choke me
15223 #else
15224 $ac_func();
15225 #endif
15226
15227 ; return 0; }
15228 EOF
15229 if { (eval echo configure:15230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15230   rm -rf conftest*
15231   eval "ac_cv_func_$ac_func=yes"
15232 else
15233   echo "configure: failed program was:" >&5
15234   cat conftest.$ac_ext >&5
15235   rm -rf conftest*
15236   eval "ac_cv_func_$ac_func=no"
15237 fi
15238 rm -f conftest*
15239 fi
15240
15241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15242   echo "$ac_t""yes" 1>&6
15243     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15244   cat >> confdefs.h <<EOF
15245 #define $ac_tr_func 1
15246 EOF
15247  
15248 else
15249   echo "$ac_t""no" 1>&6
15250 fi
15251 done
15252     
15253     fi
15254   fi
15255
15256   
15257   
15258   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
15259 echo "configure:15260: checking for hypotf declaration" >&5
15260   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
15261     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
15262   echo $ac_n "(cached) $ac_c" 1>&6
15263 else
15264   
15265       
15266       ac_ext=C
15267 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15268 ac_cpp='$CXXCPP $CPPFLAGS'
15269 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15270 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15271 cross_compiling=$ac_cv_prog_cxx_cross
15272
15273       cat > conftest.$ac_ext <<EOF
15274 #line 15275 "configure"
15275 #include "confdefs.h"
15276 #include <math.h>
15277 int main() {
15278  hypotf(0, 0);
15279 ; return 0; }
15280 EOF
15281 if { (eval echo configure:15282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15282   rm -rf conftest*
15283   glibcpp_cv_func_hypotf_use=yes
15284 else
15285   echo "configure: failed program was:" >&5
15286   cat conftest.$ac_ext >&5
15287   rm -rf conftest*
15288   glibcpp_cv_func_hypotf_use=no
15289 fi
15290 rm -f conftest*
15291       ac_ext=c
15292 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15293 ac_cpp='$CPP $CPPFLAGS'
15294 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15295 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15296 cross_compiling=$ac_cv_prog_cc_cross
15297
15298     
15299 fi
15300
15301   fi
15302   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
15303
15304   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
15305     for ac_func in hypotf
15306 do
15307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15308 echo "configure:15309: checking for $ac_func" >&5
15309 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15310   echo $ac_n "(cached) $ac_c" 1>&6
15311 else
15312   cat > conftest.$ac_ext <<EOF
15313 #line 15314 "configure"
15314 #include "confdefs.h"
15315 /* System header to define __stub macros and hopefully few prototypes,
15316     which can conflict with char $ac_func(); below.  */
15317 #include <assert.h>
15318 /* Override any gcc2 internal prototype to avoid an error.  */
15319 /* We use char because int might match the return type of a gcc2
15320     builtin and then its argument prototype would still apply.  */
15321 char $ac_func();
15322
15323 int main() {
15324
15325 /* The GNU C library defines this for functions which it implements
15326     to always fail with ENOSYS.  Some functions are actually named
15327     something starting with __ and the normal name is an alias.  */
15328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15329 choke me
15330 #else
15331 $ac_func();
15332 #endif
15333
15334 ; return 0; }
15335 EOF
15336 if { (eval echo configure:15337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15337   rm -rf conftest*
15338   eval "ac_cv_func_$ac_func=yes"
15339 else
15340   echo "configure: failed program was:" >&5
15341   cat conftest.$ac_ext >&5
15342   rm -rf conftest*
15343   eval "ac_cv_func_$ac_func=no"
15344 fi
15345 rm -f conftest*
15346 fi
15347
15348 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15349   echo "$ac_t""yes" 1>&6
15350     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15351   cat >> confdefs.h <<EOF
15352 #define $ac_tr_func 1
15353 EOF
15354  
15355 else
15356   echo "$ac_t""no" 1>&6
15357 fi
15358 done
15359     
15360   else
15361     
15362   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
15363 echo "configure:15364: checking for _hypotf declaration" >&5
15364   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
15365     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
15366   echo $ac_n "(cached) $ac_c" 1>&6
15367 else
15368   
15369       
15370       ac_ext=C
15371 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15372 ac_cpp='$CXXCPP $CPPFLAGS'
15373 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15374 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15375 cross_compiling=$ac_cv_prog_cxx_cross
15376
15377       cat > conftest.$ac_ext <<EOF
15378 #line 15379 "configure"
15379 #include "confdefs.h"
15380 #include <math.h>
15381 int main() {
15382  _hypotf(0, 0);
15383 ; return 0; }
15384 EOF
15385 if { (eval echo configure:15386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15386   rm -rf conftest*
15387   glibcpp_cv_func__hypotf_use=yes
15388 else
15389   echo "configure: failed program was:" >&5
15390   cat conftest.$ac_ext >&5
15391   rm -rf conftest*
15392   glibcpp_cv_func__hypotf_use=no
15393 fi
15394 rm -f conftest*
15395       ac_ext=c
15396 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15397 ac_cpp='$CPP $CPPFLAGS'
15398 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15399 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15400 cross_compiling=$ac_cv_prog_cc_cross
15401
15402     
15403 fi
15404
15405   fi
15406   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
15407
15408     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
15409       for ac_func in _hypotf
15410 do
15411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15412 echo "configure:15413: checking for $ac_func" >&5
15413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15414   echo $ac_n "(cached) $ac_c" 1>&6
15415 else
15416   cat > conftest.$ac_ext <<EOF
15417 #line 15418 "configure"
15418 #include "confdefs.h"
15419 /* System header to define __stub macros and hopefully few prototypes,
15420     which can conflict with char $ac_func(); below.  */
15421 #include <assert.h>
15422 /* Override any gcc2 internal prototype to avoid an error.  */
15423 /* We use char because int might match the return type of a gcc2
15424     builtin and then its argument prototype would still apply.  */
15425 char $ac_func();
15426
15427 int main() {
15428
15429 /* The GNU C library defines this for functions which it implements
15430     to always fail with ENOSYS.  Some functions are actually named
15431     something starting with __ and the normal name is an alias.  */
15432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15433 choke me
15434 #else
15435 $ac_func();
15436 #endif
15437
15438 ; return 0; }
15439 EOF
15440 if { (eval echo configure:15441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15441   rm -rf conftest*
15442   eval "ac_cv_func_$ac_func=yes"
15443 else
15444   echo "configure: failed program was:" >&5
15445   cat conftest.$ac_ext >&5
15446   rm -rf conftest*
15447   eval "ac_cv_func_$ac_func=no"
15448 fi
15449 rm -f conftest*
15450 fi
15451
15452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15453   echo "$ac_t""yes" 1>&6
15454     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15455   cat >> confdefs.h <<EOF
15456 #define $ac_tr_func 1
15457 EOF
15458  
15459 else
15460   echo "$ac_t""no" 1>&6
15461 fi
15462 done
15463     
15464     fi
15465   fi
15466
15467   
15468   
15469   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
15470 echo "configure:15471: checking for ldexpf declaration" >&5
15471   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
15472     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
15473   echo $ac_n "(cached) $ac_c" 1>&6
15474 else
15475   
15476       
15477       ac_ext=C
15478 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15479 ac_cpp='$CXXCPP $CPPFLAGS'
15480 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15481 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15482 cross_compiling=$ac_cv_prog_cxx_cross
15483
15484       cat > conftest.$ac_ext <<EOF
15485 #line 15486 "configure"
15486 #include "confdefs.h"
15487 #include <math.h>
15488 int main() {
15489  ldexpf(0, 0);
15490 ; return 0; }
15491 EOF
15492 if { (eval echo configure:15493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15493   rm -rf conftest*
15494   glibcpp_cv_func_ldexpf_use=yes
15495 else
15496   echo "configure: failed program was:" >&5
15497   cat conftest.$ac_ext >&5
15498   rm -rf conftest*
15499   glibcpp_cv_func_ldexpf_use=no
15500 fi
15501 rm -f conftest*
15502       ac_ext=c
15503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15504 ac_cpp='$CPP $CPPFLAGS'
15505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15507 cross_compiling=$ac_cv_prog_cc_cross
15508
15509     
15510 fi
15511
15512   fi
15513   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
15514
15515   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
15516     for ac_func in ldexpf
15517 do
15518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15519 echo "configure:15520: checking for $ac_func" >&5
15520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15521   echo $ac_n "(cached) $ac_c" 1>&6
15522 else
15523   cat > conftest.$ac_ext <<EOF
15524 #line 15525 "configure"
15525 #include "confdefs.h"
15526 /* System header to define __stub macros and hopefully few prototypes,
15527     which can conflict with char $ac_func(); below.  */
15528 #include <assert.h>
15529 /* Override any gcc2 internal prototype to avoid an error.  */
15530 /* We use char because int might match the return type of a gcc2
15531     builtin and then its argument prototype would still apply.  */
15532 char $ac_func();
15533
15534 int main() {
15535
15536 /* The GNU C library defines this for functions which it implements
15537     to always fail with ENOSYS.  Some functions are actually named
15538     something starting with __ and the normal name is an alias.  */
15539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15540 choke me
15541 #else
15542 $ac_func();
15543 #endif
15544
15545 ; return 0; }
15546 EOF
15547 if { (eval echo configure:15548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15548   rm -rf conftest*
15549   eval "ac_cv_func_$ac_func=yes"
15550 else
15551   echo "configure: failed program was:" >&5
15552   cat conftest.$ac_ext >&5
15553   rm -rf conftest*
15554   eval "ac_cv_func_$ac_func=no"
15555 fi
15556 rm -f conftest*
15557 fi
15558
15559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15560   echo "$ac_t""yes" 1>&6
15561     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15562   cat >> confdefs.h <<EOF
15563 #define $ac_tr_func 1
15564 EOF
15565  
15566 else
15567   echo "$ac_t""no" 1>&6
15568 fi
15569 done
15570     
15571   else
15572     
15573   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
15574 echo "configure:15575: checking for _ldexpf declaration" >&5
15575   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
15576     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
15577   echo $ac_n "(cached) $ac_c" 1>&6
15578 else
15579   
15580       
15581       ac_ext=C
15582 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15583 ac_cpp='$CXXCPP $CPPFLAGS'
15584 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15585 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15586 cross_compiling=$ac_cv_prog_cxx_cross
15587
15588       cat > conftest.$ac_ext <<EOF
15589 #line 15590 "configure"
15590 #include "confdefs.h"
15591 #include <math.h>
15592 int main() {
15593  _ldexpf(0, 0);
15594 ; return 0; }
15595 EOF
15596 if { (eval echo configure:15597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15597   rm -rf conftest*
15598   glibcpp_cv_func__ldexpf_use=yes
15599 else
15600   echo "configure: failed program was:" >&5
15601   cat conftest.$ac_ext >&5
15602   rm -rf conftest*
15603   glibcpp_cv_func__ldexpf_use=no
15604 fi
15605 rm -f conftest*
15606       ac_ext=c
15607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15608 ac_cpp='$CPP $CPPFLAGS'
15609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15610 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15611 cross_compiling=$ac_cv_prog_cc_cross
15612
15613     
15614 fi
15615
15616   fi
15617   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
15618
15619     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
15620       for ac_func in _ldexpf
15621 do
15622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15623 echo "configure:15624: checking for $ac_func" >&5
15624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15625   echo $ac_n "(cached) $ac_c" 1>&6
15626 else
15627   cat > conftest.$ac_ext <<EOF
15628 #line 15629 "configure"
15629 #include "confdefs.h"
15630 /* System header to define __stub macros and hopefully few prototypes,
15631     which can conflict with char $ac_func(); below.  */
15632 #include <assert.h>
15633 /* Override any gcc2 internal prototype to avoid an error.  */
15634 /* We use char because int might match the return type of a gcc2
15635     builtin and then its argument prototype would still apply.  */
15636 char $ac_func();
15637
15638 int main() {
15639
15640 /* The GNU C library defines this for functions which it implements
15641     to always fail with ENOSYS.  Some functions are actually named
15642     something starting with __ and the normal name is an alias.  */
15643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15644 choke me
15645 #else
15646 $ac_func();
15647 #endif
15648
15649 ; return 0; }
15650 EOF
15651 if { (eval echo configure:15652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15652   rm -rf conftest*
15653   eval "ac_cv_func_$ac_func=yes"
15654 else
15655   echo "configure: failed program was:" >&5
15656   cat conftest.$ac_ext >&5
15657   rm -rf conftest*
15658   eval "ac_cv_func_$ac_func=no"
15659 fi
15660 rm -f conftest*
15661 fi
15662
15663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15664   echo "$ac_t""yes" 1>&6
15665     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15666   cat >> confdefs.h <<EOF
15667 #define $ac_tr_func 1
15668 EOF
15669  
15670 else
15671   echo "$ac_t""no" 1>&6
15672 fi
15673 done
15674     
15675     fi
15676   fi
15677
15678   
15679   
15680   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
15681 echo "configure:15682: checking for logf declaration" >&5
15682   if test x${glibcpp_cv_func_logf_use+set} != xset; then
15683     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
15684   echo $ac_n "(cached) $ac_c" 1>&6
15685 else
15686   
15687       
15688       ac_ext=C
15689 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15690 ac_cpp='$CXXCPP $CPPFLAGS'
15691 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15692 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15693 cross_compiling=$ac_cv_prog_cxx_cross
15694
15695       cat > conftest.$ac_ext <<EOF
15696 #line 15697 "configure"
15697 #include "confdefs.h"
15698 #include <math.h>
15699                       #ifdef HAVE_IEEEFP_H
15700                       #include <ieeefp.h>
15701                       #endif
15702                      
15703 int main() {
15704  logf(0);
15705 ; return 0; }
15706 EOF
15707 if { (eval echo configure:15708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15708   rm -rf conftest*
15709   glibcpp_cv_func_logf_use=yes
15710 else
15711   echo "configure: failed program was:" >&5
15712   cat conftest.$ac_ext >&5
15713   rm -rf conftest*
15714   glibcpp_cv_func_logf_use=no
15715 fi
15716 rm -f conftest*
15717       ac_ext=c
15718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15719 ac_cpp='$CPP $CPPFLAGS'
15720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15722 cross_compiling=$ac_cv_prog_cc_cross
15723
15724     
15725 fi
15726
15727   fi
15728   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
15729
15730   if test x$glibcpp_cv_func_logf_use = x"yes"; then
15731     for ac_func in logf
15732 do
15733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15734 echo "configure:15735: checking for $ac_func" >&5
15735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15736   echo $ac_n "(cached) $ac_c" 1>&6
15737 else
15738   cat > conftest.$ac_ext <<EOF
15739 #line 15740 "configure"
15740 #include "confdefs.h"
15741 /* System header to define __stub macros and hopefully few prototypes,
15742     which can conflict with char $ac_func(); below.  */
15743 #include <assert.h>
15744 /* Override any gcc2 internal prototype to avoid an error.  */
15745 /* We use char because int might match the return type of a gcc2
15746     builtin and then its argument prototype would still apply.  */
15747 char $ac_func();
15748
15749 int main() {
15750
15751 /* The GNU C library defines this for functions which it implements
15752     to always fail with ENOSYS.  Some functions are actually named
15753     something starting with __ and the normal name is an alias.  */
15754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15755 choke me
15756 #else
15757 $ac_func();
15758 #endif
15759
15760 ; return 0; }
15761 EOF
15762 if { (eval echo configure:15763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15763   rm -rf conftest*
15764   eval "ac_cv_func_$ac_func=yes"
15765 else
15766   echo "configure: failed program was:" >&5
15767   cat conftest.$ac_ext >&5
15768   rm -rf conftest*
15769   eval "ac_cv_func_$ac_func=no"
15770 fi
15771 rm -f conftest*
15772 fi
15773
15774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15775   echo "$ac_t""yes" 1>&6
15776     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15777   cat >> confdefs.h <<EOF
15778 #define $ac_tr_func 1
15779 EOF
15780  
15781 else
15782   echo "$ac_t""no" 1>&6
15783 fi
15784 done
15785     
15786   else
15787     
15788   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
15789 echo "configure:15790: checking for _logf declaration" >&5
15790   if test x${glibcpp_cv_func__logf_use+set} != xset; then
15791     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
15792   echo $ac_n "(cached) $ac_c" 1>&6
15793 else
15794   
15795       
15796       ac_ext=C
15797 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15798 ac_cpp='$CXXCPP $CPPFLAGS'
15799 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15800 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15801 cross_compiling=$ac_cv_prog_cxx_cross
15802
15803       cat > conftest.$ac_ext <<EOF
15804 #line 15805 "configure"
15805 #include "confdefs.h"
15806 #include <math.h>
15807                       #ifdef HAVE_IEEEFP_H
15808                       #include <ieeefp.h>
15809                       #endif
15810                      
15811 int main() {
15812  _logf(0);
15813 ; return 0; }
15814 EOF
15815 if { (eval echo configure:15816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15816   rm -rf conftest*
15817   glibcpp_cv_func__logf_use=yes
15818 else
15819   echo "configure: failed program was:" >&5
15820   cat conftest.$ac_ext >&5
15821   rm -rf conftest*
15822   glibcpp_cv_func__logf_use=no
15823 fi
15824 rm -f conftest*
15825       ac_ext=c
15826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15827 ac_cpp='$CPP $CPPFLAGS'
15828 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15829 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15830 cross_compiling=$ac_cv_prog_cc_cross
15831
15832     
15833 fi
15834
15835   fi
15836   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
15837
15838     if test x$glibcpp_cv_func__logf_use = x"yes"; then
15839       for ac_func in _logf
15840 do
15841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15842 echo "configure:15843: checking for $ac_func" >&5
15843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15844   echo $ac_n "(cached) $ac_c" 1>&6
15845 else
15846   cat > conftest.$ac_ext <<EOF
15847 #line 15848 "configure"
15848 #include "confdefs.h"
15849 /* System header to define __stub macros and hopefully few prototypes,
15850     which can conflict with char $ac_func(); below.  */
15851 #include <assert.h>
15852 /* Override any gcc2 internal prototype to avoid an error.  */
15853 /* We use char because int might match the return type of a gcc2
15854     builtin and then its argument prototype would still apply.  */
15855 char $ac_func();
15856
15857 int main() {
15858
15859 /* The GNU C library defines this for functions which it implements
15860     to always fail with ENOSYS.  Some functions are actually named
15861     something starting with __ and the normal name is an alias.  */
15862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15863 choke me
15864 #else
15865 $ac_func();
15866 #endif
15867
15868 ; return 0; }
15869 EOF
15870 if { (eval echo configure:15871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15871   rm -rf conftest*
15872   eval "ac_cv_func_$ac_func=yes"
15873 else
15874   echo "configure: failed program was:" >&5
15875   cat conftest.$ac_ext >&5
15876   rm -rf conftest*
15877   eval "ac_cv_func_$ac_func=no"
15878 fi
15879 rm -f conftest*
15880 fi
15881
15882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15883   echo "$ac_t""yes" 1>&6
15884     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15885   cat >> confdefs.h <<EOF
15886 #define $ac_tr_func 1
15887 EOF
15888  
15889 else
15890   echo "$ac_t""no" 1>&6
15891 fi
15892 done
15893     
15894     fi
15895   fi
15896
15897   
15898   
15899   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
15900 echo "configure:15901: checking for log10f declaration" >&5
15901   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
15902     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
15903   echo $ac_n "(cached) $ac_c" 1>&6
15904 else
15905   
15906       
15907       ac_ext=C
15908 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15909 ac_cpp='$CXXCPP $CPPFLAGS'
15910 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15911 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15912 cross_compiling=$ac_cv_prog_cxx_cross
15913
15914       cat > conftest.$ac_ext <<EOF
15915 #line 15916 "configure"
15916 #include "confdefs.h"
15917 #include <math.h>
15918                       #ifdef HAVE_IEEEFP_H
15919                       #include <ieeefp.h>
15920                       #endif
15921                      
15922 int main() {
15923  log10f(0);
15924 ; return 0; }
15925 EOF
15926 if { (eval echo configure:15927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15927   rm -rf conftest*
15928   glibcpp_cv_func_log10f_use=yes
15929 else
15930   echo "configure: failed program was:" >&5
15931   cat conftest.$ac_ext >&5
15932   rm -rf conftest*
15933   glibcpp_cv_func_log10f_use=no
15934 fi
15935 rm -f conftest*
15936       ac_ext=c
15937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15938 ac_cpp='$CPP $CPPFLAGS'
15939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15941 cross_compiling=$ac_cv_prog_cc_cross
15942
15943     
15944 fi
15945
15946   fi
15947   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
15948
15949   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
15950     for ac_func in log10f
15951 do
15952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15953 echo "configure:15954: checking for $ac_func" >&5
15954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15955   echo $ac_n "(cached) $ac_c" 1>&6
15956 else
15957   cat > conftest.$ac_ext <<EOF
15958 #line 15959 "configure"
15959 #include "confdefs.h"
15960 /* System header to define __stub macros and hopefully few prototypes,
15961     which can conflict with char $ac_func(); below.  */
15962 #include <assert.h>
15963 /* Override any gcc2 internal prototype to avoid an error.  */
15964 /* We use char because int might match the return type of a gcc2
15965     builtin and then its argument prototype would still apply.  */
15966 char $ac_func();
15967
15968 int main() {
15969
15970 /* The GNU C library defines this for functions which it implements
15971     to always fail with ENOSYS.  Some functions are actually named
15972     something starting with __ and the normal name is an alias.  */
15973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15974 choke me
15975 #else
15976 $ac_func();
15977 #endif
15978
15979 ; return 0; }
15980 EOF
15981 if { (eval echo configure:15982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15982   rm -rf conftest*
15983   eval "ac_cv_func_$ac_func=yes"
15984 else
15985   echo "configure: failed program was:" >&5
15986   cat conftest.$ac_ext >&5
15987   rm -rf conftest*
15988   eval "ac_cv_func_$ac_func=no"
15989 fi
15990 rm -f conftest*
15991 fi
15992
15993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15994   echo "$ac_t""yes" 1>&6
15995     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15996   cat >> confdefs.h <<EOF
15997 #define $ac_tr_func 1
15998 EOF
15999  
16000 else
16001   echo "$ac_t""no" 1>&6
16002 fi
16003 done
16004     
16005   else
16006     
16007   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
16008 echo "configure:16009: checking for _log10f declaration" >&5
16009   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
16010     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
16011   echo $ac_n "(cached) $ac_c" 1>&6
16012 else
16013   
16014       
16015       ac_ext=C
16016 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16017 ac_cpp='$CXXCPP $CPPFLAGS'
16018 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16019 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16020 cross_compiling=$ac_cv_prog_cxx_cross
16021
16022       cat > conftest.$ac_ext <<EOF
16023 #line 16024 "configure"
16024 #include "confdefs.h"
16025 #include <math.h>
16026                       #ifdef HAVE_IEEEFP_H
16027                       #include <ieeefp.h>
16028                       #endif
16029                      
16030 int main() {
16031  _log10f(0);
16032 ; return 0; }
16033 EOF
16034 if { (eval echo configure:16035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16035   rm -rf conftest*
16036   glibcpp_cv_func__log10f_use=yes
16037 else
16038   echo "configure: failed program was:" >&5
16039   cat conftest.$ac_ext >&5
16040   rm -rf conftest*
16041   glibcpp_cv_func__log10f_use=no
16042 fi
16043 rm -f conftest*
16044       ac_ext=c
16045 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16046 ac_cpp='$CPP $CPPFLAGS'
16047 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16048 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16049 cross_compiling=$ac_cv_prog_cc_cross
16050
16051     
16052 fi
16053
16054   fi
16055   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
16056
16057     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
16058       for ac_func in _log10f
16059 do
16060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16061 echo "configure:16062: checking for $ac_func" >&5
16062 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16063   echo $ac_n "(cached) $ac_c" 1>&6
16064 else
16065   cat > conftest.$ac_ext <<EOF
16066 #line 16067 "configure"
16067 #include "confdefs.h"
16068 /* System header to define __stub macros and hopefully few prototypes,
16069     which can conflict with char $ac_func(); below.  */
16070 #include <assert.h>
16071 /* Override any gcc2 internal prototype to avoid an error.  */
16072 /* We use char because int might match the return type of a gcc2
16073     builtin and then its argument prototype would still apply.  */
16074 char $ac_func();
16075
16076 int main() {
16077
16078 /* The GNU C library defines this for functions which it implements
16079     to always fail with ENOSYS.  Some functions are actually named
16080     something starting with __ and the normal name is an alias.  */
16081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16082 choke me
16083 #else
16084 $ac_func();
16085 #endif
16086
16087 ; return 0; }
16088 EOF
16089 if { (eval echo configure:16090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16090   rm -rf conftest*
16091   eval "ac_cv_func_$ac_func=yes"
16092 else
16093   echo "configure: failed program was:" >&5
16094   cat conftest.$ac_ext >&5
16095   rm -rf conftest*
16096   eval "ac_cv_func_$ac_func=no"
16097 fi
16098 rm -f conftest*
16099 fi
16100
16101 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16102   echo "$ac_t""yes" 1>&6
16103     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16104   cat >> confdefs.h <<EOF
16105 #define $ac_tr_func 1
16106 EOF
16107  
16108 else
16109   echo "$ac_t""no" 1>&6
16110 fi
16111 done
16112     
16113     fi
16114   fi
16115
16116   
16117   
16118   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
16119 echo "configure:16120: checking for modff declaration" >&5
16120   if test x${glibcpp_cv_func_modff_use+set} != xset; then
16121     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
16122   echo $ac_n "(cached) $ac_c" 1>&6
16123 else
16124   
16125       
16126       ac_ext=C
16127 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16128 ac_cpp='$CXXCPP $CPPFLAGS'
16129 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16130 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16131 cross_compiling=$ac_cv_prog_cxx_cross
16132
16133       cat > conftest.$ac_ext <<EOF
16134 #line 16135 "configure"
16135 #include "confdefs.h"
16136 #include <math.h>
16137 int main() {
16138  modff(0, 0);
16139 ; return 0; }
16140 EOF
16141 if { (eval echo configure:16142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16142   rm -rf conftest*
16143   glibcpp_cv_func_modff_use=yes
16144 else
16145   echo "configure: failed program was:" >&5
16146   cat conftest.$ac_ext >&5
16147   rm -rf conftest*
16148   glibcpp_cv_func_modff_use=no
16149 fi
16150 rm -f conftest*
16151       ac_ext=c
16152 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16153 ac_cpp='$CPP $CPPFLAGS'
16154 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16155 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16156 cross_compiling=$ac_cv_prog_cc_cross
16157
16158     
16159 fi
16160
16161   fi
16162   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
16163
16164   if test x$glibcpp_cv_func_modff_use = x"yes"; then
16165     for ac_func in modff
16166 do
16167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16168 echo "configure:16169: checking for $ac_func" >&5
16169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16170   echo $ac_n "(cached) $ac_c" 1>&6
16171 else
16172   cat > conftest.$ac_ext <<EOF
16173 #line 16174 "configure"
16174 #include "confdefs.h"
16175 /* System header to define __stub macros and hopefully few prototypes,
16176     which can conflict with char $ac_func(); below.  */
16177 #include <assert.h>
16178 /* Override any gcc2 internal prototype to avoid an error.  */
16179 /* We use char because int might match the return type of a gcc2
16180     builtin and then its argument prototype would still apply.  */
16181 char $ac_func();
16182
16183 int main() {
16184
16185 /* The GNU C library defines this for functions which it implements
16186     to always fail with ENOSYS.  Some functions are actually named
16187     something starting with __ and the normal name is an alias.  */
16188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16189 choke me
16190 #else
16191 $ac_func();
16192 #endif
16193
16194 ; return 0; }
16195 EOF
16196 if { (eval echo configure:16197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16197   rm -rf conftest*
16198   eval "ac_cv_func_$ac_func=yes"
16199 else
16200   echo "configure: failed program was:" >&5
16201   cat conftest.$ac_ext >&5
16202   rm -rf conftest*
16203   eval "ac_cv_func_$ac_func=no"
16204 fi
16205 rm -f conftest*
16206 fi
16207
16208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16209   echo "$ac_t""yes" 1>&6
16210     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16211   cat >> confdefs.h <<EOF
16212 #define $ac_tr_func 1
16213 EOF
16214  
16215 else
16216   echo "$ac_t""no" 1>&6
16217 fi
16218 done
16219     
16220   else
16221     
16222   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
16223 echo "configure:16224: checking for _modff declaration" >&5
16224   if test x${glibcpp_cv_func__modff_use+set} != xset; then
16225     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
16226   echo $ac_n "(cached) $ac_c" 1>&6
16227 else
16228   
16229       
16230       ac_ext=C
16231 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16232 ac_cpp='$CXXCPP $CPPFLAGS'
16233 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16234 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16235 cross_compiling=$ac_cv_prog_cxx_cross
16236
16237       cat > conftest.$ac_ext <<EOF
16238 #line 16239 "configure"
16239 #include "confdefs.h"
16240 #include <math.h>
16241 int main() {
16242  _modff(0, 0);
16243 ; return 0; }
16244 EOF
16245 if { (eval echo configure:16246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16246   rm -rf conftest*
16247   glibcpp_cv_func__modff_use=yes
16248 else
16249   echo "configure: failed program was:" >&5
16250   cat conftest.$ac_ext >&5
16251   rm -rf conftest*
16252   glibcpp_cv_func__modff_use=no
16253 fi
16254 rm -f conftest*
16255       ac_ext=c
16256 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16257 ac_cpp='$CPP $CPPFLAGS'
16258 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16259 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16260 cross_compiling=$ac_cv_prog_cc_cross
16261
16262     
16263 fi
16264
16265   fi
16266   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
16267
16268     if test x$glibcpp_cv_func__modff_use = x"yes"; then
16269       for ac_func in _modff
16270 do
16271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16272 echo "configure:16273: checking for $ac_func" >&5
16273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16274   echo $ac_n "(cached) $ac_c" 1>&6
16275 else
16276   cat > conftest.$ac_ext <<EOF
16277 #line 16278 "configure"
16278 #include "confdefs.h"
16279 /* System header to define __stub macros and hopefully few prototypes,
16280     which can conflict with char $ac_func(); below.  */
16281 #include <assert.h>
16282 /* Override any gcc2 internal prototype to avoid an error.  */
16283 /* We use char because int might match the return type of a gcc2
16284     builtin and then its argument prototype would still apply.  */
16285 char $ac_func();
16286
16287 int main() {
16288
16289 /* The GNU C library defines this for functions which it implements
16290     to always fail with ENOSYS.  Some functions are actually named
16291     something starting with __ and the normal name is an alias.  */
16292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16293 choke me
16294 #else
16295 $ac_func();
16296 #endif
16297
16298 ; return 0; }
16299 EOF
16300 if { (eval echo configure:16301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16301   rm -rf conftest*
16302   eval "ac_cv_func_$ac_func=yes"
16303 else
16304   echo "configure: failed program was:" >&5
16305   cat conftest.$ac_ext >&5
16306   rm -rf conftest*
16307   eval "ac_cv_func_$ac_func=no"
16308 fi
16309 rm -f conftest*
16310 fi
16311
16312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16313   echo "$ac_t""yes" 1>&6
16314     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16315   cat >> confdefs.h <<EOF
16316 #define $ac_tr_func 1
16317 EOF
16318  
16319 else
16320   echo "$ac_t""no" 1>&6
16321 fi
16322 done
16323     
16324     fi
16325   fi
16326
16327   
16328   
16329   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
16330 echo "configure:16331: checking for powf declaration" >&5
16331   if test x${glibcpp_cv_func_powf_use+set} != xset; then
16332     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
16333   echo $ac_n "(cached) $ac_c" 1>&6
16334 else
16335   
16336       
16337       ac_ext=C
16338 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16339 ac_cpp='$CXXCPP $CPPFLAGS'
16340 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16341 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16342 cross_compiling=$ac_cv_prog_cxx_cross
16343
16344       cat > conftest.$ac_ext <<EOF
16345 #line 16346 "configure"
16346 #include "confdefs.h"
16347 #include <math.h>
16348 int main() {
16349  powf(0, 0);
16350 ; return 0; }
16351 EOF
16352 if { (eval echo configure:16353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16353   rm -rf conftest*
16354   glibcpp_cv_func_powf_use=yes
16355 else
16356   echo "configure: failed program was:" >&5
16357   cat conftest.$ac_ext >&5
16358   rm -rf conftest*
16359   glibcpp_cv_func_powf_use=no
16360 fi
16361 rm -f conftest*
16362       ac_ext=c
16363 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16364 ac_cpp='$CPP $CPPFLAGS'
16365 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16366 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16367 cross_compiling=$ac_cv_prog_cc_cross
16368
16369     
16370 fi
16371
16372   fi
16373   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
16374
16375   if test x$glibcpp_cv_func_powf_use = x"yes"; then
16376     for ac_func in powf
16377 do
16378 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16379 echo "configure:16380: checking for $ac_func" >&5
16380 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16381   echo $ac_n "(cached) $ac_c" 1>&6
16382 else
16383   cat > conftest.$ac_ext <<EOF
16384 #line 16385 "configure"
16385 #include "confdefs.h"
16386 /* System header to define __stub macros and hopefully few prototypes,
16387     which can conflict with char $ac_func(); below.  */
16388 #include <assert.h>
16389 /* Override any gcc2 internal prototype to avoid an error.  */
16390 /* We use char because int might match the return type of a gcc2
16391     builtin and then its argument prototype would still apply.  */
16392 char $ac_func();
16393
16394 int main() {
16395
16396 /* The GNU C library defines this for functions which it implements
16397     to always fail with ENOSYS.  Some functions are actually named
16398     something starting with __ and the normal name is an alias.  */
16399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16400 choke me
16401 #else
16402 $ac_func();
16403 #endif
16404
16405 ; return 0; }
16406 EOF
16407 if { (eval echo configure:16408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16408   rm -rf conftest*
16409   eval "ac_cv_func_$ac_func=yes"
16410 else
16411   echo "configure: failed program was:" >&5
16412   cat conftest.$ac_ext >&5
16413   rm -rf conftest*
16414   eval "ac_cv_func_$ac_func=no"
16415 fi
16416 rm -f conftest*
16417 fi
16418
16419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16420   echo "$ac_t""yes" 1>&6
16421     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16422   cat >> confdefs.h <<EOF
16423 #define $ac_tr_func 1
16424 EOF
16425  
16426 else
16427   echo "$ac_t""no" 1>&6
16428 fi
16429 done
16430     
16431   else
16432     
16433   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
16434 echo "configure:16435: checking for _powf declaration" >&5
16435   if test x${glibcpp_cv_func__powf_use+set} != xset; then
16436     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
16437   echo $ac_n "(cached) $ac_c" 1>&6
16438 else
16439   
16440       
16441       ac_ext=C
16442 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16443 ac_cpp='$CXXCPP $CPPFLAGS'
16444 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16445 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16446 cross_compiling=$ac_cv_prog_cxx_cross
16447
16448       cat > conftest.$ac_ext <<EOF
16449 #line 16450 "configure"
16450 #include "confdefs.h"
16451 #include <math.h>
16452 int main() {
16453  _powf(0, 0);
16454 ; return 0; }
16455 EOF
16456 if { (eval echo configure:16457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16457   rm -rf conftest*
16458   glibcpp_cv_func__powf_use=yes
16459 else
16460   echo "configure: failed program was:" >&5
16461   cat conftest.$ac_ext >&5
16462   rm -rf conftest*
16463   glibcpp_cv_func__powf_use=no
16464 fi
16465 rm -f conftest*
16466       ac_ext=c
16467 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16468 ac_cpp='$CPP $CPPFLAGS'
16469 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16470 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16471 cross_compiling=$ac_cv_prog_cc_cross
16472
16473     
16474 fi
16475
16476   fi
16477   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
16478
16479     if test x$glibcpp_cv_func__powf_use = x"yes"; then
16480       for ac_func in _powf
16481 do
16482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16483 echo "configure:16484: checking for $ac_func" >&5
16484 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16485   echo $ac_n "(cached) $ac_c" 1>&6
16486 else
16487   cat > conftest.$ac_ext <<EOF
16488 #line 16489 "configure"
16489 #include "confdefs.h"
16490 /* System header to define __stub macros and hopefully few prototypes,
16491     which can conflict with char $ac_func(); below.  */
16492 #include <assert.h>
16493 /* Override any gcc2 internal prototype to avoid an error.  */
16494 /* We use char because int might match the return type of a gcc2
16495     builtin and then its argument prototype would still apply.  */
16496 char $ac_func();
16497
16498 int main() {
16499
16500 /* The GNU C library defines this for functions which it implements
16501     to always fail with ENOSYS.  Some functions are actually named
16502     something starting with __ and the normal name is an alias.  */
16503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16504 choke me
16505 #else
16506 $ac_func();
16507 #endif
16508
16509 ; return 0; }
16510 EOF
16511 if { (eval echo configure:16512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16512   rm -rf conftest*
16513   eval "ac_cv_func_$ac_func=yes"
16514 else
16515   echo "configure: failed program was:" >&5
16516   cat conftest.$ac_ext >&5
16517   rm -rf conftest*
16518   eval "ac_cv_func_$ac_func=no"
16519 fi
16520 rm -f conftest*
16521 fi
16522
16523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16524   echo "$ac_t""yes" 1>&6
16525     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16526   cat >> confdefs.h <<EOF
16527 #define $ac_tr_func 1
16528 EOF
16529  
16530 else
16531   echo "$ac_t""no" 1>&6
16532 fi
16533 done
16534     
16535     fi
16536   fi
16537
16538   
16539   
16540   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
16541 echo "configure:16542: checking for sqrtf declaration" >&5
16542   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
16543     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
16544   echo $ac_n "(cached) $ac_c" 1>&6
16545 else
16546   
16547       
16548       ac_ext=C
16549 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16550 ac_cpp='$CXXCPP $CPPFLAGS'
16551 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16552 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16553 cross_compiling=$ac_cv_prog_cxx_cross
16554
16555       cat > conftest.$ac_ext <<EOF
16556 #line 16557 "configure"
16557 #include "confdefs.h"
16558 #include <math.h>
16559                       #ifdef HAVE_IEEEFP_H
16560                       #include <ieeefp.h>
16561                       #endif
16562                      
16563 int main() {
16564  sqrtf(0);
16565 ; return 0; }
16566 EOF
16567 if { (eval echo configure:16568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16568   rm -rf conftest*
16569   glibcpp_cv_func_sqrtf_use=yes
16570 else
16571   echo "configure: failed program was:" >&5
16572   cat conftest.$ac_ext >&5
16573   rm -rf conftest*
16574   glibcpp_cv_func_sqrtf_use=no
16575 fi
16576 rm -f conftest*
16577       ac_ext=c
16578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16579 ac_cpp='$CPP $CPPFLAGS'
16580 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16581 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16582 cross_compiling=$ac_cv_prog_cc_cross
16583
16584     
16585 fi
16586
16587   fi
16588   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
16589
16590   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
16591     for ac_func in sqrtf
16592 do
16593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16594 echo "configure:16595: checking for $ac_func" >&5
16595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16596   echo $ac_n "(cached) $ac_c" 1>&6
16597 else
16598   cat > conftest.$ac_ext <<EOF
16599 #line 16600 "configure"
16600 #include "confdefs.h"
16601 /* System header to define __stub macros and hopefully few prototypes,
16602     which can conflict with char $ac_func(); below.  */
16603 #include <assert.h>
16604 /* Override any gcc2 internal prototype to avoid an error.  */
16605 /* We use char because int might match the return type of a gcc2
16606     builtin and then its argument prototype would still apply.  */
16607 char $ac_func();
16608
16609 int main() {
16610
16611 /* The GNU C library defines this for functions which it implements
16612     to always fail with ENOSYS.  Some functions are actually named
16613     something starting with __ and the normal name is an alias.  */
16614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16615 choke me
16616 #else
16617 $ac_func();
16618 #endif
16619
16620 ; return 0; }
16621 EOF
16622 if { (eval echo configure:16623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16623   rm -rf conftest*
16624   eval "ac_cv_func_$ac_func=yes"
16625 else
16626   echo "configure: failed program was:" >&5
16627   cat conftest.$ac_ext >&5
16628   rm -rf conftest*
16629   eval "ac_cv_func_$ac_func=no"
16630 fi
16631 rm -f conftest*
16632 fi
16633
16634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16635   echo "$ac_t""yes" 1>&6
16636     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16637   cat >> confdefs.h <<EOF
16638 #define $ac_tr_func 1
16639 EOF
16640  
16641 else
16642   echo "$ac_t""no" 1>&6
16643 fi
16644 done
16645     
16646   else
16647     
16648   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
16649 echo "configure:16650: checking for _sqrtf declaration" >&5
16650   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
16651     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
16652   echo $ac_n "(cached) $ac_c" 1>&6
16653 else
16654   
16655       
16656       ac_ext=C
16657 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16658 ac_cpp='$CXXCPP $CPPFLAGS'
16659 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16660 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16661 cross_compiling=$ac_cv_prog_cxx_cross
16662
16663       cat > conftest.$ac_ext <<EOF
16664 #line 16665 "configure"
16665 #include "confdefs.h"
16666 #include <math.h>
16667                       #ifdef HAVE_IEEEFP_H
16668                       #include <ieeefp.h>
16669                       #endif
16670                      
16671 int main() {
16672  _sqrtf(0);
16673 ; return 0; }
16674 EOF
16675 if { (eval echo configure:16676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16676   rm -rf conftest*
16677   glibcpp_cv_func__sqrtf_use=yes
16678 else
16679   echo "configure: failed program was:" >&5
16680   cat conftest.$ac_ext >&5
16681   rm -rf conftest*
16682   glibcpp_cv_func__sqrtf_use=no
16683 fi
16684 rm -f conftest*
16685       ac_ext=c
16686 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16687 ac_cpp='$CPP $CPPFLAGS'
16688 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16689 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16690 cross_compiling=$ac_cv_prog_cc_cross
16691
16692     
16693 fi
16694
16695   fi
16696   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
16697
16698     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
16699       for ac_func in _sqrtf
16700 do
16701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16702 echo "configure:16703: checking for $ac_func" >&5
16703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16704   echo $ac_n "(cached) $ac_c" 1>&6
16705 else
16706   cat > conftest.$ac_ext <<EOF
16707 #line 16708 "configure"
16708 #include "confdefs.h"
16709 /* System header to define __stub macros and hopefully few prototypes,
16710     which can conflict with char $ac_func(); below.  */
16711 #include <assert.h>
16712 /* Override any gcc2 internal prototype to avoid an error.  */
16713 /* We use char because int might match the return type of a gcc2
16714     builtin and then its argument prototype would still apply.  */
16715 char $ac_func();
16716
16717 int main() {
16718
16719 /* The GNU C library defines this for functions which it implements
16720     to always fail with ENOSYS.  Some functions are actually named
16721     something starting with __ and the normal name is an alias.  */
16722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16723 choke me
16724 #else
16725 $ac_func();
16726 #endif
16727
16728 ; return 0; }
16729 EOF
16730 if { (eval echo configure:16731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16731   rm -rf conftest*
16732   eval "ac_cv_func_$ac_func=yes"
16733 else
16734   echo "configure: failed program was:" >&5
16735   cat conftest.$ac_ext >&5
16736   rm -rf conftest*
16737   eval "ac_cv_func_$ac_func=no"
16738 fi
16739 rm -f conftest*
16740 fi
16741
16742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16743   echo "$ac_t""yes" 1>&6
16744     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16745   cat >> confdefs.h <<EOF
16746 #define $ac_tr_func 1
16747 EOF
16748  
16749 else
16750   echo "$ac_t""no" 1>&6
16751 fi
16752 done
16753     
16754     fi
16755   fi
16756
16757   
16758   
16759   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
16760 echo "configure:16761: checking for sincosf declaration" >&5
16761   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
16762     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
16763   echo $ac_n "(cached) $ac_c" 1>&6
16764 else
16765   
16766       
16767       ac_ext=C
16768 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16769 ac_cpp='$CXXCPP $CPPFLAGS'
16770 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16771 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16772 cross_compiling=$ac_cv_prog_cxx_cross
16773
16774       cat > conftest.$ac_ext <<EOF
16775 #line 16776 "configure"
16776 #include "confdefs.h"
16777 #include <math.h>
16778 int main() {
16779  sincosf(0, 0, 0);
16780 ; return 0; }
16781 EOF
16782 if { (eval echo configure:16783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16783   rm -rf conftest*
16784   glibcpp_cv_func_sincosf_use=yes
16785 else
16786   echo "configure: failed program was:" >&5
16787   cat conftest.$ac_ext >&5
16788   rm -rf conftest*
16789   glibcpp_cv_func_sincosf_use=no
16790 fi
16791 rm -f conftest*
16792       ac_ext=c
16793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16794 ac_cpp='$CPP $CPPFLAGS'
16795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16797 cross_compiling=$ac_cv_prog_cc_cross
16798
16799     
16800 fi
16801
16802   fi
16803   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
16804
16805   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
16806     for ac_func in sincosf
16807 do
16808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16809 echo "configure:16810: checking for $ac_func" >&5
16810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16811   echo $ac_n "(cached) $ac_c" 1>&6
16812 else
16813   cat > conftest.$ac_ext <<EOF
16814 #line 16815 "configure"
16815 #include "confdefs.h"
16816 /* System header to define __stub macros and hopefully few prototypes,
16817     which can conflict with char $ac_func(); below.  */
16818 #include <assert.h>
16819 /* Override any gcc2 internal prototype to avoid an error.  */
16820 /* We use char because int might match the return type of a gcc2
16821     builtin and then its argument prototype would still apply.  */
16822 char $ac_func();
16823
16824 int main() {
16825
16826 /* The GNU C library defines this for functions which it implements
16827     to always fail with ENOSYS.  Some functions are actually named
16828     something starting with __ and the normal name is an alias.  */
16829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16830 choke me
16831 #else
16832 $ac_func();
16833 #endif
16834
16835 ; return 0; }
16836 EOF
16837 if { (eval echo configure:16838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16838   rm -rf conftest*
16839   eval "ac_cv_func_$ac_func=yes"
16840 else
16841   echo "configure: failed program was:" >&5
16842   cat conftest.$ac_ext >&5
16843   rm -rf conftest*
16844   eval "ac_cv_func_$ac_func=no"
16845 fi
16846 rm -f conftest*
16847 fi
16848
16849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16850   echo "$ac_t""yes" 1>&6
16851     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16852   cat >> confdefs.h <<EOF
16853 #define $ac_tr_func 1
16854 EOF
16855  
16856 else
16857   echo "$ac_t""no" 1>&6
16858 fi
16859 done
16860     
16861   else
16862     
16863   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
16864 echo "configure:16865: checking for _sincosf declaration" >&5
16865   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
16866     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
16867   echo $ac_n "(cached) $ac_c" 1>&6
16868 else
16869   
16870       
16871       ac_ext=C
16872 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16873 ac_cpp='$CXXCPP $CPPFLAGS'
16874 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16875 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16876 cross_compiling=$ac_cv_prog_cxx_cross
16877
16878       cat > conftest.$ac_ext <<EOF
16879 #line 16880 "configure"
16880 #include "confdefs.h"
16881 #include <math.h>
16882 int main() {
16883  _sincosf(0, 0, 0);
16884 ; return 0; }
16885 EOF
16886 if { (eval echo configure:16887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16887   rm -rf conftest*
16888   glibcpp_cv_func__sincosf_use=yes
16889 else
16890   echo "configure: failed program was:" >&5
16891   cat conftest.$ac_ext >&5
16892   rm -rf conftest*
16893   glibcpp_cv_func__sincosf_use=no
16894 fi
16895 rm -f conftest*
16896       ac_ext=c
16897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16898 ac_cpp='$CPP $CPPFLAGS'
16899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16901 cross_compiling=$ac_cv_prog_cc_cross
16902
16903     
16904 fi
16905
16906   fi
16907   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
16908
16909     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
16910       for ac_func in _sincosf
16911 do
16912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16913 echo "configure:16914: checking for $ac_func" >&5
16914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16915   echo $ac_n "(cached) $ac_c" 1>&6
16916 else
16917   cat > conftest.$ac_ext <<EOF
16918 #line 16919 "configure"
16919 #include "confdefs.h"
16920 /* System header to define __stub macros and hopefully few prototypes,
16921     which can conflict with char $ac_func(); below.  */
16922 #include <assert.h>
16923 /* Override any gcc2 internal prototype to avoid an error.  */
16924 /* We use char because int might match the return type of a gcc2
16925     builtin and then its argument prototype would still apply.  */
16926 char $ac_func();
16927
16928 int main() {
16929
16930 /* The GNU C library defines this for functions which it implements
16931     to always fail with ENOSYS.  Some functions are actually named
16932     something starting with __ and the normal name is an alias.  */
16933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16934 choke me
16935 #else
16936 $ac_func();
16937 #endif
16938
16939 ; return 0; }
16940 EOF
16941 if { (eval echo configure:16942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16942   rm -rf conftest*
16943   eval "ac_cv_func_$ac_func=yes"
16944 else
16945   echo "configure: failed program was:" >&5
16946   cat conftest.$ac_ext >&5
16947   rm -rf conftest*
16948   eval "ac_cv_func_$ac_func=no"
16949 fi
16950 rm -f conftest*
16951 fi
16952
16953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16954   echo "$ac_t""yes" 1>&6
16955     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16956   cat >> confdefs.h <<EOF
16957 #define $ac_tr_func 1
16958 EOF
16959  
16960 else
16961   echo "$ac_t""no" 1>&6
16962 fi
16963 done
16964     
16965     fi
16966   fi
16967
16968   
16969   
16970   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
16971 echo "configure:16972: checking for finitef declaration" >&5
16972   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
16973     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
16974   echo $ac_n "(cached) $ac_c" 1>&6
16975 else
16976   
16977       
16978       ac_ext=C
16979 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16980 ac_cpp='$CXXCPP $CPPFLAGS'
16981 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16982 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16983 cross_compiling=$ac_cv_prog_cxx_cross
16984
16985       cat > conftest.$ac_ext <<EOF
16986 #line 16987 "configure"
16987 #include "confdefs.h"
16988 #include <math.h>
16989                       #ifdef HAVE_IEEEFP_H
16990                       #include <ieeefp.h>
16991                       #endif
16992                      
16993 int main() {
16994  finitef(0);
16995 ; return 0; }
16996 EOF
16997 if { (eval echo configure:16998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16998   rm -rf conftest*
16999   glibcpp_cv_func_finitef_use=yes
17000 else
17001   echo "configure: failed program was:" >&5
17002   cat conftest.$ac_ext >&5
17003   rm -rf conftest*
17004   glibcpp_cv_func_finitef_use=no
17005 fi
17006 rm -f conftest*
17007       ac_ext=c
17008 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17009 ac_cpp='$CPP $CPPFLAGS'
17010 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17011 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17012 cross_compiling=$ac_cv_prog_cc_cross
17013
17014     
17015 fi
17016
17017   fi
17018   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
17019
17020   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
17021     for ac_func in finitef
17022 do
17023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17024 echo "configure:17025: checking for $ac_func" >&5
17025 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17026   echo $ac_n "(cached) $ac_c" 1>&6
17027 else
17028   cat > conftest.$ac_ext <<EOF
17029 #line 17030 "configure"
17030 #include "confdefs.h"
17031 /* System header to define __stub macros and hopefully few prototypes,
17032     which can conflict with char $ac_func(); below.  */
17033 #include <assert.h>
17034 /* Override any gcc2 internal prototype to avoid an error.  */
17035 /* We use char because int might match the return type of a gcc2
17036     builtin and then its argument prototype would still apply.  */
17037 char $ac_func();
17038
17039 int main() {
17040
17041 /* The GNU C library defines this for functions which it implements
17042     to always fail with ENOSYS.  Some functions are actually named
17043     something starting with __ and the normal name is an alias.  */
17044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17045 choke me
17046 #else
17047 $ac_func();
17048 #endif
17049
17050 ; return 0; }
17051 EOF
17052 if { (eval echo configure:17053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17053   rm -rf conftest*
17054   eval "ac_cv_func_$ac_func=yes"
17055 else
17056   echo "configure: failed program was:" >&5
17057   cat conftest.$ac_ext >&5
17058   rm -rf conftest*
17059   eval "ac_cv_func_$ac_func=no"
17060 fi
17061 rm -f conftest*
17062 fi
17063
17064 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17065   echo "$ac_t""yes" 1>&6
17066     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17067   cat >> confdefs.h <<EOF
17068 #define $ac_tr_func 1
17069 EOF
17070  
17071 else
17072   echo "$ac_t""no" 1>&6
17073 fi
17074 done
17075     
17076   else
17077     
17078   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
17079 echo "configure:17080: checking for _finitef declaration" >&5
17080   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
17081     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
17082   echo $ac_n "(cached) $ac_c" 1>&6
17083 else
17084   
17085       
17086       ac_ext=C
17087 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17088 ac_cpp='$CXXCPP $CPPFLAGS'
17089 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17090 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17091 cross_compiling=$ac_cv_prog_cxx_cross
17092
17093       cat > conftest.$ac_ext <<EOF
17094 #line 17095 "configure"
17095 #include "confdefs.h"
17096 #include <math.h>
17097                       #ifdef HAVE_IEEEFP_H
17098                       #include <ieeefp.h>
17099                       #endif
17100                      
17101 int main() {
17102  _finitef(0);
17103 ; return 0; }
17104 EOF
17105 if { (eval echo configure:17106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17106   rm -rf conftest*
17107   glibcpp_cv_func__finitef_use=yes
17108 else
17109   echo "configure: failed program was:" >&5
17110   cat conftest.$ac_ext >&5
17111   rm -rf conftest*
17112   glibcpp_cv_func__finitef_use=no
17113 fi
17114 rm -f conftest*
17115       ac_ext=c
17116 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17117 ac_cpp='$CPP $CPPFLAGS'
17118 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17119 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17120 cross_compiling=$ac_cv_prog_cc_cross
17121
17122     
17123 fi
17124
17125   fi
17126   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
17127
17128     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
17129       for ac_func in _finitef
17130 do
17131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17132 echo "configure:17133: checking for $ac_func" >&5
17133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17134   echo $ac_n "(cached) $ac_c" 1>&6
17135 else
17136   cat > conftest.$ac_ext <<EOF
17137 #line 17138 "configure"
17138 #include "confdefs.h"
17139 /* System header to define __stub macros and hopefully few prototypes,
17140     which can conflict with char $ac_func(); below.  */
17141 #include <assert.h>
17142 /* Override any gcc2 internal prototype to avoid an error.  */
17143 /* We use char because int might match the return type of a gcc2
17144     builtin and then its argument prototype would still apply.  */
17145 char $ac_func();
17146
17147 int main() {
17148
17149 /* The GNU C library defines this for functions which it implements
17150     to always fail with ENOSYS.  Some functions are actually named
17151     something starting with __ and the normal name is an alias.  */
17152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17153 choke me
17154 #else
17155 $ac_func();
17156 #endif
17157
17158 ; return 0; }
17159 EOF
17160 if { (eval echo configure:17161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17161   rm -rf conftest*
17162   eval "ac_cv_func_$ac_func=yes"
17163 else
17164   echo "configure: failed program was:" >&5
17165   cat conftest.$ac_ext >&5
17166   rm -rf conftest*
17167   eval "ac_cv_func_$ac_func=no"
17168 fi
17169 rm -f conftest*
17170 fi
17171
17172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17173   echo "$ac_t""yes" 1>&6
17174     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17175   cat >> confdefs.h <<EOF
17176 #define $ac_tr_func 1
17177 EOF
17178  
17179 else
17180   echo "$ac_t""no" 1>&6
17181 fi
17182 done
17183     
17184     fi
17185   fi
17186
17187
17188     
17189   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
17190 echo "configure:17191: checking for long double trig functions" >&5
17191   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
17192   echo $ac_n "(cached) $ac_c" 1>&6
17193 else
17194   
17195     
17196     ac_ext=C
17197 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17198 ac_cpp='$CXXCPP $CPPFLAGS'
17199 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17200 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17201 cross_compiling=$ac_cv_prog_cxx_cross
17202
17203     cat > conftest.$ac_ext <<EOF
17204 #line 17205 "configure"
17205 #include "confdefs.h"
17206 #include <math.h>
17207 int main() {
17208  `for x in acosl asinl atanl \
17209                                           cosl sinl tanl \
17210                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
17211 ; return 0; }
17212 EOF
17213 if { (eval echo configure:17214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17214   rm -rf conftest*
17215   glibcpp_cv_func_long_double_trig_use=yes
17216 else
17217   echo "configure: failed program was:" >&5
17218   cat conftest.$ac_ext >&5
17219   rm -rf conftest*
17220   glibcpp_cv_func_long_double_trig_use=no
17221 fi
17222 rm -f conftest*
17223     ac_ext=c
17224 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17225 ac_cpp='$CPP $CPPFLAGS'
17226 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17227 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17228 cross_compiling=$ac_cv_prog_cc_cross
17229
17230 fi
17231
17232   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
17233   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
17234     for ac_func in acosl asinl atanl \
17235                                           cosl sinl tanl \
17236                                           coshl sinhl tanhl
17237 do
17238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17239 echo "configure:17240: checking for $ac_func" >&5
17240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17241   echo $ac_n "(cached) $ac_c" 1>&6
17242 else
17243   cat > conftest.$ac_ext <<EOF
17244 #line 17245 "configure"
17245 #include "confdefs.h"
17246 /* System header to define __stub macros and hopefully few prototypes,
17247     which can conflict with char $ac_func(); below.  */
17248 #include <assert.h>
17249 /* Override any gcc2 internal prototype to avoid an error.  */
17250 /* We use char because int might match the return type of a gcc2
17251     builtin and then its argument prototype would still apply.  */
17252 char $ac_func();
17253
17254 int main() {
17255
17256 /* The GNU C library defines this for functions which it implements
17257     to always fail with ENOSYS.  Some functions are actually named
17258     something starting with __ and the normal name is an alias.  */
17259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17260 choke me
17261 #else
17262 $ac_func();
17263 #endif
17264
17265 ; return 0; }
17266 EOF
17267 if { (eval echo configure:17268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17268   rm -rf conftest*
17269   eval "ac_cv_func_$ac_func=yes"
17270 else
17271   echo "configure: failed program was:" >&5
17272   cat conftest.$ac_ext >&5
17273   rm -rf conftest*
17274   eval "ac_cv_func_$ac_func=no"
17275 fi
17276 rm -f conftest*
17277 fi
17278
17279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17280   echo "$ac_t""yes" 1>&6
17281     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17282   cat >> confdefs.h <<EOF
17283 #define $ac_tr_func 1
17284 EOF
17285  
17286 else
17287   echo "$ac_t""no" 1>&6
17288 fi
17289 done
17290
17291   fi
17292
17293   
17294   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
17295 echo "configure:17296: checking for long double round functions" >&5
17296   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
17297   echo $ac_n "(cached) $ac_c" 1>&6
17298 else
17299   
17300     
17301     ac_ext=C
17302 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17303 ac_cpp='$CXXCPP $CPPFLAGS'
17304 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17305 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17306 cross_compiling=$ac_cv_prog_cxx_cross
17307
17308     cat > conftest.$ac_ext <<EOF
17309 #line 17310 "configure"
17310 #include "confdefs.h"
17311 #include <math.h>
17312 int main() {
17313  `for x in ceill floorl; do echo "$x (0);"; done` 
17314 ; return 0; }
17315 EOF
17316 if { (eval echo configure:17317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17317   rm -rf conftest*
17318   glibcpp_cv_func_long_double_round_use=yes
17319 else
17320   echo "configure: failed program was:" >&5
17321   cat conftest.$ac_ext >&5
17322   rm -rf conftest*
17323   glibcpp_cv_func_long_double_round_use=no
17324 fi
17325 rm -f conftest*
17326     ac_ext=c
17327 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17328 ac_cpp='$CPP $CPPFLAGS'
17329 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17330 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17331 cross_compiling=$ac_cv_prog_cc_cross
17332
17333 fi
17334
17335   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
17336   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
17337     for ac_func in ceill floorl
17338 do
17339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17340 echo "configure:17341: checking for $ac_func" >&5
17341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17342   echo $ac_n "(cached) $ac_c" 1>&6
17343 else
17344   cat > conftest.$ac_ext <<EOF
17345 #line 17346 "configure"
17346 #include "confdefs.h"
17347 /* System header to define __stub macros and hopefully few prototypes,
17348     which can conflict with char $ac_func(); below.  */
17349 #include <assert.h>
17350 /* Override any gcc2 internal prototype to avoid an error.  */
17351 /* We use char because int might match the return type of a gcc2
17352     builtin and then its argument prototype would still apply.  */
17353 char $ac_func();
17354
17355 int main() {
17356
17357 /* The GNU C library defines this for functions which it implements
17358     to always fail with ENOSYS.  Some functions are actually named
17359     something starting with __ and the normal name is an alias.  */
17360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17361 choke me
17362 #else
17363 $ac_func();
17364 #endif
17365
17366 ; return 0; }
17367 EOF
17368 if { (eval echo configure:17369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17369   rm -rf conftest*
17370   eval "ac_cv_func_$ac_func=yes"
17371 else
17372   echo "configure: failed program was:" >&5
17373   cat conftest.$ac_ext >&5
17374   rm -rf conftest*
17375   eval "ac_cv_func_$ac_func=no"
17376 fi
17377 rm -f conftest*
17378 fi
17379
17380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17381   echo "$ac_t""yes" 1>&6
17382     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17383   cat >> confdefs.h <<EOF
17384 #define $ac_tr_func 1
17385 EOF
17386  
17387 else
17388   echo "$ac_t""no" 1>&6
17389 fi
17390 done
17391
17392   fi
17393
17394   
17395   
17396   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
17397 echo "configure:17398: checking for isnanl declaration" >&5
17398   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
17399     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
17400   echo $ac_n "(cached) $ac_c" 1>&6
17401 else
17402   
17403       
17404       ac_ext=C
17405 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17406 ac_cpp='$CXXCPP $CPPFLAGS'
17407 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17408 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17409 cross_compiling=$ac_cv_prog_cxx_cross
17410
17411       cat > conftest.$ac_ext <<EOF
17412 #line 17413 "configure"
17413 #include "confdefs.h"
17414 #include <math.h>
17415                       #ifdef HAVE_IEEEFP_H
17416                       #include <ieeefp.h>
17417                       #endif
17418                      
17419 int main() {
17420  isnanl(0);
17421 ; return 0; }
17422 EOF
17423 if { (eval echo configure:17424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17424   rm -rf conftest*
17425   glibcpp_cv_func_isnanl_use=yes
17426 else
17427   echo "configure: failed program was:" >&5
17428   cat conftest.$ac_ext >&5
17429   rm -rf conftest*
17430   glibcpp_cv_func_isnanl_use=no
17431 fi
17432 rm -f conftest*
17433       ac_ext=c
17434 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17435 ac_cpp='$CPP $CPPFLAGS'
17436 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17437 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17438 cross_compiling=$ac_cv_prog_cc_cross
17439
17440     
17441 fi
17442
17443   fi
17444   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
17445
17446   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
17447     for ac_func in isnanl
17448 do
17449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17450 echo "configure:17451: checking for $ac_func" >&5
17451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17452   echo $ac_n "(cached) $ac_c" 1>&6
17453 else
17454   cat > conftest.$ac_ext <<EOF
17455 #line 17456 "configure"
17456 #include "confdefs.h"
17457 /* System header to define __stub macros and hopefully few prototypes,
17458     which can conflict with char $ac_func(); below.  */
17459 #include <assert.h>
17460 /* Override any gcc2 internal prototype to avoid an error.  */
17461 /* We use char because int might match the return type of a gcc2
17462     builtin and then its argument prototype would still apply.  */
17463 char $ac_func();
17464
17465 int main() {
17466
17467 /* The GNU C library defines this for functions which it implements
17468     to always fail with ENOSYS.  Some functions are actually named
17469     something starting with __ and the normal name is an alias.  */
17470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17471 choke me
17472 #else
17473 $ac_func();
17474 #endif
17475
17476 ; return 0; }
17477 EOF
17478 if { (eval echo configure:17479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17479   rm -rf conftest*
17480   eval "ac_cv_func_$ac_func=yes"
17481 else
17482   echo "configure: failed program was:" >&5
17483   cat conftest.$ac_ext >&5
17484   rm -rf conftest*
17485   eval "ac_cv_func_$ac_func=no"
17486 fi
17487 rm -f conftest*
17488 fi
17489
17490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17491   echo "$ac_t""yes" 1>&6
17492     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17493   cat >> confdefs.h <<EOF
17494 #define $ac_tr_func 1
17495 EOF
17496  
17497 else
17498   echo "$ac_t""no" 1>&6
17499 fi
17500 done
17501     
17502   else
17503     
17504   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
17505 echo "configure:17506: checking for _isnanl declaration" >&5
17506   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
17507     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
17508   echo $ac_n "(cached) $ac_c" 1>&6
17509 else
17510   
17511       
17512       ac_ext=C
17513 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17514 ac_cpp='$CXXCPP $CPPFLAGS'
17515 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17516 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17517 cross_compiling=$ac_cv_prog_cxx_cross
17518
17519       cat > conftest.$ac_ext <<EOF
17520 #line 17521 "configure"
17521 #include "confdefs.h"
17522 #include <math.h>
17523                       #ifdef HAVE_IEEEFP_H
17524                       #include <ieeefp.h>
17525                       #endif
17526                      
17527 int main() {
17528  _isnanl(0);
17529 ; return 0; }
17530 EOF
17531 if { (eval echo configure:17532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17532   rm -rf conftest*
17533   glibcpp_cv_func__isnanl_use=yes
17534 else
17535   echo "configure: failed program was:" >&5
17536   cat conftest.$ac_ext >&5
17537   rm -rf conftest*
17538   glibcpp_cv_func__isnanl_use=no
17539 fi
17540 rm -f conftest*
17541       ac_ext=c
17542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17543 ac_cpp='$CPP $CPPFLAGS'
17544 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17545 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17546 cross_compiling=$ac_cv_prog_cc_cross
17547
17548     
17549 fi
17550
17551   fi
17552   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
17553
17554     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
17555       for ac_func in _isnanl
17556 do
17557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17558 echo "configure:17559: checking for $ac_func" >&5
17559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17560   echo $ac_n "(cached) $ac_c" 1>&6
17561 else
17562   cat > conftest.$ac_ext <<EOF
17563 #line 17564 "configure"
17564 #include "confdefs.h"
17565 /* System header to define __stub macros and hopefully few prototypes,
17566     which can conflict with char $ac_func(); below.  */
17567 #include <assert.h>
17568 /* Override any gcc2 internal prototype to avoid an error.  */
17569 /* We use char because int might match the return type of a gcc2
17570     builtin and then its argument prototype would still apply.  */
17571 char $ac_func();
17572
17573 int main() {
17574
17575 /* The GNU C library defines this for functions which it implements
17576     to always fail with ENOSYS.  Some functions are actually named
17577     something starting with __ and the normal name is an alias.  */
17578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17579 choke me
17580 #else
17581 $ac_func();
17582 #endif
17583
17584 ; return 0; }
17585 EOF
17586 if { (eval echo configure:17587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17587   rm -rf conftest*
17588   eval "ac_cv_func_$ac_func=yes"
17589 else
17590   echo "configure: failed program was:" >&5
17591   cat conftest.$ac_ext >&5
17592   rm -rf conftest*
17593   eval "ac_cv_func_$ac_func=no"
17594 fi
17595 rm -f conftest*
17596 fi
17597
17598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17599   echo "$ac_t""yes" 1>&6
17600     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17601   cat >> confdefs.h <<EOF
17602 #define $ac_tr_func 1
17603 EOF
17604  
17605 else
17606   echo "$ac_t""no" 1>&6
17607 fi
17608 done
17609     
17610     fi
17611   fi
17612
17613   
17614   
17615   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
17616 echo "configure:17617: checking for isinfl declaration" >&5
17617   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
17618     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
17619   echo $ac_n "(cached) $ac_c" 1>&6
17620 else
17621   
17622       
17623       ac_ext=C
17624 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17625 ac_cpp='$CXXCPP $CPPFLAGS'
17626 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17627 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17628 cross_compiling=$ac_cv_prog_cxx_cross
17629
17630       cat > conftest.$ac_ext <<EOF
17631 #line 17632 "configure"
17632 #include "confdefs.h"
17633 #include <math.h>
17634                       #ifdef HAVE_IEEEFP_H
17635                       #include <ieeefp.h>
17636                       #endif
17637                      
17638 int main() {
17639  isinfl(0);
17640 ; return 0; }
17641 EOF
17642 if { (eval echo configure:17643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17643   rm -rf conftest*
17644   glibcpp_cv_func_isinfl_use=yes
17645 else
17646   echo "configure: failed program was:" >&5
17647   cat conftest.$ac_ext >&5
17648   rm -rf conftest*
17649   glibcpp_cv_func_isinfl_use=no
17650 fi
17651 rm -f conftest*
17652       ac_ext=c
17653 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17654 ac_cpp='$CPP $CPPFLAGS'
17655 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17656 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17657 cross_compiling=$ac_cv_prog_cc_cross
17658
17659     
17660 fi
17661
17662   fi
17663   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
17664
17665   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
17666     for ac_func in isinfl
17667 do
17668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17669 echo "configure:17670: checking for $ac_func" >&5
17670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17671   echo $ac_n "(cached) $ac_c" 1>&6
17672 else
17673   cat > conftest.$ac_ext <<EOF
17674 #line 17675 "configure"
17675 #include "confdefs.h"
17676 /* System header to define __stub macros and hopefully few prototypes,
17677     which can conflict with char $ac_func(); below.  */
17678 #include <assert.h>
17679 /* Override any gcc2 internal prototype to avoid an error.  */
17680 /* We use char because int might match the return type of a gcc2
17681     builtin and then its argument prototype would still apply.  */
17682 char $ac_func();
17683
17684 int main() {
17685
17686 /* The GNU C library defines this for functions which it implements
17687     to always fail with ENOSYS.  Some functions are actually named
17688     something starting with __ and the normal name is an alias.  */
17689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17690 choke me
17691 #else
17692 $ac_func();
17693 #endif
17694
17695 ; return 0; }
17696 EOF
17697 if { (eval echo configure:17698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17698   rm -rf conftest*
17699   eval "ac_cv_func_$ac_func=yes"
17700 else
17701   echo "configure: failed program was:" >&5
17702   cat conftest.$ac_ext >&5
17703   rm -rf conftest*
17704   eval "ac_cv_func_$ac_func=no"
17705 fi
17706 rm -f conftest*
17707 fi
17708
17709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17710   echo "$ac_t""yes" 1>&6
17711     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17712   cat >> confdefs.h <<EOF
17713 #define $ac_tr_func 1
17714 EOF
17715  
17716 else
17717   echo "$ac_t""no" 1>&6
17718 fi
17719 done
17720     
17721   else
17722     
17723   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
17724 echo "configure:17725: checking for _isinfl declaration" >&5
17725   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
17726     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
17727   echo $ac_n "(cached) $ac_c" 1>&6
17728 else
17729   
17730       
17731       ac_ext=C
17732 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17733 ac_cpp='$CXXCPP $CPPFLAGS'
17734 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17735 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17736 cross_compiling=$ac_cv_prog_cxx_cross
17737
17738       cat > conftest.$ac_ext <<EOF
17739 #line 17740 "configure"
17740 #include "confdefs.h"
17741 #include <math.h>
17742                       #ifdef HAVE_IEEEFP_H
17743                       #include <ieeefp.h>
17744                       #endif
17745                      
17746 int main() {
17747  _isinfl(0);
17748 ; return 0; }
17749 EOF
17750 if { (eval echo configure:17751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17751   rm -rf conftest*
17752   glibcpp_cv_func__isinfl_use=yes
17753 else
17754   echo "configure: failed program was:" >&5
17755   cat conftest.$ac_ext >&5
17756   rm -rf conftest*
17757   glibcpp_cv_func__isinfl_use=no
17758 fi
17759 rm -f conftest*
17760       ac_ext=c
17761 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17762 ac_cpp='$CPP $CPPFLAGS'
17763 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17764 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17765 cross_compiling=$ac_cv_prog_cc_cross
17766
17767     
17768 fi
17769
17770   fi
17771   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
17772
17773     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
17774       for ac_func in _isinfl
17775 do
17776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17777 echo "configure:17778: checking for $ac_func" >&5
17778 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17779   echo $ac_n "(cached) $ac_c" 1>&6
17780 else
17781   cat > conftest.$ac_ext <<EOF
17782 #line 17783 "configure"
17783 #include "confdefs.h"
17784 /* System header to define __stub macros and hopefully few prototypes,
17785     which can conflict with char $ac_func(); below.  */
17786 #include <assert.h>
17787 /* Override any gcc2 internal prototype to avoid an error.  */
17788 /* We use char because int might match the return type of a gcc2
17789     builtin and then its argument prototype would still apply.  */
17790 char $ac_func();
17791
17792 int main() {
17793
17794 /* The GNU C library defines this for functions which it implements
17795     to always fail with ENOSYS.  Some functions are actually named
17796     something starting with __ and the normal name is an alias.  */
17797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17798 choke me
17799 #else
17800 $ac_func();
17801 #endif
17802
17803 ; return 0; }
17804 EOF
17805 if { (eval echo configure:17806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17806   rm -rf conftest*
17807   eval "ac_cv_func_$ac_func=yes"
17808 else
17809   echo "configure: failed program was:" >&5
17810   cat conftest.$ac_ext >&5
17811   rm -rf conftest*
17812   eval "ac_cv_func_$ac_func=no"
17813 fi
17814 rm -f conftest*
17815 fi
17816
17817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17818   echo "$ac_t""yes" 1>&6
17819     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17820   cat >> confdefs.h <<EOF
17821 #define $ac_tr_func 1
17822 EOF
17823  
17824 else
17825   echo "$ac_t""no" 1>&6
17826 fi
17827 done
17828     
17829     fi
17830   fi
17831
17832   
17833   
17834   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
17835 echo "configure:17836: checking for copysignl declaration" >&5
17836   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
17837     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
17838   echo $ac_n "(cached) $ac_c" 1>&6
17839 else
17840   
17841       
17842       ac_ext=C
17843 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17844 ac_cpp='$CXXCPP $CPPFLAGS'
17845 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17846 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17847 cross_compiling=$ac_cv_prog_cxx_cross
17848
17849       cat > conftest.$ac_ext <<EOF
17850 #line 17851 "configure"
17851 #include "confdefs.h"
17852 #include <math.h>
17853 int main() {
17854  copysignl(0, 0);
17855 ; return 0; }
17856 EOF
17857 if { (eval echo configure:17858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17858   rm -rf conftest*
17859   glibcpp_cv_func_copysignl_use=yes
17860 else
17861   echo "configure: failed program was:" >&5
17862   cat conftest.$ac_ext >&5
17863   rm -rf conftest*
17864   glibcpp_cv_func_copysignl_use=no
17865 fi
17866 rm -f conftest*
17867       ac_ext=c
17868 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17869 ac_cpp='$CPP $CPPFLAGS'
17870 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17871 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17872 cross_compiling=$ac_cv_prog_cc_cross
17873
17874     
17875 fi
17876
17877   fi
17878   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
17879
17880   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
17881     for ac_func in copysignl
17882 do
17883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17884 echo "configure:17885: checking for $ac_func" >&5
17885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17886   echo $ac_n "(cached) $ac_c" 1>&6
17887 else
17888   cat > conftest.$ac_ext <<EOF
17889 #line 17890 "configure"
17890 #include "confdefs.h"
17891 /* System header to define __stub macros and hopefully few prototypes,
17892     which can conflict with char $ac_func(); below.  */
17893 #include <assert.h>
17894 /* Override any gcc2 internal prototype to avoid an error.  */
17895 /* We use char because int might match the return type of a gcc2
17896     builtin and then its argument prototype would still apply.  */
17897 char $ac_func();
17898
17899 int main() {
17900
17901 /* The GNU C library defines this for functions which it implements
17902     to always fail with ENOSYS.  Some functions are actually named
17903     something starting with __ and the normal name is an alias.  */
17904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17905 choke me
17906 #else
17907 $ac_func();
17908 #endif
17909
17910 ; return 0; }
17911 EOF
17912 if { (eval echo configure:17913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17913   rm -rf conftest*
17914   eval "ac_cv_func_$ac_func=yes"
17915 else
17916   echo "configure: failed program was:" >&5
17917   cat conftest.$ac_ext >&5
17918   rm -rf conftest*
17919   eval "ac_cv_func_$ac_func=no"
17920 fi
17921 rm -f conftest*
17922 fi
17923
17924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17925   echo "$ac_t""yes" 1>&6
17926     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17927   cat >> confdefs.h <<EOF
17928 #define $ac_tr_func 1
17929 EOF
17930  
17931 else
17932   echo "$ac_t""no" 1>&6
17933 fi
17934 done
17935     
17936   else
17937     
17938   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
17939 echo "configure:17940: checking for _copysignl declaration" >&5
17940   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
17941     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
17942   echo $ac_n "(cached) $ac_c" 1>&6
17943 else
17944   
17945       
17946       ac_ext=C
17947 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17948 ac_cpp='$CXXCPP $CPPFLAGS'
17949 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17950 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17951 cross_compiling=$ac_cv_prog_cxx_cross
17952
17953       cat > conftest.$ac_ext <<EOF
17954 #line 17955 "configure"
17955 #include "confdefs.h"
17956 #include <math.h>
17957 int main() {
17958  _copysignl(0, 0);
17959 ; return 0; }
17960 EOF
17961 if { (eval echo configure:17962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17962   rm -rf conftest*
17963   glibcpp_cv_func__copysignl_use=yes
17964 else
17965   echo "configure: failed program was:" >&5
17966   cat conftest.$ac_ext >&5
17967   rm -rf conftest*
17968   glibcpp_cv_func__copysignl_use=no
17969 fi
17970 rm -f conftest*
17971       ac_ext=c
17972 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17973 ac_cpp='$CPP $CPPFLAGS'
17974 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17975 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17976 cross_compiling=$ac_cv_prog_cc_cross
17977
17978     
17979 fi
17980
17981   fi
17982   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
17983
17984     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
17985       for ac_func in _copysignl
17986 do
17987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17988 echo "configure:17989: checking for $ac_func" >&5
17989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17990   echo $ac_n "(cached) $ac_c" 1>&6
17991 else
17992   cat > conftest.$ac_ext <<EOF
17993 #line 17994 "configure"
17994 #include "confdefs.h"
17995 /* System header to define __stub macros and hopefully few prototypes,
17996     which can conflict with char $ac_func(); below.  */
17997 #include <assert.h>
17998 /* Override any gcc2 internal prototype to avoid an error.  */
17999 /* We use char because int might match the return type of a gcc2
18000     builtin and then its argument prototype would still apply.  */
18001 char $ac_func();
18002
18003 int main() {
18004
18005 /* The GNU C library defines this for functions which it implements
18006     to always fail with ENOSYS.  Some functions are actually named
18007     something starting with __ and the normal name is an alias.  */
18008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18009 choke me
18010 #else
18011 $ac_func();
18012 #endif
18013
18014 ; return 0; }
18015 EOF
18016 if { (eval echo configure:18017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18017   rm -rf conftest*
18018   eval "ac_cv_func_$ac_func=yes"
18019 else
18020   echo "configure: failed program was:" >&5
18021   cat conftest.$ac_ext >&5
18022   rm -rf conftest*
18023   eval "ac_cv_func_$ac_func=no"
18024 fi
18025 rm -f conftest*
18026 fi
18027
18028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18029   echo "$ac_t""yes" 1>&6
18030     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18031   cat >> confdefs.h <<EOF
18032 #define $ac_tr_func 1
18033 EOF
18034  
18035 else
18036   echo "$ac_t""no" 1>&6
18037 fi
18038 done
18039     
18040     fi
18041   fi
18042
18043   
18044   
18045   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
18046 echo "configure:18047: checking for atan2l declaration" >&5
18047   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
18048     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
18049   echo $ac_n "(cached) $ac_c" 1>&6
18050 else
18051   
18052       
18053       ac_ext=C
18054 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18055 ac_cpp='$CXXCPP $CPPFLAGS'
18056 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18057 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18058 cross_compiling=$ac_cv_prog_cxx_cross
18059
18060       cat > conftest.$ac_ext <<EOF
18061 #line 18062 "configure"
18062 #include "confdefs.h"
18063 #include <math.h>
18064 int main() {
18065  atan2l(0, 0);
18066 ; return 0; }
18067 EOF
18068 if { (eval echo configure:18069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18069   rm -rf conftest*
18070   glibcpp_cv_func_atan2l_use=yes
18071 else
18072   echo "configure: failed program was:" >&5
18073   cat conftest.$ac_ext >&5
18074   rm -rf conftest*
18075   glibcpp_cv_func_atan2l_use=no
18076 fi
18077 rm -f conftest*
18078       ac_ext=c
18079 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18080 ac_cpp='$CPP $CPPFLAGS'
18081 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18082 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18083 cross_compiling=$ac_cv_prog_cc_cross
18084
18085     
18086 fi
18087
18088   fi
18089   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
18090
18091   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
18092     for ac_func in atan2l
18093 do
18094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18095 echo "configure:18096: checking for $ac_func" >&5
18096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18097   echo $ac_n "(cached) $ac_c" 1>&6
18098 else
18099   cat > conftest.$ac_ext <<EOF
18100 #line 18101 "configure"
18101 #include "confdefs.h"
18102 /* System header to define __stub macros and hopefully few prototypes,
18103     which can conflict with char $ac_func(); below.  */
18104 #include <assert.h>
18105 /* Override any gcc2 internal prototype to avoid an error.  */
18106 /* We use char because int might match the return type of a gcc2
18107     builtin and then its argument prototype would still apply.  */
18108 char $ac_func();
18109
18110 int main() {
18111
18112 /* The GNU C library defines this for functions which it implements
18113     to always fail with ENOSYS.  Some functions are actually named
18114     something starting with __ and the normal name is an alias.  */
18115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18116 choke me
18117 #else
18118 $ac_func();
18119 #endif
18120
18121 ; return 0; }
18122 EOF
18123 if { (eval echo configure:18124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18124   rm -rf conftest*
18125   eval "ac_cv_func_$ac_func=yes"
18126 else
18127   echo "configure: failed program was:" >&5
18128   cat conftest.$ac_ext >&5
18129   rm -rf conftest*
18130   eval "ac_cv_func_$ac_func=no"
18131 fi
18132 rm -f conftest*
18133 fi
18134
18135 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18136   echo "$ac_t""yes" 1>&6
18137     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18138   cat >> confdefs.h <<EOF
18139 #define $ac_tr_func 1
18140 EOF
18141  
18142 else
18143   echo "$ac_t""no" 1>&6
18144 fi
18145 done
18146     
18147   else
18148     
18149   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
18150 echo "configure:18151: checking for _atan2l declaration" >&5
18151   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
18152     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
18153   echo $ac_n "(cached) $ac_c" 1>&6
18154 else
18155   
18156       
18157       ac_ext=C
18158 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18159 ac_cpp='$CXXCPP $CPPFLAGS'
18160 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18161 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18162 cross_compiling=$ac_cv_prog_cxx_cross
18163
18164       cat > conftest.$ac_ext <<EOF
18165 #line 18166 "configure"
18166 #include "confdefs.h"
18167 #include <math.h>
18168 int main() {
18169  _atan2l(0, 0);
18170 ; return 0; }
18171 EOF
18172 if { (eval echo configure:18173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18173   rm -rf conftest*
18174   glibcpp_cv_func__atan2l_use=yes
18175 else
18176   echo "configure: failed program was:" >&5
18177   cat conftest.$ac_ext >&5
18178   rm -rf conftest*
18179   glibcpp_cv_func__atan2l_use=no
18180 fi
18181 rm -f conftest*
18182       ac_ext=c
18183 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18184 ac_cpp='$CPP $CPPFLAGS'
18185 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18186 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18187 cross_compiling=$ac_cv_prog_cc_cross
18188
18189     
18190 fi
18191
18192   fi
18193   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
18194
18195     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
18196       for ac_func in _atan2l
18197 do
18198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18199 echo "configure:18200: checking for $ac_func" >&5
18200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18201   echo $ac_n "(cached) $ac_c" 1>&6
18202 else
18203   cat > conftest.$ac_ext <<EOF
18204 #line 18205 "configure"
18205 #include "confdefs.h"
18206 /* System header to define __stub macros and hopefully few prototypes,
18207     which can conflict with char $ac_func(); below.  */
18208 #include <assert.h>
18209 /* Override any gcc2 internal prototype to avoid an error.  */
18210 /* We use char because int might match the return type of a gcc2
18211     builtin and then its argument prototype would still apply.  */
18212 char $ac_func();
18213
18214 int main() {
18215
18216 /* The GNU C library defines this for functions which it implements
18217     to always fail with ENOSYS.  Some functions are actually named
18218     something starting with __ and the normal name is an alias.  */
18219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18220 choke me
18221 #else
18222 $ac_func();
18223 #endif
18224
18225 ; return 0; }
18226 EOF
18227 if { (eval echo configure:18228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18228   rm -rf conftest*
18229   eval "ac_cv_func_$ac_func=yes"
18230 else
18231   echo "configure: failed program was:" >&5
18232   cat conftest.$ac_ext >&5
18233   rm -rf conftest*
18234   eval "ac_cv_func_$ac_func=no"
18235 fi
18236 rm -f conftest*
18237 fi
18238
18239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18240   echo "$ac_t""yes" 1>&6
18241     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18242   cat >> confdefs.h <<EOF
18243 #define $ac_tr_func 1
18244 EOF
18245  
18246 else
18247   echo "$ac_t""no" 1>&6
18248 fi
18249 done
18250     
18251     fi
18252   fi
18253
18254   
18255   
18256   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
18257 echo "configure:18258: checking for expl declaration" >&5
18258   if test x${glibcpp_cv_func_expl_use+set} != xset; then
18259     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
18260   echo $ac_n "(cached) $ac_c" 1>&6
18261 else
18262   
18263       
18264       ac_ext=C
18265 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18266 ac_cpp='$CXXCPP $CPPFLAGS'
18267 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18268 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18269 cross_compiling=$ac_cv_prog_cxx_cross
18270
18271       cat > conftest.$ac_ext <<EOF
18272 #line 18273 "configure"
18273 #include "confdefs.h"
18274 #include <math.h>
18275                       #ifdef HAVE_IEEEFP_H
18276                       #include <ieeefp.h>
18277                       #endif
18278                      
18279 int main() {
18280  expl(0);
18281 ; return 0; }
18282 EOF
18283 if { (eval echo configure:18284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18284   rm -rf conftest*
18285   glibcpp_cv_func_expl_use=yes
18286 else
18287   echo "configure: failed program was:" >&5
18288   cat conftest.$ac_ext >&5
18289   rm -rf conftest*
18290   glibcpp_cv_func_expl_use=no
18291 fi
18292 rm -f conftest*
18293       ac_ext=c
18294 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18295 ac_cpp='$CPP $CPPFLAGS'
18296 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18297 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18298 cross_compiling=$ac_cv_prog_cc_cross
18299
18300     
18301 fi
18302
18303   fi
18304   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
18305
18306   if test x$glibcpp_cv_func_expl_use = x"yes"; then
18307     for ac_func in expl
18308 do
18309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18310 echo "configure:18311: checking for $ac_func" >&5
18311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18312   echo $ac_n "(cached) $ac_c" 1>&6
18313 else
18314   cat > conftest.$ac_ext <<EOF
18315 #line 18316 "configure"
18316 #include "confdefs.h"
18317 /* System header to define __stub macros and hopefully few prototypes,
18318     which can conflict with char $ac_func(); below.  */
18319 #include <assert.h>
18320 /* Override any gcc2 internal prototype to avoid an error.  */
18321 /* We use char because int might match the return type of a gcc2
18322     builtin and then its argument prototype would still apply.  */
18323 char $ac_func();
18324
18325 int main() {
18326
18327 /* The GNU C library defines this for functions which it implements
18328     to always fail with ENOSYS.  Some functions are actually named
18329     something starting with __ and the normal name is an alias.  */
18330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18331 choke me
18332 #else
18333 $ac_func();
18334 #endif
18335
18336 ; return 0; }
18337 EOF
18338 if { (eval echo configure:18339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18339   rm -rf conftest*
18340   eval "ac_cv_func_$ac_func=yes"
18341 else
18342   echo "configure: failed program was:" >&5
18343   cat conftest.$ac_ext >&5
18344   rm -rf conftest*
18345   eval "ac_cv_func_$ac_func=no"
18346 fi
18347 rm -f conftest*
18348 fi
18349
18350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18351   echo "$ac_t""yes" 1>&6
18352     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18353   cat >> confdefs.h <<EOF
18354 #define $ac_tr_func 1
18355 EOF
18356  
18357 else
18358   echo "$ac_t""no" 1>&6
18359 fi
18360 done
18361     
18362   else
18363     
18364   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
18365 echo "configure:18366: checking for _expl declaration" >&5
18366   if test x${glibcpp_cv_func__expl_use+set} != xset; then
18367     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
18368   echo $ac_n "(cached) $ac_c" 1>&6
18369 else
18370   
18371       
18372       ac_ext=C
18373 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18374 ac_cpp='$CXXCPP $CPPFLAGS'
18375 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18376 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18377 cross_compiling=$ac_cv_prog_cxx_cross
18378
18379       cat > conftest.$ac_ext <<EOF
18380 #line 18381 "configure"
18381 #include "confdefs.h"
18382 #include <math.h>
18383                       #ifdef HAVE_IEEEFP_H
18384                       #include <ieeefp.h>
18385                       #endif
18386                      
18387 int main() {
18388  _expl(0);
18389 ; return 0; }
18390 EOF
18391 if { (eval echo configure:18392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18392   rm -rf conftest*
18393   glibcpp_cv_func__expl_use=yes
18394 else
18395   echo "configure: failed program was:" >&5
18396   cat conftest.$ac_ext >&5
18397   rm -rf conftest*
18398   glibcpp_cv_func__expl_use=no
18399 fi
18400 rm -f conftest*
18401       ac_ext=c
18402 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18403 ac_cpp='$CPP $CPPFLAGS'
18404 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18405 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18406 cross_compiling=$ac_cv_prog_cc_cross
18407
18408     
18409 fi
18410
18411   fi
18412   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
18413
18414     if test x$glibcpp_cv_func__expl_use = x"yes"; then
18415       for ac_func in _expl
18416 do
18417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18418 echo "configure:18419: checking for $ac_func" >&5
18419 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18420   echo $ac_n "(cached) $ac_c" 1>&6
18421 else
18422   cat > conftest.$ac_ext <<EOF
18423 #line 18424 "configure"
18424 #include "confdefs.h"
18425 /* System header to define __stub macros and hopefully few prototypes,
18426     which can conflict with char $ac_func(); below.  */
18427 #include <assert.h>
18428 /* Override any gcc2 internal prototype to avoid an error.  */
18429 /* We use char because int might match the return type of a gcc2
18430     builtin and then its argument prototype would still apply.  */
18431 char $ac_func();
18432
18433 int main() {
18434
18435 /* The GNU C library defines this for functions which it implements
18436     to always fail with ENOSYS.  Some functions are actually named
18437     something starting with __ and the normal name is an alias.  */
18438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18439 choke me
18440 #else
18441 $ac_func();
18442 #endif
18443
18444 ; return 0; }
18445 EOF
18446 if { (eval echo configure:18447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18447   rm -rf conftest*
18448   eval "ac_cv_func_$ac_func=yes"
18449 else
18450   echo "configure: failed program was:" >&5
18451   cat conftest.$ac_ext >&5
18452   rm -rf conftest*
18453   eval "ac_cv_func_$ac_func=no"
18454 fi
18455 rm -f conftest*
18456 fi
18457
18458 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18459   echo "$ac_t""yes" 1>&6
18460     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18461   cat >> confdefs.h <<EOF
18462 #define $ac_tr_func 1
18463 EOF
18464  
18465 else
18466   echo "$ac_t""no" 1>&6
18467 fi
18468 done
18469     
18470     fi
18471   fi
18472
18473   
18474   
18475   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
18476 echo "configure:18477: checking for fabsl declaration" >&5
18477   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
18478     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
18479   echo $ac_n "(cached) $ac_c" 1>&6
18480 else
18481   
18482       
18483       ac_ext=C
18484 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18485 ac_cpp='$CXXCPP $CPPFLAGS'
18486 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18487 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18488 cross_compiling=$ac_cv_prog_cxx_cross
18489
18490       cat > conftest.$ac_ext <<EOF
18491 #line 18492 "configure"
18492 #include "confdefs.h"
18493 #include <math.h>
18494                       #ifdef HAVE_IEEEFP_H
18495                       #include <ieeefp.h>
18496                       #endif
18497                      
18498 int main() {
18499  fabsl(0);
18500 ; return 0; }
18501 EOF
18502 if { (eval echo configure:18503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18503   rm -rf conftest*
18504   glibcpp_cv_func_fabsl_use=yes
18505 else
18506   echo "configure: failed program was:" >&5
18507   cat conftest.$ac_ext >&5
18508   rm -rf conftest*
18509   glibcpp_cv_func_fabsl_use=no
18510 fi
18511 rm -f conftest*
18512       ac_ext=c
18513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18514 ac_cpp='$CPP $CPPFLAGS'
18515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18517 cross_compiling=$ac_cv_prog_cc_cross
18518
18519     
18520 fi
18521
18522   fi
18523   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
18524
18525   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
18526     for ac_func in fabsl
18527 do
18528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18529 echo "configure:18530: checking for $ac_func" >&5
18530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18531   echo $ac_n "(cached) $ac_c" 1>&6
18532 else
18533   cat > conftest.$ac_ext <<EOF
18534 #line 18535 "configure"
18535 #include "confdefs.h"
18536 /* System header to define __stub macros and hopefully few prototypes,
18537     which can conflict with char $ac_func(); below.  */
18538 #include <assert.h>
18539 /* Override any gcc2 internal prototype to avoid an error.  */
18540 /* We use char because int might match the return type of a gcc2
18541     builtin and then its argument prototype would still apply.  */
18542 char $ac_func();
18543
18544 int main() {
18545
18546 /* The GNU C library defines this for functions which it implements
18547     to always fail with ENOSYS.  Some functions are actually named
18548     something starting with __ and the normal name is an alias.  */
18549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18550 choke me
18551 #else
18552 $ac_func();
18553 #endif
18554
18555 ; return 0; }
18556 EOF
18557 if { (eval echo configure:18558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18558   rm -rf conftest*
18559   eval "ac_cv_func_$ac_func=yes"
18560 else
18561   echo "configure: failed program was:" >&5
18562   cat conftest.$ac_ext >&5
18563   rm -rf conftest*
18564   eval "ac_cv_func_$ac_func=no"
18565 fi
18566 rm -f conftest*
18567 fi
18568
18569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18570   echo "$ac_t""yes" 1>&6
18571     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18572   cat >> confdefs.h <<EOF
18573 #define $ac_tr_func 1
18574 EOF
18575  
18576 else
18577   echo "$ac_t""no" 1>&6
18578 fi
18579 done
18580     
18581   else
18582     
18583   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
18584 echo "configure:18585: checking for _fabsl declaration" >&5
18585   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
18586     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
18587   echo $ac_n "(cached) $ac_c" 1>&6
18588 else
18589   
18590       
18591       ac_ext=C
18592 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18593 ac_cpp='$CXXCPP $CPPFLAGS'
18594 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18595 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18596 cross_compiling=$ac_cv_prog_cxx_cross
18597
18598       cat > conftest.$ac_ext <<EOF
18599 #line 18600 "configure"
18600 #include "confdefs.h"
18601 #include <math.h>
18602                       #ifdef HAVE_IEEEFP_H
18603                       #include <ieeefp.h>
18604                       #endif
18605                      
18606 int main() {
18607  _fabsl(0);
18608 ; return 0; }
18609 EOF
18610 if { (eval echo configure:18611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18611   rm -rf conftest*
18612   glibcpp_cv_func__fabsl_use=yes
18613 else
18614   echo "configure: failed program was:" >&5
18615   cat conftest.$ac_ext >&5
18616   rm -rf conftest*
18617   glibcpp_cv_func__fabsl_use=no
18618 fi
18619 rm -f conftest*
18620       ac_ext=c
18621 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18622 ac_cpp='$CPP $CPPFLAGS'
18623 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18624 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18625 cross_compiling=$ac_cv_prog_cc_cross
18626
18627     
18628 fi
18629
18630   fi
18631   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
18632
18633     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
18634       for ac_func in _fabsl
18635 do
18636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18637 echo "configure:18638: checking for $ac_func" >&5
18638 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18639   echo $ac_n "(cached) $ac_c" 1>&6
18640 else
18641   cat > conftest.$ac_ext <<EOF
18642 #line 18643 "configure"
18643 #include "confdefs.h"
18644 /* System header to define __stub macros and hopefully few prototypes,
18645     which can conflict with char $ac_func(); below.  */
18646 #include <assert.h>
18647 /* Override any gcc2 internal prototype to avoid an error.  */
18648 /* We use char because int might match the return type of a gcc2
18649     builtin and then its argument prototype would still apply.  */
18650 char $ac_func();
18651
18652 int main() {
18653
18654 /* The GNU C library defines this for functions which it implements
18655     to always fail with ENOSYS.  Some functions are actually named
18656     something starting with __ and the normal name is an alias.  */
18657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18658 choke me
18659 #else
18660 $ac_func();
18661 #endif
18662
18663 ; return 0; }
18664 EOF
18665 if { (eval echo configure:18666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18666   rm -rf conftest*
18667   eval "ac_cv_func_$ac_func=yes"
18668 else
18669   echo "configure: failed program was:" >&5
18670   cat conftest.$ac_ext >&5
18671   rm -rf conftest*
18672   eval "ac_cv_func_$ac_func=no"
18673 fi
18674 rm -f conftest*
18675 fi
18676
18677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18678   echo "$ac_t""yes" 1>&6
18679     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18680   cat >> confdefs.h <<EOF
18681 #define $ac_tr_func 1
18682 EOF
18683  
18684 else
18685   echo "$ac_t""no" 1>&6
18686 fi
18687 done
18688     
18689     fi
18690   fi
18691
18692   
18693   
18694   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
18695 echo "configure:18696: checking for fmodl declaration" >&5
18696   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
18697     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
18698   echo $ac_n "(cached) $ac_c" 1>&6
18699 else
18700   
18701       
18702       ac_ext=C
18703 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18704 ac_cpp='$CXXCPP $CPPFLAGS'
18705 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18706 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18707 cross_compiling=$ac_cv_prog_cxx_cross
18708
18709       cat > conftest.$ac_ext <<EOF
18710 #line 18711 "configure"
18711 #include "confdefs.h"
18712 #include <math.h>
18713 int main() {
18714  fmodl(0, 0);
18715 ; return 0; }
18716 EOF
18717 if { (eval echo configure:18718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18718   rm -rf conftest*
18719   glibcpp_cv_func_fmodl_use=yes
18720 else
18721   echo "configure: failed program was:" >&5
18722   cat conftest.$ac_ext >&5
18723   rm -rf conftest*
18724   glibcpp_cv_func_fmodl_use=no
18725 fi
18726 rm -f conftest*
18727       ac_ext=c
18728 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18729 ac_cpp='$CPP $CPPFLAGS'
18730 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18731 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18732 cross_compiling=$ac_cv_prog_cc_cross
18733
18734     
18735 fi
18736
18737   fi
18738   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
18739
18740   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
18741     for ac_func in fmodl
18742 do
18743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18744 echo "configure:18745: checking for $ac_func" >&5
18745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18746   echo $ac_n "(cached) $ac_c" 1>&6
18747 else
18748   cat > conftest.$ac_ext <<EOF
18749 #line 18750 "configure"
18750 #include "confdefs.h"
18751 /* System header to define __stub macros and hopefully few prototypes,
18752     which can conflict with char $ac_func(); below.  */
18753 #include <assert.h>
18754 /* Override any gcc2 internal prototype to avoid an error.  */
18755 /* We use char because int might match the return type of a gcc2
18756     builtin and then its argument prototype would still apply.  */
18757 char $ac_func();
18758
18759 int main() {
18760
18761 /* The GNU C library defines this for functions which it implements
18762     to always fail with ENOSYS.  Some functions are actually named
18763     something starting with __ and the normal name is an alias.  */
18764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18765 choke me
18766 #else
18767 $ac_func();
18768 #endif
18769
18770 ; return 0; }
18771 EOF
18772 if { (eval echo configure:18773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18773   rm -rf conftest*
18774   eval "ac_cv_func_$ac_func=yes"
18775 else
18776   echo "configure: failed program was:" >&5
18777   cat conftest.$ac_ext >&5
18778   rm -rf conftest*
18779   eval "ac_cv_func_$ac_func=no"
18780 fi
18781 rm -f conftest*
18782 fi
18783
18784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18785   echo "$ac_t""yes" 1>&6
18786     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18787   cat >> confdefs.h <<EOF
18788 #define $ac_tr_func 1
18789 EOF
18790  
18791 else
18792   echo "$ac_t""no" 1>&6
18793 fi
18794 done
18795     
18796   else
18797     
18798   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
18799 echo "configure:18800: checking for _fmodl declaration" >&5
18800   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
18801     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
18802   echo $ac_n "(cached) $ac_c" 1>&6
18803 else
18804   
18805       
18806       ac_ext=C
18807 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18808 ac_cpp='$CXXCPP $CPPFLAGS'
18809 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18810 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18811 cross_compiling=$ac_cv_prog_cxx_cross
18812
18813       cat > conftest.$ac_ext <<EOF
18814 #line 18815 "configure"
18815 #include "confdefs.h"
18816 #include <math.h>
18817 int main() {
18818  _fmodl(0, 0);
18819 ; return 0; }
18820 EOF
18821 if { (eval echo configure:18822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18822   rm -rf conftest*
18823   glibcpp_cv_func__fmodl_use=yes
18824 else
18825   echo "configure: failed program was:" >&5
18826   cat conftest.$ac_ext >&5
18827   rm -rf conftest*
18828   glibcpp_cv_func__fmodl_use=no
18829 fi
18830 rm -f conftest*
18831       ac_ext=c
18832 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18833 ac_cpp='$CPP $CPPFLAGS'
18834 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18835 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18836 cross_compiling=$ac_cv_prog_cc_cross
18837
18838     
18839 fi
18840
18841   fi
18842   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
18843
18844     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
18845       for ac_func in _fmodl
18846 do
18847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18848 echo "configure:18849: checking for $ac_func" >&5
18849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18850   echo $ac_n "(cached) $ac_c" 1>&6
18851 else
18852   cat > conftest.$ac_ext <<EOF
18853 #line 18854 "configure"
18854 #include "confdefs.h"
18855 /* System header to define __stub macros and hopefully few prototypes,
18856     which can conflict with char $ac_func(); below.  */
18857 #include <assert.h>
18858 /* Override any gcc2 internal prototype to avoid an error.  */
18859 /* We use char because int might match the return type of a gcc2
18860     builtin and then its argument prototype would still apply.  */
18861 char $ac_func();
18862
18863 int main() {
18864
18865 /* The GNU C library defines this for functions which it implements
18866     to always fail with ENOSYS.  Some functions are actually named
18867     something starting with __ and the normal name is an alias.  */
18868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18869 choke me
18870 #else
18871 $ac_func();
18872 #endif
18873
18874 ; return 0; }
18875 EOF
18876 if { (eval echo configure:18877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18877   rm -rf conftest*
18878   eval "ac_cv_func_$ac_func=yes"
18879 else
18880   echo "configure: failed program was:" >&5
18881   cat conftest.$ac_ext >&5
18882   rm -rf conftest*
18883   eval "ac_cv_func_$ac_func=no"
18884 fi
18885 rm -f conftest*
18886 fi
18887
18888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18889   echo "$ac_t""yes" 1>&6
18890     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18891   cat >> confdefs.h <<EOF
18892 #define $ac_tr_func 1
18893 EOF
18894  
18895 else
18896   echo "$ac_t""no" 1>&6
18897 fi
18898 done
18899     
18900     fi
18901   fi
18902
18903   
18904   
18905   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
18906 echo "configure:18907: checking for frexpl declaration" >&5
18907   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
18908     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
18909   echo $ac_n "(cached) $ac_c" 1>&6
18910 else
18911   
18912       
18913       ac_ext=C
18914 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18915 ac_cpp='$CXXCPP $CPPFLAGS'
18916 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18917 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18918 cross_compiling=$ac_cv_prog_cxx_cross
18919
18920       cat > conftest.$ac_ext <<EOF
18921 #line 18922 "configure"
18922 #include "confdefs.h"
18923 #include <math.h>
18924 int main() {
18925  frexpl(0, 0);
18926 ; return 0; }
18927 EOF
18928 if { (eval echo configure:18929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18929   rm -rf conftest*
18930   glibcpp_cv_func_frexpl_use=yes
18931 else
18932   echo "configure: failed program was:" >&5
18933   cat conftest.$ac_ext >&5
18934   rm -rf conftest*
18935   glibcpp_cv_func_frexpl_use=no
18936 fi
18937 rm -f conftest*
18938       ac_ext=c
18939 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18940 ac_cpp='$CPP $CPPFLAGS'
18941 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18942 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18943 cross_compiling=$ac_cv_prog_cc_cross
18944
18945     
18946 fi
18947
18948   fi
18949   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
18950
18951   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
18952     for ac_func in frexpl
18953 do
18954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18955 echo "configure:18956: checking for $ac_func" >&5
18956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18957   echo $ac_n "(cached) $ac_c" 1>&6
18958 else
18959   cat > conftest.$ac_ext <<EOF
18960 #line 18961 "configure"
18961 #include "confdefs.h"
18962 /* System header to define __stub macros and hopefully few prototypes,
18963     which can conflict with char $ac_func(); below.  */
18964 #include <assert.h>
18965 /* Override any gcc2 internal prototype to avoid an error.  */
18966 /* We use char because int might match the return type of a gcc2
18967     builtin and then its argument prototype would still apply.  */
18968 char $ac_func();
18969
18970 int main() {
18971
18972 /* The GNU C library defines this for functions which it implements
18973     to always fail with ENOSYS.  Some functions are actually named
18974     something starting with __ and the normal name is an alias.  */
18975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18976 choke me
18977 #else
18978 $ac_func();
18979 #endif
18980
18981 ; return 0; }
18982 EOF
18983 if { (eval echo configure:18984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18984   rm -rf conftest*
18985   eval "ac_cv_func_$ac_func=yes"
18986 else
18987   echo "configure: failed program was:" >&5
18988   cat conftest.$ac_ext >&5
18989   rm -rf conftest*
18990   eval "ac_cv_func_$ac_func=no"
18991 fi
18992 rm -f conftest*
18993 fi
18994
18995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18996   echo "$ac_t""yes" 1>&6
18997     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18998   cat >> confdefs.h <<EOF
18999 #define $ac_tr_func 1
19000 EOF
19001  
19002 else
19003   echo "$ac_t""no" 1>&6
19004 fi
19005 done
19006     
19007   else
19008     
19009   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
19010 echo "configure:19011: checking for _frexpl declaration" >&5
19011   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
19012     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
19013   echo $ac_n "(cached) $ac_c" 1>&6
19014 else
19015   
19016       
19017       ac_ext=C
19018 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19019 ac_cpp='$CXXCPP $CPPFLAGS'
19020 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19021 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19022 cross_compiling=$ac_cv_prog_cxx_cross
19023
19024       cat > conftest.$ac_ext <<EOF
19025 #line 19026 "configure"
19026 #include "confdefs.h"
19027 #include <math.h>
19028 int main() {
19029  _frexpl(0, 0);
19030 ; return 0; }
19031 EOF
19032 if { (eval echo configure:19033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19033   rm -rf conftest*
19034   glibcpp_cv_func__frexpl_use=yes
19035 else
19036   echo "configure: failed program was:" >&5
19037   cat conftest.$ac_ext >&5
19038   rm -rf conftest*
19039   glibcpp_cv_func__frexpl_use=no
19040 fi
19041 rm -f conftest*
19042       ac_ext=c
19043 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19044 ac_cpp='$CPP $CPPFLAGS'
19045 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19046 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19047 cross_compiling=$ac_cv_prog_cc_cross
19048
19049     
19050 fi
19051
19052   fi
19053   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
19054
19055     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
19056       for ac_func in _frexpl
19057 do
19058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19059 echo "configure:19060: checking for $ac_func" >&5
19060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19061   echo $ac_n "(cached) $ac_c" 1>&6
19062 else
19063   cat > conftest.$ac_ext <<EOF
19064 #line 19065 "configure"
19065 #include "confdefs.h"
19066 /* System header to define __stub macros and hopefully few prototypes,
19067     which can conflict with char $ac_func(); below.  */
19068 #include <assert.h>
19069 /* Override any gcc2 internal prototype to avoid an error.  */
19070 /* We use char because int might match the return type of a gcc2
19071     builtin and then its argument prototype would still apply.  */
19072 char $ac_func();
19073
19074 int main() {
19075
19076 /* The GNU C library defines this for functions which it implements
19077     to always fail with ENOSYS.  Some functions are actually named
19078     something starting with __ and the normal name is an alias.  */
19079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19080 choke me
19081 #else
19082 $ac_func();
19083 #endif
19084
19085 ; return 0; }
19086 EOF
19087 if { (eval echo configure:19088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19088   rm -rf conftest*
19089   eval "ac_cv_func_$ac_func=yes"
19090 else
19091   echo "configure: failed program was:" >&5
19092   cat conftest.$ac_ext >&5
19093   rm -rf conftest*
19094   eval "ac_cv_func_$ac_func=no"
19095 fi
19096 rm -f conftest*
19097 fi
19098
19099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19100   echo "$ac_t""yes" 1>&6
19101     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19102   cat >> confdefs.h <<EOF
19103 #define $ac_tr_func 1
19104 EOF
19105  
19106 else
19107   echo "$ac_t""no" 1>&6
19108 fi
19109 done
19110     
19111     fi
19112   fi
19113
19114   
19115   
19116   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
19117 echo "configure:19118: checking for hypotl declaration" >&5
19118   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
19119     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
19120   echo $ac_n "(cached) $ac_c" 1>&6
19121 else
19122   
19123       
19124       ac_ext=C
19125 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19126 ac_cpp='$CXXCPP $CPPFLAGS'
19127 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19128 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19129 cross_compiling=$ac_cv_prog_cxx_cross
19130
19131       cat > conftest.$ac_ext <<EOF
19132 #line 19133 "configure"
19133 #include "confdefs.h"
19134 #include <math.h>
19135 int main() {
19136  hypotl(0, 0);
19137 ; return 0; }
19138 EOF
19139 if { (eval echo configure:19140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19140   rm -rf conftest*
19141   glibcpp_cv_func_hypotl_use=yes
19142 else
19143   echo "configure: failed program was:" >&5
19144   cat conftest.$ac_ext >&5
19145   rm -rf conftest*
19146   glibcpp_cv_func_hypotl_use=no
19147 fi
19148 rm -f conftest*
19149       ac_ext=c
19150 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19151 ac_cpp='$CPP $CPPFLAGS'
19152 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19153 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19154 cross_compiling=$ac_cv_prog_cc_cross
19155
19156     
19157 fi
19158
19159   fi
19160   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
19161
19162   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
19163     for ac_func in hypotl
19164 do
19165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19166 echo "configure:19167: checking for $ac_func" >&5
19167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19168   echo $ac_n "(cached) $ac_c" 1>&6
19169 else
19170   cat > conftest.$ac_ext <<EOF
19171 #line 19172 "configure"
19172 #include "confdefs.h"
19173 /* System header to define __stub macros and hopefully few prototypes,
19174     which can conflict with char $ac_func(); below.  */
19175 #include <assert.h>
19176 /* Override any gcc2 internal prototype to avoid an error.  */
19177 /* We use char because int might match the return type of a gcc2
19178     builtin and then its argument prototype would still apply.  */
19179 char $ac_func();
19180
19181 int main() {
19182
19183 /* The GNU C library defines this for functions which it implements
19184     to always fail with ENOSYS.  Some functions are actually named
19185     something starting with __ and the normal name is an alias.  */
19186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19187 choke me
19188 #else
19189 $ac_func();
19190 #endif
19191
19192 ; return 0; }
19193 EOF
19194 if { (eval echo configure:19195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19195   rm -rf conftest*
19196   eval "ac_cv_func_$ac_func=yes"
19197 else
19198   echo "configure: failed program was:" >&5
19199   cat conftest.$ac_ext >&5
19200   rm -rf conftest*
19201   eval "ac_cv_func_$ac_func=no"
19202 fi
19203 rm -f conftest*
19204 fi
19205
19206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19207   echo "$ac_t""yes" 1>&6
19208     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19209   cat >> confdefs.h <<EOF
19210 #define $ac_tr_func 1
19211 EOF
19212  
19213 else
19214   echo "$ac_t""no" 1>&6
19215 fi
19216 done
19217     
19218   else
19219     
19220   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
19221 echo "configure:19222: checking for _hypotl declaration" >&5
19222   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
19223     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
19224   echo $ac_n "(cached) $ac_c" 1>&6
19225 else
19226   
19227       
19228       ac_ext=C
19229 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19230 ac_cpp='$CXXCPP $CPPFLAGS'
19231 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19232 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19233 cross_compiling=$ac_cv_prog_cxx_cross
19234
19235       cat > conftest.$ac_ext <<EOF
19236 #line 19237 "configure"
19237 #include "confdefs.h"
19238 #include <math.h>
19239 int main() {
19240  _hypotl(0, 0);
19241 ; return 0; }
19242 EOF
19243 if { (eval echo configure:19244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19244   rm -rf conftest*
19245   glibcpp_cv_func__hypotl_use=yes
19246 else
19247   echo "configure: failed program was:" >&5
19248   cat conftest.$ac_ext >&5
19249   rm -rf conftest*
19250   glibcpp_cv_func__hypotl_use=no
19251 fi
19252 rm -f conftest*
19253       ac_ext=c
19254 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19255 ac_cpp='$CPP $CPPFLAGS'
19256 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19257 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19258 cross_compiling=$ac_cv_prog_cc_cross
19259
19260     
19261 fi
19262
19263   fi
19264   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
19265
19266     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
19267       for ac_func in _hypotl
19268 do
19269 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19270 echo "configure:19271: checking for $ac_func" >&5
19271 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19272   echo $ac_n "(cached) $ac_c" 1>&6
19273 else
19274   cat > conftest.$ac_ext <<EOF
19275 #line 19276 "configure"
19276 #include "confdefs.h"
19277 /* System header to define __stub macros and hopefully few prototypes,
19278     which can conflict with char $ac_func(); below.  */
19279 #include <assert.h>
19280 /* Override any gcc2 internal prototype to avoid an error.  */
19281 /* We use char because int might match the return type of a gcc2
19282     builtin and then its argument prototype would still apply.  */
19283 char $ac_func();
19284
19285 int main() {
19286
19287 /* The GNU C library defines this for functions which it implements
19288     to always fail with ENOSYS.  Some functions are actually named
19289     something starting with __ and the normal name is an alias.  */
19290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19291 choke me
19292 #else
19293 $ac_func();
19294 #endif
19295
19296 ; return 0; }
19297 EOF
19298 if { (eval echo configure:19299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19299   rm -rf conftest*
19300   eval "ac_cv_func_$ac_func=yes"
19301 else
19302   echo "configure: failed program was:" >&5
19303   cat conftest.$ac_ext >&5
19304   rm -rf conftest*
19305   eval "ac_cv_func_$ac_func=no"
19306 fi
19307 rm -f conftest*
19308 fi
19309
19310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19311   echo "$ac_t""yes" 1>&6
19312     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19313   cat >> confdefs.h <<EOF
19314 #define $ac_tr_func 1
19315 EOF
19316  
19317 else
19318   echo "$ac_t""no" 1>&6
19319 fi
19320 done
19321     
19322     fi
19323   fi
19324
19325   
19326   
19327   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
19328 echo "configure:19329: checking for ldexpl declaration" >&5
19329   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
19330     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
19331   echo $ac_n "(cached) $ac_c" 1>&6
19332 else
19333   
19334       
19335       ac_ext=C
19336 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19337 ac_cpp='$CXXCPP $CPPFLAGS'
19338 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19339 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19340 cross_compiling=$ac_cv_prog_cxx_cross
19341
19342       cat > conftest.$ac_ext <<EOF
19343 #line 19344 "configure"
19344 #include "confdefs.h"
19345 #include <math.h>
19346 int main() {
19347  ldexpl(0, 0);
19348 ; return 0; }
19349 EOF
19350 if { (eval echo configure:19351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19351   rm -rf conftest*
19352   glibcpp_cv_func_ldexpl_use=yes
19353 else
19354   echo "configure: failed program was:" >&5
19355   cat conftest.$ac_ext >&5
19356   rm -rf conftest*
19357   glibcpp_cv_func_ldexpl_use=no
19358 fi
19359 rm -f conftest*
19360       ac_ext=c
19361 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19362 ac_cpp='$CPP $CPPFLAGS'
19363 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19364 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19365 cross_compiling=$ac_cv_prog_cc_cross
19366
19367     
19368 fi
19369
19370   fi
19371   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
19372
19373   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
19374     for ac_func in ldexpl
19375 do
19376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19377 echo "configure:19378: checking for $ac_func" >&5
19378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19379   echo $ac_n "(cached) $ac_c" 1>&6
19380 else
19381   cat > conftest.$ac_ext <<EOF
19382 #line 19383 "configure"
19383 #include "confdefs.h"
19384 /* System header to define __stub macros and hopefully few prototypes,
19385     which can conflict with char $ac_func(); below.  */
19386 #include <assert.h>
19387 /* Override any gcc2 internal prototype to avoid an error.  */
19388 /* We use char because int might match the return type of a gcc2
19389     builtin and then its argument prototype would still apply.  */
19390 char $ac_func();
19391
19392 int main() {
19393
19394 /* The GNU C library defines this for functions which it implements
19395     to always fail with ENOSYS.  Some functions are actually named
19396     something starting with __ and the normal name is an alias.  */
19397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19398 choke me
19399 #else
19400 $ac_func();
19401 #endif
19402
19403 ; return 0; }
19404 EOF
19405 if { (eval echo configure:19406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19406   rm -rf conftest*
19407   eval "ac_cv_func_$ac_func=yes"
19408 else
19409   echo "configure: failed program was:" >&5
19410   cat conftest.$ac_ext >&5
19411   rm -rf conftest*
19412   eval "ac_cv_func_$ac_func=no"
19413 fi
19414 rm -f conftest*
19415 fi
19416
19417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19418   echo "$ac_t""yes" 1>&6
19419     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19420   cat >> confdefs.h <<EOF
19421 #define $ac_tr_func 1
19422 EOF
19423  
19424 else
19425   echo "$ac_t""no" 1>&6
19426 fi
19427 done
19428     
19429   else
19430     
19431   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
19432 echo "configure:19433: checking for _ldexpl declaration" >&5
19433   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
19434     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
19435   echo $ac_n "(cached) $ac_c" 1>&6
19436 else
19437   
19438       
19439       ac_ext=C
19440 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19441 ac_cpp='$CXXCPP $CPPFLAGS'
19442 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19443 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19444 cross_compiling=$ac_cv_prog_cxx_cross
19445
19446       cat > conftest.$ac_ext <<EOF
19447 #line 19448 "configure"
19448 #include "confdefs.h"
19449 #include <math.h>
19450 int main() {
19451  _ldexpl(0, 0);
19452 ; return 0; }
19453 EOF
19454 if { (eval echo configure:19455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19455   rm -rf conftest*
19456   glibcpp_cv_func__ldexpl_use=yes
19457 else
19458   echo "configure: failed program was:" >&5
19459   cat conftest.$ac_ext >&5
19460   rm -rf conftest*
19461   glibcpp_cv_func__ldexpl_use=no
19462 fi
19463 rm -f conftest*
19464       ac_ext=c
19465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19466 ac_cpp='$CPP $CPPFLAGS'
19467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19469 cross_compiling=$ac_cv_prog_cc_cross
19470
19471     
19472 fi
19473
19474   fi
19475   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
19476
19477     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
19478       for ac_func in _ldexpl
19479 do
19480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19481 echo "configure:19482: checking for $ac_func" >&5
19482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19483   echo $ac_n "(cached) $ac_c" 1>&6
19484 else
19485   cat > conftest.$ac_ext <<EOF
19486 #line 19487 "configure"
19487 #include "confdefs.h"
19488 /* System header to define __stub macros and hopefully few prototypes,
19489     which can conflict with char $ac_func(); below.  */
19490 #include <assert.h>
19491 /* Override any gcc2 internal prototype to avoid an error.  */
19492 /* We use char because int might match the return type of a gcc2
19493     builtin and then its argument prototype would still apply.  */
19494 char $ac_func();
19495
19496 int main() {
19497
19498 /* The GNU C library defines this for functions which it implements
19499     to always fail with ENOSYS.  Some functions are actually named
19500     something starting with __ and the normal name is an alias.  */
19501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19502 choke me
19503 #else
19504 $ac_func();
19505 #endif
19506
19507 ; return 0; }
19508 EOF
19509 if { (eval echo configure:19510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19510   rm -rf conftest*
19511   eval "ac_cv_func_$ac_func=yes"
19512 else
19513   echo "configure: failed program was:" >&5
19514   cat conftest.$ac_ext >&5
19515   rm -rf conftest*
19516   eval "ac_cv_func_$ac_func=no"
19517 fi
19518 rm -f conftest*
19519 fi
19520
19521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19522   echo "$ac_t""yes" 1>&6
19523     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19524   cat >> confdefs.h <<EOF
19525 #define $ac_tr_func 1
19526 EOF
19527  
19528 else
19529   echo "$ac_t""no" 1>&6
19530 fi
19531 done
19532     
19533     fi
19534   fi
19535
19536   
19537   
19538   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
19539 echo "configure:19540: checking for logl declaration" >&5
19540   if test x${glibcpp_cv_func_logl_use+set} != xset; then
19541     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
19542   echo $ac_n "(cached) $ac_c" 1>&6
19543 else
19544   
19545       
19546       ac_ext=C
19547 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19548 ac_cpp='$CXXCPP $CPPFLAGS'
19549 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19550 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19551 cross_compiling=$ac_cv_prog_cxx_cross
19552
19553       cat > conftest.$ac_ext <<EOF
19554 #line 19555 "configure"
19555 #include "confdefs.h"
19556 #include <math.h>
19557                       #ifdef HAVE_IEEEFP_H
19558                       #include <ieeefp.h>
19559                       #endif
19560                      
19561 int main() {
19562  logl(0);
19563 ; return 0; }
19564 EOF
19565 if { (eval echo configure:19566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19566   rm -rf conftest*
19567   glibcpp_cv_func_logl_use=yes
19568 else
19569   echo "configure: failed program was:" >&5
19570   cat conftest.$ac_ext >&5
19571   rm -rf conftest*
19572   glibcpp_cv_func_logl_use=no
19573 fi
19574 rm -f conftest*
19575       ac_ext=c
19576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19577 ac_cpp='$CPP $CPPFLAGS'
19578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19580 cross_compiling=$ac_cv_prog_cc_cross
19581
19582     
19583 fi
19584
19585   fi
19586   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
19587
19588   if test x$glibcpp_cv_func_logl_use = x"yes"; then
19589     for ac_func in logl
19590 do
19591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19592 echo "configure:19593: checking for $ac_func" >&5
19593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19594   echo $ac_n "(cached) $ac_c" 1>&6
19595 else
19596   cat > conftest.$ac_ext <<EOF
19597 #line 19598 "configure"
19598 #include "confdefs.h"
19599 /* System header to define __stub macros and hopefully few prototypes,
19600     which can conflict with char $ac_func(); below.  */
19601 #include <assert.h>
19602 /* Override any gcc2 internal prototype to avoid an error.  */
19603 /* We use char because int might match the return type of a gcc2
19604     builtin and then its argument prototype would still apply.  */
19605 char $ac_func();
19606
19607 int main() {
19608
19609 /* The GNU C library defines this for functions which it implements
19610     to always fail with ENOSYS.  Some functions are actually named
19611     something starting with __ and the normal name is an alias.  */
19612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19613 choke me
19614 #else
19615 $ac_func();
19616 #endif
19617
19618 ; return 0; }
19619 EOF
19620 if { (eval echo configure:19621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19621   rm -rf conftest*
19622   eval "ac_cv_func_$ac_func=yes"
19623 else
19624   echo "configure: failed program was:" >&5
19625   cat conftest.$ac_ext >&5
19626   rm -rf conftest*
19627   eval "ac_cv_func_$ac_func=no"
19628 fi
19629 rm -f conftest*
19630 fi
19631
19632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19633   echo "$ac_t""yes" 1>&6
19634     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19635   cat >> confdefs.h <<EOF
19636 #define $ac_tr_func 1
19637 EOF
19638  
19639 else
19640   echo "$ac_t""no" 1>&6
19641 fi
19642 done
19643     
19644   else
19645     
19646   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
19647 echo "configure:19648: checking for _logl declaration" >&5
19648   if test x${glibcpp_cv_func__logl_use+set} != xset; then
19649     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
19650   echo $ac_n "(cached) $ac_c" 1>&6
19651 else
19652   
19653       
19654       ac_ext=C
19655 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19656 ac_cpp='$CXXCPP $CPPFLAGS'
19657 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19658 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19659 cross_compiling=$ac_cv_prog_cxx_cross
19660
19661       cat > conftest.$ac_ext <<EOF
19662 #line 19663 "configure"
19663 #include "confdefs.h"
19664 #include <math.h>
19665                       #ifdef HAVE_IEEEFP_H
19666                       #include <ieeefp.h>
19667                       #endif
19668                      
19669 int main() {
19670  _logl(0);
19671 ; return 0; }
19672 EOF
19673 if { (eval echo configure:19674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19674   rm -rf conftest*
19675   glibcpp_cv_func__logl_use=yes
19676 else
19677   echo "configure: failed program was:" >&5
19678   cat conftest.$ac_ext >&5
19679   rm -rf conftest*
19680   glibcpp_cv_func__logl_use=no
19681 fi
19682 rm -f conftest*
19683       ac_ext=c
19684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19685 ac_cpp='$CPP $CPPFLAGS'
19686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19688 cross_compiling=$ac_cv_prog_cc_cross
19689
19690     
19691 fi
19692
19693   fi
19694   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
19695
19696     if test x$glibcpp_cv_func__logl_use = x"yes"; then
19697       for ac_func in _logl
19698 do
19699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19700 echo "configure:19701: checking for $ac_func" >&5
19701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19702   echo $ac_n "(cached) $ac_c" 1>&6
19703 else
19704   cat > conftest.$ac_ext <<EOF
19705 #line 19706 "configure"
19706 #include "confdefs.h"
19707 /* System header to define __stub macros and hopefully few prototypes,
19708     which can conflict with char $ac_func(); below.  */
19709 #include <assert.h>
19710 /* Override any gcc2 internal prototype to avoid an error.  */
19711 /* We use char because int might match the return type of a gcc2
19712     builtin and then its argument prototype would still apply.  */
19713 char $ac_func();
19714
19715 int main() {
19716
19717 /* The GNU C library defines this for functions which it implements
19718     to always fail with ENOSYS.  Some functions are actually named
19719     something starting with __ and the normal name is an alias.  */
19720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19721 choke me
19722 #else
19723 $ac_func();
19724 #endif
19725
19726 ; return 0; }
19727 EOF
19728 if { (eval echo configure:19729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19729   rm -rf conftest*
19730   eval "ac_cv_func_$ac_func=yes"
19731 else
19732   echo "configure: failed program was:" >&5
19733   cat conftest.$ac_ext >&5
19734   rm -rf conftest*
19735   eval "ac_cv_func_$ac_func=no"
19736 fi
19737 rm -f conftest*
19738 fi
19739
19740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19741   echo "$ac_t""yes" 1>&6
19742     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19743   cat >> confdefs.h <<EOF
19744 #define $ac_tr_func 1
19745 EOF
19746  
19747 else
19748   echo "$ac_t""no" 1>&6
19749 fi
19750 done
19751     
19752     fi
19753   fi
19754
19755   
19756   
19757   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
19758 echo "configure:19759: checking for log10l declaration" >&5
19759   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
19760     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
19761   echo $ac_n "(cached) $ac_c" 1>&6
19762 else
19763   
19764       
19765       ac_ext=C
19766 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19767 ac_cpp='$CXXCPP $CPPFLAGS'
19768 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19769 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19770 cross_compiling=$ac_cv_prog_cxx_cross
19771
19772       cat > conftest.$ac_ext <<EOF
19773 #line 19774 "configure"
19774 #include "confdefs.h"
19775 #include <math.h>
19776                       #ifdef HAVE_IEEEFP_H
19777                       #include <ieeefp.h>
19778                       #endif
19779                      
19780 int main() {
19781  log10l(0);
19782 ; return 0; }
19783 EOF
19784 if { (eval echo configure:19785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19785   rm -rf conftest*
19786   glibcpp_cv_func_log10l_use=yes
19787 else
19788   echo "configure: failed program was:" >&5
19789   cat conftest.$ac_ext >&5
19790   rm -rf conftest*
19791   glibcpp_cv_func_log10l_use=no
19792 fi
19793 rm -f conftest*
19794       ac_ext=c
19795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19796 ac_cpp='$CPP $CPPFLAGS'
19797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19799 cross_compiling=$ac_cv_prog_cc_cross
19800
19801     
19802 fi
19803
19804   fi
19805   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
19806
19807   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
19808     for ac_func in log10l
19809 do
19810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19811 echo "configure:19812: checking for $ac_func" >&5
19812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19813   echo $ac_n "(cached) $ac_c" 1>&6
19814 else
19815   cat > conftest.$ac_ext <<EOF
19816 #line 19817 "configure"
19817 #include "confdefs.h"
19818 /* System header to define __stub macros and hopefully few prototypes,
19819     which can conflict with char $ac_func(); below.  */
19820 #include <assert.h>
19821 /* Override any gcc2 internal prototype to avoid an error.  */
19822 /* We use char because int might match the return type of a gcc2
19823     builtin and then its argument prototype would still apply.  */
19824 char $ac_func();
19825
19826 int main() {
19827
19828 /* The GNU C library defines this for functions which it implements
19829     to always fail with ENOSYS.  Some functions are actually named
19830     something starting with __ and the normal name is an alias.  */
19831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19832 choke me
19833 #else
19834 $ac_func();
19835 #endif
19836
19837 ; return 0; }
19838 EOF
19839 if { (eval echo configure:19840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19840   rm -rf conftest*
19841   eval "ac_cv_func_$ac_func=yes"
19842 else
19843   echo "configure: failed program was:" >&5
19844   cat conftest.$ac_ext >&5
19845   rm -rf conftest*
19846   eval "ac_cv_func_$ac_func=no"
19847 fi
19848 rm -f conftest*
19849 fi
19850
19851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19852   echo "$ac_t""yes" 1>&6
19853     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19854   cat >> confdefs.h <<EOF
19855 #define $ac_tr_func 1
19856 EOF
19857  
19858 else
19859   echo "$ac_t""no" 1>&6
19860 fi
19861 done
19862     
19863   else
19864     
19865   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
19866 echo "configure:19867: checking for _log10l declaration" >&5
19867   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
19868     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
19869   echo $ac_n "(cached) $ac_c" 1>&6
19870 else
19871   
19872       
19873       ac_ext=C
19874 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19875 ac_cpp='$CXXCPP $CPPFLAGS'
19876 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19877 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19878 cross_compiling=$ac_cv_prog_cxx_cross
19879
19880       cat > conftest.$ac_ext <<EOF
19881 #line 19882 "configure"
19882 #include "confdefs.h"
19883 #include <math.h>
19884                       #ifdef HAVE_IEEEFP_H
19885                       #include <ieeefp.h>
19886                       #endif
19887                      
19888 int main() {
19889  _log10l(0);
19890 ; return 0; }
19891 EOF
19892 if { (eval echo configure:19893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19893   rm -rf conftest*
19894   glibcpp_cv_func__log10l_use=yes
19895 else
19896   echo "configure: failed program was:" >&5
19897   cat conftest.$ac_ext >&5
19898   rm -rf conftest*
19899   glibcpp_cv_func__log10l_use=no
19900 fi
19901 rm -f conftest*
19902       ac_ext=c
19903 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19904 ac_cpp='$CPP $CPPFLAGS'
19905 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19906 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19907 cross_compiling=$ac_cv_prog_cc_cross
19908
19909     
19910 fi
19911
19912   fi
19913   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
19914
19915     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
19916       for ac_func in _log10l
19917 do
19918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19919 echo "configure:19920: checking for $ac_func" >&5
19920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19921   echo $ac_n "(cached) $ac_c" 1>&6
19922 else
19923   cat > conftest.$ac_ext <<EOF
19924 #line 19925 "configure"
19925 #include "confdefs.h"
19926 /* System header to define __stub macros and hopefully few prototypes,
19927     which can conflict with char $ac_func(); below.  */
19928 #include <assert.h>
19929 /* Override any gcc2 internal prototype to avoid an error.  */
19930 /* We use char because int might match the return type of a gcc2
19931     builtin and then its argument prototype would still apply.  */
19932 char $ac_func();
19933
19934 int main() {
19935
19936 /* The GNU C library defines this for functions which it implements
19937     to always fail with ENOSYS.  Some functions are actually named
19938     something starting with __ and the normal name is an alias.  */
19939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19940 choke me
19941 #else
19942 $ac_func();
19943 #endif
19944
19945 ; return 0; }
19946 EOF
19947 if { (eval echo configure:19948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19948   rm -rf conftest*
19949   eval "ac_cv_func_$ac_func=yes"
19950 else
19951   echo "configure: failed program was:" >&5
19952   cat conftest.$ac_ext >&5
19953   rm -rf conftest*
19954   eval "ac_cv_func_$ac_func=no"
19955 fi
19956 rm -f conftest*
19957 fi
19958
19959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19960   echo "$ac_t""yes" 1>&6
19961     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19962   cat >> confdefs.h <<EOF
19963 #define $ac_tr_func 1
19964 EOF
19965  
19966 else
19967   echo "$ac_t""no" 1>&6
19968 fi
19969 done
19970     
19971     fi
19972   fi
19973
19974   
19975   
19976   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
19977 echo "configure:19978: checking for modfl declaration" >&5
19978   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
19979     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
19980   echo $ac_n "(cached) $ac_c" 1>&6
19981 else
19982   
19983       
19984       ac_ext=C
19985 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19986 ac_cpp='$CXXCPP $CPPFLAGS'
19987 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19988 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19989 cross_compiling=$ac_cv_prog_cxx_cross
19990
19991       cat > conftest.$ac_ext <<EOF
19992 #line 19993 "configure"
19993 #include "confdefs.h"
19994 #include <math.h>
19995 int main() {
19996  modfl(0, 0);
19997 ; return 0; }
19998 EOF
19999 if { (eval echo configure:20000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20000   rm -rf conftest*
20001   glibcpp_cv_func_modfl_use=yes
20002 else
20003   echo "configure: failed program was:" >&5
20004   cat conftest.$ac_ext >&5
20005   rm -rf conftest*
20006   glibcpp_cv_func_modfl_use=no
20007 fi
20008 rm -f conftest*
20009       ac_ext=c
20010 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20011 ac_cpp='$CPP $CPPFLAGS'
20012 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20013 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20014 cross_compiling=$ac_cv_prog_cc_cross
20015
20016     
20017 fi
20018
20019   fi
20020   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
20021
20022   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
20023     for ac_func in modfl
20024 do
20025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20026 echo "configure:20027: checking for $ac_func" >&5
20027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20028   echo $ac_n "(cached) $ac_c" 1>&6
20029 else
20030   cat > conftest.$ac_ext <<EOF
20031 #line 20032 "configure"
20032 #include "confdefs.h"
20033 /* System header to define __stub macros and hopefully few prototypes,
20034     which can conflict with char $ac_func(); below.  */
20035 #include <assert.h>
20036 /* Override any gcc2 internal prototype to avoid an error.  */
20037 /* We use char because int might match the return type of a gcc2
20038     builtin and then its argument prototype would still apply.  */
20039 char $ac_func();
20040
20041 int main() {
20042
20043 /* The GNU C library defines this for functions which it implements
20044     to always fail with ENOSYS.  Some functions are actually named
20045     something starting with __ and the normal name is an alias.  */
20046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20047 choke me
20048 #else
20049 $ac_func();
20050 #endif
20051
20052 ; return 0; }
20053 EOF
20054 if { (eval echo configure:20055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20055   rm -rf conftest*
20056   eval "ac_cv_func_$ac_func=yes"
20057 else
20058   echo "configure: failed program was:" >&5
20059   cat conftest.$ac_ext >&5
20060   rm -rf conftest*
20061   eval "ac_cv_func_$ac_func=no"
20062 fi
20063 rm -f conftest*
20064 fi
20065
20066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20067   echo "$ac_t""yes" 1>&6
20068     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20069   cat >> confdefs.h <<EOF
20070 #define $ac_tr_func 1
20071 EOF
20072  
20073 else
20074   echo "$ac_t""no" 1>&6
20075 fi
20076 done
20077     
20078   else
20079     
20080   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
20081 echo "configure:20082: checking for _modfl declaration" >&5
20082   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
20083     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
20084   echo $ac_n "(cached) $ac_c" 1>&6
20085 else
20086   
20087       
20088       ac_ext=C
20089 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20090 ac_cpp='$CXXCPP $CPPFLAGS'
20091 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20092 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20093 cross_compiling=$ac_cv_prog_cxx_cross
20094
20095       cat > conftest.$ac_ext <<EOF
20096 #line 20097 "configure"
20097 #include "confdefs.h"
20098 #include <math.h>
20099 int main() {
20100  _modfl(0, 0);
20101 ; return 0; }
20102 EOF
20103 if { (eval echo configure:20104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20104   rm -rf conftest*
20105   glibcpp_cv_func__modfl_use=yes
20106 else
20107   echo "configure: failed program was:" >&5
20108   cat conftest.$ac_ext >&5
20109   rm -rf conftest*
20110   glibcpp_cv_func__modfl_use=no
20111 fi
20112 rm -f conftest*
20113       ac_ext=c
20114 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20115 ac_cpp='$CPP $CPPFLAGS'
20116 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20117 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20118 cross_compiling=$ac_cv_prog_cc_cross
20119
20120     
20121 fi
20122
20123   fi
20124   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
20125
20126     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
20127       for ac_func in _modfl
20128 do
20129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20130 echo "configure:20131: checking for $ac_func" >&5
20131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20132   echo $ac_n "(cached) $ac_c" 1>&6
20133 else
20134   cat > conftest.$ac_ext <<EOF
20135 #line 20136 "configure"
20136 #include "confdefs.h"
20137 /* System header to define __stub macros and hopefully few prototypes,
20138     which can conflict with char $ac_func(); below.  */
20139 #include <assert.h>
20140 /* Override any gcc2 internal prototype to avoid an error.  */
20141 /* We use char because int might match the return type of a gcc2
20142     builtin and then its argument prototype would still apply.  */
20143 char $ac_func();
20144
20145 int main() {
20146
20147 /* The GNU C library defines this for functions which it implements
20148     to always fail with ENOSYS.  Some functions are actually named
20149     something starting with __ and the normal name is an alias.  */
20150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20151 choke me
20152 #else
20153 $ac_func();
20154 #endif
20155
20156 ; return 0; }
20157 EOF
20158 if { (eval echo configure:20159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20159   rm -rf conftest*
20160   eval "ac_cv_func_$ac_func=yes"
20161 else
20162   echo "configure: failed program was:" >&5
20163   cat conftest.$ac_ext >&5
20164   rm -rf conftest*
20165   eval "ac_cv_func_$ac_func=no"
20166 fi
20167 rm -f conftest*
20168 fi
20169
20170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20171   echo "$ac_t""yes" 1>&6
20172     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20173   cat >> confdefs.h <<EOF
20174 #define $ac_tr_func 1
20175 EOF
20176  
20177 else
20178   echo "$ac_t""no" 1>&6
20179 fi
20180 done
20181     
20182     fi
20183   fi
20184
20185   
20186   
20187   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
20188 echo "configure:20189: checking for powl declaration" >&5
20189   if test x${glibcpp_cv_func_powl_use+set} != xset; then
20190     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
20191   echo $ac_n "(cached) $ac_c" 1>&6
20192 else
20193   
20194       
20195       ac_ext=C
20196 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20197 ac_cpp='$CXXCPP $CPPFLAGS'
20198 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20199 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20200 cross_compiling=$ac_cv_prog_cxx_cross
20201
20202       cat > conftest.$ac_ext <<EOF
20203 #line 20204 "configure"
20204 #include "confdefs.h"
20205 #include <math.h>
20206 int main() {
20207  powl(0, 0);
20208 ; return 0; }
20209 EOF
20210 if { (eval echo configure:20211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20211   rm -rf conftest*
20212   glibcpp_cv_func_powl_use=yes
20213 else
20214   echo "configure: failed program was:" >&5
20215   cat conftest.$ac_ext >&5
20216   rm -rf conftest*
20217   glibcpp_cv_func_powl_use=no
20218 fi
20219 rm -f conftest*
20220       ac_ext=c
20221 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20222 ac_cpp='$CPP $CPPFLAGS'
20223 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20224 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20225 cross_compiling=$ac_cv_prog_cc_cross
20226
20227     
20228 fi
20229
20230   fi
20231   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
20232
20233   if test x$glibcpp_cv_func_powl_use = x"yes"; then
20234     for ac_func in powl
20235 do
20236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20237 echo "configure:20238: checking for $ac_func" >&5
20238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20239   echo $ac_n "(cached) $ac_c" 1>&6
20240 else
20241   cat > conftest.$ac_ext <<EOF
20242 #line 20243 "configure"
20243 #include "confdefs.h"
20244 /* System header to define __stub macros and hopefully few prototypes,
20245     which can conflict with char $ac_func(); below.  */
20246 #include <assert.h>
20247 /* Override any gcc2 internal prototype to avoid an error.  */
20248 /* We use char because int might match the return type of a gcc2
20249     builtin and then its argument prototype would still apply.  */
20250 char $ac_func();
20251
20252 int main() {
20253
20254 /* The GNU C library defines this for functions which it implements
20255     to always fail with ENOSYS.  Some functions are actually named
20256     something starting with __ and the normal name is an alias.  */
20257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20258 choke me
20259 #else
20260 $ac_func();
20261 #endif
20262
20263 ; return 0; }
20264 EOF
20265 if { (eval echo configure:20266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20266   rm -rf conftest*
20267   eval "ac_cv_func_$ac_func=yes"
20268 else
20269   echo "configure: failed program was:" >&5
20270   cat conftest.$ac_ext >&5
20271   rm -rf conftest*
20272   eval "ac_cv_func_$ac_func=no"
20273 fi
20274 rm -f conftest*
20275 fi
20276
20277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20278   echo "$ac_t""yes" 1>&6
20279     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20280   cat >> confdefs.h <<EOF
20281 #define $ac_tr_func 1
20282 EOF
20283  
20284 else
20285   echo "$ac_t""no" 1>&6
20286 fi
20287 done
20288     
20289   else
20290     
20291   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
20292 echo "configure:20293: checking for _powl declaration" >&5
20293   if test x${glibcpp_cv_func__powl_use+set} != xset; then
20294     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
20295   echo $ac_n "(cached) $ac_c" 1>&6
20296 else
20297   
20298       
20299       ac_ext=C
20300 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20301 ac_cpp='$CXXCPP $CPPFLAGS'
20302 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20303 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20304 cross_compiling=$ac_cv_prog_cxx_cross
20305
20306       cat > conftest.$ac_ext <<EOF
20307 #line 20308 "configure"
20308 #include "confdefs.h"
20309 #include <math.h>
20310 int main() {
20311  _powl(0, 0);
20312 ; return 0; }
20313 EOF
20314 if { (eval echo configure:20315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20315   rm -rf conftest*
20316   glibcpp_cv_func__powl_use=yes
20317 else
20318   echo "configure: failed program was:" >&5
20319   cat conftest.$ac_ext >&5
20320   rm -rf conftest*
20321   glibcpp_cv_func__powl_use=no
20322 fi
20323 rm -f conftest*
20324       ac_ext=c
20325 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20326 ac_cpp='$CPP $CPPFLAGS'
20327 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20328 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20329 cross_compiling=$ac_cv_prog_cc_cross
20330
20331     
20332 fi
20333
20334   fi
20335   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
20336
20337     if test x$glibcpp_cv_func__powl_use = x"yes"; then
20338       for ac_func in _powl
20339 do
20340 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20341 echo "configure:20342: checking for $ac_func" >&5
20342 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20343   echo $ac_n "(cached) $ac_c" 1>&6
20344 else
20345   cat > conftest.$ac_ext <<EOF
20346 #line 20347 "configure"
20347 #include "confdefs.h"
20348 /* System header to define __stub macros and hopefully few prototypes,
20349     which can conflict with char $ac_func(); below.  */
20350 #include <assert.h>
20351 /* Override any gcc2 internal prototype to avoid an error.  */
20352 /* We use char because int might match the return type of a gcc2
20353     builtin and then its argument prototype would still apply.  */
20354 char $ac_func();
20355
20356 int main() {
20357
20358 /* The GNU C library defines this for functions which it implements
20359     to always fail with ENOSYS.  Some functions are actually named
20360     something starting with __ and the normal name is an alias.  */
20361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20362 choke me
20363 #else
20364 $ac_func();
20365 #endif
20366
20367 ; return 0; }
20368 EOF
20369 if { (eval echo configure:20370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20370   rm -rf conftest*
20371   eval "ac_cv_func_$ac_func=yes"
20372 else
20373   echo "configure: failed program was:" >&5
20374   cat conftest.$ac_ext >&5
20375   rm -rf conftest*
20376   eval "ac_cv_func_$ac_func=no"
20377 fi
20378 rm -f conftest*
20379 fi
20380
20381 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20382   echo "$ac_t""yes" 1>&6
20383     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20384   cat >> confdefs.h <<EOF
20385 #define $ac_tr_func 1
20386 EOF
20387  
20388 else
20389   echo "$ac_t""no" 1>&6
20390 fi
20391 done
20392     
20393     fi
20394   fi
20395
20396   
20397   
20398   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
20399 echo "configure:20400: checking for sqrtl declaration" >&5
20400   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
20401     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
20402   echo $ac_n "(cached) $ac_c" 1>&6
20403 else
20404   
20405       
20406       ac_ext=C
20407 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20408 ac_cpp='$CXXCPP $CPPFLAGS'
20409 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20410 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20411 cross_compiling=$ac_cv_prog_cxx_cross
20412
20413       cat > conftest.$ac_ext <<EOF
20414 #line 20415 "configure"
20415 #include "confdefs.h"
20416 #include <math.h>
20417                       #ifdef HAVE_IEEEFP_H
20418                       #include <ieeefp.h>
20419                       #endif
20420                      
20421 int main() {
20422  sqrtl(0);
20423 ; return 0; }
20424 EOF
20425 if { (eval echo configure:20426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20426   rm -rf conftest*
20427   glibcpp_cv_func_sqrtl_use=yes
20428 else
20429   echo "configure: failed program was:" >&5
20430   cat conftest.$ac_ext >&5
20431   rm -rf conftest*
20432   glibcpp_cv_func_sqrtl_use=no
20433 fi
20434 rm -f conftest*
20435       ac_ext=c
20436 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20437 ac_cpp='$CPP $CPPFLAGS'
20438 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20439 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20440 cross_compiling=$ac_cv_prog_cc_cross
20441
20442     
20443 fi
20444
20445   fi
20446   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
20447
20448   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
20449     for ac_func in sqrtl
20450 do
20451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20452 echo "configure:20453: checking for $ac_func" >&5
20453 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20454   echo $ac_n "(cached) $ac_c" 1>&6
20455 else
20456   cat > conftest.$ac_ext <<EOF
20457 #line 20458 "configure"
20458 #include "confdefs.h"
20459 /* System header to define __stub macros and hopefully few prototypes,
20460     which can conflict with char $ac_func(); below.  */
20461 #include <assert.h>
20462 /* Override any gcc2 internal prototype to avoid an error.  */
20463 /* We use char because int might match the return type of a gcc2
20464     builtin and then its argument prototype would still apply.  */
20465 char $ac_func();
20466
20467 int main() {
20468
20469 /* The GNU C library defines this for functions which it implements
20470     to always fail with ENOSYS.  Some functions are actually named
20471     something starting with __ and the normal name is an alias.  */
20472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20473 choke me
20474 #else
20475 $ac_func();
20476 #endif
20477
20478 ; return 0; }
20479 EOF
20480 if { (eval echo configure:20481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20481   rm -rf conftest*
20482   eval "ac_cv_func_$ac_func=yes"
20483 else
20484   echo "configure: failed program was:" >&5
20485   cat conftest.$ac_ext >&5
20486   rm -rf conftest*
20487   eval "ac_cv_func_$ac_func=no"
20488 fi
20489 rm -f conftest*
20490 fi
20491
20492 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20493   echo "$ac_t""yes" 1>&6
20494     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20495   cat >> confdefs.h <<EOF
20496 #define $ac_tr_func 1
20497 EOF
20498  
20499 else
20500   echo "$ac_t""no" 1>&6
20501 fi
20502 done
20503     
20504   else
20505     
20506   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
20507 echo "configure:20508: checking for _sqrtl declaration" >&5
20508   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
20509     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
20510   echo $ac_n "(cached) $ac_c" 1>&6
20511 else
20512   
20513       
20514       ac_ext=C
20515 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20516 ac_cpp='$CXXCPP $CPPFLAGS'
20517 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20518 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20519 cross_compiling=$ac_cv_prog_cxx_cross
20520
20521       cat > conftest.$ac_ext <<EOF
20522 #line 20523 "configure"
20523 #include "confdefs.h"
20524 #include <math.h>
20525                       #ifdef HAVE_IEEEFP_H
20526                       #include <ieeefp.h>
20527                       #endif
20528                      
20529 int main() {
20530  _sqrtl(0);
20531 ; return 0; }
20532 EOF
20533 if { (eval echo configure:20534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20534   rm -rf conftest*
20535   glibcpp_cv_func__sqrtl_use=yes
20536 else
20537   echo "configure: failed program was:" >&5
20538   cat conftest.$ac_ext >&5
20539   rm -rf conftest*
20540   glibcpp_cv_func__sqrtl_use=no
20541 fi
20542 rm -f conftest*
20543       ac_ext=c
20544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20545 ac_cpp='$CPP $CPPFLAGS'
20546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20548 cross_compiling=$ac_cv_prog_cc_cross
20549
20550     
20551 fi
20552
20553   fi
20554   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
20555
20556     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
20557       for ac_func in _sqrtl
20558 do
20559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20560 echo "configure:20561: checking for $ac_func" >&5
20561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20562   echo $ac_n "(cached) $ac_c" 1>&6
20563 else
20564   cat > conftest.$ac_ext <<EOF
20565 #line 20566 "configure"
20566 #include "confdefs.h"
20567 /* System header to define __stub macros and hopefully few prototypes,
20568     which can conflict with char $ac_func(); below.  */
20569 #include <assert.h>
20570 /* Override any gcc2 internal prototype to avoid an error.  */
20571 /* We use char because int might match the return type of a gcc2
20572     builtin and then its argument prototype would still apply.  */
20573 char $ac_func();
20574
20575 int main() {
20576
20577 /* The GNU C library defines this for functions which it implements
20578     to always fail with ENOSYS.  Some functions are actually named
20579     something starting with __ and the normal name is an alias.  */
20580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20581 choke me
20582 #else
20583 $ac_func();
20584 #endif
20585
20586 ; return 0; }
20587 EOF
20588 if { (eval echo configure:20589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20589   rm -rf conftest*
20590   eval "ac_cv_func_$ac_func=yes"
20591 else
20592   echo "configure: failed program was:" >&5
20593   cat conftest.$ac_ext >&5
20594   rm -rf conftest*
20595   eval "ac_cv_func_$ac_func=no"
20596 fi
20597 rm -f conftest*
20598 fi
20599
20600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20601   echo "$ac_t""yes" 1>&6
20602     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20603   cat >> confdefs.h <<EOF
20604 #define $ac_tr_func 1
20605 EOF
20606  
20607 else
20608   echo "$ac_t""no" 1>&6
20609 fi
20610 done
20611     
20612     fi
20613   fi
20614
20615   
20616   
20617   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
20618 echo "configure:20619: checking for sincosl declaration" >&5
20619   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
20620     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
20621   echo $ac_n "(cached) $ac_c" 1>&6
20622 else
20623   
20624       
20625       ac_ext=C
20626 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20627 ac_cpp='$CXXCPP $CPPFLAGS'
20628 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20629 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20630 cross_compiling=$ac_cv_prog_cxx_cross
20631
20632       cat > conftest.$ac_ext <<EOF
20633 #line 20634 "configure"
20634 #include "confdefs.h"
20635 #include <math.h>
20636 int main() {
20637  sincosl(0, 0, 0);
20638 ; return 0; }
20639 EOF
20640 if { (eval echo configure:20641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20641   rm -rf conftest*
20642   glibcpp_cv_func_sincosl_use=yes
20643 else
20644   echo "configure: failed program was:" >&5
20645   cat conftest.$ac_ext >&5
20646   rm -rf conftest*
20647   glibcpp_cv_func_sincosl_use=no
20648 fi
20649 rm -f conftest*
20650       ac_ext=c
20651 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20652 ac_cpp='$CPP $CPPFLAGS'
20653 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20654 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20655 cross_compiling=$ac_cv_prog_cc_cross
20656
20657     
20658 fi
20659
20660   fi
20661   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
20662
20663   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
20664     for ac_func in sincosl
20665 do
20666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20667 echo "configure:20668: checking for $ac_func" >&5
20668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20669   echo $ac_n "(cached) $ac_c" 1>&6
20670 else
20671   cat > conftest.$ac_ext <<EOF
20672 #line 20673 "configure"
20673 #include "confdefs.h"
20674 /* System header to define __stub macros and hopefully few prototypes,
20675     which can conflict with char $ac_func(); below.  */
20676 #include <assert.h>
20677 /* Override any gcc2 internal prototype to avoid an error.  */
20678 /* We use char because int might match the return type of a gcc2
20679     builtin and then its argument prototype would still apply.  */
20680 char $ac_func();
20681
20682 int main() {
20683
20684 /* The GNU C library defines this for functions which it implements
20685     to always fail with ENOSYS.  Some functions are actually named
20686     something starting with __ and the normal name is an alias.  */
20687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20688 choke me
20689 #else
20690 $ac_func();
20691 #endif
20692
20693 ; return 0; }
20694 EOF
20695 if { (eval echo configure:20696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20696   rm -rf conftest*
20697   eval "ac_cv_func_$ac_func=yes"
20698 else
20699   echo "configure: failed program was:" >&5
20700   cat conftest.$ac_ext >&5
20701   rm -rf conftest*
20702   eval "ac_cv_func_$ac_func=no"
20703 fi
20704 rm -f conftest*
20705 fi
20706
20707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20708   echo "$ac_t""yes" 1>&6
20709     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20710   cat >> confdefs.h <<EOF
20711 #define $ac_tr_func 1
20712 EOF
20713  
20714 else
20715   echo "$ac_t""no" 1>&6
20716 fi
20717 done
20718     
20719   else
20720     
20721   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
20722 echo "configure:20723: checking for _sincosl declaration" >&5
20723   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
20724     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
20725   echo $ac_n "(cached) $ac_c" 1>&6
20726 else
20727   
20728       
20729       ac_ext=C
20730 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20731 ac_cpp='$CXXCPP $CPPFLAGS'
20732 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20733 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20734 cross_compiling=$ac_cv_prog_cxx_cross
20735
20736       cat > conftest.$ac_ext <<EOF
20737 #line 20738 "configure"
20738 #include "confdefs.h"
20739 #include <math.h>
20740 int main() {
20741  _sincosl(0, 0, 0);
20742 ; return 0; }
20743 EOF
20744 if { (eval echo configure:20745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20745   rm -rf conftest*
20746   glibcpp_cv_func__sincosl_use=yes
20747 else
20748   echo "configure: failed program was:" >&5
20749   cat conftest.$ac_ext >&5
20750   rm -rf conftest*
20751   glibcpp_cv_func__sincosl_use=no
20752 fi
20753 rm -f conftest*
20754       ac_ext=c
20755 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20756 ac_cpp='$CPP $CPPFLAGS'
20757 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20758 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20759 cross_compiling=$ac_cv_prog_cc_cross
20760
20761     
20762 fi
20763
20764   fi
20765   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
20766
20767     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
20768       for ac_func in _sincosl
20769 do
20770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20771 echo "configure:20772: checking for $ac_func" >&5
20772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20773   echo $ac_n "(cached) $ac_c" 1>&6
20774 else
20775   cat > conftest.$ac_ext <<EOF
20776 #line 20777 "configure"
20777 #include "confdefs.h"
20778 /* System header to define __stub macros and hopefully few prototypes,
20779     which can conflict with char $ac_func(); below.  */
20780 #include <assert.h>
20781 /* Override any gcc2 internal prototype to avoid an error.  */
20782 /* We use char because int might match the return type of a gcc2
20783     builtin and then its argument prototype would still apply.  */
20784 char $ac_func();
20785
20786 int main() {
20787
20788 /* The GNU C library defines this for functions which it implements
20789     to always fail with ENOSYS.  Some functions are actually named
20790     something starting with __ and the normal name is an alias.  */
20791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20792 choke me
20793 #else
20794 $ac_func();
20795 #endif
20796
20797 ; return 0; }
20798 EOF
20799 if { (eval echo configure:20800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20800   rm -rf conftest*
20801   eval "ac_cv_func_$ac_func=yes"
20802 else
20803   echo "configure: failed program was:" >&5
20804   cat conftest.$ac_ext >&5
20805   rm -rf conftest*
20806   eval "ac_cv_func_$ac_func=no"
20807 fi
20808 rm -f conftest*
20809 fi
20810
20811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20812   echo "$ac_t""yes" 1>&6
20813     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20814   cat >> confdefs.h <<EOF
20815 #define $ac_tr_func 1
20816 EOF
20817  
20818 else
20819   echo "$ac_t""no" 1>&6
20820 fi
20821 done
20822     
20823     fi
20824   fi
20825
20826   
20827   
20828   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
20829 echo "configure:20830: checking for finitel declaration" >&5
20830   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
20831     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
20832   echo $ac_n "(cached) $ac_c" 1>&6
20833 else
20834   
20835       
20836       ac_ext=C
20837 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20838 ac_cpp='$CXXCPP $CPPFLAGS'
20839 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20840 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20841 cross_compiling=$ac_cv_prog_cxx_cross
20842
20843       cat > conftest.$ac_ext <<EOF
20844 #line 20845 "configure"
20845 #include "confdefs.h"
20846 #include <math.h>
20847                       #ifdef HAVE_IEEEFP_H
20848                       #include <ieeefp.h>
20849                       #endif
20850                      
20851 int main() {
20852  finitel(0);
20853 ; return 0; }
20854 EOF
20855 if { (eval echo configure:20856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20856   rm -rf conftest*
20857   glibcpp_cv_func_finitel_use=yes
20858 else
20859   echo "configure: failed program was:" >&5
20860   cat conftest.$ac_ext >&5
20861   rm -rf conftest*
20862   glibcpp_cv_func_finitel_use=no
20863 fi
20864 rm -f conftest*
20865       ac_ext=c
20866 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20867 ac_cpp='$CPP $CPPFLAGS'
20868 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20869 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20870 cross_compiling=$ac_cv_prog_cc_cross
20871
20872     
20873 fi
20874
20875   fi
20876   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
20877
20878   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
20879     for ac_func in finitel
20880 do
20881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20882 echo "configure:20883: checking for $ac_func" >&5
20883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20884   echo $ac_n "(cached) $ac_c" 1>&6
20885 else
20886   cat > conftest.$ac_ext <<EOF
20887 #line 20888 "configure"
20888 #include "confdefs.h"
20889 /* System header to define __stub macros and hopefully few prototypes,
20890     which can conflict with char $ac_func(); below.  */
20891 #include <assert.h>
20892 /* Override any gcc2 internal prototype to avoid an error.  */
20893 /* We use char because int might match the return type of a gcc2
20894     builtin and then its argument prototype would still apply.  */
20895 char $ac_func();
20896
20897 int main() {
20898
20899 /* The GNU C library defines this for functions which it implements
20900     to always fail with ENOSYS.  Some functions are actually named
20901     something starting with __ and the normal name is an alias.  */
20902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20903 choke me
20904 #else
20905 $ac_func();
20906 #endif
20907
20908 ; return 0; }
20909 EOF
20910 if { (eval echo configure:20911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20911   rm -rf conftest*
20912   eval "ac_cv_func_$ac_func=yes"
20913 else
20914   echo "configure: failed program was:" >&5
20915   cat conftest.$ac_ext >&5
20916   rm -rf conftest*
20917   eval "ac_cv_func_$ac_func=no"
20918 fi
20919 rm -f conftest*
20920 fi
20921
20922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20923   echo "$ac_t""yes" 1>&6
20924     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20925   cat >> confdefs.h <<EOF
20926 #define $ac_tr_func 1
20927 EOF
20928  
20929 else
20930   echo "$ac_t""no" 1>&6
20931 fi
20932 done
20933     
20934   else
20935     
20936   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
20937 echo "configure:20938: checking for _finitel declaration" >&5
20938   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
20939     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
20940   echo $ac_n "(cached) $ac_c" 1>&6
20941 else
20942   
20943       
20944       ac_ext=C
20945 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20946 ac_cpp='$CXXCPP $CPPFLAGS'
20947 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20948 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20949 cross_compiling=$ac_cv_prog_cxx_cross
20950
20951       cat > conftest.$ac_ext <<EOF
20952 #line 20953 "configure"
20953 #include "confdefs.h"
20954 #include <math.h>
20955                       #ifdef HAVE_IEEEFP_H
20956                       #include <ieeefp.h>
20957                       #endif
20958                      
20959 int main() {
20960  _finitel(0);
20961 ; return 0; }
20962 EOF
20963 if { (eval echo configure:20964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20964   rm -rf conftest*
20965   glibcpp_cv_func__finitel_use=yes
20966 else
20967   echo "configure: failed program was:" >&5
20968   cat conftest.$ac_ext >&5
20969   rm -rf conftest*
20970   glibcpp_cv_func__finitel_use=no
20971 fi
20972 rm -f conftest*
20973       ac_ext=c
20974 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20975 ac_cpp='$CPP $CPPFLAGS'
20976 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20977 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20978 cross_compiling=$ac_cv_prog_cc_cross
20979
20980     
20981 fi
20982
20983   fi
20984   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
20985
20986     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
20987       for ac_func in _finitel
20988 do
20989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20990 echo "configure:20991: checking for $ac_func" >&5
20991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20992   echo $ac_n "(cached) $ac_c" 1>&6
20993 else
20994   cat > conftest.$ac_ext <<EOF
20995 #line 20996 "configure"
20996 #include "confdefs.h"
20997 /* System header to define __stub macros and hopefully few prototypes,
20998     which can conflict with char $ac_func(); below.  */
20999 #include <assert.h>
21000 /* Override any gcc2 internal prototype to avoid an error.  */
21001 /* We use char because int might match the return type of a gcc2
21002     builtin and then its argument prototype would still apply.  */
21003 char $ac_func();
21004
21005 int main() {
21006
21007 /* The GNU C library defines this for functions which it implements
21008     to always fail with ENOSYS.  Some functions are actually named
21009     something starting with __ and the normal name is an alias.  */
21010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21011 choke me
21012 #else
21013 $ac_func();
21014 #endif
21015
21016 ; return 0; }
21017 EOF
21018 if { (eval echo configure:21019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21019   rm -rf conftest*
21020   eval "ac_cv_func_$ac_func=yes"
21021 else
21022   echo "configure: failed program was:" >&5
21023   cat conftest.$ac_ext >&5
21024   rm -rf conftest*
21025   eval "ac_cv_func_$ac_func=no"
21026 fi
21027 rm -f conftest*
21028 fi
21029
21030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21031   echo "$ac_t""yes" 1>&6
21032     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21033   cat >> confdefs.h <<EOF
21034 #define $ac_tr_func 1
21035 EOF
21036  
21037 else
21038   echo "$ac_t""no" 1>&6
21039 fi
21040 done
21041     
21042     fi
21043   fi
21044
21045
21046         
21047     
21048   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
21049 echo "configure:21050: checking for _float trig functions" >&5
21050   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
21051   echo $ac_n "(cached) $ac_c" 1>&6
21052 else
21053   
21054     
21055     ac_ext=C
21056 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21057 ac_cpp='$CXXCPP $CPPFLAGS'
21058 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21059 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21060 cross_compiling=$ac_cv_prog_cxx_cross
21061
21062     cat > conftest.$ac_ext <<EOF
21063 #line 21064 "configure"
21064 #include "confdefs.h"
21065 #include <math.h>
21066 int main() {
21067  `for x in _acosf _asinf _atanf \
21068                                           _cosf _sinf _tanf \
21069                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
21070 ; return 0; }
21071 EOF
21072 if { (eval echo configure:21073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21073   rm -rf conftest*
21074   glibcpp_cv_func__float_trig_use=yes
21075 else
21076   echo "configure: failed program was:" >&5
21077   cat conftest.$ac_ext >&5
21078   rm -rf conftest*
21079   glibcpp_cv_func__float_trig_use=no
21080 fi
21081 rm -f conftest*
21082     ac_ext=c
21083 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21084 ac_cpp='$CPP $CPPFLAGS'
21085 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21086 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21087 cross_compiling=$ac_cv_prog_cc_cross
21088
21089 fi
21090
21091   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
21092   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
21093     for ac_func in _acosf _asinf _atanf \
21094                                           _cosf _sinf _tanf \
21095                                           _coshf _sinhf _tanhf
21096 do
21097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21098 echo "configure:21099: checking for $ac_func" >&5
21099 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21100   echo $ac_n "(cached) $ac_c" 1>&6
21101 else
21102   cat > conftest.$ac_ext <<EOF
21103 #line 21104 "configure"
21104 #include "confdefs.h"
21105 /* System header to define __stub macros and hopefully few prototypes,
21106     which can conflict with char $ac_func(); below.  */
21107 #include <assert.h>
21108 /* Override any gcc2 internal prototype to avoid an error.  */
21109 /* We use char because int might match the return type of a gcc2
21110     builtin and then its argument prototype would still apply.  */
21111 char $ac_func();
21112
21113 int main() {
21114
21115 /* The GNU C library defines this for functions which it implements
21116     to always fail with ENOSYS.  Some functions are actually named
21117     something starting with __ and the normal name is an alias.  */
21118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21119 choke me
21120 #else
21121 $ac_func();
21122 #endif
21123
21124 ; return 0; }
21125 EOF
21126 if { (eval echo configure:21127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21127   rm -rf conftest*
21128   eval "ac_cv_func_$ac_func=yes"
21129 else
21130   echo "configure: failed program was:" >&5
21131   cat conftest.$ac_ext >&5
21132   rm -rf conftest*
21133   eval "ac_cv_func_$ac_func=no"
21134 fi
21135 rm -f conftest*
21136 fi
21137
21138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21139   echo "$ac_t""yes" 1>&6
21140     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21141   cat >> confdefs.h <<EOF
21142 #define $ac_tr_func 1
21143 EOF
21144  
21145 else
21146   echo "$ac_t""no" 1>&6
21147 fi
21148 done
21149
21150   fi
21151
21152   
21153   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
21154 echo "configure:21155: checking for _float round functions" >&5
21155   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
21156   echo $ac_n "(cached) $ac_c" 1>&6
21157 else
21158   
21159     
21160     ac_ext=C
21161 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21162 ac_cpp='$CXXCPP $CPPFLAGS'
21163 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21164 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21165 cross_compiling=$ac_cv_prog_cxx_cross
21166
21167     cat > conftest.$ac_ext <<EOF
21168 #line 21169 "configure"
21169 #include "confdefs.h"
21170 #include <math.h>
21171 int main() {
21172  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
21173 ; return 0; }
21174 EOF
21175 if { (eval echo configure:21176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21176   rm -rf conftest*
21177   glibcpp_cv_func__float_round_use=yes
21178 else
21179   echo "configure: failed program was:" >&5
21180   cat conftest.$ac_ext >&5
21181   rm -rf conftest*
21182   glibcpp_cv_func__float_round_use=no
21183 fi
21184 rm -f conftest*
21185     ac_ext=c
21186 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21187 ac_cpp='$CPP $CPPFLAGS'
21188 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21189 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21190 cross_compiling=$ac_cv_prog_cc_cross
21191
21192 fi
21193
21194   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
21195   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
21196     for ac_func in _ceilf _floorf
21197 do
21198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21199 echo "configure:21200: checking for $ac_func" >&5
21200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21201   echo $ac_n "(cached) $ac_c" 1>&6
21202 else
21203   cat > conftest.$ac_ext <<EOF
21204 #line 21205 "configure"
21205 #include "confdefs.h"
21206 /* System header to define __stub macros and hopefully few prototypes,
21207     which can conflict with char $ac_func(); below.  */
21208 #include <assert.h>
21209 /* Override any gcc2 internal prototype to avoid an error.  */
21210 /* We use char because int might match the return type of a gcc2
21211     builtin and then its argument prototype would still apply.  */
21212 char $ac_func();
21213
21214 int main() {
21215
21216 /* The GNU C library defines this for functions which it implements
21217     to always fail with ENOSYS.  Some functions are actually named
21218     something starting with __ and the normal name is an alias.  */
21219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21220 choke me
21221 #else
21222 $ac_func();
21223 #endif
21224
21225 ; return 0; }
21226 EOF
21227 if { (eval echo configure:21228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21228   rm -rf conftest*
21229   eval "ac_cv_func_$ac_func=yes"
21230 else
21231   echo "configure: failed program was:" >&5
21232   cat conftest.$ac_ext >&5
21233   rm -rf conftest*
21234   eval "ac_cv_func_$ac_func=no"
21235 fi
21236 rm -f conftest*
21237 fi
21238
21239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21240   echo "$ac_t""yes" 1>&6
21241     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21242   cat >> confdefs.h <<EOF
21243 #define $ac_tr_func 1
21244 EOF
21245  
21246 else
21247   echo "$ac_t""no" 1>&6
21248 fi
21249 done
21250
21251   fi
21252
21253
21254     
21255   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
21256 echo "configure:21257: checking for _long double trig functions" >&5
21257   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
21258   echo $ac_n "(cached) $ac_c" 1>&6
21259 else
21260   
21261     
21262     ac_ext=C
21263 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21264 ac_cpp='$CXXCPP $CPPFLAGS'
21265 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21266 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21267 cross_compiling=$ac_cv_prog_cxx_cross
21268
21269     cat > conftest.$ac_ext <<EOF
21270 #line 21271 "configure"
21271 #include "confdefs.h"
21272 #include <math.h>
21273 int main() {
21274  `for x in _acosl _asinl _atanl \
21275                                           _cosl _sinl _tanl \
21276                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
21277 ; return 0; }
21278 EOF
21279 if { (eval echo configure:21280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21280   rm -rf conftest*
21281   glibcpp_cv_func__long_double_trig_use=yes
21282 else
21283   echo "configure: failed program was:" >&5
21284   cat conftest.$ac_ext >&5
21285   rm -rf conftest*
21286   glibcpp_cv_func__long_double_trig_use=no
21287 fi
21288 rm -f conftest*
21289     ac_ext=c
21290 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21291 ac_cpp='$CPP $CPPFLAGS'
21292 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21293 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21294 cross_compiling=$ac_cv_prog_cc_cross
21295
21296 fi
21297
21298   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
21299   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
21300     for ac_func in _acosl _asinl _atanl \
21301                                           _cosl _sinl _tanl \
21302                                           _coshl _sinhl _tanhl
21303 do
21304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21305 echo "configure:21306: checking for $ac_func" >&5
21306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21307   echo $ac_n "(cached) $ac_c" 1>&6
21308 else
21309   cat > conftest.$ac_ext <<EOF
21310 #line 21311 "configure"
21311 #include "confdefs.h"
21312 /* System header to define __stub macros and hopefully few prototypes,
21313     which can conflict with char $ac_func(); below.  */
21314 #include <assert.h>
21315 /* Override any gcc2 internal prototype to avoid an error.  */
21316 /* We use char because int might match the return type of a gcc2
21317     builtin and then its argument prototype would still apply.  */
21318 char $ac_func();
21319
21320 int main() {
21321
21322 /* The GNU C library defines this for functions which it implements
21323     to always fail with ENOSYS.  Some functions are actually named
21324     something starting with __ and the normal name is an alias.  */
21325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21326 choke me
21327 #else
21328 $ac_func();
21329 #endif
21330
21331 ; return 0; }
21332 EOF
21333 if { (eval echo configure:21334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21334   rm -rf conftest*
21335   eval "ac_cv_func_$ac_func=yes"
21336 else
21337   echo "configure: failed program was:" >&5
21338   cat conftest.$ac_ext >&5
21339   rm -rf conftest*
21340   eval "ac_cv_func_$ac_func=no"
21341 fi
21342 rm -f conftest*
21343 fi
21344
21345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21346   echo "$ac_t""yes" 1>&6
21347     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21348   cat >> confdefs.h <<EOF
21349 #define $ac_tr_func 1
21350 EOF
21351  
21352 else
21353   echo "$ac_t""no" 1>&6
21354 fi
21355 done
21356
21357   fi
21358
21359   
21360   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
21361 echo "configure:21362: checking for _long double round functions" >&5
21362   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
21363   echo $ac_n "(cached) $ac_c" 1>&6
21364 else
21365   
21366     
21367     ac_ext=C
21368 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21369 ac_cpp='$CXXCPP $CPPFLAGS'
21370 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21371 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21372 cross_compiling=$ac_cv_prog_cxx_cross
21373
21374     cat > conftest.$ac_ext <<EOF
21375 #line 21376 "configure"
21376 #include "confdefs.h"
21377 #include <math.h>
21378 int main() {
21379  `for x in _ceill _floorl; do echo "$x (0);"; done` 
21380 ; return 0; }
21381 EOF
21382 if { (eval echo configure:21383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21383   rm -rf conftest*
21384   glibcpp_cv_func__long_double_round_use=yes
21385 else
21386   echo "configure: failed program was:" >&5
21387   cat conftest.$ac_ext >&5
21388   rm -rf conftest*
21389   glibcpp_cv_func__long_double_round_use=no
21390 fi
21391 rm -f conftest*
21392     ac_ext=c
21393 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21394 ac_cpp='$CPP $CPPFLAGS'
21395 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21396 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21397 cross_compiling=$ac_cv_prog_cc_cross
21398
21399 fi
21400
21401   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
21402   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
21403     for ac_func in _ceill _floorl
21404 do
21405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21406 echo "configure:21407: checking for $ac_func" >&5
21407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21408   echo $ac_n "(cached) $ac_c" 1>&6
21409 else
21410   cat > conftest.$ac_ext <<EOF
21411 #line 21412 "configure"
21412 #include "confdefs.h"
21413 /* System header to define __stub macros and hopefully few prototypes,
21414     which can conflict with char $ac_func(); below.  */
21415 #include <assert.h>
21416 /* Override any gcc2 internal prototype to avoid an error.  */
21417 /* We use char because int might match the return type of a gcc2
21418     builtin and then its argument prototype would still apply.  */
21419 char $ac_func();
21420
21421 int main() {
21422
21423 /* The GNU C library defines this for functions which it implements
21424     to always fail with ENOSYS.  Some functions are actually named
21425     something starting with __ and the normal name is an alias.  */
21426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21427 choke me
21428 #else
21429 $ac_func();
21430 #endif
21431
21432 ; return 0; }
21433 EOF
21434 if { (eval echo configure:21435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21435   rm -rf conftest*
21436   eval "ac_cv_func_$ac_func=yes"
21437 else
21438   echo "configure: failed program was:" >&5
21439   cat conftest.$ac_ext >&5
21440   rm -rf conftest*
21441   eval "ac_cv_func_$ac_func=no"
21442 fi
21443 rm -f conftest*
21444 fi
21445
21446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21447   echo "$ac_t""yes" 1>&6
21448     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21449   cat >> confdefs.h <<EOF
21450 #define $ac_tr_func 1
21451 EOF
21452  
21453 else
21454   echo "$ac_t""no" 1>&6
21455 fi
21456 done
21457
21458   fi
21459
21460
21461   LIBS="$ac_save_LIBS"
21462   CXXFLAGS="$ac_save_CXXFLAGS"
21463
21464   
21465     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21466 echo "configure:21467: checking for main in -lm" >&5
21467 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21469   echo $ac_n "(cached) $ac_c" 1>&6
21470 else
21471   ac_save_LIBS="$LIBS"
21472 LIBS="-lm  $LIBS"
21473 cat > conftest.$ac_ext <<EOF
21474 #line 21475 "configure"
21475 #include "confdefs.h"
21476
21477 int main() {
21478 main()
21479 ; return 0; }
21480 EOF
21481 if { (eval echo configure:21482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21482   rm -rf conftest*
21483   eval "ac_cv_lib_$ac_lib_var=yes"
21484 else
21485   echo "configure: failed program was:" >&5
21486   cat conftest.$ac_ext >&5
21487   rm -rf conftest*
21488   eval "ac_cv_lib_$ac_lib_var=no"
21489 fi
21490 rm -f conftest*
21491 LIBS="$ac_save_LIBS"
21492
21493 fi
21494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21495   echo "$ac_t""yes" 1>&6
21496     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21497     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21498   cat >> confdefs.h <<EOF
21499 #define $ac_tr_lib 1
21500 EOF
21501
21502   LIBS="-lm $LIBS"
21503
21504 else
21505   echo "$ac_t""no" 1>&6
21506 fi
21507
21508   for ac_func in nan copysignf
21509 do
21510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21511 echo "configure:21512: checking for $ac_func" >&5
21512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21513   echo $ac_n "(cached) $ac_c" 1>&6
21514 else
21515   cat > conftest.$ac_ext <<EOF
21516 #line 21517 "configure"
21517 #include "confdefs.h"
21518 /* System header to define __stub macros and hopefully few prototypes,
21519     which can conflict with char $ac_func(); below.  */
21520 #include <assert.h>
21521 /* Override any gcc2 internal prototype to avoid an error.  */
21522 /* We use char because int might match the return type of a gcc2
21523     builtin and then its argument prototype would still apply.  */
21524 char $ac_func();
21525
21526 int main() {
21527
21528 /* The GNU C library defines this for functions which it implements
21529     to always fail with ENOSYS.  Some functions are actually named
21530     something starting with __ and the normal name is an alias.  */
21531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21532 choke me
21533 #else
21534 $ac_func();
21535 #endif
21536
21537 ; return 0; }
21538 EOF
21539 if { (eval echo configure:21540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21540   rm -rf conftest*
21541   eval "ac_cv_func_$ac_func=yes"
21542 else
21543   echo "configure: failed program was:" >&5
21544   cat conftest.$ac_ext >&5
21545   rm -rf conftest*
21546   eval "ac_cv_func_$ac_func=no"
21547 fi
21548 rm -f conftest*
21549 fi
21550
21551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21552   echo "$ac_t""yes" 1>&6
21553     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21554   cat >> confdefs.h <<EOF
21555 #define $ac_tr_func 1
21556 EOF
21557  
21558 else
21559   echo "$ac_t""no" 1>&6
21560 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21561 fi
21562 done
21563
21564
21565     for ac_func in __signbit
21566 do
21567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21568 echo "configure:21569: checking for $ac_func" >&5
21569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21570   echo $ac_n "(cached) $ac_c" 1>&6
21571 else
21572   cat > conftest.$ac_ext <<EOF
21573 #line 21574 "configure"
21574 #include "confdefs.h"
21575 /* System header to define __stub macros and hopefully few prototypes,
21576     which can conflict with char $ac_func(); below.  */
21577 #include <assert.h>
21578 /* Override any gcc2 internal prototype to avoid an error.  */
21579 /* We use char because int might match the return type of a gcc2
21580     builtin and then its argument prototype would still apply.  */
21581 char $ac_func();
21582
21583 int main() {
21584
21585 /* The GNU C library defines this for functions which it implements
21586     to always fail with ENOSYS.  Some functions are actually named
21587     something starting with __ and the normal name is an alias.  */
21588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21589 choke me
21590 #else
21591 $ac_func();
21592 #endif
21593
21594 ; return 0; }
21595 EOF
21596 if { (eval echo configure:21597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21597   rm -rf conftest*
21598   eval "ac_cv_func_$ac_func=yes"
21599 else
21600   echo "configure: failed program was:" >&5
21601   cat conftest.$ac_ext >&5
21602   rm -rf conftest*
21603   eval "ac_cv_func_$ac_func=no"
21604 fi
21605 rm -f conftest*
21606 fi
21607
21608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21609   echo "$ac_t""yes" 1>&6
21610     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21611   cat >> confdefs.h <<EOF
21612 #define $ac_tr_func 1
21613 EOF
21614  
21615 else
21616   echo "$ac_t""no" 1>&6
21617 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21618 fi
21619 done
21620
21621   for ac_func in __signbitf
21622 do
21623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21624 echo "configure:21625: checking for $ac_func" >&5
21625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21626   echo $ac_n "(cached) $ac_c" 1>&6
21627 else
21628   cat > conftest.$ac_ext <<EOF
21629 #line 21630 "configure"
21630 #include "confdefs.h"
21631 /* System header to define __stub macros and hopefully few prototypes,
21632     which can conflict with char $ac_func(); below.  */
21633 #include <assert.h>
21634 /* Override any gcc2 internal prototype to avoid an error.  */
21635 /* We use char because int might match the return type of a gcc2
21636     builtin and then its argument prototype would still apply.  */
21637 char $ac_func();
21638
21639 int main() {
21640
21641 /* The GNU C library defines this for functions which it implements
21642     to always fail with ENOSYS.  Some functions are actually named
21643     something starting with __ and the normal name is an alias.  */
21644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21645 choke me
21646 #else
21647 $ac_func();
21648 #endif
21649
21650 ; return 0; }
21651 EOF
21652 if { (eval echo configure:21653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21653   rm -rf conftest*
21654   eval "ac_cv_func_$ac_func=yes"
21655 else
21656   echo "configure: failed program was:" >&5
21657   cat conftest.$ac_ext >&5
21658   rm -rf conftest*
21659   eval "ac_cv_func_$ac_func=no"
21660 fi
21661 rm -f conftest*
21662 fi
21663
21664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21665   echo "$ac_t""yes" 1>&6
21666     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21667   cat >> confdefs.h <<EOF
21668 #define $ac_tr_func 1
21669 EOF
21670  
21671 else
21672   echo "$ac_t""no" 1>&6
21673 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21674 fi
21675 done
21676
21677
21678           if test x$ac_cv_func_copysignl = x"yes"; then
21679     for ac_func in __signbitl
21680 do
21681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21682 echo "configure:21683: checking for $ac_func" >&5
21683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21684   echo $ac_n "(cached) $ac_c" 1>&6
21685 else
21686   cat > conftest.$ac_ext <<EOF
21687 #line 21688 "configure"
21688 #include "confdefs.h"
21689 /* System header to define __stub macros and hopefully few prototypes,
21690     which can conflict with char $ac_func(); below.  */
21691 #include <assert.h>
21692 /* Override any gcc2 internal prototype to avoid an error.  */
21693 /* We use char because int might match the return type of a gcc2
21694     builtin and then its argument prototype would still apply.  */
21695 char $ac_func();
21696
21697 int main() {
21698
21699 /* The GNU C library defines this for functions which it implements
21700     to always fail with ENOSYS.  Some functions are actually named
21701     something starting with __ and the normal name is an alias.  */
21702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21703 choke me
21704 #else
21705 $ac_func();
21706 #endif
21707
21708 ; return 0; }
21709 EOF
21710 if { (eval echo configure:21711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21711   rm -rf conftest*
21712   eval "ac_cv_func_$ac_func=yes"
21713 else
21714   echo "configure: failed program was:" >&5
21715   cat conftest.$ac_ext >&5
21716   rm -rf conftest*
21717   eval "ac_cv_func_$ac_func=no"
21718 fi
21719 rm -f conftest*
21720 fi
21721
21722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21723   echo "$ac_t""yes" 1>&6
21724     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21725   cat >> confdefs.h <<EOF
21726 #define $ac_tr_func 1
21727 EOF
21728  
21729 else
21730   echo "$ac_t""no" 1>&6
21731 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
21732 fi
21733 done
21734
21735   fi
21736
21737   
21738
21739   
21740
21741       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
21742 echo "configure:21743: checking for mbstate_t" >&5
21743   cat > conftest.$ac_ext <<EOF
21744 #line 21745 "configure"
21745 #include "confdefs.h"
21746 #include <wchar.h>
21747 int main() {
21748 mbstate_t teststate;
21749 ; return 0; }
21750 EOF
21751 if { (eval echo configure:21752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21752   rm -rf conftest*
21753   have_mbstate_t=yes
21754 else
21755   echo "configure: failed program was:" >&5
21756   cat conftest.$ac_ext >&5
21757   rm -rf conftest*
21758   have_mbstate_t=no
21759 fi
21760 rm -f conftest*
21761   echo "$ac_t""$have_mbstate_t" 1>&6
21762   if test x"$have_mbstate_t" = xyes; then
21763     cat >> confdefs.h <<\EOF
21764 #define HAVE_MBSTATE_T 1
21765 EOF
21766
21767   fi
21768
21769     for ac_hdr in wchar.h
21770 do
21771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21773 echo "configure:21774: checking for $ac_hdr" >&5
21774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21775   echo $ac_n "(cached) $ac_c" 1>&6
21776 else
21777   cat > conftest.$ac_ext <<EOF
21778 #line 21779 "configure"
21779 #include "confdefs.h"
21780 #include <$ac_hdr>
21781 EOF
21782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21783 { (eval echo configure:21784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21785 if test -z "$ac_err"; then
21786   rm -rf conftest*
21787   eval "ac_cv_header_$ac_safe=yes"
21788 else
21789   echo "$ac_err" >&5
21790   echo "configure: failed program was:" >&5
21791   cat conftest.$ac_ext >&5
21792   rm -rf conftest*
21793   eval "ac_cv_header_$ac_safe=no"
21794 fi
21795 rm -f conftest*
21796 fi
21797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21798   echo "$ac_t""yes" 1>&6
21799     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21800   cat >> confdefs.h <<EOF
21801 #define $ac_tr_hdr 1
21802 EOF
21803  ac_has_wchar_h=yes
21804 else
21805   echo "$ac_t""no" 1>&6
21806 ac_has_wchar_h=no
21807 fi
21808 done
21809
21810   for ac_hdr in wctype.h
21811 do
21812 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21813 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21814 echo "configure:21815: checking for $ac_hdr" >&5
21815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21816   echo $ac_n "(cached) $ac_c" 1>&6
21817 else
21818   cat > conftest.$ac_ext <<EOF
21819 #line 21820 "configure"
21820 #include "confdefs.h"
21821 #include <$ac_hdr>
21822 EOF
21823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21824 { (eval echo configure:21825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21826 if test -z "$ac_err"; then
21827   rm -rf conftest*
21828   eval "ac_cv_header_$ac_safe=yes"
21829 else
21830   echo "$ac_err" >&5
21831   echo "configure: failed program was:" >&5
21832   cat conftest.$ac_ext >&5
21833   rm -rf conftest*
21834   eval "ac_cv_header_$ac_safe=no"
21835 fi
21836 rm -f conftest*
21837 fi
21838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21839   echo "$ac_t""yes" 1>&6
21840     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21841   cat >> confdefs.h <<EOF
21842 #define $ac_tr_hdr 1
21843 EOF
21844  ac_has_wctype_h=yes
21845 else
21846   echo "$ac_t""no" 1>&6
21847 ac_has_wctype_h=no
21848 fi
21849 done
21850
21851   
21852     if test x"$ac_has_wchar_h" = xyes &&
21853      test x"$ac_has_wctype_h" = xyes &&
21854      test x"$enable_c_mbchar" != xno; then
21855       
21856             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
21857 echo "configure:21858: checking for WCHAR_MIN and WCHAR_MAX" >&5
21858     cat > conftest.$ac_ext <<EOF
21859 #line 21860 "configure"
21860 #include "confdefs.h"
21861 #include <wchar.h>
21862 int main() {
21863 int i = WCHAR_MIN; int j = WCHAR_MAX;
21864 ; return 0; }
21865 EOF
21866 if { (eval echo configure:21867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21867   rm -rf conftest*
21868   has_wchar_minmax=yes
21869 else
21870   echo "configure: failed program was:" >&5
21871   cat conftest.$ac_ext >&5
21872   rm -rf conftest*
21873   has_wchar_minmax=no
21874 fi
21875 rm -f conftest*
21876     echo "$ac_t""$has_wchar_minmax" 1>&6
21877     
21878             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
21879 echo "configure:21880: checking for WEOF" >&5
21880     cat > conftest.$ac_ext <<EOF
21881 #line 21882 "configure"
21882 #include "confdefs.h"
21883
21884       #include <wchar.h>
21885       #include <stddef.h>
21886 int main() {
21887 wint_t i = WEOF;
21888 ; return 0; }
21889 EOF
21890 if { (eval echo configure:21891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21891   rm -rf conftest*
21892   has_weof=yes
21893 else
21894   echo "configure: failed program was:" >&5
21895   cat conftest.$ac_ext >&5
21896   rm -rf conftest*
21897   has_weof=no
21898 fi
21899 rm -f conftest*
21900     echo "$ac_t""$has_weof" 1>&6
21901   
21902         ac_wfuncs=yes
21903     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
21904 do
21905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21906 echo "configure:21907: checking for $ac_func" >&5
21907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21908   echo $ac_n "(cached) $ac_c" 1>&6
21909 else
21910   cat > conftest.$ac_ext <<EOF
21911 #line 21912 "configure"
21912 #include "confdefs.h"
21913 /* System header to define __stub macros and hopefully few prototypes,
21914     which can conflict with char $ac_func(); below.  */
21915 #include <assert.h>
21916 /* Override any gcc2 internal prototype to avoid an error.  */
21917 /* We use char because int might match the return type of a gcc2
21918     builtin and then its argument prototype would still apply.  */
21919 char $ac_func();
21920
21921 int main() {
21922
21923 /* The GNU C library defines this for functions which it implements
21924     to always fail with ENOSYS.  Some functions are actually named
21925     something starting with __ and the normal name is an alias.  */
21926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21927 choke me
21928 #else
21929 $ac_func();
21930 #endif
21931
21932 ; return 0; }
21933 EOF
21934 if { (eval echo configure:21935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21935   rm -rf conftest*
21936   eval "ac_cv_func_$ac_func=yes"
21937 else
21938   echo "configure: failed program was:" >&5
21939   cat conftest.$ac_ext >&5
21940   rm -rf conftest*
21941   eval "ac_cv_func_$ac_func=no"
21942 fi
21943 rm -f conftest*
21944 fi
21945
21946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21947   echo "$ac_t""yes" 1>&6
21948     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21949   cat >> confdefs.h <<EOF
21950 #define $ac_tr_func 1
21951 EOF
21952  
21953 else
21954   echo "$ac_t""no" 1>&6
21955 \
21956     ac_wfuncs=no
21957 fi
21958 done
21959
21960   
21961         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
21962     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
21963     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
21964     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
21965     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
21966     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
21967 do
21968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21969 echo "configure:21970: checking for $ac_func" >&5
21970 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21971   echo $ac_n "(cached) $ac_c" 1>&6
21972 else
21973   cat > conftest.$ac_ext <<EOF
21974 #line 21975 "configure"
21975 #include "confdefs.h"
21976 /* System header to define __stub macros and hopefully few prototypes,
21977     which can conflict with char $ac_func(); below.  */
21978 #include <assert.h>
21979 /* Override any gcc2 internal prototype to avoid an error.  */
21980 /* We use char because int might match the return type of a gcc2
21981     builtin and then its argument prototype would still apply.  */
21982 char $ac_func();
21983
21984 int main() {
21985
21986 /* The GNU C library defines this for functions which it implements
21987     to always fail with ENOSYS.  Some functions are actually named
21988     something starting with __ and the normal name is an alias.  */
21989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21990 choke me
21991 #else
21992 $ac_func();
21993 #endif
21994
21995 ; return 0; }
21996 EOF
21997 if { (eval echo configure:21998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21998   rm -rf conftest*
21999   eval "ac_cv_func_$ac_func=yes"
22000 else
22001   echo "configure: failed program was:" >&5
22002   cat conftest.$ac_ext >&5
22003   rm -rf conftest*
22004   eval "ac_cv_func_$ac_func=no"
22005 fi
22006 rm -f conftest*
22007 fi
22008
22009 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22010   echo "$ac_t""yes" 1>&6
22011     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22012   cat >> confdefs.h <<EOF
22013 #define $ac_tr_func 1
22014 EOF
22015  
22016 else
22017   echo "$ac_t""no" 1>&6
22018 \
22019     ac_wfuncs=no
22020 fi
22021 done
22022
22023
22024     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22025 echo "configure:22026: checking for ISO C99 wchar_t support" >&5
22026     if test x"$has_weof" = xyes &&
22027        test x"$has_wchar_minmax" = xyes &&
22028        test x"$ac_wfuncs" = xyes; then
22029       ac_isoC99_wchar_t=yes
22030     else
22031       ac_isoC99_wchar_t=no
22032     fi
22033     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22034   
22035             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22036 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22037 echo "configure:22038: checking for iconv.h" >&5
22038 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22039   echo $ac_n "(cached) $ac_c" 1>&6
22040 else
22041   cat > conftest.$ac_ext <<EOF
22042 #line 22043 "configure"
22043 #include "confdefs.h"
22044 #include <iconv.h>
22045 EOF
22046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22047 { (eval echo configure:22048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22049 if test -z "$ac_err"; then
22050   rm -rf conftest*
22051   eval "ac_cv_header_$ac_safe=yes"
22052 else
22053   echo "$ac_err" >&5
22054   echo "configure: failed program was:" >&5
22055   cat conftest.$ac_ext >&5
22056   rm -rf conftest*
22057   eval "ac_cv_header_$ac_safe=no"
22058 fi
22059 rm -f conftest*
22060 fi
22061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22062   echo "$ac_t""yes" 1>&6
22063   ac_has_iconv_h=yes
22064 else
22065   echo "$ac_t""no" 1>&6
22066 ac_has_iconv_h=no
22067 fi
22068
22069     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22070 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22071 echo "configure:22072: checking for langinfo.h" >&5
22072 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22073   echo $ac_n "(cached) $ac_c" 1>&6
22074 else
22075   cat > conftest.$ac_ext <<EOF
22076 #line 22077 "configure"
22077 #include "confdefs.h"
22078 #include <langinfo.h>
22079 EOF
22080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22081 { (eval echo configure:22082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22083 if test -z "$ac_err"; then
22084   rm -rf conftest*
22085   eval "ac_cv_header_$ac_safe=yes"
22086 else
22087   echo "$ac_err" >&5
22088   echo "configure: failed program was:" >&5
22089   cat conftest.$ac_ext >&5
22090   rm -rf conftest*
22091   eval "ac_cv_header_$ac_safe=no"
22092 fi
22093 rm -f conftest*
22094 fi
22095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22096   echo "$ac_t""yes" 1>&6
22097   ac_has_langinfo_h=yes
22098 else
22099   echo "$ac_t""no" 1>&6
22100 ac_has_langinfo_h=no
22101 fi
22102
22103
22104         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22105 echo "configure:22106: checking for iconv in -liconv" >&5
22106 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22107 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22108   echo $ac_n "(cached) $ac_c" 1>&6
22109 else
22110   ac_save_LIBS="$LIBS"
22111 LIBS="-liconv  $LIBS"
22112 cat > conftest.$ac_ext <<EOF
22113 #line 22114 "configure"
22114 #include "confdefs.h"
22115 /* Override any gcc2 internal prototype to avoid an error.  */
22116 /* We use char because int might match the return type of a gcc2
22117     builtin and then its argument prototype would still apply.  */
22118 char iconv();
22119
22120 int main() {
22121 iconv()
22122 ; return 0; }
22123 EOF
22124 if { (eval echo configure:22125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22125   rm -rf conftest*
22126   eval "ac_cv_lib_$ac_lib_var=yes"
22127 else
22128   echo "configure: failed program was:" >&5
22129   cat conftest.$ac_ext >&5
22130   rm -rf conftest*
22131   eval "ac_cv_lib_$ac_lib_var=no"
22132 fi
22133 rm -f conftest*
22134 LIBS="$ac_save_LIBS"
22135
22136 fi
22137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22138   echo "$ac_t""yes" 1>&6
22139   libiconv="-liconv"
22140 else
22141   echo "$ac_t""no" 1>&6
22142 fi
22143
22144     ac_save_LIBS="$LIBS"
22145     LIBS="$LIBS $libiconv"
22146
22147     for ac_func in iconv_open iconv_close iconv nl_langinfo
22148 do
22149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22150 echo "configure:22151: checking for $ac_func" >&5
22151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22152   echo $ac_n "(cached) $ac_c" 1>&6
22153 else
22154   cat > conftest.$ac_ext <<EOF
22155 #line 22156 "configure"
22156 #include "confdefs.h"
22157 /* System header to define __stub macros and hopefully few prototypes,
22158     which can conflict with char $ac_func(); below.  */
22159 #include <assert.h>
22160 /* Override any gcc2 internal prototype to avoid an error.  */
22161 /* We use char because int might match the return type of a gcc2
22162     builtin and then its argument prototype would still apply.  */
22163 char $ac_func();
22164
22165 int main() {
22166
22167 /* The GNU C library defines this for functions which it implements
22168     to always fail with ENOSYS.  Some functions are actually named
22169     something starting with __ and the normal name is an alias.  */
22170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22171 choke me
22172 #else
22173 $ac_func();
22174 #endif
22175
22176 ; return 0; }
22177 EOF
22178 if { (eval echo configure:22179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22179   rm -rf conftest*
22180   eval "ac_cv_func_$ac_func=yes"
22181 else
22182   echo "configure: failed program was:" >&5
22183   cat conftest.$ac_ext >&5
22184   rm -rf conftest*
22185   eval "ac_cv_func_$ac_func=no"
22186 fi
22187 rm -f conftest*
22188 fi
22189
22190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22191   echo "$ac_t""yes" 1>&6
22192     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22193   cat >> confdefs.h <<EOF
22194 #define $ac_tr_func 1
22195 EOF
22196  \
22197     ac_XPG2funcs=yes
22198 else
22199   echo "$ac_t""no" 1>&6
22200 ac_XPG2funcs=no
22201 fi
22202 done
22203
22204   
22205     LIBS="$ac_save_LIBS"
22206
22207     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22208 echo "configure:22209: checking for XPG2 wchar_t support" >&5
22209     if test x"$ac_has_iconv_h" = xyes &&
22210        test x"$ac_has_langinfo_h" = xyes &&
22211        test x"$ac_XPG2funcs" = xyes; then
22212       ac_XPG2_wchar_t=yes
22213     else
22214       ac_XPG2_wchar_t=no
22215     fi
22216     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22217   
22218             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22219 echo "configure:22220: checking for enabled wchar_t specializations" >&5
22220     if test x"$ac_isoC99_wchar_t" = xyes &&
22221        test x"$ac_XPG2_wchar_t" = xyes; then
22222       cat >> confdefs.h <<\EOF
22223 #define _GLIBCPP_USE_WCHAR_T 1
22224 EOF
22225
22226       echo "$ac_t"""yes"" 1>&6
22227     else
22228       echo "$ac_t"""no"" 1>&6
22229     fi
22230   else
22231         echo "configure: warning: wchar_t support disabled." 1>&2
22232   fi
22233
22234   
22235   ac_test_CXXFLAGS="${CXXFLAGS+set}"
22236   ac_save_CXXFLAGS="$CXXFLAGS"
22237   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22238
22239   
22240   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22241 echo "configure:22242: checking for strtold declaration" >&5
22242   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22243     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22244   echo $ac_n "(cached) $ac_c" 1>&6
22245 else
22246   
22247       
22248       ac_ext=C
22249 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22250 ac_cpp='$CXXCPP $CPPFLAGS'
22251 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22252 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22253 cross_compiling=$ac_cv_prog_cxx_cross
22254
22255       cat > conftest.$ac_ext <<EOF
22256 #line 22257 "configure"
22257 #include "confdefs.h"
22258 #include <stdlib.h>
22259 int main() {
22260  strtold(0, 0);
22261 ; return 0; }
22262 EOF
22263 if { (eval echo configure:22264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22264   rm -rf conftest*
22265   glibcpp_cv_func_strtold_use=yes
22266 else
22267   echo "configure: failed program was:" >&5
22268   cat conftest.$ac_ext >&5
22269   rm -rf conftest*
22270   glibcpp_cv_func_strtold_use=no
22271 fi
22272 rm -f conftest*
22273       ac_ext=c
22274 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22275 ac_cpp='$CPP $CPPFLAGS'
22276 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22277 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22278 cross_compiling=$ac_cv_prog_cc_cross
22279
22280     
22281 fi
22282
22283   fi
22284   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22285   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22286     for ac_func in strtold
22287 do
22288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22289 echo "configure:22290: checking for $ac_func" >&5
22290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22291   echo $ac_n "(cached) $ac_c" 1>&6
22292 else
22293   cat > conftest.$ac_ext <<EOF
22294 #line 22295 "configure"
22295 #include "confdefs.h"
22296 /* System header to define __stub macros and hopefully few prototypes,
22297     which can conflict with char $ac_func(); below.  */
22298 #include <assert.h>
22299 /* Override any gcc2 internal prototype to avoid an error.  */
22300 /* We use char because int might match the return type of a gcc2
22301     builtin and then its argument prototype would still apply.  */
22302 char $ac_func();
22303
22304 int main() {
22305
22306 /* The GNU C library defines this for functions which it implements
22307     to always fail with ENOSYS.  Some functions are actually named
22308     something starting with __ and the normal name is an alias.  */
22309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22310 choke me
22311 #else
22312 $ac_func();
22313 #endif
22314
22315 ; return 0; }
22316 EOF
22317 if { (eval echo configure:22318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22318   rm -rf conftest*
22319   eval "ac_cv_func_$ac_func=yes"
22320 else
22321   echo "configure: failed program was:" >&5
22322   cat conftest.$ac_ext >&5
22323   rm -rf conftest*
22324   eval "ac_cv_func_$ac_func=no"
22325 fi
22326 rm -f conftest*
22327 fi
22328
22329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22330   echo "$ac_t""yes" 1>&6
22331     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22332   cat >> confdefs.h <<EOF
22333 #define $ac_tr_func 1
22334 EOF
22335  
22336 else
22337   echo "$ac_t""no" 1>&6
22338 fi
22339 done
22340     
22341   fi
22342
22343   
22344   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22345 echo "configure:22346: checking for strtof declaration" >&5
22346   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22347     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22348   echo $ac_n "(cached) $ac_c" 1>&6
22349 else
22350   
22351       
22352       ac_ext=C
22353 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22354 ac_cpp='$CXXCPP $CPPFLAGS'
22355 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22356 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22357 cross_compiling=$ac_cv_prog_cxx_cross
22358
22359       cat > conftest.$ac_ext <<EOF
22360 #line 22361 "configure"
22361 #include "confdefs.h"
22362 #include <stdlib.h>
22363 int main() {
22364  strtof(0, 0);
22365 ; return 0; }
22366 EOF
22367 if { (eval echo configure:22368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22368   rm -rf conftest*
22369   glibcpp_cv_func_strtof_use=yes
22370 else
22371   echo "configure: failed program was:" >&5
22372   cat conftest.$ac_ext >&5
22373   rm -rf conftest*
22374   glibcpp_cv_func_strtof_use=no
22375 fi
22376 rm -f conftest*
22377       ac_ext=c
22378 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22379 ac_cpp='$CPP $CPPFLAGS'
22380 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22381 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22382 cross_compiling=$ac_cv_prog_cc_cross
22383
22384     
22385 fi
22386
22387   fi
22388   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22389   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22390     for ac_func in strtof
22391 do
22392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22393 echo "configure:22394: checking for $ac_func" >&5
22394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22395   echo $ac_n "(cached) $ac_c" 1>&6
22396 else
22397   cat > conftest.$ac_ext <<EOF
22398 #line 22399 "configure"
22399 #include "confdefs.h"
22400 /* System header to define __stub macros and hopefully few prototypes,
22401     which can conflict with char $ac_func(); below.  */
22402 #include <assert.h>
22403 /* Override any gcc2 internal prototype to avoid an error.  */
22404 /* We use char because int might match the return type of a gcc2
22405     builtin and then its argument prototype would still apply.  */
22406 char $ac_func();
22407
22408 int main() {
22409
22410 /* The GNU C library defines this for functions which it implements
22411     to always fail with ENOSYS.  Some functions are actually named
22412     something starting with __ and the normal name is an alias.  */
22413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22414 choke me
22415 #else
22416 $ac_func();
22417 #endif
22418
22419 ; return 0; }
22420 EOF
22421 if { (eval echo configure:22422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22422   rm -rf conftest*
22423   eval "ac_cv_func_$ac_func=yes"
22424 else
22425   echo "configure: failed program was:" >&5
22426   cat conftest.$ac_ext >&5
22427   rm -rf conftest*
22428   eval "ac_cv_func_$ac_func=no"
22429 fi
22430 rm -f conftest*
22431 fi
22432
22433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22434   echo "$ac_t""yes" 1>&6
22435     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22436   cat >> confdefs.h <<EOF
22437 #define $ac_tr_func 1
22438 EOF
22439  
22440 else
22441   echo "$ac_t""no" 1>&6
22442 fi
22443 done
22444     
22445   fi
22446
22447   for ac_func in drand48
22448 do
22449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22450 echo "configure:22451: checking for $ac_func" >&5
22451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22452   echo $ac_n "(cached) $ac_c" 1>&6
22453 else
22454   cat > conftest.$ac_ext <<EOF
22455 #line 22456 "configure"
22456 #include "confdefs.h"
22457 /* System header to define __stub macros and hopefully few prototypes,
22458     which can conflict with char $ac_func(); below.  */
22459 #include <assert.h>
22460 /* Override any gcc2 internal prototype to avoid an error.  */
22461 /* We use char because int might match the return type of a gcc2
22462     builtin and then its argument prototype would still apply.  */
22463 char $ac_func();
22464
22465 int main() {
22466
22467 /* The GNU C library defines this for functions which it implements
22468     to always fail with ENOSYS.  Some functions are actually named
22469     something starting with __ and the normal name is an alias.  */
22470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22471 choke me
22472 #else
22473 $ac_func();
22474 #endif
22475
22476 ; return 0; }
22477 EOF
22478 if { (eval echo configure:22479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22479   rm -rf conftest*
22480   eval "ac_cv_func_$ac_func=yes"
22481 else
22482   echo "configure: failed program was:" >&5
22483   cat conftest.$ac_ext >&5
22484   rm -rf conftest*
22485   eval "ac_cv_func_$ac_func=no"
22486 fi
22487 rm -f conftest*
22488 fi
22489
22490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22491   echo "$ac_t""yes" 1>&6
22492     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22493   cat >> confdefs.h <<EOF
22494 #define $ac_tr_func 1
22495 EOF
22496  
22497 else
22498   echo "$ac_t""no" 1>&6
22499 fi
22500 done
22501
22502
22503   CXXFLAGS="$ac_save_CXXFLAGS"
22504
22505   
22506   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22507 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22508 echo "configure:22509: checking for locale.h" >&5
22509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22510   echo $ac_n "(cached) $ac_c" 1>&6
22511 else
22512   cat > conftest.$ac_ext <<EOF
22513 #line 22514 "configure"
22514 #include "confdefs.h"
22515 #include <locale.h>
22516 EOF
22517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22518 { (eval echo configure:22519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22520 if test -z "$ac_err"; then
22521   rm -rf conftest*
22522   eval "ac_cv_header_$ac_safe=yes"
22523 else
22524   echo "$ac_err" >&5
22525   echo "configure: failed program was:" >&5
22526   cat conftest.$ac_ext >&5
22527   rm -rf conftest*
22528   eval "ac_cv_header_$ac_safe=no"
22529 fi
22530 rm -f conftest*
22531 fi
22532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22533   echo "$ac_t""yes" 1>&6
22534   
22535     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
22536 echo "configure:22537: checking for LC_MESSAGES" >&5
22537 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
22538   echo $ac_n "(cached) $ac_c" 1>&6
22539 else
22540   cat > conftest.$ac_ext <<EOF
22541 #line 22542 "configure"
22542 #include "confdefs.h"
22543 #include <locale.h>
22544 int main() {
22545 return LC_MESSAGES
22546 ; return 0; }
22547 EOF
22548 if { (eval echo configure:22549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22549   rm -rf conftest*
22550   ac_cv_val_LC_MESSAGES=yes
22551 else
22552   echo "configure: failed program was:" >&5
22553   cat conftest.$ac_ext >&5
22554   rm -rf conftest*
22555   ac_cv_val_LC_MESSAGES=no
22556 fi
22557 rm -f conftest*
22558 fi
22559
22560 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
22561     if test $ac_cv_val_LC_MESSAGES = yes; then
22562       cat >> confdefs.h <<\EOF
22563 #define HAVE_LC_MESSAGES 1
22564 EOF
22565
22566     fi
22567   
22568 else
22569   echo "$ac_t""no" 1>&6
22570 fi
22571
22572
22573
22574   cat > conftest.$ac_ext <<EOF
22575 #line 22576 "configure"
22576 #include "confdefs.h"
22577
22578   #include <setjmp.h>
22579   
22580 int main() {
22581 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
22582 ; return 0; }
22583 EOF
22584 if { (eval echo configure:22585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22585   rm -rf conftest*
22586   cat >> confdefs.h <<\EOF
22587 #define HAVE_SIGSETJMP 1
22588 EOF
22589
22590   
22591 else
22592   echo "configure: failed program was:" >&5
22593   cat conftest.$ac_ext >&5
22594 fi
22595 rm -f conftest*
22596
22597   for ac_hdr in unistd.h
22598 do
22599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22601 echo "configure:22602: checking for $ac_hdr" >&5
22602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22603   echo $ac_n "(cached) $ac_c" 1>&6
22604 else
22605   cat > conftest.$ac_ext <<EOF
22606 #line 22607 "configure"
22607 #include "confdefs.h"
22608 #include <$ac_hdr>
22609 EOF
22610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22611 { (eval echo configure:22612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22613 if test -z "$ac_err"; then
22614   rm -rf conftest*
22615   eval "ac_cv_header_$ac_safe=yes"
22616 else
22617   echo "$ac_err" >&5
22618   echo "configure: failed program was:" >&5
22619   cat conftest.$ac_ext >&5
22620   rm -rf conftest*
22621   eval "ac_cv_header_$ac_safe=no"
22622 fi
22623 rm -f conftest*
22624 fi
22625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22626   echo "$ac_t""yes" 1>&6
22627     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22628   cat >> confdefs.h <<EOF
22629 #define $ac_tr_hdr 1
22630 EOF
22631  
22632 else
22633   echo "$ac_t""no" 1>&6
22634 fi
22635 done
22636
22637 for ac_func in getpagesize
22638 do
22639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22640 echo "configure:22641: checking for $ac_func" >&5
22641 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22642   echo $ac_n "(cached) $ac_c" 1>&6
22643 else
22644   cat > conftest.$ac_ext <<EOF
22645 #line 22646 "configure"
22646 #include "confdefs.h"
22647 /* System header to define __stub macros and hopefully few prototypes,
22648     which can conflict with char $ac_func(); below.  */
22649 #include <assert.h>
22650 /* Override any gcc2 internal prototype to avoid an error.  */
22651 /* We use char because int might match the return type of a gcc2
22652     builtin and then its argument prototype would still apply.  */
22653 char $ac_func();
22654
22655 int main() {
22656
22657 /* The GNU C library defines this for functions which it implements
22658     to always fail with ENOSYS.  Some functions are actually named
22659     something starting with __ and the normal name is an alias.  */
22660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22661 choke me
22662 #else
22663 $ac_func();
22664 #endif
22665
22666 ; return 0; }
22667 EOF
22668 if { (eval echo configure:22669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22669   rm -rf conftest*
22670   eval "ac_cv_func_$ac_func=yes"
22671 else
22672   echo "configure: failed program was:" >&5
22673   cat conftest.$ac_ext >&5
22674   rm -rf conftest*
22675   eval "ac_cv_func_$ac_func=no"
22676 fi
22677 rm -f conftest*
22678 fi
22679
22680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22681   echo "$ac_t""yes" 1>&6
22682     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22683   cat >> confdefs.h <<EOF
22684 #define $ac_tr_func 1
22685 EOF
22686  
22687 else
22688   echo "$ac_t""no" 1>&6
22689 fi
22690 done
22691
22692 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
22693 echo "configure:22694: checking for working mmap" >&5
22694 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
22695   echo $ac_n "(cached) $ac_c" 1>&6
22696 else
22697   if test "$cross_compiling" = yes; then
22698   ac_cv_func_mmap_fixed_mapped=no
22699 else
22700   cat > conftest.$ac_ext <<EOF
22701 #line 22702 "configure"
22702 #include "confdefs.h"
22703
22704 /* Thanks to Mike Haertel and Jim Avera for this test.
22705    Here is a matrix of mmap possibilities:
22706         mmap private not fixed
22707         mmap private fixed at somewhere currently unmapped
22708         mmap private fixed at somewhere already mapped
22709         mmap shared not fixed
22710         mmap shared fixed at somewhere currently unmapped
22711         mmap shared fixed at somewhere already mapped
22712    For private mappings, we should verify that changes cannot be read()
22713    back from the file, nor mmap's back from the file at a different
22714    address.  (There have been systems where private was not correctly
22715    implemented like the infamous i386 svr4.0, and systems where the
22716    VM page cache was not coherent with the filesystem buffer cache
22717    like early versions of FreeBSD and possibly contemporary NetBSD.)
22718    For shared mappings, we should conversely verify that changes get
22719    propogated back to all the places they're supposed to be.
22720
22721    Grep wants private fixed already mapped.
22722    The main things grep needs to know about mmap are:
22723    * does it exist and is it safe to write into the mmap'd area
22724    * how to use it (BSD variants)  */
22725 #include <sys/types.h>
22726 #include <fcntl.h>
22727 #include <sys/mman.h>
22728
22729 /* This mess was copied from the GNU getpagesize.h.  */
22730 #ifndef HAVE_GETPAGESIZE
22731 # ifdef HAVE_UNISTD_H
22732 #  include <unistd.h>
22733 # endif
22734
22735 /* Assume that all systems that can run configure have sys/param.h.  */
22736 # ifndef HAVE_SYS_PARAM_H
22737 #  define HAVE_SYS_PARAM_H 1
22738 # endif
22739
22740 # ifdef _SC_PAGESIZE
22741 #  define getpagesize() sysconf(_SC_PAGESIZE)
22742 # else /* no _SC_PAGESIZE */
22743 #  ifdef HAVE_SYS_PARAM_H
22744 #   include <sys/param.h>
22745 #   ifdef EXEC_PAGESIZE
22746 #    define getpagesize() EXEC_PAGESIZE
22747 #   else /* no EXEC_PAGESIZE */
22748 #    ifdef NBPG
22749 #     define getpagesize() NBPG * CLSIZE
22750 #     ifndef CLSIZE
22751 #      define CLSIZE 1
22752 #     endif /* no CLSIZE */
22753 #    else /* no NBPG */
22754 #     ifdef NBPC
22755 #      define getpagesize() NBPC
22756 #     else /* no NBPC */
22757 #      ifdef PAGESIZE
22758 #       define getpagesize() PAGESIZE
22759 #      endif /* PAGESIZE */
22760 #     endif /* no NBPC */
22761 #    endif /* no NBPG */
22762 #   endif /* no EXEC_PAGESIZE */
22763 #  else /* no HAVE_SYS_PARAM_H */
22764 #   define getpagesize() 8192   /* punt totally */
22765 #  endif /* no HAVE_SYS_PARAM_H */
22766 # endif /* no _SC_PAGESIZE */
22767
22768 #endif /* no HAVE_GETPAGESIZE */
22769
22770 #ifdef __cplusplus
22771 extern "C" { void *malloc(unsigned); }
22772 #else
22773 char *malloc();
22774 #endif
22775
22776 int
22777 main()
22778 {
22779         char *data, *data2, *data3;
22780         int i, pagesize;
22781         int fd;
22782
22783         pagesize = getpagesize();
22784
22785         /*
22786          * First, make a file with some known garbage in it.
22787          */
22788         data = malloc(pagesize);
22789         if (!data)
22790                 exit(1);
22791         for (i = 0; i < pagesize; ++i)
22792                 *(data + i) = rand();
22793         umask(0);
22794         fd = creat("conftestmmap", 0600);
22795         if (fd < 0)
22796                 exit(1);
22797         if (write(fd, data, pagesize) != pagesize)
22798                 exit(1);
22799         close(fd);
22800
22801         /*
22802          * Next, try to mmap the file at a fixed address which
22803          * already has something else allocated at it.  If we can,
22804          * also make sure that we see the same garbage.
22805          */
22806         fd = open("conftestmmap", O_RDWR);
22807         if (fd < 0)
22808                 exit(1);
22809         data2 = malloc(2 * pagesize);
22810         if (!data2)
22811                 exit(1);
22812         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22813         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
22814             MAP_PRIVATE | MAP_FIXED, fd, 0L))
22815                 exit(1);
22816         for (i = 0; i < pagesize; ++i)
22817                 if (*(data + i) != *(data2 + i))
22818                         exit(1);
22819
22820         /*
22821          * Finally, make sure that changes to the mapped area
22822          * do not percolate back to the file as seen by read().
22823          * (This is a bug on some variants of i386 svr4.0.)
22824          */
22825         for (i = 0; i < pagesize; ++i)
22826                 *(data2 + i) = *(data2 + i) + 1;
22827         data3 = malloc(pagesize);
22828         if (!data3)
22829                 exit(1);
22830         if (read(fd, data3, pagesize) != pagesize)
22831                 exit(1);
22832         for (i = 0; i < pagesize; ++i)
22833                 if (*(data + i) != *(data3 + i))
22834                         exit(1);
22835         close(fd);
22836         unlink("conftestmmap");
22837         exit(0);
22838 }
22839
22840 EOF
22841 if { (eval echo configure:22842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22842 then
22843   ac_cv_func_mmap_fixed_mapped=yes
22844 else
22845   echo "configure: failed program was:" >&5
22846   cat conftest.$ac_ext >&5
22847   rm -fr conftest*
22848   ac_cv_func_mmap_fixed_mapped=no
22849 fi
22850 rm -fr conftest*
22851 fi
22852
22853 fi
22854
22855 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
22856 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22857   cat >> confdefs.h <<\EOF
22858 #define HAVE_MMAP 1
22859 EOF
22860
22861 fi
22862
22863
22864   # Establish limits on memory usage during 'make check'
22865   
22866   
22867   setrlimit_have_headers=yes
22868   for ac_hdr in unistd.h sys/time.h sys/resource.h
22869 do
22870 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22871 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22872 echo "configure:22873: checking for $ac_hdr" >&5
22873 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22874   echo $ac_n "(cached) $ac_c" 1>&6
22875 else
22876   cat > conftest.$ac_ext <<EOF
22877 #line 22878 "configure"
22878 #include "confdefs.h"
22879 #include <$ac_hdr>
22880 EOF
22881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22882 { (eval echo configure:22883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22884 if test -z "$ac_err"; then
22885   rm -rf conftest*
22886   eval "ac_cv_header_$ac_safe=yes"
22887 else
22888   echo "$ac_err" >&5
22889   echo "configure: failed program was:" >&5
22890   cat conftest.$ac_ext >&5
22891   rm -rf conftest*
22892   eval "ac_cv_header_$ac_safe=no"
22893 fi
22894 rm -f conftest*
22895 fi
22896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22897   echo "$ac_t""yes" 1>&6
22898     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22899   cat >> confdefs.h <<EOF
22900 #define $ac_tr_hdr 1
22901 EOF
22902  
22903 else
22904   echo "$ac_t""no" 1>&6
22905 setrlimit_have_headers=no
22906 fi
22907 done
22908
22909   # If don't have the headers, then we can't run the tests now, and we
22910   # won't be seeing any of these during testsuite compilation.
22911   if test $setrlimit_have_headers = yes; then
22912     # Can't do these in a loop, else the resulting syntax is wrong.
22913     
22914   cat > conftest.$ac_ext <<EOF
22915 #line 22916 "configure"
22916 #include "confdefs.h"
22917 #include <unistd.h>
22918                   #include <sys/time.h>
22919                   #include <sys/resource.h>
22920                  
22921 int main() {
22922  int f = RLIMIT_DATA ; 
22923 ; return 0; }
22924 EOF
22925 if { (eval echo configure:22926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22926   rm -rf conftest*
22927   glibcpp_mresult=1
22928 else
22929   echo "configure: failed program was:" >&5
22930   cat conftest.$ac_ext >&5
22931   rm -rf conftest*
22932   glibcpp_mresult=0
22933 fi
22934 rm -f conftest*
22935   cat >> confdefs.h <<EOF
22936 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
22937 EOF
22938
22939
22940     
22941   cat > conftest.$ac_ext <<EOF
22942 #line 22943 "configure"
22943 #include "confdefs.h"
22944 #include <unistd.h>
22945                   #include <sys/time.h>
22946                   #include <sys/resource.h>
22947                  
22948 int main() {
22949  int f = RLIMIT_RSS ; 
22950 ; return 0; }
22951 EOF
22952 if { (eval echo configure:22953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22953   rm -rf conftest*
22954   glibcpp_mresult=1
22955 else
22956   echo "configure: failed program was:" >&5
22957   cat conftest.$ac_ext >&5
22958   rm -rf conftest*
22959   glibcpp_mresult=0
22960 fi
22961 rm -f conftest*
22962   cat >> confdefs.h <<EOF
22963 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
22964 EOF
22965
22966
22967     
22968   cat > conftest.$ac_ext <<EOF
22969 #line 22970 "configure"
22970 #include "confdefs.h"
22971 #include <unistd.h>
22972                   #include <sys/time.h>
22973                   #include <sys/resource.h>
22974                  
22975 int main() {
22976  int f = RLIMIT_VMEM ; 
22977 ; return 0; }
22978 EOF
22979 if { (eval echo configure:22980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22980   rm -rf conftest*
22981   glibcpp_mresult=1
22982 else
22983   echo "configure: failed program was:" >&5
22984   cat conftest.$ac_ext >&5
22985   rm -rf conftest*
22986   glibcpp_mresult=0
22987 fi
22988 rm -f conftest*
22989   cat >> confdefs.h <<EOF
22990 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
22991 EOF
22992
22993
22994     
22995   cat > conftest.$ac_ext <<EOF
22996 #line 22997 "configure"
22997 #include "confdefs.h"
22998 #include <unistd.h>
22999                   #include <sys/time.h>
23000                   #include <sys/resource.h>
23001                  
23002 int main() {
23003  int f = RLIMIT_AS ; 
23004 ; return 0; }
23005 EOF
23006 if { (eval echo configure:23007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23007   rm -rf conftest*
23008   glibcpp_mresult=1
23009 else
23010   echo "configure: failed program was:" >&5
23011   cat conftest.$ac_ext >&5
23012   rm -rf conftest*
23013   glibcpp_mresult=0
23014 fi
23015 rm -f conftest*
23016   cat >> confdefs.h <<EOF
23017 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23018 EOF
23019
23020
23021
23022     # Check for rlimit, setrlimit.
23023     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23024   echo $ac_n "(cached) $ac_c" 1>&6
23025 else
23026   
23027       cat > conftest.$ac_ext <<EOF
23028 #line 23029 "configure"
23029 #include "confdefs.h"
23030 #include <unistd.h>
23031                   #include <sys/time.h>
23032                   #include <sys/resource.h>
23033                      
23034 int main() {
23035  struct rlimit r; setrlimit(0, &r);
23036 ; return 0; }
23037 EOF
23038 if { (eval echo configure:23039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23039   rm -rf conftest*
23040   ac_setrlimit=yes
23041 else
23042   echo "configure: failed program was:" >&5
23043   cat conftest.$ac_ext >&5
23044   rm -rf conftest*
23045   ac_setrlimit=no
23046 fi
23047 rm -f conftest*
23048     
23049 fi
23050
23051   fi
23052
23053   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23054 echo "configure:23055: checking for testsuite memory limit support" >&5
23055   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23056     ac_mem_limits=yes
23057     cat >> confdefs.h <<\EOF
23058 #define _GLIBCPP_MEM_LIMITS 1
23059 EOF
23060
23061   else
23062     ac_mem_limits=no
23063   fi
23064   echo "$ac_t""$ac_mem_limits" 1>&6
23065
23066
23067   # Look for setenv, so that extended locale tests can be performed.
23068   
23069   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23070 echo "configure:23071: checking for setenv declaration" >&5
23071   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23072     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23073   echo $ac_n "(cached) $ac_c" 1>&6
23074 else
23075   
23076       
23077       ac_ext=C
23078 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23079 ac_cpp='$CXXCPP $CPPFLAGS'
23080 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23081 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23082 cross_compiling=$ac_cv_prog_cxx_cross
23083
23084       cat > conftest.$ac_ext <<EOF
23085 #line 23086 "configure"
23086 #include "confdefs.h"
23087 #include <stdlib.h>
23088 int main() {
23089  setenv(0, 0, 0);
23090 ; return 0; }
23091 EOF
23092 if { (eval echo configure:23093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23093   rm -rf conftest*
23094   glibcpp_cv_func_setenv_use=yes
23095 else
23096   echo "configure: failed program was:" >&5
23097   cat conftest.$ac_ext >&5
23098   rm -rf conftest*
23099   glibcpp_cv_func_setenv_use=no
23100 fi
23101 rm -f conftest*
23102       ac_ext=c
23103 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23104 ac_cpp='$CPP $CPPFLAGS'
23105 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23106 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23107 cross_compiling=$ac_cv_prog_cc_cross
23108
23109     
23110 fi
23111
23112   fi
23113   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23114   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23115     for ac_func in setenv
23116 do
23117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23118 echo "configure:23119: checking for $ac_func" >&5
23119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23120   echo $ac_n "(cached) $ac_c" 1>&6
23121 else
23122   cat > conftest.$ac_ext <<EOF
23123 #line 23124 "configure"
23124 #include "confdefs.h"
23125 /* System header to define __stub macros and hopefully few prototypes,
23126     which can conflict with char $ac_func(); below.  */
23127 #include <assert.h>
23128 /* Override any gcc2 internal prototype to avoid an error.  */
23129 /* We use char because int might match the return type of a gcc2
23130     builtin and then its argument prototype would still apply.  */
23131 char $ac_func();
23132
23133 int main() {
23134
23135 /* The GNU C library defines this for functions which it implements
23136     to always fail with ENOSYS.  Some functions are actually named
23137     something starting with __ and the normal name is an alias.  */
23138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23139 choke me
23140 #else
23141 $ac_func();
23142 #endif
23143
23144 ; return 0; }
23145 EOF
23146 if { (eval echo configure:23147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23147   rm -rf conftest*
23148   eval "ac_cv_func_$ac_func=yes"
23149 else
23150   echo "configure: failed program was:" >&5
23151   cat conftest.$ac_ext >&5
23152   rm -rf conftest*
23153   eval "ac_cv_func_$ac_func=no"
23154 fi
23155 rm -f conftest*
23156 fi
23157
23158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23159   echo "$ac_t""yes" 1>&6
23160     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23161   cat >> confdefs.h <<EOF
23162 #define $ac_tr_func 1
23163 EOF
23164  
23165 else
23166   echo "$ac_t""no" 1>&6
23167 fi
23168 done
23169     
23170   fi
23171
23172
23173   # Export file names for ABI checking.
23174   baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
23175   
23176
23177   # Don't do ABI checking unless native.
23178   
23179
23180 if test x"$build" = x"$host" && test -z "$with_cross_host"; then
23181   GLIBCPP_BUILD_ABI_CHECK_TRUE=
23182   GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
23183 else
23184   GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
23185   GLIBCPP_BUILD_ABI_CHECK_FALSE=
23186 fi
23187
23188 fi
23189
23190 # This depends on the possibly-skipped linker test above.
23191 # Check whether --enable-symvers or --disable-symvers was given.
23192 if test "${enable_symvers+set}" = set; then
23193   enableval="$enable_symvers"
23194   case "$enableval" in
23195  yes) enable_symvers=yes ;;
23196  no)  enable_symvers=no ;;
23197  # other names here, just as sanity checks
23198  #gnu|sun|etcetera) enable_symvers=$enableval ;;
23199  gnu) enable_symvers=$enableval ;;
23200  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23201  esac
23202 else
23203   enable_symvers=yes
23204 fi
23205
23206 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23207 # don't know enough about $LD to do tricks... 
23208 if test x$enable_shared = xno || 
23209         test "x$LD" = x || 
23210         test x$glibcpp_gnu_ld_version = x; then
23211   enable_symvers=no
23212 fi
23213
23214 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23215 if test $enable_symvers != no; then
23216   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23217 echo "configure:23218: checking for shared libgcc" >&5
23218   ac_save_CFLAGS="$CFLAGS"
23219   CFLAGS=' -lgcc_s'
23220   cat > conftest.$ac_ext <<EOF
23221 #line 23222 "configure"
23222 #include "confdefs.h"
23223
23224 int main() {
23225 return 0
23226 ; return 0; }
23227 EOF
23228 if { (eval echo configure:23229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23229   rm -rf conftest*
23230   glibcpp_shared_libgcc=yes
23231 else
23232   echo "configure: failed program was:" >&5
23233   cat conftest.$ac_ext >&5
23234   rm -rf conftest*
23235   glibcpp_shared_libgcc=no
23236 fi
23237 rm -f conftest*
23238   CFLAGS="$ac_save_CFLAGS"
23239   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23240 fi
23241
23242 # For GNU ld, we need at least this version.  It's 2.12 in the same format
23243 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
23244 glibcpp_min_gnu_ld_version=21200
23245
23246 # Check to see if unspecified "yes" value can win, given results
23247 # above.  
23248 if test $enable_symvers = yes ; then
23249   if test $with_gnu_ld = yes &&
23250     test $glibcpp_shared_libgcc = yes ;
23251   then
23252     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23253         enable_symvers=gnu
23254     else
23255       ac_test_CFLAGS="${CFLAGS+set}"
23256       ac_save_CFLAGS="$CFLAGS"
23257       CFLAGS='-shared -Wl,--version-script,conftest.map'
23258       enable_symvers=no
23259       
23260       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23261       
23262       cat > conftest.$ac_ext <<EOF
23263 #line 23264 "configure"
23264 #include "confdefs.h"
23265 int foo;
23266 int main() {
23267
23268 ; return 0; }
23269 EOF
23270 if { (eval echo configure:23271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23271   rm -rf conftest*
23272   enable_symvers=gnu
23273 else
23274   echo "configure: failed program was:" >&5
23275   cat conftest.$ac_ext >&5
23276 fi
23277 rm -f conftest*
23278       if test "$ac_test_CFLAGS" = set; then
23279         CFLAGS="$ac_save_CFLAGS"
23280       else
23281         # this is the suspicious part
23282         CFLAGS=''
23283       fi
23284       rm -f conftest.map
23285     fi
23286   else
23287     # just fail for now
23288     enable_symvers=no
23289   fi
23290 fi
23291
23292 case $enable_symvers in
23293   no)
23294       LINKER_MAP=config/linker-map.dummy
23295       ;;
23296   gnu)
23297       LINKER_MAP=config/linker-map.gnu
23298       cat >> confdefs.h <<\EOF
23299 #define _GLIBCPP_SYMVER 1
23300 EOF
23301         
23302       ;;
23303 esac
23304
23305
23306
23307
23308 if test $enable_symvers != no; then
23309   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23310   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23311 else
23312   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23313   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23314 fi
23315 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23316 echo "configure:23317: checking versioning on shared library symbols" >&5
23317 echo "$ac_t""$enable_symvers" 1>&6
23318
23319
23320 # Propagate the target-specific source directories through the build chain.
23321 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH 
23322 # uses it, and they only get used here.)
23323 OS_INC_SRCDIR=config/${os_include_dir}
23324 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23325
23326
23327
23328 # Set up cross-compile flags
23329   
23330
23331 if test "$CANADIAN" = yes; then
23332   CANADIAN_TRUE=
23333   CANADIAN_FALSE='#'
23334 else
23335   CANADIAN_TRUE='#'
23336   CANADIAN_FALSE=
23337 fi
23338  
23339 cat > confcache <<\EOF
23340 # This file is a shell script that caches the results of configure
23341 # tests run on this system so they can be shared between configure
23342 # scripts and configure runs.  It is not useful on other systems.
23343 # If it contains results you don't want to keep, you may remove or edit it.
23344 #
23345 # By default, configure uses ./config.cache as the cache file,
23346 # creating it if it does not exist already.  You can give configure
23347 # the --cache-file=FILE option to use a different cache file; that is
23348 # what configure does when it calls configure scripts in
23349 # subdirectories, so they share the cache.
23350 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23351 # config.status only pays attention to the cache file if you give it the
23352 # --recheck option to rerun configure.
23353 #
23354 EOF
23355 # The following way of writing the cache mishandles newlines in values,
23356 # but we know of no workaround that is simple, portable, and efficient.
23357 # So, don't put newlines in cache variables' values.
23358 # Ultrix sh set writes to stderr and can't be redirected directly,
23359 # and sets the high bit in the cache file unless we assign to the vars.
23360 (set) 2>&1 |
23361   case `(ac_space=' '; set | grep ac_space) 2>&1` in
23362   *ac_space=\ *)
23363     # `set' does not quote correctly, so add quotes (double-quote substitution
23364     # turns \\\\ into \\, and sed turns \\ into \).
23365     sed -n \
23366       -e "s/'/'\\\\''/g" \
23367       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23368     ;;
23369   *)
23370     # `set' quotes correctly as required by POSIX, so do not add quotes.
23371     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23372     ;;
23373   esac >> confcache
23374 if cmp -s $cache_file confcache; then
23375   :
23376 else
23377   if test -w $cache_file; then
23378     echo "updating cache $cache_file"
23379     cat confcache > $cache_file
23380   else
23381     echo "not updating unwritable cache $cache_file"
23382   fi
23383 fi
23384 rm -f confcache
23385
23386
23387 if test "${multilib}" = "yes"; then
23388   multilib_arg="--enable-multilib"
23389 else
23390   multilib_arg=
23391 fi
23392
23393 # Export all the install information
23394
23395 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23396 # exported correctly in GLIBCPP_CONFIGURE.
23397 glibcpp_toolexecdir=no
23398 glibcpp_toolexeclibdir=no
23399 glibcpp_prefixdir=${prefix}
23400
23401 # Process the option --with-gxx-include-dir=<path to include-files directory>
23402 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23403 echo "configure:23404: checking for --with-gxx-include-dir" >&5
23404 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23405 if test "${with_gxx_include_dir+set}" = set; then
23406   withval="$with_gxx_include_dir"
23407   case "${withval}" in
23408   yes)
23409     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23410     gxx_include_dir=no
23411     ;;
23412   no)
23413     gxx_include_dir=no
23414     ;;
23415   *)
23416     gxx_include_dir=${withval}
23417     ;;
23418 esac
23419 else
23420   gxx_include_dir=no
23421 fi
23422
23423 echo "$ac_t""$gxx_include_dir" 1>&6
23424
23425 # Process the option "--enable-version-specific-runtime-libs"
23426 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23427 echo "configure:23428: checking for --enable-version-specific-runtime-libs" >&5
23428 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23429 if test "${enable_version_specific_runtime_libs+set}" = set; then
23430   enableval="$enable_version_specific_runtime_libs"
23431   case "$enableval" in
23432  yes) version_specific_libs=yes ;;
23433  no)  version_specific_libs=no ;;
23434  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23435  esac
23436 else
23437   version_specific_libs=no
23438 fi
23439 # Option set, now we can test it.
23440 echo "$ac_t""$version_specific_libs" 1>&6
23441
23442 # Default case for install directory for include files.
23443 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23444   gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23445 fi
23446
23447 # Version-specific runtime libs processing.
23448 if test $version_specific_libs = yes; then
23449   # Need the gcc compiler version to know where to install libraries
23450   # and header files if --enable-version-specific-runtime-libs option
23451   # is selected.
23452   if test x"$gxx_include_dir" = x"no"; then
23453     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23454   fi
23455   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23456   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23457 fi
23458
23459 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
23460 # Install a library built with a cross compiler in tooldir, not libdir.
23461 if test x"$glibcpp_toolexecdir" = x"no"; then 
23462   if test -n "$with_cross_host" &&
23463      test x"$with_cross_host" != x"no"; then
23464     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
23465     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
23466   else
23467     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23468     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
23469   fi
23470 fi
23471
23472 echo $ac_n "checking for install location""... $ac_c" 1>&6
23473 echo "configure:23474: checking for install location" >&5
23474 echo "$ac_t""$gxx_include_dir" 1>&6
23475
23476
23477
23478
23479
23480
23481
23482 # Export all the include and flag information to makefiles.
23483
23484   # Root level of the build directory include sources.
23485   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
23486
23487   # Passed down for canadian crosses.
23488   if test x"$CANADIAN" = xyes; then
23489     TOPLEVEL_INCLUDES='-I$(includedir)'
23490   fi
23491
23492   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23493
23494   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23495
23496   if test x"$need_libio" = xyes; then
23497     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
23498     
23499   fi
23500
23501   # Now, export this to all the little Makefiles....
23502   
23503   
23504   
23505   
23506
23507
23508   # Optimization flags that are probably a good idea for thrill-seekers. Just
23509   # uncomment the lines below and make, everything else is ready to go... 
23510   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
23511   OPTIMIZE_CXXFLAGS=
23512   
23513
23514   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
23515   
23516
23517
23518 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23519    grep "enable shared" > /dev/null; then
23520   LIBSUPCXX_PICFLAGS=-prefer-pic
23521 else
23522   LIBSUPCXX_PICFLAGS=
23523 fi
23524
23525
23526 # Generate the various Makefiles, include files, and scripts.
23527 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
23528 # and libsupc++/Makefile.am so that multilib installs will end up
23529 # installed in the correct place. To work around this not being passed
23530 # down from config-ml.in -> top_srcdir/Makefile.am ->
23531 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
23532 trap '' 1 2 15
23533 cat > confcache <<\EOF
23534 # This file is a shell script that caches the results of configure
23535 # tests run on this system so they can be shared between configure
23536 # scripts and configure runs.  It is not useful on other systems.
23537 # If it contains results you don't want to keep, you may remove or edit it.
23538 #
23539 # By default, configure uses ./config.cache as the cache file,
23540 # creating it if it does not exist already.  You can give configure
23541 # the --cache-file=FILE option to use a different cache file; that is
23542 # what configure does when it calls configure scripts in
23543 # subdirectories, so they share the cache.
23544 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23545 # config.status only pays attention to the cache file if you give it the
23546 # --recheck option to rerun configure.
23547 #
23548 EOF
23549 # The following way of writing the cache mishandles newlines in values,
23550 # but we know of no workaround that is simple, portable, and efficient.
23551 # So, don't put newlines in cache variables' values.
23552 # Ultrix sh set writes to stderr and can't be redirected directly,
23553 # and sets the high bit in the cache file unless we assign to the vars.
23554 (set) 2>&1 |
23555   case `(ac_space=' '; set | grep ac_space) 2>&1` in
23556   *ac_space=\ *)
23557     # `set' does not quote correctly, so add quotes (double-quote substitution
23558     # turns \\\\ into \\, and sed turns \\ into \).
23559     sed -n \
23560       -e "s/'/'\\\\''/g" \
23561       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23562     ;;
23563   *)
23564     # `set' quotes correctly as required by POSIX, so do not add quotes.
23565     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23566     ;;
23567   esac >> confcache
23568 if cmp -s $cache_file confcache; then
23569   :
23570 else
23571   if test -w $cache_file; then
23572     echo "updating cache $cache_file"
23573     cat confcache > $cache_file
23574   else
23575     echo "not updating unwritable cache $cache_file"
23576   fi
23577 fi
23578 rm -f confcache
23579
23580 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23581
23582 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23583 # Let make expand exec_prefix.
23584 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23585
23586 # Any assignment to VPATH causes Sun make to only execute
23587 # the first set of double-colon rules, so remove it if not needed.
23588 # If there is a colon in the path, we need to keep it.
23589 if test "x$srcdir" = x.; then
23590   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
23591 fi
23592
23593 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23594
23595 DEFS=-DHAVE_CONFIG_H
23596
23597 # Without the "./", some shells look in PATH for config.status.
23598 : ${CONFIG_STATUS=./config.status}
23599
23600 echo creating $CONFIG_STATUS
23601 rm -f $CONFIG_STATUS
23602 cat > $CONFIG_STATUS <<EOF
23603 #! /bin/sh
23604 # Generated automatically by configure.
23605 # Run this file to recreate the current configuration.
23606 # This directory was configured as follows,
23607 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23608 #
23609 # $0 $ac_configure_args
23610 #
23611 # Compiler output produced by configure, useful for debugging
23612 # configure, is in ./config.log if it exists.
23613
23614 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23615 for ac_option
23616 do
23617   case "\$ac_option" in
23618   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23619     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23620     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23621   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23622     echo "$CONFIG_STATUS generated by autoconf version 2.13"
23623     exit 0 ;;
23624   -help | --help | --hel | --he | --h)
23625     echo "\$ac_cs_usage"; exit 0 ;;
23626   *) echo "\$ac_cs_usage"; exit 1 ;;
23627   esac
23628 done
23629
23630 ac_given_srcdir=$srcdir
23631 ac_given_INSTALL="$INSTALL"
23632
23633 trap 'rm -fr `echo "Makefile \
23634     include/Makefile src/Makefile \
23635     libmath/Makefile libio/Makefile libsupc++/Makefile \
23636     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23637 EOF
23638 cat >> $CONFIG_STATUS <<EOF
23639
23640 # Protect against being on the right side of a sed subst in config.status.
23641 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23642  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23643 $ac_vpsub
23644 $extrasub
23645 s%@SHELL@%$SHELL%g
23646 s%@CFLAGS@%$CFLAGS%g
23647 s%@CPPFLAGS@%$CPPFLAGS%g
23648 s%@CXXFLAGS@%$CXXFLAGS%g
23649 s%@FFLAGS@%$FFLAGS%g
23650 s%@DEFS@%$DEFS%g
23651 s%@LDFLAGS@%$LDFLAGS%g
23652 s%@LIBS@%$LIBS%g
23653 s%@exec_prefix@%$exec_prefix%g
23654 s%@prefix@%$prefix%g
23655 s%@program_transform_name@%$program_transform_name%g
23656 s%@bindir@%$bindir%g
23657 s%@sbindir@%$sbindir%g
23658 s%@libexecdir@%$libexecdir%g
23659 s%@datadir@%$datadir%g
23660 s%@sysconfdir@%$sysconfdir%g
23661 s%@sharedstatedir@%$sharedstatedir%g
23662 s%@localstatedir@%$localstatedir%g
23663 s%@libdir@%$libdir%g
23664 s%@includedir@%$includedir%g
23665 s%@oldincludedir@%$oldincludedir%g
23666 s%@infodir@%$infodir%g
23667 s%@mandir@%$mandir%g
23668 s%@PACKAGE@%$PACKAGE%g
23669 s%@libtool_VERSION@%$libtool_VERSION%g
23670 s%@toplevel_srcdir@%$toplevel_srcdir%g
23671 s%@host@%$host%g
23672 s%@host_alias@%$host_alias%g
23673 s%@host_cpu@%$host_cpu%g
23674 s%@host_vendor@%$host_vendor%g
23675 s%@host_os@%$host_os%g
23676 s%@target@%$target%g
23677 s%@target_alias@%$target_alias%g
23678 s%@target_cpu@%$target_cpu%g
23679 s%@target_vendor@%$target_vendor%g
23680 s%@target_os@%$target_os%g
23681 s%@build@%$build%g
23682 s%@build_alias@%$build_alias%g
23683 s%@build_cpu@%$build_cpu%g
23684 s%@build_vendor@%$build_vendor%g
23685 s%@build_os@%$build_os%g
23686 s%@glibcpp_builddir@%$glibcpp_builddir%g
23687 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
23688 s%@AWK@%$AWK%g
23689 s%@LN_S@%$LN_S%g
23690 s%@glibcpp_basedir@%$glibcpp_basedir%g
23691 s%@CC@%$CC%g
23692 s%@glibcpp_CXX@%$glibcpp_CXX%g
23693 s%@AS@%$AS%g
23694 s%@AR@%$AR%g
23695 s%@RANLIB@%$RANLIB%g
23696 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23697 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23698 s%@INSTALL_DATA@%$INSTALL_DATA%g
23699 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
23700 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
23701 s%@MAINT@%$MAINT%g
23702 s%@EXEEXT@%$EXEEXT%g
23703 s%@VERSION@%$VERSION%g
23704 s%@ACLOCAL@%$ACLOCAL%g
23705 s%@AUTOCONF@%$AUTOCONF%g
23706 s%@AUTOMAKE@%$AUTOMAKE%g
23707 s%@AUTOHEADER@%$AUTOHEADER%g
23708 s%@MAKEINFO@%$MAKEINFO%g
23709 s%@SET_MAKE@%$SET_MAKE%g
23710 s%@OBJEXT@%$OBJEXT%g
23711 s%@STRIP@%$STRIP%g
23712 s%@LIBTOOL@%$LIBTOOL%g
23713 s%@CXXCPP@%$CXXCPP%g
23714 s%@enable_shared@%$enable_shared%g
23715 s%@enable_static@%$enable_static%g
23716 s%@ifGNUmake@%$ifGNUmake%g
23717 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
23718 s%@CPP@%$CPP%g
23719 s%@CSTDIO_H@%$CSTDIO_H%g
23720 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
23721 s%@CCODECVT_C@%$CCODECVT_C%g
23722 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
23723 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
23724 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
23725 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
23726 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
23727 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
23728 s%@libio_la@%$libio_la%g
23729 s%@check_msgfmt@%$check_msgfmt%g
23730 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
23731 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
23732 s%@glibcpp_localedir@%$glibcpp_localedir%g
23733 s%@USE_NLS@%$USE_NLS%g
23734 s%@CLOCALE_H@%$CLOCALE_H%g
23735 s%@CCODECVT_H@%$CCODECVT_H%g
23736 s%@CMESSAGES_H@%$CMESSAGES_H%g
23737 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
23738 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
23739 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
23740 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
23741 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
23742 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
23743 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
23744 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
23745 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
23746 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
23747 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
23748 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
23749 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
23750 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
23751 s%@WERROR@%$WERROR%g
23752 s%@baseline_file@%$baseline_file%g
23753 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
23754 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
23755 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
23756 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
23757 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
23758 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
23759 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
23760 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
23761 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
23762 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
23763 s%@gxx_include_dir@%$gxx_include_dir%g
23764 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
23765 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
23766 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
23767 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
23768 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
23769 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
23770 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
23771 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
23772 s%@WARN_FLAGS@%$WARN_FLAGS%g
23773 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
23774
23775 CEOF
23776 EOF
23777
23778 cat >> $CONFIG_STATUS <<\EOF
23779
23780 # Split the substitutions into bite-sized pieces for seds with
23781 # small command number limits, like on Digital OSF/1 and HP-UX.
23782 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23783 ac_file=1 # Number of current file.
23784 ac_beg=1 # First line for current file.
23785 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23786 ac_more_lines=:
23787 ac_sed_cmds=""
23788 while $ac_more_lines; do
23789   if test $ac_beg -gt 1; then
23790     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23791   else
23792     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23793   fi
23794   if test ! -s conftest.s$ac_file; then
23795     ac_more_lines=false
23796     rm -f conftest.s$ac_file
23797   else
23798     if test -z "$ac_sed_cmds"; then
23799       ac_sed_cmds="sed -f conftest.s$ac_file"
23800     else
23801       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23802     fi
23803     ac_file=`expr $ac_file + 1`
23804     ac_beg=$ac_end
23805     ac_end=`expr $ac_end + $ac_max_sed_cmds`
23806   fi
23807 done
23808 if test -z "$ac_sed_cmds"; then
23809   ac_sed_cmds=cat
23810 fi
23811 EOF
23812
23813 cat >> $CONFIG_STATUS <<EOF
23814
23815 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
23816     include/Makefile src/Makefile \
23817     libmath/Makefile libio/Makefile libsupc++/Makefile \
23818     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
23819 EOF
23820 cat >> $CONFIG_STATUS <<\EOF
23821 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23822   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23823   case "$ac_file" in
23824   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23825        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23826   *) ac_file_in="${ac_file}.in" ;;
23827   esac
23828
23829   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23830
23831   # Remove last slash and all that follows it.  Not all systems have dirname.
23832   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23833   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23834     # The file is in a subdirectory.
23835     test ! -d "$ac_dir" && mkdir "$ac_dir"
23836     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23837     # A "../" for each directory in $ac_dir_suffix.
23838     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23839   else
23840     ac_dir_suffix= ac_dots=
23841   fi
23842
23843   case "$ac_given_srcdir" in
23844   .)  srcdir=.
23845       if test -z "$ac_dots"; then top_srcdir=.
23846       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23847   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23848   *) # Relative path.
23849     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23850     top_srcdir="$ac_dots$ac_given_srcdir" ;;
23851   esac
23852
23853   case "$ac_given_INSTALL" in
23854   [/$]*) INSTALL="$ac_given_INSTALL" ;;
23855   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23856   esac
23857
23858   echo creating "$ac_file"
23859   rm -f "$ac_file"
23860   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23861   case "$ac_file" in
23862   *Makefile*) ac_comsub="1i\\
23863 # $configure_input" ;;
23864   *) ac_comsub= ;;
23865   esac
23866
23867   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23868   sed -e "$ac_comsub
23869 s%@configure_input@%$configure_input%g
23870 s%@srcdir@%$srcdir%g
23871 s%@top_srcdir@%$top_srcdir%g
23872 s%@INSTALL@%$INSTALL%g
23873 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23874 fi; done
23875 rm -f conftest.s*
23876
23877 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23878 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23879 #
23880 # ac_d sets the value in "#define NAME VALUE" lines.
23881 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
23882 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
23883 ac_dC='\3'
23884 ac_dD='%g'
23885 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23886 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23887 ac_uB='\([      ]\)%\1#\2define\3'
23888 ac_uC=' '
23889 ac_uD='\4%g'
23890 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23891 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23892 ac_eB='$%\1#\2define\3'
23893 ac_eC=' '
23894 ac_eD='%g'
23895
23896 if test "${CONFIG_HEADERS+set}" != set; then
23897 EOF
23898 cat >> $CONFIG_STATUS <<EOF
23899   CONFIG_HEADERS="config.h"
23900 EOF
23901 cat >> $CONFIG_STATUS <<\EOF
23902 fi
23903 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23904   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23905   case "$ac_file" in
23906   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23907        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23908   *) ac_file_in="${ac_file}.in" ;;
23909   esac
23910
23911   echo creating $ac_file
23912
23913   rm -f conftest.frag conftest.in conftest.out
23914   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23915   cat $ac_file_inputs > conftest.in
23916
23917 EOF
23918
23919 # Transform confdefs.h into a sed script conftest.vals that substitutes
23920 # the proper values into config.h.in to produce config.h.  And first:
23921 # Protect against being on the right side of a sed subst in config.status.
23922 # Protect against being in an unquoted here document in config.status.
23923 rm -f conftest.vals
23924 cat > conftest.hdr <<\EOF
23925 s/[\\&%]/\\&/g
23926 s%[\\$`]%\\&%g
23927 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23928 s%ac_d%ac_u%gp
23929 s%ac_u%ac_e%gp
23930 EOF
23931 sed -n -f conftest.hdr confdefs.h > conftest.vals
23932 rm -f conftest.hdr
23933
23934 # This sed command replaces #undef with comments.  This is necessary, for
23935 # example, in the case of _POSIX_SOURCE, which is predefined and required
23936 # on some systems where configure will not decide to define it.
23937 cat >> conftest.vals <<\EOF
23938 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23939 EOF
23940
23941 # Break up conftest.vals because some shells have a limit on
23942 # the size of here documents, and old seds have small limits too.
23943
23944 rm -f conftest.tail
23945 while :
23946 do
23947   ac_lines=`grep -c . conftest.vals`
23948   # grep -c gives empty output for an empty file on some AIX systems.
23949   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23950   # Write a limited-size here document to conftest.frag.
23951   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23952   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23953   echo 'CEOF
23954   sed -f conftest.frag conftest.in > conftest.out
23955   rm -f conftest.in
23956   mv conftest.out conftest.in
23957 ' >> $CONFIG_STATUS
23958   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23959   rm -f conftest.vals
23960   mv conftest.tail conftest.vals
23961 done
23962 rm -f conftest.vals
23963
23964 cat >> $CONFIG_STATUS <<\EOF
23965   rm -f conftest.frag conftest.h
23966   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
23967   cat conftest.in >> conftest.h
23968   rm -f conftest.in
23969   if cmp -s $ac_file conftest.h 2>/dev/null; then
23970     echo "$ac_file is unchanged"
23971     rm -f conftest.h
23972   else
23973     # Remove last slash and all that follows it.  Not all systems have dirname.
23974       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23975       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23976       # The file is in a subdirectory.
23977       test ! -d "$ac_dir" && mkdir "$ac_dir"
23978     fi
23979     rm -f $ac_file
23980     mv conftest.h $ac_file
23981   fi
23982 fi; done
23983
23984 EOF
23985
23986 cat >> $CONFIG_STATUS <<EOF
23987 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCODECVT_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $CLOCALE_INTERNAL_H $LINKER_MAP"
23988 ac_dests="src/basic_file.cc src/c++locale.cc src/codecvt_members.cc src/collate_members.cc src/ctype_members.cc src/messages_members.cc src/monetary_members.cc src/numeric_members.cc src/time_members.cc src/c++locale_internal.h src/linker.map"
23989 EOF
23990
23991 cat >> $CONFIG_STATUS <<\EOF
23992 srcdir=$ac_given_srcdir
23993 while test -n "$ac_sources"; do
23994   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
23995   set $ac_sources; ac_source=$1; shift; ac_sources=$*
23996
23997   echo "linking $srcdir/$ac_source to $ac_dest"
23998
23999   if test ! -r $srcdir/$ac_source; then
24000     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
24001   fi
24002   rm -f $ac_dest
24003
24004   # Make relative symlinks.
24005   # Remove last slash and all that follows it.  Not all systems have dirname.
24006   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
24007   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
24008     # The dest file is in a subdirectory.
24009     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
24010     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
24011     # A "../" for each directory in $ac_dest_dir_suffix.
24012     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
24013   else
24014     ac_dest_dir_suffix= ac_dots=
24015   fi
24016
24017   case "$srcdir" in
24018   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
24019   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
24020   esac
24021
24022   # Make a symlink if possible; otherwise try a hard link.
24023   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24024     ln $srcdir/$ac_source $ac_dest; then :
24025   else
24026     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
24027   fi
24028 done
24029 EOF
24030 cat >> $CONFIG_STATUS <<EOF
24031
24032 srcdir=${srcdir}
24033 host=${host}
24034 target=${target}
24035 with_multisubdir=${with_multisubdir}
24036 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24037 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24038 glibcpp_basedir=${glibcpp_basedir}
24039 CC="${CC}"
24040 CXX="${CXX}"
24041
24042 EOF
24043 cat >> $CONFIG_STATUS <<\EOF
24044 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24045 if test -n "$CONFIG_FILES"; then
24046   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24047   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24048   grep '^MULTISUBDIR =' Makefile >> src/Makefile
24049   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24050 fi
24051 chmod +x mkcheck
24052 chmod +x testsuite_flags
24053
24054 exit 0
24055 EOF
24056 chmod +x $CONFIG_STATUS
24057 rm -fr confdefs* $ac_clean_files
24058 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24059
24060
24061
24062 # Sanity checking & User-visible messages.
24063 # Checks down here, otherwise they get scrolled off before
24064 # the user will notice.
24065
24066 # Trying to get more people to read documentation.  Possibly remove
24067 # check and warn all the time. There is no "informational" AC_MSG_
24068 # macro, so these are going to be printed even when --quiet/--silent
24069 # is given.
24070 if test ! -f stamp-sanity-warned; then
24071   touch stamp-sanity-warned
24072   echo ""
24073   echo "Please make certain that you read the installation information here:"
24074   echo "  faster => ${srcdir}/docs/html/install.html"
24075   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24076   echo ""
24077   echo "and the configuration information here:"
24078   echo "  faster => ${srcdir}/docs/html/configopts.html"
24079   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24080   echo ""
24081   echo "before proceeding with ${_cv_gnu_make_command}."
24082   echo ""
24083 fi