Makefile.am: Add rules.
[platform/upstream/gcc.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-multilib       build hella library versions (default)"
16 ac_help="$ac_help
17   --with-target-subdir=SUBDIR
18                           configuring in a subdirectory"
19 ac_help="$ac_help
20   --with-cross-host=HOST  configuring with a cross compiler"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio         enable stdio for target io package. 
40   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale        enable model for target locale package. 
44   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-nls            use Native Language Support (default)"
48 ac_help="$ac_help
49   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
50 ac_help="$ac_help
51   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
52 ac_help="$ac_help
53   --enable-long-long      turns on 'long long' [default=yes]"
54 ac_help="$ac_help
55   --enable-cheaders       construct "C" header files for g++ [default=c_std]"
56 ac_help="$ac_help
57   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
58                                 [default=none]"
59 ac_help="$ac_help
60   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
61 ac_help="$ac_help
62   --enable-libunwind-exceptions  force use of libunwind for exceptions"
63 ac_help="$ac_help
64   --enable-concept-checks use Boost-derived template checks [default=no]"
65 ac_help="$ac_help
66   --enable-symvers=style  enables symbol versioning of the shared library [default=yes]"
67 ac_help="$ac_help
68   --with-gxx-include-dir  the installation directory for include files"
69 ac_help="$ac_help
70   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
71
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
75 build=NONE
76 cache_file=./config.cache
77 exec_prefix=NONE
78 host=NONE
79 no_create=
80 nonopt=NONE
81 no_recursion=
82 prefix=NONE
83 program_prefix=NONE
84 program_suffix=NONE
85 program_transform_name=s,x,x,
86 silent=
87 site=
88 srcdir=
89 target=NONE
90 verbose=
91 x_includes=NONE
92 x_libraries=NONE
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 infodir='${prefix}/info'
104 mandir='${prefix}/man'
105
106 # Initialize some other variables.
107 subdirs=
108 MFLAGS= MAKEFLAGS=
109 SHELL=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
111 ac_max_here_lines=12
112
113 ac_prev=
114 for ac_option
115 do
116
117   # If the previous option needs an argument, assign it.
118   if test -n "$ac_prev"; then
119     eval "$ac_prev=\$ac_option"
120     ac_prev=
121     continue
122   fi
123
124   case "$ac_option" in
125   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126   *) ac_optarg= ;;
127   esac
128
129   # Accept the important Cygnus configure options, so we can diagnose typos.
130
131   case "$ac_option" in
132
133   -bindir | --bindir | --bindi | --bind | --bin | --bi)
134     ac_prev=bindir ;;
135   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136     bindir="$ac_optarg" ;;
137
138   -build | --build | --buil | --bui | --bu)
139     ac_prev=build ;;
140   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141     build="$ac_optarg" ;;
142
143   -cache-file | --cache-file | --cache-fil | --cache-fi \
144   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145     ac_prev=cache_file ;;
146   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148     cache_file="$ac_optarg" ;;
149
150   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151     ac_prev=datadir ;;
152   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153   | --da=*)
154     datadir="$ac_optarg" ;;
155
156   -disable-* | --disable-*)
157     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158     # Reject names that are not valid shell variable names.
159     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161     fi
162     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163     eval "enable_${ac_feature}=no" ;;
164
165   -enable-* | --enable-*)
166     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167     # Reject names that are not valid shell variable names.
168     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170     fi
171     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172     case "$ac_option" in
173       *=*) ;;
174       *) ac_optarg=yes ;;
175     esac
176     eval "enable_${ac_feature}='$ac_optarg'" ;;
177
178   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180   | --exec | --exe | --ex)
181     ac_prev=exec_prefix ;;
182   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184   | --exec=* | --exe=* | --ex=*)
185     exec_prefix="$ac_optarg" ;;
186
187   -gas | --gas | --ga | --g)
188     # Obsolete; use --with-gas.
189     with_gas=yes ;;
190
191   -help | --help | --hel | --he)
192     # Omit some internal or obsolete options to make the list less imposing.
193     # This message is too long to be a string in the A/UX 3.1 sh.
194     cat << EOF
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
197 Configuration:
198   --cache-file=FILE       cache test results in FILE
199   --help                  print this message
200   --no-create             do not create output files
201   --quiet, --silent       do not print \`checking...' messages
202   --version               print the version of autoconf that created configure
203 Directory and file names:
204   --prefix=PREFIX         install architecture-independent files in PREFIX
205                           [$ac_default_prefix]
206   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
207                           [same as prefix]
208   --bindir=DIR            user executables in DIR [EPREFIX/bin]
209   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
210   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
211   --datadir=DIR           read-only architecture-independent data in DIR
212                           [PREFIX/share]
213   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
214   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
215                           [PREFIX/com]
216   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
217   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
218   --includedir=DIR        C header files in DIR [PREFIX/include]
219   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
220   --infodir=DIR           info documentation in DIR [PREFIX/info]
221   --mandir=DIR            man documentation in DIR [PREFIX/man]
222   --srcdir=DIR            find the sources in DIR [configure dir or ..]
223   --program-prefix=PREFIX prepend PREFIX to installed program names
224   --program-suffix=SUFFIX append SUFFIX to installed program names
225   --program-transform-name=PROGRAM
226                           run sed PROGRAM on installed program names
227 EOF
228     cat << EOF
229 Host type:
230   --build=BUILD           configure for building on BUILD [BUILD=HOST]
231   --host=HOST             configure for HOST [guessed]
232   --target=TARGET         configure for TARGET [TARGET=HOST]
233 Features and packages:
234   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
235   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
236   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
237   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
238   --x-includes=DIR        X include files are in DIR
239   --x-libraries=DIR       X library files are in DIR
240 EOF
241     if test -n "$ac_help"; then
242       echo "--enable and --with options recognized:$ac_help"
243     fi
244     exit 0 ;;
245
246   -host | --host | --hos | --ho)
247     ac_prev=host ;;
248   -host=* | --host=* | --hos=* | --ho=*)
249     host="$ac_optarg" ;;
250
251   -includedir | --includedir | --includedi | --included | --include \
252   | --includ | --inclu | --incl | --inc)
253     ac_prev=includedir ;;
254   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255   | --includ=* | --inclu=* | --incl=* | --inc=*)
256     includedir="$ac_optarg" ;;
257
258   -infodir | --infodir | --infodi | --infod | --info | --inf)
259     ac_prev=infodir ;;
260   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261     infodir="$ac_optarg" ;;
262
263   -libdir | --libdir | --libdi | --libd)
264     ac_prev=libdir ;;
265   -libdir=* | --libdir=* | --libdi=* | --libd=*)
266     libdir="$ac_optarg" ;;
267
268   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269   | --libexe | --libex | --libe)
270     ac_prev=libexecdir ;;
271   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272   | --libexe=* | --libex=* | --libe=*)
273     libexecdir="$ac_optarg" ;;
274
275   -localstatedir | --localstatedir | --localstatedi | --localstated \
276   | --localstate | --localstat | --localsta | --localst \
277   | --locals | --local | --loca | --loc | --lo)
278     ac_prev=localstatedir ;;
279   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282     localstatedir="$ac_optarg" ;;
283
284   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285     ac_prev=mandir ;;
286   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287     mandir="$ac_optarg" ;;
288
289   -nfp | --nfp | --nf)
290     # Obsolete; use --without-fp.
291     with_fp=no ;;
292
293   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294   | --no-cr | --no-c)
295     no_create=yes ;;
296
297   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299     no_recursion=yes ;;
300
301   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303   | --oldin | --oldi | --old | --ol | --o)
304     ac_prev=oldincludedir ;;
305   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308     oldincludedir="$ac_optarg" ;;
309
310   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311     ac_prev=prefix ;;
312   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313     prefix="$ac_optarg" ;;
314
315   -program-prefix | --program-prefix | --program-prefi | --program-pref \
316   | --program-pre | --program-pr | --program-p)
317     ac_prev=program_prefix ;;
318   -program-prefix=* | --program-prefix=* | --program-prefi=* \
319   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320     program_prefix="$ac_optarg" ;;
321
322   -program-suffix | --program-suffix | --program-suffi | --program-suff \
323   | --program-suf | --program-su | --program-s)
324     ac_prev=program_suffix ;;
325   -program-suffix=* | --program-suffix=* | --program-suffi=* \
326   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327     program_suffix="$ac_optarg" ;;
328
329   -program-transform-name | --program-transform-name \
330   | --program-transform-nam | --program-transform-na \
331   | --program-transform-n | --program-transform- \
332   | --program-transform | --program-transfor \
333   | --program-transfo | --program-transf \
334   | --program-trans | --program-tran \
335   | --progr-tra | --program-tr | --program-t)
336     ac_prev=program_transform_name ;;
337   -program-transform-name=* | --program-transform-name=* \
338   | --program-transform-nam=* | --program-transform-na=* \
339   | --program-transform-n=* | --program-transform-=* \
340   | --program-transform=* | --program-transfor=* \
341   | --program-transfo=* | --program-transf=* \
342   | --program-trans=* | --program-tran=* \
343   | --progr-tra=* | --program-tr=* | --program-t=*)
344     program_transform_name="$ac_optarg" ;;
345
346   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347   | -silent | --silent | --silen | --sile | --sil)
348     silent=yes ;;
349
350   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351     ac_prev=sbindir ;;
352   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353   | --sbi=* | --sb=*)
354     sbindir="$ac_optarg" ;;
355
356   -sharedstatedir | --sharedstatedir | --sharedstatedi \
357   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358   | --sharedst | --shareds | --shared | --share | --shar \
359   | --sha | --sh)
360     ac_prev=sharedstatedir ;;
361   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364   | --sha=* | --sh=*)
365     sharedstatedir="$ac_optarg" ;;
366
367   -site | --site | --sit)
368     ac_prev=site ;;
369   -site=* | --site=* | --sit=*)
370     site="$ac_optarg" ;;
371
372   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373     ac_prev=srcdir ;;
374   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375     srcdir="$ac_optarg" ;;
376
377   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378   | --syscon | --sysco | --sysc | --sys | --sy)
379     ac_prev=sysconfdir ;;
380   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382     sysconfdir="$ac_optarg" ;;
383
384   -target | --target | --targe | --targ | --tar | --ta | --t)
385     ac_prev=target ;;
386   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387     target="$ac_optarg" ;;
388
389   -v | -verbose | --verbose | --verbos | --verbo | --verb)
390     verbose=yes ;;
391
392   -version | --version | --versio | --versi | --vers)
393     echo "configure generated by autoconf version 2.13"
394     exit 0 ;;
395
396   -with-* | --with-*)
397     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398     # Reject names that are not valid shell variable names.
399     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401     fi
402     ac_package=`echo $ac_package| sed 's/-/_/g'`
403     case "$ac_option" in
404       *=*) ;;
405       *) ac_optarg=yes ;;
406     esac
407     eval "with_${ac_package}='$ac_optarg'" ;;
408
409   -without-* | --without-*)
410     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411     # Reject names that are not valid shell variable names.
412     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414     fi
415     ac_package=`echo $ac_package| sed 's/-/_/g'`
416     eval "with_${ac_package}=no" ;;
417
418   --x)
419     # Obsolete; use --with-x.
420     with_x=yes ;;
421
422   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423   | --x-incl | --x-inc | --x-in | --x-i)
424     ac_prev=x_includes ;;
425   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427     x_includes="$ac_optarg" ;;
428
429   -x-libraries | --x-libraries | --x-librarie | --x-librari \
430   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431     ac_prev=x_libraries ;;
432   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434     x_libraries="$ac_optarg" ;;
435
436   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437     ;;
438
439   *)
440     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441       echo "configure: warning: $ac_option: invalid host type" 1>&2
442     fi
443     if test "x$nonopt" != xNONE; then
444       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
445     fi
446     nonopt="$ac_option"
447     ;;
448
449   esac
450 done
451
452 if test -n "$ac_prev"; then
453   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
454 fi
455
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
457
458 # File descriptor usage:
459 # 0 standard input
460 # 1 file creation
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
467   exec 6>/dev/null
468 else
469   exec 6>&1
470 fi
471 exec 5>./config.log
472
473 echo "\
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
476 " 1>&5
477
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
480 ac_configure_args=
481 for ac_arg
482 do
483   case "$ac_arg" in
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c) ;;
486   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491   esac
492 done
493
494 # NLS nuisances.
495 # Only set these to C if already set.  These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
503
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 echo > confdefs.h
508
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=src/ios.cc
512
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515   ac_srcdir_defaulted=yes
516   # Try the directory containing this script, then its parent.
517   ac_prog=$0
518   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520   srcdir=$ac_confdir
521   if test ! -r $srcdir/$ac_unique_file; then
522     srcdir=..
523   fi
524 else
525   ac_srcdir_defaulted=no
526 fi
527 if test ! -r $srcdir/$ac_unique_file; then
528   if test "$ac_srcdir_defaulted" = yes; then
529     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530   else
531     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
532   fi
533 fi
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
535
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538   if test "x$prefix" != xNONE; then
539     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540   else
541     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
542   fi
543 fi
544 for ac_site_file in $CONFIG_SITE; do
545   if test -r "$ac_site_file"; then
546     echo "loading site script $ac_site_file"
547     . "$ac_site_file"
548   fi
549 done
550
551 if test -r "$cache_file"; then
552   echo "loading cache $cache_file"
553   . $cache_file
554 else
555   echo "creating cache $cache_file"
556   > $cache_file
557 fi
558
559 ac_ext=c
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
565
566 ac_exeext=
567 ac_objext=o
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571     ac_n= ac_c='
572 ' ac_t='        '
573   else
574     ac_n=-n ac_c= ac_t=
575   fi
576 else
577   ac_n= ac_c='\c' ac_t=
578 fi
579
580
581
582 # This works around the fact that libtool configuration may change LD
583 # for this particular configuration, but some shells, instead of
584 # keeping the changes in LD private, export them just because LD is
585 # exported.  Only used at the end of this file.
586 ORIGINAL_LD_FOR_MULTILIBS=$LD
587
588 PACKAGE=libstdc++
589
590 # For typical GNU versioning info, format is MAJOR.MINOR.MICRO
591 release_VERSION=3.1.1
592
593 # For libtool versioning info, format is CURRENT:REVISION:AGE
594 libtool_VERSION=4:1:0
595
596
597 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
598 #
599 # You will slowly go insane if you do not grok the following fact:  when
600 # building v3 as part of the compiler, the top-level /target/ becomes the
601 # library's /host/.  `configure' then causes --target to default to --host,
602 # exactly like any other package using autoconf.  Therefore, 'target' and
603 # 'host' will always be the same.  This makes sense both for native and
604 # cross compilers, just think about it for a little while.  :-)
605 #
606 # Also, if v3 is being configured as part of a cross compiler, the top-level
607 # configure script will pass the "real" host as $with_cross_host.
608 #
609 # AC 2.5x sets target_alias iff the user specified --target, but we use it
610 # everywhere, so we set it here just to be sure.  In AC 2.13
611 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
612 ac_aux_dir=
613 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
614   if test -f $ac_dir/install-sh; then
615     ac_aux_dir=$ac_dir
616     ac_install_sh="$ac_aux_dir/install-sh -c"
617     break
618   elif test -f $ac_dir/install.sh; then
619     ac_aux_dir=$ac_dir
620     ac_install_sh="$ac_aux_dir/install.sh -c"
621     break
622   fi
623 done
624 if test -z "$ac_aux_dir"; then
625   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
626 fi
627 ac_config_guess=$ac_aux_dir/config.guess
628 ac_config_sub=$ac_aux_dir/config.sub
629 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
630
631
632 # Do some error checking and defaulting for the host and target type.
633 # The inputs are:
634 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
635 #
636 # The rules are:
637 # 1. You are not allowed to specify --host, --target, and nonopt at the
638 #    same time.
639 # 2. Host defaults to nonopt.
640 # 3. If nonopt is not specified, then host defaults to the current host,
641 #    as determined by config.guess.
642 # 4. Target and build default to nonopt.
643 # 5. If nonopt is not specified, then target and build default to host.
644
645 # The aliases save the names the user supplied, while $host etc.
646 # will get canonicalized.
647 case $host---$target---$nonopt in
648 NONE---*---* | *---NONE---* | *---*---NONE) ;;
649 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
650 esac
651
652
653 # Make sure we can run config.sub.
654 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
655 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
656 fi
657
658 echo $ac_n "checking host system type""... $ac_c" 1>&6
659 echo "configure:660: checking host system type" >&5
660
661 host_alias=$host
662 case "$host_alias" in
663 NONE)
664   case $nonopt in
665   NONE)
666     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
667     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
668     fi ;;
669   *) host_alias=$nonopt ;;
670   esac ;;
671 esac
672
673 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
674 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
677 echo "$ac_t""$host" 1>&6
678
679 echo $ac_n "checking target system type""... $ac_c" 1>&6
680 echo "configure:681: checking target system type" >&5
681
682 target_alias=$target
683 case "$target_alias" in
684 NONE)
685   case $nonopt in
686   NONE) target_alias=$host_alias ;;
687   *) target_alias=$nonopt ;;
688   esac ;;
689 esac
690
691 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
692 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
693 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
694 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
695 echo "$ac_t""$target" 1>&6
696
697 echo $ac_n "checking build system type""... $ac_c" 1>&6
698 echo "configure:699: checking build system type" >&5
699
700 build_alias=$build
701 case "$build_alias" in
702 NONE)
703   case $nonopt in
704   NONE) build_alias=$host_alias ;;
705   *) build_alias=$nonopt ;;
706   esac ;;
707 esac
708
709 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
710 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
711 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
712 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
713 echo "$ac_t""$build" 1>&6
714
715 test "$host_alias" != "$target_alias" &&
716   test "$program_prefix$program_suffix$program_transform_name" = \
717     NONENONEs,x,x, &&
718   program_prefix=${target_alias}-
719
720 target_alias=${target_alias-$target}
721
722
723 # Find a good install program.  We prefer a C program (faster),
724 # so one script is as good as another.  But avoid the broken or
725 # incompatible versions:
726 # SysV /etc/install, /usr/sbin/install
727 # SunOS /usr/etc/install
728 # IRIX /sbin/install
729 # AIX /bin/install
730 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
731 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
732 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
733 # ./install, which can be erroneously created by make from ./install.sh.
734 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
735 echo "configure:736: checking for a BSD compatible install" >&5
736 if test -z "$INSTALL"; then
737 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
738   echo $ac_n "(cached) $ac_c" 1>&6
739 else
740     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
741   for ac_dir in $PATH; do
742     # Account for people who put trailing slashes in PATH elements.
743     case "$ac_dir/" in
744     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
745     *)
746       # OSF1 and SCO ODT 3.0 have their own names for install.
747       # Don't use installbsd from OSF since it installs stuff as root
748       # by default.
749       for ac_prog in ginstall scoinst install; do
750         if test -f $ac_dir/$ac_prog; then
751           if test $ac_prog = install &&
752             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
753             # AIX install.  It has an incompatible calling convention.
754             :
755           else
756             ac_cv_path_install="$ac_dir/$ac_prog -c"
757             break 2
758           fi
759         fi
760       done
761       ;;
762     esac
763   done
764   IFS="$ac_save_IFS"
765
766 fi
767   if test "${ac_cv_path_install+set}" = set; then
768     INSTALL="$ac_cv_path_install"
769   else
770     # As a last resort, use the slow shell script.  We don't cache a
771     # path for INSTALL within a source directory, because that will
772     # break other packages using the cache if that directory is
773     # removed, or if the path is relative.
774     INSTALL="$ac_install_sh"
775   fi
776 fi
777 echo "$ac_t""$INSTALL" 1>&6
778
779 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
780 # It thinks the first close brace ends the variable substitution.
781 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
782
783 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
784
785 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
786
787 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
788 echo "configure:789: checking whether build environment is sane" >&5
789 # Just in case
790 sleep 1
791 echo timestamp > conftestfile
792 # Do `set' in a subshell so we don't clobber the current shell's
793 # arguments.  Must try -L first in case configure is actually a
794 # symlink; some systems play weird games with the mod time of symlinks
795 # (eg FreeBSD returns the mod time of the symlink's containing
796 # directory).
797 if (
798    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
799    if test "$*" = "X"; then
800       # -L didn't work.
801       set X `ls -t $srcdir/configure conftestfile`
802    fi
803    if test "$*" != "X $srcdir/configure conftestfile" \
804       && test "$*" != "X conftestfile $srcdir/configure"; then
805
806       # If neither matched, then we have a broken ls.  This can happen
807       # if, for instance, CONFIG_SHELL is bash and it inherits a
808       # broken ls alias from the environment.  This has actually
809       # happened.  Such a system could not be considered "sane".
810       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
811 alias in your environment" 1>&2; exit 1; }
812    fi
813
814    test "$2" = conftestfile
815    )
816 then
817    # Ok.
818    :
819 else
820    { echo "configure: error: newly created file is older than distributed files!
821 Check your system clock" 1>&2; exit 1; }
822 fi
823 rm -f conftest*
824 echo "$ac_t""yes" 1>&6
825 if test "$program_transform_name" = s,x,x,; then
826   program_transform_name=
827 else
828   # Double any \ or $.  echo might interpret backslashes.
829   cat <<\EOF_SED > conftestsed
830 s,\\,\\\\,g; s,\$,$$,g
831 EOF_SED
832   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
833   rm -f conftestsed
834 fi
835 test "$program_prefix" != NONE &&
836   program_transform_name="s,^,${program_prefix},; $program_transform_name"
837 # Use a double $ so make ignores it.
838 test "$program_suffix" != NONE &&
839   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
840
841 # sed with no file args requires a program.
842 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
843
844 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
845 echo "configure:846: checking whether ${MAKE-make} sets \${MAKE}" >&5
846 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
847 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
848   echo $ac_n "(cached) $ac_c" 1>&6
849 else
850   cat > conftestmake <<\EOF
851 all:
852         @echo 'ac_maketemp="${MAKE}"'
853 EOF
854 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
855 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
856 if test -n "$ac_maketemp"; then
857   eval ac_cv_prog_make_${ac_make}_set=yes
858 else
859   eval ac_cv_prog_make_${ac_make}_set=no
860 fi
861 rm -f conftestmake
862 fi
863 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
864   echo "$ac_t""yes" 1>&6
865   SET_MAKE=
866 else
867   echo "$ac_t""no" 1>&6
868   SET_MAKE="MAKE=${MAKE-make}"
869 fi
870
871
872 PACKAGE=$PACKAGE
873
874 VERSION=$release_VERSION
875
876 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
877   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
878 fi
879 cat >> confdefs.h <<EOF
880 #define PACKAGE "$PACKAGE"
881 EOF
882
883 cat >> confdefs.h <<EOF
884 #define VERSION "$VERSION"
885 EOF
886
887
888
889 missing_dir=`cd $ac_aux_dir && pwd`
890 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
891 echo "configure:892: checking for working aclocal" >&5
892 # Run test in a subshell; some versions of sh will print an error if
893 # an executable is not found, even if stderr is redirected.
894 # Redirect stdin to placate older versions of autoconf.  Sigh.
895 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
896    ACLOCAL=aclocal
897    echo "$ac_t""found" 1>&6
898 else
899    ACLOCAL="$missing_dir/missing aclocal"
900    echo "$ac_t""missing" 1>&6
901 fi
902
903 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
904 echo "configure:905: checking for working autoconf" >&5
905 # Run test in a subshell; some versions of sh will print an error if
906 # an executable is not found, even if stderr is redirected.
907 # Redirect stdin to placate older versions of autoconf.  Sigh.
908 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
909    AUTOCONF=autoconf
910    echo "$ac_t""found" 1>&6
911 else
912    AUTOCONF="$missing_dir/missing autoconf"
913    echo "$ac_t""missing" 1>&6
914 fi
915
916 echo $ac_n "checking for working automake""... $ac_c" 1>&6
917 echo "configure:918: checking for working automake" >&5
918 # Run test in a subshell; some versions of sh will print an error if
919 # an executable is not found, even if stderr is redirected.
920 # Redirect stdin to placate older versions of autoconf.  Sigh.
921 if (automake --version) < /dev/null > /dev/null 2>&1; then
922    AUTOMAKE=automake
923    echo "$ac_t""found" 1>&6
924 else
925    AUTOMAKE="$missing_dir/missing automake"
926    echo "$ac_t""missing" 1>&6
927 fi
928
929 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
930 echo "configure:931: checking for working autoheader" >&5
931 # Run test in a subshell; some versions of sh will print an error if
932 # an executable is not found, even if stderr is redirected.
933 # Redirect stdin to placate older versions of autoconf.  Sigh.
934 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
935    AUTOHEADER=autoheader
936    echo "$ac_t""found" 1>&6
937 else
938    AUTOHEADER="$missing_dir/missing autoheader"
939    echo "$ac_t""missing" 1>&6
940 fi
941
942 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
943 echo "configure:944: checking for working makeinfo" >&5
944 # Run test in a subshell; some versions of sh will print an error if
945 # an executable is not found, even if stderr is redirected.
946 # Redirect stdin to placate older versions of autoconf.  Sigh.
947 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
948    MAKEINFO=makeinfo
949    echo "$ac_t""found" 1>&6
950 else
951    MAKEINFO="$missing_dir/missing makeinfo"
952    echo "$ac_t""missing" 1>&6
953 fi
954
955
956
957
958
959
960 # Runs configure.target, finds CC, CXX and assorted other critical bits.
961 # Must run this before the GLIBCPP_ENABLE_* macros below.
962 if test $host != $build; then
963   ac_tool_prefix=${host_alias}-
964 else
965   ac_tool_prefix=
966 fi
967
968 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
969 echo "configure:970: checking for Cygwin environment" >&5
970 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
971   echo $ac_n "(cached) $ac_c" 1>&6
972 else
973   cat > conftest.$ac_ext <<EOF
974 #line 975 "configure"
975 #include "confdefs.h"
976
977 int main() {
978
979 #ifndef __CYGWIN__
980 #define __CYGWIN__ __CYGWIN32__
981 #endif
982 return __CYGWIN__;
983 ; return 0; }
984 EOF
985 if { (eval echo configure:986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
986   rm -rf conftest*
987   ac_cv_cygwin=yes
988 else
989   echo "configure: failed program was:" >&5
990   cat conftest.$ac_ext >&5
991   rm -rf conftest*
992   ac_cv_cygwin=no
993 fi
994 rm -f conftest*
995 rm -f conftest*
996 fi
997
998 echo "$ac_t""$ac_cv_cygwin" 1>&6
999 CYGWIN=
1000 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1001 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1002 echo "configure:1003: checking for mingw32 environment" >&5
1003 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1004   echo $ac_n "(cached) $ac_c" 1>&6
1005 else
1006   cat > conftest.$ac_ext <<EOF
1007 #line 1008 "configure"
1008 #include "confdefs.h"
1009
1010 int main() {
1011 return __MINGW32__;
1012 ; return 0; }
1013 EOF
1014 if { (eval echo configure:1015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1015   rm -rf conftest*
1016   ac_cv_mingw32=yes
1017 else
1018   echo "configure: failed program was:" >&5
1019   cat conftest.$ac_ext >&5
1020   rm -rf conftest*
1021   ac_cv_mingw32=no
1022 fi
1023 rm -f conftest*
1024 rm -f conftest*
1025 fi
1026
1027 echo "$ac_t""$ac_cv_mingw32" 1>&6
1028 MINGW32=
1029 test "$ac_cv_mingw32" = yes && MINGW32=yes
1030
1031       # Check whether --enable-multilib or --disable-multilib was given.
1032 if test "${enable_multilib+set}" = set; then
1033   enableval="$enable_multilib"
1034   case "${enableval}" in
1035     yes) multilib=yes ;;
1036     no)  multilib=no ;;
1037     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1038    esac
1039 else
1040   multilib=yes
1041 fi
1042
1043   # When building with srcdir == objdir, links to the source files will
1044   # be created in directories within the target_subdir.  We have to
1045   # adjust toplevel_srcdir accordingly, so that configure finds
1046   # install-sh and other auxiliary files that live in the top-level
1047   # source directory.
1048   if test "${srcdir}" = "."; then
1049     if test -z "${with_target_subdir}"; then
1050       toprel=".."
1051     else
1052       if test "${with_target_subdir}" != "."; then
1053         toprel="${with_multisrctop}../.."
1054       else
1055         toprel="${with_multisrctop}.."
1056       fi
1057     fi
1058   else
1059     toprel=".."
1060   fi
1061   ac_aux_dir=
1062 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1063   if test -f $ac_dir/install-sh; then
1064     ac_aux_dir=$ac_dir
1065     ac_install_sh="$ac_aux_dir/install-sh -c"
1066     break
1067   elif test -f $ac_dir/install.sh; then
1068     ac_aux_dir=$ac_dir
1069     ac_install_sh="$ac_aux_dir/install.sh -c"
1070     break
1071   fi
1072 done
1073 if test -z "$ac_aux_dir"; then
1074   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1075 fi
1076 ac_config_guess=$ac_aux_dir/config.guess
1077 ac_config_sub=$ac_aux_dir/config.sub
1078 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1079
1080   toplevel_srcdir=\${top_srcdir}/$toprel
1081   
1082
1083 #possibly test for the presence of the compiler sources here?
1084
1085   # Export build and source directories.
1086   # These need to be absolute paths, yet at the same time need to
1087   # canonicalize only relative paths, because then amd will not unmount
1088   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1089   glibcpp_builddir=`${PWDCMD-pwd}`
1090   case $srcdir in
1091   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
1092   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1093   esac
1094   
1095   
1096
1097     
1098
1099   for ac_prog in gawk mawk nawk awk
1100 do
1101 # Extract the first word of "$ac_prog", so it can be a program name with args.
1102 set dummy $ac_prog; ac_word=$2
1103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1104 echo "configure:1105: checking for $ac_word" >&5
1105 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1106   echo $ac_n "(cached) $ac_c" 1>&6
1107 else
1108   if test -n "$AWK"; then
1109   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1110 else
1111   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1112   ac_dummy="$PATH"
1113   for ac_dir in $ac_dummy; do
1114     test -z "$ac_dir" && ac_dir=.
1115     if test -f $ac_dir/$ac_word; then
1116       ac_cv_prog_AWK="$ac_prog"
1117       break
1118     fi
1119   done
1120   IFS="$ac_save_ifs"
1121 fi
1122 fi
1123 AWK="$ac_cv_prog_AWK"
1124 if test -n "$AWK"; then
1125   echo "$ac_t""$AWK" 1>&6
1126 else
1127   echo "$ac_t""no" 1>&6
1128 fi
1129
1130 test -n "$AWK" && break
1131 done
1132
1133   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
1134   # be 'cp -p' if linking isn't available.  Uncomment the next line to
1135   # force a particular method.
1136   #ac_cv_prog_LN_S='cp -p'
1137   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1138 echo "configure:1139: checking whether ln -s works" >&5
1139 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1140   echo $ac_n "(cached) $ac_c" 1>&6
1141 else
1142   rm -f conftestdata
1143 if ln -s X conftestdata 2>/dev/null
1144 then
1145   rm -f conftestdata
1146   ac_cv_prog_LN_S="ln -s"
1147 else
1148   ac_cv_prog_LN_S=ln
1149 fi
1150 fi
1151 LN_S="$ac_cv_prog_LN_S"
1152 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1153   echo "$ac_t""yes" 1>&6
1154 else
1155   echo "$ac_t""no" 1>&6
1156 fi
1157
1158
1159   # We use these options to decide which functions to include.
1160   # Check whether --with-target-subdir or --without-target-subdir was given.
1161 if test "${with_target_subdir+set}" = set; then
1162   withval="$with_target_subdir"
1163   :
1164 fi
1165
1166   # Check whether --with-cross-host or --without-cross-host was given.
1167 if test "${with_cross_host+set}" = set; then
1168   withval="$with_cross_host"
1169   :
1170 fi
1171
1172
1173   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
1174   
1175
1176   # Never versions of autoconf add an underscore to these functions.
1177   # Prevent future problems ...
1178   
1179   
1180   
1181   
1182
1183   # AC_PROG_CC
1184   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
1185   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
1186   # are probably using a cross compiler, which will not be able to fully
1187   # link an executable.  This is addressed in later versions of autoconf.
1188
1189   
1190
1191       
1192   # Extract the first word of "gcc", so it can be a program name with args.
1193 set dummy gcc; ac_word=$2
1194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1195 echo "configure:1196: checking for $ac_word" >&5
1196 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1197   echo $ac_n "(cached) $ac_c" 1>&6
1198 else
1199   if test -n "$CC"; then
1200   ac_cv_prog_CC="$CC" # Let the user override the test.
1201 else
1202   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1203   ac_dummy="$PATH"
1204   for ac_dir in $ac_dummy; do
1205     test -z "$ac_dir" && ac_dir=.
1206     if test -f $ac_dir/$ac_word; then
1207       ac_cv_prog_CC="gcc"
1208       break
1209     fi
1210   done
1211   IFS="$ac_save_ifs"
1212 fi
1213 fi
1214 CC="$ac_cv_prog_CC"
1215 if test -n "$CC"; then
1216   echo "$ac_t""$CC" 1>&6
1217 else
1218   echo "$ac_t""no" 1>&6
1219 fi
1220
1221   if test -z "$CC"; then
1222     # Extract the first word of "cc", so it can be a program name with args.
1223 set dummy cc; ac_word=$2
1224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1225 echo "configure:1226: checking for $ac_word" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1227   echo $ac_n "(cached) $ac_c" 1>&6
1228 else
1229   if test -n "$CC"; then
1230   ac_cv_prog_CC="$CC" # Let the user override the test.
1231 else
1232   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1233   ac_prog_rejected=no
1234   ac_dummy="$PATH"
1235   for ac_dir in $ac_dummy; do
1236     test -z "$ac_dir" && ac_dir=.
1237     if test -f $ac_dir/$ac_word; then
1238       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1239         ac_prog_rejected=yes
1240         continue
1241       fi
1242       ac_cv_prog_CC="cc"
1243       break
1244     fi
1245   done
1246   IFS="$ac_save_ifs"
1247 if test $ac_prog_rejected = yes; then
1248   # We found a bogon in the path, so make sure we never use it.
1249   set dummy $ac_cv_prog_CC
1250   shift
1251   if test $# -gt 0; then
1252     # We chose a different compiler from the bogus one.
1253     # However, it has the same basename, so the bogon will be chosen
1254     # first if we set CC to just the basename; use the full file name.
1255     shift
1256     set dummy "$ac_dir/$ac_word" "$@"
1257     shift
1258     ac_cv_prog_CC="$@"
1259   fi
1260 fi
1261 fi
1262 fi
1263 CC="$ac_cv_prog_CC"
1264 if test -n "$CC"; then
1265   echo "$ac_t""$CC" 1>&6
1266 else
1267   echo "$ac_t""no" 1>&6
1268 fi
1269
1270     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1271   fi
1272
1273   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1274 echo "configure:1275: checking whether we are using GNU C" >&5
1275 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1276   echo $ac_n "(cached) $ac_c" 1>&6
1277 else
1278   cat > conftest.c <<EOF
1279 #ifdef __GNUC__
1280   yes;
1281 #endif
1282 EOF
1283 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1284   ac_cv_prog_gcc=yes
1285 else
1286   ac_cv_prog_gcc=no
1287 fi
1288 fi
1289
1290 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1291
1292   if test $ac_cv_prog_gcc = yes; then
1293     GCC=yes
1294           ac_test_CFLAGS="${CFLAGS+set}"
1295     ac_save_CFLAGS="$CFLAGS"
1296     CFLAGS=
1297     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1298 echo "configure:1299: checking whether ${CC-cc} accepts -g" >&5
1299 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1300   echo $ac_n "(cached) $ac_c" 1>&6
1301 else
1302   echo 'void f(){}' > conftest.c
1303 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1304   ac_cv_prog_cc_g=yes
1305 else
1306   ac_cv_prog_cc_g=no
1307 fi
1308 rm -f conftest*
1309
1310 fi
1311
1312 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1313     if test "$ac_test_CFLAGS" = set; then
1314       CFLAGS="$ac_save_CFLAGS"
1315     elif test $ac_cv_prog_cc_g = yes; then
1316       CFLAGS="-g -O2"
1317     else
1318       CFLAGS="-O2"
1319     fi
1320   else
1321     GCC=
1322     test "${CFLAGS+set}" = set || CFLAGS="-g"
1323   fi
1324   
1325
1326   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1327   # will try to link in libstdc++.
1328   
1329
1330       
1331   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1332   # flags that come in CXX while configuring libstdc++.  They're different
1333   # from those used for all other target libraries.  If CXX is set in
1334   # the environment, respect that here.
1335   glibcpp_CXX=$CXX
1336   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1337 do
1338 # Extract the first word of "$ac_prog", so it can be a program name with args.
1339 set dummy $ac_prog; ac_word=$2
1340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1341 echo "configure:1342: checking for $ac_word" >&5
1342 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1343   echo $ac_n "(cached) $ac_c" 1>&6
1344 else
1345   if test -n "$glibcpp_CXX"; then
1346   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1347 else
1348   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1349   ac_dummy="$PATH"
1350   for ac_dir in $ac_dummy; do
1351     test -z "$ac_dir" && ac_dir=.
1352     if test -f $ac_dir/$ac_word; then
1353       ac_cv_prog_glibcpp_CXX="$ac_prog"
1354       break
1355     fi
1356   done
1357   IFS="$ac_save_ifs"
1358 fi
1359 fi
1360 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1361 if test -n "$glibcpp_CXX"; then
1362   echo "$ac_t""$glibcpp_CXX" 1>&6
1363 else
1364   echo "$ac_t""no" 1>&6
1365 fi
1366
1367 test -n "$glibcpp_CXX" && break
1368 done
1369 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1370
1371   
1372   CXX=$glibcpp_CXX
1373   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1374
1375   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1376 echo "configure:1377: checking whether we are using GNU C++" >&5
1377 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1378   echo $ac_n "(cached) $ac_c" 1>&6
1379 else
1380   cat > conftest.C <<EOF
1381 #ifdef __GNUC__
1382   yes;
1383 #endif
1384 EOF
1385 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1386   ac_cv_prog_gxx=yes
1387 else
1388   ac_cv_prog_gxx=no
1389 fi
1390 fi
1391
1392 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1393
1394   if test $ac_cv_prog_gxx = yes; then
1395     GXX=yes
1396                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1397     ac_save_CXXFLAGS="$CXXFLAGS"
1398     CXXFLAGS=
1399     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1400 echo "configure:1401: checking whether ${CXX-g++} accepts -g" >&5
1401 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1402   echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404   echo 'void f(){}' > conftest.cc
1405 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1406   ac_cv_prog_cxx_g=yes
1407 else
1408   ac_cv_prog_cxx_g=no
1409 fi
1410 rm -f conftest*
1411
1412 fi
1413
1414 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1415     if test "$ac_test_CXXFLAGS" = set; then
1416       CXXFLAGS="$ac_save_CXXFLAGS"
1417     elif test $ac_cv_prog_cxx_g = yes; then
1418       CXXFLAGS="-g -O2"
1419     else
1420       CXXFLAGS="-O2"
1421     fi
1422   else
1423     GXX=
1424     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1425   fi
1426   
1427
1428   # For some reason, gettext needs this.
1429   
1430         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1431 echo "configure:1432: checking for strerror in -lcposix" >&5
1432 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1434   echo $ac_n "(cached) $ac_c" 1>&6
1435 else
1436   ac_save_LIBS="$LIBS"
1437 LIBS="-lcposix  $LIBS"
1438 cat > conftest.$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1441 /* Override any gcc2 internal prototype to avoid an error.  */
1442 /* We use char because int might match the return type of a gcc2
1443     builtin and then its argument prototype would still apply.  */
1444 char strerror();
1445
1446 int main() {
1447 strerror()
1448 ; return 0; }
1449 EOF
1450 if { (eval echo configure:1451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1451   rm -rf conftest*
1452   eval "ac_cv_lib_$ac_lib_var=yes"
1453 else
1454   echo "configure: failed program was:" >&5
1455   cat conftest.$ac_ext >&5
1456   rm -rf conftest*
1457   eval "ac_cv_lib_$ac_lib_var=no"
1458 fi
1459 rm -f conftest*
1460 LIBS="$ac_save_LIBS"
1461
1462 fi
1463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1464   echo "$ac_t""yes" 1>&6
1465   LIBS="$LIBS -lcposix"
1466 else
1467   echo "$ac_t""no" 1>&6
1468 fi
1469
1470   
1471
1472
1473   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1474 set dummy ${ac_tool_prefix}as; ac_word=$2
1475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1476 echo "configure:1477: checking for $ac_word" >&5
1477 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1478   echo $ac_n "(cached) $ac_c" 1>&6
1479 else
1480   if test -n "$AS"; then
1481   ac_cv_prog_AS="$AS" # Let the user override the test.
1482 else
1483   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1484   ac_dummy="$PATH"
1485   for ac_dir in $ac_dummy; do
1486     test -z "$ac_dir" && ac_dir=.
1487     if test -f $ac_dir/$ac_word; then
1488       ac_cv_prog_AS="${ac_tool_prefix}as"
1489       break
1490     fi
1491   done
1492   IFS="$ac_save_ifs"
1493   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1494 fi
1495 fi
1496 AS="$ac_cv_prog_AS"
1497 if test -n "$AS"; then
1498   echo "$ac_t""$AS" 1>&6
1499 else
1500   echo "$ac_t""no" 1>&6
1501 fi
1502
1503
1504
1505   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1506 set dummy ${ac_tool_prefix}ar; ac_word=$2
1507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1508 echo "configure:1509: checking for $ac_word" >&5
1509 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1510   echo $ac_n "(cached) $ac_c" 1>&6
1511 else
1512   if test -n "$AR"; then
1513   ac_cv_prog_AR="$AR" # Let the user override the test.
1514 else
1515   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1516   ac_dummy="$PATH"
1517   for ac_dir in $ac_dummy; do
1518     test -z "$ac_dir" && ac_dir=.
1519     if test -f $ac_dir/$ac_word; then
1520       ac_cv_prog_AR="${ac_tool_prefix}ar"
1521       break
1522     fi
1523   done
1524   IFS="$ac_save_ifs"
1525   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1526 fi
1527 fi
1528 AR="$ac_cv_prog_AR"
1529 if test -n "$AR"; then
1530   echo "$ac_t""$AR" 1>&6
1531 else
1532   echo "$ac_t""no" 1>&6
1533 fi
1534
1535
1536
1537   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1538 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1540 echo "configure:1541: checking for $ac_word" >&5
1541 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1542   echo $ac_n "(cached) $ac_c" 1>&6
1543 else
1544   if test -n "$RANLIB"; then
1545   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1546 else
1547   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1548   ac_dummy="$PATH"
1549   for ac_dir in $ac_dummy; do
1550     test -z "$ac_dir" && ac_dir=.
1551     if test -f $ac_dir/$ac_word; then
1552       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1553       break
1554     fi
1555   done
1556   IFS="$ac_save_ifs"
1557 fi
1558 fi
1559 RANLIB="$ac_cv_prog_RANLIB"
1560 if test -n "$RANLIB"; then
1561   echo "$ac_t""$RANLIB" 1>&6
1562 else
1563   echo "$ac_t""no" 1>&6
1564 fi
1565
1566
1567 if test -z "$ac_cv_prog_RANLIB"; then
1568 if test -n "$ac_tool_prefix"; then
1569   # Extract the first word of "ranlib", so it can be a program name with args.
1570 set dummy ranlib; ac_word=$2
1571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1572 echo "configure:1573: checking for $ac_word" >&5
1573 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1574   echo $ac_n "(cached) $ac_c" 1>&6
1575 else
1576   if test -n "$RANLIB"; then
1577   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1578 else
1579   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1580   ac_dummy="$PATH"
1581   for ac_dir in $ac_dummy; do
1582     test -z "$ac_dir" && ac_dir=.
1583     if test -f $ac_dir/$ac_word; then
1584       ac_cv_prog_RANLIB="ranlib"
1585       break
1586     fi
1587   done
1588   IFS="$ac_save_ifs"
1589   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1590 fi
1591 fi
1592 RANLIB="$ac_cv_prog_RANLIB"
1593 if test -n "$RANLIB"; then
1594   echo "$ac_t""$RANLIB" 1>&6
1595 else
1596   echo "$ac_t""no" 1>&6
1597 fi
1598
1599 else
1600   RANLIB="ranlib-not-found-in-path-error"
1601 fi
1602 fi
1603
1604   # Find a good install program.  We prefer a C program (faster),
1605 # so one script is as good as another.  But avoid the broken or
1606 # incompatible versions:
1607 # SysV /etc/install, /usr/sbin/install
1608 # SunOS /usr/etc/install
1609 # IRIX /sbin/install
1610 # AIX /bin/install
1611 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1612 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1613 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1614 # ./install, which can be erroneously created by make from ./install.sh.
1615 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1616 echo "configure:1617: checking for a BSD compatible install" >&5
1617 if test -z "$INSTALL"; then
1618 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1619   echo $ac_n "(cached) $ac_c" 1>&6
1620 else
1621     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1622   for ac_dir in $PATH; do
1623     # Account for people who put trailing slashes in PATH elements.
1624     case "$ac_dir/" in
1625     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1626     *)
1627       # OSF1 and SCO ODT 3.0 have their own names for install.
1628       # Don't use installbsd from OSF since it installs stuff as root
1629       # by default.
1630       for ac_prog in ginstall scoinst install; do
1631         if test -f $ac_dir/$ac_prog; then
1632           if test $ac_prog = install &&
1633             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1634             # AIX install.  It has an incompatible calling convention.
1635             :
1636           else
1637             ac_cv_path_install="$ac_dir/$ac_prog -c"
1638             break 2
1639           fi
1640         fi
1641       done
1642       ;;
1643     esac
1644   done
1645   IFS="$ac_save_IFS"
1646
1647 fi
1648   if test "${ac_cv_path_install+set}" = set; then
1649     INSTALL="$ac_cv_path_install"
1650   else
1651     # As a last resort, use the slow shell script.  We don't cache a
1652     # path for INSTALL within a source directory, because that will
1653     # break other packages using the cache if that directory is
1654     # removed, or if the path is relative.
1655     INSTALL="$ac_install_sh"
1656   fi
1657 fi
1658 echo "$ac_t""$INSTALL" 1>&6
1659
1660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1661 # It thinks the first close brace ends the variable substitution.
1662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1663
1664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1665
1666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1667
1668
1669   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1670 echo "configure:1671: checking whether to enable maintainer-specific portions of Makefiles" >&5
1671     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1672 if test "${enable_maintainer_mode+set}" = set; then
1673   enableval="$enable_maintainer_mode"
1674   USE_MAINTAINER_MODE=$enableval
1675 else
1676   USE_MAINTAINER_MODE=no
1677 fi
1678
1679   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1680   
1681
1682 if test $USE_MAINTAINER_MODE = yes; then
1683   MAINTAINER_MODE_TRUE=
1684   MAINTAINER_MODE_FALSE='#'
1685 else
1686   MAINTAINER_MODE_TRUE='#'
1687   MAINTAINER_MODE_FALSE=
1688 fi
1689   MAINT=$MAINTAINER_MODE_TRUE
1690   
1691
1692
1693   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1694   # at least currently, we never actually build a program, so we never
1695   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1696   # fails, because we are probably configuring with a cross compiler
1697   # which can't create executables.  So we include AC_EXEEXT to keep
1698   # automake happy, but we don't execute it, since we don't care about
1699   # the result.
1700   if false; then
1701     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1702     # to nothing, so nothing would remain between `then' and `fi' if it
1703     # were not for the `:' below.
1704     :
1705     
1706
1707 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1708 echo "configure:1709: checking for executable suffix" >&5
1709 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1710   echo $ac_n "(cached) $ac_c" 1>&6
1711 else
1712   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1713   ac_cv_exeext=.exe
1714 else
1715   rm -f conftest*
1716   echo 'int main () { return 0; }' > conftest.$ac_ext
1717   ac_cv_exeext=
1718   if { (eval echo configure:1719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1719     for file in conftest.*; do
1720       case $file in
1721       *.c | *.o | *.obj) ;;
1722       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1723       esac
1724     done
1725   else
1726     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1727   fi
1728   rm -f conftest*
1729   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1730 fi
1731 fi
1732
1733 EXEEXT=""
1734 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1735 echo "$ac_t""${ac_cv_exeext}" 1>&6
1736 ac_exeext=$EXEEXT
1737
1738   fi
1739
1740   case ${glibcpp_basedir} in
1741     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1742     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1743   esac
1744
1745   # Find platform-specific directories containing configuration info.  In
1746   # addition to possibly modifying the same flags, it also sets up symlinks.
1747   
1748     . ${glibcpp_basedir}/configure.target
1749     echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1750     echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1751
1752
1753
1754
1755
1756 # Check whether --enable-shared or --disable-shared was given.
1757 if test "${enable_shared+set}" = set; then
1758   enableval="$enable_shared"
1759   p=${PACKAGE-default}
1760 case $enableval in
1761 yes) enable_shared=yes ;;
1762 no) enable_shared=no ;;
1763 *)
1764   enable_shared=no
1765   # Look at the argument we got.  We use all the common list separators.
1766   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1767   for pkg in $enableval; do
1768     if test "X$pkg" = "X$p"; then
1769       enable_shared=yes
1770     fi
1771   done
1772   IFS="$ac_save_ifs"
1773   ;;
1774 esac
1775 else
1776   enable_shared=yes
1777 fi
1778
1779 # Check whether --enable-static or --disable-static was given.
1780 if test "${enable_static+set}" = set; then
1781   enableval="$enable_static"
1782   p=${PACKAGE-default}
1783 case $enableval in
1784 yes) enable_static=yes ;;
1785 no) enable_static=no ;;
1786 *)
1787   enable_static=no
1788   # Look at the argument we got.  We use all the common list separators.
1789   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1790   for pkg in $enableval; do
1791     if test "X$pkg" = "X$p"; then
1792       enable_static=yes
1793     fi
1794   done
1795   IFS="$ac_save_ifs"
1796   ;;
1797 esac
1798 else
1799   enable_static=yes
1800 fi
1801
1802 # Check whether --enable-fast-install or --disable-fast-install was given.
1803 if test "${enable_fast_install+set}" = set; then
1804   enableval="$enable_fast_install"
1805   p=${PACKAGE-default}
1806 case $enableval in
1807 yes) enable_fast_install=yes ;;
1808 no) enable_fast_install=no ;;
1809 *)
1810   enable_fast_install=no
1811   # Look at the argument we got.  We use all the common list separators.
1812   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1813   for pkg in $enableval; do
1814     if test "X$pkg" = "X$p"; then
1815       enable_fast_install=yes
1816     fi
1817   done
1818   IFS="$ac_save_ifs"
1819   ;;
1820 esac
1821 else
1822   enable_fast_install=yes
1823 fi
1824
1825 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1826 if test "${with_gnu_ld+set}" = set; then
1827   withval="$with_gnu_ld"
1828   test "$withval" = no || with_gnu_ld=yes
1829 else
1830   with_gnu_ld=no
1831 fi
1832
1833 ac_prog=ld
1834 if test "$GCC" = yes; then
1835   # Check if gcc -print-prog-name=ld gives a path.
1836   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1837 echo "configure:1838: checking for ld used by GCC" >&5
1838   case $host in
1839   *-*-mingw*)
1840     # gcc leaves a trailing carriage return which upsets mingw
1841     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1842   *)
1843     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1844   esac
1845   case $ac_prog in
1846     # Accept absolute paths.
1847     [\\/]* | [A-Za-z]:[\\/]*)
1848       re_direlt='/[^/][^/]*/\.\./'
1849       # Canonicalize the path of ld
1850       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1851       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1852         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1853       done
1854       test -z "$LD" && LD="$ac_prog"
1855       ;;
1856   "")
1857     # If it fails, then pretend we aren't using GCC.
1858     ac_prog=ld
1859     ;;
1860   *)
1861     # If it is relative, then search for the first ld in PATH.
1862     with_gnu_ld=unknown
1863     ;;
1864   esac
1865 elif test "$with_gnu_ld" = yes; then
1866   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1867 echo "configure:1868: checking for GNU ld" >&5
1868 else
1869   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1870 echo "configure:1871: checking for non-GNU ld" >&5
1871 fi
1872 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1873   echo $ac_n "(cached) $ac_c" 1>&6
1874 else
1875   if test -z "$LD"; then
1876   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1877   for ac_dir in $PATH; do
1878     test -z "$ac_dir" && ac_dir=.
1879     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1880       lt_cv_path_LD="$ac_dir/$ac_prog"
1881       # Check to see if the program is GNU ld.  I'd rather use --version,
1882       # but apparently some GNU ld's only accept -v.
1883       # Break only if it was the GNU/non-GNU ld that we prefer.
1884       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1885         test "$with_gnu_ld" != no && break
1886       else
1887         test "$with_gnu_ld" != yes && break
1888       fi
1889     fi
1890   done
1891   IFS="$ac_save_ifs"
1892 else
1893   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1894 fi
1895 fi
1896
1897 LD="$lt_cv_path_LD"
1898 if test -n "$LD"; then
1899   echo "$ac_t""$LD" 1>&6
1900 else
1901   echo "$ac_t""no" 1>&6
1902 fi
1903 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1904 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1905 echo "configure:1906: checking if the linker ($LD) is GNU ld" >&5
1906 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1907   echo $ac_n "(cached) $ac_c" 1>&6
1908 else
1909   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1910 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1911   lt_cv_prog_gnu_ld=yes
1912 else
1913   lt_cv_prog_gnu_ld=no
1914 fi
1915 fi
1916
1917 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1918 with_gnu_ld=$lt_cv_prog_gnu_ld
1919
1920
1921 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1922 echo "configure:1923: checking for $LD option to reload object files" >&5
1923 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1924   echo $ac_n "(cached) $ac_c" 1>&6
1925 else
1926   lt_cv_ld_reload_flag='-r'
1927 fi
1928
1929 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1930 reload_flag=$lt_cv_ld_reload_flag
1931 test -n "$reload_flag" && reload_flag=" $reload_flag"
1932
1933 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1934 echo "configure:1935: checking for BSD-compatible nm" >&5
1935 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1936   echo $ac_n "(cached) $ac_c" 1>&6
1937 else
1938   if test -n "$NM"; then
1939   # Let the user override the test.
1940   lt_cv_path_NM="$NM"
1941 else
1942   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1943   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1944     test -z "$ac_dir" && ac_dir=.
1945     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1946     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1947       # Check to see if the nm accepts a BSD-compat flag.
1948       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1949       #   nm: unknown option "B" ignored
1950       # Tru64's nm complains that /dev/null is an invalid object file
1951       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1952         lt_cv_path_NM="$tmp_nm -B"
1953         break
1954       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1955         lt_cv_path_NM="$tmp_nm -p"
1956         break
1957       else
1958         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1959         continue # so that we can try to find one that supports BSD flags
1960       fi
1961     fi
1962   done
1963   IFS="$ac_save_ifs"
1964   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1965 fi
1966 fi
1967
1968 NM="$lt_cv_path_NM"
1969 echo "$ac_t""$NM" 1>&6
1970
1971 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1972 echo "configure:1973: checking how to recognise dependant libraries" >&5
1973 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1974   echo $ac_n "(cached) $ac_c" 1>&6
1975 else
1976   lt_cv_file_magic_cmd='$MAGIC_CMD'
1977 lt_cv_file_magic_test_file=
1978 lt_cv_deplibs_check_method='unknown'
1979 # Need to set the preceding variable on all platforms that support
1980 # interlibrary dependencies.
1981 # 'none' -- dependencies not supported.
1982 # `unknown' -- same as none, but documents that we really don't know.
1983 # 'pass_all' -- all dependencies passed with no checks.
1984 # 'test_compile' -- check by making test program.
1985 # 'file_magic [regex]' -- check by looking for files in library path
1986 # which responds to the $file_magic_cmd with a given egrep regex.
1987 # If you have `file' or equivalent on your system and you're not sure
1988 # whether `pass_all' will *always* work, you probably want this one.
1989
1990 case $host_os in
1991 aix*)
1992   lt_cv_deplibs_check_method=pass_all
1993   ;;
1994
1995 beos*)
1996   lt_cv_deplibs_check_method=pass_all
1997   ;;
1998
1999 bsdi4*)
2000   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2001   lt_cv_file_magic_cmd='/usr/bin/file -L'
2002   lt_cv_file_magic_test_file=/shlib/libc.so
2003   ;;
2004
2005 cygwin* | mingw* |pw32*)
2006   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2007   lt_cv_file_magic_cmd='$OBJDUMP -f'
2008   ;;
2009
2010 darwin* | rhapsody*)
2011   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2012   lt_cv_file_magic_cmd='/usr/bin/file -L'
2013   case "$host_os" in
2014   rhapsody* | darwin1.012)
2015     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2016     ;;
2017   *) # Darwin 1.3 on
2018     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2019     ;;
2020   esac
2021   ;;
2022
2023 freebsd* )
2024   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2025     case $host_cpu in
2026     i*86 )
2027       # Not sure whether the presence of OpenBSD here was a mistake.
2028       # Let's accept both of them until this is cleared up.
2029       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2030       lt_cv_file_magic_cmd=/usr/bin/file
2031       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2032       ;;
2033     esac
2034   else
2035     lt_cv_deplibs_check_method=pass_all
2036   fi
2037   ;;
2038
2039 gnu*)
2040   lt_cv_deplibs_check_method=pass_all
2041   ;;
2042
2043 hpux10.20*|hpux11*)
2044   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2045   lt_cv_file_magic_cmd=/usr/bin/file
2046   lt_cv_file_magic_test_file=/usr/lib/libc.sl
2047   ;;
2048
2049 irix5* | irix6*)
2050   case $host_os in
2051   irix5*)
2052     # this will be overridden with pass_all, but let us keep it just in case
2053     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2054     ;;
2055   *)
2056     case $LD in
2057     *-32|*"-32 ") libmagic=32-bit;;
2058     *-n32|*"-n32 ") libmagic=N32;;
2059     *-64|*"-64 ") libmagic=64-bit;;
2060     *) libmagic=never-match;;
2061     esac
2062     # this will be overridden with pass_all, but let us keep it just in case
2063     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2064     ;;
2065   esac
2066   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2067   lt_cv_deplibs_check_method=pass_all
2068   ;;
2069
2070 # This must be Linux ELF.
2071 linux-gnu*)
2072   case $host_cpu in
2073   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2074     lt_cv_deplibs_check_method=pass_all ;;
2075   *)
2076     # glibc up to 2.1.1 does not perform some relocations on ARM
2077     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2078   esac
2079   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2080   ;;
2081
2082 netbsd*)
2083   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2084     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2085   else
2086     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2087   fi
2088   ;;
2089
2090 newsos6)
2091   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2092   lt_cv_file_magic_cmd=/usr/bin/file
2093   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2094   ;;
2095
2096 osf3* | osf4* | osf5*)
2097   # this will be overridden with pass_all, but let us keep it just in case
2098   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2099   lt_cv_file_magic_test_file=/shlib/libc.so
2100   lt_cv_deplibs_check_method=pass_all
2101   ;;
2102
2103 sco3.2v5*)
2104   lt_cv_deplibs_check_method=pass_all
2105   ;;
2106
2107 solaris*)
2108   lt_cv_deplibs_check_method=pass_all
2109   lt_cv_file_magic_test_file=/lib/libc.so
2110   ;;
2111
2112 sysv5uw[78]* | sysv4*uw2*)
2113   lt_cv_deplibs_check_method=pass_all
2114   ;;
2115
2116 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2117   case $host_vendor in
2118   ncr)
2119     lt_cv_deplibs_check_method=pass_all
2120     ;;
2121   motorola)
2122     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]'
2123     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2124     ;;
2125   esac
2126   ;;
2127 esac
2128
2129 fi
2130
2131 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2132 file_magic_cmd=$lt_cv_file_magic_cmd
2133 deplibs_check_method=$lt_cv_deplibs_check_method
2134
2135 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2136 echo "configure:2137: checking for object suffix" >&5
2137 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2138   echo $ac_n "(cached) $ac_c" 1>&6
2139 else
2140   rm -f conftest*
2141 echo 'int i = 1;' > conftest.$ac_ext
2142 if { (eval echo configure:2143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2143   for ac_file in conftest.*; do
2144     case $ac_file in
2145     *.c) ;;
2146     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2147     esac
2148   done
2149 else
2150   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2151 fi
2152 rm -f conftest*
2153 fi
2154
2155 echo "$ac_t""$ac_cv_objext" 1>&6
2156 OBJEXT=$ac_cv_objext
2157 ac_objext=$ac_cv_objext
2158
2159 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2160
2161 # Only perform the check for file, if the check method requires it
2162 case $deplibs_check_method in
2163 file_magic*)
2164   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2165     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2166 echo "configure:2167: checking for ${ac_tool_prefix}file" >&5
2167 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2168   echo $ac_n "(cached) $ac_c" 1>&6
2169 else
2170   case $MAGIC_CMD in
2171   /*)
2172   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2173   ;;
2174   ?:/*)
2175   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2176   ;;
2177   *)
2178   ac_save_MAGIC_CMD="$MAGIC_CMD"
2179   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2180   ac_dummy="/usr/bin:$PATH"
2181   for ac_dir in $ac_dummy; do
2182     test -z "$ac_dir" && ac_dir=.
2183     if test -f $ac_dir/${ac_tool_prefix}file; then
2184       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2185       if test -n "$file_magic_test_file"; then
2186         case $deplibs_check_method in
2187         "file_magic "*)
2188           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2189           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2190           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2191             egrep "$file_magic_regex" > /dev/null; then
2192             :
2193           else
2194             cat <<EOF 1>&2
2195
2196 *** Warning: the command libtool uses to detect shared libraries,
2197 *** $file_magic_cmd, produces output that libtool cannot recognize.
2198 *** The result is that libtool may fail to recognize shared libraries
2199 *** as such.  This will affect the creation of libtool libraries that
2200 *** depend on shared libraries, but programs linked with such libtool
2201 *** libraries will work regardless of this problem.  Nevertheless, you
2202 *** may want to report the problem to your system manager and/or to
2203 *** bug-libtool@gnu.org
2204
2205 EOF
2206           fi ;;
2207         esac
2208       fi
2209       break
2210     fi
2211   done
2212   IFS="$ac_save_ifs"
2213   MAGIC_CMD="$ac_save_MAGIC_CMD"
2214   ;;
2215 esac
2216 fi
2217
2218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2219 if test -n "$MAGIC_CMD"; then
2220   echo "$ac_t""$MAGIC_CMD" 1>&6
2221 else
2222   echo "$ac_t""no" 1>&6
2223 fi
2224
2225 if test -z "$lt_cv_path_MAGIC_CMD"; then
2226   if test -n "$ac_tool_prefix"; then
2227     echo $ac_n "checking for file""... $ac_c" 1>&6
2228 echo "configure:2229: checking for file" >&5
2229 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2230   echo $ac_n "(cached) $ac_c" 1>&6
2231 else
2232   case $MAGIC_CMD in
2233   /*)
2234   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2235   ;;
2236   ?:/*)
2237   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2238   ;;
2239   *)
2240   ac_save_MAGIC_CMD="$MAGIC_CMD"
2241   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2242   ac_dummy="/usr/bin:$PATH"
2243   for ac_dir in $ac_dummy; do
2244     test -z "$ac_dir" && ac_dir=.
2245     if test -f $ac_dir/file; then
2246       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2247       if test -n "$file_magic_test_file"; then
2248         case $deplibs_check_method in
2249         "file_magic "*)
2250           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2251           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2252           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2253             egrep "$file_magic_regex" > /dev/null; then
2254             :
2255           else
2256             cat <<EOF 1>&2
2257
2258 *** Warning: the command libtool uses to detect shared libraries,
2259 *** $file_magic_cmd, produces output that libtool cannot recognize.
2260 *** The result is that libtool may fail to recognize shared libraries
2261 *** as such.  This will affect the creation of libtool libraries that
2262 *** depend on shared libraries, but programs linked with such libtool
2263 *** libraries will work regardless of this problem.  Nevertheless, you
2264 *** may want to report the problem to your system manager and/or to
2265 *** bug-libtool@gnu.org
2266
2267 EOF
2268           fi ;;
2269         esac
2270       fi
2271       break
2272     fi
2273   done
2274   IFS="$ac_save_ifs"
2275   MAGIC_CMD="$ac_save_MAGIC_CMD"
2276   ;;
2277 esac
2278 fi
2279
2280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2281 if test -n "$MAGIC_CMD"; then
2282   echo "$ac_t""$MAGIC_CMD" 1>&6
2283 else
2284   echo "$ac_t""no" 1>&6
2285 fi
2286
2287   else
2288     MAGIC_CMD=:
2289   fi
2290 fi
2291
2292   fi
2293   ;;
2294 esac
2295
2296 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2297 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2299 echo "configure:2300: checking for $ac_word" >&5
2300 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2301   echo $ac_n "(cached) $ac_c" 1>&6
2302 else
2303   if test -n "$RANLIB"; then
2304   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2305 else
2306   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2307   ac_dummy="$PATH"
2308   for ac_dir in $ac_dummy; do
2309     test -z "$ac_dir" && ac_dir=.
2310     if test -f $ac_dir/$ac_word; then
2311       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2312       break
2313     fi
2314   done
2315   IFS="$ac_save_ifs"
2316 fi
2317 fi
2318 RANLIB="$ac_cv_prog_RANLIB"
2319 if test -n "$RANLIB"; then
2320   echo "$ac_t""$RANLIB" 1>&6
2321 else
2322   echo "$ac_t""no" 1>&6
2323 fi
2324
2325
2326 if test -z "$ac_cv_prog_RANLIB"; then
2327 if test -n "$ac_tool_prefix"; then
2328   # Extract the first word of "ranlib", so it can be a program name with args.
2329 set dummy ranlib; ac_word=$2
2330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2331 echo "configure:2332: checking for $ac_word" >&5
2332 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2333   echo $ac_n "(cached) $ac_c" 1>&6
2334 else
2335   if test -n "$RANLIB"; then
2336   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2337 else
2338   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2339   ac_dummy="$PATH"
2340   for ac_dir in $ac_dummy; do
2341     test -z "$ac_dir" && ac_dir=.
2342     if test -f $ac_dir/$ac_word; then
2343       ac_cv_prog_RANLIB="ranlib"
2344       break
2345     fi
2346   done
2347   IFS="$ac_save_ifs"
2348   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2349 fi
2350 fi
2351 RANLIB="$ac_cv_prog_RANLIB"
2352 if test -n "$RANLIB"; then
2353   echo "$ac_t""$RANLIB" 1>&6
2354 else
2355   echo "$ac_t""no" 1>&6
2356 fi
2357
2358 else
2359   RANLIB=":"
2360 fi
2361 fi
2362
2363 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2364 set dummy ${ac_tool_prefix}strip; ac_word=$2
2365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2366 echo "configure:2367: checking for $ac_word" >&5
2367 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2368   echo $ac_n "(cached) $ac_c" 1>&6
2369 else
2370   if test -n "$STRIP"; then
2371   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2372 else
2373   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2374   ac_dummy="$PATH"
2375   for ac_dir in $ac_dummy; do
2376     test -z "$ac_dir" && ac_dir=.
2377     if test -f $ac_dir/$ac_word; then
2378       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2379       break
2380     fi
2381   done
2382   IFS="$ac_save_ifs"
2383 fi
2384 fi
2385 STRIP="$ac_cv_prog_STRIP"
2386 if test -n "$STRIP"; then
2387   echo "$ac_t""$STRIP" 1>&6
2388 else
2389   echo "$ac_t""no" 1>&6
2390 fi
2391
2392
2393 if test -z "$ac_cv_prog_STRIP"; then
2394 if test -n "$ac_tool_prefix"; then
2395   # Extract the first word of "strip", so it can be a program name with args.
2396 set dummy strip; ac_word=$2
2397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2398 echo "configure:2399: checking for $ac_word" >&5
2399 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2400   echo $ac_n "(cached) $ac_c" 1>&6
2401 else
2402   if test -n "$STRIP"; then
2403   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2404 else
2405   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2406   ac_dummy="$PATH"
2407   for ac_dir in $ac_dummy; do
2408     test -z "$ac_dir" && ac_dir=.
2409     if test -f $ac_dir/$ac_word; then
2410       ac_cv_prog_STRIP="strip"
2411       break
2412     fi
2413   done
2414   IFS="$ac_save_ifs"
2415   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2416 fi
2417 fi
2418 STRIP="$ac_cv_prog_STRIP"
2419 if test -n "$STRIP"; then
2420   echo "$ac_t""$STRIP" 1>&6
2421 else
2422   echo "$ac_t""no" 1>&6
2423 fi
2424
2425 else
2426   STRIP=":"
2427 fi
2428 fi
2429
2430
2431 # Check for any special flags to pass to ltconfig.
2432 libtool_flags="--cache-file=$cache_file"
2433 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2434 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2435 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2436 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2437 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2438 libtool_flags="$libtool_flags --enable-dlopen"
2439
2440 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2441 if test "${enable_libtool_lock+set}" = set; then
2442   enableval="$enable_libtool_lock"
2443   :
2444 fi
2445
2446 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2447 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2448
2449 # Check whether --with-pic or --without-pic was given.
2450 if test "${with_pic+set}" = set; then
2451   withval="$with_pic"
2452   pic_mode="$withval"
2453 else
2454   pic_mode=default
2455 fi
2456
2457 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2458 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2459
2460 # Some flags need to be propagated to the compiler or linker for good
2461 # libtool support.
2462 case $host in
2463 *-*-irix6*)
2464   # Find out which ABI we are using.
2465   echo '#line 2466 "configure"' > conftest.$ac_ext
2466   if { (eval echo configure:2467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2467     case `/usr/bin/file conftest.$ac_objext` in
2468     *32-bit*)
2469       LD="${LD-ld} -32"
2470       ;;
2471     *N32*)
2472       LD="${LD-ld} -n32"
2473       ;;
2474     *64-bit*)
2475       LD="${LD-ld} -64"
2476       ;;
2477     esac
2478   fi
2479   rm -rf conftest*
2480   ;;
2481
2482 *-*-sco3.2v5*)
2483   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2484   SAVE_CFLAGS="$CFLAGS"
2485   CFLAGS="$CFLAGS -belf"
2486   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2487 echo "configure:2488: checking whether the C compiler needs -belf" >&5
2488 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2489   echo $ac_n "(cached) $ac_c" 1>&6
2490 else
2491   
2492      ac_ext=c
2493 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2494 ac_cpp='$CPP $CPPFLAGS'
2495 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2496 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2497 cross_compiling=$ac_cv_prog_cc_cross
2498
2499      cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2502
2503 int main() {
2504
2505 ; return 0; }
2506 EOF
2507 if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2508   rm -rf conftest*
2509   lt_cv_cc_needs_belf=yes
2510 else
2511   echo "configure: failed program was:" >&5
2512   cat conftest.$ac_ext >&5
2513   rm -rf conftest*
2514   lt_cv_cc_needs_belf=no
2515 fi
2516 rm -f conftest*
2517      ac_ext=c
2518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2519 ac_cpp='$CPP $CPPFLAGS'
2520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2522 cross_compiling=$ac_cv_prog_cc_cross
2523
2524 fi
2525
2526 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2527   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2528     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2529     CFLAGS="$SAVE_CFLAGS"
2530   fi
2531   ;;
2532
2533
2534 esac
2535
2536 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2537 echo "configure:2538: checking how to run the C++ preprocessor" >&5
2538 if test -z "$CXXCPP"; then
2539 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2540   echo $ac_n "(cached) $ac_c" 1>&6
2541 else
2542   ac_ext=C
2543 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2544 ac_cpp='$CXXCPP $CPPFLAGS'
2545 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2546 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2547 cross_compiling=$ac_cv_prog_cxx_cross
2548   CXXCPP="${CXX-g++} -E"
2549   cat > conftest.$ac_ext <<EOF
2550 #line 2551 "configure"
2551 #include "confdefs.h"
2552 #include <stdlib.h>
2553 EOF
2554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2555 { (eval echo configure:2556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2557 if test -z "$ac_err"; then
2558   :
2559 else
2560   echo "$ac_err" >&5
2561   echo "configure: failed program was:" >&5
2562   cat conftest.$ac_ext >&5
2563   rm -rf conftest*
2564   CXXCPP=/lib/cpp
2565 fi
2566 rm -f conftest*
2567   ac_cv_prog_CXXCPP="$CXXCPP"
2568 ac_ext=c
2569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2570 ac_cpp='$CPP $CPPFLAGS'
2571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2573 cross_compiling=$ac_cv_prog_cc_cross
2574 fi
2575 fi
2576 CXXCPP="$ac_cv_prog_CXXCPP"
2577 echo "$ac_t""$CXXCPP" 1>&6
2578
2579
2580 # Save cache, so that ltconfig can load it
2581 cat > confcache <<\EOF
2582 # This file is a shell script that caches the results of configure
2583 # tests run on this system so they can be shared between configure
2584 # scripts and configure runs.  It is not useful on other systems.
2585 # If it contains results you don't want to keep, you may remove or edit it.
2586 #
2587 # By default, configure uses ./config.cache as the cache file,
2588 # creating it if it does not exist already.  You can give configure
2589 # the --cache-file=FILE option to use a different cache file; that is
2590 # what configure does when it calls configure scripts in
2591 # subdirectories, so they share the cache.
2592 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2593 # config.status only pays attention to the cache file if you give it the
2594 # --recheck option to rerun configure.
2595 #
2596 EOF
2597 # The following way of writing the cache mishandles newlines in values,
2598 # but we know of no workaround that is simple, portable, and efficient.
2599 # So, don't put newlines in cache variables' values.
2600 # Ultrix sh set writes to stderr and can't be redirected directly,
2601 # and sets the high bit in the cache file unless we assign to the vars.
2602 (set) 2>&1 |
2603   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2604   *ac_space=\ *)
2605     # `set' does not quote correctly, so add quotes (double-quote substitution
2606     # turns \\\\ into \\, and sed turns \\ into \).
2607     sed -n \
2608       -e "s/'/'\\\\''/g" \
2609       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2610     ;;
2611   *)
2612     # `set' quotes correctly as required by POSIX, so do not add quotes.
2613     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2614     ;;
2615   esac >> confcache
2616 if cmp -s $cache_file confcache; then
2617   :
2618 else
2619   if test -w $cache_file; then
2620     echo "updating cache $cache_file"
2621     cat confcache > $cache_file
2622   else
2623     echo "not updating unwritable cache $cache_file"
2624   fi
2625 fi
2626 rm -f confcache
2627
2628
2629 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2630 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2631 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2632 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2633 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2634 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2635 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2636 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2637 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2638 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2639
2640 # Reload cache, that may have been modified by ltconfig
2641 if test -r "$cache_file"; then
2642   echo "loading cache $cache_file"
2643   . $cache_file
2644 else
2645   echo "creating cache $cache_file"
2646   > $cache_file
2647 fi
2648
2649
2650 # This can be used to rebuild libtool when needed
2651 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2652
2653 # Always use our own libtool.
2654 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2655
2656 # Redirect the config.log output again, so that the ltconfig log is not
2657 # clobbered by the next message.
2658 exec 5>>./config.log
2659
2660
2661
2662 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2663 lt_save_CC="$CC"
2664 lt_save_CFLAGS="$CFLAGS"
2665 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2666 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2667 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2668 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2669 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2670 deplibs_check_method="$deplibs_check_method" \
2671 file_magic_cmd="$file_magic_cmd" \
2672 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2673 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2674 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2675 CC="$lt_save_CC"
2676 CFLAGS="$lt_save_CFLAGS"
2677
2678 # Redirect the config.log output again, so that the ltconfig log is not
2679 # clobbered by the next message.
2680 exec 5>>./config.log
2681
2682   
2683
2684   
2685          
2686          
2687
2688
2689
2690 # Check for c++ or library specific bits that don't require linking.
2691 #GLIBCPP_CHECK_COMPILER_VERSION
2692 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2693 echo "configure:2694: checking for GNU make" >&5
2694 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2695   echo $ac_n "(cached) $ac_c" 1>&6
2696 else
2697   _cv_gnu_make_command='' ;
2698           for a in "${MAKE-make}" make gmake gnumake ; do
2699                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2700                   then
2701                           _cv_gnu_make_command=$a ;
2702                           break;
2703                   fi
2704           done ;
2705   
2706 fi
2707
2708 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2709   if test  "x$_cv_gnu_make_command" != "x"  ; then
2710           ifGNUmake='' ;
2711   else
2712           ifGNUmake='#' ;
2713   fi
2714   
2715
2716
2717 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2718 # Check whether --enable-debug or --disable-debug was given.
2719 if test "${enable_debug+set}" = set; then
2720   enableval="$enable_debug"
2721   case "${enableval}" in
2722  yes) enable_debug=yes ;;
2723  no)  enable_debug=no ;;
2724  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2725  esac
2726 else
2727   enable_debug=no
2728 fi
2729
2730 case "${enable_debug}" in
2731     yes) 
2732         DEBUG_FLAGS='-O0 -ggdb3'                        
2733         ;; 
2734     no)   
2735         DEBUG_FLAGS='-g'
2736         ;;
2737 esac
2738
2739
2740 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2741 echo "configure:2742: checking how to run the C preprocessor" >&5
2742 # On Suns, sometimes $CPP names a directory.
2743 if test -n "$CPP" && test -d "$CPP"; then
2744   CPP=
2745 fi
2746 if test -z "$CPP"; then
2747 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2748   echo $ac_n "(cached) $ac_c" 1>&6
2749 else
2750     # This must be in double quotes, not single quotes, because CPP may get
2751   # substituted into the Makefile and "${CC-cc}" will confuse make.
2752   CPP="${CC-cc} -E"
2753   # On the NeXT, cc -E runs the code through the compiler's parser,
2754   # not just through cpp.
2755   cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2758 #include <assert.h>
2759 Syntax Error
2760 EOF
2761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2762 { (eval echo configure:2763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2764 if test -z "$ac_err"; then
2765   :
2766 else
2767   echo "$ac_err" >&5
2768   echo "configure: failed program was:" >&5
2769   cat conftest.$ac_ext >&5
2770   rm -rf conftest*
2771   CPP="${CC-cc} -E -traditional-cpp"
2772   cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2775 #include <assert.h>
2776 Syntax Error
2777 EOF
2778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2779 { (eval echo configure:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2781 if test -z "$ac_err"; then
2782   :
2783 else
2784   echo "$ac_err" >&5
2785   echo "configure: failed program was:" >&5
2786   cat conftest.$ac_ext >&5
2787   rm -rf conftest*
2788   CPP="${CC-cc} -nologo -E"
2789   cat > conftest.$ac_ext <<EOF
2790 #line 2791 "configure"
2791 #include "confdefs.h"
2792 #include <assert.h>
2793 Syntax Error
2794 EOF
2795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2796 { (eval echo configure:2797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2798 if test -z "$ac_err"; then
2799   :
2800 else
2801   echo "$ac_err" >&5
2802   echo "configure: failed program was:" >&5
2803   cat conftest.$ac_ext >&5
2804   rm -rf conftest*
2805   CPP=/lib/cpp
2806 fi
2807 rm -f conftest*
2808 fi
2809 rm -f conftest*
2810 fi
2811 rm -f conftest*
2812   ac_cv_prog_CPP="$CPP"
2813 fi
2814   CPP="$ac_cv_prog_CPP"
2815 else
2816   ac_cv_prog_CPP="$CPP"
2817 fi
2818 echo "$ac_t""$CPP" 1>&6
2819
2820
2821   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2822 echo "configure:2823: checking for cstdio to use" >&5
2823   # Check whether --enable-cstdio or --disable-cstdio was given.
2824 if test "${enable_cstdio+set}" = set; then
2825   enableval="$enable_cstdio"
2826   if test x$enable_cstdio = xno; then
2827      enable_cstdio=stdio
2828   fi
2829 else
2830   enable_cstdio=stdio
2831 fi
2832
2833
2834   enable_cstdio_flag=$enable_cstdio
2835
2836     case x${enable_cstdio_flag} in
2837     xlibio)
2838       CSTDIO_H=config/io/c_io_libio.h
2839       BASIC_FILE_H=config/io/basic_file_libio.h
2840       BASIC_FILE_CC=config/io/basic_file_libio.cc
2841       echo "$ac_t""libio" 1>&6
2842
2843       # see if we are on a system with libio native (ie, linux)
2844       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2845 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2846 echo "configure:2847: checking for libio.h" >&5
2847 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2848   echo $ac_n "(cached) $ac_c" 1>&6
2849 else
2850   cat > conftest.$ac_ext <<EOF
2851 #line 2852 "configure"
2852 #include "confdefs.h"
2853 #include <libio.h>
2854 EOF
2855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2856 { (eval echo configure:2857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2858 if test -z "$ac_err"; then
2859   rm -rf conftest*
2860   eval "ac_cv_header_$ac_safe=yes"
2861 else
2862   echo "$ac_err" >&5
2863   echo "configure: failed program was:" >&5
2864   cat conftest.$ac_ext >&5
2865   rm -rf conftest*
2866   eval "ac_cv_header_$ac_safe=no"
2867 fi
2868 rm -f conftest*
2869 fi
2870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2871   echo "$ac_t""yes" 1>&6
2872   has_libio=yes
2873 else
2874   echo "$ac_t""no" 1>&6
2875 has_libio=no
2876 fi
2877
2878
2879       # Need to check and see what version of glibc is being used. If
2880       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2881       # compile most of libio for linux systems.
2882       if test x$has_libio = x"yes"; then
2883         case "$target" in
2884           *-*-linux*)
2885               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2886 echo "configure:2887: checking for glibc version >= 2.2" >&5
2887               cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2890
2891             #include <features.h>
2892               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2893                     ok
2894               #endif
2895               
2896 EOF
2897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2898   egrep "ok" >/dev/null 2>&1; then
2899   rm -rf conftest*
2900   glibc_satisfactory=yes
2901 else
2902   rm -rf conftest*
2903   glibc_satisfactory=no
2904 fi
2905 rm -f conftest*
2906
2907               echo "$ac_t""$glibc_satisfactory" 1>&6
2908             ;;
2909         esac
2910
2911         # XXX at the moment, admit defeat and force the recompilation
2912         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2913         glibc_satisfactory=no        
2914
2915         if test x$glibc_satisfactory = x"yes"; then
2916            need_libio=no
2917            need_wlibio=no        
2918         else
2919            need_libio=yes
2920            # bkoz XXX need to add checks to enable this
2921            # pme XXX here's a first pass at such a check
2922            if test x$enable_c_mbchar != xno; then
2923               need_wlibio=yes
2924            else
2925               need_wlibio=no
2926            fi
2927         fi
2928
2929       else
2930          # Using libio, but <libio.h> doesn't exist on the target system. . .
2931          need_libio=yes
2932          # bkoz XXX need to add checks to enable this
2933          # pme XXX here's a first pass at such a check
2934          if test x$enable_c_mbchar != xno; then
2935              need_wlibio=yes
2936          else
2937              need_wlibio=no
2938          fi
2939       fi
2940       ;;
2941     xstdio | x | xno | xnone | xyes)
2942       # default
2943       CSTDIO_H=config/io/c_io_stdio.h
2944       BASIC_FILE_H=config/io/basic_file_stdio.h
2945       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2946       echo "$ac_t""stdio" 1>&6
2947
2948       # We're not using stdio.
2949       need_libio=no
2950       need_wlibio=no
2951       ;;
2952     *)
2953       echo "$enable_cstdio is an unknown io package" 1>&2
2954       exit 1
2955       ;;
2956   esac
2957   
2958   
2959   
2960
2961   # 2000-08-04 bkoz hack
2962   CCODECVT_C=config/io/c_io_libio_codecvt.c
2963   
2964   # 2000-08-04 bkoz hack
2965
2966   
2967
2968 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2969   GLIBCPP_BUILD_LIBIO_TRUE=
2970   GLIBCPP_BUILD_LIBIO_FALSE='#'
2971 else
2972   GLIBCPP_BUILD_LIBIO_TRUE='#'
2973   GLIBCPP_BUILD_LIBIO_FALSE=
2974 fi
2975   
2976
2977 if test "$need_libio" = yes; then
2978   GLIBCPP_NEED_LIBIO_TRUE=
2979   GLIBCPP_NEED_LIBIO_FALSE='#'
2980 else
2981   GLIBCPP_NEED_LIBIO_TRUE='#'
2982   GLIBCPP_NEED_LIBIO_FALSE=
2983 fi
2984   
2985
2986 if test "$need_wlibio" = yes; then
2987   GLIBCPP_NEED_WLIBIO_TRUE=
2988   GLIBCPP_NEED_WLIBIO_FALSE='#'
2989 else
2990   GLIBCPP_NEED_WLIBIO_TRUE='#'
2991   GLIBCPP_NEED_WLIBIO_FALSE=
2992 fi
2993   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2994     libio_la=../libio/libio.la
2995   else
2996     libio_la=
2997   fi
2998   
2999
3000
3001   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3002 echo "configure:3003: checking for clocale to use" >&5
3003   # Check whether --enable-clocale or --disable-clocale was given.
3004 if test "${enable_clocale+set}" = set; then
3005   enableval="$enable_clocale"
3006   if test x$enable_clocale = xno; then
3007      enable_clocale=no
3008   fi
3009 else
3010   enable_clocale=no
3011 fi
3012
3013
3014   enable_clocale_flag=$enable_clocale
3015
3016       if test x$enable_clocale_flag = xno; then
3017     case x${target_os} in
3018       xlinux* | xgnu*)
3019         cat > conftest.$ac_ext <<EOF
3020 #line 3021 "configure"
3021 #include "confdefs.h"
3022
3023         #include <features.h>
3024         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
3025           _GLIBCPP_ok
3026         #endif
3027         
3028 EOF
3029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3030   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3031   rm -rf conftest*
3032   enable_clocale_flag=gnu
3033 else
3034   rm -rf conftest*
3035   enable_clocale_flag=generic
3036 fi
3037 rm -f conftest*
3038
3039
3040         # Test for bugs early in glibc-2.2.x series
3041         if test x$enable_clocale_flag = xgnu; then
3042           if test "$cross_compiling" = yes; then
3043   enable_clocale_flag=generic
3044 else
3045   cat > conftest.$ac_ext <<EOF
3046 #line 3047 "configure"
3047 #include "confdefs.h"
3048
3049           #define _GNU_SOURCE 1
3050           #include <locale.h>
3051           int main()
3052           {
3053             const char __one[] = "Äuglein Augmen";
3054             const char __two[] = "Äuglein";
3055             int i;
3056             int j;
3057             __locale_t  loc;
3058             __locale_t  loc_dup;
3059             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3060             loc_dup = __duplocale(loc);
3061             i = __strcoll_l(__one, __two, loc);
3062             j = __strcoll_l(__one, __two, loc_dup);
3063             return 0;
3064           }
3065           
3066 EOF
3067 if { (eval echo configure:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3068 then
3069   enable_clocale_flag=gnu
3070 else
3071   echo "configure: failed program was:" >&5
3072   cat conftest.$ac_ext >&5
3073   rm -fr conftest*
3074   enable_clocale_flag=generic
3075 fi
3076 rm -fr conftest*
3077 fi
3078
3079         fi
3080
3081         # ... at some point put __strxfrm_l tests in as well.
3082         ;;
3083       *)
3084         enable_clocale_flag=generic
3085         ;;
3086     esac
3087   fi
3088
3089     # Check whether --enable-nls or --disable-nls was given.
3090 if test "${enable_nls+set}" = set; then
3091   enableval="$enable_nls"
3092   :
3093 else
3094   enable_nls=yes
3095 fi
3096
3097   USE_NLS=no
3098
3099     case x${enable_clocale_flag} in
3100     xgeneric)
3101       echo "$ac_t""generic" 1>&6
3102
3103       CLOCALE_H=config/locale/generic/c_locale.h
3104       CLOCALE_CC=config/locale/generic/c_locale.cc
3105       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3106       CCOLLATE_CC=config/locale/generic/collate_members.cc
3107       CCTYPE_CC=config/locale/generic/ctype_members.cc
3108       CMESSAGES_H=config/locale/generic/messages_members.h
3109       CMESSAGES_CC=config/locale/generic/messages_members.cc
3110       CMONEY_CC=config/locale/generic/monetary_members.cc
3111       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3112       CTIME_CC=config/locale/generic/time_members.cc
3113       ;;
3114     xgnu)
3115       echo "$ac_t""gnu" 1>&6
3116
3117       # Declare intention to use gettext, and add support for specific
3118       # languages.
3119       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3120       ALL_LINGUAS="de fr"
3121
3122       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3123       # Extract the first word of "msgfmt", so it can be a program name with args.
3124 set dummy msgfmt; ac_word=$2
3125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3126 echo "configure:3127: checking for $ac_word" >&5
3127 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3128   echo $ac_n "(cached) $ac_c" 1>&6
3129 else
3130   if test -n "$check_msgfmt"; then
3131   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3132 else
3133   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3134   ac_dummy="$PATH"
3135   for ac_dir in $ac_dummy; do
3136     test -z "$ac_dir" && ac_dir=.
3137     if test -f $ac_dir/$ac_word; then
3138       ac_cv_prog_check_msgfmt="yes"
3139       break
3140     fi
3141   done
3142   IFS="$ac_save_ifs"
3143   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3144 fi
3145 fi
3146 check_msgfmt="$ac_cv_prog_check_msgfmt"
3147 if test -n "$check_msgfmt"; then
3148   echo "$ac_t""$check_msgfmt" 1>&6
3149 else
3150   echo "$ac_t""no" 1>&6
3151 fi
3152
3153       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3154         USE_NLS=yes
3155       fi
3156       # Export the build objects.
3157       for ling in $ALL_LINGUAS; do \
3158         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3159         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3160       done
3161       
3162       
3163
3164       CLOCALE_H=config/locale/gnu/c_locale.h
3165       CLOCALE_CC=config/locale/gnu/c_locale.cc
3166       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3167       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3168       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3169       CMESSAGES_H=config/locale/gnu/messages_members.h
3170       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3171       CMONEY_CC=config/locale/gnu/monetary_members.cc
3172       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3173       CTIME_CC=config/locale/gnu/time_members.cc
3174       ;;
3175     xieee_1003.1-2001)
3176       echo "$ac_t""generic" 1>&6
3177
3178       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3179       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3180       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3181       CCOLLATE_CC=config/locale/generic/collate_members.cc
3182       CCTYPE_CC=config/locale/generic/ctype_members.cc
3183       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3184       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3185       CMONEY_CC=config/locale/generic/monetary_members.cc
3186       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3187       CTIME_CC=config/locale/generic/time_members.cc
3188       ;;
3189     *)
3190       echo "$enable_clocale is an unknown locale package" 1>&2
3191       exit 1
3192       ;;
3193   esac
3194
3195   # This is where the testsuite looks for locale catalogs, using the
3196   # -DLOCALEDIR define during testsuite compilation.
3197   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3198   
3199
3200   
3201   
3202   
3203   
3204   
3205   
3206   
3207   
3208   
3209   
3210   
3211
3212 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3213 if test "${enable_c_mbchar+set}" = set; then
3214   enableval="$enable_c_mbchar"
3215   case "$enableval" in
3216  yes) enable_c_mbchar=yes ;;
3217  no)  enable_c_mbchar=no ;;
3218  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3219  esac
3220 else
3221   enable_c_mbchar=yes
3222 fi
3223
3224   
3225   # Check whether --enable-c99 or --disable-c99 was given.
3226 if test "${enable_c99+set}" = set; then
3227   enableval="$enable_c99"
3228     case "$enableval" in
3229    yes) enable_c99=yes ;;
3230    no)  enable_c99=no ;;
3231    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3232    esac
3233 else
3234   enable_c99=yes
3235 fi
3236  
3237   
3238   ac_ext=C
3239 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3240 ac_cpp='$CXXCPP $CPPFLAGS'
3241 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3242 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3243 cross_compiling=$ac_cv_prog_cxx_cross
3244
3245
3246   # Check for the existence of <math.h> functions used if C99 is enabled.
3247   ac_c99_math=yes;
3248   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3249 echo "configure:3250: checking for ISO C99 support in <math.h>" >&5
3250   cat > conftest.$ac_ext <<EOF
3251 #line 3252 "configure"
3252 #include "confdefs.h"
3253 #include <math.h>
3254 int main() {
3255 fpclassify(0.0);
3256 ; return 0; }
3257 EOF
3258 if { (eval echo configure:3259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3259   :
3260 else
3261   echo "configure: failed program was:" >&5
3262   cat conftest.$ac_ext >&5
3263   rm -rf conftest*
3264   ac_c99_math=no
3265 fi
3266 rm -f conftest*
3267   cat > conftest.$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3270 #include <math.h>
3271 int main() {
3272 isfinite(0.0);
3273 ; return 0; }
3274 EOF
3275 if { (eval echo configure:3276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3276   :
3277 else
3278   echo "configure: failed program was:" >&5
3279   cat conftest.$ac_ext >&5
3280   rm -rf conftest*
3281   ac_c99_math=no
3282 fi
3283 rm -f conftest*
3284   cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3287 #include <math.h>
3288 int main() {
3289 isinf(0.0);
3290 ; return 0; }
3291 EOF
3292 if { (eval echo configure:3293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3293   :
3294 else
3295   echo "configure: failed program was:" >&5
3296   cat conftest.$ac_ext >&5
3297   rm -rf conftest*
3298   ac_c99_math=no
3299 fi
3300 rm -f conftest*
3301   cat > conftest.$ac_ext <<EOF
3302 #line 3303 "configure"
3303 #include "confdefs.h"
3304 #include <math.h>
3305 int main() {
3306 isnan(0.0);
3307 ; return 0; }
3308 EOF
3309 if { (eval echo configure:3310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3310   :
3311 else
3312   echo "configure: failed program was:" >&5
3313   cat conftest.$ac_ext >&5
3314   rm -rf conftest*
3315   ac_c99_math=no
3316 fi
3317 rm -f conftest*
3318   cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 #include <math.h>
3322 int main() {
3323 isnormal(0.0);
3324 ; return 0; }
3325 EOF
3326 if { (eval echo configure:3327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3327   :
3328 else
3329   echo "configure: failed program was:" >&5
3330   cat conftest.$ac_ext >&5
3331   rm -rf conftest*
3332   ac_c99_math=no
3333 fi
3334 rm -f conftest*
3335   cat > conftest.$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3338 #include <math.h>
3339 int main() {
3340 signbit(0.0);
3341 ; return 0; }
3342 EOF
3343 if { (eval echo configure:3344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3344   :
3345 else
3346   echo "configure: failed program was:" >&5
3347   cat conftest.$ac_ext >&5
3348   rm -rf conftest*
3349   ac_c99_math=no
3350 fi
3351 rm -f conftest*
3352   cat > conftest.$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3355 #include <math.h>
3356 int main() {
3357 isgreater(0.0,0.0);
3358 ; return 0; }
3359 EOF
3360 if { (eval echo configure:3361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3361   :
3362 else
3363   echo "configure: failed program was:" >&5
3364   cat conftest.$ac_ext >&5
3365   rm -rf conftest*
3366   ac_c99_math=no
3367 fi
3368 rm -f conftest*
3369   cat > conftest.$ac_ext <<EOF
3370 #line 3371 "configure"
3371 #include "confdefs.h"
3372 #include <math.h>
3373 int main() {
3374 isgreaterequal(0.0,0.0);
3375 ; return 0; }
3376 EOF
3377 if { (eval echo configure:3378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3378   :
3379 else
3380   echo "configure: failed program was:" >&5
3381   cat conftest.$ac_ext >&5
3382   rm -rf conftest*
3383   ac_c99_math=no
3384 fi
3385 rm -f conftest*
3386   cat > conftest.$ac_ext <<EOF
3387 #line 3388 "configure"
3388 #include "confdefs.h"
3389 #include <math.h>
3390 int main() {
3391 isless(0.0,0.0);
3392 ; return 0; }
3393 EOF
3394 if { (eval echo configure:3395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3395   :
3396 else
3397   echo "configure: failed program was:" >&5
3398   cat conftest.$ac_ext >&5
3399   rm -rf conftest*
3400   ac_c99_math=no
3401 fi
3402 rm -f conftest*
3403   cat > conftest.$ac_ext <<EOF
3404 #line 3405 "configure"
3405 #include "confdefs.h"
3406 #include <math.h>
3407 int main() {
3408 islessequal(0.0,0.0);
3409 ; return 0; }
3410 EOF
3411 if { (eval echo configure:3412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3412   :
3413 else
3414   echo "configure: failed program was:" >&5
3415   cat conftest.$ac_ext >&5
3416   rm -rf conftest*
3417   ac_c99_math=no
3418 fi
3419 rm -f conftest*
3420   cat > conftest.$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3423 #include <math.h>
3424 int main() {
3425 islessgreater(0.0,0.0);
3426 ; return 0; }
3427 EOF
3428 if { (eval echo configure:3429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3429   :
3430 else
3431   echo "configure: failed program was:" >&5
3432   cat conftest.$ac_ext >&5
3433   rm -rf conftest*
3434   ac_c99_math=no
3435 fi
3436 rm -f conftest*
3437   cat > conftest.$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 #include <math.h>
3441 int main() {
3442 isunordered(0.0,0.0);
3443 ; return 0; }
3444 EOF
3445 if { (eval echo configure:3446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3446   :
3447 else
3448   echo "configure: failed program was:" >&5
3449   cat conftest.$ac_ext >&5
3450   rm -rf conftest*
3451   ac_c99_math=no
3452 fi
3453 rm -f conftest*
3454   echo "$ac_t""$ac_c99_math" 1>&6
3455
3456   # Check for the existence in <stdio.h> of vscanf, et. al.
3457   ac_c99_stdio=yes;
3458   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3459 echo "configure:3460: checking for ISO C99 support in <stdio.h>" >&5
3460   cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3463 #include <stdio.h>
3464 int main() {
3465 snprintf("12", 0, "%i");
3466 ; return 0; }
3467 EOF
3468 if { (eval echo configure:3469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3469   :
3470 else
3471   echo "configure: failed program was:" >&5
3472   cat conftest.$ac_ext >&5
3473   rm -rf conftest*
3474   ac_c99_stdio=no
3475 fi
3476 rm -f conftest*
3477   cat > conftest.$ac_ext <<EOF
3478 #line 3479 "configure"
3479 #include "confdefs.h"
3480 #include <stdio.h>
3481                   #include <stdarg.h>
3482                   void foo(char* fmt, ...)
3483                   {va_list args; va_start(args, fmt);
3484                   vfscanf(stderr, "%i", args);}
3485 int main() {
3486
3487 ; return 0; }
3488 EOF
3489 if { (eval echo configure:3490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3490   :
3491 else
3492   echo "configure: failed program was:" >&5
3493   cat conftest.$ac_ext >&5
3494   rm -rf conftest*
3495   ac_c99_stdio=no
3496 fi
3497 rm -f conftest*
3498   cat > conftest.$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3501 #include <stdio.h>
3502                   #include <stdarg.h>
3503                   void foo(char* fmt, ...)
3504                   {va_list args; va_start(args, fmt);
3505                   vscanf("%i", args);}
3506 int main() {
3507
3508 ; return 0; }
3509 EOF
3510 if { (eval echo configure:3511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3511   :
3512 else
3513   echo "configure: failed program was:" >&5
3514   cat conftest.$ac_ext >&5
3515   rm -rf conftest*
3516   ac_c99_stdio=no
3517 fi
3518 rm -f conftest*
3519   cat > conftest.$ac_ext <<EOF
3520 #line 3521 "configure"
3521 #include "confdefs.h"
3522 #include <stdio.h>
3523                   #include <stdarg.h>
3524                   void foo(char* fmt, ...)
3525                   {va_list args; va_start(args, fmt);
3526                   vsnprintf(fmt, 0, "%i", args);}
3527 int main() {
3528
3529 ; return 0; }
3530 EOF
3531 if { (eval echo configure:3532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3532   :
3533 else
3534   echo "configure: failed program was:" >&5
3535   cat conftest.$ac_ext >&5
3536   rm -rf conftest*
3537   ac_c99_stdio=no
3538 fi
3539 rm -f conftest*
3540   cat > conftest.$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 #include <stdio.h>
3544                   #include <stdarg.h>
3545                   void foo(char* fmt, ...)
3546                   {va_list args; va_start(args, fmt);
3547                   vsscanf(fmt, "%i", args);}
3548 int main() {
3549
3550 ; return 0; }
3551 EOF
3552 if { (eval echo configure:3553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3553   :
3554 else
3555   echo "configure: failed program was:" >&5
3556   cat conftest.$ac_ext >&5
3557   rm -rf conftest*
3558   ac_c99_stdio=no
3559 fi
3560 rm -f conftest*
3561   echo "$ac_t""$ac_c99_stdio" 1>&6
3562
3563   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3564   ac_c99_stdlib=yes;
3565   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3566 echo "configure:3567: checking for lldiv_t declaration" >&5
3567   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3568   echo $ac_n "(cached) $ac_c" 1>&6
3569 else
3570   
3571   cat > conftest.$ac_ext <<EOF
3572 #line 3573 "configure"
3573 #include "confdefs.h"
3574 #include <stdlib.h>
3575 int main() {
3576  lldiv_t mydivt;
3577 ; return 0; }
3578 EOF
3579 if { (eval echo configure:3580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3580   rm -rf conftest*
3581   ac_c99_lldiv_t=yes
3582 else
3583   echo "configure: failed program was:" >&5
3584   cat conftest.$ac_ext >&5
3585   rm -rf conftest*
3586   ac_c99_lldiv_t=no
3587 fi
3588 rm -f conftest*
3589   
3590 fi
3591
3592   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3593
3594   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3595 echo "configure:3596: checking for ISO C99 support in <stdlib.h>" >&5
3596   cat > conftest.$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3599 #include <stdlib.h>
3600 int main() {
3601 char* tmp; strtof("gnu", &tmp);
3602 ; return 0; }
3603 EOF
3604 if { (eval echo configure:3605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3605   :
3606 else
3607   echo "configure: failed program was:" >&5
3608   cat conftest.$ac_ext >&5
3609   rm -rf conftest*
3610   ac_c99_stdlib=no
3611 fi
3612 rm -f conftest*
3613   cat > conftest.$ac_ext <<EOF
3614 #line 3615 "configure"
3615 #include "confdefs.h"
3616 #include <stdlib.h>
3617 int main() {
3618 char* tmp; strtold("gnu", &tmp);
3619 ; return 0; }
3620 EOF
3621 if { (eval echo configure:3622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3622   :
3623 else
3624   echo "configure: failed program was:" >&5
3625   cat conftest.$ac_ext >&5
3626   rm -rf conftest*
3627   ac_c99_stdlib=no
3628 fi
3629 rm -f conftest*
3630   cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 #include <stdlib.h>
3634 int main() {
3635 llabs(10);
3636 ; return 0; }
3637 EOF
3638 if { (eval echo configure:3639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3639   :
3640 else
3641   echo "configure: failed program was:" >&5
3642   cat conftest.$ac_ext >&5
3643   rm -rf conftest*
3644   ac_c99_stdlib=no
3645 fi
3646 rm -f conftest*
3647   cat > conftest.$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3650 #include <stdlib.h>
3651 int main() {
3652 lldiv(10,1);
3653 ; return 0; }
3654 EOF
3655 if { (eval echo configure:3656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3656   :
3657 else
3658   echo "configure: failed program was:" >&5
3659   cat conftest.$ac_ext >&5
3660   rm -rf conftest*
3661   ac_c99_stdlib=no
3662 fi
3663 rm -f conftest*
3664   cat > conftest.$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3667 #include <stdlib.h>
3668 int main() {
3669 atoll("10");
3670 ; return 0; }
3671 EOF
3672 if { (eval echo configure:3673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3673   :
3674 else
3675   echo "configure: failed program was:" >&5
3676   cat conftest.$ac_ext >&5
3677   rm -rf conftest*
3678   ac_c99_stdlib=no
3679 fi
3680 rm -f conftest*
3681   cat > conftest.$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 #include <stdlib.h>
3685 int main() {
3686 _Exit(0);
3687 ; return 0; }
3688 EOF
3689 if { (eval echo configure:3690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3690   :
3691 else
3692   echo "configure: failed program was:" >&5
3693   cat conftest.$ac_ext >&5
3694   rm -rf conftest*
3695   ac_c99_stdlib=no
3696 fi
3697 rm -f conftest*
3698   if test x"$ac_c99_lldiv_t" = x"no"; then
3699     ac_c99_stdlib=no; 
3700   fi; 
3701   echo "$ac_t""$ac_c99_stdlib" 1>&6
3702
3703   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3704   # XXX the wchar.h checks should be rolled into the general C99 bits.
3705   ac_c99_wchar=yes;
3706   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3707 echo "configure:3708: checking for additional ISO C99 support in <wchar.h>" >&5
3708   cat > conftest.$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3711 #include <wchar.h>
3712 int main() {
3713 wcstold(L"10.0", NULL);
3714 ; return 0; }
3715 EOF
3716 if { (eval echo configure:3717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3717   :
3718 else
3719   echo "configure: failed program was:" >&5
3720   cat conftest.$ac_ext >&5
3721   rm -rf conftest*
3722   ac_c99_wchar=no
3723 fi
3724 rm -f conftest*
3725   cat > conftest.$ac_ext <<EOF
3726 #line 3727 "configure"
3727 #include "confdefs.h"
3728 #include <wchar.h>
3729 int main() {
3730 wcstoll(L"10", NULL, 10);
3731 ; return 0; }
3732 EOF
3733 if { (eval echo configure:3734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3734   :
3735 else
3736   echo "configure: failed program was:" >&5
3737   cat conftest.$ac_ext >&5
3738   rm -rf conftest*
3739   ac_c99_wchar=no
3740 fi
3741 rm -f conftest*
3742   cat > conftest.$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3745 #include <wchar.h>
3746 int main() {
3747 wcstoull(L"10", NULL, 10);
3748 ; return 0; }
3749 EOF
3750 if { (eval echo configure:3751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3751   :
3752 else
3753   echo "configure: failed program was:" >&5
3754   cat conftest.$ac_ext >&5
3755   rm -rf conftest*
3756   ac_c99_wchar=no
3757 fi
3758 rm -f conftest*
3759   echo "$ac_t""$ac_c99_wchar" 1>&6
3760
3761   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3762 echo "configure:3763: checking for enabled ISO C99 support" >&5
3763   if test x"$ac_c99_math" = x"no" ||
3764      test x"$ac_c99_stdio" = x"no" ||
3765      test x"$ac_c99_stdlib" = x"no" ||
3766      test x"$ac_c99_wchar" = x"no"; then
3767     enable_c99=no; 
3768   fi; 
3769   echo "$ac_t""$enable_c99" 1>&6
3770
3771   # Option parsed, now set things appropriately
3772   if test x"$enable_c99" = x"yes"; then
3773     cat >> confdefs.h <<\EOF
3774 #define _GLIBCPP_USE_C99 1
3775 EOF
3776
3777   fi
3778
3779   ac_ext=c
3780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3784 cross_compiling=$ac_cv_prog_cc_cross
3785
3786
3787   
3788   # Check whether --enable-long-long or --disable-long-long was given.
3789 if test "${enable_long_long+set}" = set; then
3790   enableval="$enable_long_long"
3791     case "$enableval" in
3792    yes) enable_long_long=yes ;;
3793    no)  enable_long_long=no ;;
3794    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3795    esac
3796 else
3797   enable_long_long=yes
3798 fi
3799
3800   
3801   ac_ext=C
3802 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3803 ac_cpp='$CXXCPP $CPPFLAGS'
3804 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3805 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3806 cross_compiling=$ac_cv_prog_cxx_cross
3807
3808
3809   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3810 echo "configure:3811: checking for enabled long long I/O support" >&5
3811   # iostreams require strtoll, strtoull to compile
3812   cat > conftest.$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3815 #include <stdlib.h>
3816 int main() {
3817 char* tmp; strtoll("gnu", &tmp, 10);
3818 ; return 0; }
3819 EOF
3820 if { (eval echo configure:3821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3821   :
3822 else
3823   echo "configure: failed program was:" >&5
3824   cat conftest.$ac_ext >&5
3825   rm -rf conftest*
3826   enable_long_long=no
3827 fi
3828 rm -f conftest*
3829   cat > conftest.$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3832 #include <stdlib.h>
3833 int main() {
3834 char* tmp; strtoull("gnu", &tmp, 10);
3835 ; return 0; }
3836 EOF
3837 if { (eval echo configure:3838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3838   :
3839 else
3840   echo "configure: failed program was:" >&5
3841   cat conftest.$ac_ext >&5
3842   rm -rf conftest*
3843   enable_long_long=no
3844 fi
3845 rm -f conftest*
3846
3847   # Option parsed, now set things appropriately
3848   if test x"$enable_long_long" = xyes; then
3849     cat >> confdefs.h <<\EOF
3850 #define _GLIBCPP_USE_LONG_LONG 1
3851 EOF
3852
3853   fi
3854   echo "$ac_t""$enable_long_long" 1>&6
3855
3856   ac_ext=c
3857 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3858 ac_cpp='$CPP $CPPFLAGS'
3859 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3860 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3861 cross_compiling=$ac_cv_prog_cc_cross
3862
3863
3864 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3865 echo "configure:3866: checking for c header strategy to use" >&5
3866 # Check whether --enable-cheaders or --disable-cheaders was given.
3867 if test "${enable_cheaders+set}" = set; then
3868   enableval="$enable_cheaders"
3869   
3870   case "$enableval" in
3871    c) 
3872         enable_cheaders=c 
3873         ;;
3874    c_std)  
3875         enable_cheaders=c_std 
3876         ;;
3877    c_shadow)  
3878         enable_cheaders=c_shadow 
3879         ;;
3880    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3881         ;;
3882   esac
3883 else
3884   enable_cheaders=c_std
3885 fi
3886
3887   echo "$ac_t""$enable_cheaders" 1>&6
3888
3889     case "$enable_cheaders" in
3890     c_shadow) 
3891         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_shadow'
3892         ;;
3893     c_std)   
3894         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3895         ;;
3896     c)   
3897         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3898         ;;
3899   esac
3900
3901   
3902   
3903
3904 if test "$enable_cheaders" = c; then
3905   GLIBCPP_C_HEADERS_C_TRUE=
3906   GLIBCPP_C_HEADERS_C_FALSE='#'
3907 else
3908   GLIBCPP_C_HEADERS_C_TRUE='#'
3909   GLIBCPP_C_HEADERS_C_FALSE=
3910 fi
3911   
3912
3913 if test "$enable_cheaders" = c_std; then
3914   GLIBCPP_C_HEADERS_C_STD_TRUE=
3915   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3916 else
3917   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3918   GLIBCPP_C_HEADERS_C_STD_FALSE=
3919 fi
3920   
3921
3922 if test "$c_compatibility" = yes; then
3923   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3924   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3925 else
3926   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3927   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3928 fi
3929
3930
3931   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3932 echo "configure:3933: checking for thread model used by GCC" >&5
3933   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3934   echo "$ac_t""$target_thread_file" 1>&6
3935
3936   if test $target_thread_file != single; then
3937     cat >> confdefs.h <<\EOF
3938 #define HAVE_GTHR_DEFAULT 1
3939 EOF
3940
3941     cat >> confdefs.h <<\EOF
3942 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3943 EOF
3944
3945   fi
3946
3947   glibcpp_thread_h=gthr-$target_thread_file.h
3948   
3949
3950 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3951 if test "${enable_cxx_flags+set}" = set; then
3952   enableval="$enable_cxx_flags"
3953   case "x$enableval" in
3954  xyes)   
3955         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3956  xno|x)  
3957         enable_cxx_flags='' ;;
3958  *)      
3959         enable_cxx_flags="$enableval" ;;
3960  esac
3961 else
3962   enable_cxx_flags='none'
3963 fi
3964
3965
3966 if test "$enable_cxx_flags" = "none"; then 
3967   enable_cxx_flags=''; 
3968 fi
3969
3970 if test -n "$enable_cxx_flags"; then
3971     for f in $enable_cxx_flags; do
3972         case "$f" in
3973             -fhonor-std)  ;;
3974             -*)  ;;
3975             *)   # and we're trying to pass /what/ exactly?
3976                  { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3977         esac
3978     done
3979 fi
3980 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3981
3982
3983
3984   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3985 echo "configure:3986: checking for exception model to use" >&5
3986   
3987   ac_ext=C
3988 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3989 ac_cpp='$CXXCPP $CPPFLAGS'
3990 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3991 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3992 cross_compiling=$ac_cv_prog_cxx_cross
3993
3994   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3995 if test "${enable_sjlj_exceptions+set}" = set; then
3996   enableval="$enable_sjlj_exceptions"
3997   :
3998 else
3999                        cat > conftest.$ac_ext << EOF
4000 #line 4001 "configure"
4001 struct S { ~S(); };
4002 void bar();
4003 void foo()
4004 {
4005   S s;
4006   bar();
4007 }
4008 EOF
4009    old_CXXFLAGS="$CXXFLAGS"  
4010    CXXFLAGS=-S
4011    if { (eval echo configure:4012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4012      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4013        enable_sjlj_exceptions=yes
4014      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4015        enable_sjlj_exceptions=no
4016      fi
4017    fi
4018    CXXFLAGS="$old_CXXFLAGS"
4019    rm -f conftest*
4020 fi
4021
4022    if test x$enable_sjlj_exceptions = xyes; then
4023      cat >> confdefs.h <<\EOF
4024 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4025 EOF
4026
4027      ac_exception_model_name=sjlj
4028    elif test x$enable_sjlj_exceptions = xno; then
4029      ac_exception_model_name="call frame"
4030    else
4031      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4032    fi
4033    ac_ext=c
4034 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4037 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4038 cross_compiling=$ac_cv_prog_cc_cross
4039
4040    echo "$ac_t""$ac_exception_model_name" 1>&6
4041
4042
4043   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4044 echo "configure:4045: checking for use of libunwind" >&5
4045   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4046 if test "${enable_libunwind_exceptions+set}" = set; then
4047   enableval="$enable_libunwind_exceptions"
4048   use_libunwind_exceptions=$enableval
4049 else
4050   use_libunwind_exceptions=no
4051 fi
4052
4053   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4054     if test x"$use_libunwind_exceptions" = xyes; then
4055     LIBUNWIND_FLAG="-lunwind"
4056   else
4057     LIBUNWIND_FLAG=""
4058   fi
4059   
4060
4061 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4062 if test "${enable_concept_checks+set}" = set; then
4063   enableval="$enable_concept_checks"
4064   case "$enableval" in
4065  yes) enable_concept_checks=yes ;;
4066  no)  enable_concept_checks=no ;;
4067  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4068  esac
4069 else
4070   enable_concept_checks=no
4071 fi
4072 if test x"$enable_concept_checks" = xyes; then
4073   cat >> confdefs.h <<\EOF
4074 #define _GLIBCPP_CONCEPT_CHECKS 1
4075 EOF
4076
4077 fi
4078
4079
4080 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4081 for ac_hdr in string.h stdlib.h
4082 do
4083 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4084 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4085 echo "configure:4086: checking for $ac_hdr" >&5
4086 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4087   echo $ac_n "(cached) $ac_c" 1>&6
4088 else
4089   cat > conftest.$ac_ext <<EOF
4090 #line 4091 "configure"
4091 #include "confdefs.h"
4092 #include <$ac_hdr>
4093 EOF
4094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4095 { (eval echo configure:4096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4097 if test -z "$ac_err"; then
4098   rm -rf conftest*
4099   eval "ac_cv_header_$ac_safe=yes"
4100 else
4101   echo "$ac_err" >&5
4102   echo "configure: failed program was:" >&5
4103   cat conftest.$ac_ext >&5
4104   rm -rf conftest*
4105   eval "ac_cv_header_$ac_safe=no"
4106 fi
4107 rm -f conftest*
4108 fi
4109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4110   echo "$ac_t""yes" 1>&6
4111     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4112   cat >> confdefs.h <<EOF
4113 #define $ac_tr_hdr 1
4114 EOF
4115  
4116 else
4117   echo "$ac_t""no" 1>&6
4118 fi
4119 done
4120
4121
4122 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4123
4124   # We are being configured with some form of cross compiler.
4125   GLIBCPP_IS_CROSS_COMPILING=1
4126
4127   # This lets us hard-code the functionality we know we'll have in the cross
4128   # target environment.  "Let" is a sugar-coated word placed on an especially
4129   # dull and tedious hack, actually.
4130   #
4131   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4132   # that involve linking, can't be used:
4133   #    "cannot open sim-crt0.o"
4134   #    "cannot open crt0.o"
4135   # etc.  All this is because there currently exists no unified, consistent
4136   # way for top level CC information to be passed down to target directories:
4137   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4138   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4139   # crosses can be removed.
4140
4141   # If Canadian cross, then don't pick up tools from the build directory.
4142   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4143   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4144     CANADIAN=yes
4145   else
4146     CANADIAN=no
4147   fi
4148
4149   # Construct crosses by hand, eliminating bits that need ld...
4150   # GLIBCPP_CHECK_COMPILER_FEATURES
4151   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4152   # GLIBCPP_CHECK_MATH_SUPPORT
4153
4154   case "$target_alias" in
4155     *-linux*)
4156       os_include_dir="os/gnu-linux"
4157       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4158         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4159         fp.h locale.h float.h inttypes.h
4160 do
4161 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4163 echo "configure:4164: checking for $ac_hdr" >&5
4164 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4165   echo $ac_n "(cached) $ac_c" 1>&6
4166 else
4167   cat > conftest.$ac_ext <<EOF
4168 #line 4169 "configure"
4169 #include "confdefs.h"
4170 #include <$ac_hdr>
4171 EOF
4172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4173 { (eval echo configure:4174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4175 if test -z "$ac_err"; then
4176   rm -rf conftest*
4177   eval "ac_cv_header_$ac_safe=yes"
4178 else
4179   echo "$ac_err" >&5
4180   echo "configure: failed program was:" >&5
4181   cat conftest.$ac_ext >&5
4182   rm -rf conftest*
4183   eval "ac_cv_header_$ac_safe=no"
4184 fi
4185 rm -f conftest*
4186 fi
4187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4188   echo "$ac_t""yes" 1>&6
4189     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4190   cat >> confdefs.h <<EOF
4191 #define $ac_tr_hdr 1
4192 EOF
4193  
4194 else
4195   echo "$ac_t""no" 1>&6
4196 fi
4197 done
4198
4199       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4200       
4201       
4202   # If we're not using GNU ld, then there's no point in even trying these
4203   # tests.  Check for that first.  We should have already tested for gld
4204   # by now (in libtool), but require it now just to be safe...
4205   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4206   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4207   
4208
4209   # The name set by libtool depends on the version of libtool.  Shame on us
4210   # for depending on an impl detail, but c'est la vie.  Older versions used
4211   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4212   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4213   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4214   # set (hence we're using an older libtool), then set it.
4215   if test x${with_gnu_ld+set} != xset; then
4216     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4217       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4218       with_gnu_ld=no
4219     else
4220       with_gnu_ld=$ac_cv_prog_gnu_ld
4221     fi
4222   fi
4223
4224   # Start by getting the version number.  I think the libtool test already
4225   # does some of this, but throws away the result.
4226   
4227   ldver=`$LD --version 2>/dev/null | head -1 | \
4228          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4229   
4230   glibcpp_gnu_ld_version=`echo $ldver | \
4231          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4232
4233   # Set --gc-sections.
4234   if test "$with_gnu_ld" = "notbroken"; then
4235     # GNU ld it is!  Joy and bunny rabbits!
4236
4237     # All these tests are for C++; save the language and the compiler flags.
4238     # Need to do this so that g++ won't try to link in libstdc++
4239     ac_test_CFLAGS="${CFLAGS+set}"
4240     ac_save_CFLAGS="$CFLAGS"
4241     CFLAGS='-x c++  -Wl,--gc-sections'
4242
4243     # Check for -Wl,--gc-sections
4244     # XXX This test is broken at the moment, as symbols required for
4245     # linking are now in libsupc++ (not built yet.....). In addition, 
4246     # this test has cored on solaris in the past. In addition,
4247     # --gc-sections doesn't really work at the moment (keeps on discarding
4248     # used sections, first .eh_frame and now some of the glibc sections for
4249     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4250     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4251 echo "configure:4252: checking for ld that supports -Wl,--gc-sections" >&5
4252     if test "$cross_compiling" = yes; then
4253   ac_sectionLDflags=yes
4254 else
4255   cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4258
4259      int main(void) 
4260      {
4261        try { throw 1; }
4262        catch (...) { };
4263        return 0;
4264      }
4265     
4266 EOF
4267 if { (eval echo configure:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4268 then
4269   ac_sectionLDflags=yes
4270 else
4271   echo "configure: failed program was:" >&5
4272   cat conftest.$ac_ext >&5
4273   rm -fr conftest*
4274   ac_sectionLDflags=no
4275 fi
4276 rm -fr conftest*
4277 fi
4278
4279     if test "$ac_test_CFLAGS" = set; then
4280       CFLAGS="$ac_save_CFLAGS"
4281     else
4282       # this is the suspicious part
4283       CFLAGS=''
4284     fi
4285     if test "$ac_sectionLDflags" = "yes"; then
4286       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4287     fi
4288     echo "$ac_t""$ac_sectionLDflags" 1>&6
4289   fi
4290
4291   # Set linker optimization flags.
4292   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4293     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4294   fi
4295
4296   
4297   
4298
4299       
4300     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4301 echo "configure:4302: checking for main in -lm" >&5
4302 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4304   echo $ac_n "(cached) $ac_c" 1>&6
4305 else
4306   ac_save_LIBS="$LIBS"
4307 LIBS="-lm  $LIBS"
4308 cat > conftest.$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4311
4312 int main() {
4313 main()
4314 ; return 0; }
4315 EOF
4316 if { (eval echo configure:4317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4317   rm -rf conftest*
4318   eval "ac_cv_lib_$ac_lib_var=yes"
4319 else
4320   echo "configure: failed program was:" >&5
4321   cat conftest.$ac_ext >&5
4322   rm -rf conftest*
4323   eval "ac_cv_lib_$ac_lib_var=no"
4324 fi
4325 rm -f conftest*
4326 LIBS="$ac_save_LIBS"
4327
4328 fi
4329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4330   echo "$ac_t""yes" 1>&6
4331     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4332     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4333   cat >> confdefs.h <<EOF
4334 #define $ac_tr_lib 1
4335 EOF
4336
4337   LIBS="-lm $LIBS"
4338
4339 else
4340   echo "$ac_t""no" 1>&6
4341 fi
4342
4343   for ac_func in nan copysignf
4344 do
4345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4346 echo "configure:4347: checking for $ac_func" >&5
4347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4348   echo $ac_n "(cached) $ac_c" 1>&6
4349 else
4350   cat > conftest.$ac_ext <<EOF
4351 #line 4352 "configure"
4352 #include "confdefs.h"
4353 /* System header to define __stub macros and hopefully few prototypes,
4354     which can conflict with char $ac_func(); below.  */
4355 #include <assert.h>
4356 /* Override any gcc2 internal prototype to avoid an error.  */
4357 /* We use char because int might match the return type of a gcc2
4358     builtin and then its argument prototype would still apply.  */
4359 char $ac_func();
4360
4361 int main() {
4362
4363 /* The GNU C library defines this for functions which it implements
4364     to always fail with ENOSYS.  Some functions are actually named
4365     something starting with __ and the normal name is an alias.  */
4366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4367 choke me
4368 #else
4369 $ac_func();
4370 #endif
4371
4372 ; return 0; }
4373 EOF
4374 if { (eval echo configure:4375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4375   rm -rf conftest*
4376   eval "ac_cv_func_$ac_func=yes"
4377 else
4378   echo "configure: failed program was:" >&5
4379   cat conftest.$ac_ext >&5
4380   rm -rf conftest*
4381   eval "ac_cv_func_$ac_func=no"
4382 fi
4383 rm -f conftest*
4384 fi
4385
4386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4387   echo "$ac_t""yes" 1>&6
4388     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4389   cat >> confdefs.h <<EOF
4390 #define $ac_tr_func 1
4391 EOF
4392  
4393 else
4394   echo "$ac_t""no" 1>&6
4395 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4396 fi
4397 done
4398
4399
4400     for ac_func in __signbit
4401 do
4402 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4403 echo "configure:4404: checking for $ac_func" >&5
4404 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4405   echo $ac_n "(cached) $ac_c" 1>&6
4406 else
4407   cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4410 /* System header to define __stub macros and hopefully few prototypes,
4411     which can conflict with char $ac_func(); below.  */
4412 #include <assert.h>
4413 /* Override any gcc2 internal prototype to avoid an error.  */
4414 /* We use char because int might match the return type of a gcc2
4415     builtin and then its argument prototype would still apply.  */
4416 char $ac_func();
4417
4418 int main() {
4419
4420 /* The GNU C library defines this for functions which it implements
4421     to always fail with ENOSYS.  Some functions are actually named
4422     something starting with __ and the normal name is an alias.  */
4423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4424 choke me
4425 #else
4426 $ac_func();
4427 #endif
4428
4429 ; return 0; }
4430 EOF
4431 if { (eval echo configure:4432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4432   rm -rf conftest*
4433   eval "ac_cv_func_$ac_func=yes"
4434 else
4435   echo "configure: failed program was:" >&5
4436   cat conftest.$ac_ext >&5
4437   rm -rf conftest*
4438   eval "ac_cv_func_$ac_func=no"
4439 fi
4440 rm -f conftest*
4441 fi
4442
4443 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4444   echo "$ac_t""yes" 1>&6
4445     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4446   cat >> confdefs.h <<EOF
4447 #define $ac_tr_func 1
4448 EOF
4449  
4450 else
4451   echo "$ac_t""no" 1>&6
4452 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4453 fi
4454 done
4455
4456   for ac_func in __signbitf
4457 do
4458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4459 echo "configure:4460: checking for $ac_func" >&5
4460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4461   echo $ac_n "(cached) $ac_c" 1>&6
4462 else
4463   cat > conftest.$ac_ext <<EOF
4464 #line 4465 "configure"
4465 #include "confdefs.h"
4466 /* System header to define __stub macros and hopefully few prototypes,
4467     which can conflict with char $ac_func(); below.  */
4468 #include <assert.h>
4469 /* Override any gcc2 internal prototype to avoid an error.  */
4470 /* We use char because int might match the return type of a gcc2
4471     builtin and then its argument prototype would still apply.  */
4472 char $ac_func();
4473
4474 int main() {
4475
4476 /* The GNU C library defines this for functions which it implements
4477     to always fail with ENOSYS.  Some functions are actually named
4478     something starting with __ and the normal name is an alias.  */
4479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4480 choke me
4481 #else
4482 $ac_func();
4483 #endif
4484
4485 ; return 0; }
4486 EOF
4487 if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4488   rm -rf conftest*
4489   eval "ac_cv_func_$ac_func=yes"
4490 else
4491   echo "configure: failed program was:" >&5
4492   cat conftest.$ac_ext >&5
4493   rm -rf conftest*
4494   eval "ac_cv_func_$ac_func=no"
4495 fi
4496 rm -f conftest*
4497 fi
4498
4499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4500   echo "$ac_t""yes" 1>&6
4501     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4502   cat >> confdefs.h <<EOF
4503 #define $ac_tr_func 1
4504 EOF
4505  
4506 else
4507   echo "$ac_t""no" 1>&6
4508 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4509 fi
4510 done
4511
4512
4513           if test x$ac_cv_func_copysignl = x"yes"; then
4514     for ac_func in __signbitl
4515 do
4516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4517 echo "configure:4518: checking for $ac_func" >&5
4518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4519   echo $ac_n "(cached) $ac_c" 1>&6
4520 else
4521   cat > conftest.$ac_ext <<EOF
4522 #line 4523 "configure"
4523 #include "confdefs.h"
4524 /* System header to define __stub macros and hopefully few prototypes,
4525     which can conflict with char $ac_func(); below.  */
4526 #include <assert.h>
4527 /* Override any gcc2 internal prototype to avoid an error.  */
4528 /* We use char because int might match the return type of a gcc2
4529     builtin and then its argument prototype would still apply.  */
4530 char $ac_func();
4531
4532 int main() {
4533
4534 /* The GNU C library defines this for functions which it implements
4535     to always fail with ENOSYS.  Some functions are actually named
4536     something starting with __ and the normal name is an alias.  */
4537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4538 choke me
4539 #else
4540 $ac_func();
4541 #endif
4542
4543 ; return 0; }
4544 EOF
4545 if { (eval echo configure:4546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4546   rm -rf conftest*
4547   eval "ac_cv_func_$ac_func=yes"
4548 else
4549   echo "configure: failed program was:" >&5
4550   cat conftest.$ac_ext >&5
4551   rm -rf conftest*
4552   eval "ac_cv_func_$ac_func=no"
4553 fi
4554 rm -f conftest*
4555 fi
4556
4557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4558   echo "$ac_t""yes" 1>&6
4559     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4560   cat >> confdefs.h <<EOF
4561 #define $ac_tr_func 1
4562 EOF
4563  
4564 else
4565   echo "$ac_t""no" 1>&6
4566 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4567 fi
4568 done
4569
4570   fi
4571
4572   
4573
4574       
4575
4576       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4577 echo "configure:4578: checking for mbstate_t" >&5
4578   cat > conftest.$ac_ext <<EOF
4579 #line 4580 "configure"
4580 #include "confdefs.h"
4581 #include <wchar.h>
4582 int main() {
4583 mbstate_t teststate;
4584 ; return 0; }
4585 EOF
4586 if { (eval echo configure:4587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4587   rm -rf conftest*
4588   have_mbstate_t=yes
4589 else
4590   echo "configure: failed program was:" >&5
4591   cat conftest.$ac_ext >&5
4592   rm -rf conftest*
4593   have_mbstate_t=no
4594 fi
4595 rm -f conftest*
4596   echo "$ac_t""$have_mbstate_t" 1>&6
4597   if test x"$have_mbstate_t" = xyes; then
4598     cat >> confdefs.h <<\EOF
4599 #define HAVE_MBSTATE_T 1
4600 EOF
4601
4602   fi
4603
4604     for ac_hdr in wchar.h
4605 do
4606 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4607 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4608 echo "configure:4609: checking for $ac_hdr" >&5
4609 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4610   echo $ac_n "(cached) $ac_c" 1>&6
4611 else
4612   cat > conftest.$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4615 #include <$ac_hdr>
4616 EOF
4617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4618 { (eval echo configure:4619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4620 if test -z "$ac_err"; then
4621   rm -rf conftest*
4622   eval "ac_cv_header_$ac_safe=yes"
4623 else
4624   echo "$ac_err" >&5
4625   echo "configure: failed program was:" >&5
4626   cat conftest.$ac_ext >&5
4627   rm -rf conftest*
4628   eval "ac_cv_header_$ac_safe=no"
4629 fi
4630 rm -f conftest*
4631 fi
4632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4633   echo "$ac_t""yes" 1>&6
4634     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4635   cat >> confdefs.h <<EOF
4636 #define $ac_tr_hdr 1
4637 EOF
4638  ac_has_wchar_h=yes
4639 else
4640   echo "$ac_t""no" 1>&6
4641 ac_has_wchar_h=no
4642 fi
4643 done
4644
4645   for ac_hdr in wctype.h
4646 do
4647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4649 echo "configure:4650: checking for $ac_hdr" >&5
4650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4651   echo $ac_n "(cached) $ac_c" 1>&6
4652 else
4653   cat > conftest.$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4656 #include <$ac_hdr>
4657 EOF
4658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4659 { (eval echo configure:4660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4661 if test -z "$ac_err"; then
4662   rm -rf conftest*
4663   eval "ac_cv_header_$ac_safe=yes"
4664 else
4665   echo "$ac_err" >&5
4666   echo "configure: failed program was:" >&5
4667   cat conftest.$ac_ext >&5
4668   rm -rf conftest*
4669   eval "ac_cv_header_$ac_safe=no"
4670 fi
4671 rm -f conftest*
4672 fi
4673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4674   echo "$ac_t""yes" 1>&6
4675     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4676   cat >> confdefs.h <<EOF
4677 #define $ac_tr_hdr 1
4678 EOF
4679  ac_has_wctype_h=yes
4680 else
4681   echo "$ac_t""no" 1>&6
4682 ac_has_wctype_h=no
4683 fi
4684 done
4685
4686   
4687     if test x"$ac_has_wchar_h" = xyes &&
4688      test x"$ac_has_wctype_h" = xyes &&
4689      test x"$enable_c_mbchar" != xno; then
4690       
4691             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4692 echo "configure:4693: checking for WCHAR_MIN and WCHAR_MAX" >&5
4693     cat > conftest.$ac_ext <<EOF
4694 #line 4695 "configure"
4695 #include "confdefs.h"
4696 #include <wchar.h>
4697 int main() {
4698 int i = WCHAR_MIN; int j = WCHAR_MAX;
4699 ; return 0; }
4700 EOF
4701 if { (eval echo configure:4702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4702   rm -rf conftest*
4703   has_wchar_minmax=yes
4704 else
4705   echo "configure: failed program was:" >&5
4706   cat conftest.$ac_ext >&5
4707   rm -rf conftest*
4708   has_wchar_minmax=no
4709 fi
4710 rm -f conftest*
4711     echo "$ac_t""$has_wchar_minmax" 1>&6
4712     
4713             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4714 echo "configure:4715: checking for WEOF" >&5
4715     cat > conftest.$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4718
4719       #include <wchar.h>
4720       #include <stddef.h>
4721 int main() {
4722 wint_t i = WEOF;
4723 ; return 0; }
4724 EOF
4725 if { (eval echo configure:4726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4726   rm -rf conftest*
4727   has_weof=yes
4728 else
4729   echo "configure: failed program was:" >&5
4730   cat conftest.$ac_ext >&5
4731   rm -rf conftest*
4732   has_weof=no
4733 fi
4734 rm -f conftest*
4735     echo "$ac_t""$has_weof" 1>&6
4736   
4737         ac_wfuncs=yes
4738     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4739 do
4740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4741 echo "configure:4742: checking for $ac_func" >&5
4742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4743   echo $ac_n "(cached) $ac_c" 1>&6
4744 else
4745   cat > conftest.$ac_ext <<EOF
4746 #line 4747 "configure"
4747 #include "confdefs.h"
4748 /* System header to define __stub macros and hopefully few prototypes,
4749     which can conflict with char $ac_func(); below.  */
4750 #include <assert.h>
4751 /* Override any gcc2 internal prototype to avoid an error.  */
4752 /* We use char because int might match the return type of a gcc2
4753     builtin and then its argument prototype would still apply.  */
4754 char $ac_func();
4755
4756 int main() {
4757
4758 /* The GNU C library defines this for functions which it implements
4759     to always fail with ENOSYS.  Some functions are actually named
4760     something starting with __ and the normal name is an alias.  */
4761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4762 choke me
4763 #else
4764 $ac_func();
4765 #endif
4766
4767 ; return 0; }
4768 EOF
4769 if { (eval echo configure:4770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4770   rm -rf conftest*
4771   eval "ac_cv_func_$ac_func=yes"
4772 else
4773   echo "configure: failed program was:" >&5
4774   cat conftest.$ac_ext >&5
4775   rm -rf conftest*
4776   eval "ac_cv_func_$ac_func=no"
4777 fi
4778 rm -f conftest*
4779 fi
4780
4781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4782   echo "$ac_t""yes" 1>&6
4783     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4784   cat >> confdefs.h <<EOF
4785 #define $ac_tr_func 1
4786 EOF
4787  
4788 else
4789   echo "$ac_t""no" 1>&6
4790 \
4791     ac_wfuncs=no
4792 fi
4793 done
4794
4795   
4796         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4797     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4798     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4799     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4800     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4801     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4802 do
4803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4804 echo "configure:4805: checking for $ac_func" >&5
4805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4806   echo $ac_n "(cached) $ac_c" 1>&6
4807 else
4808   cat > conftest.$ac_ext <<EOF
4809 #line 4810 "configure"
4810 #include "confdefs.h"
4811 /* System header to define __stub macros and hopefully few prototypes,
4812     which can conflict with char $ac_func(); below.  */
4813 #include <assert.h>
4814 /* Override any gcc2 internal prototype to avoid an error.  */
4815 /* We use char because int might match the return type of a gcc2
4816     builtin and then its argument prototype would still apply.  */
4817 char $ac_func();
4818
4819 int main() {
4820
4821 /* The GNU C library defines this for functions which it implements
4822     to always fail with ENOSYS.  Some functions are actually named
4823     something starting with __ and the normal name is an alias.  */
4824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4825 choke me
4826 #else
4827 $ac_func();
4828 #endif
4829
4830 ; return 0; }
4831 EOF
4832 if { (eval echo configure:4833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4833   rm -rf conftest*
4834   eval "ac_cv_func_$ac_func=yes"
4835 else
4836   echo "configure: failed program was:" >&5
4837   cat conftest.$ac_ext >&5
4838   rm -rf conftest*
4839   eval "ac_cv_func_$ac_func=no"
4840 fi
4841 rm -f conftest*
4842 fi
4843
4844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4845   echo "$ac_t""yes" 1>&6
4846     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4847   cat >> confdefs.h <<EOF
4848 #define $ac_tr_func 1
4849 EOF
4850  
4851 else
4852   echo "$ac_t""no" 1>&6
4853 \
4854     ac_wfuncs=no
4855 fi
4856 done
4857
4858
4859     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4860 echo "configure:4861: checking for ISO C99 wchar_t support" >&5
4861     if test x"$has_weof" = xyes &&
4862        test x"$has_wchar_minmax" = xyes &&
4863        test x"$ac_wfuncs" = xyes; then
4864       ac_isoC99_wchar_t=yes
4865     else
4866       ac_isoC99_wchar_t=no
4867     fi
4868     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4869   
4870             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4871 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4872 echo "configure:4873: checking for iconv.h" >&5
4873 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4874   echo $ac_n "(cached) $ac_c" 1>&6
4875 else
4876   cat > conftest.$ac_ext <<EOF
4877 #line 4878 "configure"
4878 #include "confdefs.h"
4879 #include <iconv.h>
4880 EOF
4881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882 { (eval echo configure:4883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4884 if test -z "$ac_err"; then
4885   rm -rf conftest*
4886   eval "ac_cv_header_$ac_safe=yes"
4887 else
4888   echo "$ac_err" >&5
4889   echo "configure: failed program was:" >&5
4890   cat conftest.$ac_ext >&5
4891   rm -rf conftest*
4892   eval "ac_cv_header_$ac_safe=no"
4893 fi
4894 rm -f conftest*
4895 fi
4896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4897   echo "$ac_t""yes" 1>&6
4898   ac_has_iconv_h=yes
4899 else
4900   echo "$ac_t""no" 1>&6
4901 ac_has_iconv_h=no
4902 fi
4903
4904     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4905 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4906 echo "configure:4907: checking for langinfo.h" >&5
4907 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4908   echo $ac_n "(cached) $ac_c" 1>&6
4909 else
4910   cat > conftest.$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4913 #include <langinfo.h>
4914 EOF
4915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4916 { (eval echo configure:4917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4918 if test -z "$ac_err"; then
4919   rm -rf conftest*
4920   eval "ac_cv_header_$ac_safe=yes"
4921 else
4922   echo "$ac_err" >&5
4923   echo "configure: failed program was:" >&5
4924   cat conftest.$ac_ext >&5
4925   rm -rf conftest*
4926   eval "ac_cv_header_$ac_safe=no"
4927 fi
4928 rm -f conftest*
4929 fi
4930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4931   echo "$ac_t""yes" 1>&6
4932   ac_has_langinfo_h=yes
4933 else
4934   echo "$ac_t""no" 1>&6
4935 ac_has_langinfo_h=no
4936 fi
4937
4938
4939         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4940 echo "configure:4941: checking for iconv in -liconv" >&5
4941 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4943   echo $ac_n "(cached) $ac_c" 1>&6
4944 else
4945   ac_save_LIBS="$LIBS"
4946 LIBS="-liconv  $LIBS"
4947 cat > conftest.$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4950 /* Override any gcc2 internal prototype to avoid an error.  */
4951 /* We use char because int might match the return type of a gcc2
4952     builtin and then its argument prototype would still apply.  */
4953 char iconv();
4954
4955 int main() {
4956 iconv()
4957 ; return 0; }
4958 EOF
4959 if { (eval echo configure:4960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4960   rm -rf conftest*
4961   eval "ac_cv_lib_$ac_lib_var=yes"
4962 else
4963   echo "configure: failed program was:" >&5
4964   cat conftest.$ac_ext >&5
4965   rm -rf conftest*
4966   eval "ac_cv_lib_$ac_lib_var=no"
4967 fi
4968 rm -f conftest*
4969 LIBS="$ac_save_LIBS"
4970
4971 fi
4972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4973   echo "$ac_t""yes" 1>&6
4974   libiconv="-liconv"
4975 else
4976   echo "$ac_t""no" 1>&6
4977 fi
4978
4979     ac_save_LIBS="$LIBS"
4980     LIBS="$LIBS $libiconv"
4981
4982     for ac_func in iconv_open iconv_close iconv nl_langinfo
4983 do
4984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4985 echo "configure:4986: checking for $ac_func" >&5
4986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4987   echo $ac_n "(cached) $ac_c" 1>&6
4988 else
4989   cat > conftest.$ac_ext <<EOF
4990 #line 4991 "configure"
4991 #include "confdefs.h"
4992 /* System header to define __stub macros and hopefully few prototypes,
4993     which can conflict with char $ac_func(); below.  */
4994 #include <assert.h>
4995 /* Override any gcc2 internal prototype to avoid an error.  */
4996 /* We use char because int might match the return type of a gcc2
4997     builtin and then its argument prototype would still apply.  */
4998 char $ac_func();
4999
5000 int main() {
5001
5002 /* The GNU C library defines this for functions which it implements
5003     to always fail with ENOSYS.  Some functions are actually named
5004     something starting with __ and the normal name is an alias.  */
5005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5006 choke me
5007 #else
5008 $ac_func();
5009 #endif
5010
5011 ; return 0; }
5012 EOF
5013 if { (eval echo configure:5014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5014   rm -rf conftest*
5015   eval "ac_cv_func_$ac_func=yes"
5016 else
5017   echo "configure: failed program was:" >&5
5018   cat conftest.$ac_ext >&5
5019   rm -rf conftest*
5020   eval "ac_cv_func_$ac_func=no"
5021 fi
5022 rm -f conftest*
5023 fi
5024
5025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5026   echo "$ac_t""yes" 1>&6
5027     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5028   cat >> confdefs.h <<EOF
5029 #define $ac_tr_func 1
5030 EOF
5031  \
5032     ac_XPG2funcs=yes
5033 else
5034   echo "$ac_t""no" 1>&6
5035 ac_XPG2funcs=no
5036 fi
5037 done
5038
5039   
5040     LIBS="$ac_save_LIBS"
5041
5042     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5043 echo "configure:5044: checking for XPG2 wchar_t support" >&5
5044     if test x"$ac_has_iconv_h" = xyes &&
5045        test x"$ac_has_langinfo_h" = xyes &&
5046        test x"$ac_XPG2funcs" = xyes; then
5047       ac_XPG2_wchar_t=yes
5048     else
5049       ac_XPG2_wchar_t=no
5050     fi
5051     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5052   
5053             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5054 echo "configure:5055: checking for enabled wchar_t specializations" >&5
5055     if test x"$ac_isoC99_wchar_t" = xyes &&
5056        test x"$ac_XPG2_wchar_t" = xyes; then
5057       cat >> confdefs.h <<\EOF
5058 #define _GLIBCPP_USE_WCHAR_T 1
5059 EOF
5060
5061       echo "$ac_t"""yes"" 1>&6
5062     else
5063       echo "$ac_t"""no"" 1>&6
5064     fi
5065   else
5066         echo "configure: warning: wchar_t support disabled." 1>&2
5067   fi
5068
5069       cat >> confdefs.h <<\EOF
5070 #define HAVE_COPYSIGN 1
5071 EOF
5072
5073       cat >> confdefs.h <<\EOF
5074 #define HAVE_COPYSIGNF 1
5075 EOF
5076
5077       cat >> confdefs.h <<\EOF
5078 #define HAVE_FINITE 1
5079 EOF
5080
5081       cat >> confdefs.h <<\EOF
5082 #define HAVE_FINITEF 1
5083 EOF
5084
5085       cat >> confdefs.h <<\EOF
5086 #define HAVE_FREXPF 1
5087 EOF
5088
5089       cat >> confdefs.h <<\EOF
5090 #define HAVE_HYPOTF 1
5091 EOF
5092
5093       cat >> confdefs.h <<\EOF
5094 #define HAVE_ISINF 1
5095 EOF
5096
5097       cat >> confdefs.h <<\EOF
5098 #define HAVE_ISINFF 1
5099 EOF
5100
5101       cat >> confdefs.h <<\EOF
5102 #define HAVE_ISNAN 1
5103 EOF
5104
5105       cat >> confdefs.h <<\EOF
5106 #define HAVE_ISNANF 1
5107 EOF
5108
5109       cat >> confdefs.h <<\EOF
5110 #define HAVE_SINCOS 1
5111 EOF
5112
5113       cat >> confdefs.h <<\EOF
5114 #define HAVE_SINCOSF 1
5115 EOF
5116
5117       if test x"long_double_math_on_this_cpu" = x"yes"; then
5118         cat >> confdefs.h <<\EOF
5119 #define HAVE_FINITEL 1
5120 EOF
5121
5122         cat >> confdefs.h <<\EOF
5123 #define HAVE_HYPOTL 1
5124 EOF
5125
5126         cat >> confdefs.h <<\EOF
5127 #define HAVE_ISINFL 1
5128 EOF
5129
5130         cat >> confdefs.h <<\EOF
5131 #define HAVE_ISNANL 1
5132 EOF
5133
5134       fi
5135       ;;
5136     *-hpux*)
5137       # Check for available headers.
5138       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5139         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5140         fp.h locale.h float.h inttypes.h
5141 do
5142 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5143 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5144 echo "configure:5145: checking for $ac_hdr" >&5
5145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5146   echo $ac_n "(cached) $ac_c" 1>&6
5147 else
5148   cat > conftest.$ac_ext <<EOF
5149 #line 5150 "configure"
5150 #include "confdefs.h"
5151 #include <$ac_hdr>
5152 EOF
5153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5154 { (eval echo configure:5155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5155 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5156 if test -z "$ac_err"; then
5157   rm -rf conftest*
5158   eval "ac_cv_header_$ac_safe=yes"
5159 else
5160   echo "$ac_err" >&5
5161   echo "configure: failed program was:" >&5
5162   cat conftest.$ac_ext >&5
5163   rm -rf conftest*
5164   eval "ac_cv_header_$ac_safe=no"
5165 fi
5166 rm -f conftest*
5167 fi
5168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5169   echo "$ac_t""yes" 1>&6
5170     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5171   cat >> confdefs.h <<EOF
5172 #define $ac_tr_hdr 1
5173 EOF
5174  
5175 else
5176   echo "$ac_t""no" 1>&6
5177 fi
5178 done
5179
5180       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5181       
5182       
5183   # If we're not using GNU ld, then there's no point in even trying these
5184   # tests.  Check for that first.  We should have already tested for gld
5185   # by now (in libtool), but require it now just to be safe...
5186   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5187   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5188   
5189
5190   # The name set by libtool depends on the version of libtool.  Shame on us
5191   # for depending on an impl detail, but c'est la vie.  Older versions used
5192   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5193   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5194   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5195   # set (hence we're using an older libtool), then set it.
5196   if test x${with_gnu_ld+set} != xset; then
5197     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5198       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5199       with_gnu_ld=no
5200     else
5201       with_gnu_ld=$ac_cv_prog_gnu_ld
5202     fi
5203   fi
5204
5205   # Start by getting the version number.  I think the libtool test already
5206   # does some of this, but throws away the result.
5207   
5208   ldver=`$LD --version 2>/dev/null | head -1 | \
5209          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5210   
5211   glibcpp_gnu_ld_version=`echo $ldver | \
5212          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5213
5214   # Set --gc-sections.
5215   if test "$with_gnu_ld" = "notbroken"; then
5216     # GNU ld it is!  Joy and bunny rabbits!
5217
5218     # All these tests are for C++; save the language and the compiler flags.
5219     # Need to do this so that g++ won't try to link in libstdc++
5220     ac_test_CFLAGS="${CFLAGS+set}"
5221     ac_save_CFLAGS="$CFLAGS"
5222     CFLAGS='-x c++  -Wl,--gc-sections'
5223
5224     # Check for -Wl,--gc-sections
5225     # XXX This test is broken at the moment, as symbols required for
5226     # linking are now in libsupc++ (not built yet.....). In addition, 
5227     # this test has cored on solaris in the past. In addition,
5228     # --gc-sections doesn't really work at the moment (keeps on discarding
5229     # used sections, first .eh_frame and now some of the glibc sections for
5230     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5231     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5232 echo "configure:5233: checking for ld that supports -Wl,--gc-sections" >&5
5233     if test "$cross_compiling" = yes; then
5234   ac_sectionLDflags=yes
5235 else
5236   cat > conftest.$ac_ext <<EOF
5237 #line 5238 "configure"
5238 #include "confdefs.h"
5239
5240      int main(void) 
5241      {
5242        try { throw 1; }
5243        catch (...) { };
5244        return 0;
5245      }
5246     
5247 EOF
5248 if { (eval echo configure:5249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5249 then
5250   ac_sectionLDflags=yes
5251 else
5252   echo "configure: failed program was:" >&5
5253   cat conftest.$ac_ext >&5
5254   rm -fr conftest*
5255   ac_sectionLDflags=no
5256 fi
5257 rm -fr conftest*
5258 fi
5259
5260     if test "$ac_test_CFLAGS" = set; then
5261       CFLAGS="$ac_save_CFLAGS"
5262     else
5263       # this is the suspicious part
5264       CFLAGS=''
5265     fi
5266     if test "$ac_sectionLDflags" = "yes"; then
5267       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5268     fi
5269     echo "$ac_t""$ac_sectionLDflags" 1>&6
5270   fi
5271
5272   # Set linker optimization flags.
5273   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5274     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5275   fi
5276
5277   
5278   
5279
5280       
5281     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5282 echo "configure:5283: checking for main in -lm" >&5
5283 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5284 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5285   echo $ac_n "(cached) $ac_c" 1>&6
5286 else
5287   ac_save_LIBS="$LIBS"
5288 LIBS="-lm  $LIBS"
5289 cat > conftest.$ac_ext <<EOF
5290 #line 5291 "configure"
5291 #include "confdefs.h"
5292
5293 int main() {
5294 main()
5295 ; return 0; }
5296 EOF
5297 if { (eval echo configure:5298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5298   rm -rf conftest*
5299   eval "ac_cv_lib_$ac_lib_var=yes"
5300 else
5301   echo "configure: failed program was:" >&5
5302   cat conftest.$ac_ext >&5
5303   rm -rf conftest*
5304   eval "ac_cv_lib_$ac_lib_var=no"
5305 fi
5306 rm -f conftest*
5307 LIBS="$ac_save_LIBS"
5308
5309 fi
5310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5311   echo "$ac_t""yes" 1>&6
5312     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5313     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5314   cat >> confdefs.h <<EOF
5315 #define $ac_tr_lib 1
5316 EOF
5317
5318   LIBS="-lm $LIBS"
5319
5320 else
5321   echo "$ac_t""no" 1>&6
5322 fi
5323
5324   for ac_func in nan copysignf
5325 do
5326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5327 echo "configure:5328: checking for $ac_func" >&5
5328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5329   echo $ac_n "(cached) $ac_c" 1>&6
5330 else
5331   cat > conftest.$ac_ext <<EOF
5332 #line 5333 "configure"
5333 #include "confdefs.h"
5334 /* System header to define __stub macros and hopefully few prototypes,
5335     which can conflict with char $ac_func(); below.  */
5336 #include <assert.h>
5337 /* Override any gcc2 internal prototype to avoid an error.  */
5338 /* We use char because int might match the return type of a gcc2
5339     builtin and then its argument prototype would still apply.  */
5340 char $ac_func();
5341
5342 int main() {
5343
5344 /* The GNU C library defines this for functions which it implements
5345     to always fail with ENOSYS.  Some functions are actually named
5346     something starting with __ and the normal name is an alias.  */
5347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5348 choke me
5349 #else
5350 $ac_func();
5351 #endif
5352
5353 ; return 0; }
5354 EOF
5355 if { (eval echo configure:5356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5356   rm -rf conftest*
5357   eval "ac_cv_func_$ac_func=yes"
5358 else
5359   echo "configure: failed program was:" >&5
5360   cat conftest.$ac_ext >&5
5361   rm -rf conftest*
5362   eval "ac_cv_func_$ac_func=no"
5363 fi
5364 rm -f conftest*
5365 fi
5366
5367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5368   echo "$ac_t""yes" 1>&6
5369     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5370   cat >> confdefs.h <<EOF
5371 #define $ac_tr_func 1
5372 EOF
5373  
5374 else
5375   echo "$ac_t""no" 1>&6
5376 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5377 fi
5378 done
5379
5380
5381     for ac_func in __signbit
5382 do
5383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5384 echo "configure:5385: checking for $ac_func" >&5
5385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5386   echo $ac_n "(cached) $ac_c" 1>&6
5387 else
5388   cat > conftest.$ac_ext <<EOF
5389 #line 5390 "configure"
5390 #include "confdefs.h"
5391 /* System header to define __stub macros and hopefully few prototypes,
5392     which can conflict with char $ac_func(); below.  */
5393 #include <assert.h>
5394 /* Override any gcc2 internal prototype to avoid an error.  */
5395 /* We use char because int might match the return type of a gcc2
5396     builtin and then its argument prototype would still apply.  */
5397 char $ac_func();
5398
5399 int main() {
5400
5401 /* The GNU C library defines this for functions which it implements
5402     to always fail with ENOSYS.  Some functions are actually named
5403     something starting with __ and the normal name is an alias.  */
5404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5405 choke me
5406 #else
5407 $ac_func();
5408 #endif
5409
5410 ; return 0; }
5411 EOF
5412 if { (eval echo configure:5413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5413   rm -rf conftest*
5414   eval "ac_cv_func_$ac_func=yes"
5415 else
5416   echo "configure: failed program was:" >&5
5417   cat conftest.$ac_ext >&5
5418   rm -rf conftest*
5419   eval "ac_cv_func_$ac_func=no"
5420 fi
5421 rm -f conftest*
5422 fi
5423
5424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5425   echo "$ac_t""yes" 1>&6
5426     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5427   cat >> confdefs.h <<EOF
5428 #define $ac_tr_func 1
5429 EOF
5430  
5431 else
5432   echo "$ac_t""no" 1>&6
5433 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5434 fi
5435 done
5436
5437   for ac_func in __signbitf
5438 do
5439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5440 echo "configure:5441: checking for $ac_func" >&5
5441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5442   echo $ac_n "(cached) $ac_c" 1>&6
5443 else
5444   cat > conftest.$ac_ext <<EOF
5445 #line 5446 "configure"
5446 #include "confdefs.h"
5447 /* System header to define __stub macros and hopefully few prototypes,
5448     which can conflict with char $ac_func(); below.  */
5449 #include <assert.h>
5450 /* Override any gcc2 internal prototype to avoid an error.  */
5451 /* We use char because int might match the return type of a gcc2
5452     builtin and then its argument prototype would still apply.  */
5453 char $ac_func();
5454
5455 int main() {
5456
5457 /* The GNU C library defines this for functions which it implements
5458     to always fail with ENOSYS.  Some functions are actually named
5459     something starting with __ and the normal name is an alias.  */
5460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5461 choke me
5462 #else
5463 $ac_func();
5464 #endif
5465
5466 ; return 0; }
5467 EOF
5468 if { (eval echo configure:5469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5469   rm -rf conftest*
5470   eval "ac_cv_func_$ac_func=yes"
5471 else
5472   echo "configure: failed program was:" >&5
5473   cat conftest.$ac_ext >&5
5474   rm -rf conftest*
5475   eval "ac_cv_func_$ac_func=no"
5476 fi
5477 rm -f conftest*
5478 fi
5479
5480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5481   echo "$ac_t""yes" 1>&6
5482     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5483   cat >> confdefs.h <<EOF
5484 #define $ac_tr_func 1
5485 EOF
5486  
5487 else
5488   echo "$ac_t""no" 1>&6
5489 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5490 fi
5491 done
5492
5493
5494           if test x$ac_cv_func_copysignl = x"yes"; then
5495     for ac_func in __signbitl
5496 do
5497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5498 echo "configure:5499: checking for $ac_func" >&5
5499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5500   echo $ac_n "(cached) $ac_c" 1>&6
5501 else
5502   cat > conftest.$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5505 /* System header to define __stub macros and hopefully few prototypes,
5506     which can conflict with char $ac_func(); below.  */
5507 #include <assert.h>
5508 /* Override any gcc2 internal prototype to avoid an error.  */
5509 /* We use char because int might match the return type of a gcc2
5510     builtin and then its argument prototype would still apply.  */
5511 char $ac_func();
5512
5513 int main() {
5514
5515 /* The GNU C library defines this for functions which it implements
5516     to always fail with ENOSYS.  Some functions are actually named
5517     something starting with __ and the normal name is an alias.  */
5518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5519 choke me
5520 #else
5521 $ac_func();
5522 #endif
5523
5524 ; return 0; }
5525 EOF
5526 if { (eval echo configure:5527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5527   rm -rf conftest*
5528   eval "ac_cv_func_$ac_func=yes"
5529 else
5530   echo "configure: failed program was:" >&5
5531   cat conftest.$ac_ext >&5
5532   rm -rf conftest*
5533   eval "ac_cv_func_$ac_func=no"
5534 fi
5535 rm -f conftest*
5536 fi
5537
5538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5539   echo "$ac_t""yes" 1>&6
5540     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5541   cat >> confdefs.h <<EOF
5542 #define $ac_tr_func 1
5543 EOF
5544  
5545 else
5546   echo "$ac_t""no" 1>&6
5547 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5548 fi
5549 done
5550
5551   fi
5552
5553   
5554
5555       
5556
5557       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5558 echo "configure:5559: checking for mbstate_t" >&5
5559   cat > conftest.$ac_ext <<EOF
5560 #line 5561 "configure"
5561 #include "confdefs.h"
5562 #include <wchar.h>
5563 int main() {
5564 mbstate_t teststate;
5565 ; return 0; }
5566 EOF
5567 if { (eval echo configure:5568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5568   rm -rf conftest*
5569   have_mbstate_t=yes
5570 else
5571   echo "configure: failed program was:" >&5
5572   cat conftest.$ac_ext >&5
5573   rm -rf conftest*
5574   have_mbstate_t=no
5575 fi
5576 rm -f conftest*
5577   echo "$ac_t""$have_mbstate_t" 1>&6
5578   if test x"$have_mbstate_t" = xyes; then
5579     cat >> confdefs.h <<\EOF
5580 #define HAVE_MBSTATE_T 1
5581 EOF
5582
5583   fi
5584
5585     for ac_hdr in wchar.h
5586 do
5587 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5588 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5589 echo "configure:5590: checking for $ac_hdr" >&5
5590 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5591   echo $ac_n "(cached) $ac_c" 1>&6
5592 else
5593   cat > conftest.$ac_ext <<EOF
5594 #line 5595 "configure"
5595 #include "confdefs.h"
5596 #include <$ac_hdr>
5597 EOF
5598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5599 { (eval echo configure:5600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5601 if test -z "$ac_err"; then
5602   rm -rf conftest*
5603   eval "ac_cv_header_$ac_safe=yes"
5604 else
5605   echo "$ac_err" >&5
5606   echo "configure: failed program was:" >&5
5607   cat conftest.$ac_ext >&5
5608   rm -rf conftest*
5609   eval "ac_cv_header_$ac_safe=no"
5610 fi
5611 rm -f conftest*
5612 fi
5613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5614   echo "$ac_t""yes" 1>&6
5615     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5616   cat >> confdefs.h <<EOF
5617 #define $ac_tr_hdr 1
5618 EOF
5619  ac_has_wchar_h=yes
5620 else
5621   echo "$ac_t""no" 1>&6
5622 ac_has_wchar_h=no
5623 fi
5624 done
5625
5626   for ac_hdr in wctype.h
5627 do
5628 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5629 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5630 echo "configure:5631: checking for $ac_hdr" >&5
5631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5632   echo $ac_n "(cached) $ac_c" 1>&6
5633 else
5634   cat > conftest.$ac_ext <<EOF
5635 #line 5636 "configure"
5636 #include "confdefs.h"
5637 #include <$ac_hdr>
5638 EOF
5639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5640 { (eval echo configure:5641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5642 if test -z "$ac_err"; then
5643   rm -rf conftest*
5644   eval "ac_cv_header_$ac_safe=yes"
5645 else
5646   echo "$ac_err" >&5
5647   echo "configure: failed program was:" >&5
5648   cat conftest.$ac_ext >&5
5649   rm -rf conftest*
5650   eval "ac_cv_header_$ac_safe=no"
5651 fi
5652 rm -f conftest*
5653 fi
5654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5655   echo "$ac_t""yes" 1>&6
5656     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5657   cat >> confdefs.h <<EOF
5658 #define $ac_tr_hdr 1
5659 EOF
5660  ac_has_wctype_h=yes
5661 else
5662   echo "$ac_t""no" 1>&6
5663 ac_has_wctype_h=no
5664 fi
5665 done
5666
5667   
5668     if test x"$ac_has_wchar_h" = xyes &&
5669      test x"$ac_has_wctype_h" = xyes &&
5670      test x"$enable_c_mbchar" != xno; then
5671       
5672             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5673 echo "configure:5674: checking for WCHAR_MIN and WCHAR_MAX" >&5
5674     cat > conftest.$ac_ext <<EOF
5675 #line 5676 "configure"
5676 #include "confdefs.h"
5677 #include <wchar.h>
5678 int main() {
5679 int i = WCHAR_MIN; int j = WCHAR_MAX;
5680 ; return 0; }
5681 EOF
5682 if { (eval echo configure:5683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5683   rm -rf conftest*
5684   has_wchar_minmax=yes
5685 else
5686   echo "configure: failed program was:" >&5
5687   cat conftest.$ac_ext >&5
5688   rm -rf conftest*
5689   has_wchar_minmax=no
5690 fi
5691 rm -f conftest*
5692     echo "$ac_t""$has_wchar_minmax" 1>&6
5693     
5694             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5695 echo "configure:5696: checking for WEOF" >&5
5696     cat > conftest.$ac_ext <<EOF
5697 #line 5698 "configure"
5698 #include "confdefs.h"
5699
5700       #include <wchar.h>
5701       #include <stddef.h>
5702 int main() {
5703 wint_t i = WEOF;
5704 ; return 0; }
5705 EOF
5706 if { (eval echo configure:5707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5707   rm -rf conftest*
5708   has_weof=yes
5709 else
5710   echo "configure: failed program was:" >&5
5711   cat conftest.$ac_ext >&5
5712   rm -rf conftest*
5713   has_weof=no
5714 fi
5715 rm -f conftest*
5716     echo "$ac_t""$has_weof" 1>&6
5717   
5718         ac_wfuncs=yes
5719     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5720 do
5721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5722 echo "configure:5723: checking for $ac_func" >&5
5723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5724   echo $ac_n "(cached) $ac_c" 1>&6
5725 else
5726   cat > conftest.$ac_ext <<EOF
5727 #line 5728 "configure"
5728 #include "confdefs.h"
5729 /* System header to define __stub macros and hopefully few prototypes,
5730     which can conflict with char $ac_func(); below.  */
5731 #include <assert.h>
5732 /* Override any gcc2 internal prototype to avoid an error.  */
5733 /* We use char because int might match the return type of a gcc2
5734     builtin and then its argument prototype would still apply.  */
5735 char $ac_func();
5736
5737 int main() {
5738
5739 /* The GNU C library defines this for functions which it implements
5740     to always fail with ENOSYS.  Some functions are actually named
5741     something starting with __ and the normal name is an alias.  */
5742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5743 choke me
5744 #else
5745 $ac_func();
5746 #endif
5747
5748 ; return 0; }
5749 EOF
5750 if { (eval echo configure:5751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5751   rm -rf conftest*
5752   eval "ac_cv_func_$ac_func=yes"
5753 else
5754   echo "configure: failed program was:" >&5
5755   cat conftest.$ac_ext >&5
5756   rm -rf conftest*
5757   eval "ac_cv_func_$ac_func=no"
5758 fi
5759 rm -f conftest*
5760 fi
5761
5762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5763   echo "$ac_t""yes" 1>&6
5764     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5765   cat >> confdefs.h <<EOF
5766 #define $ac_tr_func 1
5767 EOF
5768  
5769 else
5770   echo "$ac_t""no" 1>&6
5771 \
5772     ac_wfuncs=no
5773 fi
5774 done
5775
5776   
5777         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5778     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5779     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5780     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5781     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5782     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5783 do
5784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5785 echo "configure:5786: checking for $ac_func" >&5
5786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5787   echo $ac_n "(cached) $ac_c" 1>&6
5788 else
5789   cat > conftest.$ac_ext <<EOF
5790 #line 5791 "configure"
5791 #include "confdefs.h"
5792 /* System header to define __stub macros and hopefully few prototypes,
5793     which can conflict with char $ac_func(); below.  */
5794 #include <assert.h>
5795 /* Override any gcc2 internal prototype to avoid an error.  */
5796 /* We use char because int might match the return type of a gcc2
5797     builtin and then its argument prototype would still apply.  */
5798 char $ac_func();
5799
5800 int main() {
5801
5802 /* The GNU C library defines this for functions which it implements
5803     to always fail with ENOSYS.  Some functions are actually named
5804     something starting with __ and the normal name is an alias.  */
5805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5806 choke me
5807 #else
5808 $ac_func();
5809 #endif
5810
5811 ; return 0; }
5812 EOF
5813 if { (eval echo configure:5814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5814   rm -rf conftest*
5815   eval "ac_cv_func_$ac_func=yes"
5816 else
5817   echo "configure: failed program was:" >&5
5818   cat conftest.$ac_ext >&5
5819   rm -rf conftest*
5820   eval "ac_cv_func_$ac_func=no"
5821 fi
5822 rm -f conftest*
5823 fi
5824
5825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5826   echo "$ac_t""yes" 1>&6
5827     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5828   cat >> confdefs.h <<EOF
5829 #define $ac_tr_func 1
5830 EOF
5831  
5832 else
5833   echo "$ac_t""no" 1>&6
5834 \
5835     ac_wfuncs=no
5836 fi
5837 done
5838
5839
5840     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5841 echo "configure:5842: checking for ISO C99 wchar_t support" >&5
5842     if test x"$has_weof" = xyes &&
5843        test x"$has_wchar_minmax" = xyes &&
5844        test x"$ac_wfuncs" = xyes; then
5845       ac_isoC99_wchar_t=yes
5846     else
5847       ac_isoC99_wchar_t=no
5848     fi
5849     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5850   
5851             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5852 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5853 echo "configure:5854: checking for iconv.h" >&5
5854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5855   echo $ac_n "(cached) $ac_c" 1>&6
5856 else
5857   cat > conftest.$ac_ext <<EOF
5858 #line 5859 "configure"
5859 #include "confdefs.h"
5860 #include <iconv.h>
5861 EOF
5862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5863 { (eval echo configure:5864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5865 if test -z "$ac_err"; then
5866   rm -rf conftest*
5867   eval "ac_cv_header_$ac_safe=yes"
5868 else
5869   echo "$ac_err" >&5
5870   echo "configure: failed program was:" >&5
5871   cat conftest.$ac_ext >&5
5872   rm -rf conftest*
5873   eval "ac_cv_header_$ac_safe=no"
5874 fi
5875 rm -f conftest*
5876 fi
5877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5878   echo "$ac_t""yes" 1>&6
5879   ac_has_iconv_h=yes
5880 else
5881   echo "$ac_t""no" 1>&6
5882 ac_has_iconv_h=no
5883 fi
5884
5885     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5886 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5887 echo "configure:5888: checking for langinfo.h" >&5
5888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5889   echo $ac_n "(cached) $ac_c" 1>&6
5890 else
5891   cat > conftest.$ac_ext <<EOF
5892 #line 5893 "configure"
5893 #include "confdefs.h"
5894 #include <langinfo.h>
5895 EOF
5896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5897 { (eval echo configure:5898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5899 if test -z "$ac_err"; then
5900   rm -rf conftest*
5901   eval "ac_cv_header_$ac_safe=yes"
5902 else
5903   echo "$ac_err" >&5
5904   echo "configure: failed program was:" >&5
5905   cat conftest.$ac_ext >&5
5906   rm -rf conftest*
5907   eval "ac_cv_header_$ac_safe=no"
5908 fi
5909 rm -f conftest*
5910 fi
5911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5912   echo "$ac_t""yes" 1>&6
5913   ac_has_langinfo_h=yes
5914 else
5915   echo "$ac_t""no" 1>&6
5916 ac_has_langinfo_h=no
5917 fi
5918
5919
5920         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5921 echo "configure:5922: checking for iconv in -liconv" >&5
5922 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5924   echo $ac_n "(cached) $ac_c" 1>&6
5925 else
5926   ac_save_LIBS="$LIBS"
5927 LIBS="-liconv  $LIBS"
5928 cat > conftest.$ac_ext <<EOF
5929 #line 5930 "configure"
5930 #include "confdefs.h"
5931 /* Override any gcc2 internal prototype to avoid an error.  */
5932 /* We use char because int might match the return type of a gcc2
5933     builtin and then its argument prototype would still apply.  */
5934 char iconv();
5935
5936 int main() {
5937 iconv()
5938 ; return 0; }
5939 EOF
5940 if { (eval echo configure:5941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5941   rm -rf conftest*
5942   eval "ac_cv_lib_$ac_lib_var=yes"
5943 else
5944   echo "configure: failed program was:" >&5
5945   cat conftest.$ac_ext >&5
5946   rm -rf conftest*
5947   eval "ac_cv_lib_$ac_lib_var=no"
5948 fi
5949 rm -f conftest*
5950 LIBS="$ac_save_LIBS"
5951
5952 fi
5953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5954   echo "$ac_t""yes" 1>&6
5955   libiconv="-liconv"
5956 else
5957   echo "$ac_t""no" 1>&6
5958 fi
5959
5960     ac_save_LIBS="$LIBS"
5961     LIBS="$LIBS $libiconv"
5962
5963     for ac_func in iconv_open iconv_close iconv nl_langinfo
5964 do
5965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5966 echo "configure:5967: checking for $ac_func" >&5
5967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5968   echo $ac_n "(cached) $ac_c" 1>&6
5969 else
5970   cat > conftest.$ac_ext <<EOF
5971 #line 5972 "configure"
5972 #include "confdefs.h"
5973 /* System header to define __stub macros and hopefully few prototypes,
5974     which can conflict with char $ac_func(); below.  */
5975 #include <assert.h>
5976 /* Override any gcc2 internal prototype to avoid an error.  */
5977 /* We use char because int might match the return type of a gcc2
5978     builtin and then its argument prototype would still apply.  */
5979 char $ac_func();
5980
5981 int main() {
5982
5983 /* The GNU C library defines this for functions which it implements
5984     to always fail with ENOSYS.  Some functions are actually named
5985     something starting with __ and the normal name is an alias.  */
5986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5987 choke me
5988 #else
5989 $ac_func();
5990 #endif
5991
5992 ; return 0; }
5993 EOF
5994 if { (eval echo configure:5995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5995   rm -rf conftest*
5996   eval "ac_cv_func_$ac_func=yes"
5997 else
5998   echo "configure: failed program was:" >&5
5999   cat conftest.$ac_ext >&5
6000   rm -rf conftest*
6001   eval "ac_cv_func_$ac_func=no"
6002 fi
6003 rm -f conftest*
6004 fi
6005
6006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6007   echo "$ac_t""yes" 1>&6
6008     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6009   cat >> confdefs.h <<EOF
6010 #define $ac_tr_func 1
6011 EOF
6012  \
6013     ac_XPG2funcs=yes
6014 else
6015   echo "$ac_t""no" 1>&6
6016 ac_XPG2funcs=no
6017 fi
6018 done
6019
6020   
6021     LIBS="$ac_save_LIBS"
6022
6023     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6024 echo "configure:6025: checking for XPG2 wchar_t support" >&5
6025     if test x"$ac_has_iconv_h" = xyes &&
6026        test x"$ac_has_langinfo_h" = xyes &&
6027        test x"$ac_XPG2funcs" = xyes; then
6028       ac_XPG2_wchar_t=yes
6029     else
6030       ac_XPG2_wchar_t=no
6031     fi
6032     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6033   
6034             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6035 echo "configure:6036: checking for enabled wchar_t specializations" >&5
6036     if test x"$ac_isoC99_wchar_t" = xyes &&
6037        test x"$ac_XPG2_wchar_t" = xyes; then
6038       cat >> confdefs.h <<\EOF
6039 #define _GLIBCPP_USE_WCHAR_T 1
6040 EOF
6041
6042       echo "$ac_t"""yes"" 1>&6
6043     else
6044       echo "$ac_t"""no"" 1>&6
6045     fi
6046   else
6047         echo "configure: warning: wchar_t support disabled." 1>&2
6048   fi
6049
6050       os_include_dir="os/hpux"
6051       cat >> confdefs.h <<\EOF
6052 #define HAVE_COPYSIGN 1
6053 EOF
6054
6055       cat >> confdefs.h <<\EOF
6056 #define HAVE_COPYSIGNF 1
6057 EOF
6058
6059       cat >> confdefs.h <<\EOF
6060 #define HAVE_FREXPF 1
6061 EOF
6062
6063       cat >> confdefs.h <<\EOF
6064 #define HAVE_HYPOT 1
6065 EOF
6066
6067       case "$target_alias" in
6068         *-hpux10*)
6069           cat >> confdefs.h <<\EOF
6070 #define HAVE_FINITE 1
6071 EOF
6072
6073           cat >> confdefs.h <<\EOF
6074 #define HAVE_FINITEF 1
6075 EOF
6076
6077           cat >> confdefs.h <<\EOF
6078 #define HAVE_ISINF 1
6079 EOF
6080
6081           cat >> confdefs.h <<\EOF
6082 #define HAVE_ISINFF 1
6083 EOF
6084
6085           cat >> confdefs.h <<\EOF
6086 #define HAVE_ISNAN 1
6087 EOF
6088
6089           cat >> confdefs.h <<\EOF
6090 #define HAVE_ISNANF 1
6091 EOF
6092
6093           ;;
6094       esac
6095
6096       ;;
6097     *-netbsd*)
6098       # Check for available headers.
6099       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6100         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6101         fp.h locale.h float.h inttypes.h
6102 do
6103 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6104 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6105 echo "configure:6106: checking for $ac_hdr" >&5
6106 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6107   echo $ac_n "(cached) $ac_c" 1>&6
6108 else
6109   cat > conftest.$ac_ext <<EOF
6110 #line 6111 "configure"
6111 #include "confdefs.h"
6112 #include <$ac_hdr>
6113 EOF
6114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6115 { (eval echo configure:6116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6117 if test -z "$ac_err"; then
6118   rm -rf conftest*
6119   eval "ac_cv_header_$ac_safe=yes"
6120 else
6121   echo "$ac_err" >&5
6122   echo "configure: failed program was:" >&5
6123   cat conftest.$ac_ext >&5
6124   rm -rf conftest*
6125   eval "ac_cv_header_$ac_safe=no"
6126 fi
6127 rm -f conftest*
6128 fi
6129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6130   echo "$ac_t""yes" 1>&6
6131     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6132   cat >> confdefs.h <<EOF
6133 #define $ac_tr_hdr 1
6134 EOF
6135  
6136 else
6137   echo "$ac_t""no" 1>&6
6138 fi
6139 done
6140
6141       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6142        
6143       
6144   # If we're not using GNU ld, then there's no point in even trying these
6145   # tests.  Check for that first.  We should have already tested for gld
6146   # by now (in libtool), but require it now just to be safe...
6147   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6148   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6149   
6150
6151   # The name set by libtool depends on the version of libtool.  Shame on us
6152   # for depending on an impl detail, but c'est la vie.  Older versions used
6153   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6154   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6155   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6156   # set (hence we're using an older libtool), then set it.
6157   if test x${with_gnu_ld+set} != xset; then
6158     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6159       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6160       with_gnu_ld=no
6161     else
6162       with_gnu_ld=$ac_cv_prog_gnu_ld
6163     fi
6164   fi
6165
6166   # Start by getting the version number.  I think the libtool test already
6167   # does some of this, but throws away the result.
6168   
6169   ldver=`$LD --version 2>/dev/null | head -1 | \
6170          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6171   
6172   glibcpp_gnu_ld_version=`echo $ldver | \
6173          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6174
6175   # Set --gc-sections.
6176   if test "$with_gnu_ld" = "notbroken"; then
6177     # GNU ld it is!  Joy and bunny rabbits!
6178
6179     # All these tests are for C++; save the language and the compiler flags.
6180     # Need to do this so that g++ won't try to link in libstdc++
6181     ac_test_CFLAGS="${CFLAGS+set}"
6182     ac_save_CFLAGS="$CFLAGS"
6183     CFLAGS='-x c++  -Wl,--gc-sections'
6184
6185     # Check for -Wl,--gc-sections
6186     # XXX This test is broken at the moment, as symbols required for
6187     # linking are now in libsupc++ (not built yet.....). In addition, 
6188     # this test has cored on solaris in the past. In addition,
6189     # --gc-sections doesn't really work at the moment (keeps on discarding
6190     # used sections, first .eh_frame and now some of the glibc sections for
6191     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6192     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6193 echo "configure:6194: checking for ld that supports -Wl,--gc-sections" >&5
6194     if test "$cross_compiling" = yes; then
6195   ac_sectionLDflags=yes
6196 else
6197   cat > conftest.$ac_ext <<EOF
6198 #line 6199 "configure"
6199 #include "confdefs.h"
6200
6201      int main(void) 
6202      {
6203        try { throw 1; }
6204        catch (...) { };
6205        return 0;
6206      }
6207     
6208 EOF
6209 if { (eval echo configure:6210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6210 then
6211   ac_sectionLDflags=yes
6212 else
6213   echo "configure: failed program was:" >&5
6214   cat conftest.$ac_ext >&5
6215   rm -fr conftest*
6216   ac_sectionLDflags=no
6217 fi
6218 rm -fr conftest*
6219 fi
6220
6221     if test "$ac_test_CFLAGS" = set; then
6222       CFLAGS="$ac_save_CFLAGS"
6223     else
6224       # this is the suspicious part
6225       CFLAGS=''
6226     fi
6227     if test "$ac_sectionLDflags" = "yes"; then
6228       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6229     fi
6230     echo "$ac_t""$ac_sectionLDflags" 1>&6
6231   fi
6232
6233   # Set linker optimization flags.
6234   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6235     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6236   fi
6237
6238   
6239   
6240
6241       
6242     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6243 echo "configure:6244: checking for main in -lm" >&5
6244 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6245 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6246   echo $ac_n "(cached) $ac_c" 1>&6
6247 else
6248   ac_save_LIBS="$LIBS"
6249 LIBS="-lm  $LIBS"
6250 cat > conftest.$ac_ext <<EOF
6251 #line 6252 "configure"
6252 #include "confdefs.h"
6253
6254 int main() {
6255 main()
6256 ; return 0; }
6257 EOF
6258 if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6259   rm -rf conftest*
6260   eval "ac_cv_lib_$ac_lib_var=yes"
6261 else
6262   echo "configure: failed program was:" >&5
6263   cat conftest.$ac_ext >&5
6264   rm -rf conftest*
6265   eval "ac_cv_lib_$ac_lib_var=no"
6266 fi
6267 rm -f conftest*
6268 LIBS="$ac_save_LIBS"
6269
6270 fi
6271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6272   echo "$ac_t""yes" 1>&6
6273     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6274     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6275   cat >> confdefs.h <<EOF
6276 #define $ac_tr_lib 1
6277 EOF
6278
6279   LIBS="-lm $LIBS"
6280
6281 else
6282   echo "$ac_t""no" 1>&6
6283 fi
6284
6285   for ac_func in nan copysignf
6286 do
6287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6288 echo "configure:6289: checking for $ac_func" >&5
6289 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6290   echo $ac_n "(cached) $ac_c" 1>&6
6291 else
6292   cat > conftest.$ac_ext <<EOF
6293 #line 6294 "configure"
6294 #include "confdefs.h"
6295 /* System header to define __stub macros and hopefully few prototypes,
6296     which can conflict with char $ac_func(); below.  */
6297 #include <assert.h>
6298 /* Override any gcc2 internal prototype to avoid an error.  */
6299 /* We use char because int might match the return type of a gcc2
6300     builtin and then its argument prototype would still apply.  */
6301 char $ac_func();
6302
6303 int main() {
6304
6305 /* The GNU C library defines this for functions which it implements
6306     to always fail with ENOSYS.  Some functions are actually named
6307     something starting with __ and the normal name is an alias.  */
6308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6309 choke me
6310 #else
6311 $ac_func();
6312 #endif
6313
6314 ; return 0; }
6315 EOF
6316 if { (eval echo configure:6317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6317   rm -rf conftest*
6318   eval "ac_cv_func_$ac_func=yes"
6319 else
6320   echo "configure: failed program was:" >&5
6321   cat conftest.$ac_ext >&5
6322   rm -rf conftest*
6323   eval "ac_cv_func_$ac_func=no"
6324 fi
6325 rm -f conftest*
6326 fi
6327
6328 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6329   echo "$ac_t""yes" 1>&6
6330     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6331   cat >> confdefs.h <<EOF
6332 #define $ac_tr_func 1
6333 EOF
6334  
6335 else
6336   echo "$ac_t""no" 1>&6
6337 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6338 fi
6339 done
6340
6341
6342     for ac_func in __signbit
6343 do
6344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6345 echo "configure:6346: checking for $ac_func" >&5
6346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6347   echo $ac_n "(cached) $ac_c" 1>&6
6348 else
6349   cat > conftest.$ac_ext <<EOF
6350 #line 6351 "configure"
6351 #include "confdefs.h"
6352 /* System header to define __stub macros and hopefully few prototypes,
6353     which can conflict with char $ac_func(); below.  */
6354 #include <assert.h>
6355 /* Override any gcc2 internal prototype to avoid an error.  */
6356 /* We use char because int might match the return type of a gcc2
6357     builtin and then its argument prototype would still apply.  */
6358 char $ac_func();
6359
6360 int main() {
6361
6362 /* The GNU C library defines this for functions which it implements
6363     to always fail with ENOSYS.  Some functions are actually named
6364     something starting with __ and the normal name is an alias.  */
6365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6366 choke me
6367 #else
6368 $ac_func();
6369 #endif
6370
6371 ; return 0; }
6372 EOF
6373 if { (eval echo configure:6374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6374   rm -rf conftest*
6375   eval "ac_cv_func_$ac_func=yes"
6376 else
6377   echo "configure: failed program was:" >&5
6378   cat conftest.$ac_ext >&5
6379   rm -rf conftest*
6380   eval "ac_cv_func_$ac_func=no"
6381 fi
6382 rm -f conftest*
6383 fi
6384
6385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6386   echo "$ac_t""yes" 1>&6
6387     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6388   cat >> confdefs.h <<EOF
6389 #define $ac_tr_func 1
6390 EOF
6391  
6392 else
6393   echo "$ac_t""no" 1>&6
6394 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6395 fi
6396 done
6397
6398   for ac_func in __signbitf
6399 do
6400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6401 echo "configure:6402: checking for $ac_func" >&5
6402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6403   echo $ac_n "(cached) $ac_c" 1>&6
6404 else
6405   cat > conftest.$ac_ext <<EOF
6406 #line 6407 "configure"
6407 #include "confdefs.h"
6408 /* System header to define __stub macros and hopefully few prototypes,
6409     which can conflict with char $ac_func(); below.  */
6410 #include <assert.h>
6411 /* Override any gcc2 internal prototype to avoid an error.  */
6412 /* We use char because int might match the return type of a gcc2
6413     builtin and then its argument prototype would still apply.  */
6414 char $ac_func();
6415
6416 int main() {
6417
6418 /* The GNU C library defines this for functions which it implements
6419     to always fail with ENOSYS.  Some functions are actually named
6420     something starting with __ and the normal name is an alias.  */
6421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6422 choke me
6423 #else
6424 $ac_func();
6425 #endif
6426
6427 ; return 0; }
6428 EOF
6429 if { (eval echo configure:6430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6430   rm -rf conftest*
6431   eval "ac_cv_func_$ac_func=yes"
6432 else
6433   echo "configure: failed program was:" >&5
6434   cat conftest.$ac_ext >&5
6435   rm -rf conftest*
6436   eval "ac_cv_func_$ac_func=no"
6437 fi
6438 rm -f conftest*
6439 fi
6440
6441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6442   echo "$ac_t""yes" 1>&6
6443     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6444   cat >> confdefs.h <<EOF
6445 #define $ac_tr_func 1
6446 EOF
6447  
6448 else
6449   echo "$ac_t""no" 1>&6
6450 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6451 fi
6452 done
6453
6454
6455           if test x$ac_cv_func_copysignl = x"yes"; then
6456     for ac_func in __signbitl
6457 do
6458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6459 echo "configure:6460: checking for $ac_func" >&5
6460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6461   echo $ac_n "(cached) $ac_c" 1>&6
6462 else
6463   cat > conftest.$ac_ext <<EOF
6464 #line 6465 "configure"
6465 #include "confdefs.h"
6466 /* System header to define __stub macros and hopefully few prototypes,
6467     which can conflict with char $ac_func(); below.  */
6468 #include <assert.h>
6469 /* Override any gcc2 internal prototype to avoid an error.  */
6470 /* We use char because int might match the return type of a gcc2
6471     builtin and then its argument prototype would still apply.  */
6472 char $ac_func();
6473
6474 int main() {
6475
6476 /* The GNU C library defines this for functions which it implements
6477     to always fail with ENOSYS.  Some functions are actually named
6478     something starting with __ and the normal name is an alias.  */
6479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6480 choke me
6481 #else
6482 $ac_func();
6483 #endif
6484
6485 ; return 0; }
6486 EOF
6487 if { (eval echo configure:6488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6488   rm -rf conftest*
6489   eval "ac_cv_func_$ac_func=yes"
6490 else
6491   echo "configure: failed program was:" >&5
6492   cat conftest.$ac_ext >&5
6493   rm -rf conftest*
6494   eval "ac_cv_func_$ac_func=no"
6495 fi
6496 rm -f conftest*
6497 fi
6498
6499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6500   echo "$ac_t""yes" 1>&6
6501     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6502   cat >> confdefs.h <<EOF
6503 #define $ac_tr_func 1
6504 EOF
6505  
6506 else
6507   echo "$ac_t""no" 1>&6
6508 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6509 fi
6510 done
6511
6512   fi
6513
6514   
6515
6516       
6517
6518       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6519 echo "configure:6520: checking for mbstate_t" >&5
6520   cat > conftest.$ac_ext <<EOF
6521 #line 6522 "configure"
6522 #include "confdefs.h"
6523 #include <wchar.h>
6524 int main() {
6525 mbstate_t teststate;
6526 ; return 0; }
6527 EOF
6528 if { (eval echo configure:6529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6529   rm -rf conftest*
6530   have_mbstate_t=yes
6531 else
6532   echo "configure: failed program was:" >&5
6533   cat conftest.$ac_ext >&5
6534   rm -rf conftest*
6535   have_mbstate_t=no
6536 fi
6537 rm -f conftest*
6538   echo "$ac_t""$have_mbstate_t" 1>&6
6539   if test x"$have_mbstate_t" = xyes; then
6540     cat >> confdefs.h <<\EOF
6541 #define HAVE_MBSTATE_T 1
6542 EOF
6543
6544   fi
6545
6546     for ac_hdr in wchar.h
6547 do
6548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6550 echo "configure:6551: checking for $ac_hdr" >&5
6551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6552   echo $ac_n "(cached) $ac_c" 1>&6
6553 else
6554   cat > conftest.$ac_ext <<EOF
6555 #line 6556 "configure"
6556 #include "confdefs.h"
6557 #include <$ac_hdr>
6558 EOF
6559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6560 { (eval echo configure:6561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6562 if test -z "$ac_err"; then
6563   rm -rf conftest*
6564   eval "ac_cv_header_$ac_safe=yes"
6565 else
6566   echo "$ac_err" >&5
6567   echo "configure: failed program was:" >&5
6568   cat conftest.$ac_ext >&5
6569   rm -rf conftest*
6570   eval "ac_cv_header_$ac_safe=no"
6571 fi
6572 rm -f conftest*
6573 fi
6574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6575   echo "$ac_t""yes" 1>&6
6576     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6577   cat >> confdefs.h <<EOF
6578 #define $ac_tr_hdr 1
6579 EOF
6580  ac_has_wchar_h=yes
6581 else
6582   echo "$ac_t""no" 1>&6
6583 ac_has_wchar_h=no
6584 fi
6585 done
6586
6587   for ac_hdr in wctype.h
6588 do
6589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6591 echo "configure:6592: checking for $ac_hdr" >&5
6592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6593   echo $ac_n "(cached) $ac_c" 1>&6
6594 else
6595   cat > conftest.$ac_ext <<EOF
6596 #line 6597 "configure"
6597 #include "confdefs.h"
6598 #include <$ac_hdr>
6599 EOF
6600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6601 { (eval echo configure:6602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6603 if test -z "$ac_err"; then
6604   rm -rf conftest*
6605   eval "ac_cv_header_$ac_safe=yes"
6606 else
6607   echo "$ac_err" >&5
6608   echo "configure: failed program was:" >&5
6609   cat conftest.$ac_ext >&5
6610   rm -rf conftest*
6611   eval "ac_cv_header_$ac_safe=no"
6612 fi
6613 rm -f conftest*
6614 fi
6615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6616   echo "$ac_t""yes" 1>&6
6617     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6618   cat >> confdefs.h <<EOF
6619 #define $ac_tr_hdr 1
6620 EOF
6621  ac_has_wctype_h=yes
6622 else
6623   echo "$ac_t""no" 1>&6
6624 ac_has_wctype_h=no
6625 fi
6626 done
6627
6628   
6629     if test x"$ac_has_wchar_h" = xyes &&
6630      test x"$ac_has_wctype_h" = xyes &&
6631      test x"$enable_c_mbchar" != xno; then
6632       
6633             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6634 echo "configure:6635: checking for WCHAR_MIN and WCHAR_MAX" >&5
6635     cat > conftest.$ac_ext <<EOF
6636 #line 6637 "configure"
6637 #include "confdefs.h"
6638 #include <wchar.h>
6639 int main() {
6640 int i = WCHAR_MIN; int j = WCHAR_MAX;
6641 ; return 0; }
6642 EOF
6643 if { (eval echo configure:6644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6644   rm -rf conftest*
6645   has_wchar_minmax=yes
6646 else
6647   echo "configure: failed program was:" >&5
6648   cat conftest.$ac_ext >&5
6649   rm -rf conftest*
6650   has_wchar_minmax=no
6651 fi
6652 rm -f conftest*
6653     echo "$ac_t""$has_wchar_minmax" 1>&6
6654     
6655             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6656 echo "configure:6657: checking for WEOF" >&5
6657     cat > conftest.$ac_ext <<EOF
6658 #line 6659 "configure"
6659 #include "confdefs.h"
6660
6661       #include <wchar.h>
6662       #include <stddef.h>
6663 int main() {
6664 wint_t i = WEOF;
6665 ; return 0; }
6666 EOF
6667 if { (eval echo configure:6668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6668   rm -rf conftest*
6669   has_weof=yes
6670 else
6671   echo "configure: failed program was:" >&5
6672   cat conftest.$ac_ext >&5
6673   rm -rf conftest*
6674   has_weof=no
6675 fi
6676 rm -f conftest*
6677     echo "$ac_t""$has_weof" 1>&6
6678   
6679         ac_wfuncs=yes
6680     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6681 do
6682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6683 echo "configure:6684: checking for $ac_func" >&5
6684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6685   echo $ac_n "(cached) $ac_c" 1>&6
6686 else
6687   cat > conftest.$ac_ext <<EOF
6688 #line 6689 "configure"
6689 #include "confdefs.h"
6690 /* System header to define __stub macros and hopefully few prototypes,
6691     which can conflict with char $ac_func(); below.  */
6692 #include <assert.h>
6693 /* Override any gcc2 internal prototype to avoid an error.  */
6694 /* We use char because int might match the return type of a gcc2
6695     builtin and then its argument prototype would still apply.  */
6696 char $ac_func();
6697
6698 int main() {
6699
6700 /* The GNU C library defines this for functions which it implements
6701     to always fail with ENOSYS.  Some functions are actually named
6702     something starting with __ and the normal name is an alias.  */
6703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6704 choke me
6705 #else
6706 $ac_func();
6707 #endif
6708
6709 ; return 0; }
6710 EOF
6711 if { (eval echo configure:6712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6712   rm -rf conftest*
6713   eval "ac_cv_func_$ac_func=yes"
6714 else
6715   echo "configure: failed program was:" >&5
6716   cat conftest.$ac_ext >&5
6717   rm -rf conftest*
6718   eval "ac_cv_func_$ac_func=no"
6719 fi
6720 rm -f conftest*
6721 fi
6722
6723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6724   echo "$ac_t""yes" 1>&6
6725     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6726   cat >> confdefs.h <<EOF
6727 #define $ac_tr_func 1
6728 EOF
6729  
6730 else
6731   echo "$ac_t""no" 1>&6
6732 \
6733     ac_wfuncs=no
6734 fi
6735 done
6736
6737   
6738         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6739     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6740     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6741     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6742     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6743     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6744 do
6745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6746 echo "configure:6747: checking for $ac_func" >&5
6747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6748   echo $ac_n "(cached) $ac_c" 1>&6
6749 else
6750   cat > conftest.$ac_ext <<EOF
6751 #line 6752 "configure"
6752 #include "confdefs.h"
6753 /* System header to define __stub macros and hopefully few prototypes,
6754     which can conflict with char $ac_func(); below.  */
6755 #include <assert.h>
6756 /* Override any gcc2 internal prototype to avoid an error.  */
6757 /* We use char because int might match the return type of a gcc2
6758     builtin and then its argument prototype would still apply.  */
6759 char $ac_func();
6760
6761 int main() {
6762
6763 /* The GNU C library defines this for functions which it implements
6764     to always fail with ENOSYS.  Some functions are actually named
6765     something starting with __ and the normal name is an alias.  */
6766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6767 choke me
6768 #else
6769 $ac_func();
6770 #endif
6771
6772 ; return 0; }
6773 EOF
6774 if { (eval echo configure:6775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6775   rm -rf conftest*
6776   eval "ac_cv_func_$ac_func=yes"
6777 else
6778   echo "configure: failed program was:" >&5
6779   cat conftest.$ac_ext >&5
6780   rm -rf conftest*
6781   eval "ac_cv_func_$ac_func=no"
6782 fi
6783 rm -f conftest*
6784 fi
6785
6786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6787   echo "$ac_t""yes" 1>&6
6788     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6789   cat >> confdefs.h <<EOF
6790 #define $ac_tr_func 1
6791 EOF
6792  
6793 else
6794   echo "$ac_t""no" 1>&6
6795 \
6796     ac_wfuncs=no
6797 fi
6798 done
6799
6800
6801     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6802 echo "configure:6803: checking for ISO C99 wchar_t support" >&5
6803     if test x"$has_weof" = xyes &&
6804        test x"$has_wchar_minmax" = xyes &&
6805        test x"$ac_wfuncs" = xyes; then
6806       ac_isoC99_wchar_t=yes
6807     else
6808       ac_isoC99_wchar_t=no
6809     fi
6810     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6811   
6812             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6813 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6814 echo "configure:6815: checking for iconv.h" >&5
6815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6816   echo $ac_n "(cached) $ac_c" 1>&6
6817 else
6818   cat > conftest.$ac_ext <<EOF
6819 #line 6820 "configure"
6820 #include "confdefs.h"
6821 #include <iconv.h>
6822 EOF
6823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6824 { (eval echo configure:6825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6826 if test -z "$ac_err"; then
6827   rm -rf conftest*
6828   eval "ac_cv_header_$ac_safe=yes"
6829 else
6830   echo "$ac_err" >&5
6831   echo "configure: failed program was:" >&5
6832   cat conftest.$ac_ext >&5
6833   rm -rf conftest*
6834   eval "ac_cv_header_$ac_safe=no"
6835 fi
6836 rm -f conftest*
6837 fi
6838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6839   echo "$ac_t""yes" 1>&6
6840   ac_has_iconv_h=yes
6841 else
6842   echo "$ac_t""no" 1>&6
6843 ac_has_iconv_h=no
6844 fi
6845
6846     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6847 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6848 echo "configure:6849: checking for langinfo.h" >&5
6849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6850   echo $ac_n "(cached) $ac_c" 1>&6
6851 else
6852   cat > conftest.$ac_ext <<EOF
6853 #line 6854 "configure"
6854 #include "confdefs.h"
6855 #include <langinfo.h>
6856 EOF
6857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6858 { (eval echo configure:6859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6860 if test -z "$ac_err"; then
6861   rm -rf conftest*
6862   eval "ac_cv_header_$ac_safe=yes"
6863 else
6864   echo "$ac_err" >&5
6865   echo "configure: failed program was:" >&5
6866   cat conftest.$ac_ext >&5
6867   rm -rf conftest*
6868   eval "ac_cv_header_$ac_safe=no"
6869 fi
6870 rm -f conftest*
6871 fi
6872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6873   echo "$ac_t""yes" 1>&6
6874   ac_has_langinfo_h=yes
6875 else
6876   echo "$ac_t""no" 1>&6
6877 ac_has_langinfo_h=no
6878 fi
6879
6880
6881         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6882 echo "configure:6883: checking for iconv in -liconv" >&5
6883 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6885   echo $ac_n "(cached) $ac_c" 1>&6
6886 else
6887   ac_save_LIBS="$LIBS"
6888 LIBS="-liconv  $LIBS"
6889 cat > conftest.$ac_ext <<EOF
6890 #line 6891 "configure"
6891 #include "confdefs.h"
6892 /* Override any gcc2 internal prototype to avoid an error.  */
6893 /* We use char because int might match the return type of a gcc2
6894     builtin and then its argument prototype would still apply.  */
6895 char iconv();
6896
6897 int main() {
6898 iconv()
6899 ; return 0; }
6900 EOF
6901 if { (eval echo configure:6902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6902   rm -rf conftest*
6903   eval "ac_cv_lib_$ac_lib_var=yes"
6904 else
6905   echo "configure: failed program was:" >&5
6906   cat conftest.$ac_ext >&5
6907   rm -rf conftest*
6908   eval "ac_cv_lib_$ac_lib_var=no"
6909 fi
6910 rm -f conftest*
6911 LIBS="$ac_save_LIBS"
6912
6913 fi
6914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6915   echo "$ac_t""yes" 1>&6
6916   libiconv="-liconv"
6917 else
6918   echo "$ac_t""no" 1>&6
6919 fi
6920
6921     ac_save_LIBS="$LIBS"
6922     LIBS="$LIBS $libiconv"
6923
6924     for ac_func in iconv_open iconv_close iconv nl_langinfo
6925 do
6926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6927 echo "configure:6928: checking for $ac_func" >&5
6928 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6929   echo $ac_n "(cached) $ac_c" 1>&6
6930 else
6931   cat > conftest.$ac_ext <<EOF
6932 #line 6933 "configure"
6933 #include "confdefs.h"
6934 /* System header to define __stub macros and hopefully few prototypes,
6935     which can conflict with char $ac_func(); below.  */
6936 #include <assert.h>
6937 /* Override any gcc2 internal prototype to avoid an error.  */
6938 /* We use char because int might match the return type of a gcc2
6939     builtin and then its argument prototype would still apply.  */
6940 char $ac_func();
6941
6942 int main() {
6943
6944 /* The GNU C library defines this for functions which it implements
6945     to always fail with ENOSYS.  Some functions are actually named
6946     something starting with __ and the normal name is an alias.  */
6947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6948 choke me
6949 #else
6950 $ac_func();
6951 #endif
6952
6953 ; return 0; }
6954 EOF
6955 if { (eval echo configure:6956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6956   rm -rf conftest*
6957   eval "ac_cv_func_$ac_func=yes"
6958 else
6959   echo "configure: failed program was:" >&5
6960   cat conftest.$ac_ext >&5
6961   rm -rf conftest*
6962   eval "ac_cv_func_$ac_func=no"
6963 fi
6964 rm -f conftest*
6965 fi
6966
6967 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6968   echo "$ac_t""yes" 1>&6
6969     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6970   cat >> confdefs.h <<EOF
6971 #define $ac_tr_func 1
6972 EOF
6973  \
6974     ac_XPG2funcs=yes
6975 else
6976   echo "$ac_t""no" 1>&6
6977 ac_XPG2funcs=no
6978 fi
6979 done
6980
6981   
6982     LIBS="$ac_save_LIBS"
6983
6984     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6985 echo "configure:6986: checking for XPG2 wchar_t support" >&5
6986     if test x"$ac_has_iconv_h" = xyes &&
6987        test x"$ac_has_langinfo_h" = xyes &&
6988        test x"$ac_XPG2funcs" = xyes; then
6989       ac_XPG2_wchar_t=yes
6990     else
6991       ac_XPG2_wchar_t=no
6992     fi
6993     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6994   
6995             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6996 echo "configure:6997: checking for enabled wchar_t specializations" >&5
6997     if test x"$ac_isoC99_wchar_t" = xyes &&
6998        test x"$ac_XPG2_wchar_t" = xyes; then
6999       cat >> confdefs.h <<\EOF
7000 #define _GLIBCPP_USE_WCHAR_T 1
7001 EOF
7002
7003       echo "$ac_t"""yes"" 1>&6
7004     else
7005       echo "$ac_t"""no"" 1>&6
7006     fi
7007   else
7008         echo "configure: warning: wchar_t support disabled." 1>&2
7009   fi
7010
7011       os_include_dir="os/bsd/netbsd"
7012       cat >> confdefs.h <<\EOF
7013 #define HAVE_COPYSIGN 1
7014 EOF
7015
7016       cat >> confdefs.h <<\EOF
7017 #define HAVE_COPYSIGNF 1
7018 EOF
7019
7020       cat >> confdefs.h <<\EOF
7021 #define HAVE_FINITEF 1
7022 EOF
7023
7024       cat >> confdefs.h <<\EOF
7025 #define HAVE_FINITE 1
7026 EOF
7027
7028       cat >> confdefs.h <<\EOF
7029 #define HAVE_FREXPF 1
7030 EOF
7031
7032       cat >> confdefs.h <<\EOF
7033 #define HAVE_HYPOTF 1
7034 EOF
7035
7036       cat >> confdefs.h <<\EOF
7037 #define HAVE_ISINF 1
7038 EOF
7039
7040       cat >> confdefs.h <<\EOF
7041 #define HAVE_ISINFF 1
7042 EOF
7043
7044       cat >> confdefs.h <<\EOF
7045 #define HAVE_ISNAN 1
7046 EOF
7047
7048       cat >> confdefs.h <<\EOF
7049 #define HAVE_ISNANF 1
7050 EOF
7051
7052       if test x"long_double_math_on_this_cpu" = x"yes"; then
7053         cat >> confdefs.h <<\EOF
7054 #define HAVE_FINITEL 1
7055 EOF
7056
7057         cat >> confdefs.h <<\EOF
7058 #define HAVE_ISINFL 1
7059 EOF
7060
7061         cat >> confdefs.h <<\EOF
7062 #define HAVE_ISNANL 1
7063 EOF
7064
7065       fi
7066       ;;
7067     *-mingw32*)
7068       for ac_hdr in sys/types.h locale.h float.h
7069 do
7070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7072 echo "configure:7073: checking for $ac_hdr" >&5
7073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7074   echo $ac_n "(cached) $ac_c" 1>&6
7075 else
7076   cat > conftest.$ac_ext <<EOF
7077 #line 7078 "configure"
7078 #include "confdefs.h"
7079 #include <$ac_hdr>
7080 EOF
7081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7082 { (eval echo configure:7083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7084 if test -z "$ac_err"; then
7085   rm -rf conftest*
7086   eval "ac_cv_header_$ac_safe=yes"
7087 else
7088   echo "$ac_err" >&5
7089   echo "configure: failed program was:" >&5
7090   cat conftest.$ac_ext >&5
7091   rm -rf conftest*
7092   eval "ac_cv_header_$ac_safe=no"
7093 fi
7094 rm -f conftest*
7095 fi
7096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7097   echo "$ac_t""yes" 1>&6
7098     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7099   cat >> confdefs.h <<EOF
7100 #define $ac_tr_hdr 1
7101 EOF
7102  
7103 else
7104   echo "$ac_t""no" 1>&6
7105 fi
7106 done
7107
7108       
7109   # If we're not using GNU ld, then there's no point in even trying these
7110   # tests.  Check for that first.  We should have already tested for gld
7111   # by now (in libtool), but require it now just to be safe...
7112   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7113   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7114   
7115
7116   # The name set by libtool depends on the version of libtool.  Shame on us
7117   # for depending on an impl detail, but c'est la vie.  Older versions used
7118   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7119   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7120   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7121   # set (hence we're using an older libtool), then set it.
7122   if test x${with_gnu_ld+set} != xset; then
7123     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7124       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7125       with_gnu_ld=no
7126     else
7127       with_gnu_ld=$ac_cv_prog_gnu_ld
7128     fi
7129   fi
7130
7131   # Start by getting the version number.  I think the libtool test already
7132   # does some of this, but throws away the result.
7133   
7134   ldver=`$LD --version 2>/dev/null | head -1 | \
7135          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7136   
7137   glibcpp_gnu_ld_version=`echo $ldver | \
7138          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7139
7140   # Set --gc-sections.
7141   if test "$with_gnu_ld" = "notbroken"; then
7142     # GNU ld it is!  Joy and bunny rabbits!
7143
7144     # All these tests are for C++; save the language and the compiler flags.
7145     # Need to do this so that g++ won't try to link in libstdc++
7146     ac_test_CFLAGS="${CFLAGS+set}"
7147     ac_save_CFLAGS="$CFLAGS"
7148     CFLAGS='-x c++  -Wl,--gc-sections'
7149
7150     # Check for -Wl,--gc-sections
7151     # XXX This test is broken at the moment, as symbols required for
7152     # linking are now in libsupc++ (not built yet.....). In addition, 
7153     # this test has cored on solaris in the past. In addition,
7154     # --gc-sections doesn't really work at the moment (keeps on discarding
7155     # used sections, first .eh_frame and now some of the glibc sections for
7156     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7157     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7158 echo "configure:7159: checking for ld that supports -Wl,--gc-sections" >&5
7159     if test "$cross_compiling" = yes; then
7160   ac_sectionLDflags=yes
7161 else
7162   cat > conftest.$ac_ext <<EOF
7163 #line 7164 "configure"
7164 #include "confdefs.h"
7165
7166      int main(void) 
7167      {
7168        try { throw 1; }
7169        catch (...) { };
7170        return 0;
7171      }
7172     
7173 EOF
7174 if { (eval echo configure:7175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7175 then
7176   ac_sectionLDflags=yes
7177 else
7178   echo "configure: failed program was:" >&5
7179   cat conftest.$ac_ext >&5
7180   rm -fr conftest*
7181   ac_sectionLDflags=no
7182 fi
7183 rm -fr conftest*
7184 fi
7185
7186     if test "$ac_test_CFLAGS" = set; then
7187       CFLAGS="$ac_save_CFLAGS"
7188     else
7189       # this is the suspicious part
7190       CFLAGS=''
7191     fi
7192     if test "$ac_sectionLDflags" = "yes"; then
7193       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7194     fi
7195     echo "$ac_t""$ac_sectionLDflags" 1>&6
7196   fi
7197
7198   # Set linker optimization flags.
7199   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7200     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7201   fi
7202
7203   
7204   
7205
7206       
7207     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7208 echo "configure:7209: checking for main in -lm" >&5
7209 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7211   echo $ac_n "(cached) $ac_c" 1>&6
7212 else
7213   ac_save_LIBS="$LIBS"
7214 LIBS="-lm  $LIBS"
7215 cat > conftest.$ac_ext <<EOF
7216 #line 7217 "configure"
7217 #include "confdefs.h"
7218
7219 int main() {
7220 main()
7221 ; return 0; }
7222 EOF
7223 if { (eval echo configure:7224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7224   rm -rf conftest*
7225   eval "ac_cv_lib_$ac_lib_var=yes"
7226 else
7227   echo "configure: failed program was:" >&5
7228   cat conftest.$ac_ext >&5
7229   rm -rf conftest*
7230   eval "ac_cv_lib_$ac_lib_var=no"
7231 fi
7232 rm -f conftest*
7233 LIBS="$ac_save_LIBS"
7234
7235 fi
7236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7237   echo "$ac_t""yes" 1>&6
7238     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7239     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7240   cat >> confdefs.h <<EOF
7241 #define $ac_tr_lib 1
7242 EOF
7243
7244   LIBS="-lm $LIBS"
7245
7246 else
7247   echo "$ac_t""no" 1>&6
7248 fi
7249
7250   for ac_func in nan copysignf
7251 do
7252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7253 echo "configure:7254: checking for $ac_func" >&5
7254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7255   echo $ac_n "(cached) $ac_c" 1>&6
7256 else
7257   cat > conftest.$ac_ext <<EOF
7258 #line 7259 "configure"
7259 #include "confdefs.h"
7260 /* System header to define __stub macros and hopefully few prototypes,
7261     which can conflict with char $ac_func(); below.  */
7262 #include <assert.h>
7263 /* Override any gcc2 internal prototype to avoid an error.  */
7264 /* We use char because int might match the return type of a gcc2
7265     builtin and then its argument prototype would still apply.  */
7266 char $ac_func();
7267
7268 int main() {
7269
7270 /* The GNU C library defines this for functions which it implements
7271     to always fail with ENOSYS.  Some functions are actually named
7272     something starting with __ and the normal name is an alias.  */
7273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7274 choke me
7275 #else
7276 $ac_func();
7277 #endif
7278
7279 ; return 0; }
7280 EOF
7281 if { (eval echo configure:7282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7282   rm -rf conftest*
7283   eval "ac_cv_func_$ac_func=yes"
7284 else
7285   echo "configure: failed program was:" >&5
7286   cat conftest.$ac_ext >&5
7287   rm -rf conftest*
7288   eval "ac_cv_func_$ac_func=no"
7289 fi
7290 rm -f conftest*
7291 fi
7292
7293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7294   echo "$ac_t""yes" 1>&6
7295     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7296   cat >> confdefs.h <<EOF
7297 #define $ac_tr_func 1
7298 EOF
7299  
7300 else
7301   echo "$ac_t""no" 1>&6
7302 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7303 fi
7304 done
7305
7306
7307     for ac_func in __signbit
7308 do
7309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7310 echo "configure:7311: checking for $ac_func" >&5
7311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7312   echo $ac_n "(cached) $ac_c" 1>&6
7313 else
7314   cat > conftest.$ac_ext <<EOF
7315 #line 7316 "configure"
7316 #include "confdefs.h"
7317 /* System header to define __stub macros and hopefully few prototypes,
7318     which can conflict with char $ac_func(); below.  */
7319 #include <assert.h>
7320 /* Override any gcc2 internal prototype to avoid an error.  */
7321 /* We use char because int might match the return type of a gcc2
7322     builtin and then its argument prototype would still apply.  */
7323 char $ac_func();
7324
7325 int main() {
7326
7327 /* The GNU C library defines this for functions which it implements
7328     to always fail with ENOSYS.  Some functions are actually named
7329     something starting with __ and the normal name is an alias.  */
7330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7331 choke me
7332 #else
7333 $ac_func();
7334 #endif
7335
7336 ; return 0; }
7337 EOF
7338 if { (eval echo configure:7339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7339   rm -rf conftest*
7340   eval "ac_cv_func_$ac_func=yes"
7341 else
7342   echo "configure: failed program was:" >&5
7343   cat conftest.$ac_ext >&5
7344   rm -rf conftest*
7345   eval "ac_cv_func_$ac_func=no"
7346 fi
7347 rm -f conftest*
7348 fi
7349
7350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7351   echo "$ac_t""yes" 1>&6
7352     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7353   cat >> confdefs.h <<EOF
7354 #define $ac_tr_func 1
7355 EOF
7356  
7357 else
7358   echo "$ac_t""no" 1>&6
7359 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7360 fi
7361 done
7362
7363   for ac_func in __signbitf
7364 do
7365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7366 echo "configure:7367: checking for $ac_func" >&5
7367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7368   echo $ac_n "(cached) $ac_c" 1>&6
7369 else
7370   cat > conftest.$ac_ext <<EOF
7371 #line 7372 "configure"
7372 #include "confdefs.h"
7373 /* System header to define __stub macros and hopefully few prototypes,
7374     which can conflict with char $ac_func(); below.  */
7375 #include <assert.h>
7376 /* Override any gcc2 internal prototype to avoid an error.  */
7377 /* We use char because int might match the return type of a gcc2
7378     builtin and then its argument prototype would still apply.  */
7379 char $ac_func();
7380
7381 int main() {
7382
7383 /* The GNU C library defines this for functions which it implements
7384     to always fail with ENOSYS.  Some functions are actually named
7385     something starting with __ and the normal name is an alias.  */
7386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7387 choke me
7388 #else
7389 $ac_func();
7390 #endif
7391
7392 ; return 0; }
7393 EOF
7394 if { (eval echo configure:7395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7395   rm -rf conftest*
7396   eval "ac_cv_func_$ac_func=yes"
7397 else
7398   echo "configure: failed program was:" >&5
7399   cat conftest.$ac_ext >&5
7400   rm -rf conftest*
7401   eval "ac_cv_func_$ac_func=no"
7402 fi
7403 rm -f conftest*
7404 fi
7405
7406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7407   echo "$ac_t""yes" 1>&6
7408     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7409   cat >> confdefs.h <<EOF
7410 #define $ac_tr_func 1
7411 EOF
7412  
7413 else
7414   echo "$ac_t""no" 1>&6
7415 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7416 fi
7417 done
7418
7419
7420           if test x$ac_cv_func_copysignl = x"yes"; then
7421     for ac_func in __signbitl
7422 do
7423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7424 echo "configure:7425: checking for $ac_func" >&5
7425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7426   echo $ac_n "(cached) $ac_c" 1>&6
7427 else
7428   cat > conftest.$ac_ext <<EOF
7429 #line 7430 "configure"
7430 #include "confdefs.h"
7431 /* System header to define __stub macros and hopefully few prototypes,
7432     which can conflict with char $ac_func(); below.  */
7433 #include <assert.h>
7434 /* Override any gcc2 internal prototype to avoid an error.  */
7435 /* We use char because int might match the return type of a gcc2
7436     builtin and then its argument prototype would still apply.  */
7437 char $ac_func();
7438
7439 int main() {
7440
7441 /* The GNU C library defines this for functions which it implements
7442     to always fail with ENOSYS.  Some functions are actually named
7443     something starting with __ and the normal name is an alias.  */
7444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7445 choke me
7446 #else
7447 $ac_func();
7448 #endif
7449
7450 ; return 0; }
7451 EOF
7452 if { (eval echo configure:7453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7453   rm -rf conftest*
7454   eval "ac_cv_func_$ac_func=yes"
7455 else
7456   echo "configure: failed program was:" >&5
7457   cat conftest.$ac_ext >&5
7458   rm -rf conftest*
7459   eval "ac_cv_func_$ac_func=no"
7460 fi
7461 rm -f conftest*
7462 fi
7463
7464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7465   echo "$ac_t""yes" 1>&6
7466     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7467   cat >> confdefs.h <<EOF
7468 #define $ac_tr_func 1
7469 EOF
7470  
7471 else
7472   echo "$ac_t""no" 1>&6
7473 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7474 fi
7475 done
7476
7477   fi
7478
7479   
7480
7481       
7482
7483       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7484 echo "configure:7485: checking for mbstate_t" >&5
7485   cat > conftest.$ac_ext <<EOF
7486 #line 7487 "configure"
7487 #include "confdefs.h"
7488 #include <wchar.h>
7489 int main() {
7490 mbstate_t teststate;
7491 ; return 0; }
7492 EOF
7493 if { (eval echo configure:7494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7494   rm -rf conftest*
7495   have_mbstate_t=yes
7496 else
7497   echo "configure: failed program was:" >&5
7498   cat conftest.$ac_ext >&5
7499   rm -rf conftest*
7500   have_mbstate_t=no
7501 fi
7502 rm -f conftest*
7503   echo "$ac_t""$have_mbstate_t" 1>&6
7504   if test x"$have_mbstate_t" = xyes; then
7505     cat >> confdefs.h <<\EOF
7506 #define HAVE_MBSTATE_T 1
7507 EOF
7508
7509   fi
7510
7511     for ac_hdr in wchar.h
7512 do
7513 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7515 echo "configure:7516: checking for $ac_hdr" >&5
7516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7517   echo $ac_n "(cached) $ac_c" 1>&6
7518 else
7519   cat > conftest.$ac_ext <<EOF
7520 #line 7521 "configure"
7521 #include "confdefs.h"
7522 #include <$ac_hdr>
7523 EOF
7524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7525 { (eval echo configure:7526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7527 if test -z "$ac_err"; then
7528   rm -rf conftest*
7529   eval "ac_cv_header_$ac_safe=yes"
7530 else
7531   echo "$ac_err" >&5
7532   echo "configure: failed program was:" >&5
7533   cat conftest.$ac_ext >&5
7534   rm -rf conftest*
7535   eval "ac_cv_header_$ac_safe=no"
7536 fi
7537 rm -f conftest*
7538 fi
7539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7540   echo "$ac_t""yes" 1>&6
7541     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7542   cat >> confdefs.h <<EOF
7543 #define $ac_tr_hdr 1
7544 EOF
7545  ac_has_wchar_h=yes
7546 else
7547   echo "$ac_t""no" 1>&6
7548 ac_has_wchar_h=no
7549 fi
7550 done
7551
7552   for ac_hdr in wctype.h
7553 do
7554 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7556 echo "configure:7557: checking for $ac_hdr" >&5
7557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7558   echo $ac_n "(cached) $ac_c" 1>&6
7559 else
7560   cat > conftest.$ac_ext <<EOF
7561 #line 7562 "configure"
7562 #include "confdefs.h"
7563 #include <$ac_hdr>
7564 EOF
7565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7566 { (eval echo configure:7567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7568 if test -z "$ac_err"; then
7569   rm -rf conftest*
7570   eval "ac_cv_header_$ac_safe=yes"
7571 else
7572   echo "$ac_err" >&5
7573   echo "configure: failed program was:" >&5
7574   cat conftest.$ac_ext >&5
7575   rm -rf conftest*
7576   eval "ac_cv_header_$ac_safe=no"
7577 fi
7578 rm -f conftest*
7579 fi
7580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7581   echo "$ac_t""yes" 1>&6
7582     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7583   cat >> confdefs.h <<EOF
7584 #define $ac_tr_hdr 1
7585 EOF
7586  ac_has_wctype_h=yes
7587 else
7588   echo "$ac_t""no" 1>&6
7589 ac_has_wctype_h=no
7590 fi
7591 done
7592
7593   
7594     if test x"$ac_has_wchar_h" = xyes &&
7595      test x"$ac_has_wctype_h" = xyes &&
7596      test x"$enable_c_mbchar" != xno; then
7597       
7598             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7599 echo "configure:7600: checking for WCHAR_MIN and WCHAR_MAX" >&5
7600     cat > conftest.$ac_ext <<EOF
7601 #line 7602 "configure"
7602 #include "confdefs.h"
7603 #include <wchar.h>
7604 int main() {
7605 int i = WCHAR_MIN; int j = WCHAR_MAX;
7606 ; return 0; }
7607 EOF
7608 if { (eval echo configure:7609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7609   rm -rf conftest*
7610   has_wchar_minmax=yes
7611 else
7612   echo "configure: failed program was:" >&5
7613   cat conftest.$ac_ext >&5
7614   rm -rf conftest*
7615   has_wchar_minmax=no
7616 fi
7617 rm -f conftest*
7618     echo "$ac_t""$has_wchar_minmax" 1>&6
7619     
7620             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7621 echo "configure:7622: checking for WEOF" >&5
7622     cat > conftest.$ac_ext <<EOF
7623 #line 7624 "configure"
7624 #include "confdefs.h"
7625
7626       #include <wchar.h>
7627       #include <stddef.h>
7628 int main() {
7629 wint_t i = WEOF;
7630 ; return 0; }
7631 EOF
7632 if { (eval echo configure:7633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7633   rm -rf conftest*
7634   has_weof=yes
7635 else
7636   echo "configure: failed program was:" >&5
7637   cat conftest.$ac_ext >&5
7638   rm -rf conftest*
7639   has_weof=no
7640 fi
7641 rm -f conftest*
7642     echo "$ac_t""$has_weof" 1>&6
7643   
7644         ac_wfuncs=yes
7645     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7646 do
7647 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7648 echo "configure:7649: checking for $ac_func" >&5
7649 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7650   echo $ac_n "(cached) $ac_c" 1>&6
7651 else
7652   cat > conftest.$ac_ext <<EOF
7653 #line 7654 "configure"
7654 #include "confdefs.h"
7655 /* System header to define __stub macros and hopefully few prototypes,
7656     which can conflict with char $ac_func(); below.  */
7657 #include <assert.h>
7658 /* Override any gcc2 internal prototype to avoid an error.  */
7659 /* We use char because int might match the return type of a gcc2
7660     builtin and then its argument prototype would still apply.  */
7661 char $ac_func();
7662
7663 int main() {
7664
7665 /* The GNU C library defines this for functions which it implements
7666     to always fail with ENOSYS.  Some functions are actually named
7667     something starting with __ and the normal name is an alias.  */
7668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7669 choke me
7670 #else
7671 $ac_func();
7672 #endif
7673
7674 ; return 0; }
7675 EOF
7676 if { (eval echo configure:7677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7677   rm -rf conftest*
7678   eval "ac_cv_func_$ac_func=yes"
7679 else
7680   echo "configure: failed program was:" >&5
7681   cat conftest.$ac_ext >&5
7682   rm -rf conftest*
7683   eval "ac_cv_func_$ac_func=no"
7684 fi
7685 rm -f conftest*
7686 fi
7687
7688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7689   echo "$ac_t""yes" 1>&6
7690     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7691   cat >> confdefs.h <<EOF
7692 #define $ac_tr_func 1
7693 EOF
7694  
7695 else
7696   echo "$ac_t""no" 1>&6
7697 \
7698     ac_wfuncs=no
7699 fi
7700 done
7701
7702   
7703         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7704     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7705     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7706     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7707     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7708     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7709 do
7710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7711 echo "configure:7712: checking for $ac_func" >&5
7712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7713   echo $ac_n "(cached) $ac_c" 1>&6
7714 else
7715   cat > conftest.$ac_ext <<EOF
7716 #line 7717 "configure"
7717 #include "confdefs.h"
7718 /* System header to define __stub macros and hopefully few prototypes,
7719     which can conflict with char $ac_func(); below.  */
7720 #include <assert.h>
7721 /* Override any gcc2 internal prototype to avoid an error.  */
7722 /* We use char because int might match the return type of a gcc2
7723     builtin and then its argument prototype would still apply.  */
7724 char $ac_func();
7725
7726 int main() {
7727
7728 /* The GNU C library defines this for functions which it implements
7729     to always fail with ENOSYS.  Some functions are actually named
7730     something starting with __ and the normal name is an alias.  */
7731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7732 choke me
7733 #else
7734 $ac_func();
7735 #endif
7736
7737 ; return 0; }
7738 EOF
7739 if { (eval echo configure:7740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7740   rm -rf conftest*
7741   eval "ac_cv_func_$ac_func=yes"
7742 else
7743   echo "configure: failed program was:" >&5
7744   cat conftest.$ac_ext >&5
7745   rm -rf conftest*
7746   eval "ac_cv_func_$ac_func=no"
7747 fi
7748 rm -f conftest*
7749 fi
7750
7751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7752   echo "$ac_t""yes" 1>&6
7753     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7754   cat >> confdefs.h <<EOF
7755 #define $ac_tr_func 1
7756 EOF
7757  
7758 else
7759   echo "$ac_t""no" 1>&6
7760 \
7761     ac_wfuncs=no
7762 fi
7763 done
7764
7765
7766     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7767 echo "configure:7768: checking for ISO C99 wchar_t support" >&5
7768     if test x"$has_weof" = xyes &&
7769        test x"$has_wchar_minmax" = xyes &&
7770        test x"$ac_wfuncs" = xyes; then
7771       ac_isoC99_wchar_t=yes
7772     else
7773       ac_isoC99_wchar_t=no
7774     fi
7775     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7776   
7777             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7778 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7779 echo "configure:7780: checking for iconv.h" >&5
7780 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7781   echo $ac_n "(cached) $ac_c" 1>&6
7782 else
7783   cat > conftest.$ac_ext <<EOF
7784 #line 7785 "configure"
7785 #include "confdefs.h"
7786 #include <iconv.h>
7787 EOF
7788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7789 { (eval echo configure:7790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7791 if test -z "$ac_err"; then
7792   rm -rf conftest*
7793   eval "ac_cv_header_$ac_safe=yes"
7794 else
7795   echo "$ac_err" >&5
7796   echo "configure: failed program was:" >&5
7797   cat conftest.$ac_ext >&5
7798   rm -rf conftest*
7799   eval "ac_cv_header_$ac_safe=no"
7800 fi
7801 rm -f conftest*
7802 fi
7803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7804   echo "$ac_t""yes" 1>&6
7805   ac_has_iconv_h=yes
7806 else
7807   echo "$ac_t""no" 1>&6
7808 ac_has_iconv_h=no
7809 fi
7810
7811     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7812 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7813 echo "configure:7814: checking for langinfo.h" >&5
7814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7815   echo $ac_n "(cached) $ac_c" 1>&6
7816 else
7817   cat > conftest.$ac_ext <<EOF
7818 #line 7819 "configure"
7819 #include "confdefs.h"
7820 #include <langinfo.h>
7821 EOF
7822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7823 { (eval echo configure:7824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7825 if test -z "$ac_err"; then
7826   rm -rf conftest*
7827   eval "ac_cv_header_$ac_safe=yes"
7828 else
7829   echo "$ac_err" >&5
7830   echo "configure: failed program was:" >&5
7831   cat conftest.$ac_ext >&5
7832   rm -rf conftest*
7833   eval "ac_cv_header_$ac_safe=no"
7834 fi
7835 rm -f conftest*
7836 fi
7837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7838   echo "$ac_t""yes" 1>&6
7839   ac_has_langinfo_h=yes
7840 else
7841   echo "$ac_t""no" 1>&6
7842 ac_has_langinfo_h=no
7843 fi
7844
7845
7846         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7847 echo "configure:7848: checking for iconv in -liconv" >&5
7848 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7850   echo $ac_n "(cached) $ac_c" 1>&6
7851 else
7852   ac_save_LIBS="$LIBS"
7853 LIBS="-liconv  $LIBS"
7854 cat > conftest.$ac_ext <<EOF
7855 #line 7856 "configure"
7856 #include "confdefs.h"
7857 /* Override any gcc2 internal prototype to avoid an error.  */
7858 /* We use char because int might match the return type of a gcc2
7859     builtin and then its argument prototype would still apply.  */
7860 char iconv();
7861
7862 int main() {
7863 iconv()
7864 ; return 0; }
7865 EOF
7866 if { (eval echo configure:7867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7867   rm -rf conftest*
7868   eval "ac_cv_lib_$ac_lib_var=yes"
7869 else
7870   echo "configure: failed program was:" >&5
7871   cat conftest.$ac_ext >&5
7872   rm -rf conftest*
7873   eval "ac_cv_lib_$ac_lib_var=no"
7874 fi
7875 rm -f conftest*
7876 LIBS="$ac_save_LIBS"
7877
7878 fi
7879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7880   echo "$ac_t""yes" 1>&6
7881   libiconv="-liconv"
7882 else
7883   echo "$ac_t""no" 1>&6
7884 fi
7885
7886     ac_save_LIBS="$LIBS"
7887     LIBS="$LIBS $libiconv"
7888
7889     for ac_func in iconv_open iconv_close iconv nl_langinfo
7890 do
7891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7892 echo "configure:7893: checking for $ac_func" >&5
7893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7894   echo $ac_n "(cached) $ac_c" 1>&6
7895 else
7896   cat > conftest.$ac_ext <<EOF
7897 #line 7898 "configure"
7898 #include "confdefs.h"
7899 /* System header to define __stub macros and hopefully few prototypes,
7900     which can conflict with char $ac_func(); below.  */
7901 #include <assert.h>
7902 /* Override any gcc2 internal prototype to avoid an error.  */
7903 /* We use char because int might match the return type of a gcc2
7904     builtin and then its argument prototype would still apply.  */
7905 char $ac_func();
7906
7907 int main() {
7908
7909 /* The GNU C library defines this for functions which it implements
7910     to always fail with ENOSYS.  Some functions are actually named
7911     something starting with __ and the normal name is an alias.  */
7912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7913 choke me
7914 #else
7915 $ac_func();
7916 #endif
7917
7918 ; return 0; }
7919 EOF
7920 if { (eval echo configure:7921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7921   rm -rf conftest*
7922   eval "ac_cv_func_$ac_func=yes"
7923 else
7924   echo "configure: failed program was:" >&5
7925   cat conftest.$ac_ext >&5
7926   rm -rf conftest*
7927   eval "ac_cv_func_$ac_func=no"
7928 fi
7929 rm -f conftest*
7930 fi
7931
7932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7933   echo "$ac_t""yes" 1>&6
7934     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7935   cat >> confdefs.h <<EOF
7936 #define $ac_tr_func 1
7937 EOF
7938  \
7939     ac_XPG2funcs=yes
7940 else
7941   echo "$ac_t""no" 1>&6
7942 ac_XPG2funcs=no
7943 fi
7944 done
7945
7946   
7947     LIBS="$ac_save_LIBS"
7948
7949     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7950 echo "configure:7951: checking for XPG2 wchar_t support" >&5
7951     if test x"$ac_has_iconv_h" = xyes &&
7952        test x"$ac_has_langinfo_h" = xyes &&
7953        test x"$ac_XPG2funcs" = xyes; then
7954       ac_XPG2_wchar_t=yes
7955     else
7956       ac_XPG2_wchar_t=no
7957     fi
7958     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7959   
7960             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7961 echo "configure:7962: checking for enabled wchar_t specializations" >&5
7962     if test x"$ac_isoC99_wchar_t" = xyes &&
7963        test x"$ac_XPG2_wchar_t" = xyes; then
7964       cat >> confdefs.h <<\EOF
7965 #define _GLIBCPP_USE_WCHAR_T 1
7966 EOF
7967
7968       echo "$ac_t"""yes"" 1>&6
7969     else
7970       echo "$ac_t"""no"" 1>&6
7971     fi
7972   else
7973         echo "configure: warning: wchar_t support disabled." 1>&2
7974   fi
7975
7976       os_include_dir="os/mingw32"
7977       ;;
7978     *-windiss*)
7979       os_include_dir="os/windiss"
7980       ;;
7981     *-qnx6.[12]*)
7982       SECTION_FLAGS='-ffunction-sections -fdata-sections'
7983        
7984       
7985   # If we're not using GNU ld, then there's no point in even trying these
7986   # tests.  Check for that first.  We should have already tested for gld
7987   # by now (in libtool), but require it now just to be safe...
7988   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7989   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7990   
7991
7992   # The name set by libtool depends on the version of libtool.  Shame on us
7993   # for depending on an impl detail, but c'est la vie.  Older versions used
7994   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7995   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7996   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7997   # set (hence we're using an older libtool), then set it.
7998   if test x${with_gnu_ld+set} != xset; then
7999     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8000       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8001       with_gnu_ld=no
8002     else
8003       with_gnu_ld=$ac_cv_prog_gnu_ld
8004     fi
8005   fi
8006
8007   # Start by getting the version number.  I think the libtool test already
8008   # does some of this, but throws away the result.
8009   
8010   ldver=`$LD --version 2>/dev/null | head -1 | \
8011          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8012   
8013   glibcpp_gnu_ld_version=`echo $ldver | \
8014          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8015
8016   # Set --gc-sections.
8017   if test "$with_gnu_ld" = "notbroken"; then
8018     # GNU ld it is!  Joy and bunny rabbits!
8019
8020     # All these tests are for C++; save the language and the compiler flags.
8021     # Need to do this so that g++ won't try to link in libstdc++
8022     ac_test_CFLAGS="${CFLAGS+set}"
8023     ac_save_CFLAGS="$CFLAGS"
8024     CFLAGS='-x c++  -Wl,--gc-sections'
8025
8026     # Check for -Wl,--gc-sections
8027     # XXX This test is broken at the moment, as symbols required for
8028     # linking are now in libsupc++ (not built yet.....). In addition, 
8029     # this test has cored on solaris in the past. In addition,
8030     # --gc-sections doesn't really work at the moment (keeps on discarding
8031     # used sections, first .eh_frame and now some of the glibc sections for
8032     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8033     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8034 echo "configure:8035: checking for ld that supports -Wl,--gc-sections" >&5
8035     if test "$cross_compiling" = yes; then
8036   ac_sectionLDflags=yes
8037 else
8038   cat > conftest.$ac_ext <<EOF
8039 #line 8040 "configure"
8040 #include "confdefs.h"
8041
8042      int main(void) 
8043      {
8044        try { throw 1; }
8045        catch (...) { };
8046        return 0;
8047      }
8048     
8049 EOF
8050 if { (eval echo configure:8051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8051 then
8052   ac_sectionLDflags=yes
8053 else
8054   echo "configure: failed program was:" >&5
8055   cat conftest.$ac_ext >&5
8056   rm -fr conftest*
8057   ac_sectionLDflags=no
8058 fi
8059 rm -fr conftest*
8060 fi
8061
8062     if test "$ac_test_CFLAGS" = set; then
8063       CFLAGS="$ac_save_CFLAGS"
8064     else
8065       # this is the suspicious part
8066       CFLAGS=''
8067     fi
8068     if test "$ac_sectionLDflags" = "yes"; then
8069       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8070     fi
8071     echo "$ac_t""$ac_sectionLDflags" 1>&6
8072   fi
8073
8074   # Set linker optimization flags.
8075   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
8076     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8077   fi
8078
8079   
8080   
8081
8082       
8083     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8084 echo "configure:8085: checking for main in -lm" >&5
8085 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8086 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8087   echo $ac_n "(cached) $ac_c" 1>&6
8088 else
8089   ac_save_LIBS="$LIBS"
8090 LIBS="-lm  $LIBS"
8091 cat > conftest.$ac_ext <<EOF
8092 #line 8093 "configure"
8093 #include "confdefs.h"
8094
8095 int main() {
8096 main()
8097 ; return 0; }
8098 EOF
8099 if { (eval echo configure:8100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8100   rm -rf conftest*
8101   eval "ac_cv_lib_$ac_lib_var=yes"
8102 else
8103   echo "configure: failed program was:" >&5
8104   cat conftest.$ac_ext >&5
8105   rm -rf conftest*
8106   eval "ac_cv_lib_$ac_lib_var=no"
8107 fi
8108 rm -f conftest*
8109 LIBS="$ac_save_LIBS"
8110
8111 fi
8112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8113   echo "$ac_t""yes" 1>&6
8114     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8115     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8116   cat >> confdefs.h <<EOF
8117 #define $ac_tr_lib 1
8118 EOF
8119
8120   LIBS="-lm $LIBS"
8121
8122 else
8123   echo "$ac_t""no" 1>&6
8124 fi
8125
8126   for ac_func in nan copysignf
8127 do
8128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8129 echo "configure:8130: checking for $ac_func" >&5
8130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8131   echo $ac_n "(cached) $ac_c" 1>&6
8132 else
8133   cat > conftest.$ac_ext <<EOF
8134 #line 8135 "configure"
8135 #include "confdefs.h"
8136 /* System header to define __stub macros and hopefully few prototypes,
8137     which can conflict with char $ac_func(); below.  */
8138 #include <assert.h>
8139 /* Override any gcc2 internal prototype to avoid an error.  */
8140 /* We use char because int might match the return type of a gcc2
8141     builtin and then its argument prototype would still apply.  */
8142 char $ac_func();
8143
8144 int main() {
8145
8146 /* The GNU C library defines this for functions which it implements
8147     to always fail with ENOSYS.  Some functions are actually named
8148     something starting with __ and the normal name is an alias.  */
8149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8150 choke me
8151 #else
8152 $ac_func();
8153 #endif
8154
8155 ; return 0; }
8156 EOF
8157 if { (eval echo configure:8158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8158   rm -rf conftest*
8159   eval "ac_cv_func_$ac_func=yes"
8160 else
8161   echo "configure: failed program was:" >&5
8162   cat conftest.$ac_ext >&5
8163   rm -rf conftest*
8164   eval "ac_cv_func_$ac_func=no"
8165 fi
8166 rm -f conftest*
8167 fi
8168
8169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8170   echo "$ac_t""yes" 1>&6
8171     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8172   cat >> confdefs.h <<EOF
8173 #define $ac_tr_func 1
8174 EOF
8175  
8176 else
8177   echo "$ac_t""no" 1>&6
8178 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8179 fi
8180 done
8181
8182
8183     for ac_func in __signbit
8184 do
8185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8186 echo "configure:8187: checking for $ac_func" >&5
8187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8188   echo $ac_n "(cached) $ac_c" 1>&6
8189 else
8190   cat > conftest.$ac_ext <<EOF
8191 #line 8192 "configure"
8192 #include "confdefs.h"
8193 /* System header to define __stub macros and hopefully few prototypes,
8194     which can conflict with char $ac_func(); below.  */
8195 #include <assert.h>
8196 /* Override any gcc2 internal prototype to avoid an error.  */
8197 /* We use char because int might match the return type of a gcc2
8198     builtin and then its argument prototype would still apply.  */
8199 char $ac_func();
8200
8201 int main() {
8202
8203 /* The GNU C library defines this for functions which it implements
8204     to always fail with ENOSYS.  Some functions are actually named
8205     something starting with __ and the normal name is an alias.  */
8206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8207 choke me
8208 #else
8209 $ac_func();
8210 #endif
8211
8212 ; return 0; }
8213 EOF
8214 if { (eval echo configure:8215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8215   rm -rf conftest*
8216   eval "ac_cv_func_$ac_func=yes"
8217 else
8218   echo "configure: failed program was:" >&5
8219   cat conftest.$ac_ext >&5
8220   rm -rf conftest*
8221   eval "ac_cv_func_$ac_func=no"
8222 fi
8223 rm -f conftest*
8224 fi
8225
8226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8227   echo "$ac_t""yes" 1>&6
8228     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8229   cat >> confdefs.h <<EOF
8230 #define $ac_tr_func 1
8231 EOF
8232  
8233 else
8234   echo "$ac_t""no" 1>&6
8235 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8236 fi
8237 done
8238
8239   for ac_func in __signbitf
8240 do
8241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8242 echo "configure:8243: checking for $ac_func" >&5
8243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8244   echo $ac_n "(cached) $ac_c" 1>&6
8245 else
8246   cat > conftest.$ac_ext <<EOF
8247 #line 8248 "configure"
8248 #include "confdefs.h"
8249 /* System header to define __stub macros and hopefully few prototypes,
8250     which can conflict with char $ac_func(); below.  */
8251 #include <assert.h>
8252 /* Override any gcc2 internal prototype to avoid an error.  */
8253 /* We use char because int might match the return type of a gcc2
8254     builtin and then its argument prototype would still apply.  */
8255 char $ac_func();
8256
8257 int main() {
8258
8259 /* The GNU C library defines this for functions which it implements
8260     to always fail with ENOSYS.  Some functions are actually named
8261     something starting with __ and the normal name is an alias.  */
8262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8263 choke me
8264 #else
8265 $ac_func();
8266 #endif
8267
8268 ; return 0; }
8269 EOF
8270 if { (eval echo configure:8271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8271   rm -rf conftest*
8272   eval "ac_cv_func_$ac_func=yes"
8273 else
8274   echo "configure: failed program was:" >&5
8275   cat conftest.$ac_ext >&5
8276   rm -rf conftest*
8277   eval "ac_cv_func_$ac_func=no"
8278 fi
8279 rm -f conftest*
8280 fi
8281
8282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8283   echo "$ac_t""yes" 1>&6
8284     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8285   cat >> confdefs.h <<EOF
8286 #define $ac_tr_func 1
8287 EOF
8288  
8289 else
8290   echo "$ac_t""no" 1>&6
8291 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8292 fi
8293 done
8294
8295
8296           if test x$ac_cv_func_copysignl = x"yes"; then
8297     for ac_func in __signbitl
8298 do
8299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8300 echo "configure:8301: checking for $ac_func" >&5
8301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8302   echo $ac_n "(cached) $ac_c" 1>&6
8303 else
8304   cat > conftest.$ac_ext <<EOF
8305 #line 8306 "configure"
8306 #include "confdefs.h"
8307 /* System header to define __stub macros and hopefully few prototypes,
8308     which can conflict with char $ac_func(); below.  */
8309 #include <assert.h>
8310 /* Override any gcc2 internal prototype to avoid an error.  */
8311 /* We use char because int might match the return type of a gcc2
8312     builtin and then its argument prototype would still apply.  */
8313 char $ac_func();
8314
8315 int main() {
8316
8317 /* The GNU C library defines this for functions which it implements
8318     to always fail with ENOSYS.  Some functions are actually named
8319     something starting with __ and the normal name is an alias.  */
8320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8321 choke me
8322 #else
8323 $ac_func();
8324 #endif
8325
8326 ; return 0; }
8327 EOF
8328 if { (eval echo configure:8329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8329   rm -rf conftest*
8330   eval "ac_cv_func_$ac_func=yes"
8331 else
8332   echo "configure: failed program was:" >&5
8333   cat conftest.$ac_ext >&5
8334   rm -rf conftest*
8335   eval "ac_cv_func_$ac_func=no"
8336 fi
8337 rm -f conftest*
8338 fi
8339
8340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8341   echo "$ac_t""yes" 1>&6
8342     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8343   cat >> confdefs.h <<EOF
8344 #define $ac_tr_func 1
8345 EOF
8346  
8347 else
8348   echo "$ac_t""no" 1>&6
8349 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8350 fi
8351 done
8352
8353   fi
8354
8355   
8356
8357       
8358
8359       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8360 echo "configure:8361: checking for mbstate_t" >&5
8361   cat > conftest.$ac_ext <<EOF
8362 #line 8363 "configure"
8363 #include "confdefs.h"
8364 #include <wchar.h>
8365 int main() {
8366 mbstate_t teststate;
8367 ; return 0; }
8368 EOF
8369 if { (eval echo configure:8370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8370   rm -rf conftest*
8371   have_mbstate_t=yes
8372 else
8373   echo "configure: failed program was:" >&5
8374   cat conftest.$ac_ext >&5
8375   rm -rf conftest*
8376   have_mbstate_t=no
8377 fi
8378 rm -f conftest*
8379   echo "$ac_t""$have_mbstate_t" 1>&6
8380   if test x"$have_mbstate_t" = xyes; then
8381     cat >> confdefs.h <<\EOF
8382 #define HAVE_MBSTATE_T 1
8383 EOF
8384
8385   fi
8386
8387     for ac_hdr in wchar.h
8388 do
8389 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8390 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8391 echo "configure:8392: checking for $ac_hdr" >&5
8392 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8393   echo $ac_n "(cached) $ac_c" 1>&6
8394 else
8395   cat > conftest.$ac_ext <<EOF
8396 #line 8397 "configure"
8397 #include "confdefs.h"
8398 #include <$ac_hdr>
8399 EOF
8400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8401 { (eval echo configure:8402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8403 if test -z "$ac_err"; then
8404   rm -rf conftest*
8405   eval "ac_cv_header_$ac_safe=yes"
8406 else
8407   echo "$ac_err" >&5
8408   echo "configure: failed program was:" >&5
8409   cat conftest.$ac_ext >&5
8410   rm -rf conftest*
8411   eval "ac_cv_header_$ac_safe=no"
8412 fi
8413 rm -f conftest*
8414 fi
8415 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8416   echo "$ac_t""yes" 1>&6
8417     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8418   cat >> confdefs.h <<EOF
8419 #define $ac_tr_hdr 1
8420 EOF
8421  ac_has_wchar_h=yes
8422 else
8423   echo "$ac_t""no" 1>&6
8424 ac_has_wchar_h=no
8425 fi
8426 done
8427
8428   for ac_hdr in wctype.h
8429 do
8430 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8431 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8432 echo "configure:8433: checking for $ac_hdr" >&5
8433 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8434   echo $ac_n "(cached) $ac_c" 1>&6
8435 else
8436   cat > conftest.$ac_ext <<EOF
8437 #line 8438 "configure"
8438 #include "confdefs.h"
8439 #include <$ac_hdr>
8440 EOF
8441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8442 { (eval echo configure:8443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8444 if test -z "$ac_err"; then
8445   rm -rf conftest*
8446   eval "ac_cv_header_$ac_safe=yes"
8447 else
8448   echo "$ac_err" >&5
8449   echo "configure: failed program was:" >&5
8450   cat conftest.$ac_ext >&5
8451   rm -rf conftest*
8452   eval "ac_cv_header_$ac_safe=no"
8453 fi
8454 rm -f conftest*
8455 fi
8456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8457   echo "$ac_t""yes" 1>&6
8458     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8459   cat >> confdefs.h <<EOF
8460 #define $ac_tr_hdr 1
8461 EOF
8462  ac_has_wctype_h=yes
8463 else
8464   echo "$ac_t""no" 1>&6
8465 ac_has_wctype_h=no
8466 fi
8467 done
8468
8469   
8470     if test x"$ac_has_wchar_h" = xyes &&
8471      test x"$ac_has_wctype_h" = xyes &&
8472      test x"$enable_c_mbchar" != xno; then
8473       
8474             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8475 echo "configure:8476: checking for WCHAR_MIN and WCHAR_MAX" >&5
8476     cat > conftest.$ac_ext <<EOF
8477 #line 8478 "configure"
8478 #include "confdefs.h"
8479 #include <wchar.h>
8480 int main() {
8481 int i = WCHAR_MIN; int j = WCHAR_MAX;
8482 ; return 0; }
8483 EOF
8484 if { (eval echo configure:8485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8485   rm -rf conftest*
8486   has_wchar_minmax=yes
8487 else
8488   echo "configure: failed program was:" >&5
8489   cat conftest.$ac_ext >&5
8490   rm -rf conftest*
8491   has_wchar_minmax=no
8492 fi
8493 rm -f conftest*
8494     echo "$ac_t""$has_wchar_minmax" 1>&6
8495     
8496             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8497 echo "configure:8498: checking for WEOF" >&5
8498     cat > conftest.$ac_ext <<EOF
8499 #line 8500 "configure"
8500 #include "confdefs.h"
8501
8502       #include <wchar.h>
8503       #include <stddef.h>
8504 int main() {
8505 wint_t i = WEOF;
8506 ; return 0; }
8507 EOF
8508 if { (eval echo configure:8509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8509   rm -rf conftest*
8510   has_weof=yes
8511 else
8512   echo "configure: failed program was:" >&5
8513   cat conftest.$ac_ext >&5
8514   rm -rf conftest*
8515   has_weof=no
8516 fi
8517 rm -f conftest*
8518     echo "$ac_t""$has_weof" 1>&6
8519   
8520         ac_wfuncs=yes
8521     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8522 do
8523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8524 echo "configure:8525: checking for $ac_func" >&5
8525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8526   echo $ac_n "(cached) $ac_c" 1>&6
8527 else
8528   cat > conftest.$ac_ext <<EOF
8529 #line 8530 "configure"
8530 #include "confdefs.h"
8531 /* System header to define __stub macros and hopefully few prototypes,
8532     which can conflict with char $ac_func(); below.  */
8533 #include <assert.h>
8534 /* Override any gcc2 internal prototype to avoid an error.  */
8535 /* We use char because int might match the return type of a gcc2
8536     builtin and then its argument prototype would still apply.  */
8537 char $ac_func();
8538
8539 int main() {
8540
8541 /* The GNU C library defines this for functions which it implements
8542     to always fail with ENOSYS.  Some functions are actually named
8543     something starting with __ and the normal name is an alias.  */
8544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8545 choke me
8546 #else
8547 $ac_func();
8548 #endif
8549
8550 ; return 0; }
8551 EOF
8552 if { (eval echo configure:8553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8553   rm -rf conftest*
8554   eval "ac_cv_func_$ac_func=yes"
8555 else
8556   echo "configure: failed program was:" >&5
8557   cat conftest.$ac_ext >&5
8558   rm -rf conftest*
8559   eval "ac_cv_func_$ac_func=no"
8560 fi
8561 rm -f conftest*
8562 fi
8563
8564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8565   echo "$ac_t""yes" 1>&6
8566     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8567   cat >> confdefs.h <<EOF
8568 #define $ac_tr_func 1
8569 EOF
8570  
8571 else
8572   echo "$ac_t""no" 1>&6
8573 \
8574     ac_wfuncs=no
8575 fi
8576 done
8577
8578   
8579         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8580     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8581     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8582     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8583     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8584     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8585 do
8586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8587 echo "configure:8588: checking for $ac_func" >&5
8588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8589   echo $ac_n "(cached) $ac_c" 1>&6
8590 else
8591   cat > conftest.$ac_ext <<EOF
8592 #line 8593 "configure"
8593 #include "confdefs.h"
8594 /* System header to define __stub macros and hopefully few prototypes,
8595     which can conflict with char $ac_func(); below.  */
8596 #include <assert.h>
8597 /* Override any gcc2 internal prototype to avoid an error.  */
8598 /* We use char because int might match the return type of a gcc2
8599     builtin and then its argument prototype would still apply.  */
8600 char $ac_func();
8601
8602 int main() {
8603
8604 /* The GNU C library defines this for functions which it implements
8605     to always fail with ENOSYS.  Some functions are actually named
8606     something starting with __ and the normal name is an alias.  */
8607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8608 choke me
8609 #else
8610 $ac_func();
8611 #endif
8612
8613 ; return 0; }
8614 EOF
8615 if { (eval echo configure:8616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8616   rm -rf conftest*
8617   eval "ac_cv_func_$ac_func=yes"
8618 else
8619   echo "configure: failed program was:" >&5
8620   cat conftest.$ac_ext >&5
8621   rm -rf conftest*
8622   eval "ac_cv_func_$ac_func=no"
8623 fi
8624 rm -f conftest*
8625 fi
8626
8627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8628   echo "$ac_t""yes" 1>&6
8629     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8630   cat >> confdefs.h <<EOF
8631 #define $ac_tr_func 1
8632 EOF
8633  
8634 else
8635   echo "$ac_t""no" 1>&6
8636 \
8637     ac_wfuncs=no
8638 fi
8639 done
8640
8641
8642     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8643 echo "configure:8644: checking for ISO C99 wchar_t support" >&5
8644     if test x"$has_weof" = xyes &&
8645        test x"$has_wchar_minmax" = xyes &&
8646        test x"$ac_wfuncs" = xyes; then
8647       ac_isoC99_wchar_t=yes
8648     else
8649       ac_isoC99_wchar_t=no
8650     fi
8651     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8652   
8653             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8654 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8655 echo "configure:8656: checking for iconv.h" >&5
8656 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8657   echo $ac_n "(cached) $ac_c" 1>&6
8658 else
8659   cat > conftest.$ac_ext <<EOF
8660 #line 8661 "configure"
8661 #include "confdefs.h"
8662 #include <iconv.h>
8663 EOF
8664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8665 { (eval echo configure:8666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8667 if test -z "$ac_err"; then
8668   rm -rf conftest*
8669   eval "ac_cv_header_$ac_safe=yes"
8670 else
8671   echo "$ac_err" >&5
8672   echo "configure: failed program was:" >&5
8673   cat conftest.$ac_ext >&5
8674   rm -rf conftest*
8675   eval "ac_cv_header_$ac_safe=no"
8676 fi
8677 rm -f conftest*
8678 fi
8679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8680   echo "$ac_t""yes" 1>&6
8681   ac_has_iconv_h=yes
8682 else
8683   echo "$ac_t""no" 1>&6
8684 ac_has_iconv_h=no
8685 fi
8686
8687     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8688 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8689 echo "configure:8690: checking for langinfo.h" >&5
8690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8691   echo $ac_n "(cached) $ac_c" 1>&6
8692 else
8693   cat > conftest.$ac_ext <<EOF
8694 #line 8695 "configure"
8695 #include "confdefs.h"
8696 #include <langinfo.h>
8697 EOF
8698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8699 { (eval echo configure:8700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8701 if test -z "$ac_err"; then
8702   rm -rf conftest*
8703   eval "ac_cv_header_$ac_safe=yes"
8704 else
8705   echo "$ac_err" >&5
8706   echo "configure: failed program was:" >&5
8707   cat conftest.$ac_ext >&5
8708   rm -rf conftest*
8709   eval "ac_cv_header_$ac_safe=no"
8710 fi
8711 rm -f conftest*
8712 fi
8713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8714   echo "$ac_t""yes" 1>&6
8715   ac_has_langinfo_h=yes
8716 else
8717   echo "$ac_t""no" 1>&6
8718 ac_has_langinfo_h=no
8719 fi
8720
8721
8722         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8723 echo "configure:8724: checking for iconv in -liconv" >&5
8724 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8725 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8726   echo $ac_n "(cached) $ac_c" 1>&6
8727 else
8728   ac_save_LIBS="$LIBS"
8729 LIBS="-liconv  $LIBS"
8730 cat > conftest.$ac_ext <<EOF
8731 #line 8732 "configure"
8732 #include "confdefs.h"
8733 /* Override any gcc2 internal prototype to avoid an error.  */
8734 /* We use char because int might match the return type of a gcc2
8735     builtin and then its argument prototype would still apply.  */
8736 char iconv();
8737
8738 int main() {
8739 iconv()
8740 ; return 0; }
8741 EOF
8742 if { (eval echo configure:8743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8743   rm -rf conftest*
8744   eval "ac_cv_lib_$ac_lib_var=yes"
8745 else
8746   echo "configure: failed program was:" >&5
8747   cat conftest.$ac_ext >&5
8748   rm -rf conftest*
8749   eval "ac_cv_lib_$ac_lib_var=no"
8750 fi
8751 rm -f conftest*
8752 LIBS="$ac_save_LIBS"
8753
8754 fi
8755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8756   echo "$ac_t""yes" 1>&6
8757   libiconv="-liconv"
8758 else
8759   echo "$ac_t""no" 1>&6
8760 fi
8761
8762     ac_save_LIBS="$LIBS"
8763     LIBS="$LIBS $libiconv"
8764
8765     for ac_func in iconv_open iconv_close iconv nl_langinfo
8766 do
8767 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8768 echo "configure:8769: checking for $ac_func" >&5
8769 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8770   echo $ac_n "(cached) $ac_c" 1>&6
8771 else
8772   cat > conftest.$ac_ext <<EOF
8773 #line 8774 "configure"
8774 #include "confdefs.h"
8775 /* System header to define __stub macros and hopefully few prototypes,
8776     which can conflict with char $ac_func(); below.  */
8777 #include <assert.h>
8778 /* Override any gcc2 internal prototype to avoid an error.  */
8779 /* We use char because int might match the return type of a gcc2
8780     builtin and then its argument prototype would still apply.  */
8781 char $ac_func();
8782
8783 int main() {
8784
8785 /* The GNU C library defines this for functions which it implements
8786     to always fail with ENOSYS.  Some functions are actually named
8787     something starting with __ and the normal name is an alias.  */
8788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8789 choke me
8790 #else
8791 $ac_func();
8792 #endif
8793
8794 ; return 0; }
8795 EOF
8796 if { (eval echo configure:8797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8797   rm -rf conftest*
8798   eval "ac_cv_func_$ac_func=yes"
8799 else
8800   echo "configure: failed program was:" >&5
8801   cat conftest.$ac_ext >&5
8802   rm -rf conftest*
8803   eval "ac_cv_func_$ac_func=no"
8804 fi
8805 rm -f conftest*
8806 fi
8807
8808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8809   echo "$ac_t""yes" 1>&6
8810     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8811   cat >> confdefs.h <<EOF
8812 #define $ac_tr_func 1
8813 EOF
8814  \
8815     ac_XPG2funcs=yes
8816 else
8817   echo "$ac_t""no" 1>&6
8818 ac_XPG2funcs=no
8819 fi
8820 done
8821
8822   
8823     LIBS="$ac_save_LIBS"
8824
8825     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8826 echo "configure:8827: checking for XPG2 wchar_t support" >&5
8827     if test x"$ac_has_iconv_h" = xyes &&
8828        test x"$ac_has_langinfo_h" = xyes &&
8829        test x"$ac_XPG2funcs" = xyes; then
8830       ac_XPG2_wchar_t=yes
8831     else
8832       ac_XPG2_wchar_t=no
8833     fi
8834     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8835   
8836             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8837 echo "configure:8838: checking for enabled wchar_t specializations" >&5
8838     if test x"$ac_isoC99_wchar_t" = xyes &&
8839        test x"$ac_XPG2_wchar_t" = xyes; then
8840       cat >> confdefs.h <<\EOF
8841 #define _GLIBCPP_USE_WCHAR_T 1
8842 EOF
8843
8844       echo "$ac_t"""yes"" 1>&6
8845     else
8846       echo "$ac_t"""no"" 1>&6
8847     fi
8848   else
8849         echo "configure: warning: wchar_t support disabled." 1>&2
8850   fi
8851
8852       os_include_dir="os/qnx/qnx6.1"
8853       cat >> confdefs.h <<\EOF
8854 #define HAVE_COSF 1
8855 EOF
8856
8857       cat >> confdefs.h <<\EOF
8858 #define HAVE_COSL 1
8859 EOF
8860
8861       cat >> confdefs.h <<\EOF
8862 #define HAVE_COSHF 1
8863 EOF
8864
8865       cat >> confdefs.h <<\EOF
8866 #define HAVE_COSHL 1
8867 EOF
8868
8869       cat >> confdefs.h <<\EOF
8870 #define HAVE_LOGF 1
8871 EOF
8872
8873       cat >> confdefs.h <<\EOF
8874 #define HAVE_LOGL 1
8875 EOF
8876
8877       cat >> confdefs.h <<\EOF
8878 #define HAVE_LOG10F 1
8879 EOF
8880
8881       cat >> confdefs.h <<\EOF
8882 #define HAVE_LOG10L 1
8883 EOF
8884
8885       cat >> confdefs.h <<\EOF
8886 #define HAVE_SINF 1
8887 EOF
8888
8889       cat >> confdefs.h <<\EOF
8890 #define HAVE_SINL 1
8891 EOF
8892
8893       cat >> confdefs.h <<\EOF
8894 #define HAVE_SINHF 1
8895 EOF
8896
8897       cat >> confdefs.h <<\EOF
8898 #define HAVE_SINHL 1
8899 EOF
8900
8901       ;;
8902     *)
8903       os_include_dir="os/newlib"
8904       cat >> confdefs.h <<\EOF
8905 #define HAVE_HYPOT 1
8906 EOF
8907
8908       ;;
8909   esac
8910
8911   case "$target_alias" in
8912     *-mingw32*)
8913       ;;
8914     *-windiss*)
8915       cat >> confdefs.h <<\EOF
8916 #define HAVE_ACOSF 1
8917 EOF
8918
8919       cat >> confdefs.h <<\EOF
8920 #define HAVE_ASINF 1
8921 EOF
8922
8923       cat >> confdefs.h <<\EOF
8924 #define HAVE_ATAN2F 1
8925 EOF
8926
8927       cat >> confdefs.h <<\EOF
8928 #define HAVE_ATANF 1
8929 EOF
8930
8931       cat >> confdefs.h <<\EOF
8932 #define HAVE_CEILF 1
8933 EOF
8934
8935       cat >> confdefs.h <<\EOF
8936 #define HAVE_COPYSIGN 1
8937 EOF
8938
8939       cat >> confdefs.h <<\EOF
8940 #define HAVE_COPYSIGNF 1
8941 EOF
8942
8943       cat >> confdefs.h <<\EOF
8944 #define HAVE_COSF 1
8945 EOF
8946
8947       cat >> confdefs.h <<\EOF
8948 #define HAVE_COSHF 1
8949 EOF
8950
8951       cat >> confdefs.h <<\EOF
8952 #define HAVE_EXPF 1
8953 EOF
8954
8955       cat >> confdefs.h <<\EOF
8956 #define HAVE_FABSF 1
8957 EOF
8958
8959       cat >> confdefs.h <<\EOF
8960 #define HAVE_FLOORF 1
8961 EOF
8962
8963       cat >> confdefs.h <<\EOF
8964 #define HAVE_FMODF 1
8965 EOF
8966
8967       cat >> confdefs.h <<\EOF
8968 #define HAVE_FREXPF 1
8969 EOF
8970
8971       cat >> confdefs.h <<\EOF
8972 #define HAVE_LDEXPF 1
8973 EOF
8974
8975       cat >> confdefs.h <<\EOF
8976 #define HAVE_LOG10F 1
8977 EOF
8978
8979       cat >> confdefs.h <<\EOF
8980 #define HAVE_LOGF 1
8981 EOF
8982
8983       cat >> confdefs.h <<\EOF
8984 #define HAVE_MODFF 1
8985 EOF
8986
8987       cat >> confdefs.h <<\EOF
8988 #define HAVE_POWF 1
8989 EOF
8990
8991       cat >> confdefs.h <<\EOF
8992 #define HAVE_SINF 1
8993 EOF
8994
8995       cat >> confdefs.h <<\EOF
8996 #define HAVE_SINHF 1
8997 EOF
8998
8999       cat >> confdefs.h <<\EOF
9000 #define HAVE_SQRTF 1
9001 EOF
9002
9003       cat >> confdefs.h <<\EOF
9004 #define HAVE_TANF 1
9005 EOF
9006
9007       cat >> confdefs.h <<\EOF
9008 #define HAVE_TANHF 1
9009 EOF
9010
9011       ;;
9012     *)
9013       # GLIBCPP_CHECK_STDLIB_SUPPORT
9014       cat >> confdefs.h <<\EOF
9015 #define HAVE_STRTOF 1
9016 EOF
9017         
9018       cat >> confdefs.h <<\EOF
9019 #define HAVE_STRTOLD 1
9020 EOF
9021         
9022       # AC_FUNC_MMAP
9023       cat >> confdefs.h <<\EOF
9024 #define HAVE_MMAP 1
9025 EOF
9026
9027
9028       cat >> confdefs.h <<\EOF
9029 #define HAVE_ACOSF 1
9030 EOF
9031
9032       cat >> confdefs.h <<\EOF
9033 #define HAVE_ASINF 1
9034 EOF
9035
9036       cat >> confdefs.h <<\EOF
9037 #define HAVE_ATAN2F 1
9038 EOF
9039
9040       cat >> confdefs.h <<\EOF
9041 #define HAVE_ATANF 1
9042 EOF
9043
9044       cat >> confdefs.h <<\EOF
9045 #define HAVE_CEILF 1
9046 EOF
9047
9048       cat >> confdefs.h <<\EOF
9049 #define HAVE_COPYSIGN 1
9050 EOF
9051
9052       cat >> confdefs.h <<\EOF
9053 #define HAVE_COPYSIGNF 1
9054 EOF
9055
9056       cat >> confdefs.h <<\EOF
9057 #define HAVE_COSF 1
9058 EOF
9059
9060       cat >> confdefs.h <<\EOF
9061 #define HAVE_COSHF 1
9062 EOF
9063
9064       cat >> confdefs.h <<\EOF
9065 #define HAVE_EXPF 1
9066 EOF
9067
9068       cat >> confdefs.h <<\EOF
9069 #define HAVE_FABSF 1
9070 EOF
9071
9072       cat >> confdefs.h <<\EOF
9073 #define HAVE_FLOORF 1
9074 EOF
9075
9076       cat >> confdefs.h <<\EOF
9077 #define HAVE_FMODF 1
9078 EOF
9079
9080       cat >> confdefs.h <<\EOF
9081 #define HAVE_FREXPF 1
9082 EOF
9083
9084       cat >> confdefs.h <<\EOF
9085 #define HAVE_LDEXPF 1
9086 EOF
9087
9088       cat >> confdefs.h <<\EOF
9089 #define HAVE_LOG10F 1
9090 EOF
9091
9092       cat >> confdefs.h <<\EOF
9093 #define HAVE_LOGF 1
9094 EOF
9095
9096       cat >> confdefs.h <<\EOF
9097 #define HAVE_MODFF 1
9098 EOF
9099
9100       cat >> confdefs.h <<\EOF
9101 #define HAVE_POWF 1
9102 EOF
9103
9104       cat >> confdefs.h <<\EOF
9105 #define HAVE_SINF 1
9106 EOF
9107
9108       cat >> confdefs.h <<\EOF
9109 #define HAVE_SINHF 1
9110 EOF
9111
9112       cat >> confdefs.h <<\EOF
9113 #define HAVE_SQRTF 1
9114 EOF
9115
9116       cat >> confdefs.h <<\EOF
9117 #define HAVE_TANF 1
9118 EOF
9119
9120       cat >> confdefs.h <<\EOF
9121 #define HAVE_TANHF 1
9122 EOF
9123
9124       ;;
9125   esac
9126
9127   # At some point, we should differentiate between architectures
9128   # like x86, which have long double versions, and alpha/powerpc/etc.,
9129   # which don't. For the time being, punt.
9130   if test x"long_double_math_on_this_cpu" = x"yes"; then
9131     cat >> confdefs.h <<\EOF
9132 #define HAVE_ACOSL 1
9133 EOF
9134
9135     cat >> confdefs.h <<\EOF
9136 #define HAVE_ASINL 1
9137 EOF
9138
9139     cat >> confdefs.h <<\EOF
9140 #define HAVE_ATAN2L 1
9141 EOF
9142
9143     cat >> confdefs.h <<\EOF
9144 #define HAVE_ATANL 1
9145 EOF
9146
9147     cat >> confdefs.h <<\EOF
9148 #define HAVE_CEILL 1
9149 EOF
9150
9151     cat >> confdefs.h <<\EOF
9152 #define HAVE_COPYSIGNL 1
9153 EOF
9154
9155     cat >> confdefs.h <<\EOF
9156 #define HAVE_COSL 1
9157 EOF
9158
9159     cat >> confdefs.h <<\EOF
9160 #define HAVE_COSHL 1
9161 EOF
9162
9163     cat >> confdefs.h <<\EOF
9164 #define HAVE_EXPL 1
9165 EOF
9166
9167     cat >> confdefs.h <<\EOF
9168 #define HAVE_FABSL 1
9169 EOF
9170
9171     cat >> confdefs.h <<\EOF
9172 #define HAVE_FLOORL 1
9173 EOF
9174
9175     cat >> confdefs.h <<\EOF
9176 #define HAVE_FMODL 1
9177 EOF
9178
9179     cat >> confdefs.h <<\EOF
9180 #define HAVE_FREXPL 1
9181 EOF
9182
9183     cat >> confdefs.h <<\EOF
9184 #define HAVE_LDEXPL 1
9185 EOF
9186
9187     cat >> confdefs.h <<\EOF
9188 #define HAVE_LOG10L 1
9189 EOF
9190
9191     cat >> confdefs.h <<\EOF
9192 #define HAVE_LOGL 1
9193 EOF
9194
9195     cat >> confdefs.h <<\EOF
9196 #define HAVE_MODFL 1
9197 EOF
9198
9199     cat >> confdefs.h <<\EOF
9200 #define HAVE_POWL 1
9201 EOF
9202
9203     cat >> confdefs.h <<\EOF
9204 #define HAVE_SINCOSL 1
9205 EOF
9206
9207     cat >> confdefs.h <<\EOF
9208 #define HAVE_SINL 1
9209 EOF
9210
9211     cat >> confdefs.h <<\EOF
9212 #define HAVE_SINHL 1
9213 EOF
9214
9215     cat >> confdefs.h <<\EOF
9216 #define HAVE_SQRTL 1
9217 EOF
9218
9219     cat >> confdefs.h <<\EOF
9220 #define HAVE_TANL 1
9221 EOF
9222
9223     cat >> confdefs.h <<\EOF
9224 #define HAVE_TANHL 1
9225 EOF
9226
9227   fi
9228
9229 else
9230
9231   # We are being configured natively. We can do more elaborate tests
9232   # that include AC_TRY_COMPILE now, as the linker is assumed to be
9233   # working.
9234   GLIBCPP_IS_CROSS_COMPILING=0
9235   CANADIAN=no
9236
9237   # Check for available headers.
9238   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
9239   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
9240 do
9241 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9242 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9243 echo "configure:9244: checking for $ac_hdr" >&5
9244 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9245   echo $ac_n "(cached) $ac_c" 1>&6
9246 else
9247   cat > conftest.$ac_ext <<EOF
9248 #line 9249 "configure"
9249 #include "confdefs.h"
9250 #include <$ac_hdr>
9251 EOF
9252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9253 { (eval echo configure:9254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9255 if test -z "$ac_err"; then
9256   rm -rf conftest*
9257   eval "ac_cv_header_$ac_safe=yes"
9258 else
9259   echo "$ac_err" >&5
9260   echo "configure: failed program was:" >&5
9261   cat conftest.$ac_ext >&5
9262   rm -rf conftest*
9263   eval "ac_cv_header_$ac_safe=no"
9264 fi
9265 rm -f conftest*
9266 fi
9267 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9268   echo "$ac_t""yes" 1>&6
9269     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9270   cat >> confdefs.h <<EOF
9271 #define $ac_tr_hdr 1
9272 EOF
9273  
9274 else
9275   echo "$ac_t""no" 1>&6
9276 fi
9277 done
9278
9279
9280   
9281   # All these tests are for C++; save the language and the compiler flags.
9282   # The CXXFLAGS thing is suspicious, but based on similar bits previously
9283   # found in GLIBCPP_CONFIGURE.
9284   
9285   ac_ext=C
9286 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9287 ac_cpp='$CXXCPP $CPPFLAGS'
9288 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9289 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9290 cross_compiling=$ac_cv_prog_cxx_cross
9291
9292   ac_test_CXXFLAGS="${CXXFLAGS+set}"
9293   ac_save_CXXFLAGS="$CXXFLAGS"
9294
9295   # Check for maintainer-mode bits.
9296   if test x"$USE_MAINTAINER_MODE" = xno; then
9297     WERROR=''
9298   else
9299     WERROR='-Werror'
9300   fi
9301
9302   # Check for -ffunction-sections -fdata-sections
9303   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
9304 echo "configure:9305: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
9305   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
9306   cat > conftest.$ac_ext <<EOF
9307 #line 9308 "configure"
9308 #include "confdefs.h"
9309
9310 int main() {
9311 int foo;
9312   
9313 ; return 0; }
9314 EOF
9315 if { (eval echo configure:9316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9316   rm -rf conftest*
9317   ac_fdsections=yes
9318 else
9319   echo "configure: failed program was:" >&5
9320   cat conftest.$ac_ext >&5
9321   rm -rf conftest*
9322   ac_fdsections=no
9323 fi
9324 rm -f conftest*
9325   if test "$ac_test_CXXFLAGS" = set; then
9326     CXXFLAGS="$ac_save_CXXFLAGS"
9327   else
9328     # this is the suspicious part
9329     CXXFLAGS=''
9330   fi
9331   if test x"$ac_fdsections" = x"yes" &&
9332      test x"$enable_debug" = x"no"; then
9333     SECTION_FLAGS='-ffunction-sections -fdata-sections'
9334   fi
9335   echo "$ac_t""$ac_fdsections" 1>&6
9336
9337   ac_ext=c
9338 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9339 ac_cpp='$CPP $CPPFLAGS'
9340 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9341 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9342 cross_compiling=$ac_cv_prog_cc_cross
9343
9344   
9345   
9346
9347   
9348   # If we're not using GNU ld, then there's no point in even trying these
9349   # tests.  Check for that first.  We should have already tested for gld
9350   # by now (in libtool), but require it now just to be safe...
9351   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9352   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9353   
9354
9355   # The name set by libtool depends on the version of libtool.  Shame on us
9356   # for depending on an impl detail, but c'est la vie.  Older versions used
9357   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9358   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9359   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9360   # set (hence we're using an older libtool), then set it.
9361   if test x${with_gnu_ld+set} != xset; then
9362     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9363       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9364       with_gnu_ld=no
9365     else
9366       with_gnu_ld=$ac_cv_prog_gnu_ld
9367     fi
9368   fi
9369
9370   # Start by getting the version number.  I think the libtool test already
9371   # does some of this, but throws away the result.
9372   
9373   ldver=`$LD --version 2>/dev/null | head -1 | \
9374          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9375   
9376   glibcpp_gnu_ld_version=`echo $ldver | \
9377          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9378
9379   # Set --gc-sections.
9380   if test "$with_gnu_ld" = "notbroken"; then
9381     # GNU ld it is!  Joy and bunny rabbits!
9382
9383     # All these tests are for C++; save the language and the compiler flags.
9384     # Need to do this so that g++ won't try to link in libstdc++
9385     ac_test_CFLAGS="${CFLAGS+set}"
9386     ac_save_CFLAGS="$CFLAGS"
9387     CFLAGS='-x c++  -Wl,--gc-sections'
9388
9389     # Check for -Wl,--gc-sections
9390     # XXX This test is broken at the moment, as symbols required for
9391     # linking are now in libsupc++ (not built yet.....). In addition, 
9392     # this test has cored on solaris in the past. In addition,
9393     # --gc-sections doesn't really work at the moment (keeps on discarding
9394     # used sections, first .eh_frame and now some of the glibc sections for
9395     # iconv). Bzzzzt. Thanks for playing, maybe next time.
9396     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9397 echo "configure:9398: checking for ld that supports -Wl,--gc-sections" >&5
9398     if test "$cross_compiling" = yes; then
9399   ac_sectionLDflags=yes
9400 else
9401   cat > conftest.$ac_ext <<EOF
9402 #line 9403 "configure"
9403 #include "confdefs.h"
9404
9405      int main(void) 
9406      {
9407        try { throw 1; }
9408        catch (...) { };
9409        return 0;
9410      }
9411     
9412 EOF
9413 if { (eval echo configure:9414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9414 then
9415   ac_sectionLDflags=yes
9416 else
9417   echo "configure: failed program was:" >&5
9418   cat conftest.$ac_ext >&5
9419   rm -fr conftest*
9420   ac_sectionLDflags=no
9421 fi
9422 rm -fr conftest*
9423 fi
9424
9425     if test "$ac_test_CFLAGS" = set; then
9426       CFLAGS="$ac_save_CFLAGS"
9427     else
9428       # this is the suspicious part
9429       CFLAGS=''
9430     fi
9431     if test "$ac_sectionLDflags" = "yes"; then
9432       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9433     fi
9434     echo "$ac_t""$ac_sectionLDflags" 1>&6
9435   fi
9436
9437   # Set linker optimization flags.
9438   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9439     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9440   fi
9441
9442   
9443   
9444
9445   
9446       
9447   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
9448 echo "configure:9449: checking for __builtin_abs declaration" >&5
9449   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
9450     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
9451   echo $ac_n "(cached) $ac_c" 1>&6
9452 else
9453   
9454       
9455       ac_ext=C
9456 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9457 ac_cpp='$CXXCPP $CPPFLAGS'
9458 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9459 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9460 cross_compiling=$ac_cv_prog_cxx_cross
9461
9462       cat > conftest.$ac_ext <<EOF
9463 #line 9464 "configure"
9464 #include "confdefs.h"
9465 #include <math.h>
9466 int main() {
9467  __builtin_abs(0);
9468 ; return 0; }
9469 EOF
9470 if { (eval echo configure:9471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9471   rm -rf conftest*
9472   glibcpp_cv_func___builtin_abs_use=yes
9473 else
9474   echo "configure: failed program was:" >&5
9475   cat conftest.$ac_ext >&5
9476   rm -rf conftest*
9477   glibcpp_cv_func___builtin_abs_use=no
9478 fi
9479 rm -f conftest*
9480       ac_ext=c
9481 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9482 ac_cpp='$CPP $CPPFLAGS'
9483 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9484 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9485 cross_compiling=$ac_cv_prog_cc_cross
9486
9487     
9488 fi
9489
9490   fi
9491   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
9492   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
9493     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
9494 echo "configure:9495: checking for __builtin_abs linkage" >&5
9495     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
9496       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
9497   echo $ac_n "(cached) $ac_c" 1>&6
9498 else
9499   
9500         cat > conftest.$ac_ext <<EOF
9501 #line 9502 "configure"
9502 #include "confdefs.h"
9503 #include <math.h>
9504 int main() {
9505  __builtin_abs(0);
9506 ; return 0; }
9507 EOF
9508 if { (eval echo configure:9509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9509   rm -rf conftest*
9510   glibcpp_cv_func___builtin_abs_link=yes
9511 else
9512   echo "configure: failed program was:" >&5
9513   cat conftest.$ac_ext >&5
9514   rm -rf conftest*
9515   glibcpp_cv_func___builtin_abs_link=no
9516 fi
9517 rm -f conftest*
9518       
9519 fi
9520
9521     fi
9522     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
9523     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
9524       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9525       cat >> confdefs.h <<EOF
9526 #define ${ac_tr_func} 1
9527 EOF
9528
9529     fi
9530   fi
9531
9532   
9533   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
9534 echo "configure:9535: checking for __builtin_fabsf declaration" >&5
9535   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
9536     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
9537   echo $ac_n "(cached) $ac_c" 1>&6
9538 else
9539   
9540       
9541       ac_ext=C
9542 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9543 ac_cpp='$CXXCPP $CPPFLAGS'
9544 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9545 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9546 cross_compiling=$ac_cv_prog_cxx_cross
9547
9548       cat > conftest.$ac_ext <<EOF
9549 #line 9550 "configure"
9550 #include "confdefs.h"
9551 #include <math.h>
9552 int main() {
9553  __builtin_fabsf(0);
9554 ; return 0; }
9555 EOF
9556 if { (eval echo configure:9557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9557   rm -rf conftest*
9558   glibcpp_cv_func___builtin_fabsf_use=yes
9559 else
9560   echo "configure: failed program was:" >&5
9561   cat conftest.$ac_ext >&5
9562   rm -rf conftest*
9563   glibcpp_cv_func___builtin_fabsf_use=no
9564 fi
9565 rm -f conftest*
9566       ac_ext=c
9567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9568 ac_cpp='$CPP $CPPFLAGS'
9569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9571 cross_compiling=$ac_cv_prog_cc_cross
9572
9573     
9574 fi
9575
9576   fi
9577   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
9578   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
9579     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
9580 echo "configure:9581: checking for __builtin_fabsf linkage" >&5
9581     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
9582       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
9583   echo $ac_n "(cached) $ac_c" 1>&6
9584 else
9585   
9586         cat > conftest.$ac_ext <<EOF
9587 #line 9588 "configure"
9588 #include "confdefs.h"
9589 #include <math.h>
9590 int main() {
9591  __builtin_fabsf(0);
9592 ; return 0; }
9593 EOF
9594 if { (eval echo configure:9595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9595   rm -rf conftest*
9596   glibcpp_cv_func___builtin_fabsf_link=yes
9597 else
9598   echo "configure: failed program was:" >&5
9599   cat conftest.$ac_ext >&5
9600   rm -rf conftest*
9601   glibcpp_cv_func___builtin_fabsf_link=no
9602 fi
9603 rm -f conftest*
9604       
9605 fi
9606
9607     fi
9608     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
9609     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
9610       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9611       cat >> confdefs.h <<EOF
9612 #define ${ac_tr_func} 1
9613 EOF
9614
9615     fi
9616   fi
9617
9618   
9619   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
9620 echo "configure:9621: checking for __builtin_fabs declaration" >&5
9621   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
9622     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
9623   echo $ac_n "(cached) $ac_c" 1>&6
9624 else
9625   
9626       
9627       ac_ext=C
9628 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9629 ac_cpp='$CXXCPP $CPPFLAGS'
9630 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9631 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9632 cross_compiling=$ac_cv_prog_cxx_cross
9633
9634       cat > conftest.$ac_ext <<EOF
9635 #line 9636 "configure"
9636 #include "confdefs.h"
9637 #include <math.h>
9638 int main() {
9639  __builtin_fabs(0);
9640 ; return 0; }
9641 EOF
9642 if { (eval echo configure:9643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9643   rm -rf conftest*
9644   glibcpp_cv_func___builtin_fabs_use=yes
9645 else
9646   echo "configure: failed program was:" >&5
9647   cat conftest.$ac_ext >&5
9648   rm -rf conftest*
9649   glibcpp_cv_func___builtin_fabs_use=no
9650 fi
9651 rm -f conftest*
9652       ac_ext=c
9653 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9654 ac_cpp='$CPP $CPPFLAGS'
9655 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9656 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9657 cross_compiling=$ac_cv_prog_cc_cross
9658
9659     
9660 fi
9661
9662   fi
9663   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
9664   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
9665     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
9666 echo "configure:9667: checking for __builtin_fabs linkage" >&5
9667     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
9668       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
9669   echo $ac_n "(cached) $ac_c" 1>&6
9670 else
9671   
9672         cat > conftest.$ac_ext <<EOF
9673 #line 9674 "configure"
9674 #include "confdefs.h"
9675 #include <math.h>
9676 int main() {
9677  __builtin_fabs(0);
9678 ; return 0; }
9679 EOF
9680 if { (eval echo configure:9681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9681   rm -rf conftest*
9682   glibcpp_cv_func___builtin_fabs_link=yes
9683 else
9684   echo "configure: failed program was:" >&5
9685   cat conftest.$ac_ext >&5
9686   rm -rf conftest*
9687   glibcpp_cv_func___builtin_fabs_link=no
9688 fi
9689 rm -f conftest*
9690       
9691 fi
9692
9693     fi
9694     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
9695     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
9696       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9697       cat >> confdefs.h <<EOF
9698 #define ${ac_tr_func} 1
9699 EOF
9700
9701     fi
9702   fi
9703
9704   
9705   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
9706 echo "configure:9707: checking for __builtin_fabsl declaration" >&5
9707   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
9708     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
9709   echo $ac_n "(cached) $ac_c" 1>&6
9710 else
9711   
9712       
9713       ac_ext=C
9714 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9715 ac_cpp='$CXXCPP $CPPFLAGS'
9716 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9717 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9718 cross_compiling=$ac_cv_prog_cxx_cross
9719
9720       cat > conftest.$ac_ext <<EOF
9721 #line 9722 "configure"
9722 #include "confdefs.h"
9723 #include <math.h>
9724 int main() {
9725  __builtin_fabsl(0);
9726 ; return 0; }
9727 EOF
9728 if { (eval echo configure:9729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9729   rm -rf conftest*
9730   glibcpp_cv_func___builtin_fabsl_use=yes
9731 else
9732   echo "configure: failed program was:" >&5
9733   cat conftest.$ac_ext >&5
9734   rm -rf conftest*
9735   glibcpp_cv_func___builtin_fabsl_use=no
9736 fi
9737 rm -f conftest*
9738       ac_ext=c
9739 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9740 ac_cpp='$CPP $CPPFLAGS'
9741 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9742 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9743 cross_compiling=$ac_cv_prog_cc_cross
9744
9745     
9746 fi
9747
9748   fi
9749   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
9750   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
9751     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
9752 echo "configure:9753: checking for __builtin_fabsl linkage" >&5
9753     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
9754       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
9755   echo $ac_n "(cached) $ac_c" 1>&6
9756 else
9757   
9758         cat > conftest.$ac_ext <<EOF
9759 #line 9760 "configure"
9760 #include "confdefs.h"
9761 #include <math.h>
9762 int main() {
9763  __builtin_fabsl(0);
9764 ; return 0; }
9765 EOF
9766 if { (eval echo configure:9767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9767   rm -rf conftest*
9768   glibcpp_cv_func___builtin_fabsl_link=yes
9769 else
9770   echo "configure: failed program was:" >&5
9771   cat conftest.$ac_ext >&5
9772   rm -rf conftest*
9773   glibcpp_cv_func___builtin_fabsl_link=no
9774 fi
9775 rm -f conftest*
9776       
9777 fi
9778
9779     fi
9780     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
9781     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
9782       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9783       cat >> confdefs.h <<EOF
9784 #define ${ac_tr_func} 1
9785 EOF
9786
9787     fi
9788   fi
9789
9790   
9791   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
9792 echo "configure:9793: checking for __builtin_labs declaration" >&5
9793   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
9794     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
9795   echo $ac_n "(cached) $ac_c" 1>&6
9796 else
9797   
9798       
9799       ac_ext=C
9800 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9801 ac_cpp='$CXXCPP $CPPFLAGS'
9802 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9803 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9804 cross_compiling=$ac_cv_prog_cxx_cross
9805
9806       cat > conftest.$ac_ext <<EOF
9807 #line 9808 "configure"
9808 #include "confdefs.h"
9809 #include <math.h>
9810 int main() {
9811  __builtin_labs(0);
9812 ; return 0; }
9813 EOF
9814 if { (eval echo configure:9815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9815   rm -rf conftest*
9816   glibcpp_cv_func___builtin_labs_use=yes
9817 else
9818   echo "configure: failed program was:" >&5
9819   cat conftest.$ac_ext >&5
9820   rm -rf conftest*
9821   glibcpp_cv_func___builtin_labs_use=no
9822 fi
9823 rm -f conftest*
9824       ac_ext=c
9825 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9826 ac_cpp='$CPP $CPPFLAGS'
9827 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9828 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9829 cross_compiling=$ac_cv_prog_cc_cross
9830
9831     
9832 fi
9833
9834   fi
9835   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
9836   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
9837     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
9838 echo "configure:9839: checking for __builtin_labs linkage" >&5
9839     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
9840       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
9841   echo $ac_n "(cached) $ac_c" 1>&6
9842 else
9843   
9844         cat > conftest.$ac_ext <<EOF
9845 #line 9846 "configure"
9846 #include "confdefs.h"
9847 #include <math.h>
9848 int main() {
9849  __builtin_labs(0);
9850 ; return 0; }
9851 EOF
9852 if { (eval echo configure:9853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9853   rm -rf conftest*
9854   glibcpp_cv_func___builtin_labs_link=yes
9855 else
9856   echo "configure: failed program was:" >&5
9857   cat conftest.$ac_ext >&5
9858   rm -rf conftest*
9859   glibcpp_cv_func___builtin_labs_link=no
9860 fi
9861 rm -f conftest*
9862       
9863 fi
9864
9865     fi
9866     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
9867     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
9868       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9869       cat >> confdefs.h <<EOF
9870 #define ${ac_tr_func} 1
9871 EOF
9872
9873     fi
9874   fi
9875
9876
9877   
9878   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
9879 echo "configure:9880: checking for __builtin_sqrtf declaration" >&5
9880   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
9881     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
9882   echo $ac_n "(cached) $ac_c" 1>&6
9883 else
9884   
9885       
9886       ac_ext=C
9887 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9888 ac_cpp='$CXXCPP $CPPFLAGS'
9889 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9890 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9891 cross_compiling=$ac_cv_prog_cxx_cross
9892
9893       cat > conftest.$ac_ext <<EOF
9894 #line 9895 "configure"
9895 #include "confdefs.h"
9896 #include <math.h>
9897 int main() {
9898  __builtin_sqrtf(0);
9899 ; return 0; }
9900 EOF
9901 if { (eval echo configure:9902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9902   rm -rf conftest*
9903   glibcpp_cv_func___builtin_sqrtf_use=yes
9904 else
9905   echo "configure: failed program was:" >&5
9906   cat conftest.$ac_ext >&5
9907   rm -rf conftest*
9908   glibcpp_cv_func___builtin_sqrtf_use=no
9909 fi
9910 rm -f conftest*
9911       ac_ext=c
9912 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9913 ac_cpp='$CPP $CPPFLAGS'
9914 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9915 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9916 cross_compiling=$ac_cv_prog_cc_cross
9917
9918     
9919 fi
9920
9921   fi
9922   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
9923   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
9924     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
9925 echo "configure:9926: checking for __builtin_sqrtf linkage" >&5
9926     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
9927       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
9928   echo $ac_n "(cached) $ac_c" 1>&6
9929 else
9930   
9931         cat > conftest.$ac_ext <<EOF
9932 #line 9933 "configure"
9933 #include "confdefs.h"
9934 #include <math.h>
9935 int main() {
9936  __builtin_sqrtf(0);
9937 ; return 0; }
9938 EOF
9939 if { (eval echo configure:9940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9940   rm -rf conftest*
9941   glibcpp_cv_func___builtin_sqrtf_link=yes
9942 else
9943   echo "configure: failed program was:" >&5
9944   cat conftest.$ac_ext >&5
9945   rm -rf conftest*
9946   glibcpp_cv_func___builtin_sqrtf_link=no
9947 fi
9948 rm -f conftest*
9949       
9950 fi
9951
9952     fi
9953     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
9954     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
9955       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9956       cat >> confdefs.h <<EOF
9957 #define ${ac_tr_func} 1
9958 EOF
9959
9960     fi
9961   fi
9962
9963   
9964   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
9965 echo "configure:9966: checking for __builtin_sqrt declaration" >&5
9966   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
9967     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
9968   echo $ac_n "(cached) $ac_c" 1>&6
9969 else
9970   
9971       
9972       ac_ext=C
9973 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9974 ac_cpp='$CXXCPP $CPPFLAGS'
9975 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9976 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9977 cross_compiling=$ac_cv_prog_cxx_cross
9978
9979       cat > conftest.$ac_ext <<EOF
9980 #line 9981 "configure"
9981 #include "confdefs.h"
9982 #include <math.h>
9983 int main() {
9984  __builtin_sqrt(0);
9985 ; return 0; }
9986 EOF
9987 if { (eval echo configure:9988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9988   rm -rf conftest*
9989   glibcpp_cv_func___builtin_sqrt_use=yes
9990 else
9991   echo "configure: failed program was:" >&5
9992   cat conftest.$ac_ext >&5
9993   rm -rf conftest*
9994   glibcpp_cv_func___builtin_sqrt_use=no
9995 fi
9996 rm -f conftest*
9997       ac_ext=c
9998 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9999 ac_cpp='$CPP $CPPFLAGS'
10000 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10001 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10002 cross_compiling=$ac_cv_prog_cc_cross
10003
10004     
10005 fi
10006
10007   fi
10008   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
10009   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
10010     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
10011 echo "configure:10012: checking for __builtin_sqrt linkage" >&5
10012     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
10013       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
10014   echo $ac_n "(cached) $ac_c" 1>&6
10015 else
10016   
10017         cat > conftest.$ac_ext <<EOF
10018 #line 10019 "configure"
10019 #include "confdefs.h"
10020 #include <math.h>
10021 int main() {
10022  __builtin_sqrt(0);
10023 ; return 0; }
10024 EOF
10025 if { (eval echo configure:10026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10026   rm -rf conftest*
10027   glibcpp_cv_func___builtin_sqrt_link=yes
10028 else
10029   echo "configure: failed program was:" >&5
10030   cat conftest.$ac_ext >&5
10031   rm -rf conftest*
10032   glibcpp_cv_func___builtin_sqrt_link=no
10033 fi
10034 rm -f conftest*
10035       
10036 fi
10037
10038     fi
10039     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
10040     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
10041       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10042       cat >> confdefs.h <<EOF
10043 #define ${ac_tr_func} 1
10044 EOF
10045
10046     fi
10047   fi
10048
10049   
10050   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
10051 echo "configure:10052: checking for __builtin_sqrtl declaration" >&5
10052   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
10053     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
10054   echo $ac_n "(cached) $ac_c" 1>&6
10055 else
10056   
10057       
10058       ac_ext=C
10059 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10060 ac_cpp='$CXXCPP $CPPFLAGS'
10061 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10062 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10063 cross_compiling=$ac_cv_prog_cxx_cross
10064
10065       cat > conftest.$ac_ext <<EOF
10066 #line 10067 "configure"
10067 #include "confdefs.h"
10068 #include <math.h>
10069 int main() {
10070  __builtin_sqrtl(0);
10071 ; return 0; }
10072 EOF
10073 if { (eval echo configure:10074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10074   rm -rf conftest*
10075   glibcpp_cv_func___builtin_sqrtl_use=yes
10076 else
10077   echo "configure: failed program was:" >&5
10078   cat conftest.$ac_ext >&5
10079   rm -rf conftest*
10080   glibcpp_cv_func___builtin_sqrtl_use=no
10081 fi
10082 rm -f conftest*
10083       ac_ext=c
10084 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10085 ac_cpp='$CPP $CPPFLAGS'
10086 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10087 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10088 cross_compiling=$ac_cv_prog_cc_cross
10089
10090     
10091 fi
10092
10093   fi
10094   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
10095   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
10096     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
10097 echo "configure:10098: checking for __builtin_sqrtl linkage" >&5
10098     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
10099       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
10100   echo $ac_n "(cached) $ac_c" 1>&6
10101 else
10102   
10103         cat > conftest.$ac_ext <<EOF
10104 #line 10105 "configure"
10105 #include "confdefs.h"
10106 #include <math.h>
10107 int main() {
10108  __builtin_sqrtl(0);
10109 ; return 0; }
10110 EOF
10111 if { (eval echo configure:10112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10112   rm -rf conftest*
10113   glibcpp_cv_func___builtin_sqrtl_link=yes
10114 else
10115   echo "configure: failed program was:" >&5
10116   cat conftest.$ac_ext >&5
10117   rm -rf conftest*
10118   glibcpp_cv_func___builtin_sqrtl_link=no
10119 fi
10120 rm -f conftest*
10121       
10122 fi
10123
10124     fi
10125     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
10126     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
10127       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10128       cat >> confdefs.h <<EOF
10129 #define ${ac_tr_func} 1
10130 EOF
10131
10132     fi
10133   fi
10134
10135
10136   
10137   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
10138 echo "configure:10139: checking for __builtin_sinf declaration" >&5
10139   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
10140     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
10141   echo $ac_n "(cached) $ac_c" 1>&6
10142 else
10143   
10144       
10145       ac_ext=C
10146 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10147 ac_cpp='$CXXCPP $CPPFLAGS'
10148 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10149 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10150 cross_compiling=$ac_cv_prog_cxx_cross
10151
10152       cat > conftest.$ac_ext <<EOF
10153 #line 10154 "configure"
10154 #include "confdefs.h"
10155 #include <math.h>
10156 int main() {
10157  __builtin_sinf(0);
10158 ; return 0; }
10159 EOF
10160 if { (eval echo configure:10161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10161   rm -rf conftest*
10162   glibcpp_cv_func___builtin_sinf_use=yes
10163 else
10164   echo "configure: failed program was:" >&5
10165   cat conftest.$ac_ext >&5
10166   rm -rf conftest*
10167   glibcpp_cv_func___builtin_sinf_use=no
10168 fi
10169 rm -f conftest*
10170       ac_ext=c
10171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10172 ac_cpp='$CPP $CPPFLAGS'
10173 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10174 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10175 cross_compiling=$ac_cv_prog_cc_cross
10176
10177     
10178 fi
10179
10180   fi
10181   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
10182   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
10183     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
10184 echo "configure:10185: checking for __builtin_sinf linkage" >&5
10185     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
10186       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
10187   echo $ac_n "(cached) $ac_c" 1>&6
10188 else
10189   
10190         cat > conftest.$ac_ext <<EOF
10191 #line 10192 "configure"
10192 #include "confdefs.h"
10193 #include <math.h>
10194 int main() {
10195  __builtin_sinf(0);
10196 ; return 0; }
10197 EOF
10198 if { (eval echo configure:10199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10199   rm -rf conftest*
10200   glibcpp_cv_func___builtin_sinf_link=yes
10201 else
10202   echo "configure: failed program was:" >&5
10203   cat conftest.$ac_ext >&5
10204   rm -rf conftest*
10205   glibcpp_cv_func___builtin_sinf_link=no
10206 fi
10207 rm -f conftest*
10208       
10209 fi
10210
10211     fi
10212     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
10213     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
10214       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10215       cat >> confdefs.h <<EOF
10216 #define ${ac_tr_func} 1
10217 EOF
10218
10219     fi
10220   fi
10221
10222   
10223   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
10224 echo "configure:10225: checking for __builtin_sin declaration" >&5
10225   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
10226     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
10227   echo $ac_n "(cached) $ac_c" 1>&6
10228 else
10229   
10230       
10231       ac_ext=C
10232 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10233 ac_cpp='$CXXCPP $CPPFLAGS'
10234 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10235 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10236 cross_compiling=$ac_cv_prog_cxx_cross
10237
10238       cat > conftest.$ac_ext <<EOF
10239 #line 10240 "configure"
10240 #include "confdefs.h"
10241 #include <math.h>
10242 int main() {
10243  __builtin_sin(0);
10244 ; return 0; }
10245 EOF
10246 if { (eval echo configure:10247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10247   rm -rf conftest*
10248   glibcpp_cv_func___builtin_sin_use=yes
10249 else
10250   echo "configure: failed program was:" >&5
10251   cat conftest.$ac_ext >&5
10252   rm -rf conftest*
10253   glibcpp_cv_func___builtin_sin_use=no
10254 fi
10255 rm -f conftest*
10256       ac_ext=c
10257 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10258 ac_cpp='$CPP $CPPFLAGS'
10259 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10260 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10261 cross_compiling=$ac_cv_prog_cc_cross
10262
10263     
10264 fi
10265
10266   fi
10267   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
10268   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
10269     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
10270 echo "configure:10271: checking for __builtin_sin linkage" >&5
10271     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
10272       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
10273   echo $ac_n "(cached) $ac_c" 1>&6
10274 else
10275   
10276         cat > conftest.$ac_ext <<EOF
10277 #line 10278 "configure"
10278 #include "confdefs.h"
10279 #include <math.h>
10280 int main() {
10281  __builtin_sin(0);
10282 ; return 0; }
10283 EOF
10284 if { (eval echo configure:10285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10285   rm -rf conftest*
10286   glibcpp_cv_func___builtin_sin_link=yes
10287 else
10288   echo "configure: failed program was:" >&5
10289   cat conftest.$ac_ext >&5
10290   rm -rf conftest*
10291   glibcpp_cv_func___builtin_sin_link=no
10292 fi
10293 rm -f conftest*
10294       
10295 fi
10296
10297     fi
10298     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
10299     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
10300       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10301       cat >> confdefs.h <<EOF
10302 #define ${ac_tr_func} 1
10303 EOF
10304
10305     fi
10306   fi
10307
10308   
10309   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
10310 echo "configure:10311: checking for __builtin_sinl declaration" >&5
10311   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
10312     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
10313   echo $ac_n "(cached) $ac_c" 1>&6
10314 else
10315   
10316       
10317       ac_ext=C
10318 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10319 ac_cpp='$CXXCPP $CPPFLAGS'
10320 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10321 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10322 cross_compiling=$ac_cv_prog_cxx_cross
10323
10324       cat > conftest.$ac_ext <<EOF
10325 #line 10326 "configure"
10326 #include "confdefs.h"
10327 #include <math.h>
10328 int main() {
10329  __builtin_sinl(0);
10330 ; return 0; }
10331 EOF
10332 if { (eval echo configure:10333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10333   rm -rf conftest*
10334   glibcpp_cv_func___builtin_sinl_use=yes
10335 else
10336   echo "configure: failed program was:" >&5
10337   cat conftest.$ac_ext >&5
10338   rm -rf conftest*
10339   glibcpp_cv_func___builtin_sinl_use=no
10340 fi
10341 rm -f conftest*
10342       ac_ext=c
10343 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10344 ac_cpp='$CPP $CPPFLAGS'
10345 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10346 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10347 cross_compiling=$ac_cv_prog_cc_cross
10348
10349     
10350 fi
10351
10352   fi
10353   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
10354   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
10355     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
10356 echo "configure:10357: checking for __builtin_sinl linkage" >&5
10357     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
10358       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
10359   echo $ac_n "(cached) $ac_c" 1>&6
10360 else
10361   
10362         cat > conftest.$ac_ext <<EOF
10363 #line 10364 "configure"
10364 #include "confdefs.h"
10365 #include <math.h>
10366 int main() {
10367  __builtin_sinl(0);
10368 ; return 0; }
10369 EOF
10370 if { (eval echo configure:10371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10371   rm -rf conftest*
10372   glibcpp_cv_func___builtin_sinl_link=yes
10373 else
10374   echo "configure: failed program was:" >&5
10375   cat conftest.$ac_ext >&5
10376   rm -rf conftest*
10377   glibcpp_cv_func___builtin_sinl_link=no
10378 fi
10379 rm -f conftest*
10380       
10381 fi
10382
10383     fi
10384     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
10385     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
10386       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10387       cat >> confdefs.h <<EOF
10388 #define ${ac_tr_func} 1
10389 EOF
10390
10391     fi
10392   fi
10393
10394
10395   
10396   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
10397 echo "configure:10398: checking for __builtin_cosf declaration" >&5
10398   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
10399     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
10400   echo $ac_n "(cached) $ac_c" 1>&6
10401 else
10402   
10403       
10404       ac_ext=C
10405 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10406 ac_cpp='$CXXCPP $CPPFLAGS'
10407 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10408 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10409 cross_compiling=$ac_cv_prog_cxx_cross
10410
10411       cat > conftest.$ac_ext <<EOF
10412 #line 10413 "configure"
10413 #include "confdefs.h"
10414 #include <math.h>
10415 int main() {
10416  __builtin_cosf(0);
10417 ; return 0; }
10418 EOF
10419 if { (eval echo configure:10420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10420   rm -rf conftest*
10421   glibcpp_cv_func___builtin_cosf_use=yes
10422 else
10423   echo "configure: failed program was:" >&5
10424   cat conftest.$ac_ext >&5
10425   rm -rf conftest*
10426   glibcpp_cv_func___builtin_cosf_use=no
10427 fi
10428 rm -f conftest*
10429       ac_ext=c
10430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10431 ac_cpp='$CPP $CPPFLAGS'
10432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10434 cross_compiling=$ac_cv_prog_cc_cross
10435
10436     
10437 fi
10438
10439   fi
10440   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
10441   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
10442     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
10443 echo "configure:10444: checking for __builtin_cosf linkage" >&5
10444     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
10445       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
10446   echo $ac_n "(cached) $ac_c" 1>&6
10447 else
10448   
10449         cat > conftest.$ac_ext <<EOF
10450 #line 10451 "configure"
10451 #include "confdefs.h"
10452 #include <math.h>
10453 int main() {
10454  __builtin_cosf(0);
10455 ; return 0; }
10456 EOF
10457 if { (eval echo configure:10458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10458   rm -rf conftest*
10459   glibcpp_cv_func___builtin_cosf_link=yes
10460 else
10461   echo "configure: failed program was:" >&5
10462   cat conftest.$ac_ext >&5
10463   rm -rf conftest*
10464   glibcpp_cv_func___builtin_cosf_link=no
10465 fi
10466 rm -f conftest*
10467       
10468 fi
10469
10470     fi
10471     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
10472     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
10473       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10474       cat >> confdefs.h <<EOF
10475 #define ${ac_tr_func} 1
10476 EOF
10477
10478     fi
10479   fi
10480
10481   
10482   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
10483 echo "configure:10484: checking for __builtin_cos declaration" >&5
10484   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
10485     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
10486   echo $ac_n "(cached) $ac_c" 1>&6
10487 else
10488   
10489       
10490       ac_ext=C
10491 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10492 ac_cpp='$CXXCPP $CPPFLAGS'
10493 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10494 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10495 cross_compiling=$ac_cv_prog_cxx_cross
10496
10497       cat > conftest.$ac_ext <<EOF
10498 #line 10499 "configure"
10499 #include "confdefs.h"
10500 #include <math.h>
10501 int main() {
10502  __builtin_cos(0);
10503 ; return 0; }
10504 EOF
10505 if { (eval echo configure:10506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10506   rm -rf conftest*
10507   glibcpp_cv_func___builtin_cos_use=yes
10508 else
10509   echo "configure: failed program was:" >&5
10510   cat conftest.$ac_ext >&5
10511   rm -rf conftest*
10512   glibcpp_cv_func___builtin_cos_use=no
10513 fi
10514 rm -f conftest*
10515       ac_ext=c
10516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10517 ac_cpp='$CPP $CPPFLAGS'
10518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10520 cross_compiling=$ac_cv_prog_cc_cross
10521
10522     
10523 fi
10524
10525   fi
10526   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
10527   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
10528     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
10529 echo "configure:10530: checking for __builtin_cos linkage" >&5
10530     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
10531       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
10532   echo $ac_n "(cached) $ac_c" 1>&6
10533 else
10534   
10535         cat > conftest.$ac_ext <<EOF
10536 #line 10537 "configure"
10537 #include "confdefs.h"
10538 #include <math.h>
10539 int main() {
10540  __builtin_cos(0);
10541 ; return 0; }
10542 EOF
10543 if { (eval echo configure:10544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10544   rm -rf conftest*
10545   glibcpp_cv_func___builtin_cos_link=yes
10546 else
10547   echo "configure: failed program was:" >&5
10548   cat conftest.$ac_ext >&5
10549   rm -rf conftest*
10550   glibcpp_cv_func___builtin_cos_link=no
10551 fi
10552 rm -f conftest*
10553       
10554 fi
10555
10556     fi
10557     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
10558     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
10559       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10560       cat >> confdefs.h <<EOF
10561 #define ${ac_tr_func} 1
10562 EOF
10563
10564     fi
10565   fi
10566
10567   
10568   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
10569 echo "configure:10570: checking for __builtin_cosl declaration" >&5
10570   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
10571     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
10572   echo $ac_n "(cached) $ac_c" 1>&6
10573 else
10574   
10575       
10576       ac_ext=C
10577 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10578 ac_cpp='$CXXCPP $CPPFLAGS'
10579 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10580 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10581 cross_compiling=$ac_cv_prog_cxx_cross
10582
10583       cat > conftest.$ac_ext <<EOF
10584 #line 10585 "configure"
10585 #include "confdefs.h"
10586 #include <math.h>
10587 int main() {
10588  __builtin_cosl(0);
10589 ; return 0; }
10590 EOF
10591 if { (eval echo configure:10592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10592   rm -rf conftest*
10593   glibcpp_cv_func___builtin_cosl_use=yes
10594 else
10595   echo "configure: failed program was:" >&5
10596   cat conftest.$ac_ext >&5
10597   rm -rf conftest*
10598   glibcpp_cv_func___builtin_cosl_use=no
10599 fi
10600 rm -f conftest*
10601       ac_ext=c
10602 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10603 ac_cpp='$CPP $CPPFLAGS'
10604 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10605 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10606 cross_compiling=$ac_cv_prog_cc_cross
10607
10608     
10609 fi
10610
10611   fi
10612   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
10613   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
10614     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
10615 echo "configure:10616: checking for __builtin_cosl linkage" >&5
10616     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
10617       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
10618   echo $ac_n "(cached) $ac_c" 1>&6
10619 else
10620   
10621         cat > conftest.$ac_ext <<EOF
10622 #line 10623 "configure"
10623 #include "confdefs.h"
10624 #include <math.h>
10625 int main() {
10626  __builtin_cosl(0);
10627 ; return 0; }
10628 EOF
10629 if { (eval echo configure:10630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10630   rm -rf conftest*
10631   glibcpp_cv_func___builtin_cosl_link=yes
10632 else
10633   echo "configure: failed program was:" >&5
10634   cat conftest.$ac_ext >&5
10635   rm -rf conftest*
10636   glibcpp_cv_func___builtin_cosl_link=no
10637 fi
10638 rm -f conftest*
10639       
10640 fi
10641
10642     fi
10643     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
10644     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
10645       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10646       cat >> confdefs.h <<EOF
10647 #define ${ac_tr_func} 1
10648 EOF
10649
10650     fi
10651   fi
10652
10653
10654               dummyvar=no
10655   if test x$dummyvar = x"yes"; then
10656     cat >> confdefs.h <<\EOF
10657 #define HAVE___BUILTIN_ABS 1
10658 EOF
10659
10660     cat >> confdefs.h <<\EOF
10661 #define HAVE___BUILTIN_LABS 1
10662 EOF
10663
10664     cat >> confdefs.h <<\EOF
10665 #define HAVE___BUILTIN_COS 1
10666 EOF
10667
10668     cat >> confdefs.h <<\EOF
10669 #define HAVE___BUILTIN_COSF 1
10670 EOF
10671
10672     cat >> confdefs.h <<\EOF
10673 #define HAVE___BUILTIN_COSL 1
10674 EOF
10675
10676     cat >> confdefs.h <<\EOF
10677 #define HAVE___BUILTIN_FABS 1
10678 EOF
10679
10680     cat >> confdefs.h <<\EOF
10681 #define HAVE___BUILTIN_FABSF 1
10682 EOF
10683
10684     cat >> confdefs.h <<\EOF
10685 #define HAVE___BUILTIN_FABSL 1
10686 EOF
10687
10688     cat >> confdefs.h <<\EOF
10689 #define HAVE___BUILTIN_SIN 1
10690 EOF
10691
10692     cat >> confdefs.h <<\EOF
10693 #define HAVE___BUILTIN_SINF 1
10694 EOF
10695
10696     cat >> confdefs.h <<\EOF
10697 #define HAVE___BUILTIN_SINL 1
10698 EOF
10699
10700     cat >> confdefs.h <<\EOF
10701 #define HAVE___BUILTIN_SQRT 1
10702 EOF
10703
10704     cat >> confdefs.h <<\EOF
10705 #define HAVE___BUILTIN_SQRTF 1
10706 EOF
10707
10708     cat >> confdefs.h <<\EOF
10709 #define HAVE___BUILTIN_SQRTL 1
10710 EOF
10711
10712   fi
10713
10714   
10715   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10716   ac_save_CXXFLAGS="$CXXFLAGS"
10717   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10718
10719     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10720 echo "configure:10721: checking for sin in -lm" >&5
10721 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10723   echo $ac_n "(cached) $ac_c" 1>&6
10724 else
10725   ac_save_LIBS="$LIBS"
10726 LIBS="-lm  $LIBS"
10727 cat > conftest.$ac_ext <<EOF
10728 #line 10729 "configure"
10729 #include "confdefs.h"
10730 /* Override any gcc2 internal prototype to avoid an error.  */
10731 /* We use char because int might match the return type of a gcc2
10732     builtin and then its argument prototype would still apply.  */
10733 char sin();
10734
10735 int main() {
10736 sin()
10737 ; return 0; }
10738 EOF
10739 if { (eval echo configure:10740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10740   rm -rf conftest*
10741   eval "ac_cv_lib_$ac_lib_var=yes"
10742 else
10743   echo "configure: failed program was:" >&5
10744   cat conftest.$ac_ext >&5
10745   rm -rf conftest*
10746   eval "ac_cv_lib_$ac_lib_var=no"
10747 fi
10748 rm -f conftest*
10749 LIBS="$ac_save_LIBS"
10750
10751 fi
10752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10753   echo "$ac_t""yes" 1>&6
10754   libm="-lm"
10755 else
10756   echo "$ac_t""no" 1>&6
10757 fi
10758
10759   ac_save_LIBS="$LIBS"
10760   LIBS="$LIBS $libm"
10761
10762     
10763   
10764   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10765 echo "configure:10766: checking for isinf declaration" >&5
10766   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10767     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10768   echo $ac_n "(cached) $ac_c" 1>&6
10769 else
10770   
10771       
10772       ac_ext=C
10773 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10774 ac_cpp='$CXXCPP $CPPFLAGS'
10775 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10776 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10777 cross_compiling=$ac_cv_prog_cxx_cross
10778
10779       cat > conftest.$ac_ext <<EOF
10780 #line 10781 "configure"
10781 #include "confdefs.h"
10782 #include <math.h>
10783                       #ifdef HAVE_IEEEFP_H
10784                       #include <ieeefp.h>
10785                       #endif
10786                      
10787 int main() {
10788  isinf(0);
10789 ; return 0; }
10790 EOF
10791 if { (eval echo configure:10792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10792   rm -rf conftest*
10793   glibcpp_cv_func_isinf_use=yes
10794 else
10795   echo "configure: failed program was:" >&5
10796   cat conftest.$ac_ext >&5
10797   rm -rf conftest*
10798   glibcpp_cv_func_isinf_use=no
10799 fi
10800 rm -f conftest*
10801       ac_ext=c
10802 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10803 ac_cpp='$CPP $CPPFLAGS'
10804 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10805 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10806 cross_compiling=$ac_cv_prog_cc_cross
10807
10808     
10809 fi
10810
10811   fi
10812   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10813
10814   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10815     for ac_func in isinf
10816 do
10817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10818 echo "configure:10819: checking for $ac_func" >&5
10819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10820   echo $ac_n "(cached) $ac_c" 1>&6
10821 else
10822   cat > conftest.$ac_ext <<EOF
10823 #line 10824 "configure"
10824 #include "confdefs.h"
10825 /* System header to define __stub macros and hopefully few prototypes,
10826     which can conflict with char $ac_func(); below.  */
10827 #include <assert.h>
10828 /* Override any gcc2 internal prototype to avoid an error.  */
10829 /* We use char because int might match the return type of a gcc2
10830     builtin and then its argument prototype would still apply.  */
10831 char $ac_func();
10832
10833 int main() {
10834
10835 /* The GNU C library defines this for functions which it implements
10836     to always fail with ENOSYS.  Some functions are actually named
10837     something starting with __ and the normal name is an alias.  */
10838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10839 choke me
10840 #else
10841 $ac_func();
10842 #endif
10843
10844 ; return 0; }
10845 EOF
10846 if { (eval echo configure:10847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10847   rm -rf conftest*
10848   eval "ac_cv_func_$ac_func=yes"
10849 else
10850   echo "configure: failed program was:" >&5
10851   cat conftest.$ac_ext >&5
10852   rm -rf conftest*
10853   eval "ac_cv_func_$ac_func=no"
10854 fi
10855 rm -f conftest*
10856 fi
10857
10858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10859   echo "$ac_t""yes" 1>&6
10860     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10861   cat >> confdefs.h <<EOF
10862 #define $ac_tr_func 1
10863 EOF
10864  
10865 else
10866   echo "$ac_t""no" 1>&6
10867 fi
10868 done
10869     
10870   else
10871     
10872   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10873 echo "configure:10874: checking for _isinf declaration" >&5
10874   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10875     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10876   echo $ac_n "(cached) $ac_c" 1>&6
10877 else
10878   
10879       
10880       ac_ext=C
10881 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10882 ac_cpp='$CXXCPP $CPPFLAGS'
10883 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10884 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10885 cross_compiling=$ac_cv_prog_cxx_cross
10886
10887       cat > conftest.$ac_ext <<EOF
10888 #line 10889 "configure"
10889 #include "confdefs.h"
10890 #include <math.h>
10891                       #ifdef HAVE_IEEEFP_H
10892                       #include <ieeefp.h>
10893                       #endif
10894                      
10895 int main() {
10896  _isinf(0);
10897 ; return 0; }
10898 EOF
10899 if { (eval echo configure:10900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10900   rm -rf conftest*
10901   glibcpp_cv_func__isinf_use=yes
10902 else
10903   echo "configure: failed program was:" >&5
10904   cat conftest.$ac_ext >&5
10905   rm -rf conftest*
10906   glibcpp_cv_func__isinf_use=no
10907 fi
10908 rm -f conftest*
10909       ac_ext=c
10910 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10911 ac_cpp='$CPP $CPPFLAGS'
10912 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10913 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10914 cross_compiling=$ac_cv_prog_cc_cross
10915
10916     
10917 fi
10918
10919   fi
10920   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
10921
10922     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
10923       for ac_func in _isinf
10924 do
10925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10926 echo "configure:10927: checking for $ac_func" >&5
10927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10928   echo $ac_n "(cached) $ac_c" 1>&6
10929 else
10930   cat > conftest.$ac_ext <<EOF
10931 #line 10932 "configure"
10932 #include "confdefs.h"
10933 /* System header to define __stub macros and hopefully few prototypes,
10934     which can conflict with char $ac_func(); below.  */
10935 #include <assert.h>
10936 /* Override any gcc2 internal prototype to avoid an error.  */
10937 /* We use char because int might match the return type of a gcc2
10938     builtin and then its argument prototype would still apply.  */
10939 char $ac_func();
10940
10941 int main() {
10942
10943 /* The GNU C library defines this for functions which it implements
10944     to always fail with ENOSYS.  Some functions are actually named
10945     something starting with __ and the normal name is an alias.  */
10946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10947 choke me
10948 #else
10949 $ac_func();
10950 #endif
10951
10952 ; return 0; }
10953 EOF
10954 if { (eval echo configure:10955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10955   rm -rf conftest*
10956   eval "ac_cv_func_$ac_func=yes"
10957 else
10958   echo "configure: failed program was:" >&5
10959   cat conftest.$ac_ext >&5
10960   rm -rf conftest*
10961   eval "ac_cv_func_$ac_func=no"
10962 fi
10963 rm -f conftest*
10964 fi
10965
10966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10967   echo "$ac_t""yes" 1>&6
10968     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10969   cat >> confdefs.h <<EOF
10970 #define $ac_tr_func 1
10971 EOF
10972  
10973 else
10974   echo "$ac_t""no" 1>&6
10975 fi
10976 done
10977     
10978     fi
10979   fi
10980
10981   
10982   
10983   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
10984 echo "configure:10985: checking for isnan declaration" >&5
10985   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
10986     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
10987   echo $ac_n "(cached) $ac_c" 1>&6
10988 else
10989   
10990       
10991       ac_ext=C
10992 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10993 ac_cpp='$CXXCPP $CPPFLAGS'
10994 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10995 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10996 cross_compiling=$ac_cv_prog_cxx_cross
10997
10998       cat > conftest.$ac_ext <<EOF
10999 #line 11000 "configure"
11000 #include "confdefs.h"
11001 #include <math.h>
11002                       #ifdef HAVE_IEEEFP_H
11003                       #include <ieeefp.h>
11004                       #endif
11005                      
11006 int main() {
11007  isnan(0);
11008 ; return 0; }
11009 EOF
11010 if { (eval echo configure:11011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11011   rm -rf conftest*
11012   glibcpp_cv_func_isnan_use=yes
11013 else
11014   echo "configure: failed program was:" >&5
11015   cat conftest.$ac_ext >&5
11016   rm -rf conftest*
11017   glibcpp_cv_func_isnan_use=no
11018 fi
11019 rm -f conftest*
11020       ac_ext=c
11021 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11022 ac_cpp='$CPP $CPPFLAGS'
11023 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11024 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11025 cross_compiling=$ac_cv_prog_cc_cross
11026
11027     
11028 fi
11029
11030   fi
11031   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
11032
11033   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
11034     for ac_func in isnan
11035 do
11036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11037 echo "configure:11038: checking for $ac_func" >&5
11038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11039   echo $ac_n "(cached) $ac_c" 1>&6
11040 else
11041   cat > conftest.$ac_ext <<EOF
11042 #line 11043 "configure"
11043 #include "confdefs.h"
11044 /* System header to define __stub macros and hopefully few prototypes,
11045     which can conflict with char $ac_func(); below.  */
11046 #include <assert.h>
11047 /* Override any gcc2 internal prototype to avoid an error.  */
11048 /* We use char because int might match the return type of a gcc2
11049     builtin and then its argument prototype would still apply.  */
11050 char $ac_func();
11051
11052 int main() {
11053
11054 /* The GNU C library defines this for functions which it implements
11055     to always fail with ENOSYS.  Some functions are actually named
11056     something starting with __ and the normal name is an alias.  */
11057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11058 choke me
11059 #else
11060 $ac_func();
11061 #endif
11062
11063 ; return 0; }
11064 EOF
11065 if { (eval echo configure:11066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11066   rm -rf conftest*
11067   eval "ac_cv_func_$ac_func=yes"
11068 else
11069   echo "configure: failed program was:" >&5
11070   cat conftest.$ac_ext >&5
11071   rm -rf conftest*
11072   eval "ac_cv_func_$ac_func=no"
11073 fi
11074 rm -f conftest*
11075 fi
11076
11077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11078   echo "$ac_t""yes" 1>&6
11079     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11080   cat >> confdefs.h <<EOF
11081 #define $ac_tr_func 1
11082 EOF
11083  
11084 else
11085   echo "$ac_t""no" 1>&6
11086 fi
11087 done
11088     
11089   else
11090     
11091   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11092 echo "configure:11093: checking for _isnan declaration" >&5
11093   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11094     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11095   echo $ac_n "(cached) $ac_c" 1>&6
11096 else
11097   
11098       
11099       ac_ext=C
11100 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11101 ac_cpp='$CXXCPP $CPPFLAGS'
11102 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11103 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11104 cross_compiling=$ac_cv_prog_cxx_cross
11105
11106       cat > conftest.$ac_ext <<EOF
11107 #line 11108 "configure"
11108 #include "confdefs.h"
11109 #include <math.h>
11110                       #ifdef HAVE_IEEEFP_H
11111                       #include <ieeefp.h>
11112                       #endif
11113                      
11114 int main() {
11115  _isnan(0);
11116 ; return 0; }
11117 EOF
11118 if { (eval echo configure:11119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11119   rm -rf conftest*
11120   glibcpp_cv_func__isnan_use=yes
11121 else
11122   echo "configure: failed program was:" >&5
11123   cat conftest.$ac_ext >&5
11124   rm -rf conftest*
11125   glibcpp_cv_func__isnan_use=no
11126 fi
11127 rm -f conftest*
11128       ac_ext=c
11129 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11130 ac_cpp='$CPP $CPPFLAGS'
11131 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11132 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11133 cross_compiling=$ac_cv_prog_cc_cross
11134
11135     
11136 fi
11137
11138   fi
11139   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11140
11141     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11142       for ac_func in _isnan
11143 do
11144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11145 echo "configure:11146: checking for $ac_func" >&5
11146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11147   echo $ac_n "(cached) $ac_c" 1>&6
11148 else
11149   cat > conftest.$ac_ext <<EOF
11150 #line 11151 "configure"
11151 #include "confdefs.h"
11152 /* System header to define __stub macros and hopefully few prototypes,
11153     which can conflict with char $ac_func(); below.  */
11154 #include <assert.h>
11155 /* Override any gcc2 internal prototype to avoid an error.  */
11156 /* We use char because int might match the return type of a gcc2
11157     builtin and then its argument prototype would still apply.  */
11158 char $ac_func();
11159
11160 int main() {
11161
11162 /* The GNU C library defines this for functions which it implements
11163     to always fail with ENOSYS.  Some functions are actually named
11164     something starting with __ and the normal name is an alias.  */
11165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11166 choke me
11167 #else
11168 $ac_func();
11169 #endif
11170
11171 ; return 0; }
11172 EOF
11173 if { (eval echo configure:11174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11174   rm -rf conftest*
11175   eval "ac_cv_func_$ac_func=yes"
11176 else
11177   echo "configure: failed program was:" >&5
11178   cat conftest.$ac_ext >&5
11179   rm -rf conftest*
11180   eval "ac_cv_func_$ac_func=no"
11181 fi
11182 rm -f conftest*
11183 fi
11184
11185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11186   echo "$ac_t""yes" 1>&6
11187     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11188   cat >> confdefs.h <<EOF
11189 #define $ac_tr_func 1
11190 EOF
11191  
11192 else
11193   echo "$ac_t""no" 1>&6
11194 fi
11195 done
11196     
11197     fi
11198   fi
11199
11200   
11201   
11202   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11203 echo "configure:11204: checking for finite declaration" >&5
11204   if test x${glibcpp_cv_func_finite_use+set} != xset; then
11205     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11206   echo $ac_n "(cached) $ac_c" 1>&6
11207 else
11208   
11209       
11210       ac_ext=C
11211 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11212 ac_cpp='$CXXCPP $CPPFLAGS'
11213 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11214 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11215 cross_compiling=$ac_cv_prog_cxx_cross
11216
11217       cat > conftest.$ac_ext <<EOF
11218 #line 11219 "configure"
11219 #include "confdefs.h"
11220 #include <math.h>
11221                       #ifdef HAVE_IEEEFP_H
11222                       #include <ieeefp.h>
11223                       #endif
11224                      
11225 int main() {
11226  finite(0);
11227 ; return 0; }
11228 EOF
11229 if { (eval echo configure:11230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11230   rm -rf conftest*
11231   glibcpp_cv_func_finite_use=yes
11232 else
11233   echo "configure: failed program was:" >&5
11234   cat conftest.$ac_ext >&5
11235   rm -rf conftest*
11236   glibcpp_cv_func_finite_use=no
11237 fi
11238 rm -f conftest*
11239       ac_ext=c
11240 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11241 ac_cpp='$CPP $CPPFLAGS'
11242 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11243 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11244 cross_compiling=$ac_cv_prog_cc_cross
11245
11246     
11247 fi
11248
11249   fi
11250   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11251
11252   if test x$glibcpp_cv_func_finite_use = x"yes"; then
11253     for ac_func in finite
11254 do
11255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11256 echo "configure:11257: checking for $ac_func" >&5
11257 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11258   echo $ac_n "(cached) $ac_c" 1>&6
11259 else
11260   cat > conftest.$ac_ext <<EOF
11261 #line 11262 "configure"
11262 #include "confdefs.h"
11263 /* System header to define __stub macros and hopefully few prototypes,
11264     which can conflict with char $ac_func(); below.  */
11265 #include <assert.h>
11266 /* Override any gcc2 internal prototype to avoid an error.  */
11267 /* We use char because int might match the return type of a gcc2
11268     builtin and then its argument prototype would still apply.  */
11269 char $ac_func();
11270
11271 int main() {
11272
11273 /* The GNU C library defines this for functions which it implements
11274     to always fail with ENOSYS.  Some functions are actually named
11275     something starting with __ and the normal name is an alias.  */
11276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11277 choke me
11278 #else
11279 $ac_func();
11280 #endif
11281
11282 ; return 0; }
11283 EOF
11284 if { (eval echo configure:11285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11285   rm -rf conftest*
11286   eval "ac_cv_func_$ac_func=yes"
11287 else
11288   echo "configure: failed program was:" >&5
11289   cat conftest.$ac_ext >&5
11290   rm -rf conftest*
11291   eval "ac_cv_func_$ac_func=no"
11292 fi
11293 rm -f conftest*
11294 fi
11295
11296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11297   echo "$ac_t""yes" 1>&6
11298     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11299   cat >> confdefs.h <<EOF
11300 #define $ac_tr_func 1
11301 EOF
11302  
11303 else
11304   echo "$ac_t""no" 1>&6
11305 fi
11306 done
11307     
11308   else
11309     
11310   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11311 echo "configure:11312: checking for _finite declaration" >&5
11312   if test x${glibcpp_cv_func__finite_use+set} != xset; then
11313     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11314   echo $ac_n "(cached) $ac_c" 1>&6
11315 else
11316   
11317       
11318       ac_ext=C
11319 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11320 ac_cpp='$CXXCPP $CPPFLAGS'
11321 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11322 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11323 cross_compiling=$ac_cv_prog_cxx_cross
11324
11325       cat > conftest.$ac_ext <<EOF
11326 #line 11327 "configure"
11327 #include "confdefs.h"
11328 #include <math.h>
11329                       #ifdef HAVE_IEEEFP_H
11330                       #include <ieeefp.h>
11331                       #endif
11332                      
11333 int main() {
11334  _finite(0);
11335 ; return 0; }
11336 EOF
11337 if { (eval echo configure:11338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11338   rm -rf conftest*
11339   glibcpp_cv_func__finite_use=yes
11340 else
11341   echo "configure: failed program was:" >&5
11342   cat conftest.$ac_ext >&5
11343   rm -rf conftest*
11344   glibcpp_cv_func__finite_use=no
11345 fi
11346 rm -f conftest*
11347       ac_ext=c
11348 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11349 ac_cpp='$CPP $CPPFLAGS'
11350 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11351 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11352 cross_compiling=$ac_cv_prog_cc_cross
11353
11354     
11355 fi
11356
11357   fi
11358   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11359
11360     if test x$glibcpp_cv_func__finite_use = x"yes"; then
11361       for ac_func in _finite
11362 do
11363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11364 echo "configure:11365: checking for $ac_func" >&5
11365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11366   echo $ac_n "(cached) $ac_c" 1>&6
11367 else
11368   cat > conftest.$ac_ext <<EOF
11369 #line 11370 "configure"
11370 #include "confdefs.h"
11371 /* System header to define __stub macros and hopefully few prototypes,
11372     which can conflict with char $ac_func(); below.  */
11373 #include <assert.h>
11374 /* Override any gcc2 internal prototype to avoid an error.  */
11375 /* We use char because int might match the return type of a gcc2
11376     builtin and then its argument prototype would still apply.  */
11377 char $ac_func();
11378
11379 int main() {
11380
11381 /* The GNU C library defines this for functions which it implements
11382     to always fail with ENOSYS.  Some functions are actually named
11383     something starting with __ and the normal name is an alias.  */
11384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11385 choke me
11386 #else
11387 $ac_func();
11388 #endif
11389
11390 ; return 0; }
11391 EOF
11392 if { (eval echo configure:11393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11393   rm -rf conftest*
11394   eval "ac_cv_func_$ac_func=yes"
11395 else
11396   echo "configure: failed program was:" >&5
11397   cat conftest.$ac_ext >&5
11398   rm -rf conftest*
11399   eval "ac_cv_func_$ac_func=no"
11400 fi
11401 rm -f conftest*
11402 fi
11403
11404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11405   echo "$ac_t""yes" 1>&6
11406     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11407   cat >> confdefs.h <<EOF
11408 #define $ac_tr_func 1
11409 EOF
11410  
11411 else
11412   echo "$ac_t""no" 1>&6
11413 fi
11414 done
11415     
11416     fi
11417   fi
11418
11419   
11420   
11421   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11422 echo "configure:11423: checking for copysign declaration" >&5
11423   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11424     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11425   echo $ac_n "(cached) $ac_c" 1>&6
11426 else
11427   
11428       
11429       ac_ext=C
11430 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11431 ac_cpp='$CXXCPP $CPPFLAGS'
11432 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11433 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11434 cross_compiling=$ac_cv_prog_cxx_cross
11435
11436       cat > conftest.$ac_ext <<EOF
11437 #line 11438 "configure"
11438 #include "confdefs.h"
11439 #include <math.h>
11440 int main() {
11441  copysign(0, 0);
11442 ; return 0; }
11443 EOF
11444 if { (eval echo configure:11445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11445   rm -rf conftest*
11446   glibcpp_cv_func_copysign_use=yes
11447 else
11448   echo "configure: failed program was:" >&5
11449   cat conftest.$ac_ext >&5
11450   rm -rf conftest*
11451   glibcpp_cv_func_copysign_use=no
11452 fi
11453 rm -f conftest*
11454       ac_ext=c
11455 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11456 ac_cpp='$CPP $CPPFLAGS'
11457 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11458 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11459 cross_compiling=$ac_cv_prog_cc_cross
11460
11461     
11462 fi
11463
11464   fi
11465   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11466
11467   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11468     for ac_func in copysign
11469 do
11470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11471 echo "configure:11472: checking for $ac_func" >&5
11472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11473   echo $ac_n "(cached) $ac_c" 1>&6
11474 else
11475   cat > conftest.$ac_ext <<EOF
11476 #line 11477 "configure"
11477 #include "confdefs.h"
11478 /* System header to define __stub macros and hopefully few prototypes,
11479     which can conflict with char $ac_func(); below.  */
11480 #include <assert.h>
11481 /* Override any gcc2 internal prototype to avoid an error.  */
11482 /* We use char because int might match the return type of a gcc2
11483     builtin and then its argument prototype would still apply.  */
11484 char $ac_func();
11485
11486 int main() {
11487
11488 /* The GNU C library defines this for functions which it implements
11489     to always fail with ENOSYS.  Some functions are actually named
11490     something starting with __ and the normal name is an alias.  */
11491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11492 choke me
11493 #else
11494 $ac_func();
11495 #endif
11496
11497 ; return 0; }
11498 EOF
11499 if { (eval echo configure:11500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11500   rm -rf conftest*
11501   eval "ac_cv_func_$ac_func=yes"
11502 else
11503   echo "configure: failed program was:" >&5
11504   cat conftest.$ac_ext >&5
11505   rm -rf conftest*
11506   eval "ac_cv_func_$ac_func=no"
11507 fi
11508 rm -f conftest*
11509 fi
11510
11511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11512   echo "$ac_t""yes" 1>&6
11513     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11514   cat >> confdefs.h <<EOF
11515 #define $ac_tr_func 1
11516 EOF
11517  
11518 else
11519   echo "$ac_t""no" 1>&6
11520 fi
11521 done
11522     
11523   else
11524     
11525   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11526 echo "configure:11527: checking for _copysign declaration" >&5
11527   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11528     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11529   echo $ac_n "(cached) $ac_c" 1>&6
11530 else
11531   
11532       
11533       ac_ext=C
11534 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11535 ac_cpp='$CXXCPP $CPPFLAGS'
11536 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11537 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11538 cross_compiling=$ac_cv_prog_cxx_cross
11539
11540       cat > conftest.$ac_ext <<EOF
11541 #line 11542 "configure"
11542 #include "confdefs.h"
11543 #include <math.h>
11544 int main() {
11545  _copysign(0, 0);
11546 ; return 0; }
11547 EOF
11548 if { (eval echo configure:11549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11549   rm -rf conftest*
11550   glibcpp_cv_func__copysign_use=yes
11551 else
11552   echo "configure: failed program was:" >&5
11553   cat conftest.$ac_ext >&5
11554   rm -rf conftest*
11555   glibcpp_cv_func__copysign_use=no
11556 fi
11557 rm -f conftest*
11558       ac_ext=c
11559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11560 ac_cpp='$CPP $CPPFLAGS'
11561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11563 cross_compiling=$ac_cv_prog_cc_cross
11564
11565     
11566 fi
11567
11568   fi
11569   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11570
11571     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11572       for ac_func in _copysign
11573 do
11574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11575 echo "configure:11576: checking for $ac_func" >&5
11576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11577   echo $ac_n "(cached) $ac_c" 1>&6
11578 else
11579   cat > conftest.$ac_ext <<EOF
11580 #line 11581 "configure"
11581 #include "confdefs.h"
11582 /* System header to define __stub macros and hopefully few prototypes,
11583     which can conflict with char $ac_func(); below.  */
11584 #include <assert.h>
11585 /* Override any gcc2 internal prototype to avoid an error.  */
11586 /* We use char because int might match the return type of a gcc2
11587     builtin and then its argument prototype would still apply.  */
11588 char $ac_func();
11589
11590 int main() {
11591
11592 /* The GNU C library defines this for functions which it implements
11593     to always fail with ENOSYS.  Some functions are actually named
11594     something starting with __ and the normal name is an alias.  */
11595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11596 choke me
11597 #else
11598 $ac_func();
11599 #endif
11600
11601 ; return 0; }
11602 EOF
11603 if { (eval echo configure:11604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11604   rm -rf conftest*
11605   eval "ac_cv_func_$ac_func=yes"
11606 else
11607   echo "configure: failed program was:" >&5
11608   cat conftest.$ac_ext >&5
11609   rm -rf conftest*
11610   eval "ac_cv_func_$ac_func=no"
11611 fi
11612 rm -f conftest*
11613 fi
11614
11615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11616   echo "$ac_t""yes" 1>&6
11617     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11618   cat >> confdefs.h <<EOF
11619 #define $ac_tr_func 1
11620 EOF
11621  
11622 else
11623   echo "$ac_t""no" 1>&6
11624 fi
11625 done
11626     
11627     fi
11628   fi
11629
11630   
11631   
11632   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11633 echo "configure:11634: checking for sincos declaration" >&5
11634   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11635     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11636   echo $ac_n "(cached) $ac_c" 1>&6
11637 else
11638   
11639       
11640       ac_ext=C
11641 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11642 ac_cpp='$CXXCPP $CPPFLAGS'
11643 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11644 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11645 cross_compiling=$ac_cv_prog_cxx_cross
11646
11647       cat > conftest.$ac_ext <<EOF
11648 #line 11649 "configure"
11649 #include "confdefs.h"
11650 #include <math.h>
11651 int main() {
11652  sincos(0, 0, 0);
11653 ; return 0; }
11654 EOF
11655 if { (eval echo configure:11656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11656   rm -rf conftest*
11657   glibcpp_cv_func_sincos_use=yes
11658 else
11659   echo "configure: failed program was:" >&5
11660   cat conftest.$ac_ext >&5
11661   rm -rf conftest*
11662   glibcpp_cv_func_sincos_use=no
11663 fi
11664 rm -f conftest*
11665       ac_ext=c
11666 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11667 ac_cpp='$CPP $CPPFLAGS'
11668 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11669 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11670 cross_compiling=$ac_cv_prog_cc_cross
11671
11672     
11673 fi
11674
11675   fi
11676   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11677
11678   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11679     for ac_func in sincos
11680 do
11681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11682 echo "configure:11683: checking for $ac_func" >&5
11683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11684   echo $ac_n "(cached) $ac_c" 1>&6
11685 else
11686   cat > conftest.$ac_ext <<EOF
11687 #line 11688 "configure"
11688 #include "confdefs.h"
11689 /* System header to define __stub macros and hopefully few prototypes,
11690     which can conflict with char $ac_func(); below.  */
11691 #include <assert.h>
11692 /* Override any gcc2 internal prototype to avoid an error.  */
11693 /* We use char because int might match the return type of a gcc2
11694     builtin and then its argument prototype would still apply.  */
11695 char $ac_func();
11696
11697 int main() {
11698
11699 /* The GNU C library defines this for functions which it implements
11700     to always fail with ENOSYS.  Some functions are actually named
11701     something starting with __ and the normal name is an alias.  */
11702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11703 choke me
11704 #else
11705 $ac_func();
11706 #endif
11707
11708 ; return 0; }
11709 EOF
11710 if { (eval echo configure:11711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11711   rm -rf conftest*
11712   eval "ac_cv_func_$ac_func=yes"
11713 else
11714   echo "configure: failed program was:" >&5
11715   cat conftest.$ac_ext >&5
11716   rm -rf conftest*
11717   eval "ac_cv_func_$ac_func=no"
11718 fi
11719 rm -f conftest*
11720 fi
11721
11722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11723   echo "$ac_t""yes" 1>&6
11724     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11725   cat >> confdefs.h <<EOF
11726 #define $ac_tr_func 1
11727 EOF
11728  
11729 else
11730   echo "$ac_t""no" 1>&6
11731 fi
11732 done
11733     
11734   else
11735     
11736   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11737 echo "configure:11738: checking for _sincos declaration" >&5
11738   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11739     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11740   echo $ac_n "(cached) $ac_c" 1>&6
11741 else
11742   
11743       
11744       ac_ext=C
11745 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11746 ac_cpp='$CXXCPP $CPPFLAGS'
11747 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11748 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11749 cross_compiling=$ac_cv_prog_cxx_cross
11750
11751       cat > conftest.$ac_ext <<EOF
11752 #line 11753 "configure"
11753 #include "confdefs.h"
11754 #include <math.h>
11755 int main() {
11756  _sincos(0, 0, 0);
11757 ; return 0; }
11758 EOF
11759 if { (eval echo configure:11760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11760   rm -rf conftest*
11761   glibcpp_cv_func__sincos_use=yes
11762 else
11763   echo "configure: failed program was:" >&5
11764   cat conftest.$ac_ext >&5
11765   rm -rf conftest*
11766   glibcpp_cv_func__sincos_use=no
11767 fi
11768 rm -f conftest*
11769       ac_ext=c
11770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11771 ac_cpp='$CPP $CPPFLAGS'
11772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11774 cross_compiling=$ac_cv_prog_cc_cross
11775
11776     
11777 fi
11778
11779   fi
11780   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11781
11782     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11783       for ac_func in _sincos
11784 do
11785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11786 echo "configure:11787: checking for $ac_func" >&5
11787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11788   echo $ac_n "(cached) $ac_c" 1>&6
11789 else
11790   cat > conftest.$ac_ext <<EOF
11791 #line 11792 "configure"
11792 #include "confdefs.h"
11793 /* System header to define __stub macros and hopefully few prototypes,
11794     which can conflict with char $ac_func(); below.  */
11795 #include <assert.h>
11796 /* Override any gcc2 internal prototype to avoid an error.  */
11797 /* We use char because int might match the return type of a gcc2
11798     builtin and then its argument prototype would still apply.  */
11799 char $ac_func();
11800
11801 int main() {
11802
11803 /* The GNU C library defines this for functions which it implements
11804     to always fail with ENOSYS.  Some functions are actually named
11805     something starting with __ and the normal name is an alias.  */
11806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11807 choke me
11808 #else
11809 $ac_func();
11810 #endif
11811
11812 ; return 0; }
11813 EOF
11814 if { (eval echo configure:11815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11815   rm -rf conftest*
11816   eval "ac_cv_func_$ac_func=yes"
11817 else
11818   echo "configure: failed program was:" >&5
11819   cat conftest.$ac_ext >&5
11820   rm -rf conftest*
11821   eval "ac_cv_func_$ac_func=no"
11822 fi
11823 rm -f conftest*
11824 fi
11825
11826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11827   echo "$ac_t""yes" 1>&6
11828     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11829   cat >> confdefs.h <<EOF
11830 #define $ac_tr_func 1
11831 EOF
11832  
11833 else
11834   echo "$ac_t""no" 1>&6
11835 fi
11836 done
11837     
11838     fi
11839   fi
11840
11841   
11842   
11843   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11844 echo "configure:11845: checking for fpclass declaration" >&5
11845   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11846     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11847   echo $ac_n "(cached) $ac_c" 1>&6
11848 else
11849   
11850       
11851       ac_ext=C
11852 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11853 ac_cpp='$CXXCPP $CPPFLAGS'
11854 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11855 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11856 cross_compiling=$ac_cv_prog_cxx_cross
11857
11858       cat > conftest.$ac_ext <<EOF
11859 #line 11860 "configure"
11860 #include "confdefs.h"
11861 #include <math.h>
11862                       #ifdef HAVE_IEEEFP_H
11863                       #include <ieeefp.h>
11864                       #endif
11865                      
11866 int main() {
11867  fpclass(0);
11868 ; return 0; }
11869 EOF
11870 if { (eval echo configure:11871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11871   rm -rf conftest*
11872   glibcpp_cv_func_fpclass_use=yes
11873 else
11874   echo "configure: failed program was:" >&5
11875   cat conftest.$ac_ext >&5
11876   rm -rf conftest*
11877   glibcpp_cv_func_fpclass_use=no
11878 fi
11879 rm -f conftest*
11880       ac_ext=c
11881 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11882 ac_cpp='$CPP $CPPFLAGS'
11883 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11884 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11885 cross_compiling=$ac_cv_prog_cc_cross
11886
11887     
11888 fi
11889
11890   fi
11891   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11892
11893   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11894     for ac_func in fpclass
11895 do
11896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11897 echo "configure:11898: checking for $ac_func" >&5
11898 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11899   echo $ac_n "(cached) $ac_c" 1>&6
11900 else
11901   cat > conftest.$ac_ext <<EOF
11902 #line 11903 "configure"
11903 #include "confdefs.h"
11904 /* System header to define __stub macros and hopefully few prototypes,
11905     which can conflict with char $ac_func(); below.  */
11906 #include <assert.h>
11907 /* Override any gcc2 internal prototype to avoid an error.  */
11908 /* We use char because int might match the return type of a gcc2
11909     builtin and then its argument prototype would still apply.  */
11910 char $ac_func();
11911
11912 int main() {
11913
11914 /* The GNU C library defines this for functions which it implements
11915     to always fail with ENOSYS.  Some functions are actually named
11916     something starting with __ and the normal name is an alias.  */
11917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11918 choke me
11919 #else
11920 $ac_func();
11921 #endif
11922
11923 ; return 0; }
11924 EOF
11925 if { (eval echo configure:11926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11926   rm -rf conftest*
11927   eval "ac_cv_func_$ac_func=yes"
11928 else
11929   echo "configure: failed program was:" >&5
11930   cat conftest.$ac_ext >&5
11931   rm -rf conftest*
11932   eval "ac_cv_func_$ac_func=no"
11933 fi
11934 rm -f conftest*
11935 fi
11936
11937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11938   echo "$ac_t""yes" 1>&6
11939     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11940   cat >> confdefs.h <<EOF
11941 #define $ac_tr_func 1
11942 EOF
11943  
11944 else
11945   echo "$ac_t""no" 1>&6
11946 fi
11947 done
11948     
11949   else
11950     
11951   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
11952 echo "configure:11953: checking for _fpclass declaration" >&5
11953   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
11954     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
11955   echo $ac_n "(cached) $ac_c" 1>&6
11956 else
11957   
11958       
11959       ac_ext=C
11960 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11961 ac_cpp='$CXXCPP $CPPFLAGS'
11962 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11963 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11964 cross_compiling=$ac_cv_prog_cxx_cross
11965
11966       cat > conftest.$ac_ext <<EOF
11967 #line 11968 "configure"
11968 #include "confdefs.h"
11969 #include <math.h>
11970                       #ifdef HAVE_IEEEFP_H
11971                       #include <ieeefp.h>
11972                       #endif
11973                      
11974 int main() {
11975  _fpclass(0);
11976 ; return 0; }
11977 EOF
11978 if { (eval echo configure:11979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11979   rm -rf conftest*
11980   glibcpp_cv_func__fpclass_use=yes
11981 else
11982   echo "configure: failed program was:" >&5
11983   cat conftest.$ac_ext >&5
11984   rm -rf conftest*
11985   glibcpp_cv_func__fpclass_use=no
11986 fi
11987 rm -f conftest*
11988       ac_ext=c
11989 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11990 ac_cpp='$CPP $CPPFLAGS'
11991 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11992 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11993 cross_compiling=$ac_cv_prog_cc_cross
11994
11995     
11996 fi
11997
11998   fi
11999   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
12000
12001     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
12002       for ac_func in _fpclass
12003 do
12004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12005 echo "configure:12006: checking for $ac_func" >&5
12006 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12007   echo $ac_n "(cached) $ac_c" 1>&6
12008 else
12009   cat > conftest.$ac_ext <<EOF
12010 #line 12011 "configure"
12011 #include "confdefs.h"
12012 /* System header to define __stub macros and hopefully few prototypes,
12013     which can conflict with char $ac_func(); below.  */
12014 #include <assert.h>
12015 /* Override any gcc2 internal prototype to avoid an error.  */
12016 /* We use char because int might match the return type of a gcc2
12017     builtin and then its argument prototype would still apply.  */
12018 char $ac_func();
12019
12020 int main() {
12021
12022 /* The GNU C library defines this for functions which it implements
12023     to always fail with ENOSYS.  Some functions are actually named
12024     something starting with __ and the normal name is an alias.  */
12025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12026 choke me
12027 #else
12028 $ac_func();
12029 #endif
12030
12031 ; return 0; }
12032 EOF
12033 if { (eval echo configure:12034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12034   rm -rf conftest*
12035   eval "ac_cv_func_$ac_func=yes"
12036 else
12037   echo "configure: failed program was:" >&5
12038   cat conftest.$ac_ext >&5
12039   rm -rf conftest*
12040   eval "ac_cv_func_$ac_func=no"
12041 fi
12042 rm -f conftest*
12043 fi
12044
12045 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12046   echo "$ac_t""yes" 1>&6
12047     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12048   cat >> confdefs.h <<EOF
12049 #define $ac_tr_func 1
12050 EOF
12051  
12052 else
12053   echo "$ac_t""no" 1>&6
12054 fi
12055 done
12056     
12057     fi
12058   fi
12059
12060   
12061   
12062   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12063 echo "configure:12064: checking for qfpclass declaration" >&5
12064   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12065     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12066   echo $ac_n "(cached) $ac_c" 1>&6
12067 else
12068   
12069       
12070       ac_ext=C
12071 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12072 ac_cpp='$CXXCPP $CPPFLAGS'
12073 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12074 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12075 cross_compiling=$ac_cv_prog_cxx_cross
12076
12077       cat > conftest.$ac_ext <<EOF
12078 #line 12079 "configure"
12079 #include "confdefs.h"
12080 #include <math.h>
12081                       #ifdef HAVE_IEEEFP_H
12082                       #include <ieeefp.h>
12083                       #endif
12084                      
12085 int main() {
12086  qfpclass(0);
12087 ; return 0; }
12088 EOF
12089 if { (eval echo configure:12090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12090   rm -rf conftest*
12091   glibcpp_cv_func_qfpclass_use=yes
12092 else
12093   echo "configure: failed program was:" >&5
12094   cat conftest.$ac_ext >&5
12095   rm -rf conftest*
12096   glibcpp_cv_func_qfpclass_use=no
12097 fi
12098 rm -f conftest*
12099       ac_ext=c
12100 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12101 ac_cpp='$CPP $CPPFLAGS'
12102 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12103 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12104 cross_compiling=$ac_cv_prog_cc_cross
12105
12106     
12107 fi
12108
12109   fi
12110   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12111
12112   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12113     for ac_func in qfpclass
12114 do
12115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12116 echo "configure:12117: checking for $ac_func" >&5
12117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12118   echo $ac_n "(cached) $ac_c" 1>&6
12119 else
12120   cat > conftest.$ac_ext <<EOF
12121 #line 12122 "configure"
12122 #include "confdefs.h"
12123 /* System header to define __stub macros and hopefully few prototypes,
12124     which can conflict with char $ac_func(); below.  */
12125 #include <assert.h>
12126 /* Override any gcc2 internal prototype to avoid an error.  */
12127 /* We use char because int might match the return type of a gcc2
12128     builtin and then its argument prototype would still apply.  */
12129 char $ac_func();
12130
12131 int main() {
12132
12133 /* The GNU C library defines this for functions which it implements
12134     to always fail with ENOSYS.  Some functions are actually named
12135     something starting with __ and the normal name is an alias.  */
12136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12137 choke me
12138 #else
12139 $ac_func();
12140 #endif
12141
12142 ; return 0; }
12143 EOF
12144 if { (eval echo configure:12145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12145   rm -rf conftest*
12146   eval "ac_cv_func_$ac_func=yes"
12147 else
12148   echo "configure: failed program was:" >&5
12149   cat conftest.$ac_ext >&5
12150   rm -rf conftest*
12151   eval "ac_cv_func_$ac_func=no"
12152 fi
12153 rm -f conftest*
12154 fi
12155
12156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12157   echo "$ac_t""yes" 1>&6
12158     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12159   cat >> confdefs.h <<EOF
12160 #define $ac_tr_func 1
12161 EOF
12162  
12163 else
12164   echo "$ac_t""no" 1>&6
12165 fi
12166 done
12167     
12168   else
12169     
12170   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12171 echo "configure:12172: checking for _qfpclass declaration" >&5
12172   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12173     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12174   echo $ac_n "(cached) $ac_c" 1>&6
12175 else
12176   
12177       
12178       ac_ext=C
12179 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12180 ac_cpp='$CXXCPP $CPPFLAGS'
12181 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12182 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12183 cross_compiling=$ac_cv_prog_cxx_cross
12184
12185       cat > conftest.$ac_ext <<EOF
12186 #line 12187 "configure"
12187 #include "confdefs.h"
12188 #include <math.h>
12189                       #ifdef HAVE_IEEEFP_H
12190                       #include <ieeefp.h>
12191                       #endif
12192                      
12193 int main() {
12194  _qfpclass(0);
12195 ; return 0; }
12196 EOF
12197 if { (eval echo configure:12198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12198   rm -rf conftest*
12199   glibcpp_cv_func__qfpclass_use=yes
12200 else
12201   echo "configure: failed program was:" >&5
12202   cat conftest.$ac_ext >&5
12203   rm -rf conftest*
12204   glibcpp_cv_func__qfpclass_use=no
12205 fi
12206 rm -f conftest*
12207       ac_ext=c
12208 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12209 ac_cpp='$CPP $CPPFLAGS'
12210 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12211 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12212 cross_compiling=$ac_cv_prog_cc_cross
12213
12214     
12215 fi
12216
12217   fi
12218   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12219
12220     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12221       for ac_func in _qfpclass
12222 do
12223 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12224 echo "configure:12225: checking for $ac_func" >&5
12225 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12226   echo $ac_n "(cached) $ac_c" 1>&6
12227 else
12228   cat > conftest.$ac_ext <<EOF
12229 #line 12230 "configure"
12230 #include "confdefs.h"
12231 /* System header to define __stub macros and hopefully few prototypes,
12232     which can conflict with char $ac_func(); below.  */
12233 #include <assert.h>
12234 /* Override any gcc2 internal prototype to avoid an error.  */
12235 /* We use char because int might match the return type of a gcc2
12236     builtin and then its argument prototype would still apply.  */
12237 char $ac_func();
12238
12239 int main() {
12240
12241 /* The GNU C library defines this for functions which it implements
12242     to always fail with ENOSYS.  Some functions are actually named
12243     something starting with __ and the normal name is an alias.  */
12244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12245 choke me
12246 #else
12247 $ac_func();
12248 #endif
12249
12250 ; return 0; }
12251 EOF
12252 if { (eval echo configure:12253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12253   rm -rf conftest*
12254   eval "ac_cv_func_$ac_func=yes"
12255 else
12256   echo "configure: failed program was:" >&5
12257   cat conftest.$ac_ext >&5
12258   rm -rf conftest*
12259   eval "ac_cv_func_$ac_func=no"
12260 fi
12261 rm -f conftest*
12262 fi
12263
12264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12265   echo "$ac_t""yes" 1>&6
12266     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12267   cat >> confdefs.h <<EOF
12268 #define $ac_tr_func 1
12269 EOF
12270  
12271 else
12272   echo "$ac_t""no" 1>&6
12273 fi
12274 done
12275     
12276     fi
12277   fi
12278
12279   
12280   
12281   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12282 echo "configure:12283: checking for hypot declaration" >&5
12283   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12284     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12285   echo $ac_n "(cached) $ac_c" 1>&6
12286 else
12287   
12288       
12289       ac_ext=C
12290 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12291 ac_cpp='$CXXCPP $CPPFLAGS'
12292 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12293 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12294 cross_compiling=$ac_cv_prog_cxx_cross
12295
12296       cat > conftest.$ac_ext <<EOF
12297 #line 12298 "configure"
12298 #include "confdefs.h"
12299 #include <math.h>
12300 int main() {
12301  hypot(0, 0);
12302 ; return 0; }
12303 EOF
12304 if { (eval echo configure:12305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12305   rm -rf conftest*
12306   glibcpp_cv_func_hypot_use=yes
12307 else
12308   echo "configure: failed program was:" >&5
12309   cat conftest.$ac_ext >&5
12310   rm -rf conftest*
12311   glibcpp_cv_func_hypot_use=no
12312 fi
12313 rm -f conftest*
12314       ac_ext=c
12315 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12316 ac_cpp='$CPP $CPPFLAGS'
12317 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12318 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12319 cross_compiling=$ac_cv_prog_cc_cross
12320
12321     
12322 fi
12323
12324   fi
12325   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12326
12327   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12328     for ac_func in hypot
12329 do
12330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12331 echo "configure:12332: checking for $ac_func" >&5
12332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12333   echo $ac_n "(cached) $ac_c" 1>&6
12334 else
12335   cat > conftest.$ac_ext <<EOF
12336 #line 12337 "configure"
12337 #include "confdefs.h"
12338 /* System header to define __stub macros and hopefully few prototypes,
12339     which can conflict with char $ac_func(); below.  */
12340 #include <assert.h>
12341 /* Override any gcc2 internal prototype to avoid an error.  */
12342 /* We use char because int might match the return type of a gcc2
12343     builtin and then its argument prototype would still apply.  */
12344 char $ac_func();
12345
12346 int main() {
12347
12348 /* The GNU C library defines this for functions which it implements
12349     to always fail with ENOSYS.  Some functions are actually named
12350     something starting with __ and the normal name is an alias.  */
12351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12352 choke me
12353 #else
12354 $ac_func();
12355 #endif
12356
12357 ; return 0; }
12358 EOF
12359 if { (eval echo configure:12360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12360   rm -rf conftest*
12361   eval "ac_cv_func_$ac_func=yes"
12362 else
12363   echo "configure: failed program was:" >&5
12364   cat conftest.$ac_ext >&5
12365   rm -rf conftest*
12366   eval "ac_cv_func_$ac_func=no"
12367 fi
12368 rm -f conftest*
12369 fi
12370
12371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12372   echo "$ac_t""yes" 1>&6
12373     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12374   cat >> confdefs.h <<EOF
12375 #define $ac_tr_func 1
12376 EOF
12377  
12378 else
12379   echo "$ac_t""no" 1>&6
12380 fi
12381 done
12382     
12383   else
12384     
12385   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12386 echo "configure:12387: checking for _hypot declaration" >&5
12387   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12388     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12389   echo $ac_n "(cached) $ac_c" 1>&6
12390 else
12391   
12392       
12393       ac_ext=C
12394 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12395 ac_cpp='$CXXCPP $CPPFLAGS'
12396 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12397 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12398 cross_compiling=$ac_cv_prog_cxx_cross
12399
12400       cat > conftest.$ac_ext <<EOF
12401 #line 12402 "configure"
12402 #include "confdefs.h"
12403 #include <math.h>
12404 int main() {
12405  _hypot(0, 0);
12406 ; return 0; }
12407 EOF
12408 if { (eval echo configure:12409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12409   rm -rf conftest*
12410   glibcpp_cv_func__hypot_use=yes
12411 else
12412   echo "configure: failed program was:" >&5
12413   cat conftest.$ac_ext >&5
12414   rm -rf conftest*
12415   glibcpp_cv_func__hypot_use=no
12416 fi
12417 rm -f conftest*
12418       ac_ext=c
12419 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12420 ac_cpp='$CPP $CPPFLAGS'
12421 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12422 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12423 cross_compiling=$ac_cv_prog_cc_cross
12424
12425     
12426 fi
12427
12428   fi
12429   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12430
12431     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12432       for ac_func in _hypot
12433 do
12434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12435 echo "configure:12436: checking for $ac_func" >&5
12436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12437   echo $ac_n "(cached) $ac_c" 1>&6
12438 else
12439   cat > conftest.$ac_ext <<EOF
12440 #line 12441 "configure"
12441 #include "confdefs.h"
12442 /* System header to define __stub macros and hopefully few prototypes,
12443     which can conflict with char $ac_func(); below.  */
12444 #include <assert.h>
12445 /* Override any gcc2 internal prototype to avoid an error.  */
12446 /* We use char because int might match the return type of a gcc2
12447     builtin and then its argument prototype would still apply.  */
12448 char $ac_func();
12449
12450 int main() {
12451
12452 /* The GNU C library defines this for functions which it implements
12453     to always fail with ENOSYS.  Some functions are actually named
12454     something starting with __ and the normal name is an alias.  */
12455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12456 choke me
12457 #else
12458 $ac_func();
12459 #endif
12460
12461 ; return 0; }
12462 EOF
12463 if { (eval echo configure:12464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12464   rm -rf conftest*
12465   eval "ac_cv_func_$ac_func=yes"
12466 else
12467   echo "configure: failed program was:" >&5
12468   cat conftest.$ac_ext >&5
12469   rm -rf conftest*
12470   eval "ac_cv_func_$ac_func=no"
12471 fi
12472 rm -f conftest*
12473 fi
12474
12475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12476   echo "$ac_t""yes" 1>&6
12477     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12478   cat >> confdefs.h <<EOF
12479 #define $ac_tr_func 1
12480 EOF
12481  
12482 else
12483   echo "$ac_t""no" 1>&6
12484 fi
12485 done
12486     
12487     fi
12488   fi
12489
12490
12491     
12492   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12493 echo "configure:12494: checking for float trig functions" >&5
12494   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12495   echo $ac_n "(cached) $ac_c" 1>&6
12496 else
12497   
12498     
12499     ac_ext=C
12500 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12501 ac_cpp='$CXXCPP $CPPFLAGS'
12502 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12503 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12504 cross_compiling=$ac_cv_prog_cxx_cross
12505
12506     cat > conftest.$ac_ext <<EOF
12507 #line 12508 "configure"
12508 #include "confdefs.h"
12509 #include <math.h>
12510 int main() {
12511  `for x in acosf asinf atanf \
12512                                           cosf sinf tanf \
12513                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
12514 ; return 0; }
12515 EOF
12516 if { (eval echo configure:12517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12517   rm -rf conftest*
12518   glibcpp_cv_func_float_trig_use=yes
12519 else
12520   echo "configure: failed program was:" >&5
12521   cat conftest.$ac_ext >&5
12522   rm -rf conftest*
12523   glibcpp_cv_func_float_trig_use=no
12524 fi
12525 rm -f conftest*
12526     ac_ext=c
12527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12528 ac_cpp='$CPP $CPPFLAGS'
12529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12531 cross_compiling=$ac_cv_prog_cc_cross
12532
12533 fi
12534
12535   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12536   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12537     for ac_func in acosf asinf atanf \
12538                                           cosf sinf tanf \
12539                                           coshf sinhf tanhf
12540 do
12541 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12542 echo "configure:12543: checking for $ac_func" >&5
12543 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12544   echo $ac_n "(cached) $ac_c" 1>&6
12545 else
12546   cat > conftest.$ac_ext <<EOF
12547 #line 12548 "configure"
12548 #include "confdefs.h"
12549 /* System header to define __stub macros and hopefully few prototypes,
12550     which can conflict with char $ac_func(); below.  */
12551 #include <assert.h>
12552 /* Override any gcc2 internal prototype to avoid an error.  */
12553 /* We use char because int might match the return type of a gcc2
12554     builtin and then its argument prototype would still apply.  */
12555 char $ac_func();
12556
12557 int main() {
12558
12559 /* The GNU C library defines this for functions which it implements
12560     to always fail with ENOSYS.  Some functions are actually named
12561     something starting with __ and the normal name is an alias.  */
12562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12563 choke me
12564 #else
12565 $ac_func();
12566 #endif
12567
12568 ; return 0; }
12569 EOF
12570 if { (eval echo configure:12571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12571   rm -rf conftest*
12572   eval "ac_cv_func_$ac_func=yes"
12573 else
12574   echo "configure: failed program was:" >&5
12575   cat conftest.$ac_ext >&5
12576   rm -rf conftest*
12577   eval "ac_cv_func_$ac_func=no"
12578 fi
12579 rm -f conftest*
12580 fi
12581
12582 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12583   echo "$ac_t""yes" 1>&6
12584     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12585   cat >> confdefs.h <<EOF
12586 #define $ac_tr_func 1
12587 EOF
12588  
12589 else
12590   echo "$ac_t""no" 1>&6
12591 fi
12592 done
12593
12594   fi
12595
12596   
12597   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12598 echo "configure:12599: checking for float round functions" >&5
12599   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12600   echo $ac_n "(cached) $ac_c" 1>&6
12601 else
12602   
12603     
12604     ac_ext=C
12605 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12606 ac_cpp='$CXXCPP $CPPFLAGS'
12607 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12608 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12609 cross_compiling=$ac_cv_prog_cxx_cross
12610
12611     cat > conftest.$ac_ext <<EOF
12612 #line 12613 "configure"
12613 #include "confdefs.h"
12614 #include <math.h>
12615 int main() {
12616  `for x in ceilf floorf; do echo "$x (0);"; done` 
12617 ; return 0; }
12618 EOF
12619 if { (eval echo configure:12620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12620   rm -rf conftest*
12621   glibcpp_cv_func_float_round_use=yes
12622 else
12623   echo "configure: failed program was:" >&5
12624   cat conftest.$ac_ext >&5
12625   rm -rf conftest*
12626   glibcpp_cv_func_float_round_use=no
12627 fi
12628 rm -f conftest*
12629     ac_ext=c
12630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12631 ac_cpp='$CPP $CPPFLAGS'
12632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12633 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12634 cross_compiling=$ac_cv_prog_cc_cross
12635
12636 fi
12637
12638   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12639   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12640     for ac_func in ceilf floorf
12641 do
12642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12643 echo "configure:12644: checking for $ac_func" >&5
12644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12645   echo $ac_n "(cached) $ac_c" 1>&6
12646 else
12647   cat > conftest.$ac_ext <<EOF
12648 #line 12649 "configure"
12649 #include "confdefs.h"
12650 /* System header to define __stub macros and hopefully few prototypes,
12651     which can conflict with char $ac_func(); below.  */
12652 #include <assert.h>
12653 /* Override any gcc2 internal prototype to avoid an error.  */
12654 /* We use char because int might match the return type of a gcc2
12655     builtin and then its argument prototype would still apply.  */
12656 char $ac_func();
12657
12658 int main() {
12659
12660 /* The GNU C library defines this for functions which it implements
12661     to always fail with ENOSYS.  Some functions are actually named
12662     something starting with __ and the normal name is an alias.  */
12663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12664 choke me
12665 #else
12666 $ac_func();
12667 #endif
12668
12669 ; return 0; }
12670 EOF
12671 if { (eval echo configure:12672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12672   rm -rf conftest*
12673   eval "ac_cv_func_$ac_func=yes"
12674 else
12675   echo "configure: failed program was:" >&5
12676   cat conftest.$ac_ext >&5
12677   rm -rf conftest*
12678   eval "ac_cv_func_$ac_func=no"
12679 fi
12680 rm -f conftest*
12681 fi
12682
12683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12684   echo "$ac_t""yes" 1>&6
12685     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12686   cat >> confdefs.h <<EOF
12687 #define $ac_tr_func 1
12688 EOF
12689  
12690 else
12691   echo "$ac_t""no" 1>&6
12692 fi
12693 done
12694
12695   fi
12696
12697   
12698   
12699   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12700 echo "configure:12701: checking for expf declaration" >&5
12701   if test x${glibcpp_cv_func_expf_use+set} != xset; then
12702     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12703   echo $ac_n "(cached) $ac_c" 1>&6
12704 else
12705   
12706       
12707       ac_ext=C
12708 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12709 ac_cpp='$CXXCPP $CPPFLAGS'
12710 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12711 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12712 cross_compiling=$ac_cv_prog_cxx_cross
12713
12714       cat > conftest.$ac_ext <<EOF
12715 #line 12716 "configure"
12716 #include "confdefs.h"
12717 #include <math.h>
12718                       #ifdef HAVE_IEEEFP_H
12719                       #include <ieeefp.h>
12720                       #endif
12721                      
12722 int main() {
12723  expf(0);
12724 ; return 0; }
12725 EOF
12726 if { (eval echo configure:12727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12727   rm -rf conftest*
12728   glibcpp_cv_func_expf_use=yes
12729 else
12730   echo "configure: failed program was:" >&5
12731   cat conftest.$ac_ext >&5
12732   rm -rf conftest*
12733   glibcpp_cv_func_expf_use=no
12734 fi
12735 rm -f conftest*
12736       ac_ext=c
12737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12738 ac_cpp='$CPP $CPPFLAGS'
12739 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12740 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12741 cross_compiling=$ac_cv_prog_cc_cross
12742
12743     
12744 fi
12745
12746   fi
12747   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12748
12749   if test x$glibcpp_cv_func_expf_use = x"yes"; then
12750     for ac_func in expf
12751 do
12752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12753 echo "configure:12754: checking for $ac_func" >&5
12754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12755   echo $ac_n "(cached) $ac_c" 1>&6
12756 else
12757   cat > conftest.$ac_ext <<EOF
12758 #line 12759 "configure"
12759 #include "confdefs.h"
12760 /* System header to define __stub macros and hopefully few prototypes,
12761     which can conflict with char $ac_func(); below.  */
12762 #include <assert.h>
12763 /* Override any gcc2 internal prototype to avoid an error.  */
12764 /* We use char because int might match the return type of a gcc2
12765     builtin and then its argument prototype would still apply.  */
12766 char $ac_func();
12767
12768 int main() {
12769
12770 /* The GNU C library defines this for functions which it implements
12771     to always fail with ENOSYS.  Some functions are actually named
12772     something starting with __ and the normal name is an alias.  */
12773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12774 choke me
12775 #else
12776 $ac_func();
12777 #endif
12778
12779 ; return 0; }
12780 EOF
12781 if { (eval echo configure:12782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12782   rm -rf conftest*
12783   eval "ac_cv_func_$ac_func=yes"
12784 else
12785   echo "configure: failed program was:" >&5
12786   cat conftest.$ac_ext >&5
12787   rm -rf conftest*
12788   eval "ac_cv_func_$ac_func=no"
12789 fi
12790 rm -f conftest*
12791 fi
12792
12793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12794   echo "$ac_t""yes" 1>&6
12795     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12796   cat >> confdefs.h <<EOF
12797 #define $ac_tr_func 1
12798 EOF
12799  
12800 else
12801   echo "$ac_t""no" 1>&6
12802 fi
12803 done
12804     
12805   else
12806     
12807   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12808 echo "configure:12809: checking for _expf declaration" >&5
12809   if test x${glibcpp_cv_func__expf_use+set} != xset; then
12810     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12811   echo $ac_n "(cached) $ac_c" 1>&6
12812 else
12813   
12814       
12815       ac_ext=C
12816 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12817 ac_cpp='$CXXCPP $CPPFLAGS'
12818 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12819 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12820 cross_compiling=$ac_cv_prog_cxx_cross
12821
12822       cat > conftest.$ac_ext <<EOF
12823 #line 12824 "configure"
12824 #include "confdefs.h"
12825 #include <math.h>
12826                       #ifdef HAVE_IEEEFP_H
12827                       #include <ieeefp.h>
12828                       #endif
12829                      
12830 int main() {
12831  _expf(0);
12832 ; return 0; }
12833 EOF
12834 if { (eval echo configure:12835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12835   rm -rf conftest*
12836   glibcpp_cv_func__expf_use=yes
12837 else
12838   echo "configure: failed program was:" >&5
12839   cat conftest.$ac_ext >&5
12840   rm -rf conftest*
12841   glibcpp_cv_func__expf_use=no
12842 fi
12843 rm -f conftest*
12844       ac_ext=c
12845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12846 ac_cpp='$CPP $CPPFLAGS'
12847 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12848 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12849 cross_compiling=$ac_cv_prog_cc_cross
12850
12851     
12852 fi
12853
12854   fi
12855   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12856
12857     if test x$glibcpp_cv_func__expf_use = x"yes"; then
12858       for ac_func in _expf
12859 do
12860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12861 echo "configure:12862: checking for $ac_func" >&5
12862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12863   echo $ac_n "(cached) $ac_c" 1>&6
12864 else
12865   cat > conftest.$ac_ext <<EOF
12866 #line 12867 "configure"
12867 #include "confdefs.h"
12868 /* System header to define __stub macros and hopefully few prototypes,
12869     which can conflict with char $ac_func(); below.  */
12870 #include <assert.h>
12871 /* Override any gcc2 internal prototype to avoid an error.  */
12872 /* We use char because int might match the return type of a gcc2
12873     builtin and then its argument prototype would still apply.  */
12874 char $ac_func();
12875
12876 int main() {
12877
12878 /* The GNU C library defines this for functions which it implements
12879     to always fail with ENOSYS.  Some functions are actually named
12880     something starting with __ and the normal name is an alias.  */
12881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12882 choke me
12883 #else
12884 $ac_func();
12885 #endif
12886
12887 ; return 0; }
12888 EOF
12889 if { (eval echo configure:12890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12890   rm -rf conftest*
12891   eval "ac_cv_func_$ac_func=yes"
12892 else
12893   echo "configure: failed program was:" >&5
12894   cat conftest.$ac_ext >&5
12895   rm -rf conftest*
12896   eval "ac_cv_func_$ac_func=no"
12897 fi
12898 rm -f conftest*
12899 fi
12900
12901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12902   echo "$ac_t""yes" 1>&6
12903     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12904   cat >> confdefs.h <<EOF
12905 #define $ac_tr_func 1
12906 EOF
12907  
12908 else
12909   echo "$ac_t""no" 1>&6
12910 fi
12911 done
12912     
12913     fi
12914   fi
12915
12916   
12917   
12918   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12919 echo "configure:12920: checking for isnanf declaration" >&5
12920   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
12921     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
12922   echo $ac_n "(cached) $ac_c" 1>&6
12923 else
12924   
12925       
12926       ac_ext=C
12927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12928 ac_cpp='$CXXCPP $CPPFLAGS'
12929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12931 cross_compiling=$ac_cv_prog_cxx_cross
12932
12933       cat > conftest.$ac_ext <<EOF
12934 #line 12935 "configure"
12935 #include "confdefs.h"
12936 #include <math.h>
12937                       #ifdef HAVE_IEEEFP_H
12938                       #include <ieeefp.h>
12939                       #endif
12940                      
12941 int main() {
12942  isnanf(0);
12943 ; return 0; }
12944 EOF
12945 if { (eval echo configure:12946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12946   rm -rf conftest*
12947   glibcpp_cv_func_isnanf_use=yes
12948 else
12949   echo "configure: failed program was:" >&5
12950   cat conftest.$ac_ext >&5
12951   rm -rf conftest*
12952   glibcpp_cv_func_isnanf_use=no
12953 fi
12954 rm -f conftest*
12955       ac_ext=c
12956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12957 ac_cpp='$CPP $CPPFLAGS'
12958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12960 cross_compiling=$ac_cv_prog_cc_cross
12961
12962     
12963 fi
12964
12965   fi
12966   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
12967
12968   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
12969     for ac_func in isnanf
12970 do
12971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12972 echo "configure:12973: checking for $ac_func" >&5
12973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12974   echo $ac_n "(cached) $ac_c" 1>&6
12975 else
12976   cat > conftest.$ac_ext <<EOF
12977 #line 12978 "configure"
12978 #include "confdefs.h"
12979 /* System header to define __stub macros and hopefully few prototypes,
12980     which can conflict with char $ac_func(); below.  */
12981 #include <assert.h>
12982 /* Override any gcc2 internal prototype to avoid an error.  */
12983 /* We use char because int might match the return type of a gcc2
12984     builtin and then its argument prototype would still apply.  */
12985 char $ac_func();
12986
12987 int main() {
12988
12989 /* The GNU C library defines this for functions which it implements
12990     to always fail with ENOSYS.  Some functions are actually named
12991     something starting with __ and the normal name is an alias.  */
12992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12993 choke me
12994 #else
12995 $ac_func();
12996 #endif
12997
12998 ; return 0; }
12999 EOF
13000 if { (eval echo configure:13001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13001   rm -rf conftest*
13002   eval "ac_cv_func_$ac_func=yes"
13003 else
13004   echo "configure: failed program was:" >&5
13005   cat conftest.$ac_ext >&5
13006   rm -rf conftest*
13007   eval "ac_cv_func_$ac_func=no"
13008 fi
13009 rm -f conftest*
13010 fi
13011
13012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13013   echo "$ac_t""yes" 1>&6
13014     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13015   cat >> confdefs.h <<EOF
13016 #define $ac_tr_func 1
13017 EOF
13018  
13019 else
13020   echo "$ac_t""no" 1>&6
13021 fi
13022 done
13023     
13024   else
13025     
13026   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
13027 echo "configure:13028: checking for _isnanf declaration" >&5
13028   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
13029     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
13030   echo $ac_n "(cached) $ac_c" 1>&6
13031 else
13032   
13033       
13034       ac_ext=C
13035 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13036 ac_cpp='$CXXCPP $CPPFLAGS'
13037 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13038 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13039 cross_compiling=$ac_cv_prog_cxx_cross
13040
13041       cat > conftest.$ac_ext <<EOF
13042 #line 13043 "configure"
13043 #include "confdefs.h"
13044 #include <math.h>
13045                       #ifdef HAVE_IEEEFP_H
13046                       #include <ieeefp.h>
13047                       #endif
13048                      
13049 int main() {
13050  _isnanf(0);
13051 ; return 0; }
13052 EOF
13053 if { (eval echo configure:13054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13054   rm -rf conftest*
13055   glibcpp_cv_func__isnanf_use=yes
13056 else
13057   echo "configure: failed program was:" >&5
13058   cat conftest.$ac_ext >&5
13059   rm -rf conftest*
13060   glibcpp_cv_func__isnanf_use=no
13061 fi
13062 rm -f conftest*
13063       ac_ext=c
13064 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13065 ac_cpp='$CPP $CPPFLAGS'
13066 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13067 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13068 cross_compiling=$ac_cv_prog_cc_cross
13069
13070     
13071 fi
13072
13073   fi
13074   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13075
13076     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13077       for ac_func in _isnanf
13078 do
13079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13080 echo "configure:13081: checking for $ac_func" >&5
13081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13082   echo $ac_n "(cached) $ac_c" 1>&6
13083 else
13084   cat > conftest.$ac_ext <<EOF
13085 #line 13086 "configure"
13086 #include "confdefs.h"
13087 /* System header to define __stub macros and hopefully few prototypes,
13088     which can conflict with char $ac_func(); below.  */
13089 #include <assert.h>
13090 /* Override any gcc2 internal prototype to avoid an error.  */
13091 /* We use char because int might match the return type of a gcc2
13092     builtin and then its argument prototype would still apply.  */
13093 char $ac_func();
13094
13095 int main() {
13096
13097 /* The GNU C library defines this for functions which it implements
13098     to always fail with ENOSYS.  Some functions are actually named
13099     something starting with __ and the normal name is an alias.  */
13100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13101 choke me
13102 #else
13103 $ac_func();
13104 #endif
13105
13106 ; return 0; }
13107 EOF
13108 if { (eval echo configure:13109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13109   rm -rf conftest*
13110   eval "ac_cv_func_$ac_func=yes"
13111 else
13112   echo "configure: failed program was:" >&5
13113   cat conftest.$ac_ext >&5
13114   rm -rf conftest*
13115   eval "ac_cv_func_$ac_func=no"
13116 fi
13117 rm -f conftest*
13118 fi
13119
13120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13121   echo "$ac_t""yes" 1>&6
13122     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13123   cat >> confdefs.h <<EOF
13124 #define $ac_tr_func 1
13125 EOF
13126  
13127 else
13128   echo "$ac_t""no" 1>&6
13129 fi
13130 done
13131     
13132     fi
13133   fi
13134
13135   
13136   
13137   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13138 echo "configure:13139: checking for isinff declaration" >&5
13139   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13140     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13141   echo $ac_n "(cached) $ac_c" 1>&6
13142 else
13143   
13144       
13145       ac_ext=C
13146 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13147 ac_cpp='$CXXCPP $CPPFLAGS'
13148 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13149 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13150 cross_compiling=$ac_cv_prog_cxx_cross
13151
13152       cat > conftest.$ac_ext <<EOF
13153 #line 13154 "configure"
13154 #include "confdefs.h"
13155 #include <math.h>
13156                       #ifdef HAVE_IEEEFP_H
13157                       #include <ieeefp.h>
13158                       #endif
13159                      
13160 int main() {
13161  isinff(0);
13162 ; return 0; }
13163 EOF
13164 if { (eval echo configure:13165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13165   rm -rf conftest*
13166   glibcpp_cv_func_isinff_use=yes
13167 else
13168   echo "configure: failed program was:" >&5
13169   cat conftest.$ac_ext >&5
13170   rm -rf conftest*
13171   glibcpp_cv_func_isinff_use=no
13172 fi
13173 rm -f conftest*
13174       ac_ext=c
13175 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13176 ac_cpp='$CPP $CPPFLAGS'
13177 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13178 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13179 cross_compiling=$ac_cv_prog_cc_cross
13180
13181     
13182 fi
13183
13184   fi
13185   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13186
13187   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13188     for ac_func in isinff
13189 do
13190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13191 echo "configure:13192: checking for $ac_func" >&5
13192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13193   echo $ac_n "(cached) $ac_c" 1>&6
13194 else
13195   cat > conftest.$ac_ext <<EOF
13196 #line 13197 "configure"
13197 #include "confdefs.h"
13198 /* System header to define __stub macros and hopefully few prototypes,
13199     which can conflict with char $ac_func(); below.  */
13200 #include <assert.h>
13201 /* Override any gcc2 internal prototype to avoid an error.  */
13202 /* We use char because int might match the return type of a gcc2
13203     builtin and then its argument prototype would still apply.  */
13204 char $ac_func();
13205
13206 int main() {
13207
13208 /* The GNU C library defines this for functions which it implements
13209     to always fail with ENOSYS.  Some functions are actually named
13210     something starting with __ and the normal name is an alias.  */
13211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13212 choke me
13213 #else
13214 $ac_func();
13215 #endif
13216
13217 ; return 0; }
13218 EOF
13219 if { (eval echo configure:13220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13220   rm -rf conftest*
13221   eval "ac_cv_func_$ac_func=yes"
13222 else
13223   echo "configure: failed program was:" >&5
13224   cat conftest.$ac_ext >&5
13225   rm -rf conftest*
13226   eval "ac_cv_func_$ac_func=no"
13227 fi
13228 rm -f conftest*
13229 fi
13230
13231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13232   echo "$ac_t""yes" 1>&6
13233     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13234   cat >> confdefs.h <<EOF
13235 #define $ac_tr_func 1
13236 EOF
13237  
13238 else
13239   echo "$ac_t""no" 1>&6
13240 fi
13241 done
13242     
13243   else
13244     
13245   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13246 echo "configure:13247: checking for _isinff declaration" >&5
13247   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13248     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13249   echo $ac_n "(cached) $ac_c" 1>&6
13250 else
13251   
13252       
13253       ac_ext=C
13254 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13255 ac_cpp='$CXXCPP $CPPFLAGS'
13256 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13257 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13258 cross_compiling=$ac_cv_prog_cxx_cross
13259
13260       cat > conftest.$ac_ext <<EOF
13261 #line 13262 "configure"
13262 #include "confdefs.h"
13263 #include <math.h>
13264                       #ifdef HAVE_IEEEFP_H
13265                       #include <ieeefp.h>
13266                       #endif
13267                      
13268 int main() {
13269  _isinff(0);
13270 ; return 0; }
13271 EOF
13272 if { (eval echo configure:13273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13273   rm -rf conftest*
13274   glibcpp_cv_func__isinff_use=yes
13275 else
13276   echo "configure: failed program was:" >&5
13277   cat conftest.$ac_ext >&5
13278   rm -rf conftest*
13279   glibcpp_cv_func__isinff_use=no
13280 fi
13281 rm -f conftest*
13282       ac_ext=c
13283 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13284 ac_cpp='$CPP $CPPFLAGS'
13285 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13286 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13287 cross_compiling=$ac_cv_prog_cc_cross
13288
13289     
13290 fi
13291
13292   fi
13293   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13294
13295     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13296       for ac_func in _isinff
13297 do
13298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13299 echo "configure:13300: checking for $ac_func" >&5
13300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13301   echo $ac_n "(cached) $ac_c" 1>&6
13302 else
13303   cat > conftest.$ac_ext <<EOF
13304 #line 13305 "configure"
13305 #include "confdefs.h"
13306 /* System header to define __stub macros and hopefully few prototypes,
13307     which can conflict with char $ac_func(); below.  */
13308 #include <assert.h>
13309 /* Override any gcc2 internal prototype to avoid an error.  */
13310 /* We use char because int might match the return type of a gcc2
13311     builtin and then its argument prototype would still apply.  */
13312 char $ac_func();
13313
13314 int main() {
13315
13316 /* The GNU C library defines this for functions which it implements
13317     to always fail with ENOSYS.  Some functions are actually named
13318     something starting with __ and the normal name is an alias.  */
13319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13320 choke me
13321 #else
13322 $ac_func();
13323 #endif
13324
13325 ; return 0; }
13326 EOF
13327 if { (eval echo configure:13328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13328   rm -rf conftest*
13329   eval "ac_cv_func_$ac_func=yes"
13330 else
13331   echo "configure: failed program was:" >&5
13332   cat conftest.$ac_ext >&5
13333   rm -rf conftest*
13334   eval "ac_cv_func_$ac_func=no"
13335 fi
13336 rm -f conftest*
13337 fi
13338
13339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13340   echo "$ac_t""yes" 1>&6
13341     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13342   cat >> confdefs.h <<EOF
13343 #define $ac_tr_func 1
13344 EOF
13345  
13346 else
13347   echo "$ac_t""no" 1>&6
13348 fi
13349 done
13350     
13351     fi
13352   fi
13353
13354   
13355   
13356   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13357 echo "configure:13358: checking for atan2f declaration" >&5
13358   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13359     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13360   echo $ac_n "(cached) $ac_c" 1>&6
13361 else
13362   
13363       
13364       ac_ext=C
13365 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13366 ac_cpp='$CXXCPP $CPPFLAGS'
13367 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13368 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13369 cross_compiling=$ac_cv_prog_cxx_cross
13370
13371       cat > conftest.$ac_ext <<EOF
13372 #line 13373 "configure"
13373 #include "confdefs.h"
13374 #include <math.h>
13375 int main() {
13376  atan2f(0, 0);
13377 ; return 0; }
13378 EOF
13379 if { (eval echo configure:13380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13380   rm -rf conftest*
13381   glibcpp_cv_func_atan2f_use=yes
13382 else
13383   echo "configure: failed program was:" >&5
13384   cat conftest.$ac_ext >&5
13385   rm -rf conftest*
13386   glibcpp_cv_func_atan2f_use=no
13387 fi
13388 rm -f conftest*
13389       ac_ext=c
13390 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13391 ac_cpp='$CPP $CPPFLAGS'
13392 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13393 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13394 cross_compiling=$ac_cv_prog_cc_cross
13395
13396     
13397 fi
13398
13399   fi
13400   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13401
13402   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13403     for ac_func in atan2f
13404 do
13405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13406 echo "configure:13407: checking for $ac_func" >&5
13407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13408   echo $ac_n "(cached) $ac_c" 1>&6
13409 else
13410   cat > conftest.$ac_ext <<EOF
13411 #line 13412 "configure"
13412 #include "confdefs.h"
13413 /* System header to define __stub macros and hopefully few prototypes,
13414     which can conflict with char $ac_func(); below.  */
13415 #include <assert.h>
13416 /* Override any gcc2 internal prototype to avoid an error.  */
13417 /* We use char because int might match the return type of a gcc2
13418     builtin and then its argument prototype would still apply.  */
13419 char $ac_func();
13420
13421 int main() {
13422
13423 /* The GNU C library defines this for functions which it implements
13424     to always fail with ENOSYS.  Some functions are actually named
13425     something starting with __ and the normal name is an alias.  */
13426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13427 choke me
13428 #else
13429 $ac_func();
13430 #endif
13431
13432 ; return 0; }
13433 EOF
13434 if { (eval echo configure:13435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13435   rm -rf conftest*
13436   eval "ac_cv_func_$ac_func=yes"
13437 else
13438   echo "configure: failed program was:" >&5
13439   cat conftest.$ac_ext >&5
13440   rm -rf conftest*
13441   eval "ac_cv_func_$ac_func=no"
13442 fi
13443 rm -f conftest*
13444 fi
13445
13446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13447   echo "$ac_t""yes" 1>&6
13448     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13449   cat >> confdefs.h <<EOF
13450 #define $ac_tr_func 1
13451 EOF
13452  
13453 else
13454   echo "$ac_t""no" 1>&6
13455 fi
13456 done
13457     
13458   else
13459     
13460   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13461 echo "configure:13462: checking for _atan2f declaration" >&5
13462   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13463     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13464   echo $ac_n "(cached) $ac_c" 1>&6
13465 else
13466   
13467       
13468       ac_ext=C
13469 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13470 ac_cpp='$CXXCPP $CPPFLAGS'
13471 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13472 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13473 cross_compiling=$ac_cv_prog_cxx_cross
13474
13475       cat > conftest.$ac_ext <<EOF
13476 #line 13477 "configure"
13477 #include "confdefs.h"
13478 #include <math.h>
13479 int main() {
13480  _atan2f(0, 0);
13481 ; return 0; }
13482 EOF
13483 if { (eval echo configure:13484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13484   rm -rf conftest*
13485   glibcpp_cv_func__atan2f_use=yes
13486 else
13487   echo "configure: failed program was:" >&5
13488   cat conftest.$ac_ext >&5
13489   rm -rf conftest*
13490   glibcpp_cv_func__atan2f_use=no
13491 fi
13492 rm -f conftest*
13493       ac_ext=c
13494 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13495 ac_cpp='$CPP $CPPFLAGS'
13496 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13497 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13498 cross_compiling=$ac_cv_prog_cc_cross
13499
13500     
13501 fi
13502
13503   fi
13504   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13505
13506     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13507       for ac_func in _atan2f
13508 do
13509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13510 echo "configure:13511: checking for $ac_func" >&5
13511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13512   echo $ac_n "(cached) $ac_c" 1>&6
13513 else
13514   cat > conftest.$ac_ext <<EOF
13515 #line 13516 "configure"
13516 #include "confdefs.h"
13517 /* System header to define __stub macros and hopefully few prototypes,
13518     which can conflict with char $ac_func(); below.  */
13519 #include <assert.h>
13520 /* Override any gcc2 internal prototype to avoid an error.  */
13521 /* We use char because int might match the return type of a gcc2
13522     builtin and then its argument prototype would still apply.  */
13523 char $ac_func();
13524
13525 int main() {
13526
13527 /* The GNU C library defines this for functions which it implements
13528     to always fail with ENOSYS.  Some functions are actually named
13529     something starting with __ and the normal name is an alias.  */
13530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13531 choke me
13532 #else
13533 $ac_func();
13534 #endif
13535
13536 ; return 0; }
13537 EOF
13538 if { (eval echo configure:13539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13539   rm -rf conftest*
13540   eval "ac_cv_func_$ac_func=yes"
13541 else
13542   echo "configure: failed program was:" >&5
13543   cat conftest.$ac_ext >&5
13544   rm -rf conftest*
13545   eval "ac_cv_func_$ac_func=no"
13546 fi
13547 rm -f conftest*
13548 fi
13549
13550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13551   echo "$ac_t""yes" 1>&6
13552     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13553   cat >> confdefs.h <<EOF
13554 #define $ac_tr_func 1
13555 EOF
13556  
13557 else
13558   echo "$ac_t""no" 1>&6
13559 fi
13560 done
13561     
13562     fi
13563   fi
13564
13565   
13566   
13567   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13568 echo "configure:13569: checking for fabsf declaration" >&5
13569   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13570     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13571   echo $ac_n "(cached) $ac_c" 1>&6
13572 else
13573   
13574       
13575       ac_ext=C
13576 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13577 ac_cpp='$CXXCPP $CPPFLAGS'
13578 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13579 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13580 cross_compiling=$ac_cv_prog_cxx_cross
13581
13582       cat > conftest.$ac_ext <<EOF
13583 #line 13584 "configure"
13584 #include "confdefs.h"
13585 #include <math.h>
13586                       #ifdef HAVE_IEEEFP_H
13587                       #include <ieeefp.h>
13588                       #endif
13589                      
13590 int main() {
13591  fabsf(0);
13592 ; return 0; }
13593 EOF
13594 if { (eval echo configure:13595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13595   rm -rf conftest*
13596   glibcpp_cv_func_fabsf_use=yes
13597 else
13598   echo "configure: failed program was:" >&5
13599   cat conftest.$ac_ext >&5
13600   rm -rf conftest*
13601   glibcpp_cv_func_fabsf_use=no
13602 fi
13603 rm -f conftest*
13604       ac_ext=c
13605 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13606 ac_cpp='$CPP $CPPFLAGS'
13607 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13608 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13609 cross_compiling=$ac_cv_prog_cc_cross
13610
13611     
13612 fi
13613
13614   fi
13615   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13616
13617   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13618     for ac_func in fabsf
13619 do
13620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13621 echo "configure:13622: checking for $ac_func" >&5
13622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13623   echo $ac_n "(cached) $ac_c" 1>&6
13624 else
13625   cat > conftest.$ac_ext <<EOF
13626 #line 13627 "configure"
13627 #include "confdefs.h"
13628 /* System header to define __stub macros and hopefully few prototypes,
13629     which can conflict with char $ac_func(); below.  */
13630 #include <assert.h>
13631 /* Override any gcc2 internal prototype to avoid an error.  */
13632 /* We use char because int might match the return type of a gcc2
13633     builtin and then its argument prototype would still apply.  */
13634 char $ac_func();
13635
13636 int main() {
13637
13638 /* The GNU C library defines this for functions which it implements
13639     to always fail with ENOSYS.  Some functions are actually named
13640     something starting with __ and the normal name is an alias.  */
13641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13642 choke me
13643 #else
13644 $ac_func();
13645 #endif
13646
13647 ; return 0; }
13648 EOF
13649 if { (eval echo configure:13650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13650   rm -rf conftest*
13651   eval "ac_cv_func_$ac_func=yes"
13652 else
13653   echo "configure: failed program was:" >&5
13654   cat conftest.$ac_ext >&5
13655   rm -rf conftest*
13656   eval "ac_cv_func_$ac_func=no"
13657 fi
13658 rm -f conftest*
13659 fi
13660
13661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13662   echo "$ac_t""yes" 1>&6
13663     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13664   cat >> confdefs.h <<EOF
13665 #define $ac_tr_func 1
13666 EOF
13667  
13668 else
13669   echo "$ac_t""no" 1>&6
13670 fi
13671 done
13672     
13673   else
13674     
13675   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13676 echo "configure:13677: checking for _fabsf declaration" >&5
13677   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13678     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13679   echo $ac_n "(cached) $ac_c" 1>&6
13680 else
13681   
13682       
13683       ac_ext=C
13684 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13685 ac_cpp='$CXXCPP $CPPFLAGS'
13686 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13687 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13688 cross_compiling=$ac_cv_prog_cxx_cross
13689
13690       cat > conftest.$ac_ext <<EOF
13691 #line 13692 "configure"
13692 #include "confdefs.h"
13693 #include <math.h>
13694                       #ifdef HAVE_IEEEFP_H
13695                       #include <ieeefp.h>
13696                       #endif
13697                      
13698 int main() {
13699  _fabsf(0);
13700 ; return 0; }
13701 EOF
13702 if { (eval echo configure:13703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13703   rm -rf conftest*
13704   glibcpp_cv_func__fabsf_use=yes
13705 else
13706   echo "configure: failed program was:" >&5
13707   cat conftest.$ac_ext >&5
13708   rm -rf conftest*
13709   glibcpp_cv_func__fabsf_use=no
13710 fi
13711 rm -f conftest*
13712       ac_ext=c
13713 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13714 ac_cpp='$CPP $CPPFLAGS'
13715 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13716 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13717 cross_compiling=$ac_cv_prog_cc_cross
13718
13719     
13720 fi
13721
13722   fi
13723   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13724
13725     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13726       for ac_func in _fabsf
13727 do
13728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13729 echo "configure:13730: checking for $ac_func" >&5
13730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13731   echo $ac_n "(cached) $ac_c" 1>&6
13732 else
13733   cat > conftest.$ac_ext <<EOF
13734 #line 13735 "configure"
13735 #include "confdefs.h"
13736 /* System header to define __stub macros and hopefully few prototypes,
13737     which can conflict with char $ac_func(); below.  */
13738 #include <assert.h>
13739 /* Override any gcc2 internal prototype to avoid an error.  */
13740 /* We use char because int might match the return type of a gcc2
13741     builtin and then its argument prototype would still apply.  */
13742 char $ac_func();
13743
13744 int main() {
13745
13746 /* The GNU C library defines this for functions which it implements
13747     to always fail with ENOSYS.  Some functions are actually named
13748     something starting with __ and the normal name is an alias.  */
13749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13750 choke me
13751 #else
13752 $ac_func();
13753 #endif
13754
13755 ; return 0; }
13756 EOF
13757 if { (eval echo configure:13758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13758   rm -rf conftest*
13759   eval "ac_cv_func_$ac_func=yes"
13760 else
13761   echo "configure: failed program was:" >&5
13762   cat conftest.$ac_ext >&5
13763   rm -rf conftest*
13764   eval "ac_cv_func_$ac_func=no"
13765 fi
13766 rm -f conftest*
13767 fi
13768
13769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13770   echo "$ac_t""yes" 1>&6
13771     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13772   cat >> confdefs.h <<EOF
13773 #define $ac_tr_func 1
13774 EOF
13775  
13776 else
13777   echo "$ac_t""no" 1>&6
13778 fi
13779 done
13780     
13781     fi
13782   fi
13783
13784   
13785   
13786   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13787 echo "configure:13788: checking for fmodf declaration" >&5
13788   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13789     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13790   echo $ac_n "(cached) $ac_c" 1>&6
13791 else
13792   
13793       
13794       ac_ext=C
13795 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13796 ac_cpp='$CXXCPP $CPPFLAGS'
13797 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13798 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13799 cross_compiling=$ac_cv_prog_cxx_cross
13800
13801       cat > conftest.$ac_ext <<EOF
13802 #line 13803 "configure"
13803 #include "confdefs.h"
13804 #include <math.h>
13805 int main() {
13806  fmodf(0, 0);
13807 ; return 0; }
13808 EOF
13809 if { (eval echo configure:13810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13810   rm -rf conftest*
13811   glibcpp_cv_func_fmodf_use=yes
13812 else
13813   echo "configure: failed program was:" >&5
13814   cat conftest.$ac_ext >&5
13815   rm -rf conftest*
13816   glibcpp_cv_func_fmodf_use=no
13817 fi
13818 rm -f conftest*
13819       ac_ext=c
13820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13821 ac_cpp='$CPP $CPPFLAGS'
13822 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13823 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13824 cross_compiling=$ac_cv_prog_cc_cross
13825
13826     
13827 fi
13828
13829   fi
13830   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13831
13832   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13833     for ac_func in fmodf
13834 do
13835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13836 echo "configure:13837: checking for $ac_func" >&5
13837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13838   echo $ac_n "(cached) $ac_c" 1>&6
13839 else
13840   cat > conftest.$ac_ext <<EOF
13841 #line 13842 "configure"
13842 #include "confdefs.h"
13843 /* System header to define __stub macros and hopefully few prototypes,
13844     which can conflict with char $ac_func(); below.  */
13845 #include <assert.h>
13846 /* Override any gcc2 internal prototype to avoid an error.  */
13847 /* We use char because int might match the return type of a gcc2
13848     builtin and then its argument prototype would still apply.  */
13849 char $ac_func();
13850
13851 int main() {
13852
13853 /* The GNU C library defines this for functions which it implements
13854     to always fail with ENOSYS.  Some functions are actually named
13855     something starting with __ and the normal name is an alias.  */
13856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13857 choke me
13858 #else
13859 $ac_func();
13860 #endif
13861
13862 ; return 0; }
13863 EOF
13864 if { (eval echo configure:13865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13865   rm -rf conftest*
13866   eval "ac_cv_func_$ac_func=yes"
13867 else
13868   echo "configure: failed program was:" >&5
13869   cat conftest.$ac_ext >&5
13870   rm -rf conftest*
13871   eval "ac_cv_func_$ac_func=no"
13872 fi
13873 rm -f conftest*
13874 fi
13875
13876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13877   echo "$ac_t""yes" 1>&6
13878     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13879   cat >> confdefs.h <<EOF
13880 #define $ac_tr_func 1
13881 EOF
13882  
13883 else
13884   echo "$ac_t""no" 1>&6
13885 fi
13886 done
13887     
13888   else
13889     
13890   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13891 echo "configure:13892: checking for _fmodf declaration" >&5
13892   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13893     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13894   echo $ac_n "(cached) $ac_c" 1>&6
13895 else
13896   
13897       
13898       ac_ext=C
13899 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13900 ac_cpp='$CXXCPP $CPPFLAGS'
13901 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13902 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13903 cross_compiling=$ac_cv_prog_cxx_cross
13904
13905       cat > conftest.$ac_ext <<EOF
13906 #line 13907 "configure"
13907 #include "confdefs.h"
13908 #include <math.h>
13909 int main() {
13910  _fmodf(0, 0);
13911 ; return 0; }
13912 EOF
13913 if { (eval echo configure:13914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13914   rm -rf conftest*
13915   glibcpp_cv_func__fmodf_use=yes
13916 else
13917   echo "configure: failed program was:" >&5
13918   cat conftest.$ac_ext >&5
13919   rm -rf conftest*
13920   glibcpp_cv_func__fmodf_use=no
13921 fi
13922 rm -f conftest*
13923       ac_ext=c
13924 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13925 ac_cpp='$CPP $CPPFLAGS'
13926 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13927 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13928 cross_compiling=$ac_cv_prog_cc_cross
13929
13930     
13931 fi
13932
13933   fi
13934   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
13935
13936     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
13937       for ac_func in _fmodf
13938 do
13939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13940 echo "configure:13941: checking for $ac_func" >&5
13941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13942   echo $ac_n "(cached) $ac_c" 1>&6
13943 else
13944   cat > conftest.$ac_ext <<EOF
13945 #line 13946 "configure"
13946 #include "confdefs.h"
13947 /* System header to define __stub macros and hopefully few prototypes,
13948     which can conflict with char $ac_func(); below.  */
13949 #include <assert.h>
13950 /* Override any gcc2 internal prototype to avoid an error.  */
13951 /* We use char because int might match the return type of a gcc2
13952     builtin and then its argument prototype would still apply.  */
13953 char $ac_func();
13954
13955 int main() {
13956
13957 /* The GNU C library defines this for functions which it implements
13958     to always fail with ENOSYS.  Some functions are actually named
13959     something starting with __ and the normal name is an alias.  */
13960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13961 choke me
13962 #else
13963 $ac_func();
13964 #endif
13965
13966 ; return 0; }
13967 EOF
13968 if { (eval echo configure:13969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13969   rm -rf conftest*
13970   eval "ac_cv_func_$ac_func=yes"
13971 else
13972   echo "configure: failed program was:" >&5
13973   cat conftest.$ac_ext >&5
13974   rm -rf conftest*
13975   eval "ac_cv_func_$ac_func=no"
13976 fi
13977 rm -f conftest*
13978 fi
13979
13980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13981   echo "$ac_t""yes" 1>&6
13982     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13983   cat >> confdefs.h <<EOF
13984 #define $ac_tr_func 1
13985 EOF
13986  
13987 else
13988   echo "$ac_t""no" 1>&6
13989 fi
13990 done
13991     
13992     fi
13993   fi
13994
13995   
13996   
13997   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
13998 echo "configure:13999: checking for frexpf declaration" >&5
13999   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
14000     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
14001   echo $ac_n "(cached) $ac_c" 1>&6
14002 else
14003   
14004       
14005       ac_ext=C
14006 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14007 ac_cpp='$CXXCPP $CPPFLAGS'
14008 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14009 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14010 cross_compiling=$ac_cv_prog_cxx_cross
14011
14012       cat > conftest.$ac_ext <<EOF
14013 #line 14014 "configure"
14014 #include "confdefs.h"
14015 #include <math.h>
14016 int main() {
14017  frexpf(0, 0);
14018 ; return 0; }
14019 EOF
14020 if { (eval echo configure:14021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14021   rm -rf conftest*
14022   glibcpp_cv_func_frexpf_use=yes
14023 else
14024   echo "configure: failed program was:" >&5
14025   cat conftest.$ac_ext >&5
14026   rm -rf conftest*
14027   glibcpp_cv_func_frexpf_use=no
14028 fi
14029 rm -f conftest*
14030       ac_ext=c
14031 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14032 ac_cpp='$CPP $CPPFLAGS'
14033 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14034 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14035 cross_compiling=$ac_cv_prog_cc_cross
14036
14037     
14038 fi
14039
14040   fi
14041   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
14042
14043   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
14044     for ac_func in frexpf
14045 do
14046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14047 echo "configure:14048: checking for $ac_func" >&5
14048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14049   echo $ac_n "(cached) $ac_c" 1>&6
14050 else
14051   cat > conftest.$ac_ext <<EOF
14052 #line 14053 "configure"
14053 #include "confdefs.h"
14054 /* System header to define __stub macros and hopefully few prototypes,
14055     which can conflict with char $ac_func(); below.  */
14056 #include <assert.h>
14057 /* Override any gcc2 internal prototype to avoid an error.  */
14058 /* We use char because int might match the return type of a gcc2
14059     builtin and then its argument prototype would still apply.  */
14060 char $ac_func();
14061
14062 int main() {
14063
14064 /* The GNU C library defines this for functions which it implements
14065     to always fail with ENOSYS.  Some functions are actually named
14066     something starting with __ and the normal name is an alias.  */
14067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14068 choke me
14069 #else
14070 $ac_func();
14071 #endif
14072
14073 ; return 0; }
14074 EOF
14075 if { (eval echo configure:14076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14076   rm -rf conftest*
14077   eval "ac_cv_func_$ac_func=yes"
14078 else
14079   echo "configure: failed program was:" >&5
14080   cat conftest.$ac_ext >&5
14081   rm -rf conftest*
14082   eval "ac_cv_func_$ac_func=no"
14083 fi
14084 rm -f conftest*
14085 fi
14086
14087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14088   echo "$ac_t""yes" 1>&6
14089     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14090   cat >> confdefs.h <<EOF
14091 #define $ac_tr_func 1
14092 EOF
14093  
14094 else
14095   echo "$ac_t""no" 1>&6
14096 fi
14097 done
14098     
14099   else
14100     
14101   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14102 echo "configure:14103: checking for _frexpf declaration" >&5
14103   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14104     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14105   echo $ac_n "(cached) $ac_c" 1>&6
14106 else
14107   
14108       
14109       ac_ext=C
14110 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14111 ac_cpp='$CXXCPP $CPPFLAGS'
14112 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14113 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14114 cross_compiling=$ac_cv_prog_cxx_cross
14115
14116       cat > conftest.$ac_ext <<EOF
14117 #line 14118 "configure"
14118 #include "confdefs.h"
14119 #include <math.h>
14120 int main() {
14121  _frexpf(0, 0);
14122 ; return 0; }
14123 EOF
14124 if { (eval echo configure:14125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14125   rm -rf conftest*
14126   glibcpp_cv_func__frexpf_use=yes
14127 else
14128   echo "configure: failed program was:" >&5
14129   cat conftest.$ac_ext >&5
14130   rm -rf conftest*
14131   glibcpp_cv_func__frexpf_use=no
14132 fi
14133 rm -f conftest*
14134       ac_ext=c
14135 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14136 ac_cpp='$CPP $CPPFLAGS'
14137 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14138 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14139 cross_compiling=$ac_cv_prog_cc_cross
14140
14141     
14142 fi
14143
14144   fi
14145   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14146
14147     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14148       for ac_func in _frexpf
14149 do
14150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14151 echo "configure:14152: checking for $ac_func" >&5
14152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14153   echo $ac_n "(cached) $ac_c" 1>&6
14154 else
14155   cat > conftest.$ac_ext <<EOF
14156 #line 14157 "configure"
14157 #include "confdefs.h"
14158 /* System header to define __stub macros and hopefully few prototypes,
14159     which can conflict with char $ac_func(); below.  */
14160 #include <assert.h>
14161 /* Override any gcc2 internal prototype to avoid an error.  */
14162 /* We use char because int might match the return type of a gcc2
14163     builtin and then its argument prototype would still apply.  */
14164 char $ac_func();
14165
14166 int main() {
14167
14168 /* The GNU C library defines this for functions which it implements
14169     to always fail with ENOSYS.  Some functions are actually named
14170     something starting with __ and the normal name is an alias.  */
14171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14172 choke me
14173 #else
14174 $ac_func();
14175 #endif
14176
14177 ; return 0; }
14178 EOF
14179 if { (eval echo configure:14180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14180   rm -rf conftest*
14181   eval "ac_cv_func_$ac_func=yes"
14182 else
14183   echo "configure: failed program was:" >&5
14184   cat conftest.$ac_ext >&5
14185   rm -rf conftest*
14186   eval "ac_cv_func_$ac_func=no"
14187 fi
14188 rm -f conftest*
14189 fi
14190
14191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14192   echo "$ac_t""yes" 1>&6
14193     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14194   cat >> confdefs.h <<EOF
14195 #define $ac_tr_func 1
14196 EOF
14197  
14198 else
14199   echo "$ac_t""no" 1>&6
14200 fi
14201 done
14202     
14203     fi
14204   fi
14205
14206   
14207   
14208   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14209 echo "configure:14210: checking for hypotf declaration" >&5
14210   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14211     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14212   echo $ac_n "(cached) $ac_c" 1>&6
14213 else
14214   
14215       
14216       ac_ext=C
14217 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14218 ac_cpp='$CXXCPP $CPPFLAGS'
14219 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14220 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14221 cross_compiling=$ac_cv_prog_cxx_cross
14222
14223       cat > conftest.$ac_ext <<EOF
14224 #line 14225 "configure"
14225 #include "confdefs.h"
14226 #include <math.h>
14227 int main() {
14228  hypotf(0, 0);
14229 ; return 0; }
14230 EOF
14231 if { (eval echo configure:14232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14232   rm -rf conftest*
14233   glibcpp_cv_func_hypotf_use=yes
14234 else
14235   echo "configure: failed program was:" >&5
14236   cat conftest.$ac_ext >&5
14237   rm -rf conftest*
14238   glibcpp_cv_func_hypotf_use=no
14239 fi
14240 rm -f conftest*
14241       ac_ext=c
14242 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14243 ac_cpp='$CPP $CPPFLAGS'
14244 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14245 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14246 cross_compiling=$ac_cv_prog_cc_cross
14247
14248     
14249 fi
14250
14251   fi
14252   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14253
14254   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14255     for ac_func in hypotf
14256 do
14257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14258 echo "configure:14259: checking for $ac_func" >&5
14259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14260   echo $ac_n "(cached) $ac_c" 1>&6
14261 else
14262   cat > conftest.$ac_ext <<EOF
14263 #line 14264 "configure"
14264 #include "confdefs.h"
14265 /* System header to define __stub macros and hopefully few prototypes,
14266     which can conflict with char $ac_func(); below.  */
14267 #include <assert.h>
14268 /* Override any gcc2 internal prototype to avoid an error.  */
14269 /* We use char because int might match the return type of a gcc2
14270     builtin and then its argument prototype would still apply.  */
14271 char $ac_func();
14272
14273 int main() {
14274
14275 /* The GNU C library defines this for functions which it implements
14276     to always fail with ENOSYS.  Some functions are actually named
14277     something starting with __ and the normal name is an alias.  */
14278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14279 choke me
14280 #else
14281 $ac_func();
14282 #endif
14283
14284 ; return 0; }
14285 EOF
14286 if { (eval echo configure:14287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14287   rm -rf conftest*
14288   eval "ac_cv_func_$ac_func=yes"
14289 else
14290   echo "configure: failed program was:" >&5
14291   cat conftest.$ac_ext >&5
14292   rm -rf conftest*
14293   eval "ac_cv_func_$ac_func=no"
14294 fi
14295 rm -f conftest*
14296 fi
14297
14298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14299   echo "$ac_t""yes" 1>&6
14300     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14301   cat >> confdefs.h <<EOF
14302 #define $ac_tr_func 1
14303 EOF
14304  
14305 else
14306   echo "$ac_t""no" 1>&6
14307 fi
14308 done
14309     
14310   else
14311     
14312   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14313 echo "configure:14314: checking for _hypotf declaration" >&5
14314   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14315     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14316   echo $ac_n "(cached) $ac_c" 1>&6
14317 else
14318   
14319       
14320       ac_ext=C
14321 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14322 ac_cpp='$CXXCPP $CPPFLAGS'
14323 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14324 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14325 cross_compiling=$ac_cv_prog_cxx_cross
14326
14327       cat > conftest.$ac_ext <<EOF
14328 #line 14329 "configure"
14329 #include "confdefs.h"
14330 #include <math.h>
14331 int main() {
14332  _hypotf(0, 0);
14333 ; return 0; }
14334 EOF
14335 if { (eval echo configure:14336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14336   rm -rf conftest*
14337   glibcpp_cv_func__hypotf_use=yes
14338 else
14339   echo "configure: failed program was:" >&5
14340   cat conftest.$ac_ext >&5
14341   rm -rf conftest*
14342   glibcpp_cv_func__hypotf_use=no
14343 fi
14344 rm -f conftest*
14345       ac_ext=c
14346 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14347 ac_cpp='$CPP $CPPFLAGS'
14348 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14349 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14350 cross_compiling=$ac_cv_prog_cc_cross
14351
14352     
14353 fi
14354
14355   fi
14356   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14357
14358     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14359       for ac_func in _hypotf
14360 do
14361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14362 echo "configure:14363: checking for $ac_func" >&5
14363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14364   echo $ac_n "(cached) $ac_c" 1>&6
14365 else
14366   cat > conftest.$ac_ext <<EOF
14367 #line 14368 "configure"
14368 #include "confdefs.h"
14369 /* System header to define __stub macros and hopefully few prototypes,
14370     which can conflict with char $ac_func(); below.  */
14371 #include <assert.h>
14372 /* Override any gcc2 internal prototype to avoid an error.  */
14373 /* We use char because int might match the return type of a gcc2
14374     builtin and then its argument prototype would still apply.  */
14375 char $ac_func();
14376
14377 int main() {
14378
14379 /* The GNU C library defines this for functions which it implements
14380     to always fail with ENOSYS.  Some functions are actually named
14381     something starting with __ and the normal name is an alias.  */
14382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14383 choke me
14384 #else
14385 $ac_func();
14386 #endif
14387
14388 ; return 0; }
14389 EOF
14390 if { (eval echo configure:14391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14391   rm -rf conftest*
14392   eval "ac_cv_func_$ac_func=yes"
14393 else
14394   echo "configure: failed program was:" >&5
14395   cat conftest.$ac_ext >&5
14396   rm -rf conftest*
14397   eval "ac_cv_func_$ac_func=no"
14398 fi
14399 rm -f conftest*
14400 fi
14401
14402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14403   echo "$ac_t""yes" 1>&6
14404     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14405   cat >> confdefs.h <<EOF
14406 #define $ac_tr_func 1
14407 EOF
14408  
14409 else
14410   echo "$ac_t""no" 1>&6
14411 fi
14412 done
14413     
14414     fi
14415   fi
14416
14417   
14418   
14419   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14420 echo "configure:14421: checking for ldexpf declaration" >&5
14421   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14422     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14423   echo $ac_n "(cached) $ac_c" 1>&6
14424 else
14425   
14426       
14427       ac_ext=C
14428 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14429 ac_cpp='$CXXCPP $CPPFLAGS'
14430 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14431 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14432 cross_compiling=$ac_cv_prog_cxx_cross
14433
14434       cat > conftest.$ac_ext <<EOF
14435 #line 14436 "configure"
14436 #include "confdefs.h"
14437 #include <math.h>
14438 int main() {
14439  ldexpf(0, 0);
14440 ; return 0; }
14441 EOF
14442 if { (eval echo configure:14443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14443   rm -rf conftest*
14444   glibcpp_cv_func_ldexpf_use=yes
14445 else
14446   echo "configure: failed program was:" >&5
14447   cat conftest.$ac_ext >&5
14448   rm -rf conftest*
14449   glibcpp_cv_func_ldexpf_use=no
14450 fi
14451 rm -f conftest*
14452       ac_ext=c
14453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14454 ac_cpp='$CPP $CPPFLAGS'
14455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14457 cross_compiling=$ac_cv_prog_cc_cross
14458
14459     
14460 fi
14461
14462   fi
14463   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14464
14465   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14466     for ac_func in ldexpf
14467 do
14468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14469 echo "configure:14470: checking for $ac_func" >&5
14470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14471   echo $ac_n "(cached) $ac_c" 1>&6
14472 else
14473   cat > conftest.$ac_ext <<EOF
14474 #line 14475 "configure"
14475 #include "confdefs.h"
14476 /* System header to define __stub macros and hopefully few prototypes,
14477     which can conflict with char $ac_func(); below.  */
14478 #include <assert.h>
14479 /* Override any gcc2 internal prototype to avoid an error.  */
14480 /* We use char because int might match the return type of a gcc2
14481     builtin and then its argument prototype would still apply.  */
14482 char $ac_func();
14483
14484 int main() {
14485
14486 /* The GNU C library defines this for functions which it implements
14487     to always fail with ENOSYS.  Some functions are actually named
14488     something starting with __ and the normal name is an alias.  */
14489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14490 choke me
14491 #else
14492 $ac_func();
14493 #endif
14494
14495 ; return 0; }
14496 EOF
14497 if { (eval echo configure:14498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14498   rm -rf conftest*
14499   eval "ac_cv_func_$ac_func=yes"
14500 else
14501   echo "configure: failed program was:" >&5
14502   cat conftest.$ac_ext >&5
14503   rm -rf conftest*
14504   eval "ac_cv_func_$ac_func=no"
14505 fi
14506 rm -f conftest*
14507 fi
14508
14509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14510   echo "$ac_t""yes" 1>&6
14511     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14512   cat >> confdefs.h <<EOF
14513 #define $ac_tr_func 1
14514 EOF
14515  
14516 else
14517   echo "$ac_t""no" 1>&6
14518 fi
14519 done
14520     
14521   else
14522     
14523   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14524 echo "configure:14525: checking for _ldexpf declaration" >&5
14525   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14526     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14527   echo $ac_n "(cached) $ac_c" 1>&6
14528 else
14529   
14530       
14531       ac_ext=C
14532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14533 ac_cpp='$CXXCPP $CPPFLAGS'
14534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14536 cross_compiling=$ac_cv_prog_cxx_cross
14537
14538       cat > conftest.$ac_ext <<EOF
14539 #line 14540 "configure"
14540 #include "confdefs.h"
14541 #include <math.h>
14542 int main() {
14543  _ldexpf(0, 0);
14544 ; return 0; }
14545 EOF
14546 if { (eval echo configure:14547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14547   rm -rf conftest*
14548   glibcpp_cv_func__ldexpf_use=yes
14549 else
14550   echo "configure: failed program was:" >&5
14551   cat conftest.$ac_ext >&5
14552   rm -rf conftest*
14553   glibcpp_cv_func__ldexpf_use=no
14554 fi
14555 rm -f conftest*
14556       ac_ext=c
14557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14558 ac_cpp='$CPP $CPPFLAGS'
14559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14561 cross_compiling=$ac_cv_prog_cc_cross
14562
14563     
14564 fi
14565
14566   fi
14567   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14568
14569     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14570       for ac_func in _ldexpf
14571 do
14572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14573 echo "configure:14574: checking for $ac_func" >&5
14574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14575   echo $ac_n "(cached) $ac_c" 1>&6
14576 else
14577   cat > conftest.$ac_ext <<EOF
14578 #line 14579 "configure"
14579 #include "confdefs.h"
14580 /* System header to define __stub macros and hopefully few prototypes,
14581     which can conflict with char $ac_func(); below.  */
14582 #include <assert.h>
14583 /* Override any gcc2 internal prototype to avoid an error.  */
14584 /* We use char because int might match the return type of a gcc2
14585     builtin and then its argument prototype would still apply.  */
14586 char $ac_func();
14587
14588 int main() {
14589
14590 /* The GNU C library defines this for functions which it implements
14591     to always fail with ENOSYS.  Some functions are actually named
14592     something starting with __ and the normal name is an alias.  */
14593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14594 choke me
14595 #else
14596 $ac_func();
14597 #endif
14598
14599 ; return 0; }
14600 EOF
14601 if { (eval echo configure:14602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14602   rm -rf conftest*
14603   eval "ac_cv_func_$ac_func=yes"
14604 else
14605   echo "configure: failed program was:" >&5
14606   cat conftest.$ac_ext >&5
14607   rm -rf conftest*
14608   eval "ac_cv_func_$ac_func=no"
14609 fi
14610 rm -f conftest*
14611 fi
14612
14613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14614   echo "$ac_t""yes" 1>&6
14615     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14616   cat >> confdefs.h <<EOF
14617 #define $ac_tr_func 1
14618 EOF
14619  
14620 else
14621   echo "$ac_t""no" 1>&6
14622 fi
14623 done
14624     
14625     fi
14626   fi
14627
14628   
14629   
14630   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14631 echo "configure:14632: checking for logf declaration" >&5
14632   if test x${glibcpp_cv_func_logf_use+set} != xset; then
14633     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14634   echo $ac_n "(cached) $ac_c" 1>&6
14635 else
14636   
14637       
14638       ac_ext=C
14639 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14640 ac_cpp='$CXXCPP $CPPFLAGS'
14641 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14642 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14643 cross_compiling=$ac_cv_prog_cxx_cross
14644
14645       cat > conftest.$ac_ext <<EOF
14646 #line 14647 "configure"
14647 #include "confdefs.h"
14648 #include <math.h>
14649                       #ifdef HAVE_IEEEFP_H
14650                       #include <ieeefp.h>
14651                       #endif
14652                      
14653 int main() {
14654  logf(0);
14655 ; return 0; }
14656 EOF
14657 if { (eval echo configure:14658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14658   rm -rf conftest*
14659   glibcpp_cv_func_logf_use=yes
14660 else
14661   echo "configure: failed program was:" >&5
14662   cat conftest.$ac_ext >&5
14663   rm -rf conftest*
14664   glibcpp_cv_func_logf_use=no
14665 fi
14666 rm -f conftest*
14667       ac_ext=c
14668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14669 ac_cpp='$CPP $CPPFLAGS'
14670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14672 cross_compiling=$ac_cv_prog_cc_cross
14673
14674     
14675 fi
14676
14677   fi
14678   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14679
14680   if test x$glibcpp_cv_func_logf_use = x"yes"; then
14681     for ac_func in logf
14682 do
14683 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14684 echo "configure:14685: checking for $ac_func" >&5
14685 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14686   echo $ac_n "(cached) $ac_c" 1>&6
14687 else
14688   cat > conftest.$ac_ext <<EOF
14689 #line 14690 "configure"
14690 #include "confdefs.h"
14691 /* System header to define __stub macros and hopefully few prototypes,
14692     which can conflict with char $ac_func(); below.  */
14693 #include <assert.h>
14694 /* Override any gcc2 internal prototype to avoid an error.  */
14695 /* We use char because int might match the return type of a gcc2
14696     builtin and then its argument prototype would still apply.  */
14697 char $ac_func();
14698
14699 int main() {
14700
14701 /* The GNU C library defines this for functions which it implements
14702     to always fail with ENOSYS.  Some functions are actually named
14703     something starting with __ and the normal name is an alias.  */
14704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14705 choke me
14706 #else
14707 $ac_func();
14708 #endif
14709
14710 ; return 0; }
14711 EOF
14712 if { (eval echo configure:14713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14713   rm -rf conftest*
14714   eval "ac_cv_func_$ac_func=yes"
14715 else
14716   echo "configure: failed program was:" >&5
14717   cat conftest.$ac_ext >&5
14718   rm -rf conftest*
14719   eval "ac_cv_func_$ac_func=no"
14720 fi
14721 rm -f conftest*
14722 fi
14723
14724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14725   echo "$ac_t""yes" 1>&6
14726     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14727   cat >> confdefs.h <<EOF
14728 #define $ac_tr_func 1
14729 EOF
14730  
14731 else
14732   echo "$ac_t""no" 1>&6
14733 fi
14734 done
14735     
14736   else
14737     
14738   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14739 echo "configure:14740: checking for _logf declaration" >&5
14740   if test x${glibcpp_cv_func__logf_use+set} != xset; then
14741     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14742   echo $ac_n "(cached) $ac_c" 1>&6
14743 else
14744   
14745       
14746       ac_ext=C
14747 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14748 ac_cpp='$CXXCPP $CPPFLAGS'
14749 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14750 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14751 cross_compiling=$ac_cv_prog_cxx_cross
14752
14753       cat > conftest.$ac_ext <<EOF
14754 #line 14755 "configure"
14755 #include "confdefs.h"
14756 #include <math.h>
14757                       #ifdef HAVE_IEEEFP_H
14758                       #include <ieeefp.h>
14759                       #endif
14760                      
14761 int main() {
14762  _logf(0);
14763 ; return 0; }
14764 EOF
14765 if { (eval echo configure:14766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14766   rm -rf conftest*
14767   glibcpp_cv_func__logf_use=yes
14768 else
14769   echo "configure: failed program was:" >&5
14770   cat conftest.$ac_ext >&5
14771   rm -rf conftest*
14772   glibcpp_cv_func__logf_use=no
14773 fi
14774 rm -f conftest*
14775       ac_ext=c
14776 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14777 ac_cpp='$CPP $CPPFLAGS'
14778 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14779 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14780 cross_compiling=$ac_cv_prog_cc_cross
14781
14782     
14783 fi
14784
14785   fi
14786   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14787
14788     if test x$glibcpp_cv_func__logf_use = x"yes"; then
14789       for ac_func in _logf
14790 do
14791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14792 echo "configure:14793: checking for $ac_func" >&5
14793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14794   echo $ac_n "(cached) $ac_c" 1>&6
14795 else
14796   cat > conftest.$ac_ext <<EOF
14797 #line 14798 "configure"
14798 #include "confdefs.h"
14799 /* System header to define __stub macros and hopefully few prototypes,
14800     which can conflict with char $ac_func(); below.  */
14801 #include <assert.h>
14802 /* Override any gcc2 internal prototype to avoid an error.  */
14803 /* We use char because int might match the return type of a gcc2
14804     builtin and then its argument prototype would still apply.  */
14805 char $ac_func();
14806
14807 int main() {
14808
14809 /* The GNU C library defines this for functions which it implements
14810     to always fail with ENOSYS.  Some functions are actually named
14811     something starting with __ and the normal name is an alias.  */
14812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14813 choke me
14814 #else
14815 $ac_func();
14816 #endif
14817
14818 ; return 0; }
14819 EOF
14820 if { (eval echo configure:14821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14821   rm -rf conftest*
14822   eval "ac_cv_func_$ac_func=yes"
14823 else
14824   echo "configure: failed program was:" >&5
14825   cat conftest.$ac_ext >&5
14826   rm -rf conftest*
14827   eval "ac_cv_func_$ac_func=no"
14828 fi
14829 rm -f conftest*
14830 fi
14831
14832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14833   echo "$ac_t""yes" 1>&6
14834     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14835   cat >> confdefs.h <<EOF
14836 #define $ac_tr_func 1
14837 EOF
14838  
14839 else
14840   echo "$ac_t""no" 1>&6
14841 fi
14842 done
14843     
14844     fi
14845   fi
14846
14847   
14848   
14849   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14850 echo "configure:14851: checking for log10f declaration" >&5
14851   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14852     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14853   echo $ac_n "(cached) $ac_c" 1>&6
14854 else
14855   
14856       
14857       ac_ext=C
14858 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14859 ac_cpp='$CXXCPP $CPPFLAGS'
14860 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14861 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14862 cross_compiling=$ac_cv_prog_cxx_cross
14863
14864       cat > conftest.$ac_ext <<EOF
14865 #line 14866 "configure"
14866 #include "confdefs.h"
14867 #include <math.h>
14868                       #ifdef HAVE_IEEEFP_H
14869                       #include <ieeefp.h>
14870                       #endif
14871                      
14872 int main() {
14873  log10f(0);
14874 ; return 0; }
14875 EOF
14876 if { (eval echo configure:14877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14877   rm -rf conftest*
14878   glibcpp_cv_func_log10f_use=yes
14879 else
14880   echo "configure: failed program was:" >&5
14881   cat conftest.$ac_ext >&5
14882   rm -rf conftest*
14883   glibcpp_cv_func_log10f_use=no
14884 fi
14885 rm -f conftest*
14886       ac_ext=c
14887 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14888 ac_cpp='$CPP $CPPFLAGS'
14889 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14890 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14891 cross_compiling=$ac_cv_prog_cc_cross
14892
14893     
14894 fi
14895
14896   fi
14897   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14898
14899   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14900     for ac_func in log10f
14901 do
14902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14903 echo "configure:14904: checking for $ac_func" >&5
14904 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14905   echo $ac_n "(cached) $ac_c" 1>&6
14906 else
14907   cat > conftest.$ac_ext <<EOF
14908 #line 14909 "configure"
14909 #include "confdefs.h"
14910 /* System header to define __stub macros and hopefully few prototypes,
14911     which can conflict with char $ac_func(); below.  */
14912 #include <assert.h>
14913 /* Override any gcc2 internal prototype to avoid an error.  */
14914 /* We use char because int might match the return type of a gcc2
14915     builtin and then its argument prototype would still apply.  */
14916 char $ac_func();
14917
14918 int main() {
14919
14920 /* The GNU C library defines this for functions which it implements
14921     to always fail with ENOSYS.  Some functions are actually named
14922     something starting with __ and the normal name is an alias.  */
14923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14924 choke me
14925 #else
14926 $ac_func();
14927 #endif
14928
14929 ; return 0; }
14930 EOF
14931 if { (eval echo configure:14932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14932   rm -rf conftest*
14933   eval "ac_cv_func_$ac_func=yes"
14934 else
14935   echo "configure: failed program was:" >&5
14936   cat conftest.$ac_ext >&5
14937   rm -rf conftest*
14938   eval "ac_cv_func_$ac_func=no"
14939 fi
14940 rm -f conftest*
14941 fi
14942
14943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14944   echo "$ac_t""yes" 1>&6
14945     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14946   cat >> confdefs.h <<EOF
14947 #define $ac_tr_func 1
14948 EOF
14949  
14950 else
14951   echo "$ac_t""no" 1>&6
14952 fi
14953 done
14954     
14955   else
14956     
14957   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
14958 echo "configure:14959: checking for _log10f declaration" >&5
14959   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
14960     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
14961   echo $ac_n "(cached) $ac_c" 1>&6
14962 else
14963   
14964       
14965       ac_ext=C
14966 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14967 ac_cpp='$CXXCPP $CPPFLAGS'
14968 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14969 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14970 cross_compiling=$ac_cv_prog_cxx_cross
14971
14972       cat > conftest.$ac_ext <<EOF
14973 #line 14974 "configure"
14974 #include "confdefs.h"
14975 #include <math.h>
14976                       #ifdef HAVE_IEEEFP_H
14977                       #include <ieeefp.h>
14978                       #endif
14979                      
14980 int main() {
14981  _log10f(0);
14982 ; return 0; }
14983 EOF
14984 if { (eval echo configure:14985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14985   rm -rf conftest*
14986   glibcpp_cv_func__log10f_use=yes
14987 else
14988   echo "configure: failed program was:" >&5
14989   cat conftest.$ac_ext >&5
14990   rm -rf conftest*
14991   glibcpp_cv_func__log10f_use=no
14992 fi
14993 rm -f conftest*
14994       ac_ext=c
14995 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14996 ac_cpp='$CPP $CPPFLAGS'
14997 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14998 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14999 cross_compiling=$ac_cv_prog_cc_cross
15000
15001     
15002 fi
15003
15004   fi
15005   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
15006
15007     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
15008       for ac_func in _log10f
15009 do
15010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15011 echo "configure:15012: checking for $ac_func" >&5
15012 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15013   echo $ac_n "(cached) $ac_c" 1>&6
15014 else
15015   cat > conftest.$ac_ext <<EOF
15016 #line 15017 "configure"
15017 #include "confdefs.h"
15018 /* System header to define __stub macros and hopefully few prototypes,
15019     which can conflict with char $ac_func(); below.  */
15020 #include <assert.h>
15021 /* Override any gcc2 internal prototype to avoid an error.  */
15022 /* We use char because int might match the return type of a gcc2
15023     builtin and then its argument prototype would still apply.  */
15024 char $ac_func();
15025
15026 int main() {
15027
15028 /* The GNU C library defines this for functions which it implements
15029     to always fail with ENOSYS.  Some functions are actually named
15030     something starting with __ and the normal name is an alias.  */
15031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15032 choke me
15033 #else
15034 $ac_func();
15035 #endif
15036
15037 ; return 0; }
15038 EOF
15039 if { (eval echo configure:15040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15040   rm -rf conftest*
15041   eval "ac_cv_func_$ac_func=yes"
15042 else
15043   echo "configure: failed program was:" >&5
15044   cat conftest.$ac_ext >&5
15045   rm -rf conftest*
15046   eval "ac_cv_func_$ac_func=no"
15047 fi
15048 rm -f conftest*
15049 fi
15050
15051 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15052   echo "$ac_t""yes" 1>&6
15053     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15054   cat >> confdefs.h <<EOF
15055 #define $ac_tr_func 1
15056 EOF
15057  
15058 else
15059   echo "$ac_t""no" 1>&6
15060 fi
15061 done
15062     
15063     fi
15064   fi
15065
15066   
15067   
15068   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15069 echo "configure:15070: checking for modff declaration" >&5
15070   if test x${glibcpp_cv_func_modff_use+set} != xset; then
15071     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15072   echo $ac_n "(cached) $ac_c" 1>&6
15073 else
15074   
15075       
15076       ac_ext=C
15077 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15078 ac_cpp='$CXXCPP $CPPFLAGS'
15079 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15080 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15081 cross_compiling=$ac_cv_prog_cxx_cross
15082
15083       cat > conftest.$ac_ext <<EOF
15084 #line 15085 "configure"
15085 #include "confdefs.h"
15086 #include <math.h>
15087 int main() {
15088  modff(0, 0);
15089 ; return 0; }
15090 EOF
15091 if { (eval echo configure:15092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15092   rm -rf conftest*
15093   glibcpp_cv_func_modff_use=yes
15094 else
15095   echo "configure: failed program was:" >&5
15096   cat conftest.$ac_ext >&5
15097   rm -rf conftest*
15098   glibcpp_cv_func_modff_use=no
15099 fi
15100 rm -f conftest*
15101       ac_ext=c
15102 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15103 ac_cpp='$CPP $CPPFLAGS'
15104 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15105 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15106 cross_compiling=$ac_cv_prog_cc_cross
15107
15108     
15109 fi
15110
15111   fi
15112   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15113
15114   if test x$glibcpp_cv_func_modff_use = x"yes"; then
15115     for ac_func in modff
15116 do
15117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15118 echo "configure:15119: checking for $ac_func" >&5
15119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15120   echo $ac_n "(cached) $ac_c" 1>&6
15121 else
15122   cat > conftest.$ac_ext <<EOF
15123 #line 15124 "configure"
15124 #include "confdefs.h"
15125 /* System header to define __stub macros and hopefully few prototypes,
15126     which can conflict with char $ac_func(); below.  */
15127 #include <assert.h>
15128 /* Override any gcc2 internal prototype to avoid an error.  */
15129 /* We use char because int might match the return type of a gcc2
15130     builtin and then its argument prototype would still apply.  */
15131 char $ac_func();
15132
15133 int main() {
15134
15135 /* The GNU C library defines this for functions which it implements
15136     to always fail with ENOSYS.  Some functions are actually named
15137     something starting with __ and the normal name is an alias.  */
15138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15139 choke me
15140 #else
15141 $ac_func();
15142 #endif
15143
15144 ; return 0; }
15145 EOF
15146 if { (eval echo configure:15147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15147   rm -rf conftest*
15148   eval "ac_cv_func_$ac_func=yes"
15149 else
15150   echo "configure: failed program was:" >&5
15151   cat conftest.$ac_ext >&5
15152   rm -rf conftest*
15153   eval "ac_cv_func_$ac_func=no"
15154 fi
15155 rm -f conftest*
15156 fi
15157
15158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15159   echo "$ac_t""yes" 1>&6
15160     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15161   cat >> confdefs.h <<EOF
15162 #define $ac_tr_func 1
15163 EOF
15164  
15165 else
15166   echo "$ac_t""no" 1>&6
15167 fi
15168 done
15169     
15170   else
15171     
15172   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15173 echo "configure:15174: checking for _modff declaration" >&5
15174   if test x${glibcpp_cv_func__modff_use+set} != xset; then
15175     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15176   echo $ac_n "(cached) $ac_c" 1>&6
15177 else
15178   
15179       
15180       ac_ext=C
15181 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15182 ac_cpp='$CXXCPP $CPPFLAGS'
15183 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15184 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15185 cross_compiling=$ac_cv_prog_cxx_cross
15186
15187       cat > conftest.$ac_ext <<EOF
15188 #line 15189 "configure"
15189 #include "confdefs.h"
15190 #include <math.h>
15191 int main() {
15192  _modff(0, 0);
15193 ; return 0; }
15194 EOF
15195 if { (eval echo configure:15196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15196   rm -rf conftest*
15197   glibcpp_cv_func__modff_use=yes
15198 else
15199   echo "configure: failed program was:" >&5
15200   cat conftest.$ac_ext >&5
15201   rm -rf conftest*
15202   glibcpp_cv_func__modff_use=no
15203 fi
15204 rm -f conftest*
15205       ac_ext=c
15206 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15207 ac_cpp='$CPP $CPPFLAGS'
15208 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15209 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15210 cross_compiling=$ac_cv_prog_cc_cross
15211
15212     
15213 fi
15214
15215   fi
15216   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15217
15218     if test x$glibcpp_cv_func__modff_use = x"yes"; then
15219       for ac_func in _modff
15220 do
15221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15222 echo "configure:15223: checking for $ac_func" >&5
15223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15224   echo $ac_n "(cached) $ac_c" 1>&6
15225 else
15226   cat > conftest.$ac_ext <<EOF
15227 #line 15228 "configure"
15228 #include "confdefs.h"
15229 /* System header to define __stub macros and hopefully few prototypes,
15230     which can conflict with char $ac_func(); below.  */
15231 #include <assert.h>
15232 /* Override any gcc2 internal prototype to avoid an error.  */
15233 /* We use char because int might match the return type of a gcc2
15234     builtin and then its argument prototype would still apply.  */
15235 char $ac_func();
15236
15237 int main() {
15238
15239 /* The GNU C library defines this for functions which it implements
15240     to always fail with ENOSYS.  Some functions are actually named
15241     something starting with __ and the normal name is an alias.  */
15242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15243 choke me
15244 #else
15245 $ac_func();
15246 #endif
15247
15248 ; return 0; }
15249 EOF
15250 if { (eval echo configure:15251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15251   rm -rf conftest*
15252   eval "ac_cv_func_$ac_func=yes"
15253 else
15254   echo "configure: failed program was:" >&5
15255   cat conftest.$ac_ext >&5
15256   rm -rf conftest*
15257   eval "ac_cv_func_$ac_func=no"
15258 fi
15259 rm -f conftest*
15260 fi
15261
15262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15263   echo "$ac_t""yes" 1>&6
15264     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15265   cat >> confdefs.h <<EOF
15266 #define $ac_tr_func 1
15267 EOF
15268  
15269 else
15270   echo "$ac_t""no" 1>&6
15271 fi
15272 done
15273     
15274     fi
15275   fi
15276
15277   
15278   
15279   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15280 echo "configure:15281: checking for powf declaration" >&5
15281   if test x${glibcpp_cv_func_powf_use+set} != xset; then
15282     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15283   echo $ac_n "(cached) $ac_c" 1>&6
15284 else
15285   
15286       
15287       ac_ext=C
15288 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15289 ac_cpp='$CXXCPP $CPPFLAGS'
15290 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15291 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15292 cross_compiling=$ac_cv_prog_cxx_cross
15293
15294       cat > conftest.$ac_ext <<EOF
15295 #line 15296 "configure"
15296 #include "confdefs.h"
15297 #include <math.h>
15298 int main() {
15299  powf(0, 0);
15300 ; return 0; }
15301 EOF
15302 if { (eval echo configure:15303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15303   rm -rf conftest*
15304   glibcpp_cv_func_powf_use=yes
15305 else
15306   echo "configure: failed program was:" >&5
15307   cat conftest.$ac_ext >&5
15308   rm -rf conftest*
15309   glibcpp_cv_func_powf_use=no
15310 fi
15311 rm -f conftest*
15312       ac_ext=c
15313 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15314 ac_cpp='$CPP $CPPFLAGS'
15315 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15316 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15317 cross_compiling=$ac_cv_prog_cc_cross
15318
15319     
15320 fi
15321
15322   fi
15323   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15324
15325   if test x$glibcpp_cv_func_powf_use = x"yes"; then
15326     for ac_func in powf
15327 do
15328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15329 echo "configure:15330: checking for $ac_func" >&5
15330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15331   echo $ac_n "(cached) $ac_c" 1>&6
15332 else
15333   cat > conftest.$ac_ext <<EOF
15334 #line 15335 "configure"
15335 #include "confdefs.h"
15336 /* System header to define __stub macros and hopefully few prototypes,
15337     which can conflict with char $ac_func(); below.  */
15338 #include <assert.h>
15339 /* Override any gcc2 internal prototype to avoid an error.  */
15340 /* We use char because int might match the return type of a gcc2
15341     builtin and then its argument prototype would still apply.  */
15342 char $ac_func();
15343
15344 int main() {
15345
15346 /* The GNU C library defines this for functions which it implements
15347     to always fail with ENOSYS.  Some functions are actually named
15348     something starting with __ and the normal name is an alias.  */
15349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15350 choke me
15351 #else
15352 $ac_func();
15353 #endif
15354
15355 ; return 0; }
15356 EOF
15357 if { (eval echo configure:15358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15358   rm -rf conftest*
15359   eval "ac_cv_func_$ac_func=yes"
15360 else
15361   echo "configure: failed program was:" >&5
15362   cat conftest.$ac_ext >&5
15363   rm -rf conftest*
15364   eval "ac_cv_func_$ac_func=no"
15365 fi
15366 rm -f conftest*
15367 fi
15368
15369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15370   echo "$ac_t""yes" 1>&6
15371     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15372   cat >> confdefs.h <<EOF
15373 #define $ac_tr_func 1
15374 EOF
15375  
15376 else
15377   echo "$ac_t""no" 1>&6
15378 fi
15379 done
15380     
15381   else
15382     
15383   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15384 echo "configure:15385: checking for _powf declaration" >&5
15385   if test x${glibcpp_cv_func__powf_use+set} != xset; then
15386     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15387   echo $ac_n "(cached) $ac_c" 1>&6
15388 else
15389   
15390       
15391       ac_ext=C
15392 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15393 ac_cpp='$CXXCPP $CPPFLAGS'
15394 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15395 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15396 cross_compiling=$ac_cv_prog_cxx_cross
15397
15398       cat > conftest.$ac_ext <<EOF
15399 #line 15400 "configure"
15400 #include "confdefs.h"
15401 #include <math.h>
15402 int main() {
15403  _powf(0, 0);
15404 ; return 0; }
15405 EOF
15406 if { (eval echo configure:15407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15407   rm -rf conftest*
15408   glibcpp_cv_func__powf_use=yes
15409 else
15410   echo "configure: failed program was:" >&5
15411   cat conftest.$ac_ext >&5
15412   rm -rf conftest*
15413   glibcpp_cv_func__powf_use=no
15414 fi
15415 rm -f conftest*
15416       ac_ext=c
15417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15418 ac_cpp='$CPP $CPPFLAGS'
15419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15421 cross_compiling=$ac_cv_prog_cc_cross
15422
15423     
15424 fi
15425
15426   fi
15427   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15428
15429     if test x$glibcpp_cv_func__powf_use = x"yes"; then
15430       for ac_func in _powf
15431 do
15432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15433 echo "configure:15434: checking for $ac_func" >&5
15434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15435   echo $ac_n "(cached) $ac_c" 1>&6
15436 else
15437   cat > conftest.$ac_ext <<EOF
15438 #line 15439 "configure"
15439 #include "confdefs.h"
15440 /* System header to define __stub macros and hopefully few prototypes,
15441     which can conflict with char $ac_func(); below.  */
15442 #include <assert.h>
15443 /* Override any gcc2 internal prototype to avoid an error.  */
15444 /* We use char because int might match the return type of a gcc2
15445     builtin and then its argument prototype would still apply.  */
15446 char $ac_func();
15447
15448 int main() {
15449
15450 /* The GNU C library defines this for functions which it implements
15451     to always fail with ENOSYS.  Some functions are actually named
15452     something starting with __ and the normal name is an alias.  */
15453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15454 choke me
15455 #else
15456 $ac_func();
15457 #endif
15458
15459 ; return 0; }
15460 EOF
15461 if { (eval echo configure:15462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15462   rm -rf conftest*
15463   eval "ac_cv_func_$ac_func=yes"
15464 else
15465   echo "configure: failed program was:" >&5
15466   cat conftest.$ac_ext >&5
15467   rm -rf conftest*
15468   eval "ac_cv_func_$ac_func=no"
15469 fi
15470 rm -f conftest*
15471 fi
15472
15473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15474   echo "$ac_t""yes" 1>&6
15475     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15476   cat >> confdefs.h <<EOF
15477 #define $ac_tr_func 1
15478 EOF
15479  
15480 else
15481   echo "$ac_t""no" 1>&6
15482 fi
15483 done
15484     
15485     fi
15486   fi
15487
15488   
15489   
15490   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15491 echo "configure:15492: checking for sqrtf declaration" >&5
15492   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15493     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15494   echo $ac_n "(cached) $ac_c" 1>&6
15495 else
15496   
15497       
15498       ac_ext=C
15499 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15500 ac_cpp='$CXXCPP $CPPFLAGS'
15501 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15502 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15503 cross_compiling=$ac_cv_prog_cxx_cross
15504
15505       cat > conftest.$ac_ext <<EOF
15506 #line 15507 "configure"
15507 #include "confdefs.h"
15508 #include <math.h>
15509                       #ifdef HAVE_IEEEFP_H
15510                       #include <ieeefp.h>
15511                       #endif
15512                      
15513 int main() {
15514  sqrtf(0);
15515 ; return 0; }
15516 EOF
15517 if { (eval echo configure:15518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15518   rm -rf conftest*
15519   glibcpp_cv_func_sqrtf_use=yes
15520 else
15521   echo "configure: failed program was:" >&5
15522   cat conftest.$ac_ext >&5
15523   rm -rf conftest*
15524   glibcpp_cv_func_sqrtf_use=no
15525 fi
15526 rm -f conftest*
15527       ac_ext=c
15528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15529 ac_cpp='$CPP $CPPFLAGS'
15530 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15531 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15532 cross_compiling=$ac_cv_prog_cc_cross
15533
15534     
15535 fi
15536
15537   fi
15538   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15539
15540   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15541     for ac_func in sqrtf
15542 do
15543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15544 echo "configure:15545: checking for $ac_func" >&5
15545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15546   echo $ac_n "(cached) $ac_c" 1>&6
15547 else
15548   cat > conftest.$ac_ext <<EOF
15549 #line 15550 "configure"
15550 #include "confdefs.h"
15551 /* System header to define __stub macros and hopefully few prototypes,
15552     which can conflict with char $ac_func(); below.  */
15553 #include <assert.h>
15554 /* Override any gcc2 internal prototype to avoid an error.  */
15555 /* We use char because int might match the return type of a gcc2
15556     builtin and then its argument prototype would still apply.  */
15557 char $ac_func();
15558
15559 int main() {
15560
15561 /* The GNU C library defines this for functions which it implements
15562     to always fail with ENOSYS.  Some functions are actually named
15563     something starting with __ and the normal name is an alias.  */
15564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15565 choke me
15566 #else
15567 $ac_func();
15568 #endif
15569
15570 ; return 0; }
15571 EOF
15572 if { (eval echo configure:15573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15573   rm -rf conftest*
15574   eval "ac_cv_func_$ac_func=yes"
15575 else
15576   echo "configure: failed program was:" >&5
15577   cat conftest.$ac_ext >&5
15578   rm -rf conftest*
15579   eval "ac_cv_func_$ac_func=no"
15580 fi
15581 rm -f conftest*
15582 fi
15583
15584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15585   echo "$ac_t""yes" 1>&6
15586     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15587   cat >> confdefs.h <<EOF
15588 #define $ac_tr_func 1
15589 EOF
15590  
15591 else
15592   echo "$ac_t""no" 1>&6
15593 fi
15594 done
15595     
15596   else
15597     
15598   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15599 echo "configure:15600: checking for _sqrtf declaration" >&5
15600   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15601     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15602   echo $ac_n "(cached) $ac_c" 1>&6
15603 else
15604   
15605       
15606       ac_ext=C
15607 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15608 ac_cpp='$CXXCPP $CPPFLAGS'
15609 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15610 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15611 cross_compiling=$ac_cv_prog_cxx_cross
15612
15613       cat > conftest.$ac_ext <<EOF
15614 #line 15615 "configure"
15615 #include "confdefs.h"
15616 #include <math.h>
15617                       #ifdef HAVE_IEEEFP_H
15618                       #include <ieeefp.h>
15619                       #endif
15620                      
15621 int main() {
15622  _sqrtf(0);
15623 ; return 0; }
15624 EOF
15625 if { (eval echo configure:15626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15626   rm -rf conftest*
15627   glibcpp_cv_func__sqrtf_use=yes
15628 else
15629   echo "configure: failed program was:" >&5
15630   cat conftest.$ac_ext >&5
15631   rm -rf conftest*
15632   glibcpp_cv_func__sqrtf_use=no
15633 fi
15634 rm -f conftest*
15635       ac_ext=c
15636 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15637 ac_cpp='$CPP $CPPFLAGS'
15638 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15639 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15640 cross_compiling=$ac_cv_prog_cc_cross
15641
15642     
15643 fi
15644
15645   fi
15646   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15647
15648     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15649       for ac_func in _sqrtf
15650 do
15651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15652 echo "configure:15653: checking for $ac_func" >&5
15653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15654   echo $ac_n "(cached) $ac_c" 1>&6
15655 else
15656   cat > conftest.$ac_ext <<EOF
15657 #line 15658 "configure"
15658 #include "confdefs.h"
15659 /* System header to define __stub macros and hopefully few prototypes,
15660     which can conflict with char $ac_func(); below.  */
15661 #include <assert.h>
15662 /* Override any gcc2 internal prototype to avoid an error.  */
15663 /* We use char because int might match the return type of a gcc2
15664     builtin and then its argument prototype would still apply.  */
15665 char $ac_func();
15666
15667 int main() {
15668
15669 /* The GNU C library defines this for functions which it implements
15670     to always fail with ENOSYS.  Some functions are actually named
15671     something starting with __ and the normal name is an alias.  */
15672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15673 choke me
15674 #else
15675 $ac_func();
15676 #endif
15677
15678 ; return 0; }
15679 EOF
15680 if { (eval echo configure:15681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15681   rm -rf conftest*
15682   eval "ac_cv_func_$ac_func=yes"
15683 else
15684   echo "configure: failed program was:" >&5
15685   cat conftest.$ac_ext >&5
15686   rm -rf conftest*
15687   eval "ac_cv_func_$ac_func=no"
15688 fi
15689 rm -f conftest*
15690 fi
15691
15692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15693   echo "$ac_t""yes" 1>&6
15694     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15695   cat >> confdefs.h <<EOF
15696 #define $ac_tr_func 1
15697 EOF
15698  
15699 else
15700   echo "$ac_t""no" 1>&6
15701 fi
15702 done
15703     
15704     fi
15705   fi
15706
15707   
15708   
15709   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15710 echo "configure:15711: checking for sincosf declaration" >&5
15711   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15712     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15713   echo $ac_n "(cached) $ac_c" 1>&6
15714 else
15715   
15716       
15717       ac_ext=C
15718 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15719 ac_cpp='$CXXCPP $CPPFLAGS'
15720 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15721 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15722 cross_compiling=$ac_cv_prog_cxx_cross
15723
15724       cat > conftest.$ac_ext <<EOF
15725 #line 15726 "configure"
15726 #include "confdefs.h"
15727 #include <math.h>
15728 int main() {
15729  sincosf(0, 0, 0);
15730 ; return 0; }
15731 EOF
15732 if { (eval echo configure:15733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15733   rm -rf conftest*
15734   glibcpp_cv_func_sincosf_use=yes
15735 else
15736   echo "configure: failed program was:" >&5
15737   cat conftest.$ac_ext >&5
15738   rm -rf conftest*
15739   glibcpp_cv_func_sincosf_use=no
15740 fi
15741 rm -f conftest*
15742       ac_ext=c
15743 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15744 ac_cpp='$CPP $CPPFLAGS'
15745 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15746 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15747 cross_compiling=$ac_cv_prog_cc_cross
15748
15749     
15750 fi
15751
15752   fi
15753   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15754
15755   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15756     for ac_func in sincosf
15757 do
15758 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15759 echo "configure:15760: checking for $ac_func" >&5
15760 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15761   echo $ac_n "(cached) $ac_c" 1>&6
15762 else
15763   cat > conftest.$ac_ext <<EOF
15764 #line 15765 "configure"
15765 #include "confdefs.h"
15766 /* System header to define __stub macros and hopefully few prototypes,
15767     which can conflict with char $ac_func(); below.  */
15768 #include <assert.h>
15769 /* Override any gcc2 internal prototype to avoid an error.  */
15770 /* We use char because int might match the return type of a gcc2
15771     builtin and then its argument prototype would still apply.  */
15772 char $ac_func();
15773
15774 int main() {
15775
15776 /* The GNU C library defines this for functions which it implements
15777     to always fail with ENOSYS.  Some functions are actually named
15778     something starting with __ and the normal name is an alias.  */
15779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15780 choke me
15781 #else
15782 $ac_func();
15783 #endif
15784
15785 ; return 0; }
15786 EOF
15787 if { (eval echo configure:15788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15788   rm -rf conftest*
15789   eval "ac_cv_func_$ac_func=yes"
15790 else
15791   echo "configure: failed program was:" >&5
15792   cat conftest.$ac_ext >&5
15793   rm -rf conftest*
15794   eval "ac_cv_func_$ac_func=no"
15795 fi
15796 rm -f conftest*
15797 fi
15798
15799 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15800   echo "$ac_t""yes" 1>&6
15801     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15802   cat >> confdefs.h <<EOF
15803 #define $ac_tr_func 1
15804 EOF
15805  
15806 else
15807   echo "$ac_t""no" 1>&6
15808 fi
15809 done
15810     
15811   else
15812     
15813   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15814 echo "configure:15815: checking for _sincosf declaration" >&5
15815   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15816     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15817   echo $ac_n "(cached) $ac_c" 1>&6
15818 else
15819   
15820       
15821       ac_ext=C
15822 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15823 ac_cpp='$CXXCPP $CPPFLAGS'
15824 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15825 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15826 cross_compiling=$ac_cv_prog_cxx_cross
15827
15828       cat > conftest.$ac_ext <<EOF
15829 #line 15830 "configure"
15830 #include "confdefs.h"
15831 #include <math.h>
15832 int main() {
15833  _sincosf(0, 0, 0);
15834 ; return 0; }
15835 EOF
15836 if { (eval echo configure:15837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15837   rm -rf conftest*
15838   glibcpp_cv_func__sincosf_use=yes
15839 else
15840   echo "configure: failed program was:" >&5
15841   cat conftest.$ac_ext >&5
15842   rm -rf conftest*
15843   glibcpp_cv_func__sincosf_use=no
15844 fi
15845 rm -f conftest*
15846       ac_ext=c
15847 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15848 ac_cpp='$CPP $CPPFLAGS'
15849 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15850 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15851 cross_compiling=$ac_cv_prog_cc_cross
15852
15853     
15854 fi
15855
15856   fi
15857   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15858
15859     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15860       for ac_func in _sincosf
15861 do
15862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15863 echo "configure:15864: checking for $ac_func" >&5
15864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15865   echo $ac_n "(cached) $ac_c" 1>&6
15866 else
15867   cat > conftest.$ac_ext <<EOF
15868 #line 15869 "configure"
15869 #include "confdefs.h"
15870 /* System header to define __stub macros and hopefully few prototypes,
15871     which can conflict with char $ac_func(); below.  */
15872 #include <assert.h>
15873 /* Override any gcc2 internal prototype to avoid an error.  */
15874 /* We use char because int might match the return type of a gcc2
15875     builtin and then its argument prototype would still apply.  */
15876 char $ac_func();
15877
15878 int main() {
15879
15880 /* The GNU C library defines this for functions which it implements
15881     to always fail with ENOSYS.  Some functions are actually named
15882     something starting with __ and the normal name is an alias.  */
15883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15884 choke me
15885 #else
15886 $ac_func();
15887 #endif
15888
15889 ; return 0; }
15890 EOF
15891 if { (eval echo configure:15892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15892   rm -rf conftest*
15893   eval "ac_cv_func_$ac_func=yes"
15894 else
15895   echo "configure: failed program was:" >&5
15896   cat conftest.$ac_ext >&5
15897   rm -rf conftest*
15898   eval "ac_cv_func_$ac_func=no"
15899 fi
15900 rm -f conftest*
15901 fi
15902
15903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15904   echo "$ac_t""yes" 1>&6
15905     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15906   cat >> confdefs.h <<EOF
15907 #define $ac_tr_func 1
15908 EOF
15909  
15910 else
15911   echo "$ac_t""no" 1>&6
15912 fi
15913 done
15914     
15915     fi
15916   fi
15917
15918   
15919   
15920   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
15921 echo "configure:15922: checking for finitef declaration" >&5
15922   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
15923     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
15924   echo $ac_n "(cached) $ac_c" 1>&6
15925 else
15926   
15927       
15928       ac_ext=C
15929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15930 ac_cpp='$CXXCPP $CPPFLAGS'
15931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15933 cross_compiling=$ac_cv_prog_cxx_cross
15934
15935       cat > conftest.$ac_ext <<EOF
15936 #line 15937 "configure"
15937 #include "confdefs.h"
15938 #include <math.h>
15939                       #ifdef HAVE_IEEEFP_H
15940                       #include <ieeefp.h>
15941                       #endif
15942                      
15943 int main() {
15944  finitef(0);
15945 ; return 0; }
15946 EOF
15947 if { (eval echo configure:15948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15948   rm -rf conftest*
15949   glibcpp_cv_func_finitef_use=yes
15950 else
15951   echo "configure: failed program was:" >&5
15952   cat conftest.$ac_ext >&5
15953   rm -rf conftest*
15954   glibcpp_cv_func_finitef_use=no
15955 fi
15956 rm -f conftest*
15957       ac_ext=c
15958 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15959 ac_cpp='$CPP $CPPFLAGS'
15960 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15961 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15962 cross_compiling=$ac_cv_prog_cc_cross
15963
15964     
15965 fi
15966
15967   fi
15968   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
15969
15970   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
15971     for ac_func in finitef
15972 do
15973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15974 echo "configure:15975: checking for $ac_func" >&5
15975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15976   echo $ac_n "(cached) $ac_c" 1>&6
15977 else
15978   cat > conftest.$ac_ext <<EOF
15979 #line 15980 "configure"
15980 #include "confdefs.h"
15981 /* System header to define __stub macros and hopefully few prototypes,
15982     which can conflict with char $ac_func(); below.  */
15983 #include <assert.h>
15984 /* Override any gcc2 internal prototype to avoid an error.  */
15985 /* We use char because int might match the return type of a gcc2
15986     builtin and then its argument prototype would still apply.  */
15987 char $ac_func();
15988
15989 int main() {
15990
15991 /* The GNU C library defines this for functions which it implements
15992     to always fail with ENOSYS.  Some functions are actually named
15993     something starting with __ and the normal name is an alias.  */
15994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15995 choke me
15996 #else
15997 $ac_func();
15998 #endif
15999
16000 ; return 0; }
16001 EOF
16002 if { (eval echo configure:16003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16003   rm -rf conftest*
16004   eval "ac_cv_func_$ac_func=yes"
16005 else
16006   echo "configure: failed program was:" >&5
16007   cat conftest.$ac_ext >&5
16008   rm -rf conftest*
16009   eval "ac_cv_func_$ac_func=no"
16010 fi
16011 rm -f conftest*
16012 fi
16013
16014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16015   echo "$ac_t""yes" 1>&6
16016     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16017   cat >> confdefs.h <<EOF
16018 #define $ac_tr_func 1
16019 EOF
16020  
16021 else
16022   echo "$ac_t""no" 1>&6
16023 fi
16024 done
16025     
16026   else
16027     
16028   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
16029 echo "configure:16030: checking for _finitef declaration" >&5
16030   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
16031     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
16032   echo $ac_n "(cached) $ac_c" 1>&6
16033 else
16034   
16035       
16036       ac_ext=C
16037 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16038 ac_cpp='$CXXCPP $CPPFLAGS'
16039 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16040 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16041 cross_compiling=$ac_cv_prog_cxx_cross
16042
16043       cat > conftest.$ac_ext <<EOF
16044 #line 16045 "configure"
16045 #include "confdefs.h"
16046 #include <math.h>
16047                       #ifdef HAVE_IEEEFP_H
16048                       #include <ieeefp.h>
16049                       #endif
16050                      
16051 int main() {
16052  _finitef(0);
16053 ; return 0; }
16054 EOF
16055 if { (eval echo configure:16056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16056   rm -rf conftest*
16057   glibcpp_cv_func__finitef_use=yes
16058 else
16059   echo "configure: failed program was:" >&5
16060   cat conftest.$ac_ext >&5
16061   rm -rf conftest*
16062   glibcpp_cv_func__finitef_use=no
16063 fi
16064 rm -f conftest*
16065       ac_ext=c
16066 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16067 ac_cpp='$CPP $CPPFLAGS'
16068 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16069 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16070 cross_compiling=$ac_cv_prog_cc_cross
16071
16072     
16073 fi
16074
16075   fi
16076   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16077
16078     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16079       for ac_func in _finitef
16080 do
16081 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16082 echo "configure:16083: checking for $ac_func" >&5
16083 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16084   echo $ac_n "(cached) $ac_c" 1>&6
16085 else
16086   cat > conftest.$ac_ext <<EOF
16087 #line 16088 "configure"
16088 #include "confdefs.h"
16089 /* System header to define __stub macros and hopefully few prototypes,
16090     which can conflict with char $ac_func(); below.  */
16091 #include <assert.h>
16092 /* Override any gcc2 internal prototype to avoid an error.  */
16093 /* We use char because int might match the return type of a gcc2
16094     builtin and then its argument prototype would still apply.  */
16095 char $ac_func();
16096
16097 int main() {
16098
16099 /* The GNU C library defines this for functions which it implements
16100     to always fail with ENOSYS.  Some functions are actually named
16101     something starting with __ and the normal name is an alias.  */
16102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16103 choke me
16104 #else
16105 $ac_func();
16106 #endif
16107
16108 ; return 0; }
16109 EOF
16110 if { (eval echo configure:16111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16111   rm -rf conftest*
16112   eval "ac_cv_func_$ac_func=yes"
16113 else
16114   echo "configure: failed program was:" >&5
16115   cat conftest.$ac_ext >&5
16116   rm -rf conftest*
16117   eval "ac_cv_func_$ac_func=no"
16118 fi
16119 rm -f conftest*
16120 fi
16121
16122 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16123   echo "$ac_t""yes" 1>&6
16124     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16125   cat >> confdefs.h <<EOF
16126 #define $ac_tr_func 1
16127 EOF
16128  
16129 else
16130   echo "$ac_t""no" 1>&6
16131 fi
16132 done
16133     
16134     fi
16135   fi
16136
16137
16138     
16139   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16140 echo "configure:16141: checking for long double trig functions" >&5
16141   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16142   echo $ac_n "(cached) $ac_c" 1>&6
16143 else
16144   
16145     
16146     ac_ext=C
16147 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16148 ac_cpp='$CXXCPP $CPPFLAGS'
16149 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16150 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16151 cross_compiling=$ac_cv_prog_cxx_cross
16152
16153     cat > conftest.$ac_ext <<EOF
16154 #line 16155 "configure"
16155 #include "confdefs.h"
16156 #include <math.h>
16157 int main() {
16158  `for x in acosl asinl atanl \
16159                                           cosl sinl tanl \
16160                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
16161 ; return 0; }
16162 EOF
16163 if { (eval echo configure:16164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16164   rm -rf conftest*
16165   glibcpp_cv_func_long_double_trig_use=yes
16166 else
16167   echo "configure: failed program was:" >&5
16168   cat conftest.$ac_ext >&5
16169   rm -rf conftest*
16170   glibcpp_cv_func_long_double_trig_use=no
16171 fi
16172 rm -f conftest*
16173     ac_ext=c
16174 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16175 ac_cpp='$CPP $CPPFLAGS'
16176 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16177 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16178 cross_compiling=$ac_cv_prog_cc_cross
16179
16180 fi
16181
16182   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16183   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16184     for ac_func in acosl asinl atanl \
16185                                           cosl sinl tanl \
16186                                           coshl sinhl tanhl
16187 do
16188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16189 echo "configure:16190: checking for $ac_func" >&5
16190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16191   echo $ac_n "(cached) $ac_c" 1>&6
16192 else
16193   cat > conftest.$ac_ext <<EOF
16194 #line 16195 "configure"
16195 #include "confdefs.h"
16196 /* System header to define __stub macros and hopefully few prototypes,
16197     which can conflict with char $ac_func(); below.  */
16198 #include <assert.h>
16199 /* Override any gcc2 internal prototype to avoid an error.  */
16200 /* We use char because int might match the return type of a gcc2
16201     builtin and then its argument prototype would still apply.  */
16202 char $ac_func();
16203
16204 int main() {
16205
16206 /* The GNU C library defines this for functions which it implements
16207     to always fail with ENOSYS.  Some functions are actually named
16208     something starting with __ and the normal name is an alias.  */
16209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16210 choke me
16211 #else
16212 $ac_func();
16213 #endif
16214
16215 ; return 0; }
16216 EOF
16217 if { (eval echo configure:16218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16218   rm -rf conftest*
16219   eval "ac_cv_func_$ac_func=yes"
16220 else
16221   echo "configure: failed program was:" >&5
16222   cat conftest.$ac_ext >&5
16223   rm -rf conftest*
16224   eval "ac_cv_func_$ac_func=no"
16225 fi
16226 rm -f conftest*
16227 fi
16228
16229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16230   echo "$ac_t""yes" 1>&6
16231     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16232   cat >> confdefs.h <<EOF
16233 #define $ac_tr_func 1
16234 EOF
16235  
16236 else
16237   echo "$ac_t""no" 1>&6
16238 fi
16239 done
16240
16241   fi
16242
16243   
16244   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16245 echo "configure:16246: checking for long double round functions" >&5
16246   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16247   echo $ac_n "(cached) $ac_c" 1>&6
16248 else
16249   
16250     
16251     ac_ext=C
16252 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16253 ac_cpp='$CXXCPP $CPPFLAGS'
16254 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16255 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16256 cross_compiling=$ac_cv_prog_cxx_cross
16257
16258     cat > conftest.$ac_ext <<EOF
16259 #line 16260 "configure"
16260 #include "confdefs.h"
16261 #include <math.h>
16262 int main() {
16263  `for x in ceill floorl; do echo "$x (0);"; done` 
16264 ; return 0; }
16265 EOF
16266 if { (eval echo configure:16267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16267   rm -rf conftest*
16268   glibcpp_cv_func_long_double_round_use=yes
16269 else
16270   echo "configure: failed program was:" >&5
16271   cat conftest.$ac_ext >&5
16272   rm -rf conftest*
16273   glibcpp_cv_func_long_double_round_use=no
16274 fi
16275 rm -f conftest*
16276     ac_ext=c
16277 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16278 ac_cpp='$CPP $CPPFLAGS'
16279 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16280 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16281 cross_compiling=$ac_cv_prog_cc_cross
16282
16283 fi
16284
16285   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16286   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16287     for ac_func in ceill floorl
16288 do
16289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16290 echo "configure:16291: checking for $ac_func" >&5
16291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16292   echo $ac_n "(cached) $ac_c" 1>&6
16293 else
16294   cat > conftest.$ac_ext <<EOF
16295 #line 16296 "configure"
16296 #include "confdefs.h"
16297 /* System header to define __stub macros and hopefully few prototypes,
16298     which can conflict with char $ac_func(); below.  */
16299 #include <assert.h>
16300 /* Override any gcc2 internal prototype to avoid an error.  */
16301 /* We use char because int might match the return type of a gcc2
16302     builtin and then its argument prototype would still apply.  */
16303 char $ac_func();
16304
16305 int main() {
16306
16307 /* The GNU C library defines this for functions which it implements
16308     to always fail with ENOSYS.  Some functions are actually named
16309     something starting with __ and the normal name is an alias.  */
16310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16311 choke me
16312 #else
16313 $ac_func();
16314 #endif
16315
16316 ; return 0; }
16317 EOF
16318 if { (eval echo configure:16319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16319   rm -rf conftest*
16320   eval "ac_cv_func_$ac_func=yes"
16321 else
16322   echo "configure: failed program was:" >&5
16323   cat conftest.$ac_ext >&5
16324   rm -rf conftest*
16325   eval "ac_cv_func_$ac_func=no"
16326 fi
16327 rm -f conftest*
16328 fi
16329
16330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16331   echo "$ac_t""yes" 1>&6
16332     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16333   cat >> confdefs.h <<EOF
16334 #define $ac_tr_func 1
16335 EOF
16336  
16337 else
16338   echo "$ac_t""no" 1>&6
16339 fi
16340 done
16341
16342   fi
16343
16344   
16345   
16346   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16347 echo "configure:16348: checking for isnanl declaration" >&5
16348   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16349     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16350   echo $ac_n "(cached) $ac_c" 1>&6
16351 else
16352   
16353       
16354       ac_ext=C
16355 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16356 ac_cpp='$CXXCPP $CPPFLAGS'
16357 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16358 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16359 cross_compiling=$ac_cv_prog_cxx_cross
16360
16361       cat > conftest.$ac_ext <<EOF
16362 #line 16363 "configure"
16363 #include "confdefs.h"
16364 #include <math.h>
16365                       #ifdef HAVE_IEEEFP_H
16366                       #include <ieeefp.h>
16367                       #endif
16368                      
16369 int main() {
16370  isnanl(0);
16371 ; return 0; }
16372 EOF
16373 if { (eval echo configure:16374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16374   rm -rf conftest*
16375   glibcpp_cv_func_isnanl_use=yes
16376 else
16377   echo "configure: failed program was:" >&5
16378   cat conftest.$ac_ext >&5
16379   rm -rf conftest*
16380   glibcpp_cv_func_isnanl_use=no
16381 fi
16382 rm -f conftest*
16383       ac_ext=c
16384 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16385 ac_cpp='$CPP $CPPFLAGS'
16386 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16387 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16388 cross_compiling=$ac_cv_prog_cc_cross
16389
16390     
16391 fi
16392
16393   fi
16394   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16395
16396   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16397     for ac_func in isnanl
16398 do
16399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16400 echo "configure:16401: checking for $ac_func" >&5
16401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16402   echo $ac_n "(cached) $ac_c" 1>&6
16403 else
16404   cat > conftest.$ac_ext <<EOF
16405 #line 16406 "configure"
16406 #include "confdefs.h"
16407 /* System header to define __stub macros and hopefully few prototypes,
16408     which can conflict with char $ac_func(); below.  */
16409 #include <assert.h>
16410 /* Override any gcc2 internal prototype to avoid an error.  */
16411 /* We use char because int might match the return type of a gcc2
16412     builtin and then its argument prototype would still apply.  */
16413 char $ac_func();
16414
16415 int main() {
16416
16417 /* The GNU C library defines this for functions which it implements
16418     to always fail with ENOSYS.  Some functions are actually named
16419     something starting with __ and the normal name is an alias.  */
16420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16421 choke me
16422 #else
16423 $ac_func();
16424 #endif
16425
16426 ; return 0; }
16427 EOF
16428 if { (eval echo configure:16429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16429   rm -rf conftest*
16430   eval "ac_cv_func_$ac_func=yes"
16431 else
16432   echo "configure: failed program was:" >&5
16433   cat conftest.$ac_ext >&5
16434   rm -rf conftest*
16435   eval "ac_cv_func_$ac_func=no"
16436 fi
16437 rm -f conftest*
16438 fi
16439
16440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16441   echo "$ac_t""yes" 1>&6
16442     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16443   cat >> confdefs.h <<EOF
16444 #define $ac_tr_func 1
16445 EOF
16446  
16447 else
16448   echo "$ac_t""no" 1>&6
16449 fi
16450 done
16451     
16452   else
16453     
16454   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16455 echo "configure:16456: checking for _isnanl declaration" >&5
16456   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16457     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16458   echo $ac_n "(cached) $ac_c" 1>&6
16459 else
16460   
16461       
16462       ac_ext=C
16463 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16464 ac_cpp='$CXXCPP $CPPFLAGS'
16465 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16466 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16467 cross_compiling=$ac_cv_prog_cxx_cross
16468
16469       cat > conftest.$ac_ext <<EOF
16470 #line 16471 "configure"
16471 #include "confdefs.h"
16472 #include <math.h>
16473                       #ifdef HAVE_IEEEFP_H
16474                       #include <ieeefp.h>
16475                       #endif
16476                      
16477 int main() {
16478  _isnanl(0);
16479 ; return 0; }
16480 EOF
16481 if { (eval echo configure:16482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16482   rm -rf conftest*
16483   glibcpp_cv_func__isnanl_use=yes
16484 else
16485   echo "configure: failed program was:" >&5
16486   cat conftest.$ac_ext >&5
16487   rm -rf conftest*
16488   glibcpp_cv_func__isnanl_use=no
16489 fi
16490 rm -f conftest*
16491       ac_ext=c
16492 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16493 ac_cpp='$CPP $CPPFLAGS'
16494 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16495 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16496 cross_compiling=$ac_cv_prog_cc_cross
16497
16498     
16499 fi
16500
16501   fi
16502   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16503
16504     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16505       for ac_func in _isnanl
16506 do
16507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16508 echo "configure:16509: checking for $ac_func" >&5
16509 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16510   echo $ac_n "(cached) $ac_c" 1>&6
16511 else
16512   cat > conftest.$ac_ext <<EOF
16513 #line 16514 "configure"
16514 #include "confdefs.h"
16515 /* System header to define __stub macros and hopefully few prototypes,
16516     which can conflict with char $ac_func(); below.  */
16517 #include <assert.h>
16518 /* Override any gcc2 internal prototype to avoid an error.  */
16519 /* We use char because int might match the return type of a gcc2
16520     builtin and then its argument prototype would still apply.  */
16521 char $ac_func();
16522
16523 int main() {
16524
16525 /* The GNU C library defines this for functions which it implements
16526     to always fail with ENOSYS.  Some functions are actually named
16527     something starting with __ and the normal name is an alias.  */
16528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16529 choke me
16530 #else
16531 $ac_func();
16532 #endif
16533
16534 ; return 0; }
16535 EOF
16536 if { (eval echo configure:16537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16537   rm -rf conftest*
16538   eval "ac_cv_func_$ac_func=yes"
16539 else
16540   echo "configure: failed program was:" >&5
16541   cat conftest.$ac_ext >&5
16542   rm -rf conftest*
16543   eval "ac_cv_func_$ac_func=no"
16544 fi
16545 rm -f conftest*
16546 fi
16547
16548 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16549   echo "$ac_t""yes" 1>&6
16550     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16551   cat >> confdefs.h <<EOF
16552 #define $ac_tr_func 1
16553 EOF
16554  
16555 else
16556   echo "$ac_t""no" 1>&6
16557 fi
16558 done
16559     
16560     fi
16561   fi
16562
16563   
16564   
16565   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16566 echo "configure:16567: checking for isinfl declaration" >&5
16567   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16568     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16569   echo $ac_n "(cached) $ac_c" 1>&6
16570 else
16571   
16572       
16573       ac_ext=C
16574 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16575 ac_cpp='$CXXCPP $CPPFLAGS'
16576 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16577 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16578 cross_compiling=$ac_cv_prog_cxx_cross
16579
16580       cat > conftest.$ac_ext <<EOF
16581 #line 16582 "configure"
16582 #include "confdefs.h"
16583 #include <math.h>
16584                       #ifdef HAVE_IEEEFP_H
16585                       #include <ieeefp.h>
16586                       #endif
16587                      
16588 int main() {
16589  isinfl(0);
16590 ; return 0; }
16591 EOF
16592 if { (eval echo configure:16593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16593   rm -rf conftest*
16594   glibcpp_cv_func_isinfl_use=yes
16595 else
16596   echo "configure: failed program was:" >&5
16597   cat conftest.$ac_ext >&5
16598   rm -rf conftest*
16599   glibcpp_cv_func_isinfl_use=no
16600 fi
16601 rm -f conftest*
16602       ac_ext=c
16603 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16604 ac_cpp='$CPP $CPPFLAGS'
16605 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16606 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16607 cross_compiling=$ac_cv_prog_cc_cross
16608
16609     
16610 fi
16611
16612   fi
16613   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16614
16615   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16616     for ac_func in isinfl
16617 do
16618 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16619 echo "configure:16620: checking for $ac_func" >&5
16620 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16621   echo $ac_n "(cached) $ac_c" 1>&6
16622 else
16623   cat > conftest.$ac_ext <<EOF
16624 #line 16625 "configure"
16625 #include "confdefs.h"
16626 /* System header to define __stub macros and hopefully few prototypes,
16627     which can conflict with char $ac_func(); below.  */
16628 #include <assert.h>
16629 /* Override any gcc2 internal prototype to avoid an error.  */
16630 /* We use char because int might match the return type of a gcc2
16631     builtin and then its argument prototype would still apply.  */
16632 char $ac_func();
16633
16634 int main() {
16635
16636 /* The GNU C library defines this for functions which it implements
16637     to always fail with ENOSYS.  Some functions are actually named
16638     something starting with __ and the normal name is an alias.  */
16639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16640 choke me
16641 #else
16642 $ac_func();
16643 #endif
16644
16645 ; return 0; }
16646 EOF
16647 if { (eval echo configure:16648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16648   rm -rf conftest*
16649   eval "ac_cv_func_$ac_func=yes"
16650 else
16651   echo "configure: failed program was:" >&5
16652   cat conftest.$ac_ext >&5
16653   rm -rf conftest*
16654   eval "ac_cv_func_$ac_func=no"
16655 fi
16656 rm -f conftest*
16657 fi
16658
16659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16660   echo "$ac_t""yes" 1>&6
16661     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16662   cat >> confdefs.h <<EOF
16663 #define $ac_tr_func 1
16664 EOF
16665  
16666 else
16667   echo "$ac_t""no" 1>&6
16668 fi
16669 done
16670     
16671   else
16672     
16673   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16674 echo "configure:16675: checking for _isinfl declaration" >&5
16675   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16676     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16677   echo $ac_n "(cached) $ac_c" 1>&6
16678 else
16679   
16680       
16681       ac_ext=C
16682 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16683 ac_cpp='$CXXCPP $CPPFLAGS'
16684 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16685 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16686 cross_compiling=$ac_cv_prog_cxx_cross
16687
16688       cat > conftest.$ac_ext <<EOF
16689 #line 16690 "configure"
16690 #include "confdefs.h"
16691 #include <math.h>
16692                       #ifdef HAVE_IEEEFP_H
16693                       #include <ieeefp.h>
16694                       #endif
16695                      
16696 int main() {
16697  _isinfl(0);
16698 ; return 0; }
16699 EOF
16700 if { (eval echo configure:16701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16701   rm -rf conftest*
16702   glibcpp_cv_func__isinfl_use=yes
16703 else
16704   echo "configure: failed program was:" >&5
16705   cat conftest.$ac_ext >&5
16706   rm -rf conftest*
16707   glibcpp_cv_func__isinfl_use=no
16708 fi
16709 rm -f conftest*
16710       ac_ext=c
16711 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16712 ac_cpp='$CPP $CPPFLAGS'
16713 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16714 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16715 cross_compiling=$ac_cv_prog_cc_cross
16716
16717     
16718 fi
16719
16720   fi
16721   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16722
16723     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16724       for ac_func in _isinfl
16725 do
16726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16727 echo "configure:16728: checking for $ac_func" >&5
16728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16729   echo $ac_n "(cached) $ac_c" 1>&6
16730 else
16731   cat > conftest.$ac_ext <<EOF
16732 #line 16733 "configure"
16733 #include "confdefs.h"
16734 /* System header to define __stub macros and hopefully few prototypes,
16735     which can conflict with char $ac_func(); below.  */
16736 #include <assert.h>
16737 /* Override any gcc2 internal prototype to avoid an error.  */
16738 /* We use char because int might match the return type of a gcc2
16739     builtin and then its argument prototype would still apply.  */
16740 char $ac_func();
16741
16742 int main() {
16743
16744 /* The GNU C library defines this for functions which it implements
16745     to always fail with ENOSYS.  Some functions are actually named
16746     something starting with __ and the normal name is an alias.  */
16747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16748 choke me
16749 #else
16750 $ac_func();
16751 #endif
16752
16753 ; return 0; }
16754 EOF
16755 if { (eval echo configure:16756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16756   rm -rf conftest*
16757   eval "ac_cv_func_$ac_func=yes"
16758 else
16759   echo "configure: failed program was:" >&5
16760   cat conftest.$ac_ext >&5
16761   rm -rf conftest*
16762   eval "ac_cv_func_$ac_func=no"
16763 fi
16764 rm -f conftest*
16765 fi
16766
16767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16768   echo "$ac_t""yes" 1>&6
16769     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16770   cat >> confdefs.h <<EOF
16771 #define $ac_tr_func 1
16772 EOF
16773  
16774 else
16775   echo "$ac_t""no" 1>&6
16776 fi
16777 done
16778     
16779     fi
16780   fi
16781
16782   
16783   
16784   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16785 echo "configure:16786: checking for copysignl declaration" >&5
16786   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16787     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16788   echo $ac_n "(cached) $ac_c" 1>&6
16789 else
16790   
16791       
16792       ac_ext=C
16793 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16794 ac_cpp='$CXXCPP $CPPFLAGS'
16795 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16796 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16797 cross_compiling=$ac_cv_prog_cxx_cross
16798
16799       cat > conftest.$ac_ext <<EOF
16800 #line 16801 "configure"
16801 #include "confdefs.h"
16802 #include <math.h>
16803 int main() {
16804  copysignl(0, 0);
16805 ; return 0; }
16806 EOF
16807 if { (eval echo configure:16808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16808   rm -rf conftest*
16809   glibcpp_cv_func_copysignl_use=yes
16810 else
16811   echo "configure: failed program was:" >&5
16812   cat conftest.$ac_ext >&5
16813   rm -rf conftest*
16814   glibcpp_cv_func_copysignl_use=no
16815 fi
16816 rm -f conftest*
16817       ac_ext=c
16818 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16819 ac_cpp='$CPP $CPPFLAGS'
16820 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16821 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16822 cross_compiling=$ac_cv_prog_cc_cross
16823
16824     
16825 fi
16826
16827   fi
16828   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16829
16830   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16831     for ac_func in copysignl
16832 do
16833 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16834 echo "configure:16835: checking for $ac_func" >&5
16835 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16836   echo $ac_n "(cached) $ac_c" 1>&6
16837 else
16838   cat > conftest.$ac_ext <<EOF
16839 #line 16840 "configure"
16840 #include "confdefs.h"
16841 /* System header to define __stub macros and hopefully few prototypes,
16842     which can conflict with char $ac_func(); below.  */
16843 #include <assert.h>
16844 /* Override any gcc2 internal prototype to avoid an error.  */
16845 /* We use char because int might match the return type of a gcc2
16846     builtin and then its argument prototype would still apply.  */
16847 char $ac_func();
16848
16849 int main() {
16850
16851 /* The GNU C library defines this for functions which it implements
16852     to always fail with ENOSYS.  Some functions are actually named
16853     something starting with __ and the normal name is an alias.  */
16854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16855 choke me
16856 #else
16857 $ac_func();
16858 #endif
16859
16860 ; return 0; }
16861 EOF
16862 if { (eval echo configure:16863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16863   rm -rf conftest*
16864   eval "ac_cv_func_$ac_func=yes"
16865 else
16866   echo "configure: failed program was:" >&5
16867   cat conftest.$ac_ext >&5
16868   rm -rf conftest*
16869   eval "ac_cv_func_$ac_func=no"
16870 fi
16871 rm -f conftest*
16872 fi
16873
16874 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16875   echo "$ac_t""yes" 1>&6
16876     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16877   cat >> confdefs.h <<EOF
16878 #define $ac_tr_func 1
16879 EOF
16880  
16881 else
16882   echo "$ac_t""no" 1>&6
16883 fi
16884 done
16885     
16886   else
16887     
16888   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16889 echo "configure:16890: checking for _copysignl declaration" >&5
16890   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16891     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16892   echo $ac_n "(cached) $ac_c" 1>&6
16893 else
16894   
16895       
16896       ac_ext=C
16897 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16898 ac_cpp='$CXXCPP $CPPFLAGS'
16899 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16900 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16901 cross_compiling=$ac_cv_prog_cxx_cross
16902
16903       cat > conftest.$ac_ext <<EOF
16904 #line 16905 "configure"
16905 #include "confdefs.h"
16906 #include <math.h>
16907 int main() {
16908  _copysignl(0, 0);
16909 ; return 0; }
16910 EOF
16911 if { (eval echo configure:16912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16912   rm -rf conftest*
16913   glibcpp_cv_func__copysignl_use=yes
16914 else
16915   echo "configure: failed program was:" >&5
16916   cat conftest.$ac_ext >&5
16917   rm -rf conftest*
16918   glibcpp_cv_func__copysignl_use=no
16919 fi
16920 rm -f conftest*
16921       ac_ext=c
16922 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16923 ac_cpp='$CPP $CPPFLAGS'
16924 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16925 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16926 cross_compiling=$ac_cv_prog_cc_cross
16927
16928     
16929 fi
16930
16931   fi
16932   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
16933
16934     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
16935       for ac_func in _copysignl
16936 do
16937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16938 echo "configure:16939: checking for $ac_func" >&5
16939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16940   echo $ac_n "(cached) $ac_c" 1>&6
16941 else
16942   cat > conftest.$ac_ext <<EOF
16943 #line 16944 "configure"
16944 #include "confdefs.h"
16945 /* System header to define __stub macros and hopefully few prototypes,
16946     which can conflict with char $ac_func(); below.  */
16947 #include <assert.h>
16948 /* Override any gcc2 internal prototype to avoid an error.  */
16949 /* We use char because int might match the return type of a gcc2
16950     builtin and then its argument prototype would still apply.  */
16951 char $ac_func();
16952
16953 int main() {
16954
16955 /* The GNU C library defines this for functions which it implements
16956     to always fail with ENOSYS.  Some functions are actually named
16957     something starting with __ and the normal name is an alias.  */
16958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16959 choke me
16960 #else
16961 $ac_func();
16962 #endif
16963
16964 ; return 0; }
16965 EOF
16966 if { (eval echo configure:16967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16967   rm -rf conftest*
16968   eval "ac_cv_func_$ac_func=yes"
16969 else
16970   echo "configure: failed program was:" >&5
16971   cat conftest.$ac_ext >&5
16972   rm -rf conftest*
16973   eval "ac_cv_func_$ac_func=no"
16974 fi
16975 rm -f conftest*
16976 fi
16977
16978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16979   echo "$ac_t""yes" 1>&6
16980     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16981   cat >> confdefs.h <<EOF
16982 #define $ac_tr_func 1
16983 EOF
16984  
16985 else
16986   echo "$ac_t""no" 1>&6
16987 fi
16988 done
16989     
16990     fi
16991   fi
16992
16993   
16994   
16995   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
16996 echo "configure:16997: checking for atan2l declaration" >&5
16997   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
16998     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
16999   echo $ac_n "(cached) $ac_c" 1>&6
17000 else
17001   
17002       
17003       ac_ext=C
17004 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17005 ac_cpp='$CXXCPP $CPPFLAGS'
17006 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17007 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17008 cross_compiling=$ac_cv_prog_cxx_cross
17009
17010       cat > conftest.$ac_ext <<EOF
17011 #line 17012 "configure"
17012 #include "confdefs.h"
17013 #include <math.h>
17014 int main() {
17015  atan2l(0, 0);
17016 ; return 0; }
17017 EOF
17018 if { (eval echo configure:17019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17019   rm -rf conftest*
17020   glibcpp_cv_func_atan2l_use=yes
17021 else
17022   echo "configure: failed program was:" >&5
17023   cat conftest.$ac_ext >&5
17024   rm -rf conftest*
17025   glibcpp_cv_func_atan2l_use=no
17026 fi
17027 rm -f conftest*
17028       ac_ext=c
17029 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17030 ac_cpp='$CPP $CPPFLAGS'
17031 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17032 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17033 cross_compiling=$ac_cv_prog_cc_cross
17034
17035     
17036 fi
17037
17038   fi
17039   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
17040
17041   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
17042     for ac_func in atan2l
17043 do
17044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17045 echo "configure:17046: checking for $ac_func" >&5
17046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17047   echo $ac_n "(cached) $ac_c" 1>&6
17048 else
17049   cat > conftest.$ac_ext <<EOF
17050 #line 17051 "configure"
17051 #include "confdefs.h"
17052 /* System header to define __stub macros and hopefully few prototypes,
17053     which can conflict with char $ac_func(); below.  */
17054 #include <assert.h>
17055 /* Override any gcc2 internal prototype to avoid an error.  */
17056 /* We use char because int might match the return type of a gcc2
17057     builtin and then its argument prototype would still apply.  */
17058 char $ac_func();
17059
17060 int main() {
17061
17062 /* The GNU C library defines this for functions which it implements
17063     to always fail with ENOSYS.  Some functions are actually named
17064     something starting with __ and the normal name is an alias.  */
17065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17066 choke me
17067 #else
17068 $ac_func();
17069 #endif
17070
17071 ; return 0; }
17072 EOF
17073 if { (eval echo configure:17074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17074   rm -rf conftest*
17075   eval "ac_cv_func_$ac_func=yes"
17076 else
17077   echo "configure: failed program was:" >&5
17078   cat conftest.$ac_ext >&5
17079   rm -rf conftest*
17080   eval "ac_cv_func_$ac_func=no"
17081 fi
17082 rm -f conftest*
17083 fi
17084
17085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17086   echo "$ac_t""yes" 1>&6
17087     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17088   cat >> confdefs.h <<EOF
17089 #define $ac_tr_func 1
17090 EOF
17091  
17092 else
17093   echo "$ac_t""no" 1>&6
17094 fi
17095 done
17096     
17097   else
17098     
17099   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17100 echo "configure:17101: checking for _atan2l declaration" >&5
17101   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17102     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17103   echo $ac_n "(cached) $ac_c" 1>&6
17104 else
17105   
17106       
17107       ac_ext=C
17108 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17109 ac_cpp='$CXXCPP $CPPFLAGS'
17110 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17111 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17112 cross_compiling=$ac_cv_prog_cxx_cross
17113
17114       cat > conftest.$ac_ext <<EOF
17115 #line 17116 "configure"
17116 #include "confdefs.h"
17117 #include <math.h>
17118 int main() {
17119  _atan2l(0, 0);
17120 ; return 0; }
17121 EOF
17122 if { (eval echo configure:17123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17123   rm -rf conftest*
17124   glibcpp_cv_func__atan2l_use=yes
17125 else
17126   echo "configure: failed program was:" >&5
17127   cat conftest.$ac_ext >&5
17128   rm -rf conftest*
17129   glibcpp_cv_func__atan2l_use=no
17130 fi
17131 rm -f conftest*
17132       ac_ext=c
17133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17134 ac_cpp='$CPP $CPPFLAGS'
17135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17136 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17137 cross_compiling=$ac_cv_prog_cc_cross
17138
17139     
17140 fi
17141
17142   fi
17143   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17144
17145     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17146       for ac_func in _atan2l
17147 do
17148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17149 echo "configure:17150: checking for $ac_func" >&5
17150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17151   echo $ac_n "(cached) $ac_c" 1>&6
17152 else
17153   cat > conftest.$ac_ext <<EOF
17154 #line 17155 "configure"
17155 #include "confdefs.h"
17156 /* System header to define __stub macros and hopefully few prototypes,
17157     which can conflict with char $ac_func(); below.  */
17158 #include <assert.h>
17159 /* Override any gcc2 internal prototype to avoid an error.  */
17160 /* We use char because int might match the return type of a gcc2
17161     builtin and then its argument prototype would still apply.  */
17162 char $ac_func();
17163
17164 int main() {
17165
17166 /* The GNU C library defines this for functions which it implements
17167     to always fail with ENOSYS.  Some functions are actually named
17168     something starting with __ and the normal name is an alias.  */
17169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17170 choke me
17171 #else
17172 $ac_func();
17173 #endif
17174
17175 ; return 0; }
17176 EOF
17177 if { (eval echo configure:17178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17178   rm -rf conftest*
17179   eval "ac_cv_func_$ac_func=yes"
17180 else
17181   echo "configure: failed program was:" >&5
17182   cat conftest.$ac_ext >&5
17183   rm -rf conftest*
17184   eval "ac_cv_func_$ac_func=no"
17185 fi
17186 rm -f conftest*
17187 fi
17188
17189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17190   echo "$ac_t""yes" 1>&6
17191     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17192   cat >> confdefs.h <<EOF
17193 #define $ac_tr_func 1
17194 EOF
17195  
17196 else
17197   echo "$ac_t""no" 1>&6
17198 fi
17199 done
17200     
17201     fi
17202   fi
17203
17204   
17205   
17206   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17207 echo "configure:17208: checking for expl declaration" >&5
17208   if test x${glibcpp_cv_func_expl_use+set} != xset; then
17209     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17210   echo $ac_n "(cached) $ac_c" 1>&6
17211 else
17212   
17213       
17214       ac_ext=C
17215 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17216 ac_cpp='$CXXCPP $CPPFLAGS'
17217 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17218 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17219 cross_compiling=$ac_cv_prog_cxx_cross
17220
17221       cat > conftest.$ac_ext <<EOF
17222 #line 17223 "configure"
17223 #include "confdefs.h"
17224 #include <math.h>
17225                       #ifdef HAVE_IEEEFP_H
17226                       #include <ieeefp.h>
17227                       #endif
17228                      
17229 int main() {
17230  expl(0);
17231 ; return 0; }
17232 EOF
17233 if { (eval echo configure:17234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17234   rm -rf conftest*
17235   glibcpp_cv_func_expl_use=yes
17236 else
17237   echo "configure: failed program was:" >&5
17238   cat conftest.$ac_ext >&5
17239   rm -rf conftest*
17240   glibcpp_cv_func_expl_use=no
17241 fi
17242 rm -f conftest*
17243       ac_ext=c
17244 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17245 ac_cpp='$CPP $CPPFLAGS'
17246 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17247 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17248 cross_compiling=$ac_cv_prog_cc_cross
17249
17250     
17251 fi
17252
17253   fi
17254   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17255
17256   if test x$glibcpp_cv_func_expl_use = x"yes"; then
17257     for ac_func in expl
17258 do
17259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17260 echo "configure:17261: checking for $ac_func" >&5
17261 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17262   echo $ac_n "(cached) $ac_c" 1>&6
17263 else
17264   cat > conftest.$ac_ext <<EOF
17265 #line 17266 "configure"
17266 #include "confdefs.h"
17267 /* System header to define __stub macros and hopefully few prototypes,
17268     which can conflict with char $ac_func(); below.  */
17269 #include <assert.h>
17270 /* Override any gcc2 internal prototype to avoid an error.  */
17271 /* We use char because int might match the return type of a gcc2
17272     builtin and then its argument prototype would still apply.  */
17273 char $ac_func();
17274
17275 int main() {
17276
17277 /* The GNU C library defines this for functions which it implements
17278     to always fail with ENOSYS.  Some functions are actually named
17279     something starting with __ and the normal name is an alias.  */
17280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17281 choke me
17282 #else
17283 $ac_func();
17284 #endif
17285
17286 ; return 0; }
17287 EOF
17288 if { (eval echo configure:17289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17289   rm -rf conftest*
17290   eval "ac_cv_func_$ac_func=yes"
17291 else
17292   echo "configure: failed program was:" >&5
17293   cat conftest.$ac_ext >&5
17294   rm -rf conftest*
17295   eval "ac_cv_func_$ac_func=no"
17296 fi
17297 rm -f conftest*
17298 fi
17299
17300 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17301   echo "$ac_t""yes" 1>&6
17302     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17303   cat >> confdefs.h <<EOF
17304 #define $ac_tr_func 1
17305 EOF
17306  
17307 else
17308   echo "$ac_t""no" 1>&6
17309 fi
17310 done
17311     
17312   else
17313     
17314   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17315 echo "configure:17316: checking for _expl declaration" >&5
17316   if test x${glibcpp_cv_func__expl_use+set} != xset; then
17317     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17318   echo $ac_n "(cached) $ac_c" 1>&6
17319 else
17320   
17321       
17322       ac_ext=C
17323 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17324 ac_cpp='$CXXCPP $CPPFLAGS'
17325 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17326 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17327 cross_compiling=$ac_cv_prog_cxx_cross
17328
17329       cat > conftest.$ac_ext <<EOF
17330 #line 17331 "configure"
17331 #include "confdefs.h"
17332 #include <math.h>
17333                       #ifdef HAVE_IEEEFP_H
17334                       #include <ieeefp.h>
17335                       #endif
17336                      
17337 int main() {
17338  _expl(0);
17339 ; return 0; }
17340 EOF
17341 if { (eval echo configure:17342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17342   rm -rf conftest*
17343   glibcpp_cv_func__expl_use=yes
17344 else
17345   echo "configure: failed program was:" >&5
17346   cat conftest.$ac_ext >&5
17347   rm -rf conftest*
17348   glibcpp_cv_func__expl_use=no
17349 fi
17350 rm -f conftest*
17351       ac_ext=c
17352 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17353 ac_cpp='$CPP $CPPFLAGS'
17354 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17355 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17356 cross_compiling=$ac_cv_prog_cc_cross
17357
17358     
17359 fi
17360
17361   fi
17362   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17363
17364     if test x$glibcpp_cv_func__expl_use = x"yes"; then
17365       for ac_func in _expl
17366 do
17367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17368 echo "configure:17369: checking for $ac_func" >&5
17369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17370   echo $ac_n "(cached) $ac_c" 1>&6
17371 else
17372   cat > conftest.$ac_ext <<EOF
17373 #line 17374 "configure"
17374 #include "confdefs.h"
17375 /* System header to define __stub macros and hopefully few prototypes,
17376     which can conflict with char $ac_func(); below.  */
17377 #include <assert.h>
17378 /* Override any gcc2 internal prototype to avoid an error.  */
17379 /* We use char because int might match the return type of a gcc2
17380     builtin and then its argument prototype would still apply.  */
17381 char $ac_func();
17382
17383 int main() {
17384
17385 /* The GNU C library defines this for functions which it implements
17386     to always fail with ENOSYS.  Some functions are actually named
17387     something starting with __ and the normal name is an alias.  */
17388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17389 choke me
17390 #else
17391 $ac_func();
17392 #endif
17393
17394 ; return 0; }
17395 EOF
17396 if { (eval echo configure:17397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17397   rm -rf conftest*
17398   eval "ac_cv_func_$ac_func=yes"
17399 else
17400   echo "configure: failed program was:" >&5
17401   cat conftest.$ac_ext >&5
17402   rm -rf conftest*
17403   eval "ac_cv_func_$ac_func=no"
17404 fi
17405 rm -f conftest*
17406 fi
17407
17408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17409   echo "$ac_t""yes" 1>&6
17410     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17411   cat >> confdefs.h <<EOF
17412 #define $ac_tr_func 1
17413 EOF
17414  
17415 else
17416   echo "$ac_t""no" 1>&6
17417 fi
17418 done
17419     
17420     fi
17421   fi
17422
17423   
17424   
17425   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17426 echo "configure:17427: checking for fabsl declaration" >&5
17427   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17428     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17429   echo $ac_n "(cached) $ac_c" 1>&6
17430 else
17431   
17432       
17433       ac_ext=C
17434 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17435 ac_cpp='$CXXCPP $CPPFLAGS'
17436 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17437 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17438 cross_compiling=$ac_cv_prog_cxx_cross
17439
17440       cat > conftest.$ac_ext <<EOF
17441 #line 17442 "configure"
17442 #include "confdefs.h"
17443 #include <math.h>
17444                       #ifdef HAVE_IEEEFP_H
17445                       #include <ieeefp.h>
17446                       #endif
17447                      
17448 int main() {
17449  fabsl(0);
17450 ; return 0; }
17451 EOF
17452 if { (eval echo configure:17453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17453   rm -rf conftest*
17454   glibcpp_cv_func_fabsl_use=yes
17455 else
17456   echo "configure: failed program was:" >&5
17457   cat conftest.$ac_ext >&5
17458   rm -rf conftest*
17459   glibcpp_cv_func_fabsl_use=no
17460 fi
17461 rm -f conftest*
17462       ac_ext=c
17463 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17464 ac_cpp='$CPP $CPPFLAGS'
17465 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17466 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17467 cross_compiling=$ac_cv_prog_cc_cross
17468
17469     
17470 fi
17471
17472   fi
17473   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17474
17475   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17476     for ac_func in fabsl
17477 do
17478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17479 echo "configure:17480: checking for $ac_func" >&5
17480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17481   echo $ac_n "(cached) $ac_c" 1>&6
17482 else
17483   cat > conftest.$ac_ext <<EOF
17484 #line 17485 "configure"
17485 #include "confdefs.h"
17486 /* System header to define __stub macros and hopefully few prototypes,
17487     which can conflict with char $ac_func(); below.  */
17488 #include <assert.h>
17489 /* Override any gcc2 internal prototype to avoid an error.  */
17490 /* We use char because int might match the return type of a gcc2
17491     builtin and then its argument prototype would still apply.  */
17492 char $ac_func();
17493
17494 int main() {
17495
17496 /* The GNU C library defines this for functions which it implements
17497     to always fail with ENOSYS.  Some functions are actually named
17498     something starting with __ and the normal name is an alias.  */
17499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17500 choke me
17501 #else
17502 $ac_func();
17503 #endif
17504
17505 ; return 0; }
17506 EOF
17507 if { (eval echo configure:17508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17508   rm -rf conftest*
17509   eval "ac_cv_func_$ac_func=yes"
17510 else
17511   echo "configure: failed program was:" >&5
17512   cat conftest.$ac_ext >&5
17513   rm -rf conftest*
17514   eval "ac_cv_func_$ac_func=no"
17515 fi
17516 rm -f conftest*
17517 fi
17518
17519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17520   echo "$ac_t""yes" 1>&6
17521     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17522   cat >> confdefs.h <<EOF
17523 #define $ac_tr_func 1
17524 EOF
17525  
17526 else
17527   echo "$ac_t""no" 1>&6
17528 fi
17529 done
17530     
17531   else
17532     
17533   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17534 echo "configure:17535: checking for _fabsl declaration" >&5
17535   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17536     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17537   echo $ac_n "(cached) $ac_c" 1>&6
17538 else
17539   
17540       
17541       ac_ext=C
17542 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17543 ac_cpp='$CXXCPP $CPPFLAGS'
17544 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17545 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17546 cross_compiling=$ac_cv_prog_cxx_cross
17547
17548       cat > conftest.$ac_ext <<EOF
17549 #line 17550 "configure"
17550 #include "confdefs.h"
17551 #include <math.h>
17552                       #ifdef HAVE_IEEEFP_H
17553                       #include <ieeefp.h>
17554                       #endif
17555                      
17556 int main() {
17557  _fabsl(0);
17558 ; return 0; }
17559 EOF
17560 if { (eval echo configure:17561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17561   rm -rf conftest*
17562   glibcpp_cv_func__fabsl_use=yes
17563 else
17564   echo "configure: failed program was:" >&5
17565   cat conftest.$ac_ext >&5
17566   rm -rf conftest*
17567   glibcpp_cv_func__fabsl_use=no
17568 fi
17569 rm -f conftest*
17570       ac_ext=c
17571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17572 ac_cpp='$CPP $CPPFLAGS'
17573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17574 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17575 cross_compiling=$ac_cv_prog_cc_cross
17576
17577     
17578 fi
17579
17580   fi
17581   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17582
17583     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17584       for ac_func in _fabsl
17585 do
17586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17587 echo "configure:17588: checking for $ac_func" >&5
17588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17589   echo $ac_n "(cached) $ac_c" 1>&6
17590 else
17591   cat > conftest.$ac_ext <<EOF
17592 #line 17593 "configure"
17593 #include "confdefs.h"
17594 /* System header to define __stub macros and hopefully few prototypes,
17595     which can conflict with char $ac_func(); below.  */
17596 #include <assert.h>
17597 /* Override any gcc2 internal prototype to avoid an error.  */
17598 /* We use char because int might match the return type of a gcc2
17599     builtin and then its argument prototype would still apply.  */
17600 char $ac_func();
17601
17602 int main() {
17603
17604 /* The GNU C library defines this for functions which it implements
17605     to always fail with ENOSYS.  Some functions are actually named
17606     something starting with __ and the normal name is an alias.  */
17607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17608 choke me
17609 #else
17610 $ac_func();
17611 #endif
17612
17613 ; return 0; }
17614 EOF
17615 if { (eval echo configure:17616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17616   rm -rf conftest*
17617   eval "ac_cv_func_$ac_func=yes"
17618 else
17619   echo "configure: failed program was:" >&5
17620   cat conftest.$ac_ext >&5
17621   rm -rf conftest*
17622   eval "ac_cv_func_$ac_func=no"
17623 fi
17624 rm -f conftest*
17625 fi
17626
17627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17628   echo "$ac_t""yes" 1>&6
17629     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17630   cat >> confdefs.h <<EOF
17631 #define $ac_tr_func 1
17632 EOF
17633  
17634 else
17635   echo "$ac_t""no" 1>&6
17636 fi
17637 done
17638     
17639     fi
17640   fi
17641
17642   
17643   
17644   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17645 echo "configure:17646: checking for fmodl declaration" >&5
17646   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17647     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17648   echo $ac_n "(cached) $ac_c" 1>&6
17649 else
17650   
17651       
17652       ac_ext=C
17653 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17654 ac_cpp='$CXXCPP $CPPFLAGS'
17655 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17656 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17657 cross_compiling=$ac_cv_prog_cxx_cross
17658
17659       cat > conftest.$ac_ext <<EOF
17660 #line 17661 "configure"
17661 #include "confdefs.h"
17662 #include <math.h>
17663 int main() {
17664  fmodl(0, 0);
17665 ; return 0; }
17666 EOF
17667 if { (eval echo configure:17668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17668   rm -rf conftest*
17669   glibcpp_cv_func_fmodl_use=yes
17670 else
17671   echo "configure: failed program was:" >&5
17672   cat conftest.$ac_ext >&5
17673   rm -rf conftest*
17674   glibcpp_cv_func_fmodl_use=no
17675 fi
17676 rm -f conftest*
17677       ac_ext=c
17678 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17679 ac_cpp='$CPP $CPPFLAGS'
17680 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17681 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17682 cross_compiling=$ac_cv_prog_cc_cross
17683
17684     
17685 fi
17686
17687   fi
17688   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17689
17690   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17691     for ac_func in fmodl
17692 do
17693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17694 echo "configure:17695: checking for $ac_func" >&5
17695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17696   echo $ac_n "(cached) $ac_c" 1>&6
17697 else
17698   cat > conftest.$ac_ext <<EOF
17699 #line 17700 "configure"
17700 #include "confdefs.h"
17701 /* System header to define __stub macros and hopefully few prototypes,
17702     which can conflict with char $ac_func(); below.  */
17703 #include <assert.h>
17704 /* Override any gcc2 internal prototype to avoid an error.  */
17705 /* We use char because int might match the return type of a gcc2
17706     builtin and then its argument prototype would still apply.  */
17707 char $ac_func();
17708
17709 int main() {
17710
17711 /* The GNU C library defines this for functions which it implements
17712     to always fail with ENOSYS.  Some functions are actually named
17713     something starting with __ and the normal name is an alias.  */
17714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17715 choke me
17716 #else
17717 $ac_func();
17718 #endif
17719
17720 ; return 0; }
17721 EOF
17722 if { (eval echo configure:17723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17723   rm -rf conftest*
17724   eval "ac_cv_func_$ac_func=yes"
17725 else
17726   echo "configure: failed program was:" >&5
17727   cat conftest.$ac_ext >&5
17728   rm -rf conftest*
17729   eval "ac_cv_func_$ac_func=no"
17730 fi
17731 rm -f conftest*
17732 fi
17733
17734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17735   echo "$ac_t""yes" 1>&6
17736     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17737   cat >> confdefs.h <<EOF
17738 #define $ac_tr_func 1
17739 EOF
17740  
17741 else
17742   echo "$ac_t""no" 1>&6
17743 fi
17744 done
17745     
17746   else
17747     
17748   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17749 echo "configure:17750: checking for _fmodl declaration" >&5
17750   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17751     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17752   echo $ac_n "(cached) $ac_c" 1>&6
17753 else
17754   
17755       
17756       ac_ext=C
17757 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17758 ac_cpp='$CXXCPP $CPPFLAGS'
17759 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17760 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17761 cross_compiling=$ac_cv_prog_cxx_cross
17762
17763       cat > conftest.$ac_ext <<EOF
17764 #line 17765 "configure"
17765 #include "confdefs.h"
17766 #include <math.h>
17767 int main() {
17768  _fmodl(0, 0);
17769 ; return 0; }
17770 EOF
17771 if { (eval echo configure:17772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17772   rm -rf conftest*
17773   glibcpp_cv_func__fmodl_use=yes
17774 else
17775   echo "configure: failed program was:" >&5
17776   cat conftest.$ac_ext >&5
17777   rm -rf conftest*
17778   glibcpp_cv_func__fmodl_use=no
17779 fi
17780 rm -f conftest*
17781       ac_ext=c
17782 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17783 ac_cpp='$CPP $CPPFLAGS'
17784 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17785 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17786 cross_compiling=$ac_cv_prog_cc_cross
17787
17788     
17789 fi
17790
17791   fi
17792   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17793
17794     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17795       for ac_func in _fmodl
17796 do
17797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17798 echo "configure:17799: checking for $ac_func" >&5
17799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17800   echo $ac_n "(cached) $ac_c" 1>&6
17801 else
17802   cat > conftest.$ac_ext <<EOF
17803 #line 17804 "configure"
17804 #include "confdefs.h"
17805 /* System header to define __stub macros and hopefully few prototypes,
17806     which can conflict with char $ac_func(); below.  */
17807 #include <assert.h>
17808 /* Override any gcc2 internal prototype to avoid an error.  */
17809 /* We use char because int might match the return type of a gcc2
17810     builtin and then its argument prototype would still apply.  */
17811 char $ac_func();
17812
17813 int main() {
17814
17815 /* The GNU C library defines this for functions which it implements
17816     to always fail with ENOSYS.  Some functions are actually named
17817     something starting with __ and the normal name is an alias.  */
17818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17819 choke me
17820 #else
17821 $ac_func();
17822 #endif
17823
17824 ; return 0; }
17825 EOF
17826 if { (eval echo configure:17827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17827   rm -rf conftest*
17828   eval "ac_cv_func_$ac_func=yes"
17829 else
17830   echo "configure: failed program was:" >&5
17831   cat conftest.$ac_ext >&5
17832   rm -rf conftest*
17833   eval "ac_cv_func_$ac_func=no"
17834 fi
17835 rm -f conftest*
17836 fi
17837
17838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17839   echo "$ac_t""yes" 1>&6
17840     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17841   cat >> confdefs.h <<EOF
17842 #define $ac_tr_func 1
17843 EOF
17844  
17845 else
17846   echo "$ac_t""no" 1>&6
17847 fi
17848 done
17849     
17850     fi
17851   fi
17852
17853   
17854   
17855   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17856 echo "configure:17857: checking for frexpl declaration" >&5
17857   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17858     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17859   echo $ac_n "(cached) $ac_c" 1>&6
17860 else
17861   
17862       
17863       ac_ext=C
17864 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17865 ac_cpp='$CXXCPP $CPPFLAGS'
17866 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17867 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17868 cross_compiling=$ac_cv_prog_cxx_cross
17869
17870       cat > conftest.$ac_ext <<EOF
17871 #line 17872 "configure"
17872 #include "confdefs.h"
17873 #include <math.h>
17874 int main() {
17875  frexpl(0, 0);
17876 ; return 0; }
17877 EOF
17878 if { (eval echo configure:17879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17879   rm -rf conftest*
17880   glibcpp_cv_func_frexpl_use=yes
17881 else
17882   echo "configure: failed program was:" >&5
17883   cat conftest.$ac_ext >&5
17884   rm -rf conftest*
17885   glibcpp_cv_func_frexpl_use=no
17886 fi
17887 rm -f conftest*
17888       ac_ext=c
17889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17890 ac_cpp='$CPP $CPPFLAGS'
17891 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17892 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17893 cross_compiling=$ac_cv_prog_cc_cross
17894
17895     
17896 fi
17897
17898   fi
17899   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17900
17901   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17902     for ac_func in frexpl
17903 do
17904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17905 echo "configure:17906: checking for $ac_func" >&5
17906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17907   echo $ac_n "(cached) $ac_c" 1>&6
17908 else
17909   cat > conftest.$ac_ext <<EOF
17910 #line 17911 "configure"
17911 #include "confdefs.h"
17912 /* System header to define __stub macros and hopefully few prototypes,
17913     which can conflict with char $ac_func(); below.  */
17914 #include <assert.h>
17915 /* Override any gcc2 internal prototype to avoid an error.  */
17916 /* We use char because int might match the return type of a gcc2
17917     builtin and then its argument prototype would still apply.  */
17918 char $ac_func();
17919
17920 int main() {
17921
17922 /* The GNU C library defines this for functions which it implements
17923     to always fail with ENOSYS.  Some functions are actually named
17924     something starting with __ and the normal name is an alias.  */
17925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17926 choke me
17927 #else
17928 $ac_func();
17929 #endif
17930
17931 ; return 0; }
17932 EOF
17933 if { (eval echo configure:17934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17934   rm -rf conftest*
17935   eval "ac_cv_func_$ac_func=yes"
17936 else
17937   echo "configure: failed program was:" >&5
17938   cat conftest.$ac_ext >&5
17939   rm -rf conftest*
17940   eval "ac_cv_func_$ac_func=no"
17941 fi
17942 rm -f conftest*
17943 fi
17944
17945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17946   echo "$ac_t""yes" 1>&6
17947     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17948   cat >> confdefs.h <<EOF
17949 #define $ac_tr_func 1
17950 EOF
17951  
17952 else
17953   echo "$ac_t""no" 1>&6
17954 fi
17955 done
17956     
17957   else
17958     
17959   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
17960 echo "configure:17961: checking for _frexpl declaration" >&5
17961   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
17962     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
17963   echo $ac_n "(cached) $ac_c" 1>&6
17964 else
17965   
17966       
17967       ac_ext=C
17968 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17969 ac_cpp='$CXXCPP $CPPFLAGS'
17970 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17971 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17972 cross_compiling=$ac_cv_prog_cxx_cross
17973
17974       cat > conftest.$ac_ext <<EOF
17975 #line 17976 "configure"
17976 #include "confdefs.h"
17977 #include <math.h>
17978 int main() {
17979  _frexpl(0, 0);
17980 ; return 0; }
17981 EOF
17982 if { (eval echo configure:17983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17983   rm -rf conftest*
17984   glibcpp_cv_func__frexpl_use=yes
17985 else
17986   echo "configure: failed program was:" >&5
17987   cat conftest.$ac_ext >&5
17988   rm -rf conftest*
17989   glibcpp_cv_func__frexpl_use=no
17990 fi
17991 rm -f conftest*
17992       ac_ext=c
17993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17994 ac_cpp='$CPP $CPPFLAGS'
17995 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17996 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17997 cross_compiling=$ac_cv_prog_cc_cross
17998
17999     
18000 fi
18001
18002   fi
18003   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
18004
18005     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
18006       for ac_func in _frexpl
18007 do
18008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18009 echo "configure:18010: checking for $ac_func" >&5
18010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18011   echo $ac_n "(cached) $ac_c" 1>&6
18012 else
18013   cat > conftest.$ac_ext <<EOF
18014 #line 18015 "configure"
18015 #include "confdefs.h"
18016 /* System header to define __stub macros and hopefully few prototypes,
18017     which can conflict with char $ac_func(); below.  */
18018 #include <assert.h>
18019 /* Override any gcc2 internal prototype to avoid an error.  */
18020 /* We use char because int might match the return type of a gcc2
18021     builtin and then its argument prototype would still apply.  */
18022 char $ac_func();
18023
18024 int main() {
18025
18026 /* The GNU C library defines this for functions which it implements
18027     to always fail with ENOSYS.  Some functions are actually named
18028     something starting with __ and the normal name is an alias.  */
18029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18030 choke me
18031 #else
18032 $ac_func();
18033 #endif
18034
18035 ; return 0; }
18036 EOF
18037 if { (eval echo configure:18038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18038   rm -rf conftest*
18039   eval "ac_cv_func_$ac_func=yes"
18040 else
18041   echo "configure: failed program was:" >&5
18042   cat conftest.$ac_ext >&5
18043   rm -rf conftest*
18044   eval "ac_cv_func_$ac_func=no"
18045 fi
18046 rm -f conftest*
18047 fi
18048
18049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18050   echo "$ac_t""yes" 1>&6
18051     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18052   cat >> confdefs.h <<EOF
18053 #define $ac_tr_func 1
18054 EOF
18055  
18056 else
18057   echo "$ac_t""no" 1>&6
18058 fi
18059 done
18060     
18061     fi
18062   fi
18063
18064   
18065   
18066   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18067 echo "configure:18068: checking for hypotl declaration" >&5
18068   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18069     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18070   echo $ac_n "(cached) $ac_c" 1>&6
18071 else
18072   
18073       
18074       ac_ext=C
18075 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18076 ac_cpp='$CXXCPP $CPPFLAGS'
18077 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18078 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18079 cross_compiling=$ac_cv_prog_cxx_cross
18080
18081       cat > conftest.$ac_ext <<EOF
18082 #line 18083 "configure"
18083 #include "confdefs.h"
18084 #include <math.h>
18085 int main() {
18086  hypotl(0, 0);
18087 ; return 0; }
18088 EOF
18089 if { (eval echo configure:18090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18090   rm -rf conftest*
18091   glibcpp_cv_func_hypotl_use=yes
18092 else
18093   echo "configure: failed program was:" >&5
18094   cat conftest.$ac_ext >&5
18095   rm -rf conftest*
18096   glibcpp_cv_func_hypotl_use=no
18097 fi
18098 rm -f conftest*
18099       ac_ext=c
18100 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18101 ac_cpp='$CPP $CPPFLAGS'
18102 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18103 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18104 cross_compiling=$ac_cv_prog_cc_cross
18105
18106     
18107 fi
18108
18109   fi
18110   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18111
18112   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18113     for ac_func in hypotl
18114 do
18115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18116 echo "configure:18117: checking for $ac_func" >&5
18117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18118   echo $ac_n "(cached) $ac_c" 1>&6
18119 else
18120   cat > conftest.$ac_ext <<EOF
18121 #line 18122 "configure"
18122 #include "confdefs.h"
18123 /* System header to define __stub macros and hopefully few prototypes,
18124     which can conflict with char $ac_func(); below.  */
18125 #include <assert.h>
18126 /* Override any gcc2 internal prototype to avoid an error.  */
18127 /* We use char because int might match the return type of a gcc2
18128     builtin and then its argument prototype would still apply.  */
18129 char $ac_func();
18130
18131 int main() {
18132
18133 /* The GNU C library defines this for functions which it implements
18134     to always fail with ENOSYS.  Some functions are actually named
18135     something starting with __ and the normal name is an alias.  */
18136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18137 choke me
18138 #else
18139 $ac_func();
18140 #endif
18141
18142 ; return 0; }
18143 EOF
18144 if { (eval echo configure:18145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18145   rm -rf conftest*
18146   eval "ac_cv_func_$ac_func=yes"
18147 else
18148   echo "configure: failed program was:" >&5
18149   cat conftest.$ac_ext >&5
18150   rm -rf conftest*
18151   eval "ac_cv_func_$ac_func=no"
18152 fi
18153 rm -f conftest*
18154 fi
18155
18156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18157   echo "$ac_t""yes" 1>&6
18158     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18159   cat >> confdefs.h <<EOF
18160 #define $ac_tr_func 1
18161 EOF
18162  
18163 else
18164   echo "$ac_t""no" 1>&6
18165 fi
18166 done
18167     
18168   else
18169     
18170   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18171 echo "configure:18172: checking for _hypotl declaration" >&5
18172   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18173     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18174   echo $ac_n "(cached) $ac_c" 1>&6
18175 else
18176   
18177       
18178       ac_ext=C
18179 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18180 ac_cpp='$CXXCPP $CPPFLAGS'
18181 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18182 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18183 cross_compiling=$ac_cv_prog_cxx_cross
18184
18185       cat > conftest.$ac_ext <<EOF
18186 #line 18187 "configure"
18187 #include "confdefs.h"
18188 #include <math.h>
18189 int main() {
18190  _hypotl(0, 0);
18191 ; return 0; }
18192 EOF
18193 if { (eval echo configure:18194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18194   rm -rf conftest*
18195   glibcpp_cv_func__hypotl_use=yes
18196 else
18197   echo "configure: failed program was:" >&5
18198   cat conftest.$ac_ext >&5
18199   rm -rf conftest*
18200   glibcpp_cv_func__hypotl_use=no
18201 fi
18202 rm -f conftest*
18203       ac_ext=c
18204 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18205 ac_cpp='$CPP $CPPFLAGS'
18206 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18207 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18208 cross_compiling=$ac_cv_prog_cc_cross
18209
18210     
18211 fi
18212
18213   fi
18214   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18215
18216     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18217       for ac_func in _hypotl
18218 do
18219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18220 echo "configure:18221: checking for $ac_func" >&5
18221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18222   echo $ac_n "(cached) $ac_c" 1>&6
18223 else
18224   cat > conftest.$ac_ext <<EOF
18225 #line 18226 "configure"
18226 #include "confdefs.h"
18227 /* System header to define __stub macros and hopefully few prototypes,
18228     which can conflict with char $ac_func(); below.  */
18229 #include <assert.h>
18230 /* Override any gcc2 internal prototype to avoid an error.  */
18231 /* We use char because int might match the return type of a gcc2
18232     builtin and then its argument prototype would still apply.  */
18233 char $ac_func();
18234
18235 int main() {
18236
18237 /* The GNU C library defines this for functions which it implements
18238     to always fail with ENOSYS.  Some functions are actually named
18239     something starting with __ and the normal name is an alias.  */
18240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18241 choke me
18242 #else
18243 $ac_func();
18244 #endif
18245
18246 ; return 0; }
18247 EOF
18248 if { (eval echo configure:18249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18249   rm -rf conftest*
18250   eval "ac_cv_func_$ac_func=yes"
18251 else
18252   echo "configure: failed program was:" >&5
18253   cat conftest.$ac_ext >&5
18254   rm -rf conftest*
18255   eval "ac_cv_func_$ac_func=no"
18256 fi
18257 rm -f conftest*
18258 fi
18259
18260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18261   echo "$ac_t""yes" 1>&6
18262     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18263   cat >> confdefs.h <<EOF
18264 #define $ac_tr_func 1
18265 EOF
18266  
18267 else
18268   echo "$ac_t""no" 1>&6
18269 fi
18270 done
18271     
18272     fi
18273   fi
18274
18275   
18276   
18277   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18278 echo "configure:18279: checking for ldexpl declaration" >&5
18279   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18280     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18281   echo $ac_n "(cached) $ac_c" 1>&6
18282 else
18283   
18284       
18285       ac_ext=C
18286 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18287 ac_cpp='$CXXCPP $CPPFLAGS'
18288 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18289 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18290 cross_compiling=$ac_cv_prog_cxx_cross
18291
18292       cat > conftest.$ac_ext <<EOF
18293 #line 18294 "configure"
18294 #include "confdefs.h"
18295 #include <math.h>
18296 int main() {
18297  ldexpl(0, 0);
18298 ; return 0; }
18299 EOF
18300 if { (eval echo configure:18301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18301   rm -rf conftest*
18302   glibcpp_cv_func_ldexpl_use=yes
18303 else
18304   echo "configure: failed program was:" >&5
18305   cat conftest.$ac_ext >&5
18306   rm -rf conftest*
18307   glibcpp_cv_func_ldexpl_use=no
18308 fi
18309 rm -f conftest*
18310       ac_ext=c
18311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18312 ac_cpp='$CPP $CPPFLAGS'
18313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18315 cross_compiling=$ac_cv_prog_cc_cross
18316
18317     
18318 fi
18319
18320   fi
18321   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18322
18323   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18324     for ac_func in ldexpl
18325 do
18326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18327 echo "configure:18328: checking for $ac_func" >&5
18328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18329   echo $ac_n "(cached) $ac_c" 1>&6
18330 else
18331   cat > conftest.$ac_ext <<EOF
18332 #line 18333 "configure"
18333 #include "confdefs.h"
18334 /* System header to define __stub macros and hopefully few prototypes,
18335     which can conflict with char $ac_func(); below.  */
18336 #include <assert.h>
18337 /* Override any gcc2 internal prototype to avoid an error.  */
18338 /* We use char because int might match the return type of a gcc2
18339     builtin and then its argument prototype would still apply.  */
18340 char $ac_func();
18341
18342 int main() {
18343
18344 /* The GNU C library defines this for functions which it implements
18345     to always fail with ENOSYS.  Some functions are actually named
18346     something starting with __ and the normal name is an alias.  */
18347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18348 choke me
18349 #else
18350 $ac_func();
18351 #endif
18352
18353 ; return 0; }
18354 EOF
18355 if { (eval echo configure:18356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18356   rm -rf conftest*
18357   eval "ac_cv_func_$ac_func=yes"
18358 else
18359   echo "configure: failed program was:" >&5
18360   cat conftest.$ac_ext >&5
18361   rm -rf conftest*
18362   eval "ac_cv_func_$ac_func=no"
18363 fi
18364 rm -f conftest*
18365 fi
18366
18367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18368   echo "$ac_t""yes" 1>&6
18369     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18370   cat >> confdefs.h <<EOF
18371 #define $ac_tr_func 1
18372 EOF
18373  
18374 else
18375   echo "$ac_t""no" 1>&6
18376 fi
18377 done
18378     
18379   else
18380     
18381   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18382 echo "configure:18383: checking for _ldexpl declaration" >&5
18383   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18384     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18385   echo $ac_n "(cached) $ac_c" 1>&6
18386 else
18387   
18388       
18389       ac_ext=C
18390 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18391 ac_cpp='$CXXCPP $CPPFLAGS'
18392 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18393 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18394 cross_compiling=$ac_cv_prog_cxx_cross
18395
18396       cat > conftest.$ac_ext <<EOF
18397 #line 18398 "configure"
18398 #include "confdefs.h"
18399 #include <math.h>
18400 int main() {
18401  _ldexpl(0, 0);
18402 ; return 0; }
18403 EOF
18404 if { (eval echo configure:18405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18405   rm -rf conftest*
18406   glibcpp_cv_func__ldexpl_use=yes
18407 else
18408   echo "configure: failed program was:" >&5
18409   cat conftest.$ac_ext >&5
18410   rm -rf conftest*
18411   glibcpp_cv_func__ldexpl_use=no
18412 fi
18413 rm -f conftest*
18414       ac_ext=c
18415 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18416 ac_cpp='$CPP $CPPFLAGS'
18417 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18418 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18419 cross_compiling=$ac_cv_prog_cc_cross
18420
18421     
18422 fi
18423
18424   fi
18425   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18426
18427     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18428       for ac_func in _ldexpl
18429 do
18430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18431 echo "configure:18432: checking for $ac_func" >&5
18432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18433   echo $ac_n "(cached) $ac_c" 1>&6
18434 else
18435   cat > conftest.$ac_ext <<EOF
18436 #line 18437 "configure"
18437 #include "confdefs.h"
18438 /* System header to define __stub macros and hopefully few prototypes,
18439     which can conflict with char $ac_func(); below.  */
18440 #include <assert.h>
18441 /* Override any gcc2 internal prototype to avoid an error.  */
18442 /* We use char because int might match the return type of a gcc2
18443     builtin and then its argument prototype would still apply.  */
18444 char $ac_func();
18445
18446 int main() {
18447
18448 /* The GNU C library defines this for functions which it implements
18449     to always fail with ENOSYS.  Some functions are actually named
18450     something starting with __ and the normal name is an alias.  */
18451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18452 choke me
18453 #else
18454 $ac_func();
18455 #endif
18456
18457 ; return 0; }
18458 EOF
18459 if { (eval echo configure:18460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18460   rm -rf conftest*
18461   eval "ac_cv_func_$ac_func=yes"
18462 else
18463   echo "configure: failed program was:" >&5
18464   cat conftest.$ac_ext >&5
18465   rm -rf conftest*
18466   eval "ac_cv_func_$ac_func=no"
18467 fi
18468 rm -f conftest*
18469 fi
18470
18471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18472   echo "$ac_t""yes" 1>&6
18473     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18474   cat >> confdefs.h <<EOF
18475 #define $ac_tr_func 1
18476 EOF
18477  
18478 else
18479   echo "$ac_t""no" 1>&6
18480 fi
18481 done
18482     
18483     fi
18484   fi
18485
18486   
18487   
18488   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18489 echo "configure:18490: checking for logl declaration" >&5
18490   if test x${glibcpp_cv_func_logl_use+set} != xset; then
18491     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18492   echo $ac_n "(cached) $ac_c" 1>&6
18493 else
18494   
18495       
18496       ac_ext=C
18497 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18498 ac_cpp='$CXXCPP $CPPFLAGS'
18499 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18500 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18501 cross_compiling=$ac_cv_prog_cxx_cross
18502
18503       cat > conftest.$ac_ext <<EOF
18504 #line 18505 "configure"
18505 #include "confdefs.h"
18506 #include <math.h>
18507                       #ifdef HAVE_IEEEFP_H
18508                       #include <ieeefp.h>
18509                       #endif
18510                      
18511 int main() {
18512  logl(0);
18513 ; return 0; }
18514 EOF
18515 if { (eval echo configure:18516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18516   rm -rf conftest*
18517   glibcpp_cv_func_logl_use=yes
18518 else
18519   echo "configure: failed program was:" >&5
18520   cat conftest.$ac_ext >&5
18521   rm -rf conftest*
18522   glibcpp_cv_func_logl_use=no
18523 fi
18524 rm -f conftest*
18525       ac_ext=c
18526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18527 ac_cpp='$CPP $CPPFLAGS'
18528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18529 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18530 cross_compiling=$ac_cv_prog_cc_cross
18531
18532     
18533 fi
18534
18535   fi
18536   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18537
18538   if test x$glibcpp_cv_func_logl_use = x"yes"; then
18539     for ac_func in logl
18540 do
18541 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18542 echo "configure:18543: checking for $ac_func" >&5
18543 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18544   echo $ac_n "(cached) $ac_c" 1>&6
18545 else
18546   cat > conftest.$ac_ext <<EOF
18547 #line 18548 "configure"
18548 #include "confdefs.h"
18549 /* System header to define __stub macros and hopefully few prototypes,
18550     which can conflict with char $ac_func(); below.  */
18551 #include <assert.h>
18552 /* Override any gcc2 internal prototype to avoid an error.  */
18553 /* We use char because int might match the return type of a gcc2
18554     builtin and then its argument prototype would still apply.  */
18555 char $ac_func();
18556
18557 int main() {
18558
18559 /* The GNU C library defines this for functions which it implements
18560     to always fail with ENOSYS.  Some functions are actually named
18561     something starting with __ and the normal name is an alias.  */
18562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18563 choke me
18564 #else
18565 $ac_func();
18566 #endif
18567
18568 ; return 0; }
18569 EOF
18570 if { (eval echo configure:18571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18571   rm -rf conftest*
18572   eval "ac_cv_func_$ac_func=yes"
18573 else
18574   echo "configure: failed program was:" >&5
18575   cat conftest.$ac_ext >&5
18576   rm -rf conftest*
18577   eval "ac_cv_func_$ac_func=no"
18578 fi
18579 rm -f conftest*
18580 fi
18581
18582 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18583   echo "$ac_t""yes" 1>&6
18584     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18585   cat >> confdefs.h <<EOF
18586 #define $ac_tr_func 1
18587 EOF
18588  
18589 else
18590   echo "$ac_t""no" 1>&6
18591 fi
18592 done
18593     
18594   else
18595     
18596   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18597 echo "configure:18598: checking for _logl declaration" >&5
18598   if test x${glibcpp_cv_func__logl_use+set} != xset; then
18599     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18600   echo $ac_n "(cached) $ac_c" 1>&6
18601 else
18602   
18603       
18604       ac_ext=C
18605 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18606 ac_cpp='$CXXCPP $CPPFLAGS'
18607 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18608 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18609 cross_compiling=$ac_cv_prog_cxx_cross
18610
18611       cat > conftest.$ac_ext <<EOF
18612 #line 18613 "configure"
18613 #include "confdefs.h"
18614 #include <math.h>
18615                       #ifdef HAVE_IEEEFP_H
18616                       #include <ieeefp.h>
18617                       #endif
18618                      
18619 int main() {
18620  _logl(0);
18621 ; return 0; }
18622 EOF
18623 if { (eval echo configure:18624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18624   rm -rf conftest*
18625   glibcpp_cv_func__logl_use=yes
18626 else
18627   echo "configure: failed program was:" >&5
18628   cat conftest.$ac_ext >&5
18629   rm -rf conftest*
18630   glibcpp_cv_func__logl_use=no
18631 fi
18632 rm -f conftest*
18633       ac_ext=c
18634 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18635 ac_cpp='$CPP $CPPFLAGS'
18636 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18637 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18638 cross_compiling=$ac_cv_prog_cc_cross
18639
18640     
18641 fi
18642
18643   fi
18644   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18645
18646     if test x$glibcpp_cv_func__logl_use = x"yes"; then
18647       for ac_func in _logl
18648 do
18649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18650 echo "configure:18651: checking for $ac_func" >&5
18651 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18652   echo $ac_n "(cached) $ac_c" 1>&6
18653 else
18654   cat > conftest.$ac_ext <<EOF
18655 #line 18656 "configure"
18656 #include "confdefs.h"
18657 /* System header to define __stub macros and hopefully few prototypes,
18658     which can conflict with char $ac_func(); below.  */
18659 #include <assert.h>
18660 /* Override any gcc2 internal prototype to avoid an error.  */
18661 /* We use char because int might match the return type of a gcc2
18662     builtin and then its argument prototype would still apply.  */
18663 char $ac_func();
18664
18665 int main() {
18666
18667 /* The GNU C library defines this for functions which it implements
18668     to always fail with ENOSYS.  Some functions are actually named
18669     something starting with __ and the normal name is an alias.  */
18670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18671 choke me
18672 #else
18673 $ac_func();
18674 #endif
18675
18676 ; return 0; }
18677 EOF
18678 if { (eval echo configure:18679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18679   rm -rf conftest*
18680   eval "ac_cv_func_$ac_func=yes"
18681 else
18682   echo "configure: failed program was:" >&5
18683   cat conftest.$ac_ext >&5
18684   rm -rf conftest*
18685   eval "ac_cv_func_$ac_func=no"
18686 fi
18687 rm -f conftest*
18688 fi
18689
18690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18691   echo "$ac_t""yes" 1>&6
18692     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18693   cat >> confdefs.h <<EOF
18694 #define $ac_tr_func 1
18695 EOF
18696  
18697 else
18698   echo "$ac_t""no" 1>&6
18699 fi
18700 done
18701     
18702     fi
18703   fi
18704
18705   
18706   
18707   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18708 echo "configure:18709: checking for log10l declaration" >&5
18709   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18710     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18711   echo $ac_n "(cached) $ac_c" 1>&6
18712 else
18713   
18714       
18715       ac_ext=C
18716 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18717 ac_cpp='$CXXCPP $CPPFLAGS'
18718 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18719 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18720 cross_compiling=$ac_cv_prog_cxx_cross
18721
18722       cat > conftest.$ac_ext <<EOF
18723 #line 18724 "configure"
18724 #include "confdefs.h"
18725 #include <math.h>
18726                       #ifdef HAVE_IEEEFP_H
18727                       #include <ieeefp.h>
18728                       #endif
18729                      
18730 int main() {
18731  log10l(0);
18732 ; return 0; }
18733 EOF
18734 if { (eval echo configure:18735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18735   rm -rf conftest*
18736   glibcpp_cv_func_log10l_use=yes
18737 else
18738   echo "configure: failed program was:" >&5
18739   cat conftest.$ac_ext >&5
18740   rm -rf conftest*
18741   glibcpp_cv_func_log10l_use=no
18742 fi
18743 rm -f conftest*
18744       ac_ext=c
18745 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18746 ac_cpp='$CPP $CPPFLAGS'
18747 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18748 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18749 cross_compiling=$ac_cv_prog_cc_cross
18750
18751     
18752 fi
18753
18754   fi
18755   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18756
18757   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18758     for ac_func in log10l
18759 do
18760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18761 echo "configure:18762: checking for $ac_func" >&5
18762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18763   echo $ac_n "(cached) $ac_c" 1>&6
18764 else
18765   cat > conftest.$ac_ext <<EOF
18766 #line 18767 "configure"
18767 #include "confdefs.h"
18768 /* System header to define __stub macros and hopefully few prototypes,
18769     which can conflict with char $ac_func(); below.  */
18770 #include <assert.h>
18771 /* Override any gcc2 internal prototype to avoid an error.  */
18772 /* We use char because int might match the return type of a gcc2
18773     builtin and then its argument prototype would still apply.  */
18774 char $ac_func();
18775
18776 int main() {
18777
18778 /* The GNU C library defines this for functions which it implements
18779     to always fail with ENOSYS.  Some functions are actually named
18780     something starting with __ and the normal name is an alias.  */
18781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18782 choke me
18783 #else
18784 $ac_func();
18785 #endif
18786
18787 ; return 0; }
18788 EOF
18789 if { (eval echo configure:18790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18790   rm -rf conftest*
18791   eval "ac_cv_func_$ac_func=yes"
18792 else
18793   echo "configure: failed program was:" >&5
18794   cat conftest.$ac_ext >&5
18795   rm -rf conftest*
18796   eval "ac_cv_func_$ac_func=no"
18797 fi
18798 rm -f conftest*
18799 fi
18800
18801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18802   echo "$ac_t""yes" 1>&6
18803     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18804   cat >> confdefs.h <<EOF
18805 #define $ac_tr_func 1
18806 EOF
18807  
18808 else
18809   echo "$ac_t""no" 1>&6
18810 fi
18811 done
18812     
18813   else
18814     
18815   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18816 echo "configure:18817: checking for _log10l declaration" >&5
18817   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18818     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18819   echo $ac_n "(cached) $ac_c" 1>&6
18820 else
18821   
18822       
18823       ac_ext=C
18824 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18825 ac_cpp='$CXXCPP $CPPFLAGS'
18826 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18827 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18828 cross_compiling=$ac_cv_prog_cxx_cross
18829
18830       cat > conftest.$ac_ext <<EOF
18831 #line 18832 "configure"
18832 #include "confdefs.h"
18833 #include <math.h>
18834                       #ifdef HAVE_IEEEFP_H
18835                       #include <ieeefp.h>
18836                       #endif
18837                      
18838 int main() {
18839  _log10l(0);
18840 ; return 0; }
18841 EOF
18842 if { (eval echo configure:18843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18843   rm -rf conftest*
18844   glibcpp_cv_func__log10l_use=yes
18845 else
18846   echo "configure: failed program was:" >&5
18847   cat conftest.$ac_ext >&5
18848   rm -rf conftest*
18849   glibcpp_cv_func__log10l_use=no
18850 fi
18851 rm -f conftest*
18852       ac_ext=c
18853 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18854 ac_cpp='$CPP $CPPFLAGS'
18855 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18856 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18857 cross_compiling=$ac_cv_prog_cc_cross
18858
18859     
18860 fi
18861
18862   fi
18863   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18864
18865     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18866       for ac_func in _log10l
18867 do
18868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18869 echo "configure:18870: checking for $ac_func" >&5
18870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18871   echo $ac_n "(cached) $ac_c" 1>&6
18872 else
18873   cat > conftest.$ac_ext <<EOF
18874 #line 18875 "configure"
18875 #include "confdefs.h"
18876 /* System header to define __stub macros and hopefully few prototypes,
18877     which can conflict with char $ac_func(); below.  */
18878 #include <assert.h>
18879 /* Override any gcc2 internal prototype to avoid an error.  */
18880 /* We use char because int might match the return type of a gcc2
18881     builtin and then its argument prototype would still apply.  */
18882 char $ac_func();
18883
18884 int main() {
18885
18886 /* The GNU C library defines this for functions which it implements
18887     to always fail with ENOSYS.  Some functions are actually named
18888     something starting with __ and the normal name is an alias.  */
18889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18890 choke me
18891 #else
18892 $ac_func();
18893 #endif
18894
18895 ; return 0; }
18896 EOF
18897 if { (eval echo configure:18898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18898   rm -rf conftest*
18899   eval "ac_cv_func_$ac_func=yes"
18900 else
18901   echo "configure: failed program was:" >&5
18902   cat conftest.$ac_ext >&5
18903   rm -rf conftest*
18904   eval "ac_cv_func_$ac_func=no"
18905 fi
18906 rm -f conftest*
18907 fi
18908
18909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18910   echo "$ac_t""yes" 1>&6
18911     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18912   cat >> confdefs.h <<EOF
18913 #define $ac_tr_func 1
18914 EOF
18915  
18916 else
18917   echo "$ac_t""no" 1>&6
18918 fi
18919 done
18920     
18921     fi
18922   fi
18923
18924   
18925   
18926   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
18927 echo "configure:18928: checking for modfl declaration" >&5
18928   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
18929     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
18930   echo $ac_n "(cached) $ac_c" 1>&6
18931 else
18932   
18933       
18934       ac_ext=C
18935 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18936 ac_cpp='$CXXCPP $CPPFLAGS'
18937 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18938 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18939 cross_compiling=$ac_cv_prog_cxx_cross
18940
18941       cat > conftest.$ac_ext <<EOF
18942 #line 18943 "configure"
18943 #include "confdefs.h"
18944 #include <math.h>
18945 int main() {
18946  modfl(0, 0);
18947 ; return 0; }
18948 EOF
18949 if { (eval echo configure:18950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18950   rm -rf conftest*
18951   glibcpp_cv_func_modfl_use=yes
18952 else
18953   echo "configure: failed program was:" >&5
18954   cat conftest.$ac_ext >&5
18955   rm -rf conftest*
18956   glibcpp_cv_func_modfl_use=no
18957 fi
18958 rm -f conftest*
18959       ac_ext=c
18960 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18961 ac_cpp='$CPP $CPPFLAGS'
18962 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18963 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18964 cross_compiling=$ac_cv_prog_cc_cross
18965
18966     
18967 fi
18968
18969   fi
18970   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
18971
18972   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
18973     for ac_func in modfl
18974 do
18975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18976 echo "configure:18977: checking for $ac_func" >&5
18977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18978   echo $ac_n "(cached) $ac_c" 1>&6
18979 else
18980   cat > conftest.$ac_ext <<EOF
18981 #line 18982 "configure"
18982 #include "confdefs.h"
18983 /* System header to define __stub macros and hopefully few prototypes,
18984     which can conflict with char $ac_func(); below.  */
18985 #include <assert.h>
18986 /* Override any gcc2 internal prototype to avoid an error.  */
18987 /* We use char because int might match the return type of a gcc2
18988     builtin and then its argument prototype would still apply.  */
18989 char $ac_func();
18990
18991 int main() {
18992
18993 /* The GNU C library defines this for functions which it implements
18994     to always fail with ENOSYS.  Some functions are actually named
18995     something starting with __ and the normal name is an alias.  */
18996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18997 choke me
18998 #else
18999 $ac_func();
19000 #endif
19001
19002 ; return 0; }
19003 EOF
19004 if { (eval echo configure:19005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19005   rm -rf conftest*
19006   eval "ac_cv_func_$ac_func=yes"
19007 else
19008   echo "configure: failed program was:" >&5
19009   cat conftest.$ac_ext >&5
19010   rm -rf conftest*
19011   eval "ac_cv_func_$ac_func=no"
19012 fi
19013 rm -f conftest*
19014 fi
19015
19016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19017   echo "$ac_t""yes" 1>&6
19018     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19019   cat >> confdefs.h <<EOF
19020 #define $ac_tr_func 1
19021 EOF
19022  
19023 else
19024   echo "$ac_t""no" 1>&6
19025 fi
19026 done
19027     
19028   else
19029     
19030   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
19031 echo "configure:19032: checking for _modfl declaration" >&5
19032   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
19033     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
19034   echo $ac_n "(cached) $ac_c" 1>&6
19035 else
19036   
19037       
19038       ac_ext=C
19039 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19040 ac_cpp='$CXXCPP $CPPFLAGS'
19041 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19042 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19043 cross_compiling=$ac_cv_prog_cxx_cross
19044
19045       cat > conftest.$ac_ext <<EOF
19046 #line 19047 "configure"
19047 #include "confdefs.h"
19048 #include <math.h>
19049 int main() {
19050  _modfl(0, 0);
19051 ; return 0; }
19052 EOF
19053 if { (eval echo configure:19054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19054   rm -rf conftest*
19055   glibcpp_cv_func__modfl_use=yes
19056 else
19057   echo "configure: failed program was:" >&5
19058   cat conftest.$ac_ext >&5
19059   rm -rf conftest*
19060   glibcpp_cv_func__modfl_use=no
19061 fi
19062 rm -f conftest*
19063       ac_ext=c
19064 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19065 ac_cpp='$CPP $CPPFLAGS'
19066 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19067 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19068 cross_compiling=$ac_cv_prog_cc_cross
19069
19070     
19071 fi
19072
19073   fi
19074   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19075
19076     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19077       for ac_func in _modfl
19078 do
19079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19080 echo "configure:19081: checking for $ac_func" >&5
19081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19082   echo $ac_n "(cached) $ac_c" 1>&6
19083 else
19084   cat > conftest.$ac_ext <<EOF
19085 #line 19086 "configure"
19086 #include "confdefs.h"
19087 /* System header to define __stub macros and hopefully few prototypes,
19088     which can conflict with char $ac_func(); below.  */
19089 #include <assert.h>
19090 /* Override any gcc2 internal prototype to avoid an error.  */
19091 /* We use char because int might match the return type of a gcc2
19092     builtin and then its argument prototype would still apply.  */
19093 char $ac_func();
19094
19095 int main() {
19096
19097 /* The GNU C library defines this for functions which it implements
19098     to always fail with ENOSYS.  Some functions are actually named
19099     something starting with __ and the normal name is an alias.  */
19100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19101 choke me
19102 #else
19103 $ac_func();
19104 #endif
19105
19106 ; return 0; }
19107 EOF
19108 if { (eval echo configure:19109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19109   rm -rf conftest*
19110   eval "ac_cv_func_$ac_func=yes"
19111 else
19112   echo "configure: failed program was:" >&5
19113   cat conftest.$ac_ext >&5
19114   rm -rf conftest*
19115   eval "ac_cv_func_$ac_func=no"
19116 fi
19117 rm -f conftest*
19118 fi
19119
19120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19121   echo "$ac_t""yes" 1>&6
19122     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19123   cat >> confdefs.h <<EOF
19124 #define $ac_tr_func 1
19125 EOF
19126  
19127 else
19128   echo "$ac_t""no" 1>&6
19129 fi
19130 done
19131     
19132     fi
19133   fi
19134
19135   
19136   
19137   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19138 echo "configure:19139: checking for powl declaration" >&5
19139   if test x${glibcpp_cv_func_powl_use+set} != xset; then
19140     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19141   echo $ac_n "(cached) $ac_c" 1>&6
19142 else
19143   
19144       
19145       ac_ext=C
19146 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19147 ac_cpp='$CXXCPP $CPPFLAGS'
19148 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19149 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19150 cross_compiling=$ac_cv_prog_cxx_cross
19151
19152       cat > conftest.$ac_ext <<EOF
19153 #line 19154 "configure"
19154 #include "confdefs.h"
19155 #include <math.h>
19156 int main() {
19157  powl(0, 0);
19158 ; return 0; }
19159 EOF
19160 if { (eval echo configure:19161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19161   rm -rf conftest*
19162   glibcpp_cv_func_powl_use=yes
19163 else
19164   echo "configure: failed program was:" >&5
19165   cat conftest.$ac_ext >&5
19166   rm -rf conftest*
19167   glibcpp_cv_func_powl_use=no
19168 fi
19169 rm -f conftest*
19170       ac_ext=c
19171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19172 ac_cpp='$CPP $CPPFLAGS'
19173 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19174 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19175 cross_compiling=$ac_cv_prog_cc_cross
19176
19177     
19178 fi
19179
19180   fi
19181   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19182
19183   if test x$glibcpp_cv_func_powl_use = x"yes"; then
19184     for ac_func in powl
19185 do
19186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19187 echo "configure:19188: checking for $ac_func" >&5
19188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19189   echo $ac_n "(cached) $ac_c" 1>&6
19190 else
19191   cat > conftest.$ac_ext <<EOF
19192 #line 19193 "configure"
19193 #include "confdefs.h"
19194 /* System header to define __stub macros and hopefully few prototypes,
19195     which can conflict with char $ac_func(); below.  */
19196 #include <assert.h>
19197 /* Override any gcc2 internal prototype to avoid an error.  */
19198 /* We use char because int might match the return type of a gcc2
19199     builtin and then its argument prototype would still apply.  */
19200 char $ac_func();
19201
19202 int main() {
19203
19204 /* The GNU C library defines this for functions which it implements
19205     to always fail with ENOSYS.  Some functions are actually named
19206     something starting with __ and the normal name is an alias.  */
19207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19208 choke me
19209 #else
19210 $ac_func();
19211 #endif
19212
19213 ; return 0; }
19214 EOF
19215 if { (eval echo configure:19216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19216   rm -rf conftest*
19217   eval "ac_cv_func_$ac_func=yes"
19218 else
19219   echo "configure: failed program was:" >&5
19220   cat conftest.$ac_ext >&5
19221   rm -rf conftest*
19222   eval "ac_cv_func_$ac_func=no"
19223 fi
19224 rm -f conftest*
19225 fi
19226
19227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19228   echo "$ac_t""yes" 1>&6
19229     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19230   cat >> confdefs.h <<EOF
19231 #define $ac_tr_func 1
19232 EOF
19233  
19234 else
19235   echo "$ac_t""no" 1>&6
19236 fi
19237 done
19238     
19239   else
19240     
19241   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19242 echo "configure:19243: checking for _powl declaration" >&5
19243   if test x${glibcpp_cv_func__powl_use+set} != xset; then
19244     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19245   echo $ac_n "(cached) $ac_c" 1>&6
19246 else
19247   
19248       
19249       ac_ext=C
19250 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19251 ac_cpp='$CXXCPP $CPPFLAGS'
19252 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19253 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19254 cross_compiling=$ac_cv_prog_cxx_cross
19255
19256       cat > conftest.$ac_ext <<EOF
19257 #line 19258 "configure"
19258 #include "confdefs.h"
19259 #include <math.h>
19260 int main() {
19261  _powl(0, 0);
19262 ; return 0; }
19263 EOF
19264 if { (eval echo configure:19265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19265   rm -rf conftest*
19266   glibcpp_cv_func__powl_use=yes
19267 else
19268   echo "configure: failed program was:" >&5
19269   cat conftest.$ac_ext >&5
19270   rm -rf conftest*
19271   glibcpp_cv_func__powl_use=no
19272 fi
19273 rm -f conftest*
19274       ac_ext=c
19275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19276 ac_cpp='$CPP $CPPFLAGS'
19277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19279 cross_compiling=$ac_cv_prog_cc_cross
19280
19281     
19282 fi
19283
19284   fi
19285   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19286
19287     if test x$glibcpp_cv_func__powl_use = x"yes"; then
19288       for ac_func in _powl
19289 do
19290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19291 echo "configure:19292: checking for $ac_func" >&5
19292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19293   echo $ac_n "(cached) $ac_c" 1>&6
19294 else
19295   cat > conftest.$ac_ext <<EOF
19296 #line 19297 "configure"
19297 #include "confdefs.h"
19298 /* System header to define __stub macros and hopefully few prototypes,
19299     which can conflict with char $ac_func(); below.  */
19300 #include <assert.h>
19301 /* Override any gcc2 internal prototype to avoid an error.  */
19302 /* We use char because int might match the return type of a gcc2
19303     builtin and then its argument prototype would still apply.  */
19304 char $ac_func();
19305
19306 int main() {
19307
19308 /* The GNU C library defines this for functions which it implements
19309     to always fail with ENOSYS.  Some functions are actually named
19310     something starting with __ and the normal name is an alias.  */
19311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19312 choke me
19313 #else
19314 $ac_func();
19315 #endif
19316
19317 ; return 0; }
19318 EOF
19319 if { (eval echo configure:19320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19320   rm -rf conftest*
19321   eval "ac_cv_func_$ac_func=yes"
19322 else
19323   echo "configure: failed program was:" >&5
19324   cat conftest.$ac_ext >&5
19325   rm -rf conftest*
19326   eval "ac_cv_func_$ac_func=no"
19327 fi
19328 rm -f conftest*
19329 fi
19330
19331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19332   echo "$ac_t""yes" 1>&6
19333     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19334   cat >> confdefs.h <<EOF
19335 #define $ac_tr_func 1
19336 EOF
19337  
19338 else
19339   echo "$ac_t""no" 1>&6
19340 fi
19341 done
19342     
19343     fi
19344   fi
19345
19346   
19347   
19348   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19349 echo "configure:19350: checking for sqrtl declaration" >&5
19350   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19351     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19352   echo $ac_n "(cached) $ac_c" 1>&6
19353 else
19354   
19355       
19356       ac_ext=C
19357 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19358 ac_cpp='$CXXCPP $CPPFLAGS'
19359 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19360 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19361 cross_compiling=$ac_cv_prog_cxx_cross
19362
19363       cat > conftest.$ac_ext <<EOF
19364 #line 19365 "configure"
19365 #include "confdefs.h"
19366 #include <math.h>
19367                       #ifdef HAVE_IEEEFP_H
19368                       #include <ieeefp.h>
19369                       #endif
19370                      
19371 int main() {
19372  sqrtl(0);
19373 ; return 0; }
19374 EOF
19375 if { (eval echo configure:19376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19376   rm -rf conftest*
19377   glibcpp_cv_func_sqrtl_use=yes
19378 else
19379   echo "configure: failed program was:" >&5
19380   cat conftest.$ac_ext >&5
19381   rm -rf conftest*
19382   glibcpp_cv_func_sqrtl_use=no
19383 fi
19384 rm -f conftest*
19385       ac_ext=c
19386 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19387 ac_cpp='$CPP $CPPFLAGS'
19388 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19389 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19390 cross_compiling=$ac_cv_prog_cc_cross
19391
19392     
19393 fi
19394
19395   fi
19396   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19397
19398   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19399     for ac_func in sqrtl
19400 do
19401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19402 echo "configure:19403: checking for $ac_func" >&5
19403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19404   echo $ac_n "(cached) $ac_c" 1>&6
19405 else
19406   cat > conftest.$ac_ext <<EOF
19407 #line 19408 "configure"
19408 #include "confdefs.h"
19409 /* System header to define __stub macros and hopefully few prototypes,
19410     which can conflict with char $ac_func(); below.  */
19411 #include <assert.h>
19412 /* Override any gcc2 internal prototype to avoid an error.  */
19413 /* We use char because int might match the return type of a gcc2
19414     builtin and then its argument prototype would still apply.  */
19415 char $ac_func();
19416
19417 int main() {
19418
19419 /* The GNU C library defines this for functions which it implements
19420     to always fail with ENOSYS.  Some functions are actually named
19421     something starting with __ and the normal name is an alias.  */
19422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19423 choke me
19424 #else
19425 $ac_func();
19426 #endif
19427
19428 ; return 0; }
19429 EOF
19430 if { (eval echo configure:19431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19431   rm -rf conftest*
19432   eval "ac_cv_func_$ac_func=yes"
19433 else
19434   echo "configure: failed program was:" >&5
19435   cat conftest.$ac_ext >&5
19436   rm -rf conftest*
19437   eval "ac_cv_func_$ac_func=no"
19438 fi
19439 rm -f conftest*
19440 fi
19441
19442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19443   echo "$ac_t""yes" 1>&6
19444     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19445   cat >> confdefs.h <<EOF
19446 #define $ac_tr_func 1
19447 EOF
19448  
19449 else
19450   echo "$ac_t""no" 1>&6
19451 fi
19452 done
19453     
19454   else
19455     
19456   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19457 echo "configure:19458: checking for _sqrtl declaration" >&5
19458   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19459     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19460   echo $ac_n "(cached) $ac_c" 1>&6
19461 else
19462   
19463       
19464       ac_ext=C
19465 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19466 ac_cpp='$CXXCPP $CPPFLAGS'
19467 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19468 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19469 cross_compiling=$ac_cv_prog_cxx_cross
19470
19471       cat > conftest.$ac_ext <<EOF
19472 #line 19473 "configure"
19473 #include "confdefs.h"
19474 #include <math.h>
19475                       #ifdef HAVE_IEEEFP_H
19476                       #include <ieeefp.h>
19477                       #endif
19478                      
19479 int main() {
19480  _sqrtl(0);
19481 ; return 0; }
19482 EOF
19483 if { (eval echo configure:19484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19484   rm -rf conftest*
19485   glibcpp_cv_func__sqrtl_use=yes
19486 else
19487   echo "configure: failed program was:" >&5
19488   cat conftest.$ac_ext >&5
19489   rm -rf conftest*
19490   glibcpp_cv_func__sqrtl_use=no
19491 fi
19492 rm -f conftest*
19493       ac_ext=c
19494 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19495 ac_cpp='$CPP $CPPFLAGS'
19496 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19497 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19498 cross_compiling=$ac_cv_prog_cc_cross
19499
19500     
19501 fi
19502
19503   fi
19504   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19505
19506     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19507       for ac_func in _sqrtl
19508 do
19509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19510 echo "configure:19511: checking for $ac_func" >&5
19511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19512   echo $ac_n "(cached) $ac_c" 1>&6
19513 else
19514   cat > conftest.$ac_ext <<EOF
19515 #line 19516 "configure"
19516 #include "confdefs.h"
19517 /* System header to define __stub macros and hopefully few prototypes,
19518     which can conflict with char $ac_func(); below.  */
19519 #include <assert.h>
19520 /* Override any gcc2 internal prototype to avoid an error.  */
19521 /* We use char because int might match the return type of a gcc2
19522     builtin and then its argument prototype would still apply.  */
19523 char $ac_func();
19524
19525 int main() {
19526
19527 /* The GNU C library defines this for functions which it implements
19528     to always fail with ENOSYS.  Some functions are actually named
19529     something starting with __ and the normal name is an alias.  */
19530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19531 choke me
19532 #else
19533 $ac_func();
19534 #endif
19535
19536 ; return 0; }
19537 EOF
19538 if { (eval echo configure:19539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19539   rm -rf conftest*
19540   eval "ac_cv_func_$ac_func=yes"
19541 else
19542   echo "configure: failed program was:" >&5
19543   cat conftest.$ac_ext >&5
19544   rm -rf conftest*
19545   eval "ac_cv_func_$ac_func=no"
19546 fi
19547 rm -f conftest*
19548 fi
19549
19550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19551   echo "$ac_t""yes" 1>&6
19552     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19553   cat >> confdefs.h <<EOF
19554 #define $ac_tr_func 1
19555 EOF
19556  
19557 else
19558   echo "$ac_t""no" 1>&6
19559 fi
19560 done
19561     
19562     fi
19563   fi
19564
19565   
19566   
19567   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19568 echo "configure:19569: checking for sincosl declaration" >&5
19569   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19570     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19571   echo $ac_n "(cached) $ac_c" 1>&6
19572 else
19573   
19574       
19575       ac_ext=C
19576 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19577 ac_cpp='$CXXCPP $CPPFLAGS'
19578 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19579 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19580 cross_compiling=$ac_cv_prog_cxx_cross
19581
19582       cat > conftest.$ac_ext <<EOF
19583 #line 19584 "configure"
19584 #include "confdefs.h"
19585 #include <math.h>
19586 int main() {
19587  sincosl(0, 0, 0);
19588 ; return 0; }
19589 EOF
19590 if { (eval echo configure:19591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19591   rm -rf conftest*
19592   glibcpp_cv_func_sincosl_use=yes
19593 else
19594   echo "configure: failed program was:" >&5
19595   cat conftest.$ac_ext >&5
19596   rm -rf conftest*
19597   glibcpp_cv_func_sincosl_use=no
19598 fi
19599 rm -f conftest*
19600       ac_ext=c
19601 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19602 ac_cpp='$CPP $CPPFLAGS'
19603 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19604 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19605 cross_compiling=$ac_cv_prog_cc_cross
19606
19607     
19608 fi
19609
19610   fi
19611   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19612
19613   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19614     for ac_func in sincosl
19615 do
19616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19617 echo "configure:19618: checking for $ac_func" >&5
19618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19619   echo $ac_n "(cached) $ac_c" 1>&6
19620 else
19621   cat > conftest.$ac_ext <<EOF
19622 #line 19623 "configure"
19623 #include "confdefs.h"
19624 /* System header to define __stub macros and hopefully few prototypes,
19625     which can conflict with char $ac_func(); below.  */
19626 #include <assert.h>
19627 /* Override any gcc2 internal prototype to avoid an error.  */
19628 /* We use char because int might match the return type of a gcc2
19629     builtin and then its argument prototype would still apply.  */
19630 char $ac_func();
19631
19632 int main() {
19633
19634 /* The GNU C library defines this for functions which it implements
19635     to always fail with ENOSYS.  Some functions are actually named
19636     something starting with __ and the normal name is an alias.  */
19637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19638 choke me
19639 #else
19640 $ac_func();
19641 #endif
19642
19643 ; return 0; }
19644 EOF
19645 if { (eval echo configure:19646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19646   rm -rf conftest*
19647   eval "ac_cv_func_$ac_func=yes"
19648 else
19649   echo "configure: failed program was:" >&5
19650   cat conftest.$ac_ext >&5
19651   rm -rf conftest*
19652   eval "ac_cv_func_$ac_func=no"
19653 fi
19654 rm -f conftest*
19655 fi
19656
19657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19658   echo "$ac_t""yes" 1>&6
19659     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19660   cat >> confdefs.h <<EOF
19661 #define $ac_tr_func 1
19662 EOF
19663  
19664 else
19665   echo "$ac_t""no" 1>&6
19666 fi
19667 done
19668     
19669   else
19670     
19671   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19672 echo "configure:19673: checking for _sincosl declaration" >&5
19673   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19674     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19675   echo $ac_n "(cached) $ac_c" 1>&6
19676 else
19677   
19678       
19679       ac_ext=C
19680 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19681 ac_cpp='$CXXCPP $CPPFLAGS'
19682 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19683 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19684 cross_compiling=$ac_cv_prog_cxx_cross
19685
19686       cat > conftest.$ac_ext <<EOF
19687 #line 19688 "configure"
19688 #include "confdefs.h"
19689 #include <math.h>
19690 int main() {
19691  _sincosl(0, 0, 0);
19692 ; return 0; }
19693 EOF
19694 if { (eval echo configure:19695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19695   rm -rf conftest*
19696   glibcpp_cv_func__sincosl_use=yes
19697 else
19698   echo "configure: failed program was:" >&5
19699   cat conftest.$ac_ext >&5
19700   rm -rf conftest*
19701   glibcpp_cv_func__sincosl_use=no
19702 fi
19703 rm -f conftest*
19704       ac_ext=c
19705 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19706 ac_cpp='$CPP $CPPFLAGS'
19707 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19708 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19709 cross_compiling=$ac_cv_prog_cc_cross
19710
19711     
19712 fi
19713
19714   fi
19715   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19716
19717     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19718       for ac_func in _sincosl
19719 do
19720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19721 echo "configure:19722: checking for $ac_func" >&5
19722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19723   echo $ac_n "(cached) $ac_c" 1>&6
19724 else
19725   cat > conftest.$ac_ext <<EOF
19726 #line 19727 "configure"
19727 #include "confdefs.h"
19728 /* System header to define __stub macros and hopefully few prototypes,
19729     which can conflict with char $ac_func(); below.  */
19730 #include <assert.h>
19731 /* Override any gcc2 internal prototype to avoid an error.  */
19732 /* We use char because int might match the return type of a gcc2
19733     builtin and then its argument prototype would still apply.  */
19734 char $ac_func();
19735
19736 int main() {
19737
19738 /* The GNU C library defines this for functions which it implements
19739     to always fail with ENOSYS.  Some functions are actually named
19740     something starting with __ and the normal name is an alias.  */
19741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19742 choke me
19743 #else
19744 $ac_func();
19745 #endif
19746
19747 ; return 0; }
19748 EOF
19749 if { (eval echo configure:19750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19750   rm -rf conftest*
19751   eval "ac_cv_func_$ac_func=yes"
19752 else
19753   echo "configure: failed program was:" >&5
19754   cat conftest.$ac_ext >&5
19755   rm -rf conftest*
19756   eval "ac_cv_func_$ac_func=no"
19757 fi
19758 rm -f conftest*
19759 fi
19760
19761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19762   echo "$ac_t""yes" 1>&6
19763     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19764   cat >> confdefs.h <<EOF
19765 #define $ac_tr_func 1
19766 EOF
19767  
19768 else
19769   echo "$ac_t""no" 1>&6
19770 fi
19771 done
19772     
19773     fi
19774   fi
19775
19776   
19777   
19778   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19779 echo "configure:19780: checking for finitel declaration" >&5
19780   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19781     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19782   echo $ac_n "(cached) $ac_c" 1>&6
19783 else
19784   
19785       
19786       ac_ext=C
19787 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19788 ac_cpp='$CXXCPP $CPPFLAGS'
19789 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19790 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19791 cross_compiling=$ac_cv_prog_cxx_cross
19792
19793       cat > conftest.$ac_ext <<EOF
19794 #line 19795 "configure"
19795 #include "confdefs.h"
19796 #include <math.h>
19797                       #ifdef HAVE_IEEEFP_H
19798                       #include <ieeefp.h>
19799                       #endif
19800                      
19801 int main() {
19802  finitel(0);
19803 ; return 0; }
19804 EOF
19805 if { (eval echo configure:19806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19806   rm -rf conftest*
19807   glibcpp_cv_func_finitel_use=yes
19808 else
19809   echo "configure: failed program was:" >&5
19810   cat conftest.$ac_ext >&5
19811   rm -rf conftest*
19812   glibcpp_cv_func_finitel_use=no
19813 fi
19814 rm -f conftest*
19815       ac_ext=c
19816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19817 ac_cpp='$CPP $CPPFLAGS'
19818 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19819 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19820 cross_compiling=$ac_cv_prog_cc_cross
19821
19822     
19823 fi
19824
19825   fi
19826   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19827
19828   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19829     for ac_func in finitel
19830 do
19831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19832 echo "configure:19833: checking for $ac_func" >&5
19833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19834   echo $ac_n "(cached) $ac_c" 1>&6
19835 else
19836   cat > conftest.$ac_ext <<EOF
19837 #line 19838 "configure"
19838 #include "confdefs.h"
19839 /* System header to define __stub macros and hopefully few prototypes,
19840     which can conflict with char $ac_func(); below.  */
19841 #include <assert.h>
19842 /* Override any gcc2 internal prototype to avoid an error.  */
19843 /* We use char because int might match the return type of a gcc2
19844     builtin and then its argument prototype would still apply.  */
19845 char $ac_func();
19846
19847 int main() {
19848
19849 /* The GNU C library defines this for functions which it implements
19850     to always fail with ENOSYS.  Some functions are actually named
19851     something starting with __ and the normal name is an alias.  */
19852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19853 choke me
19854 #else
19855 $ac_func();
19856 #endif
19857
19858 ; return 0; }
19859 EOF
19860 if { (eval echo configure:19861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19861   rm -rf conftest*
19862   eval "ac_cv_func_$ac_func=yes"
19863 else
19864   echo "configure: failed program was:" >&5
19865   cat conftest.$ac_ext >&5
19866   rm -rf conftest*
19867   eval "ac_cv_func_$ac_func=no"
19868 fi
19869 rm -f conftest*
19870 fi
19871
19872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19873   echo "$ac_t""yes" 1>&6
19874     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19875   cat >> confdefs.h <<EOF
19876 #define $ac_tr_func 1
19877 EOF
19878  
19879 else
19880   echo "$ac_t""no" 1>&6
19881 fi
19882 done
19883     
19884   else
19885     
19886   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19887 echo "configure:19888: checking for _finitel declaration" >&5
19888   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19889     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19890   echo $ac_n "(cached) $ac_c" 1>&6
19891 else
19892   
19893       
19894       ac_ext=C
19895 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19896 ac_cpp='$CXXCPP $CPPFLAGS'
19897 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19898 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19899 cross_compiling=$ac_cv_prog_cxx_cross
19900
19901       cat > conftest.$ac_ext <<EOF
19902 #line 19903 "configure"
19903 #include "confdefs.h"
19904 #include <math.h>
19905                       #ifdef HAVE_IEEEFP_H
19906                       #include <ieeefp.h>
19907                       #endif
19908                      
19909 int main() {
19910  _finitel(0);
19911 ; return 0; }
19912 EOF
19913 if { (eval echo configure:19914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19914   rm -rf conftest*
19915   glibcpp_cv_func__finitel_use=yes
19916 else
19917   echo "configure: failed program was:" >&5
19918   cat conftest.$ac_ext >&5
19919   rm -rf conftest*
19920   glibcpp_cv_func__finitel_use=no
19921 fi
19922 rm -f conftest*
19923       ac_ext=c
19924 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19925 ac_cpp='$CPP $CPPFLAGS'
19926 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19927 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19928 cross_compiling=$ac_cv_prog_cc_cross
19929
19930     
19931 fi
19932
19933   fi
19934   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
19935
19936     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
19937       for ac_func in _finitel
19938 do
19939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19940 echo "configure:19941: checking for $ac_func" >&5
19941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19942   echo $ac_n "(cached) $ac_c" 1>&6
19943 else
19944   cat > conftest.$ac_ext <<EOF
19945 #line 19946 "configure"
19946 #include "confdefs.h"
19947 /* System header to define __stub macros and hopefully few prototypes,
19948     which can conflict with char $ac_func(); below.  */
19949 #include <assert.h>
19950 /* Override any gcc2 internal prototype to avoid an error.  */
19951 /* We use char because int might match the return type of a gcc2
19952     builtin and then its argument prototype would still apply.  */
19953 char $ac_func();
19954
19955 int main() {
19956
19957 /* The GNU C library defines this for functions which it implements
19958     to always fail with ENOSYS.  Some functions are actually named
19959     something starting with __ and the normal name is an alias.  */
19960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19961 choke me
19962 #else
19963 $ac_func();
19964 #endif
19965
19966 ; return 0; }
19967 EOF
19968 if { (eval echo configure:19969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19969   rm -rf conftest*
19970   eval "ac_cv_func_$ac_func=yes"
19971 else
19972   echo "configure: failed program was:" >&5
19973   cat conftest.$ac_ext >&5
19974   rm -rf conftest*
19975   eval "ac_cv_func_$ac_func=no"
19976 fi
19977 rm -f conftest*
19978 fi
19979
19980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19981   echo "$ac_t""yes" 1>&6
19982     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19983   cat >> confdefs.h <<EOF
19984 #define $ac_tr_func 1
19985 EOF
19986  
19987 else
19988   echo "$ac_t""no" 1>&6
19989 fi
19990 done
19991     
19992     fi
19993   fi
19994
19995
19996         
19997     
19998   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
19999 echo "configure:20000: checking for _float trig functions" >&5
20000   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
20001   echo $ac_n "(cached) $ac_c" 1>&6
20002 else
20003   
20004     
20005     ac_ext=C
20006 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20007 ac_cpp='$CXXCPP $CPPFLAGS'
20008 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20009 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20010 cross_compiling=$ac_cv_prog_cxx_cross
20011
20012     cat > conftest.$ac_ext <<EOF
20013 #line 20014 "configure"
20014 #include "confdefs.h"
20015 #include <math.h>
20016 int main() {
20017  `for x in _acosf _asinf _atanf \
20018                                           _cosf _sinf _tanf \
20019                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
20020 ; return 0; }
20021 EOF
20022 if { (eval echo configure:20023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20023   rm -rf conftest*
20024   glibcpp_cv_func__float_trig_use=yes
20025 else
20026   echo "configure: failed program was:" >&5
20027   cat conftest.$ac_ext >&5
20028   rm -rf conftest*
20029   glibcpp_cv_func__float_trig_use=no
20030 fi
20031 rm -f conftest*
20032     ac_ext=c
20033 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20034 ac_cpp='$CPP $CPPFLAGS'
20035 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20036 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20037 cross_compiling=$ac_cv_prog_cc_cross
20038
20039 fi
20040
20041   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
20042   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
20043     for ac_func in _acosf _asinf _atanf \
20044                                           _cosf _sinf _tanf \
20045                                           _coshf _sinhf _tanhf
20046 do
20047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20048 echo "configure:20049: checking for $ac_func" >&5
20049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20050   echo $ac_n "(cached) $ac_c" 1>&6
20051 else
20052   cat > conftest.$ac_ext <<EOF
20053 #line 20054 "configure"
20054 #include "confdefs.h"
20055 /* System header to define __stub macros and hopefully few prototypes,
20056     which can conflict with char $ac_func(); below.  */
20057 #include <assert.h>
20058 /* Override any gcc2 internal prototype to avoid an error.  */
20059 /* We use char because int might match the return type of a gcc2
20060     builtin and then its argument prototype would still apply.  */
20061 char $ac_func();
20062
20063 int main() {
20064
20065 /* The GNU C library defines this for functions which it implements
20066     to always fail with ENOSYS.  Some functions are actually named
20067     something starting with __ and the normal name is an alias.  */
20068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20069 choke me
20070 #else
20071 $ac_func();
20072 #endif
20073
20074 ; return 0; }
20075 EOF
20076 if { (eval echo configure:20077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20077   rm -rf conftest*
20078   eval "ac_cv_func_$ac_func=yes"
20079 else
20080   echo "configure: failed program was:" >&5
20081   cat conftest.$ac_ext >&5
20082   rm -rf conftest*
20083   eval "ac_cv_func_$ac_func=no"
20084 fi
20085 rm -f conftest*
20086 fi
20087
20088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20089   echo "$ac_t""yes" 1>&6
20090     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20091   cat >> confdefs.h <<EOF
20092 #define $ac_tr_func 1
20093 EOF
20094  
20095 else
20096   echo "$ac_t""no" 1>&6
20097 fi
20098 done
20099
20100   fi
20101
20102   
20103   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20104 echo "configure:20105: checking for _float round functions" >&5
20105   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20106   echo $ac_n "(cached) $ac_c" 1>&6
20107 else
20108   
20109     
20110     ac_ext=C
20111 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20112 ac_cpp='$CXXCPP $CPPFLAGS'
20113 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20114 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20115 cross_compiling=$ac_cv_prog_cxx_cross
20116
20117     cat > conftest.$ac_ext <<EOF
20118 #line 20119 "configure"
20119 #include "confdefs.h"
20120 #include <math.h>
20121 int main() {
20122  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
20123 ; return 0; }
20124 EOF
20125 if { (eval echo configure:20126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20126   rm -rf conftest*
20127   glibcpp_cv_func__float_round_use=yes
20128 else
20129   echo "configure: failed program was:" >&5
20130   cat conftest.$ac_ext >&5
20131   rm -rf conftest*
20132   glibcpp_cv_func__float_round_use=no
20133 fi
20134 rm -f conftest*
20135     ac_ext=c
20136 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20137 ac_cpp='$CPP $CPPFLAGS'
20138 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20139 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20140 cross_compiling=$ac_cv_prog_cc_cross
20141
20142 fi
20143
20144   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20145   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20146     for ac_func in _ceilf _floorf
20147 do
20148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20149 echo "configure:20150: checking for $ac_func" >&5
20150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20151   echo $ac_n "(cached) $ac_c" 1>&6
20152 else
20153   cat > conftest.$ac_ext <<EOF
20154 #line 20155 "configure"
20155 #include "confdefs.h"
20156 /* System header to define __stub macros and hopefully few prototypes,
20157     which can conflict with char $ac_func(); below.  */
20158 #include <assert.h>
20159 /* Override any gcc2 internal prototype to avoid an error.  */
20160 /* We use char because int might match the return type of a gcc2
20161     builtin and then its argument prototype would still apply.  */
20162 char $ac_func();
20163
20164 int main() {
20165
20166 /* The GNU C library defines this for functions which it implements
20167     to always fail with ENOSYS.  Some functions are actually named
20168     something starting with __ and the normal name is an alias.  */
20169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20170 choke me
20171 #else
20172 $ac_func();
20173 #endif
20174
20175 ; return 0; }
20176 EOF
20177 if { (eval echo configure:20178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20178   rm -rf conftest*
20179   eval "ac_cv_func_$ac_func=yes"
20180 else
20181   echo "configure: failed program was:" >&5
20182   cat conftest.$ac_ext >&5
20183   rm -rf conftest*
20184   eval "ac_cv_func_$ac_func=no"
20185 fi
20186 rm -f conftest*
20187 fi
20188
20189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20190   echo "$ac_t""yes" 1>&6
20191     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20192   cat >> confdefs.h <<EOF
20193 #define $ac_tr_func 1
20194 EOF
20195  
20196 else
20197   echo "$ac_t""no" 1>&6
20198 fi
20199 done
20200
20201   fi
20202
20203
20204     
20205   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20206 echo "configure:20207: checking for _long double trig functions" >&5
20207   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20208   echo $ac_n "(cached) $ac_c" 1>&6
20209 else
20210   
20211     
20212     ac_ext=C
20213 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20214 ac_cpp='$CXXCPP $CPPFLAGS'
20215 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20216 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20217 cross_compiling=$ac_cv_prog_cxx_cross
20218
20219     cat > conftest.$ac_ext <<EOF
20220 #line 20221 "configure"
20221 #include "confdefs.h"
20222 #include <math.h>
20223 int main() {
20224  `for x in _acosl _asinl _atanl \
20225                                           _cosl _sinl _tanl \
20226                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
20227 ; return 0; }
20228 EOF
20229 if { (eval echo configure:20230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20230   rm -rf conftest*
20231   glibcpp_cv_func__long_double_trig_use=yes
20232 else
20233   echo "configure: failed program was:" >&5
20234   cat conftest.$ac_ext >&5
20235   rm -rf conftest*
20236   glibcpp_cv_func__long_double_trig_use=no
20237 fi
20238 rm -f conftest*
20239     ac_ext=c
20240 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20241 ac_cpp='$CPP $CPPFLAGS'
20242 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20243 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20244 cross_compiling=$ac_cv_prog_cc_cross
20245
20246 fi
20247
20248   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20249   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20250     for ac_func in _acosl _asinl _atanl \
20251                                           _cosl _sinl _tanl \
20252                                           _coshl _sinhl _tanhl
20253 do
20254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20255 echo "configure:20256: checking for $ac_func" >&5
20256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20257   echo $ac_n "(cached) $ac_c" 1>&6
20258 else
20259   cat > conftest.$ac_ext <<EOF
20260 #line 20261 "configure"
20261 #include "confdefs.h"
20262 /* System header to define __stub macros and hopefully few prototypes,
20263     which can conflict with char $ac_func(); below.  */
20264 #include <assert.h>
20265 /* Override any gcc2 internal prototype to avoid an error.  */
20266 /* We use char because int might match the return type of a gcc2
20267     builtin and then its argument prototype would still apply.  */
20268 char $ac_func();
20269
20270 int main() {
20271
20272 /* The GNU C library defines this for functions which it implements
20273     to always fail with ENOSYS.  Some functions are actually named
20274     something starting with __ and the normal name is an alias.  */
20275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20276 choke me
20277 #else
20278 $ac_func();
20279 #endif
20280
20281 ; return 0; }
20282 EOF
20283 if { (eval echo configure:20284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20284   rm -rf conftest*
20285   eval "ac_cv_func_$ac_func=yes"
20286 else
20287   echo "configure: failed program was:" >&5
20288   cat conftest.$ac_ext >&5
20289   rm -rf conftest*
20290   eval "ac_cv_func_$ac_func=no"
20291 fi
20292 rm -f conftest*
20293 fi
20294
20295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20296   echo "$ac_t""yes" 1>&6
20297     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20298   cat >> confdefs.h <<EOF
20299 #define $ac_tr_func 1
20300 EOF
20301  
20302 else
20303   echo "$ac_t""no" 1>&6
20304 fi
20305 done
20306
20307   fi
20308
20309   
20310   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20311 echo "configure:20312: checking for _long double round functions" >&5
20312   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20313   echo $ac_n "(cached) $ac_c" 1>&6
20314 else
20315   
20316     
20317     ac_ext=C
20318 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20319 ac_cpp='$CXXCPP $CPPFLAGS'
20320 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20321 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20322 cross_compiling=$ac_cv_prog_cxx_cross
20323
20324     cat > conftest.$ac_ext <<EOF
20325 #line 20326 "configure"
20326 #include "confdefs.h"
20327 #include <math.h>
20328 int main() {
20329  `for x in _ceill _floorl; do echo "$x (0);"; done` 
20330 ; return 0; }
20331 EOF
20332 if { (eval echo configure:20333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20333   rm -rf conftest*
20334   glibcpp_cv_func__long_double_round_use=yes
20335 else
20336   echo "configure: failed program was:" >&5
20337   cat conftest.$ac_ext >&5
20338   rm -rf conftest*
20339   glibcpp_cv_func__long_double_round_use=no
20340 fi
20341 rm -f conftest*
20342     ac_ext=c
20343 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20344 ac_cpp='$CPP $CPPFLAGS'
20345 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20346 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20347 cross_compiling=$ac_cv_prog_cc_cross
20348
20349 fi
20350
20351   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20352   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20353     for ac_func in _ceill _floorl
20354 do
20355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20356 echo "configure:20357: checking for $ac_func" >&5
20357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20358   echo $ac_n "(cached) $ac_c" 1>&6
20359 else
20360   cat > conftest.$ac_ext <<EOF
20361 #line 20362 "configure"
20362 #include "confdefs.h"
20363 /* System header to define __stub macros and hopefully few prototypes,
20364     which can conflict with char $ac_func(); below.  */
20365 #include <assert.h>
20366 /* Override any gcc2 internal prototype to avoid an error.  */
20367 /* We use char because int might match the return type of a gcc2
20368     builtin and then its argument prototype would still apply.  */
20369 char $ac_func();
20370
20371 int main() {
20372
20373 /* The GNU C library defines this for functions which it implements
20374     to always fail with ENOSYS.  Some functions are actually named
20375     something starting with __ and the normal name is an alias.  */
20376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20377 choke me
20378 #else
20379 $ac_func();
20380 #endif
20381
20382 ; return 0; }
20383 EOF
20384 if { (eval echo configure:20385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20385   rm -rf conftest*
20386   eval "ac_cv_func_$ac_func=yes"
20387 else
20388   echo "configure: failed program was:" >&5
20389   cat conftest.$ac_ext >&5
20390   rm -rf conftest*
20391   eval "ac_cv_func_$ac_func=no"
20392 fi
20393 rm -f conftest*
20394 fi
20395
20396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20397   echo "$ac_t""yes" 1>&6
20398     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20399   cat >> confdefs.h <<EOF
20400 #define $ac_tr_func 1
20401 EOF
20402  
20403 else
20404   echo "$ac_t""no" 1>&6
20405 fi
20406 done
20407
20408   fi
20409
20410
20411   LIBS="$ac_save_LIBS"
20412   CXXFLAGS="$ac_save_CXXFLAGS"
20413
20414   
20415     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
20416 echo "configure:20417: checking for main in -lm" >&5
20417 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
20418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20419   echo $ac_n "(cached) $ac_c" 1>&6
20420 else
20421   ac_save_LIBS="$LIBS"
20422 LIBS="-lm  $LIBS"
20423 cat > conftest.$ac_ext <<EOF
20424 #line 20425 "configure"
20425 #include "confdefs.h"
20426
20427 int main() {
20428 main()
20429 ; return 0; }
20430 EOF
20431 if { (eval echo configure:20432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20432   rm -rf conftest*
20433   eval "ac_cv_lib_$ac_lib_var=yes"
20434 else
20435   echo "configure: failed program was:" >&5
20436   cat conftest.$ac_ext >&5
20437   rm -rf conftest*
20438   eval "ac_cv_lib_$ac_lib_var=no"
20439 fi
20440 rm -f conftest*
20441 LIBS="$ac_save_LIBS"
20442
20443 fi
20444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20445   echo "$ac_t""yes" 1>&6
20446     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
20447     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
20448   cat >> confdefs.h <<EOF
20449 #define $ac_tr_lib 1
20450 EOF
20451
20452   LIBS="-lm $LIBS"
20453
20454 else
20455   echo "$ac_t""no" 1>&6
20456 fi
20457
20458   for ac_func in nan copysignf
20459 do
20460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20461 echo "configure:20462: checking for $ac_func" >&5
20462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20463   echo $ac_n "(cached) $ac_c" 1>&6
20464 else
20465   cat > conftest.$ac_ext <<EOF
20466 #line 20467 "configure"
20467 #include "confdefs.h"
20468 /* System header to define __stub macros and hopefully few prototypes,
20469     which can conflict with char $ac_func(); below.  */
20470 #include <assert.h>
20471 /* Override any gcc2 internal prototype to avoid an error.  */
20472 /* We use char because int might match the return type of a gcc2
20473     builtin and then its argument prototype would still apply.  */
20474 char $ac_func();
20475
20476 int main() {
20477
20478 /* The GNU C library defines this for functions which it implements
20479     to always fail with ENOSYS.  Some functions are actually named
20480     something starting with __ and the normal name is an alias.  */
20481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20482 choke me
20483 #else
20484 $ac_func();
20485 #endif
20486
20487 ; return 0; }
20488 EOF
20489 if { (eval echo configure:20490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20490   rm -rf conftest*
20491   eval "ac_cv_func_$ac_func=yes"
20492 else
20493   echo "configure: failed program was:" >&5
20494   cat conftest.$ac_ext >&5
20495   rm -rf conftest*
20496   eval "ac_cv_func_$ac_func=no"
20497 fi
20498 rm -f conftest*
20499 fi
20500
20501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20502   echo "$ac_t""yes" 1>&6
20503     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20504   cat >> confdefs.h <<EOF
20505 #define $ac_tr_func 1
20506 EOF
20507  
20508 else
20509   echo "$ac_t""no" 1>&6
20510 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
20511 fi
20512 done
20513
20514
20515     for ac_func in __signbit
20516 do
20517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20518 echo "configure:20519: checking for $ac_func" >&5
20519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20520   echo $ac_n "(cached) $ac_c" 1>&6
20521 else
20522   cat > conftest.$ac_ext <<EOF
20523 #line 20524 "configure"
20524 #include "confdefs.h"
20525 /* System header to define __stub macros and hopefully few prototypes,
20526     which can conflict with char $ac_func(); below.  */
20527 #include <assert.h>
20528 /* Override any gcc2 internal prototype to avoid an error.  */
20529 /* We use char because int might match the return type of a gcc2
20530     builtin and then its argument prototype would still apply.  */
20531 char $ac_func();
20532
20533 int main() {
20534
20535 /* The GNU C library defines this for functions which it implements
20536     to always fail with ENOSYS.  Some functions are actually named
20537     something starting with __ and the normal name is an alias.  */
20538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20539 choke me
20540 #else
20541 $ac_func();
20542 #endif
20543
20544 ; return 0; }
20545 EOF
20546 if { (eval echo configure:20547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20547   rm -rf conftest*
20548   eval "ac_cv_func_$ac_func=yes"
20549 else
20550   echo "configure: failed program was:" >&5
20551   cat conftest.$ac_ext >&5
20552   rm -rf conftest*
20553   eval "ac_cv_func_$ac_func=no"
20554 fi
20555 rm -f conftest*
20556 fi
20557
20558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20559   echo "$ac_t""yes" 1>&6
20560     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20561   cat >> confdefs.h <<EOF
20562 #define $ac_tr_func 1
20563 EOF
20564  
20565 else
20566   echo "$ac_t""no" 1>&6
20567 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
20568 fi
20569 done
20570
20571   for ac_func in __signbitf
20572 do
20573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20574 echo "configure:20575: checking for $ac_func" >&5
20575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20576   echo $ac_n "(cached) $ac_c" 1>&6
20577 else
20578   cat > conftest.$ac_ext <<EOF
20579 #line 20580 "configure"
20580 #include "confdefs.h"
20581 /* System header to define __stub macros and hopefully few prototypes,
20582     which can conflict with char $ac_func(); below.  */
20583 #include <assert.h>
20584 /* Override any gcc2 internal prototype to avoid an error.  */
20585 /* We use char because int might match the return type of a gcc2
20586     builtin and then its argument prototype would still apply.  */
20587 char $ac_func();
20588
20589 int main() {
20590
20591 /* The GNU C library defines this for functions which it implements
20592     to always fail with ENOSYS.  Some functions are actually named
20593     something starting with __ and the normal name is an alias.  */
20594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20595 choke me
20596 #else
20597 $ac_func();
20598 #endif
20599
20600 ; return 0; }
20601 EOF
20602 if { (eval echo configure:20603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20603   rm -rf conftest*
20604   eval "ac_cv_func_$ac_func=yes"
20605 else
20606   echo "configure: failed program was:" >&5
20607   cat conftest.$ac_ext >&5
20608   rm -rf conftest*
20609   eval "ac_cv_func_$ac_func=no"
20610 fi
20611 rm -f conftest*
20612 fi
20613
20614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20615   echo "$ac_t""yes" 1>&6
20616     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20617   cat >> confdefs.h <<EOF
20618 #define $ac_tr_func 1
20619 EOF
20620  
20621 else
20622   echo "$ac_t""no" 1>&6
20623 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
20624 fi
20625 done
20626
20627
20628           if test x$ac_cv_func_copysignl = x"yes"; then
20629     for ac_func in __signbitl
20630 do
20631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20632 echo "configure:20633: checking for $ac_func" >&5
20633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20634   echo $ac_n "(cached) $ac_c" 1>&6
20635 else
20636   cat > conftest.$ac_ext <<EOF
20637 #line 20638 "configure"
20638 #include "confdefs.h"
20639 /* System header to define __stub macros and hopefully few prototypes,
20640     which can conflict with char $ac_func(); below.  */
20641 #include <assert.h>
20642 /* Override any gcc2 internal prototype to avoid an error.  */
20643 /* We use char because int might match the return type of a gcc2
20644     builtin and then its argument prototype would still apply.  */
20645 char $ac_func();
20646
20647 int main() {
20648
20649 /* The GNU C library defines this for functions which it implements
20650     to always fail with ENOSYS.  Some functions are actually named
20651     something starting with __ and the normal name is an alias.  */
20652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20653 choke me
20654 #else
20655 $ac_func();
20656 #endif
20657
20658 ; return 0; }
20659 EOF
20660 if { (eval echo configure:20661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20661   rm -rf conftest*
20662   eval "ac_cv_func_$ac_func=yes"
20663 else
20664   echo "configure: failed program was:" >&5
20665   cat conftest.$ac_ext >&5
20666   rm -rf conftest*
20667   eval "ac_cv_func_$ac_func=no"
20668 fi
20669 rm -f conftest*
20670 fi
20671
20672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20673   echo "$ac_t""yes" 1>&6
20674     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20675   cat >> confdefs.h <<EOF
20676 #define $ac_tr_func 1
20677 EOF
20678  
20679 else
20680   echo "$ac_t""no" 1>&6
20681 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
20682 fi
20683 done
20684
20685   fi
20686
20687   
20688
20689   
20690
20691       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
20692 echo "configure:20693: checking for mbstate_t" >&5
20693   cat > conftest.$ac_ext <<EOF
20694 #line 20695 "configure"
20695 #include "confdefs.h"
20696 #include <wchar.h>
20697 int main() {
20698 mbstate_t teststate;
20699 ; return 0; }
20700 EOF
20701 if { (eval echo configure:20702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20702   rm -rf conftest*
20703   have_mbstate_t=yes
20704 else
20705   echo "configure: failed program was:" >&5
20706   cat conftest.$ac_ext >&5
20707   rm -rf conftest*
20708   have_mbstate_t=no
20709 fi
20710 rm -f conftest*
20711   echo "$ac_t""$have_mbstate_t" 1>&6
20712   if test x"$have_mbstate_t" = xyes; then
20713     cat >> confdefs.h <<\EOF
20714 #define HAVE_MBSTATE_T 1
20715 EOF
20716
20717   fi
20718
20719     for ac_hdr in wchar.h
20720 do
20721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20723 echo "configure:20724: checking for $ac_hdr" >&5
20724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20725   echo $ac_n "(cached) $ac_c" 1>&6
20726 else
20727   cat > conftest.$ac_ext <<EOF
20728 #line 20729 "configure"
20729 #include "confdefs.h"
20730 #include <$ac_hdr>
20731 EOF
20732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20733 { (eval echo configure:20734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20735 if test -z "$ac_err"; then
20736   rm -rf conftest*
20737   eval "ac_cv_header_$ac_safe=yes"
20738 else
20739   echo "$ac_err" >&5
20740   echo "configure: failed program was:" >&5
20741   cat conftest.$ac_ext >&5
20742   rm -rf conftest*
20743   eval "ac_cv_header_$ac_safe=no"
20744 fi
20745 rm -f conftest*
20746 fi
20747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20748   echo "$ac_t""yes" 1>&6
20749     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20750   cat >> confdefs.h <<EOF
20751 #define $ac_tr_hdr 1
20752 EOF
20753  ac_has_wchar_h=yes
20754 else
20755   echo "$ac_t""no" 1>&6
20756 ac_has_wchar_h=no
20757 fi
20758 done
20759
20760   for ac_hdr in wctype.h
20761 do
20762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20764 echo "configure:20765: checking for $ac_hdr" >&5
20765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20766   echo $ac_n "(cached) $ac_c" 1>&6
20767 else
20768   cat > conftest.$ac_ext <<EOF
20769 #line 20770 "configure"
20770 #include "confdefs.h"
20771 #include <$ac_hdr>
20772 EOF
20773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20774 { (eval echo configure:20775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20776 if test -z "$ac_err"; then
20777   rm -rf conftest*
20778   eval "ac_cv_header_$ac_safe=yes"
20779 else
20780   echo "$ac_err" >&5
20781   echo "configure: failed program was:" >&5
20782   cat conftest.$ac_ext >&5
20783   rm -rf conftest*
20784   eval "ac_cv_header_$ac_safe=no"
20785 fi
20786 rm -f conftest*
20787 fi
20788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20789   echo "$ac_t""yes" 1>&6
20790     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20791   cat >> confdefs.h <<EOF
20792 #define $ac_tr_hdr 1
20793 EOF
20794  ac_has_wctype_h=yes
20795 else
20796   echo "$ac_t""no" 1>&6
20797 ac_has_wctype_h=no
20798 fi
20799 done
20800
20801   
20802     if test x"$ac_has_wchar_h" = xyes &&
20803      test x"$ac_has_wctype_h" = xyes &&
20804      test x"$enable_c_mbchar" != xno; then
20805       
20806             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
20807 echo "configure:20808: checking for WCHAR_MIN and WCHAR_MAX" >&5
20808     cat > conftest.$ac_ext <<EOF
20809 #line 20810 "configure"
20810 #include "confdefs.h"
20811 #include <wchar.h>
20812 int main() {
20813 int i = WCHAR_MIN; int j = WCHAR_MAX;
20814 ; return 0; }
20815 EOF
20816 if { (eval echo configure:20817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20817   rm -rf conftest*
20818   has_wchar_minmax=yes
20819 else
20820   echo "configure: failed program was:" >&5
20821   cat conftest.$ac_ext >&5
20822   rm -rf conftest*
20823   has_wchar_minmax=no
20824 fi
20825 rm -f conftest*
20826     echo "$ac_t""$has_wchar_minmax" 1>&6
20827     
20828             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
20829 echo "configure:20830: checking for WEOF" >&5
20830     cat > conftest.$ac_ext <<EOF
20831 #line 20832 "configure"
20832 #include "confdefs.h"
20833
20834       #include <wchar.h>
20835       #include <stddef.h>
20836 int main() {
20837 wint_t i = WEOF;
20838 ; return 0; }
20839 EOF
20840 if { (eval echo configure:20841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20841   rm -rf conftest*
20842   has_weof=yes
20843 else
20844   echo "configure: failed program was:" >&5
20845   cat conftest.$ac_ext >&5
20846   rm -rf conftest*
20847   has_weof=no
20848 fi
20849 rm -f conftest*
20850     echo "$ac_t""$has_weof" 1>&6
20851   
20852         ac_wfuncs=yes
20853     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
20854 do
20855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20856 echo "configure:20857: checking for $ac_func" >&5
20857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20858   echo $ac_n "(cached) $ac_c" 1>&6
20859 else
20860   cat > conftest.$ac_ext <<EOF
20861 #line 20862 "configure"
20862 #include "confdefs.h"
20863 /* System header to define __stub macros and hopefully few prototypes,
20864     which can conflict with char $ac_func(); below.  */
20865 #include <assert.h>
20866 /* Override any gcc2 internal prototype to avoid an error.  */
20867 /* We use char because int might match the return type of a gcc2
20868     builtin and then its argument prototype would still apply.  */
20869 char $ac_func();
20870
20871 int main() {
20872
20873 /* The GNU C library defines this for functions which it implements
20874     to always fail with ENOSYS.  Some functions are actually named
20875     something starting with __ and the normal name is an alias.  */
20876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20877 choke me
20878 #else
20879 $ac_func();
20880 #endif
20881
20882 ; return 0; }
20883 EOF
20884 if { (eval echo configure:20885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20885   rm -rf conftest*
20886   eval "ac_cv_func_$ac_func=yes"
20887 else
20888   echo "configure: failed program was:" >&5
20889   cat conftest.$ac_ext >&5
20890   rm -rf conftest*
20891   eval "ac_cv_func_$ac_func=no"
20892 fi
20893 rm -f conftest*
20894 fi
20895
20896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20897   echo "$ac_t""yes" 1>&6
20898     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20899   cat >> confdefs.h <<EOF
20900 #define $ac_tr_func 1
20901 EOF
20902  
20903 else
20904   echo "$ac_t""no" 1>&6
20905 \
20906     ac_wfuncs=no
20907 fi
20908 done
20909
20910   
20911         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
20912     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
20913     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
20914     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
20915     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
20916     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
20917 do
20918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20919 echo "configure:20920: checking for $ac_func" >&5
20920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20921   echo $ac_n "(cached) $ac_c" 1>&6
20922 else
20923   cat > conftest.$ac_ext <<EOF
20924 #line 20925 "configure"
20925 #include "confdefs.h"
20926 /* System header to define __stub macros and hopefully few prototypes,
20927     which can conflict with char $ac_func(); below.  */
20928 #include <assert.h>
20929 /* Override any gcc2 internal prototype to avoid an error.  */
20930 /* We use char because int might match the return type of a gcc2
20931     builtin and then its argument prototype would still apply.  */
20932 char $ac_func();
20933
20934 int main() {
20935
20936 /* The GNU C library defines this for functions which it implements
20937     to always fail with ENOSYS.  Some functions are actually named
20938     something starting with __ and the normal name is an alias.  */
20939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20940 choke me
20941 #else
20942 $ac_func();
20943 #endif
20944
20945 ; return 0; }
20946 EOF
20947 if { (eval echo configure:20948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20948   rm -rf conftest*
20949   eval "ac_cv_func_$ac_func=yes"
20950 else
20951   echo "configure: failed program was:" >&5
20952   cat conftest.$ac_ext >&5
20953   rm -rf conftest*
20954   eval "ac_cv_func_$ac_func=no"
20955 fi
20956 rm -f conftest*
20957 fi
20958
20959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20960   echo "$ac_t""yes" 1>&6
20961     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20962   cat >> confdefs.h <<EOF
20963 #define $ac_tr_func 1
20964 EOF
20965  
20966 else
20967   echo "$ac_t""no" 1>&6
20968 \
20969     ac_wfuncs=no
20970 fi
20971 done
20972
20973
20974     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
20975 echo "configure:20976: checking for ISO C99 wchar_t support" >&5
20976     if test x"$has_weof" = xyes &&
20977        test x"$has_wchar_minmax" = xyes &&
20978        test x"$ac_wfuncs" = xyes; then
20979       ac_isoC99_wchar_t=yes
20980     else
20981       ac_isoC99_wchar_t=no
20982     fi
20983     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
20984   
20985             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
20986 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
20987 echo "configure:20988: checking for iconv.h" >&5
20988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20989   echo $ac_n "(cached) $ac_c" 1>&6
20990 else
20991   cat > conftest.$ac_ext <<EOF
20992 #line 20993 "configure"
20993 #include "confdefs.h"
20994 #include <iconv.h>
20995 EOF
20996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20997 { (eval echo configure:20998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20999 if test -z "$ac_err"; then
21000   rm -rf conftest*
21001   eval "ac_cv_header_$ac_safe=yes"
21002 else
21003   echo "$ac_err" >&5
21004   echo "configure: failed program was:" >&5
21005   cat conftest.$ac_ext >&5
21006   rm -rf conftest*
21007   eval "ac_cv_header_$ac_safe=no"
21008 fi
21009 rm -f conftest*
21010 fi
21011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21012   echo "$ac_t""yes" 1>&6
21013   ac_has_iconv_h=yes
21014 else
21015   echo "$ac_t""no" 1>&6
21016 ac_has_iconv_h=no
21017 fi
21018
21019     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
21020 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
21021 echo "configure:21022: checking for langinfo.h" >&5
21022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21023   echo $ac_n "(cached) $ac_c" 1>&6
21024 else
21025   cat > conftest.$ac_ext <<EOF
21026 #line 21027 "configure"
21027 #include "confdefs.h"
21028 #include <langinfo.h>
21029 EOF
21030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21031 { (eval echo configure:21032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21033 if test -z "$ac_err"; then
21034   rm -rf conftest*
21035   eval "ac_cv_header_$ac_safe=yes"
21036 else
21037   echo "$ac_err" >&5
21038   echo "configure: failed program was:" >&5
21039   cat conftest.$ac_ext >&5
21040   rm -rf conftest*
21041   eval "ac_cv_header_$ac_safe=no"
21042 fi
21043 rm -f conftest*
21044 fi
21045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21046   echo "$ac_t""yes" 1>&6
21047   ac_has_langinfo_h=yes
21048 else
21049   echo "$ac_t""no" 1>&6
21050 ac_has_langinfo_h=no
21051 fi
21052
21053
21054         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
21055 echo "configure:21056: checking for iconv in -liconv" >&5
21056 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
21057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21058   echo $ac_n "(cached) $ac_c" 1>&6
21059 else
21060   ac_save_LIBS="$LIBS"
21061 LIBS="-liconv  $LIBS"
21062 cat > conftest.$ac_ext <<EOF
21063 #line 21064 "configure"
21064 #include "confdefs.h"
21065 /* Override any gcc2 internal prototype to avoid an error.  */
21066 /* We use char because int might match the return type of a gcc2
21067     builtin and then its argument prototype would still apply.  */
21068 char iconv();
21069
21070 int main() {
21071 iconv()
21072 ; return 0; }
21073 EOF
21074 if { (eval echo configure:21075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21075   rm -rf conftest*
21076   eval "ac_cv_lib_$ac_lib_var=yes"
21077 else
21078   echo "configure: failed program was:" >&5
21079   cat conftest.$ac_ext >&5
21080   rm -rf conftest*
21081   eval "ac_cv_lib_$ac_lib_var=no"
21082 fi
21083 rm -f conftest*
21084 LIBS="$ac_save_LIBS"
21085
21086 fi
21087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21088   echo "$ac_t""yes" 1>&6
21089   libiconv="-liconv"
21090 else
21091   echo "$ac_t""no" 1>&6
21092 fi
21093
21094     ac_save_LIBS="$LIBS"
21095     LIBS="$LIBS $libiconv"
21096
21097     for ac_func in iconv_open iconv_close iconv nl_langinfo
21098 do
21099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21100 echo "configure:21101: checking for $ac_func" >&5
21101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21102   echo $ac_n "(cached) $ac_c" 1>&6
21103 else
21104   cat > conftest.$ac_ext <<EOF
21105 #line 21106 "configure"
21106 #include "confdefs.h"
21107 /* System header to define __stub macros and hopefully few prototypes,
21108     which can conflict with char $ac_func(); below.  */
21109 #include <assert.h>
21110 /* Override any gcc2 internal prototype to avoid an error.  */
21111 /* We use char because int might match the return type of a gcc2
21112     builtin and then its argument prototype would still apply.  */
21113 char $ac_func();
21114
21115 int main() {
21116
21117 /* The GNU C library defines this for functions which it implements
21118     to always fail with ENOSYS.  Some functions are actually named
21119     something starting with __ and the normal name is an alias.  */
21120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21121 choke me
21122 #else
21123 $ac_func();
21124 #endif
21125
21126 ; return 0; }
21127 EOF
21128 if { (eval echo configure:21129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21129   rm -rf conftest*
21130   eval "ac_cv_func_$ac_func=yes"
21131 else
21132   echo "configure: failed program was:" >&5
21133   cat conftest.$ac_ext >&5
21134   rm -rf conftest*
21135   eval "ac_cv_func_$ac_func=no"
21136 fi
21137 rm -f conftest*
21138 fi
21139
21140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21141   echo "$ac_t""yes" 1>&6
21142     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21143   cat >> confdefs.h <<EOF
21144 #define $ac_tr_func 1
21145 EOF
21146  \
21147     ac_XPG2funcs=yes
21148 else
21149   echo "$ac_t""no" 1>&6
21150 ac_XPG2funcs=no
21151 fi
21152 done
21153
21154   
21155     LIBS="$ac_save_LIBS"
21156
21157     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
21158 echo "configure:21159: checking for XPG2 wchar_t support" >&5
21159     if test x"$ac_has_iconv_h" = xyes &&
21160        test x"$ac_has_langinfo_h" = xyes &&
21161        test x"$ac_XPG2funcs" = xyes; then
21162       ac_XPG2_wchar_t=yes
21163     else
21164       ac_XPG2_wchar_t=no
21165     fi
21166     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
21167   
21168             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
21169 echo "configure:21170: checking for enabled wchar_t specializations" >&5
21170     if test x"$ac_isoC99_wchar_t" = xyes &&
21171        test x"$ac_XPG2_wchar_t" = xyes; then
21172       cat >> confdefs.h <<\EOF
21173 #define _GLIBCPP_USE_WCHAR_T 1
21174 EOF
21175
21176       echo "$ac_t"""yes"" 1>&6
21177     else
21178       echo "$ac_t"""no"" 1>&6
21179     fi
21180   else
21181         echo "configure: warning: wchar_t support disabled." 1>&2
21182   fi
21183
21184   
21185   ac_test_CXXFLAGS="${CXXFLAGS+set}"
21186   ac_save_CXXFLAGS="$CXXFLAGS"
21187   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
21188
21189   
21190   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
21191 echo "configure:21192: checking for strtold declaration" >&5
21192   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
21193     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
21194   echo $ac_n "(cached) $ac_c" 1>&6
21195 else
21196   
21197       
21198       ac_ext=C
21199 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21200 ac_cpp='$CXXCPP $CPPFLAGS'
21201 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21202 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21203 cross_compiling=$ac_cv_prog_cxx_cross
21204
21205       cat > conftest.$ac_ext <<EOF
21206 #line 21207 "configure"
21207 #include "confdefs.h"
21208 #include <stdlib.h>
21209 int main() {
21210  strtold(0, 0);
21211 ; return 0; }
21212 EOF
21213 if { (eval echo configure:21214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21214   rm -rf conftest*
21215   glibcpp_cv_func_strtold_use=yes
21216 else
21217   echo "configure: failed program was:" >&5
21218   cat conftest.$ac_ext >&5
21219   rm -rf conftest*
21220   glibcpp_cv_func_strtold_use=no
21221 fi
21222 rm -f conftest*
21223       ac_ext=c
21224 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21225 ac_cpp='$CPP $CPPFLAGS'
21226 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21227 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21228 cross_compiling=$ac_cv_prog_cc_cross
21229
21230     
21231 fi
21232
21233   fi
21234   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
21235   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
21236     for ac_func in strtold
21237 do
21238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21239 echo "configure:21240: checking for $ac_func" >&5
21240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21241   echo $ac_n "(cached) $ac_c" 1>&6
21242 else
21243   cat > conftest.$ac_ext <<EOF
21244 #line 21245 "configure"
21245 #include "confdefs.h"
21246 /* System header to define __stub macros and hopefully few prototypes,
21247     which can conflict with char $ac_func(); below.  */
21248 #include <assert.h>
21249 /* Override any gcc2 internal prototype to avoid an error.  */
21250 /* We use char because int might match the return type of a gcc2
21251     builtin and then its argument prototype would still apply.  */
21252 char $ac_func();
21253
21254 int main() {
21255
21256 /* The GNU C library defines this for functions which it implements
21257     to always fail with ENOSYS.  Some functions are actually named
21258     something starting with __ and the normal name is an alias.  */
21259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21260 choke me
21261 #else
21262 $ac_func();
21263 #endif
21264
21265 ; return 0; }
21266 EOF
21267 if { (eval echo configure:21268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21268   rm -rf conftest*
21269   eval "ac_cv_func_$ac_func=yes"
21270 else
21271   echo "configure: failed program was:" >&5
21272   cat conftest.$ac_ext >&5
21273   rm -rf conftest*
21274   eval "ac_cv_func_$ac_func=no"
21275 fi
21276 rm -f conftest*
21277 fi
21278
21279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21280   echo "$ac_t""yes" 1>&6
21281     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21282   cat >> confdefs.h <<EOF
21283 #define $ac_tr_func 1
21284 EOF
21285  
21286 else
21287   echo "$ac_t""no" 1>&6
21288 fi
21289 done
21290     
21291   fi
21292
21293   
21294   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
21295 echo "configure:21296: checking for strtof declaration" >&5
21296   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
21297     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
21298   echo $ac_n "(cached) $ac_c" 1>&6
21299 else
21300   
21301       
21302       ac_ext=C
21303 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21304 ac_cpp='$CXXCPP $CPPFLAGS'
21305 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21306 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21307 cross_compiling=$ac_cv_prog_cxx_cross
21308
21309       cat > conftest.$ac_ext <<EOF
21310 #line 21311 "configure"
21311 #include "confdefs.h"
21312 #include <stdlib.h>
21313 int main() {
21314  strtof(0, 0);
21315 ; return 0; }
21316 EOF
21317 if { (eval echo configure:21318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21318   rm -rf conftest*
21319   glibcpp_cv_func_strtof_use=yes
21320 else
21321   echo "configure: failed program was:" >&5
21322   cat conftest.$ac_ext >&5
21323   rm -rf conftest*
21324   glibcpp_cv_func_strtof_use=no
21325 fi
21326 rm -f conftest*
21327       ac_ext=c
21328 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21329 ac_cpp='$CPP $CPPFLAGS'
21330 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21331 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21332 cross_compiling=$ac_cv_prog_cc_cross
21333
21334     
21335 fi
21336
21337   fi
21338   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
21339   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
21340     for ac_func in strtof
21341 do
21342 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21343 echo "configure:21344: checking for $ac_func" >&5
21344 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21345   echo $ac_n "(cached) $ac_c" 1>&6
21346 else
21347   cat > conftest.$ac_ext <<EOF
21348 #line 21349 "configure"
21349 #include "confdefs.h"
21350 /* System header to define __stub macros and hopefully few prototypes,
21351     which can conflict with char $ac_func(); below.  */
21352 #include <assert.h>
21353 /* Override any gcc2 internal prototype to avoid an error.  */
21354 /* We use char because int might match the return type of a gcc2
21355     builtin and then its argument prototype would still apply.  */
21356 char $ac_func();
21357
21358 int main() {
21359
21360 /* The GNU C library defines this for functions which it implements
21361     to always fail with ENOSYS.  Some functions are actually named
21362     something starting with __ and the normal name is an alias.  */
21363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21364 choke me
21365 #else
21366 $ac_func();
21367 #endif
21368
21369 ; return 0; }
21370 EOF
21371 if { (eval echo configure:21372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21372   rm -rf conftest*
21373   eval "ac_cv_func_$ac_func=yes"
21374 else
21375   echo "configure: failed program was:" >&5
21376   cat conftest.$ac_ext >&5
21377   rm -rf conftest*
21378   eval "ac_cv_func_$ac_func=no"
21379 fi
21380 rm -f conftest*
21381 fi
21382
21383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21384   echo "$ac_t""yes" 1>&6
21385     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21386   cat >> confdefs.h <<EOF
21387 #define $ac_tr_func 1
21388 EOF
21389  
21390 else
21391   echo "$ac_t""no" 1>&6
21392 fi
21393 done
21394     
21395   fi
21396
21397   for ac_func in drand48
21398 do
21399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21400 echo "configure:21401: checking for $ac_func" >&5
21401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21402   echo $ac_n "(cached) $ac_c" 1>&6
21403 else
21404   cat > conftest.$ac_ext <<EOF
21405 #line 21406 "configure"
21406 #include "confdefs.h"
21407 /* System header to define __stub macros and hopefully few prototypes,
21408     which can conflict with char $ac_func(); below.  */
21409 #include <assert.h>
21410 /* Override any gcc2 internal prototype to avoid an error.  */
21411 /* We use char because int might match the return type of a gcc2
21412     builtin and then its argument prototype would still apply.  */
21413 char $ac_func();
21414
21415 int main() {
21416
21417 /* The GNU C library defines this for functions which it implements
21418     to always fail with ENOSYS.  Some functions are actually named
21419     something starting with __ and the normal name is an alias.  */
21420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21421 choke me
21422 #else
21423 $ac_func();
21424 #endif
21425
21426 ; return 0; }
21427 EOF
21428 if { (eval echo configure:21429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21429   rm -rf conftest*
21430   eval "ac_cv_func_$ac_func=yes"
21431 else
21432   echo "configure: failed program was:" >&5
21433   cat conftest.$ac_ext >&5
21434   rm -rf conftest*
21435   eval "ac_cv_func_$ac_func=no"
21436 fi
21437 rm -f conftest*
21438 fi
21439
21440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21441   echo "$ac_t""yes" 1>&6
21442     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21443   cat >> confdefs.h <<EOF
21444 #define $ac_tr_func 1
21445 EOF
21446  
21447 else
21448   echo "$ac_t""no" 1>&6
21449 fi
21450 done
21451
21452
21453   CXXFLAGS="$ac_save_CXXFLAGS"
21454
21455   
21456   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
21457 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
21458 echo "configure:21459: checking for locale.h" >&5
21459 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21460   echo $ac_n "(cached) $ac_c" 1>&6
21461 else
21462   cat > conftest.$ac_ext <<EOF
21463 #line 21464 "configure"
21464 #include "confdefs.h"
21465 #include <locale.h>
21466 EOF
21467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21468 { (eval echo configure:21469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21470 if test -z "$ac_err"; then
21471   rm -rf conftest*
21472   eval "ac_cv_header_$ac_safe=yes"
21473 else
21474   echo "$ac_err" >&5
21475   echo "configure: failed program was:" >&5
21476   cat conftest.$ac_ext >&5
21477   rm -rf conftest*
21478   eval "ac_cv_header_$ac_safe=no"
21479 fi
21480 rm -f conftest*
21481 fi
21482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21483   echo "$ac_t""yes" 1>&6
21484   
21485     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
21486 echo "configure:21487: checking for LC_MESSAGES" >&5
21487 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
21488   echo $ac_n "(cached) $ac_c" 1>&6
21489 else
21490   cat > conftest.$ac_ext <<EOF
21491 #line 21492 "configure"
21492 #include "confdefs.h"
21493 #include <locale.h>
21494 int main() {
21495 return LC_MESSAGES
21496 ; return 0; }
21497 EOF
21498 if { (eval echo configure:21499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21499   rm -rf conftest*
21500   ac_cv_val_LC_MESSAGES=yes
21501 else
21502   echo "configure: failed program was:" >&5
21503   cat conftest.$ac_ext >&5
21504   rm -rf conftest*
21505   ac_cv_val_LC_MESSAGES=no
21506 fi
21507 rm -f conftest*
21508 fi
21509
21510 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
21511     if test $ac_cv_val_LC_MESSAGES = yes; then
21512       cat >> confdefs.h <<\EOF
21513 #define HAVE_LC_MESSAGES 1
21514 EOF
21515
21516     fi
21517   
21518 else
21519   echo "$ac_t""no" 1>&6
21520 fi
21521
21522
21523
21524   cat > conftest.$ac_ext <<EOF
21525 #line 21526 "configure"
21526 #include "confdefs.h"
21527
21528   #include <setjmp.h>
21529   
21530 int main() {
21531 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
21532 ; return 0; }
21533 EOF
21534 if { (eval echo configure:21535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21535   rm -rf conftest*
21536   cat >> confdefs.h <<\EOF
21537 #define HAVE_SIGSETJMP 1
21538 EOF
21539
21540   
21541 else
21542   echo "configure: failed program was:" >&5
21543   cat conftest.$ac_ext >&5
21544 fi
21545 rm -f conftest*
21546
21547   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
21548 do
21549 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21550 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21551 echo "configure:21552: checking for $ac_hdr" >&5
21552 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21553   echo $ac_n "(cached) $ac_c" 1>&6
21554 else
21555   cat > conftest.$ac_ext <<EOF
21556 #line 21557 "configure"
21557 #include "confdefs.h"
21558 #include <$ac_hdr>
21559 EOF
21560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21561 { (eval echo configure:21562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21563 if test -z "$ac_err"; then
21564   rm -rf conftest*
21565   eval "ac_cv_header_$ac_safe=yes"
21566 else
21567   echo "$ac_err" >&5
21568   echo "configure: failed program was:" >&5
21569   cat conftest.$ac_ext >&5
21570   rm -rf conftest*
21571   eval "ac_cv_header_$ac_safe=no"
21572 fi
21573 rm -f conftest*
21574 fi
21575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21576   echo "$ac_t""yes" 1>&6
21577     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21578   cat >> confdefs.h <<EOF
21579 #define $ac_tr_hdr 1
21580 EOF
21581  
21582 else
21583   echo "$ac_t""no" 1>&6
21584 fi
21585 done
21586
21587 for ac_func in getpagesize
21588 do
21589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21590 echo "configure:21591: checking for $ac_func" >&5
21591 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21592   echo $ac_n "(cached) $ac_c" 1>&6
21593 else
21594   cat > conftest.$ac_ext <<EOF
21595 #line 21596 "configure"
21596 #include "confdefs.h"
21597 /* System header to define __stub macros and hopefully few prototypes,
21598     which can conflict with char $ac_func(); below.  */
21599 #include <assert.h>
21600 /* Override any gcc2 internal prototype to avoid an error.  */
21601 /* We use char because int might match the return type of a gcc2
21602     builtin and then its argument prototype would still apply.  */
21603 char $ac_func();
21604
21605 int main() {
21606
21607 /* The GNU C library defines this for functions which it implements
21608     to always fail with ENOSYS.  Some functions are actually named
21609     something starting with __ and the normal name is an alias.  */
21610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21611 choke me
21612 #else
21613 $ac_func();
21614 #endif
21615
21616 ; return 0; }
21617 EOF
21618 if { (eval echo configure:21619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21619   rm -rf conftest*
21620   eval "ac_cv_func_$ac_func=yes"
21621 else
21622   echo "configure: failed program was:" >&5
21623   cat conftest.$ac_ext >&5
21624   rm -rf conftest*
21625   eval "ac_cv_func_$ac_func=no"
21626 fi
21627 rm -f conftest*
21628 fi
21629
21630 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21631   echo "$ac_t""yes" 1>&6
21632     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21633   cat >> confdefs.h <<EOF
21634 #define $ac_tr_func 1
21635 EOF
21636  
21637 else
21638   echo "$ac_t""no" 1>&6
21639 fi
21640 done
21641
21642 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
21643 echo "configure:21644: checking for working mmap" >&5
21644 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
21645   echo $ac_n "(cached) $ac_c" 1>&6
21646 else
21647   if test "$cross_compiling" = yes; then
21648   ac_cv_func_mmap_fixed_mapped=no
21649 else
21650   cat > conftest.$ac_ext <<EOF
21651 #line 21652 "configure"
21652 #include "confdefs.h"
21653
21654 /* Thanks to Mike Haertel and Jim Avera for this test.
21655    Here is a matrix of mmap possibilities:
21656         mmap private not fixed
21657         mmap private fixed at somewhere currently unmapped
21658         mmap private fixed at somewhere already mapped
21659         mmap shared not fixed
21660         mmap shared fixed at somewhere currently unmapped
21661         mmap shared fixed at somewhere already mapped
21662    For private mappings, we should verify that changes cannot be read()
21663    back from the file, nor mmap's back from the file at a different
21664    address.  (There have been systems where private was not correctly
21665    implemented like the infamous i386 svr4.0, and systems where the
21666    VM page cache was not coherent with the filesystem buffer cache
21667    like early versions of FreeBSD and possibly contemporary NetBSD.)
21668    For shared mappings, we should conversely verify that changes get
21669    propogated back to all the places they're supposed to be.
21670
21671    Grep wants private fixed already mapped.
21672    The main things grep needs to know about mmap are:
21673    * does it exist and is it safe to write into the mmap'd area
21674    * how to use it (BSD variants)  */
21675 #include <sys/types.h>
21676 #include <fcntl.h>
21677 #include <sys/mman.h>
21678
21679 #if HAVE_SYS_TYPES_H
21680 # include <sys/types.h>
21681 #endif
21682
21683 #if HAVE_STDLIB_H
21684 # include <stdlib.h>
21685 #endif
21686
21687 #if HAVE_SYS_STAT_H
21688 # include <sys/stat.h>
21689 #endif
21690
21691 #if HAVE_UNISTD_H
21692 # include <unistd.h>
21693 #endif
21694
21695 /* This mess was copied from the GNU getpagesize.h.  */
21696 #ifndef HAVE_GETPAGESIZE
21697
21698 /* Assume that all systems that can run configure have sys/param.h.  */
21699 # ifndef HAVE_SYS_PARAM_H
21700 #  define HAVE_SYS_PARAM_H 1
21701 # endif
21702
21703 # ifdef _SC_PAGESIZE
21704 #  define getpagesize() sysconf(_SC_PAGESIZE)
21705 # else /* no _SC_PAGESIZE */
21706 #  ifdef HAVE_SYS_PARAM_H
21707 #   include <sys/param.h>
21708 #   ifdef EXEC_PAGESIZE
21709 #    define getpagesize() EXEC_PAGESIZE
21710 #   else /* no EXEC_PAGESIZE */
21711 #    ifdef NBPG
21712 #     define getpagesize() NBPG * CLSIZE
21713 #     ifndef CLSIZE
21714 #      define CLSIZE 1
21715 #     endif /* no CLSIZE */
21716 #    else /* no NBPG */
21717 #     ifdef NBPC
21718 #      define getpagesize() NBPC
21719 #     else /* no NBPC */
21720 #      ifdef PAGESIZE
21721 #       define getpagesize() PAGESIZE
21722 #      endif /* PAGESIZE */
21723 #     endif /* no NBPC */
21724 #    endif /* no NBPG */
21725 #   endif /* no EXEC_PAGESIZE */
21726 #  else /* no HAVE_SYS_PARAM_H */
21727 #   define getpagesize() 8192   /* punt totally */
21728 #  endif /* no HAVE_SYS_PARAM_H */
21729 # endif /* no _SC_PAGESIZE */
21730
21731 #endif /* no HAVE_GETPAGESIZE */
21732
21733 #ifdef __cplusplus
21734 extern "C" { void *malloc(unsigned); }
21735 #else
21736 char *malloc();
21737 #endif
21738
21739 int
21740 main()
21741 {
21742         char *data, *data2, *data3;
21743         int i, pagesize;
21744         int fd;
21745
21746         pagesize = getpagesize();
21747
21748         /*
21749          * First, make a file with some known garbage in it.
21750          */
21751         data = malloc(pagesize);
21752         if (!data)
21753                 exit(1);
21754         for (i = 0; i < pagesize; ++i)
21755                 *(data + i) = rand();
21756         umask(0);
21757         fd = creat("conftestmmap", 0600);
21758         if (fd < 0)
21759                 exit(1);
21760         if (write(fd, data, pagesize) != pagesize)
21761                 exit(1);
21762         close(fd);
21763
21764         /*
21765          * Next, try to mmap the file at a fixed address which
21766          * already has something else allocated at it.  If we can,
21767          * also make sure that we see the same garbage.
21768          */
21769         fd = open("conftestmmap", O_RDWR);
21770         if (fd < 0)
21771                 exit(1);
21772         data2 = malloc(2 * pagesize);
21773         if (!data2)
21774                 exit(1);
21775         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21776         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
21777             MAP_PRIVATE | MAP_FIXED, fd, 0L))
21778                 exit(1);
21779         for (i = 0; i < pagesize; ++i)
21780                 if (*(data + i) != *(data2 + i))
21781                         exit(1);
21782
21783         /*
21784          * Finally, make sure that changes to the mapped area
21785          * do not percolate back to the file as seen by read().
21786          * (This is a bug on some variants of i386 svr4.0.)
21787          */
21788         for (i = 0; i < pagesize; ++i)
21789                 *(data2 + i) = *(data2 + i) + 1;
21790         data3 = malloc(pagesize);
21791         if (!data3)
21792                 exit(1);
21793         if (read(fd, data3, pagesize) != pagesize)
21794                 exit(1);
21795         for (i = 0; i < pagesize; ++i)
21796                 if (*(data + i) != *(data3 + i))
21797                         exit(1);
21798         close(fd);
21799         unlink("conftestmmap");
21800         exit(0);
21801 }
21802
21803 EOF
21804 if { (eval echo configure:21805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21805 then
21806   ac_cv_func_mmap_fixed_mapped=yes
21807 else
21808   echo "configure: failed program was:" >&5
21809   cat conftest.$ac_ext >&5
21810   rm -fr conftest*
21811   ac_cv_func_mmap_fixed_mapped=no
21812 fi
21813 rm -fr conftest*
21814 fi
21815
21816 fi
21817
21818 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
21819 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21820   cat >> confdefs.h <<\EOF
21821 #define HAVE_MMAP 1
21822 EOF
21823
21824 fi
21825
21826
21827   # Establish limits on memory usage during 'make check'
21828   
21829   
21830   setrlimit_have_headers=yes
21831   for ac_hdr in unistd.h sys/time.h sys/resource.h
21832 do
21833 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21834 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21835 echo "configure:21836: checking for $ac_hdr" >&5
21836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21837   echo $ac_n "(cached) $ac_c" 1>&6
21838 else
21839   cat > conftest.$ac_ext <<EOF
21840 #line 21841 "configure"
21841 #include "confdefs.h"
21842 #include <$ac_hdr>
21843 EOF
21844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21845 { (eval echo configure:21846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21847 if test -z "$ac_err"; then
21848   rm -rf conftest*
21849   eval "ac_cv_header_$ac_safe=yes"
21850 else
21851   echo "$ac_err" >&5
21852   echo "configure: failed program was:" >&5
21853   cat conftest.$ac_ext >&5
21854   rm -rf conftest*
21855   eval "ac_cv_header_$ac_safe=no"
21856 fi
21857 rm -f conftest*
21858 fi
21859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21860   echo "$ac_t""yes" 1>&6
21861     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21862   cat >> confdefs.h <<EOF
21863 #define $ac_tr_hdr 1
21864 EOF
21865  
21866 else
21867   echo "$ac_t""no" 1>&6
21868 setrlimit_have_headers=no
21869 fi
21870 done
21871
21872   # If don't have the headers, then we can't run the tests now, and we
21873   # won't be seeing any of these during testsuite compilation.
21874   if test $setrlimit_have_headers = yes; then
21875     # Can't do these in a loop, else the resulting syntax is wrong.
21876     
21877   cat > conftest.$ac_ext <<EOF
21878 #line 21879 "configure"
21879 #include "confdefs.h"
21880 #include <unistd.h>
21881                   #include <sys/time.h>
21882                   #include <sys/resource.h>
21883                  
21884 int main() {
21885  int f = RLIMIT_DATA ; 
21886 ; return 0; }
21887 EOF
21888 if { (eval echo configure:21889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21889   rm -rf conftest*
21890   glibcpp_mresult=1
21891 else
21892   echo "configure: failed program was:" >&5
21893   cat conftest.$ac_ext >&5
21894   rm -rf conftest*
21895   glibcpp_mresult=0
21896 fi
21897 rm -f conftest*
21898   cat >> confdefs.h <<EOF
21899 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
21900 EOF
21901
21902
21903     
21904   cat > conftest.$ac_ext <<EOF
21905 #line 21906 "configure"
21906 #include "confdefs.h"
21907 #include <unistd.h>
21908                   #include <sys/time.h>
21909                   #include <sys/resource.h>
21910                  
21911 int main() {
21912  int f = RLIMIT_RSS ; 
21913 ; return 0; }
21914 EOF
21915 if { (eval echo configure:21916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21916   rm -rf conftest*
21917   glibcpp_mresult=1
21918 else
21919   echo "configure: failed program was:" >&5
21920   cat conftest.$ac_ext >&5
21921   rm -rf conftest*
21922   glibcpp_mresult=0
21923 fi
21924 rm -f conftest*
21925   cat >> confdefs.h <<EOF
21926 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
21927 EOF
21928
21929
21930     
21931   cat > conftest.$ac_ext <<EOF
21932 #line 21933 "configure"
21933 #include "confdefs.h"
21934 #include <unistd.h>
21935                   #include <sys/time.h>
21936                   #include <sys/resource.h>
21937                  
21938 int main() {
21939  int f = RLIMIT_VMEM ; 
21940 ; return 0; }
21941 EOF
21942 if { (eval echo configure:21943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21943   rm -rf conftest*
21944   glibcpp_mresult=1
21945 else
21946   echo "configure: failed program was:" >&5
21947   cat conftest.$ac_ext >&5
21948   rm -rf conftest*
21949   glibcpp_mresult=0
21950 fi
21951 rm -f conftest*
21952   cat >> confdefs.h <<EOF
21953 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
21954 EOF
21955
21956
21957     
21958   cat > conftest.$ac_ext <<EOF
21959 #line 21960 "configure"
21960 #include "confdefs.h"
21961 #include <unistd.h>
21962                   #include <sys/time.h>
21963                   #include <sys/resource.h>
21964                  
21965 int main() {
21966  int f = RLIMIT_AS ; 
21967 ; return 0; }
21968 EOF
21969 if { (eval echo configure:21970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21970   rm -rf conftest*
21971   glibcpp_mresult=1
21972 else
21973   echo "configure: failed program was:" >&5
21974   cat conftest.$ac_ext >&5
21975   rm -rf conftest*
21976   glibcpp_mresult=0
21977 fi
21978 rm -f conftest*
21979   cat >> confdefs.h <<EOF
21980 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
21981 EOF
21982
21983
21984
21985     # Check for rlimit, setrlimit.
21986     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
21987   echo $ac_n "(cached) $ac_c" 1>&6
21988 else
21989   
21990       cat > conftest.$ac_ext <<EOF
21991 #line 21992 "configure"
21992 #include "confdefs.h"
21993 #include <unistd.h>
21994                   #include <sys/time.h>
21995                   #include <sys/resource.h>
21996                      
21997 int main() {
21998  struct rlimit r; setrlimit(0, &r);
21999 ; return 0; }
22000 EOF
22001 if { (eval echo configure:22002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22002   rm -rf conftest*
22003   ac_setrlimit=yes
22004 else
22005   echo "configure: failed program was:" >&5
22006   cat conftest.$ac_ext >&5
22007   rm -rf conftest*
22008   ac_setrlimit=no
22009 fi
22010 rm -f conftest*
22011     
22012 fi
22013
22014   fi
22015
22016   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
22017 echo "configure:22018: checking for testsuite memory limit support" >&5
22018   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
22019     ac_mem_limits=yes
22020     cat >> confdefs.h <<\EOF
22021 #define _GLIBCPP_MEM_LIMITS 1
22022 EOF
22023
22024   else
22025     ac_mem_limits=no
22026   fi
22027   echo "$ac_t""$ac_mem_limits" 1>&6
22028
22029
22030   # Look for setenv, so that extended locale tests can be performed.
22031   
22032   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
22033 echo "configure:22034: checking for setenv declaration" >&5
22034   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
22035     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
22036   echo $ac_n "(cached) $ac_c" 1>&6
22037 else
22038   
22039       
22040       ac_ext=C
22041 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22042 ac_cpp='$CXXCPP $CPPFLAGS'
22043 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22044 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22045 cross_compiling=$ac_cv_prog_cxx_cross
22046
22047       cat > conftest.$ac_ext <<EOF
22048 #line 22049 "configure"
22049 #include "confdefs.h"
22050 #include <stdlib.h>
22051 int main() {
22052  setenv(0, 0, 0);
22053 ; return 0; }
22054 EOF
22055 if { (eval echo configure:22056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22056   rm -rf conftest*
22057   glibcpp_cv_func_setenv_use=yes
22058 else
22059   echo "configure: failed program was:" >&5
22060   cat conftest.$ac_ext >&5
22061   rm -rf conftest*
22062   glibcpp_cv_func_setenv_use=no
22063 fi
22064 rm -f conftest*
22065       ac_ext=c
22066 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22067 ac_cpp='$CPP $CPPFLAGS'
22068 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22069 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22070 cross_compiling=$ac_cv_prog_cc_cross
22071
22072     
22073 fi
22074
22075   fi
22076   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
22077   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
22078     for ac_func in setenv
22079 do
22080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22081 echo "configure:22082: checking for $ac_func" >&5
22082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22083   echo $ac_n "(cached) $ac_c" 1>&6
22084 else
22085   cat > conftest.$ac_ext <<EOF
22086 #line 22087 "configure"
22087 #include "confdefs.h"
22088 /* System header to define __stub macros and hopefully few prototypes,
22089     which can conflict with char $ac_func(); below.  */
22090 #include <assert.h>
22091 /* Override any gcc2 internal prototype to avoid an error.  */
22092 /* We use char because int might match the return type of a gcc2
22093     builtin and then its argument prototype would still apply.  */
22094 char $ac_func();
22095
22096 int main() {
22097
22098 /* The GNU C library defines this for functions which it implements
22099     to always fail with ENOSYS.  Some functions are actually named
22100     something starting with __ and the normal name is an alias.  */
22101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22102 choke me
22103 #else
22104 $ac_func();
22105 #endif
22106
22107 ; return 0; }
22108 EOF
22109 if { (eval echo configure:22110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22110   rm -rf conftest*
22111   eval "ac_cv_func_$ac_func=yes"
22112 else
22113   echo "configure: failed program was:" >&5
22114   cat conftest.$ac_ext >&5
22115   rm -rf conftest*
22116   eval "ac_cv_func_$ac_func=no"
22117 fi
22118 rm -f conftest*
22119 fi
22120
22121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22122   echo "$ac_t""yes" 1>&6
22123     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22124   cat >> confdefs.h <<EOF
22125 #define $ac_tr_func 1
22126 EOF
22127  
22128 else
22129   echo "$ac_t""no" 1>&6
22130 fi
22131 done
22132     
22133   fi
22134
22135
22136 fi
22137
22138 # This depends on the possibly-skipped linker test above.
22139 # Check whether --enable-symvers or --disable-symvers was given.
22140 if test "${enable_symvers+set}" = set; then
22141   enableval="$enable_symvers"
22142   case "$enableval" in
22143  yes) enable_symvers=yes ;;
22144  no)  enable_symvers=no ;;
22145  # other names here, just as sanity checks
22146  #gnu|sun|etcetera) enable_symvers=$enableval ;;
22147  gnu) enable_symvers=$enableval ;;
22148  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
22149  esac
22150 else
22151   enable_symvers=yes
22152 fi
22153
22154 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
22155 # don't know enough about $LD to do tricks... 
22156 if test x$enable_shared = xno || 
22157         test "x$LD" = x || 
22158         test x$glibcpp_gnu_ld_version = x; then
22159   enable_symvers=no
22160 fi
22161
22162 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
22163 if test $enable_symvers != no; then
22164   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
22165 echo "configure:22166: checking for shared libgcc" >&5
22166   ac_save_CFLAGS="$CFLAGS"
22167   CFLAGS=' -lgcc_s'
22168   cat > conftest.$ac_ext <<EOF
22169 #line 22170 "configure"
22170 #include "confdefs.h"
22171
22172 int main() {
22173 return 0
22174 ; return 0; }
22175 EOF
22176 if { (eval echo configure:22177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22177   rm -rf conftest*
22178   glibcpp_shared_libgcc=yes
22179 else
22180   echo "configure: failed program was:" >&5
22181   cat conftest.$ac_ext >&5
22182   rm -rf conftest*
22183   glibcpp_shared_libgcc=no
22184 fi
22185 rm -f conftest*
22186   CFLAGS="$ac_save_CFLAGS"
22187   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
22188 fi
22189
22190 # For GNU ld, we need at least this version.  It's 2.12 in the same format
22191 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
22192 glibcpp_min_gnu_ld_version=21200
22193
22194 # Check to see if unspecified "yes" value can win, given results
22195 # above.  
22196 if test $enable_symvers = yes ; then
22197   if test $with_gnu_ld = yes &&
22198     test $glibcpp_shared_libgcc = yes ;
22199   then
22200     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
22201         enable_symvers=gnu
22202     else
22203       ac_test_CFLAGS="${CFLAGS+set}"
22204       ac_save_CFLAGS="$CFLAGS"
22205       CFLAGS='-shared -Wl,--version-script,conftest.map'
22206       enable_symvers=no
22207       
22208       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
22209       
22210       cat > conftest.$ac_ext <<EOF
22211 #line 22212 "configure"
22212 #include "confdefs.h"
22213 int foo;
22214 int main() {
22215
22216 ; return 0; }
22217 EOF
22218 if { (eval echo configure:22219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22219   rm -rf conftest*
22220   enable_symvers=gnu
22221 else
22222   echo "configure: failed program was:" >&5
22223   cat conftest.$ac_ext >&5
22224 fi
22225 rm -f conftest*
22226       if test "$ac_test_CFLAGS" = set; then
22227         CFLAGS="$ac_save_CFLAGS"
22228       else
22229         # this is the suspicious part
22230         CFLAGS=''
22231       fi
22232       rm -f conftest.map
22233     fi
22234   else
22235     # just fail for now
22236     enable_symvers=no
22237   fi
22238 fi
22239
22240 case $enable_symvers in
22241   no)
22242       LINKER_MAP=config/linker-map.dummy
22243       ;;
22244   gnu)
22245       LINKER_MAP=config/linker-map.gnu
22246       ;;
22247 esac
22248
22249
22250
22251
22252 if test $enable_symvers != no; then
22253   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
22254   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
22255 else
22256   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
22257   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
22258 fi
22259 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
22260 echo "configure:22261: checking versioning on shared library symbols" >&5
22261 echo "$ac_t""$enable_symvers" 1>&6
22262
22263
22264 # Propagate the target-specific source directories through the build chain.
22265 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH and
22266 # CPULIMITSH [might] use it, and they only get used here.)
22267 OS_INC_SRCDIR=config/${os_include_dir}/bits
22268 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}/bits
22269 CPU_LIMITS_INC_SRCDIR=config/${CPULIMITSH}/bits
22270
22271
22272
22273
22274 # Set up cross-compile flags
22275   
22276
22277 if test "$CANADIAN" = yes; then
22278   CANADIAN_TRUE=
22279   CANADIAN_FALSE='#'
22280 else
22281   CANADIAN_TRUE='#'
22282   CANADIAN_FALSE=
22283 fi
22284  
22285 cat > confcache <<\EOF
22286 # This file is a shell script that caches the results of configure
22287 # tests run on this system so they can be shared between configure
22288 # scripts and configure runs.  It is not useful on other systems.
22289 # If it contains results you don't want to keep, you may remove or edit it.
22290 #
22291 # By default, configure uses ./config.cache as the cache file,
22292 # creating it if it does not exist already.  You can give configure
22293 # the --cache-file=FILE option to use a different cache file; that is
22294 # what configure does when it calls configure scripts in
22295 # subdirectories, so they share the cache.
22296 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22297 # config.status only pays attention to the cache file if you give it the
22298 # --recheck option to rerun configure.
22299 #
22300 EOF
22301 # The following way of writing the cache mishandles newlines in values,
22302 # but we know of no workaround that is simple, portable, and efficient.
22303 # So, don't put newlines in cache variables' values.
22304 # Ultrix sh set writes to stderr and can't be redirected directly,
22305 # and sets the high bit in the cache file unless we assign to the vars.
22306 (set) 2>&1 |
22307   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22308   *ac_space=\ *)
22309     # `set' does not quote correctly, so add quotes (double-quote substitution
22310     # turns \\\\ into \\, and sed turns \\ into \).
22311     sed -n \
22312       -e "s/'/'\\\\''/g" \
22313       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22314     ;;
22315   *)
22316     # `set' quotes correctly as required by POSIX, so do not add quotes.
22317     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22318     ;;
22319   esac >> confcache
22320 if cmp -s $cache_file confcache; then
22321   :
22322 else
22323   if test -w $cache_file; then
22324     echo "updating cache $cache_file"
22325     cat confcache > $cache_file
22326   else
22327     echo "not updating unwritable cache $cache_file"
22328   fi
22329 fi
22330 rm -f confcache
22331
22332
22333 if test "${multilib}" = "yes"; then
22334   multilib_arg="--enable-multilib"
22335 else
22336   multilib_arg=
22337 fi
22338
22339 # Needed so that g++ can find the correct include subdir automatically.
22340 INTERFACE=v3
22341
22342 # Export all the install information
22343
22344 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
22345 # exported correctly in GLIBCPP_CONFIGURE.
22346 glibcpp_toolexecdir=no
22347 glibcpp_toolexeclibdir=no
22348 glibcpp_prefixdir=${prefix}
22349
22350 echo $ac_n "checking for interface version number""... $ac_c" 1>&6
22351 echo "configure:22352: checking for interface version number" >&5
22352 libstdcxx_interface=$INTERFACE
22353 echo "$ac_t""$libstdcxx_interface" 1>&6
22354
22355 # Process the option --with-gxx-include-dir=<path to include-files directory>
22356 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
22357 echo "configure:22358: checking for --with-gxx-include-dir" >&5
22358 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
22359 if test "${with_gxx_include_dir+set}" = set; then
22360   withval="$with_gxx_include_dir"
22361   case "${withval}" in
22362   yes)
22363     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
22364     gxx_include_dir=no
22365     ;;
22366   no)
22367     gxx_include_dir=no
22368     ;;
22369   *)
22370     gxx_include_dir=${withval}
22371     ;;
22372 esac
22373 else
22374   gxx_include_dir=no
22375 fi
22376
22377 echo "$ac_t""$gxx_include_dir" 1>&6
22378
22379 # Process the option "--enable-version-specific-runtime-libs"
22380 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
22381 echo "configure:22382: checking for --enable-version-specific-runtime-libs" >&5
22382 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
22383 if test "${enable_version_specific_runtime_libs+set}" = set; then
22384   enableval="$enable_version_specific_runtime_libs"
22385   case "$enableval" in
22386  yes) version_specific_libs=yes ;;
22387  no)  version_specific_libs=no ;;
22388  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
22389  esac
22390 else
22391   version_specific_libs=no
22392 fi
22393 # Option set, now we can test it.
22394 echo "$ac_t""$version_specific_libs" 1>&6
22395
22396 if test $version_specific_libs = yes; then
22397   # Need the gcc compiler version to know where to install libraries
22398   # and header files if --enable-version-specific-runtime-libs option
22399   # is selected.
22400     gcc_version_trigger=${srcdir}/../gcc/version.c
22401   gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
22402   gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
22403   if test x"$gxx_include_dir" = x"no"; then
22404     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/g++
22405   fi
22406   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22407   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
22408   fi
22409
22410 # Default case for install directory for include files.
22411 if test $version_specific_libs = no &&
22412    test $gxx_include_dir = no; then
22413   gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface}
22414 fi
22415
22416 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
22417 # Install a library built with a cross compiler in tooldir, not libdir.
22418 if test x"$glibcpp_toolexecdir" = x"no"; then 
22419   if test -n "$with_cross_host" &&
22420      test x"$with_cross_host" != x"no"; then
22421     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
22422     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
22423   else
22424     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
22425     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
22426   fi
22427 fi
22428
22429 echo $ac_n "checking for install location""... $ac_c" 1>&6
22430 echo "configure:22431: checking for install location" >&5
22431 echo "$ac_t""$gxx_include_dir" 1>&6
22432
22433
22434
22435
22436
22437
22438
22439 # Export all the include and flag information to makefiles.
22440
22441   # Root level of the build directory include sources.
22442   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
22443
22444   # Passed down for canadian crosses.
22445   if test x"$CANADIAN" = xyes; then
22446     TOPLEVEL_INCLUDES='-I$(includedir)'
22447   fi
22448
22449   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
22450
22451   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
22452
22453   if test x"$need_libio" = xyes; then
22454     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
22455     
22456   fi
22457
22458   # Now, export this to all the little Makefiles....
22459   
22460   
22461   
22462   
22463
22464
22465   # Optimization flags that are probably a good idea for thrill-seekers. Just
22466   # uncomment the lines below and make, everything else is ready to go... 
22467   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
22468   OPTIMIZE_CXXFLAGS=
22469   
22470
22471   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
22472   
22473
22474
22475 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
22476    grep "enable shared" > /dev/null; then
22477   LIBSUPCXX_PICFLAGS=-prefer-pic
22478 else
22479   LIBSUPCXX_PICFLAGS=
22480 fi
22481
22482
22483 # Generate the various Makefiles, include files, and scripts.
22484 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
22485 # and libsupc++/Makefile.am so that multilib installs will end up
22486 # installed in the correct place. To work around this not being passed
22487 # down from config-ml.in -> top_srcdir/Makefile.am ->
22488 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
22489 trap '' 1 2 15
22490 cat > confcache <<\EOF
22491 # This file is a shell script that caches the results of configure
22492 # tests run on this system so they can be shared between configure
22493 # scripts and configure runs.  It is not useful on other systems.
22494 # If it contains results you don't want to keep, you may remove or edit it.
22495 #
22496 # By default, configure uses ./config.cache as the cache file,
22497 # creating it if it does not exist already.  You can give configure
22498 # the --cache-file=FILE option to use a different cache file; that is
22499 # what configure does when it calls configure scripts in
22500 # subdirectories, so they share the cache.
22501 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22502 # config.status only pays attention to the cache file if you give it the
22503 # --recheck option to rerun configure.
22504 #
22505 EOF
22506 # The following way of writing the cache mishandles newlines in values,
22507 # but we know of no workaround that is simple, portable, and efficient.
22508 # So, don't put newlines in cache variables' values.
22509 # Ultrix sh set writes to stderr and can't be redirected directly,
22510 # and sets the high bit in the cache file unless we assign to the vars.
22511 (set) 2>&1 |
22512   case `(ac_space=' '; set | grep ac_space) 2>&1` in
22513   *ac_space=\ *)
22514     # `set' does not quote correctly, so add quotes (double-quote substitution
22515     # turns \\\\ into \\, and sed turns \\ into \).
22516     sed -n \
22517       -e "s/'/'\\\\''/g" \
22518       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22519     ;;
22520   *)
22521     # `set' quotes correctly as required by POSIX, so do not add quotes.
22522     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22523     ;;
22524   esac >> confcache
22525 if cmp -s $cache_file confcache; then
22526   :
22527 else
22528   if test -w $cache_file; then
22529     echo "updating cache $cache_file"
22530     cat confcache > $cache_file
22531   else
22532     echo "not updating unwritable cache $cache_file"
22533   fi
22534 fi
22535 rm -f confcache
22536
22537 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22538
22539 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22540 # Let make expand exec_prefix.
22541 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22542
22543 # Any assignment to VPATH causes Sun make to only execute
22544 # the first set of double-colon rules, so remove it if not needed.
22545 # If there is a colon in the path, we need to keep it.
22546 if test "x$srcdir" = x.; then
22547   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
22548 fi
22549
22550 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22551
22552 DEFS=-DHAVE_CONFIG_H
22553
22554 # Without the "./", some shells look in PATH for config.status.
22555 : ${CONFIG_STATUS=./config.status}
22556
22557 echo creating $CONFIG_STATUS
22558 rm -f $CONFIG_STATUS
22559 cat > $CONFIG_STATUS <<EOF
22560 #! /bin/sh
22561 # Generated automatically by configure.
22562 # Run this file to recreate the current configuration.
22563 # This directory was configured as follows,
22564 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22565 #
22566 # $0 $ac_configure_args
22567 #
22568 # Compiler output produced by configure, useful for debugging
22569 # configure, is in ./config.log if it exists.
22570
22571 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22572 for ac_option
22573 do
22574   case "\$ac_option" in
22575   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22576     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22577     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22578   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22579     echo "$CONFIG_STATUS generated by autoconf version 2.13"
22580     exit 0 ;;
22581   -help | --help | --hel | --he | --h)
22582     echo "\$ac_cs_usage"; exit 0 ;;
22583   *) echo "\$ac_cs_usage"; exit 1 ;;
22584   esac
22585 done
22586
22587 ac_given_srcdir=$srcdir
22588 ac_given_INSTALL="$INSTALL"
22589
22590 trap 'rm -fr `echo "Makefile \
22591     include/Makefile src/Makefile \
22592     libmath/Makefile libio/Makefile libsupc++/Makefile \
22593     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22594 EOF
22595 cat >> $CONFIG_STATUS <<EOF
22596
22597 # Protect against being on the right side of a sed subst in config.status.
22598 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22599  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22600 $ac_vpsub
22601 $extrasub
22602 s%@SHELL@%$SHELL%g
22603 s%@CFLAGS@%$CFLAGS%g
22604 s%@CPPFLAGS@%$CPPFLAGS%g
22605 s%@CXXFLAGS@%$CXXFLAGS%g
22606 s%@FFLAGS@%$FFLAGS%g
22607 s%@DEFS@%$DEFS%g
22608 s%@LDFLAGS@%$LDFLAGS%g
22609 s%@LIBS@%$LIBS%g
22610 s%@exec_prefix@%$exec_prefix%g
22611 s%@prefix@%$prefix%g
22612 s%@program_transform_name@%$program_transform_name%g
22613 s%@bindir@%$bindir%g
22614 s%@sbindir@%$sbindir%g
22615 s%@libexecdir@%$libexecdir%g
22616 s%@datadir@%$datadir%g
22617 s%@sysconfdir@%$sysconfdir%g
22618 s%@sharedstatedir@%$sharedstatedir%g
22619 s%@localstatedir@%$localstatedir%g
22620 s%@libdir@%$libdir%g
22621 s%@includedir@%$includedir%g
22622 s%@oldincludedir@%$oldincludedir%g
22623 s%@infodir@%$infodir%g
22624 s%@mandir@%$mandir%g
22625 s%@PACKAGE@%$PACKAGE%g
22626 s%@release_VERSION@%$release_VERSION%g
22627 s%@libtool_VERSION@%$libtool_VERSION%g
22628 s%@host@%$host%g
22629 s%@host_alias@%$host_alias%g
22630 s%@host_cpu@%$host_cpu%g
22631 s%@host_vendor@%$host_vendor%g
22632 s%@host_os@%$host_os%g
22633 s%@target@%$target%g
22634 s%@target_alias@%$target_alias%g
22635 s%@target_cpu@%$target_cpu%g
22636 s%@target_vendor@%$target_vendor%g
22637 s%@target_os@%$target_os%g
22638 s%@build@%$build%g
22639 s%@build_alias@%$build_alias%g
22640 s%@build_cpu@%$build_cpu%g
22641 s%@build_vendor@%$build_vendor%g
22642 s%@build_os@%$build_os%g
22643 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22644 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22645 s%@INSTALL_DATA@%$INSTALL_DATA%g
22646 s%@VERSION@%$VERSION%g
22647 s%@ACLOCAL@%$ACLOCAL%g
22648 s%@AUTOCONF@%$AUTOCONF%g
22649 s%@AUTOMAKE@%$AUTOMAKE%g
22650 s%@AUTOHEADER@%$AUTOHEADER%g
22651 s%@MAKEINFO@%$MAKEINFO%g
22652 s%@SET_MAKE@%$SET_MAKE%g
22653 s%@toplevel_srcdir@%$toplevel_srcdir%g
22654 s%@glibcpp_builddir@%$glibcpp_builddir%g
22655 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
22656 s%@AWK@%$AWK%g
22657 s%@LN_S@%$LN_S%g
22658 s%@glibcpp_basedir@%$glibcpp_basedir%g
22659 s%@CC@%$CC%g
22660 s%@glibcpp_CXX@%$glibcpp_CXX%g
22661 s%@AS@%$AS%g
22662 s%@AR@%$AR%g
22663 s%@RANLIB@%$RANLIB%g
22664 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
22665 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
22666 s%@MAINT@%$MAINT%g
22667 s%@EXEEXT@%$EXEEXT%g
22668 s%@OBJEXT@%$OBJEXT%g
22669 s%@STRIP@%$STRIP%g
22670 s%@LIBTOOL@%$LIBTOOL%g
22671 s%@CXXCPP@%$CXXCPP%g
22672 s%@enable_shared@%$enable_shared%g
22673 s%@enable_static@%$enable_static%g
22674 s%@ifGNUmake@%$ifGNUmake%g
22675 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
22676 s%@CPP@%$CPP%g
22677 s%@CSTDIO_H@%$CSTDIO_H%g
22678 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
22679 s%@CCODECVT_C@%$CCODECVT_C%g
22680 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
22681 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
22682 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
22683 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
22684 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
22685 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
22686 s%@libio_la@%$libio_la%g
22687 s%@check_msgfmt@%$check_msgfmt%g
22688 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
22689 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
22690 s%@glibcpp_localedir@%$glibcpp_localedir%g
22691 s%@USE_NLS@%$USE_NLS%g
22692 s%@CLOCALE_H@%$CLOCALE_H%g
22693 s%@CCODECVT_H@%$CCODECVT_H%g
22694 s%@CMESSAGES_H@%$CMESSAGES_H%g
22695 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
22696 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
22697 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
22698 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
22699 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
22700 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
22701 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
22702 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
22703 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
22704 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
22705 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
22706 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
22707 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
22708 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
22709 s%@WERROR@%$WERROR%g
22710 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
22711 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
22712 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
22713 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
22714 s%@CPU_LIMITS_INC_SRCDIR@%$CPU_LIMITS_INC_SRCDIR%g
22715 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
22716 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
22717 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
22718 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
22719 s%@gxx_include_dir@%$gxx_include_dir%g
22720 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
22721 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
22722 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
22723 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
22724 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
22725 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
22726 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
22727 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
22728 s%@WARN_FLAGS@%$WARN_FLAGS%g
22729 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
22730
22731 CEOF
22732 EOF
22733
22734 cat >> $CONFIG_STATUS <<\EOF
22735
22736 # Split the substitutions into bite-sized pieces for seds with
22737 # small command number limits, like on Digital OSF/1 and HP-UX.
22738 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22739 ac_file=1 # Number of current file.
22740 ac_beg=1 # First line for current file.
22741 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22742 ac_more_lines=:
22743 ac_sed_cmds=""
22744 while $ac_more_lines; do
22745   if test $ac_beg -gt 1; then
22746     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22747   else
22748     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22749   fi
22750   if test ! -s conftest.s$ac_file; then
22751     ac_more_lines=false
22752     rm -f conftest.s$ac_file
22753   else
22754     if test -z "$ac_sed_cmds"; then
22755       ac_sed_cmds="sed -f conftest.s$ac_file"
22756     else
22757       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22758     fi
22759     ac_file=`expr $ac_file + 1`
22760     ac_beg=$ac_end
22761     ac_end=`expr $ac_end + $ac_max_sed_cmds`
22762   fi
22763 done
22764 if test -z "$ac_sed_cmds"; then
22765   ac_sed_cmds=cat
22766 fi
22767 EOF
22768
22769 cat >> $CONFIG_STATUS <<EOF
22770
22771 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
22772     include/Makefile src/Makefile \
22773     libmath/Makefile libio/Makefile libsupc++/Makefile \
22774     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
22775 EOF
22776 cat >> $CONFIG_STATUS <<\EOF
22777 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22778   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22779   case "$ac_file" in
22780   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22781        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22782   *) ac_file_in="${ac_file}.in" ;;
22783   esac
22784
22785   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22786
22787   # Remove last slash and all that follows it.  Not all systems have dirname.
22788   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22789   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22790     # The file is in a subdirectory.
22791     test ! -d "$ac_dir" && mkdir "$ac_dir"
22792     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22793     # A "../" for each directory in $ac_dir_suffix.
22794     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22795   else
22796     ac_dir_suffix= ac_dots=
22797   fi
22798
22799   case "$ac_given_srcdir" in
22800   .)  srcdir=.
22801       if test -z "$ac_dots"; then top_srcdir=.
22802       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22803   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22804   *) # Relative path.
22805     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22806     top_srcdir="$ac_dots$ac_given_srcdir" ;;
22807   esac
22808
22809   case "$ac_given_INSTALL" in
22810   [/$]*) INSTALL="$ac_given_INSTALL" ;;
22811   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22812   esac
22813
22814   echo creating "$ac_file"
22815   rm -f "$ac_file"
22816   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22817   case "$ac_file" in
22818   *Makefile*) ac_comsub="1i\\
22819 # $configure_input" ;;
22820   *) ac_comsub= ;;
22821   esac
22822
22823   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22824   sed -e "$ac_comsub
22825 s%@configure_input@%$configure_input%g
22826 s%@srcdir@%$srcdir%g
22827 s%@top_srcdir@%$top_srcdir%g
22828 s%@INSTALL@%$INSTALL%g
22829 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22830 fi; done
22831 rm -f conftest.s*
22832
22833 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22834 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22835 #
22836 # ac_d sets the value in "#define NAME VALUE" lines.
22837 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
22838 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
22839 ac_dC='\3'
22840 ac_dD='%g'
22841 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22842 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22843 ac_uB='\([      ]\)%\1#\2define\3'
22844 ac_uC=' '
22845 ac_uD='\4%g'
22846 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22847 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22848 ac_eB='$%\1#\2define\3'
22849 ac_eC=' '
22850 ac_eD='%g'
22851
22852 if test "${CONFIG_HEADERS+set}" != set; then
22853 EOF
22854 cat >> $CONFIG_STATUS <<EOF
22855   CONFIG_HEADERS="config.h"
22856 EOF
22857 cat >> $CONFIG_STATUS <<\EOF
22858 fi
22859 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22860   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22861   case "$ac_file" in
22862   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22863        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22864   *) ac_file_in="${ac_file}.in" ;;
22865   esac
22866
22867   echo creating $ac_file
22868
22869   rm -f conftest.frag conftest.in conftest.out
22870   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22871   cat $ac_file_inputs > conftest.in
22872
22873 EOF
22874
22875 # Transform confdefs.h into a sed script conftest.vals that substitutes
22876 # the proper values into config.h.in to produce config.h.  And first:
22877 # Protect against being on the right side of a sed subst in config.status.
22878 # Protect against being in an unquoted here document in config.status.
22879 rm -f conftest.vals
22880 cat > conftest.hdr <<\EOF
22881 s/[\\&%]/\\&/g
22882 s%[\\$`]%\\&%g
22883 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22884 s%ac_d%ac_u%gp
22885 s%ac_u%ac_e%gp
22886 EOF
22887 sed -n -f conftest.hdr confdefs.h > conftest.vals
22888 rm -f conftest.hdr
22889
22890 # This sed command replaces #undef with comments.  This is necessary, for
22891 # example, in the case of _POSIX_SOURCE, which is predefined and required
22892 # on some systems where configure will not decide to define it.
22893 cat >> conftest.vals <<\EOF
22894 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22895 EOF
22896
22897 # Break up conftest.vals because some shells have a limit on
22898 # the size of here documents, and old seds have small limits too.
22899
22900 rm -f conftest.tail
22901 while :
22902 do
22903   ac_lines=`grep -c . conftest.vals`
22904   # grep -c gives empty output for an empty file on some AIX systems.
22905   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22906   # Write a limited-size here document to conftest.frag.
22907   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22908   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22909   echo 'CEOF
22910   sed -f conftest.frag conftest.in > conftest.out
22911   rm -f conftest.in
22912   mv conftest.out conftest.in
22913 ' >> $CONFIG_STATUS
22914   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22915   rm -f conftest.vals
22916   mv conftest.tail conftest.vals
22917 done
22918 rm -f conftest.vals
22919
22920 cat >> $CONFIG_STATUS <<\EOF
22921   rm -f conftest.frag conftest.h
22922   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
22923   cat conftest.in >> conftest.h
22924   rm -f conftest.in
22925   if cmp -s $ac_file conftest.h 2>/dev/null; then
22926     echo "$ac_file is unchanged"
22927     rm -f conftest.h
22928   else
22929     # Remove last slash and all that follows it.  Not all systems have dirname.
22930       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22931       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22932       # The file is in a subdirectory.
22933       test ! -d "$ac_dir" && mkdir "$ac_dir"
22934     fi
22935     rm -f $ac_file
22936     mv conftest.h $ac_file
22937   fi
22938 fi; done
22939
22940 EOF
22941
22942 cat >> $CONFIG_STATUS <<EOF
22943 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $LINKER_MAP"
22944 ac_dests="src/basic_file.cc src/c++locale.cc src/collate.cc src/ctype.cc src/messages.cc src/monetary.cc src/numeric.cc src/time.cc src/linker.map"
22945 EOF
22946
22947 cat >> $CONFIG_STATUS <<\EOF
22948 srcdir=$ac_given_srcdir
22949 while test -n "$ac_sources"; do
22950   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22951   set $ac_sources; ac_source=$1; shift; ac_sources=$*
22952
22953   echo "linking $srcdir/$ac_source to $ac_dest"
22954
22955   if test ! -r $srcdir/$ac_source; then
22956     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
22957   fi
22958   rm -f $ac_dest
22959
22960   # Make relative symlinks.
22961   # Remove last slash and all that follows it.  Not all systems have dirname.
22962   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
22963   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
22964     # The dest file is in a subdirectory.
22965     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
22966     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
22967     # A "../" for each directory in $ac_dest_dir_suffix.
22968     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
22969   else
22970     ac_dest_dir_suffix= ac_dots=
22971   fi
22972
22973   case "$srcdir" in
22974   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
22975   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
22976   esac
22977
22978   # Make a symlink if possible; otherwise try a hard link.
22979   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22980     ln $srcdir/$ac_source $ac_dest; then :
22981   else
22982     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
22983   fi
22984 done
22985 EOF
22986 cat >> $CONFIG_STATUS <<EOF
22987
22988 srcdir=${srcdir}
22989 host=${host}
22990 target=${target}
22991 with_multisubdir=${with_multisubdir}
22992 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22993 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22994 glibcpp_basedir=${glibcpp_basedir}
22995 CC="${CC}"
22996 CXX="${CXX}"
22997
22998 EOF
22999 cat >> $CONFIG_STATUS <<\EOF
23000 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
23001 if test -n "$CONFIG_FILES"; then
23002   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
23003   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
23004   grep '^MULTISUBDIR =' Makefile >> src/Makefile
23005   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
23006 fi
23007 chmod +x mkcheck
23008 chmod +x testsuite_flags
23009
23010 exit 0
23011 EOF
23012 chmod +x $CONFIG_STATUS
23013 rm -fr confdefs* $ac_clean_files
23014 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
23015
23016
23017
23018 # Sanity checking & User-visible messages.
23019 # Checks down here, otherwise they get scrolled off before
23020 # the user will notice.
23021
23022 # Trying to get more people to read documentation.  Possibly remove
23023 # check and warn all the time. There is no "informational" AC_MSG_
23024 # macro, so these are going to be printed even when --quiet/--silent
23025 # is given.
23026 if test ! -f stamp-sanity-warned; then
23027   touch stamp-sanity-warned
23028   echo ""
23029   echo "Please make certain that you read the installation information here:"
23030   echo "  faster => ${srcdir}/docs/html/install.html"
23031   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
23032   echo ""
23033   echo "and the configuration information here:"
23034   echo "  faster => ${srcdir}/docs/html/configopts.html"
23035   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
23036   echo ""
23037   echo "before proceeding with ${_cv_gnu_make_command}."
23038   echo ""
23039 fi