OSDN Git Service

* config/h8300/h8300.md (movsi_h8300hs): Change the order of
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-multilib       build hella library versions (default)"
16 ac_help="$ac_help
17   --with-target-subdir=SUBDIR
18                           configuring in a subdirectory"
19 ac_help="$ac_help
20   --with-cross-host=HOST  configuring with a cross compiler"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-shared[=PKGS]  build shared libraries [default=yes]"
26 ac_help="$ac_help
27   --enable-static[=PKGS]  build static libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
30 ac_help="$ac_help
31   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
32 ac_help="$ac_help
33   --disable-libtool-lock  avoid locking (might break parallel builds)"
34 ac_help="$ac_help
35   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
36 ac_help="$ac_help
37   --enable-debug          extra debugging, turn off optimization [default=no]"
38 ac_help="$ac_help
39   --enable-cstdio         enable stdio for target io package. 
40   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale        enable model for target locale package. 
44   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-nls            use Native Language Support (default)"
48 ac_help="$ac_help
49   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
50 ac_help="$ac_help
51   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
52 ac_help="$ac_help
53   --enable-long-long      turns on 'long long' [default=yes]"
54 ac_help="$ac_help
55   --enable-cheaders       construct "C" header files for g++ [default=c_std]"
56 ac_help="$ac_help
57   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
58                                 [default=none]"
59 ac_help="$ac_help
60   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
61 ac_help="$ac_help
62   --enable-libunwind-exceptions  force use of libunwind for exceptions"
63 ac_help="$ac_help
64   --enable-concept-checks use Boost-derived template checks [default=no]"
65 ac_help="$ac_help
66   --enable-symvers=style  enables symbol versioning of the shared library [default=yes]"
67 ac_help="$ac_help
68   --with-gxx-include-dir  the installation directory for include files"
69 ac_help="$ac_help
70   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
71
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
75 build=NONE
76 cache_file=./config.cache
77 exec_prefix=NONE
78 host=NONE
79 no_create=
80 nonopt=NONE
81 no_recursion=
82 prefix=NONE
83 program_prefix=NONE
84 program_suffix=NONE
85 program_transform_name=s,x,x,
86 silent=
87 site=
88 srcdir=
89 target=NONE
90 verbose=
91 x_includes=NONE
92 x_libraries=NONE
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 infodir='${prefix}/info'
104 mandir='${prefix}/man'
105
106 # Initialize some other variables.
107 subdirs=
108 MFLAGS= MAKEFLAGS=
109 SHELL=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
111 ac_max_here_lines=12
112
113 ac_prev=
114 for ac_option
115 do
116
117   # If the previous option needs an argument, assign it.
118   if test -n "$ac_prev"; then
119     eval "$ac_prev=\$ac_option"
120     ac_prev=
121     continue
122   fi
123
124   case "$ac_option" in
125   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126   *) ac_optarg= ;;
127   esac
128
129   # Accept the important Cygnus configure options, so we can diagnose typos.
130
131   case "$ac_option" in
132
133   -bindir | --bindir | --bindi | --bind | --bin | --bi)
134     ac_prev=bindir ;;
135   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136     bindir="$ac_optarg" ;;
137
138   -build | --build | --buil | --bui | --bu)
139     ac_prev=build ;;
140   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141     build="$ac_optarg" ;;
142
143   -cache-file | --cache-file | --cache-fil | --cache-fi \
144   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145     ac_prev=cache_file ;;
146   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148     cache_file="$ac_optarg" ;;
149
150   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151     ac_prev=datadir ;;
152   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153   | --da=*)
154     datadir="$ac_optarg" ;;
155
156   -disable-* | --disable-*)
157     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158     # Reject names that are not valid shell variable names.
159     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161     fi
162     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163     eval "enable_${ac_feature}=no" ;;
164
165   -enable-* | --enable-*)
166     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167     # Reject names that are not valid shell variable names.
168     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170     fi
171     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172     case "$ac_option" in
173       *=*) ;;
174       *) ac_optarg=yes ;;
175     esac
176     eval "enable_${ac_feature}='$ac_optarg'" ;;
177
178   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180   | --exec | --exe | --ex)
181     ac_prev=exec_prefix ;;
182   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184   | --exec=* | --exe=* | --ex=*)
185     exec_prefix="$ac_optarg" ;;
186
187   -gas | --gas | --ga | --g)
188     # Obsolete; use --with-gas.
189     with_gas=yes ;;
190
191   -help | --help | --hel | --he)
192     # Omit some internal or obsolete options to make the list less imposing.
193     # This message is too long to be a string in the A/UX 3.1 sh.
194     cat << EOF
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
197 Configuration:
198   --cache-file=FILE       cache test results in FILE
199   --help                  print this message
200   --no-create             do not create output files
201   --quiet, --silent       do not print \`checking...' messages
202   --version               print the version of autoconf that created configure
203 Directory and file names:
204   --prefix=PREFIX         install architecture-independent files in PREFIX
205                           [$ac_default_prefix]
206   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
207                           [same as prefix]
208   --bindir=DIR            user executables in DIR [EPREFIX/bin]
209   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
210   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
211   --datadir=DIR           read-only architecture-independent data in DIR
212                           [PREFIX/share]
213   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
214   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
215                           [PREFIX/com]
216   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
217   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
218   --includedir=DIR        C header files in DIR [PREFIX/include]
219   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
220   --infodir=DIR           info documentation in DIR [PREFIX/info]
221   --mandir=DIR            man documentation in DIR [PREFIX/man]
222   --srcdir=DIR            find the sources in DIR [configure dir or ..]
223   --program-prefix=PREFIX prepend PREFIX to installed program names
224   --program-suffix=SUFFIX append SUFFIX to installed program names
225   --program-transform-name=PROGRAM
226                           run sed PROGRAM on installed program names
227 EOF
228     cat << EOF
229 Host type:
230   --build=BUILD           configure for building on BUILD [BUILD=HOST]
231   --host=HOST             configure for HOST [guessed]
232   --target=TARGET         configure for TARGET [TARGET=HOST]
233 Features and packages:
234   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
235   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
236   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
237   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
238   --x-includes=DIR        X include files are in DIR
239   --x-libraries=DIR       X library files are in DIR
240 EOF
241     if test -n "$ac_help"; then
242       echo "--enable and --with options recognized:$ac_help"
243     fi
244     exit 0 ;;
245
246   -host | --host | --hos | --ho)
247     ac_prev=host ;;
248   -host=* | --host=* | --hos=* | --ho=*)
249     host="$ac_optarg" ;;
250
251   -includedir | --includedir | --includedi | --included | --include \
252   | --includ | --inclu | --incl | --inc)
253     ac_prev=includedir ;;
254   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255   | --includ=* | --inclu=* | --incl=* | --inc=*)
256     includedir="$ac_optarg" ;;
257
258   -infodir | --infodir | --infodi | --infod | --info | --inf)
259     ac_prev=infodir ;;
260   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261     infodir="$ac_optarg" ;;
262
263   -libdir | --libdir | --libdi | --libd)
264     ac_prev=libdir ;;
265   -libdir=* | --libdir=* | --libdi=* | --libd=*)
266     libdir="$ac_optarg" ;;
267
268   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269   | --libexe | --libex | --libe)
270     ac_prev=libexecdir ;;
271   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272   | --libexe=* | --libex=* | --libe=*)
273     libexecdir="$ac_optarg" ;;
274
275   -localstatedir | --localstatedir | --localstatedi | --localstated \
276   | --localstate | --localstat | --localsta | --localst \
277   | --locals | --local | --loca | --loc | --lo)
278     ac_prev=localstatedir ;;
279   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282     localstatedir="$ac_optarg" ;;
283
284   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285     ac_prev=mandir ;;
286   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287     mandir="$ac_optarg" ;;
288
289   -nfp | --nfp | --nf)
290     # Obsolete; use --without-fp.
291     with_fp=no ;;
292
293   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294   | --no-cr | --no-c)
295     no_create=yes ;;
296
297   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299     no_recursion=yes ;;
300
301   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303   | --oldin | --oldi | --old | --ol | --o)
304     ac_prev=oldincludedir ;;
305   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308     oldincludedir="$ac_optarg" ;;
309
310   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311     ac_prev=prefix ;;
312   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313     prefix="$ac_optarg" ;;
314
315   -program-prefix | --program-prefix | --program-prefi | --program-pref \
316   | --program-pre | --program-pr | --program-p)
317     ac_prev=program_prefix ;;
318   -program-prefix=* | --program-prefix=* | --program-prefi=* \
319   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320     program_prefix="$ac_optarg" ;;
321
322   -program-suffix | --program-suffix | --program-suffi | --program-suff \
323   | --program-suf | --program-su | --program-s)
324     ac_prev=program_suffix ;;
325   -program-suffix=* | --program-suffix=* | --program-suffi=* \
326   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327     program_suffix="$ac_optarg" ;;
328
329   -program-transform-name | --program-transform-name \
330   | --program-transform-nam | --program-transform-na \
331   | --program-transform-n | --program-transform- \
332   | --program-transform | --program-transfor \
333   | --program-transfo | --program-transf \
334   | --program-trans | --program-tran \
335   | --progr-tra | --program-tr | --program-t)
336     ac_prev=program_transform_name ;;
337   -program-transform-name=* | --program-transform-name=* \
338   | --program-transform-nam=* | --program-transform-na=* \
339   | --program-transform-n=* | --program-transform-=* \
340   | --program-transform=* | --program-transfor=* \
341   | --program-transfo=* | --program-transf=* \
342   | --program-trans=* | --program-tran=* \
343   | --progr-tra=* | --program-tr=* | --program-t=*)
344     program_transform_name="$ac_optarg" ;;
345
346   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347   | -silent | --silent | --silen | --sile | --sil)
348     silent=yes ;;
349
350   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351     ac_prev=sbindir ;;
352   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353   | --sbi=* | --sb=*)
354     sbindir="$ac_optarg" ;;
355
356   -sharedstatedir | --sharedstatedir | --sharedstatedi \
357   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358   | --sharedst | --shareds | --shared | --share | --shar \
359   | --sha | --sh)
360     ac_prev=sharedstatedir ;;
361   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364   | --sha=* | --sh=*)
365     sharedstatedir="$ac_optarg" ;;
366
367   -site | --site | --sit)
368     ac_prev=site ;;
369   -site=* | --site=* | --sit=*)
370     site="$ac_optarg" ;;
371
372   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373     ac_prev=srcdir ;;
374   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375     srcdir="$ac_optarg" ;;
376
377   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378   | --syscon | --sysco | --sysc | --sys | --sy)
379     ac_prev=sysconfdir ;;
380   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382     sysconfdir="$ac_optarg" ;;
383
384   -target | --target | --targe | --targ | --tar | --ta | --t)
385     ac_prev=target ;;
386   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387     target="$ac_optarg" ;;
388
389   -v | -verbose | --verbose | --verbos | --verbo | --verb)
390     verbose=yes ;;
391
392   -version | --version | --versio | --versi | --vers)
393     echo "configure generated by autoconf version 2.13"
394     exit 0 ;;
395
396   -with-* | --with-*)
397     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398     # Reject names that are not valid shell variable names.
399     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401     fi
402     ac_package=`echo $ac_package| sed 's/-/_/g'`
403     case "$ac_option" in
404       *=*) ;;
405       *) ac_optarg=yes ;;
406     esac
407     eval "with_${ac_package}='$ac_optarg'" ;;
408
409   -without-* | --without-*)
410     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411     # Reject names that are not valid shell variable names.
412     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414     fi
415     ac_package=`echo $ac_package| sed 's/-/_/g'`
416     eval "with_${ac_package}=no" ;;
417
418   --x)
419     # Obsolete; use --with-x.
420     with_x=yes ;;
421
422   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423   | --x-incl | --x-inc | --x-in | --x-i)
424     ac_prev=x_includes ;;
425   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427     x_includes="$ac_optarg" ;;
428
429   -x-libraries | --x-libraries | --x-librarie | --x-librari \
430   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431     ac_prev=x_libraries ;;
432   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434     x_libraries="$ac_optarg" ;;
435
436   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437     ;;
438
439   *)
440     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441       echo "configure: warning: $ac_option: invalid host type" 1>&2
442     fi
443     if test "x$nonopt" != xNONE; then
444       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
445     fi
446     nonopt="$ac_option"
447     ;;
448
449   esac
450 done
451
452 if test -n "$ac_prev"; then
453   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
454 fi
455
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
457
458 # File descriptor usage:
459 # 0 standard input
460 # 1 file creation
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
467   exec 6>/dev/null
468 else
469   exec 6>&1
470 fi
471 exec 5>./config.log
472
473 echo "\
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
476 " 1>&5
477
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
480 ac_configure_args=
481 for ac_arg
482 do
483   case "$ac_arg" in
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c) ;;
486   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491   esac
492 done
493
494 # NLS nuisances.
495 # Only set these to C if already set.  These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
503
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 echo > confdefs.h
508
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=src/ios.cc
512
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515   ac_srcdir_defaulted=yes
516   # Try the directory containing this script, then its parent.
517   ac_prog=$0
518   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520   srcdir=$ac_confdir
521   if test ! -r $srcdir/$ac_unique_file; then
522     srcdir=..
523   fi
524 else
525   ac_srcdir_defaulted=no
526 fi
527 if test ! -r $srcdir/$ac_unique_file; then
528   if test "$ac_srcdir_defaulted" = yes; then
529     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530   else
531     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
532   fi
533 fi
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
535
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538   if test "x$prefix" != xNONE; then
539     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540   else
541     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
542   fi
543 fi
544 for ac_site_file in $CONFIG_SITE; do
545   if test -r "$ac_site_file"; then
546     echo "loading site script $ac_site_file"
547     . "$ac_site_file"
548   fi
549 done
550
551 if test -r "$cache_file"; then
552   echo "loading cache $cache_file"
553   . $cache_file
554 else
555   echo "creating cache $cache_file"
556   > $cache_file
557 fi
558
559 ac_ext=c
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
565
566 ac_exeext=
567 ac_objext=o
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571     ac_n= ac_c='
572 ' ac_t='        '
573   else
574     ac_n=-n ac_c= ac_t=
575   fi
576 else
577   ac_n= ac_c='\c' ac_t=
578 fi
579
580
581
582 # This works around the fact that libtool configuration may change LD
583 # for this particular configuration, but some shells, instead of
584 # keeping the changes in LD private, export them just because LD is
585 # exported.  Only used at the end of this file.
586 ORIGINAL_LD_FOR_MULTILIBS=$LD
587
588 PACKAGE=libstdc++
589
590 # For libtool versioning info, format is CURRENT:REVISION:AGE
591 libtool_VERSION=5:1:0
592
593
594
595       # Check whether --enable-multilib or --disable-multilib was given.
596 if test "${enable_multilib+set}" = set; then
597   enableval="$enable_multilib"
598   case "${enableval}" in
599     yes) multilib=yes ;;
600     no)  multilib=no ;;
601     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
602    esac
603 else
604   multilib=yes
605 fi
606
607   # When building with srcdir == objdir, links to the source files will
608   # be created in directories within the target_subdir.  We have to
609   # adjust toplevel_srcdir accordingly, so that configure finds
610   # install-sh and other auxiliary files that live in the top-level
611   # source directory.
612   if test "${srcdir}" = "."; then
613     if test -z "${with_target_subdir}"; then
614       toprel=".."
615     else
616       if test "${with_target_subdir}" != "."; then
617         toprel="${with_multisrctop}../.."
618       else
619         toprel="${with_multisrctop}.."
620       fi
621     fi
622   else
623     toprel=".."
624   fi
625   ac_aux_dir=
626 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
627   if test -f $ac_dir/install-sh; then
628     ac_aux_dir=$ac_dir
629     ac_install_sh="$ac_aux_dir/install-sh -c"
630     break
631   elif test -f $ac_dir/install.sh; then
632     ac_aux_dir=$ac_dir
633     ac_install_sh="$ac_aux_dir/install.sh -c"
634     break
635   fi
636 done
637 if test -z "$ac_aux_dir"; then
638   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
639 fi
640 ac_config_guess=$ac_aux_dir/config.guess
641 ac_config_sub=$ac_aux_dir/config.sub
642 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
643
644   toplevel_srcdir=\${top_srcdir}/$toprel
645   
646
647
648 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
649 #
650 # You will slowly go insane if you do not grok the following fact:  when
651 # building v3 as part of the compiler, the top-level /target/ becomes the
652 # library's /host/.  `configure' then causes --target to default to --host,
653 # exactly like any other package using autoconf.  Therefore, 'target' and
654 # 'host' will always be the same.  This makes sense both for native and
655 # cross compilers, just think about it for a little while.  :-)
656 #
657 # Also, if v3 is being configured as part of a cross compiler, the top-level
658 # configure script will pass the "real" host as $with_cross_host.
659 #
660 # AC 2.5x sets target_alias iff the user specified --target, but we use it
661 # everywhere, so we set it here just to be sure.  In AC 2.13
662 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
663
664 # Do some error checking and defaulting for the host and target type.
665 # The inputs are:
666 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
667 #
668 # The rules are:
669 # 1. You are not allowed to specify --host, --target, and nonopt at the
670 #    same time.
671 # 2. Host defaults to nonopt.
672 # 3. If nonopt is not specified, then host defaults to the current host,
673 #    as determined by config.guess.
674 # 4. Target and build default to nonopt.
675 # 5. If nonopt is not specified, then target and build default to host.
676
677 # The aliases save the names the user supplied, while $host etc.
678 # will get canonicalized.
679 case $host---$target---$nonopt in
680 NONE---*---* | *---NONE---* | *---*---NONE) ;;
681 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
682 esac
683
684
685 # Make sure we can run config.sub.
686 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
687 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
688 fi
689
690 echo $ac_n "checking host system type""... $ac_c" 1>&6
691 echo "configure:692: checking host system type" >&5
692
693 host_alias=$host
694 case "$host_alias" in
695 NONE)
696   case $nonopt in
697   NONE)
698     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
699     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
700     fi ;;
701   *) host_alias=$nonopt ;;
702   esac ;;
703 esac
704
705 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
706 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
709 echo "$ac_t""$host" 1>&6
710
711 echo $ac_n "checking target system type""... $ac_c" 1>&6
712 echo "configure:713: checking target system type" >&5
713
714 target_alias=$target
715 case "$target_alias" in
716 NONE)
717   case $nonopt in
718   NONE) target_alias=$host_alias ;;
719   *) target_alias=$nonopt ;;
720   esac ;;
721 esac
722
723 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
724 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
725 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
726 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
727 echo "$ac_t""$target" 1>&6
728
729 echo $ac_n "checking build system type""... $ac_c" 1>&6
730 echo "configure:731: checking build system type" >&5
731
732 build_alias=$build
733 case "$build_alias" in
734 NONE)
735   case $nonopt in
736   NONE) build_alias=$host_alias ;;
737   *) build_alias=$nonopt ;;
738   esac ;;
739 esac
740
741 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
742 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
743 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
744 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
745 echo "$ac_t""$build" 1>&6
746
747 test "$host_alias" != "$target_alias" &&
748   test "$program_prefix$program_suffix$program_transform_name" = \
749     NONENONEs,x,x, &&
750   program_prefix=${target_alias}-
751
752 target_alias=${target_alias-$target}
753
754
755 # Runs configure.target, finds CC, CXX and assorted other critical bits.
756 # Must run this before the GLIBCPP_ENABLE_* macros below.
757 if test $host != $build; then
758   ac_tool_prefix=${host_alias}-
759 else
760   ac_tool_prefix=
761 fi
762
763 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
764 echo "configure:765: checking for Cygwin environment" >&5
765 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
766   echo $ac_n "(cached) $ac_c" 1>&6
767 else
768   cat > conftest.$ac_ext <<EOF
769 #line 770 "configure"
770 #include "confdefs.h"
771
772 int main() {
773
774 #ifndef __CYGWIN__
775 #define __CYGWIN__ __CYGWIN32__
776 #endif
777 return __CYGWIN__;
778 ; return 0; }
779 EOF
780 if { (eval echo configure:781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
781   rm -rf conftest*
782   ac_cv_cygwin=yes
783 else
784   echo "configure: failed program was:" >&5
785   cat conftest.$ac_ext >&5
786   rm -rf conftest*
787   ac_cv_cygwin=no
788 fi
789 rm -f conftest*
790 rm -f conftest*
791 fi
792
793 echo "$ac_t""$ac_cv_cygwin" 1>&6
794 CYGWIN=
795 test "$ac_cv_cygwin" = yes && CYGWIN=yes
796 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
797 echo "configure:798: checking for mingw32 environment" >&5
798 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
799   echo $ac_n "(cached) $ac_c" 1>&6
800 else
801   cat > conftest.$ac_ext <<EOF
802 #line 803 "configure"
803 #include "confdefs.h"
804
805 int main() {
806 return __MINGW32__;
807 ; return 0; }
808 EOF
809 if { (eval echo configure:810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
810   rm -rf conftest*
811   ac_cv_mingw32=yes
812 else
813   echo "configure: failed program was:" >&5
814   cat conftest.$ac_ext >&5
815   rm -rf conftest*
816   ac_cv_mingw32=no
817 fi
818 rm -f conftest*
819 rm -f conftest*
820 fi
821
822 echo "$ac_t""$ac_cv_mingw32" 1>&6
823 MINGW32=
824 test "$ac_cv_mingw32" = yes && MINGW32=yes
825
826   # Export build and source directories.
827   # These need to be absolute paths, yet at the same time need to
828   # canonicalize only relative paths, because then amd will not unmount
829   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
830   glibcpp_builddir=`${PWDCMD-pwd}`
831   case $srcdir in
832   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
833   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
834   esac
835   
836   
837
838     
839
840   for ac_prog in gawk mawk nawk awk
841 do
842 # Extract the first word of "$ac_prog", so it can be a program name with args.
843 set dummy $ac_prog; ac_word=$2
844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
845 echo "configure:846: checking for $ac_word" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
847   echo $ac_n "(cached) $ac_c" 1>&6
848 else
849   if test -n "$AWK"; then
850   ac_cv_prog_AWK="$AWK" # Let the user override the test.
851 else
852   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
853   ac_dummy="$PATH"
854   for ac_dir in $ac_dummy; do
855     test -z "$ac_dir" && ac_dir=.
856     if test -f $ac_dir/$ac_word; then
857       ac_cv_prog_AWK="$ac_prog"
858       break
859     fi
860   done
861   IFS="$ac_save_ifs"
862 fi
863 fi
864 AWK="$ac_cv_prog_AWK"
865 if test -n "$AWK"; then
866   echo "$ac_t""$AWK" 1>&6
867 else
868   echo "$ac_t""no" 1>&6
869 fi
870
871 test -n "$AWK" && break
872 done
873
874   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
875   # be 'cp -p' if linking isn't available.  Uncomment the next line to
876   # force a particular method.
877   #ac_cv_prog_LN_S='cp -p'
878   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
879 echo "configure:880: checking whether ln -s works" >&5
880 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
881   echo $ac_n "(cached) $ac_c" 1>&6
882 else
883   rm -f conftestdata
884 if ln -s X conftestdata 2>/dev/null
885 then
886   rm -f conftestdata
887   ac_cv_prog_LN_S="ln -s"
888 else
889   ac_cv_prog_LN_S=ln
890 fi
891 fi
892 LN_S="$ac_cv_prog_LN_S"
893 if test "$ac_cv_prog_LN_S" = "ln -s"; then
894   echo "$ac_t""yes" 1>&6
895 else
896   echo "$ac_t""no" 1>&6
897 fi
898
899
900   # We use these options to decide which functions to include.
901   # Check whether --with-target-subdir or --without-target-subdir was given.
902 if test "${with_target_subdir+set}" = set; then
903   withval="$with_target_subdir"
904   :
905 fi
906
907   # Check whether --with-cross-host or --without-cross-host was given.
908 if test "${with_cross_host+set}" = set; then
909   withval="$with_cross_host"
910   :
911 fi
912
913
914   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
915   
916
917   # Never versions of autoconf add an underscore to these functions.
918   # Prevent future problems ...
919   
920   
921   
922   
923
924   # AC_PROG_CC
925   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
926   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
927   # are probably using a cross compiler, which will not be able to fully
928   # link an executable.  This is addressed in later versions of autoconf.
929
930   
931
932       
933   # Extract the first word of "gcc", so it can be a program name with args.
934 set dummy gcc; ac_word=$2
935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
936 echo "configure:937: checking for $ac_word" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
938   echo $ac_n "(cached) $ac_c" 1>&6
939 else
940   if test -n "$CC"; then
941   ac_cv_prog_CC="$CC" # Let the user override the test.
942 else
943   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
944   ac_dummy="$PATH"
945   for ac_dir in $ac_dummy; do
946     test -z "$ac_dir" && ac_dir=.
947     if test -f $ac_dir/$ac_word; then
948       ac_cv_prog_CC="gcc"
949       break
950     fi
951   done
952   IFS="$ac_save_ifs"
953 fi
954 fi
955 CC="$ac_cv_prog_CC"
956 if test -n "$CC"; then
957   echo "$ac_t""$CC" 1>&6
958 else
959   echo "$ac_t""no" 1>&6
960 fi
961
962   if test -z "$CC"; then
963     # Extract the first word of "cc", so it can be a program name with args.
964 set dummy cc; ac_word=$2
965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
966 echo "configure:967: checking for $ac_word" >&5
967 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
968   echo $ac_n "(cached) $ac_c" 1>&6
969 else
970   if test -n "$CC"; then
971   ac_cv_prog_CC="$CC" # Let the user override the test.
972 else
973   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
974   ac_prog_rejected=no
975   ac_dummy="$PATH"
976   for ac_dir in $ac_dummy; do
977     test -z "$ac_dir" && ac_dir=.
978     if test -f $ac_dir/$ac_word; then
979       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
980         ac_prog_rejected=yes
981         continue
982       fi
983       ac_cv_prog_CC="cc"
984       break
985     fi
986   done
987   IFS="$ac_save_ifs"
988 if test $ac_prog_rejected = yes; then
989   # We found a bogon in the path, so make sure we never use it.
990   set dummy $ac_cv_prog_CC
991   shift
992   if test $# -gt 0; then
993     # We chose a different compiler from the bogus one.
994     # However, it has the same basename, so the bogon will be chosen
995     # first if we set CC to just the basename; use the full file name.
996     shift
997     set dummy "$ac_dir/$ac_word" "$@"
998     shift
999     ac_cv_prog_CC="$@"
1000   fi
1001 fi
1002 fi
1003 fi
1004 CC="$ac_cv_prog_CC"
1005 if test -n "$CC"; then
1006   echo "$ac_t""$CC" 1>&6
1007 else
1008   echo "$ac_t""no" 1>&6
1009 fi
1010
1011     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1012   fi
1013
1014   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1015 echo "configure:1016: checking whether we are using GNU C" >&5
1016 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1017   echo $ac_n "(cached) $ac_c" 1>&6
1018 else
1019   cat > conftest.c <<EOF
1020 #ifdef __GNUC__
1021   yes;
1022 #endif
1023 EOF
1024 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1025   ac_cv_prog_gcc=yes
1026 else
1027   ac_cv_prog_gcc=no
1028 fi
1029 fi
1030
1031 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1032
1033   if test $ac_cv_prog_gcc = yes; then
1034     GCC=yes
1035           ac_test_CFLAGS="${CFLAGS+set}"
1036     ac_save_CFLAGS="$CFLAGS"
1037     CFLAGS=
1038     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1039 echo "configure:1040: checking whether ${CC-cc} accepts -g" >&5
1040 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1041   echo $ac_n "(cached) $ac_c" 1>&6
1042 else
1043   echo 'void f(){}' > conftest.c
1044 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1045   ac_cv_prog_cc_g=yes
1046 else
1047   ac_cv_prog_cc_g=no
1048 fi
1049 rm -f conftest*
1050
1051 fi
1052
1053 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1054     if test "$ac_test_CFLAGS" = set; then
1055       CFLAGS="$ac_save_CFLAGS"
1056     elif test $ac_cv_prog_cc_g = yes; then
1057       CFLAGS="-g -O2"
1058     else
1059       CFLAGS="-O2"
1060     fi
1061   else
1062     GCC=
1063     test "${CFLAGS+set}" = set || CFLAGS="-g"
1064   fi
1065   
1066
1067   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1068   # will try to link in libstdc++.
1069   
1070
1071       
1072   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1073   # flags that come in CXX while configuring libstdc++.  They're different
1074   # from those used for all other target libraries.  If CXX is set in
1075   # the environment, respect that here.
1076   glibcpp_CXX=$CXX
1077   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1078 do
1079 # Extract the first word of "$ac_prog", so it can be a program name with args.
1080 set dummy $ac_prog; ac_word=$2
1081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1082 echo "configure:1083: checking for $ac_word" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1084   echo $ac_n "(cached) $ac_c" 1>&6
1085 else
1086   if test -n "$glibcpp_CXX"; then
1087   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1088 else
1089   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1090   ac_dummy="$PATH"
1091   for ac_dir in $ac_dummy; do
1092     test -z "$ac_dir" && ac_dir=.
1093     if test -f $ac_dir/$ac_word; then
1094       ac_cv_prog_glibcpp_CXX="$ac_prog"
1095       break
1096     fi
1097   done
1098   IFS="$ac_save_ifs"
1099 fi
1100 fi
1101 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1102 if test -n "$glibcpp_CXX"; then
1103   echo "$ac_t""$glibcpp_CXX" 1>&6
1104 else
1105   echo "$ac_t""no" 1>&6
1106 fi
1107
1108 test -n "$glibcpp_CXX" && break
1109 done
1110 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1111
1112   
1113   CXX=$glibcpp_CXX
1114   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1115
1116   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether we are using GNU C++" >&5
1118 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1119   echo $ac_n "(cached) $ac_c" 1>&6
1120 else
1121   cat > conftest.C <<EOF
1122 #ifdef __GNUC__
1123   yes;
1124 #endif
1125 EOF
1126 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1127   ac_cv_prog_gxx=yes
1128 else
1129   ac_cv_prog_gxx=no
1130 fi
1131 fi
1132
1133 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1134
1135   if test $ac_cv_prog_gxx = yes; then
1136     GXX=yes
1137                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1138     ac_save_CXXFLAGS="$CXXFLAGS"
1139     CXXFLAGS=
1140     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1141 echo "configure:1142: checking whether ${CXX-g++} accepts -g" >&5
1142 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1143   echo $ac_n "(cached) $ac_c" 1>&6
1144 else
1145   echo 'void f(){}' > conftest.cc
1146 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1147   ac_cv_prog_cxx_g=yes
1148 else
1149   ac_cv_prog_cxx_g=no
1150 fi
1151 rm -f conftest*
1152
1153 fi
1154
1155 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1156     if test "$ac_test_CXXFLAGS" = set; then
1157       CXXFLAGS="$ac_save_CXXFLAGS"
1158     elif test $ac_cv_prog_cxx_g = yes; then
1159       CXXFLAGS="-g -O2"
1160     else
1161       CXXFLAGS="-O2"
1162     fi
1163   else
1164     GXX=
1165     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1166   fi
1167   
1168
1169   # For directory versioning (e.g., headers) and other variables.
1170   echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1171 echo "configure:1172: checking for GCC version number" >&5
1172   gcc_version=`$glibcpp_CXX -dumpversion`
1173   echo "$ac_t""$gcc_version" 1>&6
1174
1175   # For some reason, gettext needs this.
1176   
1177         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1178 echo "configure:1179: checking for strerror in -lcposix" >&5
1179 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1181   echo $ac_n "(cached) $ac_c" 1>&6
1182 else
1183   ac_save_LIBS="$LIBS"
1184 LIBS="-lcposix  $LIBS"
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1188 /* Override any gcc2 internal prototype to avoid an error.  */
1189 /* We use char because int might match the return type of a gcc2
1190     builtin and then its argument prototype would still apply.  */
1191 char strerror();
1192
1193 int main() {
1194 strerror()
1195 ; return 0; }
1196 EOF
1197 if { (eval echo configure:1198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1198   rm -rf conftest*
1199   eval "ac_cv_lib_$ac_lib_var=yes"
1200 else
1201   echo "configure: failed program was:" >&5
1202   cat conftest.$ac_ext >&5
1203   rm -rf conftest*
1204   eval "ac_cv_lib_$ac_lib_var=no"
1205 fi
1206 rm -f conftest*
1207 LIBS="$ac_save_LIBS"
1208
1209 fi
1210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1211   echo "$ac_t""yes" 1>&6
1212   LIBS="$LIBS -lcposix"
1213 else
1214   echo "$ac_t""no" 1>&6
1215 fi
1216
1217   
1218
1219
1220   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1221 set dummy ${ac_tool_prefix}as; ac_word=$2
1222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1223 echo "configure:1224: checking for $ac_word" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1225   echo $ac_n "(cached) $ac_c" 1>&6
1226 else
1227   if test -n "$AS"; then
1228   ac_cv_prog_AS="$AS" # Let the user override the test.
1229 else
1230   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1231   ac_dummy="$PATH"
1232   for ac_dir in $ac_dummy; do
1233     test -z "$ac_dir" && ac_dir=.
1234     if test -f $ac_dir/$ac_word; then
1235       ac_cv_prog_AS="${ac_tool_prefix}as"
1236       break
1237     fi
1238   done
1239   IFS="$ac_save_ifs"
1240   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1241 fi
1242 fi
1243 AS="$ac_cv_prog_AS"
1244 if test -n "$AS"; then
1245   echo "$ac_t""$AS" 1>&6
1246 else
1247   echo "$ac_t""no" 1>&6
1248 fi
1249
1250
1251
1252   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1253 set dummy ${ac_tool_prefix}ar; ac_word=$2
1254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1255 echo "configure:1256: checking for $ac_word" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1257   echo $ac_n "(cached) $ac_c" 1>&6
1258 else
1259   if test -n "$AR"; then
1260   ac_cv_prog_AR="$AR" # Let the user override the test.
1261 else
1262   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1263   ac_dummy="$PATH"
1264   for ac_dir in $ac_dummy; do
1265     test -z "$ac_dir" && ac_dir=.
1266     if test -f $ac_dir/$ac_word; then
1267       ac_cv_prog_AR="${ac_tool_prefix}ar"
1268       break
1269     fi
1270   done
1271   IFS="$ac_save_ifs"
1272   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1273 fi
1274 fi
1275 AR="$ac_cv_prog_AR"
1276 if test -n "$AR"; then
1277   echo "$ac_t""$AR" 1>&6
1278 else
1279   echo "$ac_t""no" 1>&6
1280 fi
1281
1282
1283
1284   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1285 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1287 echo "configure:1288: checking for $ac_word" >&5
1288 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1289   echo $ac_n "(cached) $ac_c" 1>&6
1290 else
1291   if test -n "$RANLIB"; then
1292   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1293 else
1294   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1295   ac_dummy="$PATH"
1296   for ac_dir in $ac_dummy; do
1297     test -z "$ac_dir" && ac_dir=.
1298     if test -f $ac_dir/$ac_word; then
1299       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1300       break
1301     fi
1302   done
1303   IFS="$ac_save_ifs"
1304 fi
1305 fi
1306 RANLIB="$ac_cv_prog_RANLIB"
1307 if test -n "$RANLIB"; then
1308   echo "$ac_t""$RANLIB" 1>&6
1309 else
1310   echo "$ac_t""no" 1>&6
1311 fi
1312
1313
1314 if test -z "$ac_cv_prog_RANLIB"; then
1315 if test -n "$ac_tool_prefix"; then
1316   # Extract the first word of "ranlib", so it can be a program name with args.
1317 set dummy ranlib; ac_word=$2
1318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1319 echo "configure:1320: checking for $ac_word" >&5
1320 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1321   echo $ac_n "(cached) $ac_c" 1>&6
1322 else
1323   if test -n "$RANLIB"; then
1324   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1325 else
1326   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1327   ac_dummy="$PATH"
1328   for ac_dir in $ac_dummy; do
1329     test -z "$ac_dir" && ac_dir=.
1330     if test -f $ac_dir/$ac_word; then
1331       ac_cv_prog_RANLIB="ranlib"
1332       break
1333     fi
1334   done
1335   IFS="$ac_save_ifs"
1336   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1337 fi
1338 fi
1339 RANLIB="$ac_cv_prog_RANLIB"
1340 if test -n "$RANLIB"; then
1341   echo "$ac_t""$RANLIB" 1>&6
1342 else
1343   echo "$ac_t""no" 1>&6
1344 fi
1345
1346 else
1347   RANLIB="ranlib-not-found-in-path-error"
1348 fi
1349 fi
1350
1351   # Find a good install program.  We prefer a C program (faster),
1352 # so one script is as good as another.  But avoid the broken or
1353 # incompatible versions:
1354 # SysV /etc/install, /usr/sbin/install
1355 # SunOS /usr/etc/install
1356 # IRIX /sbin/install
1357 # AIX /bin/install
1358 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1359 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1360 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1361 # ./install, which can be erroneously created by make from ./install.sh.
1362 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1363 echo "configure:1364: checking for a BSD compatible install" >&5
1364 if test -z "$INSTALL"; then
1365 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1366   echo $ac_n "(cached) $ac_c" 1>&6
1367 else
1368     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1369   for ac_dir in $PATH; do
1370     # Account for people who put trailing slashes in PATH elements.
1371     case "$ac_dir/" in
1372     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1373     *)
1374       # OSF1 and SCO ODT 3.0 have their own names for install.
1375       # Don't use installbsd from OSF since it installs stuff as root
1376       # by default.
1377       for ac_prog in ginstall scoinst install; do
1378         if test -f $ac_dir/$ac_prog; then
1379           if test $ac_prog = install &&
1380             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1381             # AIX install.  It has an incompatible calling convention.
1382             :
1383           else
1384             ac_cv_path_install="$ac_dir/$ac_prog -c"
1385             break 2
1386           fi
1387         fi
1388       done
1389       ;;
1390     esac
1391   done
1392   IFS="$ac_save_IFS"
1393
1394 fi
1395   if test "${ac_cv_path_install+set}" = set; then
1396     INSTALL="$ac_cv_path_install"
1397   else
1398     # As a last resort, use the slow shell script.  We don't cache a
1399     # path for INSTALL within a source directory, because that will
1400     # break other packages using the cache if that directory is
1401     # removed, or if the path is relative.
1402     INSTALL="$ac_install_sh"
1403   fi
1404 fi
1405 echo "$ac_t""$INSTALL" 1>&6
1406
1407 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1408 # It thinks the first close brace ends the variable substitution.
1409 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1410
1411 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1412
1413 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1414
1415
1416   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1417 echo "configure:1418: checking whether to enable maintainer-specific portions of Makefiles" >&5
1418     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1419 if test "${enable_maintainer_mode+set}" = set; then
1420   enableval="$enable_maintainer_mode"
1421   USE_MAINTAINER_MODE=$enableval
1422 else
1423   USE_MAINTAINER_MODE=no
1424 fi
1425
1426   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1427   
1428
1429 if test $USE_MAINTAINER_MODE = yes; then
1430   MAINTAINER_MODE_TRUE=
1431   MAINTAINER_MODE_FALSE='#'
1432 else
1433   MAINTAINER_MODE_TRUE='#'
1434   MAINTAINER_MODE_FALSE=
1435 fi
1436   MAINT=$MAINTAINER_MODE_TRUE
1437   
1438
1439
1440   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1441   # at least currently, we never actually build a program, so we never
1442   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1443   # fails, because we are probably configuring with a cross compiler
1444   # which can't create executables.  So we include AC_EXEEXT to keep
1445   # automake happy, but we don't execute it, since we don't care about
1446   # the result.
1447   if false; then
1448     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1449     # to nothing, so nothing would remain between `then' and `fi' if it
1450     # were not for the `:' below.
1451     :
1452     
1453
1454 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1455 echo "configure:1456: checking for executable suffix" >&5
1456 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1457   echo $ac_n "(cached) $ac_c" 1>&6
1458 else
1459   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1460   ac_cv_exeext=.exe
1461 else
1462   rm -f conftest*
1463   echo 'int main () { return 0; }' > conftest.$ac_ext
1464   ac_cv_exeext=
1465   if { (eval echo configure:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1466     for file in conftest.*; do
1467       case $file in
1468       *.c | *.o | *.obj) ;;
1469       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1470       esac
1471     done
1472   else
1473     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1474   fi
1475   rm -f conftest*
1476   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1477 fi
1478 fi
1479
1480 EXEEXT=""
1481 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1482 echo "$ac_t""${ac_cv_exeext}" 1>&6
1483 ac_exeext=$EXEEXT
1484
1485   fi
1486
1487   case ${glibcpp_basedir} in
1488     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1489     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1490   esac
1491
1492   # Find platform-specific directories containing configuration info.  In
1493   # addition to possibly modifying the same flags, it also sets up symlinks.
1494   
1495   . ${glibcpp_basedir}/configure.target
1496   echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1497   echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1498
1499
1500
1501 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1502 echo "configure:1503: checking whether build environment is sane" >&5
1503 # Just in case
1504 sleep 1
1505 echo timestamp > conftestfile
1506 # Do `set' in a subshell so we don't clobber the current shell's
1507 # arguments.  Must try -L first in case configure is actually a
1508 # symlink; some systems play weird games with the mod time of symlinks
1509 # (eg FreeBSD returns the mod time of the symlink's containing
1510 # directory).
1511 if (
1512    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1513    if test "$*" = "X"; then
1514       # -L didn't work.
1515       set X `ls -t $srcdir/configure conftestfile`
1516    fi
1517    if test "$*" != "X $srcdir/configure conftestfile" \
1518       && test "$*" != "X conftestfile $srcdir/configure"; then
1519
1520       # If neither matched, then we have a broken ls.  This can happen
1521       # if, for instance, CONFIG_SHELL is bash and it inherits a
1522       # broken ls alias from the environment.  This has actually
1523       # happened.  Such a system could not be considered "sane".
1524       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1525 alias in your environment" 1>&2; exit 1; }
1526    fi
1527
1528    test "$2" = conftestfile
1529    )
1530 then
1531    # Ok.
1532    :
1533 else
1534    { echo "configure: error: newly created file is older than distributed files!
1535 Check your system clock" 1>&2; exit 1; }
1536 fi
1537 rm -f conftest*
1538 echo "$ac_t""yes" 1>&6
1539 if test "$program_transform_name" = s,x,x,; then
1540   program_transform_name=
1541 else
1542   # Double any \ or $.  echo might interpret backslashes.
1543   cat <<\EOF_SED > conftestsed
1544 s,\\,\\\\,g; s,\$,$$,g
1545 EOF_SED
1546   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1547   rm -f conftestsed
1548 fi
1549 test "$program_prefix" != NONE &&
1550   program_transform_name="s,^,${program_prefix},; $program_transform_name"
1551 # Use a double $ so make ignores it.
1552 test "$program_suffix" != NONE &&
1553   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1554
1555 # sed with no file args requires a program.
1556 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1557
1558 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1559 echo "configure:1560: checking whether ${MAKE-make} sets \${MAKE}" >&5
1560 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1561 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1562   echo $ac_n "(cached) $ac_c" 1>&6
1563 else
1564   cat > conftestmake <<\EOF
1565 all:
1566         @echo 'ac_maketemp="${MAKE}"'
1567 EOF
1568 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1569 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1570 if test -n "$ac_maketemp"; then
1571   eval ac_cv_prog_make_${ac_make}_set=yes
1572 else
1573   eval ac_cv_prog_make_${ac_make}_set=no
1574 fi
1575 rm -f conftestmake
1576 fi
1577 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1578   echo "$ac_t""yes" 1>&6
1579   SET_MAKE=
1580 else
1581   echo "$ac_t""no" 1>&6
1582   SET_MAKE="MAKE=${MAKE-make}"
1583 fi
1584
1585
1586 PACKAGE=$PACKAGE
1587
1588 VERSION=$gcc_version
1589
1590 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1591   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1592 fi
1593 cat >> confdefs.h <<EOF
1594 #define PACKAGE "$PACKAGE"
1595 EOF
1596
1597 cat >> confdefs.h <<EOF
1598 #define VERSION "$VERSION"
1599 EOF
1600
1601
1602
1603 missing_dir=`cd $ac_aux_dir && pwd`
1604 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1605 echo "configure:1606: checking for working aclocal" >&5
1606 # Run test in a subshell; some versions of sh will print an error if
1607 # an executable is not found, even if stderr is redirected.
1608 # Redirect stdin to placate older versions of autoconf.  Sigh.
1609 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1610    ACLOCAL=aclocal
1611    echo "$ac_t""found" 1>&6
1612 else
1613    ACLOCAL="$missing_dir/missing aclocal"
1614    echo "$ac_t""missing" 1>&6
1615 fi
1616
1617 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1618 echo "configure:1619: checking for working autoconf" >&5
1619 # Run test in a subshell; some versions of sh will print an error if
1620 # an executable is not found, even if stderr is redirected.
1621 # Redirect stdin to placate older versions of autoconf.  Sigh.
1622 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1623    AUTOCONF=autoconf
1624    echo "$ac_t""found" 1>&6
1625 else
1626    AUTOCONF="$missing_dir/missing autoconf"
1627    echo "$ac_t""missing" 1>&6
1628 fi
1629
1630 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1631 echo "configure:1632: checking for working automake" >&5
1632 # Run test in a subshell; some versions of sh will print an error if
1633 # an executable is not found, even if stderr is redirected.
1634 # Redirect stdin to placate older versions of autoconf.  Sigh.
1635 if (automake --version) < /dev/null > /dev/null 2>&1; then
1636    AUTOMAKE=automake
1637    echo "$ac_t""found" 1>&6
1638 else
1639    AUTOMAKE="$missing_dir/missing automake"
1640    echo "$ac_t""missing" 1>&6
1641 fi
1642
1643 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1644 echo "configure:1645: checking for working autoheader" >&5
1645 # Run test in a subshell; some versions of sh will print an error if
1646 # an executable is not found, even if stderr is redirected.
1647 # Redirect stdin to placate older versions of autoconf.  Sigh.
1648 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1649    AUTOHEADER=autoheader
1650    echo "$ac_t""found" 1>&6
1651 else
1652    AUTOHEADER="$missing_dir/missing autoheader"
1653    echo "$ac_t""missing" 1>&6
1654 fi
1655
1656 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1657 echo "configure:1658: checking for working makeinfo" >&5
1658 # Run test in a subshell; some versions of sh will print an error if
1659 # an executable is not found, even if stderr is redirected.
1660 # Redirect stdin to placate older versions of autoconf.  Sigh.
1661 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1662    MAKEINFO=makeinfo
1663    echo "$ac_t""found" 1>&6
1664 else
1665    MAKEINFO="$missing_dir/missing makeinfo"
1666    echo "$ac_t""missing" 1>&6
1667 fi
1668
1669
1670
1671
1672
1673
1674
1675 # Check whether --enable-shared or --disable-shared was given.
1676 if test "${enable_shared+set}" = set; then
1677   enableval="$enable_shared"
1678   p=${PACKAGE-default}
1679 case $enableval in
1680 yes) enable_shared=yes ;;
1681 no) enable_shared=no ;;
1682 *)
1683   enable_shared=no
1684   # Look at the argument we got.  We use all the common list separators.
1685   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1686   for pkg in $enableval; do
1687     if test "X$pkg" = "X$p"; then
1688       enable_shared=yes
1689     fi
1690   done
1691   IFS="$ac_save_ifs"
1692   ;;
1693 esac
1694 else
1695   enable_shared=yes
1696 fi
1697
1698 # Check whether --enable-static or --disable-static was given.
1699 if test "${enable_static+set}" = set; then
1700   enableval="$enable_static"
1701   p=${PACKAGE-default}
1702 case $enableval in
1703 yes) enable_static=yes ;;
1704 no) enable_static=no ;;
1705 *)
1706   enable_static=no
1707   # Look at the argument we got.  We use all the common list separators.
1708   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1709   for pkg in $enableval; do
1710     if test "X$pkg" = "X$p"; then
1711       enable_static=yes
1712     fi
1713   done
1714   IFS="$ac_save_ifs"
1715   ;;
1716 esac
1717 else
1718   enable_static=yes
1719 fi
1720
1721 # Check whether --enable-fast-install or --disable-fast-install was given.
1722 if test "${enable_fast_install+set}" = set; then
1723   enableval="$enable_fast_install"
1724   p=${PACKAGE-default}
1725 case $enableval in
1726 yes) enable_fast_install=yes ;;
1727 no) enable_fast_install=no ;;
1728 *)
1729   enable_fast_install=no
1730   # Look at the argument we got.  We use all the common list separators.
1731   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1732   for pkg in $enableval; do
1733     if test "X$pkg" = "X$p"; then
1734       enable_fast_install=yes
1735     fi
1736   done
1737   IFS="$ac_save_ifs"
1738   ;;
1739 esac
1740 else
1741   enable_fast_install=yes
1742 fi
1743
1744 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1745 if test "${with_gnu_ld+set}" = set; then
1746   withval="$with_gnu_ld"
1747   test "$withval" = no || with_gnu_ld=yes
1748 else
1749   with_gnu_ld=no
1750 fi
1751
1752 ac_prog=ld
1753 if test "$GCC" = yes; then
1754   # Check if gcc -print-prog-name=ld gives a path.
1755   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1756 echo "configure:1757: checking for ld used by GCC" >&5
1757   case $host in
1758   *-*-mingw*)
1759     # gcc leaves a trailing carriage return which upsets mingw
1760     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1761   *)
1762     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1763   esac
1764   case $ac_prog in
1765     # Accept absolute paths.
1766     [\\/]* | [A-Za-z]:[\\/]*)
1767       re_direlt='/[^/][^/]*/\.\./'
1768       # Canonicalize the path of ld
1769       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1770       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1771         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1772       done
1773       test -z "$LD" && LD="$ac_prog"
1774       ;;
1775   "")
1776     # If it fails, then pretend we aren't using GCC.
1777     ac_prog=ld
1778     ;;
1779   *)
1780     # If it is relative, then search for the first ld in PATH.
1781     with_gnu_ld=unknown
1782     ;;
1783   esac
1784 elif test "$with_gnu_ld" = yes; then
1785   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1786 echo "configure:1787: checking for GNU ld" >&5
1787 else
1788   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1789 echo "configure:1790: checking for non-GNU ld" >&5
1790 fi
1791 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1792   echo $ac_n "(cached) $ac_c" 1>&6
1793 else
1794   if test -z "$LD"; then
1795   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1796   for ac_dir in $PATH; do
1797     test -z "$ac_dir" && ac_dir=.
1798     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1799       lt_cv_path_LD="$ac_dir/$ac_prog"
1800       # Check to see if the program is GNU ld.  I'd rather use --version,
1801       # but apparently some GNU ld's only accept -v.
1802       # Break only if it was the GNU/non-GNU ld that we prefer.
1803       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1804         test "$with_gnu_ld" != no && break
1805       else
1806         test "$with_gnu_ld" != yes && break
1807       fi
1808     fi
1809   done
1810   IFS="$ac_save_ifs"
1811 else
1812   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1813 fi
1814 fi
1815
1816 LD="$lt_cv_path_LD"
1817 if test -n "$LD"; then
1818   echo "$ac_t""$LD" 1>&6
1819 else
1820   echo "$ac_t""no" 1>&6
1821 fi
1822 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1823 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1824 echo "configure:1825: checking if the linker ($LD) is GNU ld" >&5
1825 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1826   echo $ac_n "(cached) $ac_c" 1>&6
1827 else
1828   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1829 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1830   lt_cv_prog_gnu_ld=yes
1831 else
1832   lt_cv_prog_gnu_ld=no
1833 fi
1834 fi
1835
1836 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1837 with_gnu_ld=$lt_cv_prog_gnu_ld
1838
1839
1840 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1841 echo "configure:1842: checking for $LD option to reload object files" >&5
1842 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1843   echo $ac_n "(cached) $ac_c" 1>&6
1844 else
1845   lt_cv_ld_reload_flag='-r'
1846 fi
1847
1848 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1849 reload_flag=$lt_cv_ld_reload_flag
1850 test -n "$reload_flag" && reload_flag=" $reload_flag"
1851
1852 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1853 echo "configure:1854: checking for BSD-compatible nm" >&5
1854 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1855   echo $ac_n "(cached) $ac_c" 1>&6
1856 else
1857   if test -n "$NM"; then
1858   # Let the user override the test.
1859   lt_cv_path_NM="$NM"
1860 else
1861   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1862   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1863     test -z "$ac_dir" && ac_dir=.
1864     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1865     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1866       # Check to see if the nm accepts a BSD-compat flag.
1867       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1868       #   nm: unknown option "B" ignored
1869       # Tru64's nm complains that /dev/null is an invalid object file
1870       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1871         lt_cv_path_NM="$tmp_nm -B"
1872         break
1873       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1874         lt_cv_path_NM="$tmp_nm -p"
1875         break
1876       else
1877         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1878         continue # so that we can try to find one that supports BSD flags
1879       fi
1880     fi
1881   done
1882   IFS="$ac_save_ifs"
1883   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1884 fi
1885 fi
1886
1887 NM="$lt_cv_path_NM"
1888 echo "$ac_t""$NM" 1>&6
1889
1890 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1891 echo "configure:1892: checking how to recognise dependant libraries" >&5
1892 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1893   echo $ac_n "(cached) $ac_c" 1>&6
1894 else
1895   lt_cv_file_magic_cmd='$MAGIC_CMD'
1896 lt_cv_file_magic_test_file=
1897 lt_cv_deplibs_check_method='unknown'
1898 # Need to set the preceding variable on all platforms that support
1899 # interlibrary dependencies.
1900 # 'none' -- dependencies not supported.
1901 # `unknown' -- same as none, but documents that we really don't know.
1902 # 'pass_all' -- all dependencies passed with no checks.
1903 # 'test_compile' -- check by making test program.
1904 # 'file_magic [regex]' -- check by looking for files in library path
1905 # which responds to the $file_magic_cmd with a given egrep regex.
1906 # If you have `file' or equivalent on your system and you're not sure
1907 # whether `pass_all' will *always* work, you probably want this one.
1908
1909 case $host_os in
1910 aix*)
1911   lt_cv_deplibs_check_method=pass_all
1912   ;;
1913
1914 beos*)
1915   lt_cv_deplibs_check_method=pass_all
1916   ;;
1917
1918 bsdi4*)
1919   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1920   lt_cv_file_magic_cmd='/usr/bin/file -L'
1921   lt_cv_file_magic_test_file=/shlib/libc.so
1922   ;;
1923
1924 cygwin* | mingw* |pw32*)
1925   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1926   lt_cv_file_magic_cmd='$OBJDUMP -f'
1927   ;;
1928
1929 darwin* | rhapsody*)
1930   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1931   lt_cv_file_magic_cmd='/usr/bin/file -L'
1932   case "$host_os" in
1933   rhapsody* | darwin1.012)
1934     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1935     ;;
1936   *) # Darwin 1.3 on
1937     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1938     ;;
1939   esac
1940   ;;
1941
1942 freebsd* )
1943   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1944     case $host_cpu in
1945     i*86 )
1946       # Not sure whether the presence of OpenBSD here was a mistake.
1947       # Let's accept both of them until this is cleared up.
1948       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1949       lt_cv_file_magic_cmd=/usr/bin/file
1950       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1951       ;;
1952     esac
1953   else
1954     lt_cv_deplibs_check_method=pass_all
1955   fi
1956   ;;
1957
1958 gnu*)
1959   lt_cv_deplibs_check_method=pass_all
1960   ;;
1961
1962 hpux10.20*|hpux11*)
1963   case $host_cpu in
1964   hppa*)
1965     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1966     lt_cv_file_magic_cmd=/usr/bin/file
1967     lt_cv_file_magic_test_file=/usr/lib/libc.sl
1968     ;;
1969   ia64*)
1970     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1971     lt_cv_file_magic_cmd=/usr/bin/file
1972     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1973     ;;
1974   esac
1975   ;;
1976
1977 irix5* | irix6*)
1978   case $host_os in
1979   irix5*)
1980     # this will be overridden with pass_all, but let us keep it just in case
1981     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1982     ;;
1983   *)
1984     case $LD in
1985     *-32|*"-32 ") libmagic=32-bit;;
1986     *-n32|*"-n32 ") libmagic=N32;;
1987     *-64|*"-64 ") libmagic=64-bit;;
1988     *) libmagic=never-match;;
1989     esac
1990     # this will be overridden with pass_all, but let us keep it just in case
1991     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1992     ;;
1993   esac
1994   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1995   lt_cv_deplibs_check_method=pass_all
1996   ;;
1997
1998 # This must be Linux ELF.
1999 linux-gnu*)
2000   case $host_cpu in
2001   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2002     lt_cv_deplibs_check_method=pass_all ;;
2003   *)
2004     # glibc up to 2.1.1 does not perform some relocations on ARM
2005     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2006   esac
2007   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2008   ;;
2009
2010 netbsd*)
2011   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2012     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2013   else
2014     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2015   fi
2016   ;;
2017
2018 newsos6)
2019   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2020   lt_cv_file_magic_cmd=/usr/bin/file
2021   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2022   ;;
2023
2024 osf3* | osf4* | osf5*)
2025   # this will be overridden with pass_all, but let us keep it just in case
2026   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2027   lt_cv_file_magic_test_file=/shlib/libc.so
2028   lt_cv_deplibs_check_method=pass_all
2029   ;;
2030
2031 sco3.2v5*)
2032   lt_cv_deplibs_check_method=pass_all
2033   ;;
2034
2035 solaris*)
2036   lt_cv_deplibs_check_method=pass_all
2037   lt_cv_file_magic_test_file=/lib/libc.so
2038   ;;
2039
2040 sysv5uw[78]* | sysv4*uw2*)
2041   lt_cv_deplibs_check_method=pass_all
2042   ;;
2043
2044 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2045   case $host_vendor in
2046   ncr)
2047     lt_cv_deplibs_check_method=pass_all
2048     ;;
2049   motorola)
2050     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2051     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2052     ;;
2053   esac
2054   ;;
2055 esac
2056
2057 fi
2058
2059 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2060 file_magic_cmd=$lt_cv_file_magic_cmd
2061 deplibs_check_method=$lt_cv_deplibs_check_method
2062
2063 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2064 echo "configure:2065: checking for object suffix" >&5
2065 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2066   echo $ac_n "(cached) $ac_c" 1>&6
2067 else
2068   rm -f conftest*
2069 echo 'int i = 1;' > conftest.$ac_ext
2070 if { (eval echo configure:2071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2071   for ac_file in conftest.*; do
2072     case $ac_file in
2073     *.c) ;;
2074     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2075     esac
2076   done
2077 else
2078   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2079 fi
2080 rm -f conftest*
2081 fi
2082
2083 echo "$ac_t""$ac_cv_objext" 1>&6
2084 OBJEXT=$ac_cv_objext
2085 ac_objext=$ac_cv_objext
2086
2087 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2088
2089 # Only perform the check for file, if the check method requires it
2090 case $deplibs_check_method in
2091 file_magic*)
2092   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2093     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2094 echo "configure:2095: checking for ${ac_tool_prefix}file" >&5
2095 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2096   echo $ac_n "(cached) $ac_c" 1>&6
2097 else
2098   case $MAGIC_CMD in
2099   /*)
2100   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2101   ;;
2102   ?:/*)
2103   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2104   ;;
2105   *)
2106   ac_save_MAGIC_CMD="$MAGIC_CMD"
2107   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2108   ac_dummy="/usr/bin:$PATH"
2109   for ac_dir in $ac_dummy; do
2110     test -z "$ac_dir" && ac_dir=.
2111     if test -f $ac_dir/${ac_tool_prefix}file; then
2112       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2113       if test -n "$file_magic_test_file"; then
2114         case $deplibs_check_method in
2115         "file_magic "*)
2116           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2117           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2118           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2119             egrep "$file_magic_regex" > /dev/null; then
2120             :
2121           else
2122             cat <<EOF 1>&2
2123
2124 *** Warning: the command libtool uses to detect shared libraries,
2125 *** $file_magic_cmd, produces output that libtool cannot recognize.
2126 *** The result is that libtool may fail to recognize shared libraries
2127 *** as such.  This will affect the creation of libtool libraries that
2128 *** depend on shared libraries, but programs linked with such libtool
2129 *** libraries will work regardless of this problem.  Nevertheless, you
2130 *** may want to report the problem to your system manager and/or to
2131 *** bug-libtool@gnu.org
2132
2133 EOF
2134           fi ;;
2135         esac
2136       fi
2137       break
2138     fi
2139   done
2140   IFS="$ac_save_ifs"
2141   MAGIC_CMD="$ac_save_MAGIC_CMD"
2142   ;;
2143 esac
2144 fi
2145
2146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2147 if test -n "$MAGIC_CMD"; then
2148   echo "$ac_t""$MAGIC_CMD" 1>&6
2149 else
2150   echo "$ac_t""no" 1>&6
2151 fi
2152
2153 if test -z "$lt_cv_path_MAGIC_CMD"; then
2154   if test -n "$ac_tool_prefix"; then
2155     echo $ac_n "checking for file""... $ac_c" 1>&6
2156 echo "configure:2157: checking for file" >&5
2157 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2158   echo $ac_n "(cached) $ac_c" 1>&6
2159 else
2160   case $MAGIC_CMD in
2161   /*)
2162   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2163   ;;
2164   ?:/*)
2165   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2166   ;;
2167   *)
2168   ac_save_MAGIC_CMD="$MAGIC_CMD"
2169   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2170   ac_dummy="/usr/bin:$PATH"
2171   for ac_dir in $ac_dummy; do
2172     test -z "$ac_dir" && ac_dir=.
2173     if test -f $ac_dir/file; then
2174       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2175       if test -n "$file_magic_test_file"; then
2176         case $deplibs_check_method in
2177         "file_magic "*)
2178           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2179           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2180           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2181             egrep "$file_magic_regex" > /dev/null; then
2182             :
2183           else
2184             cat <<EOF 1>&2
2185
2186 *** Warning: the command libtool uses to detect shared libraries,
2187 *** $file_magic_cmd, produces output that libtool cannot recognize.
2188 *** The result is that libtool may fail to recognize shared libraries
2189 *** as such.  This will affect the creation of libtool libraries that
2190 *** depend on shared libraries, but programs linked with such libtool
2191 *** libraries will work regardless of this problem.  Nevertheless, you
2192 *** may want to report the problem to your system manager and/or to
2193 *** bug-libtool@gnu.org
2194
2195 EOF
2196           fi ;;
2197         esac
2198       fi
2199       break
2200     fi
2201   done
2202   IFS="$ac_save_ifs"
2203   MAGIC_CMD="$ac_save_MAGIC_CMD"
2204   ;;
2205 esac
2206 fi
2207
2208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2209 if test -n "$MAGIC_CMD"; then
2210   echo "$ac_t""$MAGIC_CMD" 1>&6
2211 else
2212   echo "$ac_t""no" 1>&6
2213 fi
2214
2215   else
2216     MAGIC_CMD=:
2217   fi
2218 fi
2219
2220   fi
2221   ;;
2222 esac
2223
2224 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2225 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2227 echo "configure:2228: checking for $ac_word" >&5
2228 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2229   echo $ac_n "(cached) $ac_c" 1>&6
2230 else
2231   if test -n "$RANLIB"; then
2232   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2233 else
2234   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2235   ac_dummy="$PATH"
2236   for ac_dir in $ac_dummy; do
2237     test -z "$ac_dir" && ac_dir=.
2238     if test -f $ac_dir/$ac_word; then
2239       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2240       break
2241     fi
2242   done
2243   IFS="$ac_save_ifs"
2244 fi
2245 fi
2246 RANLIB="$ac_cv_prog_RANLIB"
2247 if test -n "$RANLIB"; then
2248   echo "$ac_t""$RANLIB" 1>&6
2249 else
2250   echo "$ac_t""no" 1>&6
2251 fi
2252
2253
2254 if test -z "$ac_cv_prog_RANLIB"; then
2255 if test -n "$ac_tool_prefix"; then
2256   # Extract the first word of "ranlib", so it can be a program name with args.
2257 set dummy ranlib; ac_word=$2
2258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2259 echo "configure:2260: checking for $ac_word" >&5
2260 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2261   echo $ac_n "(cached) $ac_c" 1>&6
2262 else
2263   if test -n "$RANLIB"; then
2264   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2265 else
2266   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2267   ac_dummy="$PATH"
2268   for ac_dir in $ac_dummy; do
2269     test -z "$ac_dir" && ac_dir=.
2270     if test -f $ac_dir/$ac_word; then
2271       ac_cv_prog_RANLIB="ranlib"
2272       break
2273     fi
2274   done
2275   IFS="$ac_save_ifs"
2276   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2277 fi
2278 fi
2279 RANLIB="$ac_cv_prog_RANLIB"
2280 if test -n "$RANLIB"; then
2281   echo "$ac_t""$RANLIB" 1>&6
2282 else
2283   echo "$ac_t""no" 1>&6
2284 fi
2285
2286 else
2287   RANLIB=":"
2288 fi
2289 fi
2290
2291 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2292 set dummy ${ac_tool_prefix}strip; ac_word=$2
2293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2294 echo "configure:2295: checking for $ac_word" >&5
2295 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2296   echo $ac_n "(cached) $ac_c" 1>&6
2297 else
2298   if test -n "$STRIP"; then
2299   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2300 else
2301   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2302   ac_dummy="$PATH"
2303   for ac_dir in $ac_dummy; do
2304     test -z "$ac_dir" && ac_dir=.
2305     if test -f $ac_dir/$ac_word; then
2306       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2307       break
2308     fi
2309   done
2310   IFS="$ac_save_ifs"
2311 fi
2312 fi
2313 STRIP="$ac_cv_prog_STRIP"
2314 if test -n "$STRIP"; then
2315   echo "$ac_t""$STRIP" 1>&6
2316 else
2317   echo "$ac_t""no" 1>&6
2318 fi
2319
2320
2321 if test -z "$ac_cv_prog_STRIP"; then
2322 if test -n "$ac_tool_prefix"; then
2323   # Extract the first word of "strip", so it can be a program name with args.
2324 set dummy strip; ac_word=$2
2325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2326 echo "configure:2327: checking for $ac_word" >&5
2327 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2328   echo $ac_n "(cached) $ac_c" 1>&6
2329 else
2330   if test -n "$STRIP"; then
2331   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2332 else
2333   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2334   ac_dummy="$PATH"
2335   for ac_dir in $ac_dummy; do
2336     test -z "$ac_dir" && ac_dir=.
2337     if test -f $ac_dir/$ac_word; then
2338       ac_cv_prog_STRIP="strip"
2339       break
2340     fi
2341   done
2342   IFS="$ac_save_ifs"
2343   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2344 fi
2345 fi
2346 STRIP="$ac_cv_prog_STRIP"
2347 if test -n "$STRIP"; then
2348   echo "$ac_t""$STRIP" 1>&6
2349 else
2350   echo "$ac_t""no" 1>&6
2351 fi
2352
2353 else
2354   STRIP=":"
2355 fi
2356 fi
2357
2358
2359 # Check for any special flags to pass to ltconfig.
2360 libtool_flags="--cache-file=$cache_file"
2361 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2362 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2363 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2364 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2365 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2366 libtool_flags="$libtool_flags --enable-dlopen"
2367
2368 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2369 if test "${enable_libtool_lock+set}" = set; then
2370   enableval="$enable_libtool_lock"
2371   :
2372 fi
2373
2374 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2375 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2376
2377 # Check whether --with-pic or --without-pic was given.
2378 if test "${with_pic+set}" = set; then
2379   withval="$with_pic"
2380   pic_mode="$withval"
2381 else
2382   pic_mode=default
2383 fi
2384
2385 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2386 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2387
2388 # Some flags need to be propagated to the compiler or linker for good
2389 # libtool support.
2390 case $host in
2391 *-*-irix6*)
2392   # Find out which ABI we are using.
2393   echo '#line 2394 "configure"' > conftest.$ac_ext
2394   if { (eval echo configure:2395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2395     case `/usr/bin/file conftest.$ac_objext` in
2396     *32-bit*)
2397       LD="${LD-ld} -32"
2398       ;;
2399     *N32*)
2400       LD="${LD-ld} -n32"
2401       ;;
2402     *64-bit*)
2403       LD="${LD-ld} -64"
2404       ;;
2405     esac
2406   fi
2407   rm -rf conftest*
2408   ;;
2409
2410 ia64-*-hpux*)
2411   # Find out which ABI we are using.
2412   echo 'int i;' > conftest.$ac_ext
2413   if { (eval echo configure:2414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2414     case "`/usr/bin/file conftest.o`" in
2415     *ELF-32*)
2416       HPUX_IA64_MODE="32"
2417       ;;
2418     *ELF-64*)
2419       HPUX_IA64_MODE="64"
2420       ;;
2421     esac
2422   fi
2423   rm -rf conftest*
2424   ;;
2425
2426 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2427   # Find out which ABI we are using.
2428   echo 'int i;' > conftest.$ac_ext
2429   if { (eval echo configure:2430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2430     case "`/usr/bin/file conftest.o`" in
2431     *32-bit*)
2432       case $host in
2433         x86_64-*linux*)
2434           LD="${LD-ld} -m elf_i386"
2435           ;;
2436         ppc64-*linux*)
2437           LD="${LD-ld} -m elf32ppclinux"
2438           ;;
2439         s390x-*linux*)
2440           LD="${LD-ld} -m elf_s390"
2441           ;;
2442         sparc64-*linux*)
2443           LD="${LD-ld} -m elf32_sparc"
2444           ;;
2445       esac
2446       ;;
2447     *64-bit*)
2448       case $host in
2449         x86_64-*linux*)
2450           LD="${LD-ld} -m elf_x86_64"
2451           ;;
2452         ppc*-*linux*|powerpc*-*linux*)
2453           LD="${LD-ld} -m elf64ppc"
2454           ;;
2455         s390*-*linux*)
2456           LD="${LD-ld} -m elf64_s390"
2457           ;;
2458         sparc*-*linux*)
2459           LD="${LD-ld} -m elf64_sparc"
2460           ;;
2461       esac
2462       ;;
2463     esac
2464   fi
2465   rm -rf conftest*
2466   ;;
2467
2468 *-*-sco3.2v5*)
2469   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2470   SAVE_CFLAGS="$CFLAGS"
2471   CFLAGS="$CFLAGS -belf"
2472   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2473 echo "configure:2474: checking whether the C compiler needs -belf" >&5
2474 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2475   echo $ac_n "(cached) $ac_c" 1>&6
2476 else
2477   
2478      ac_ext=c
2479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2480 ac_cpp='$CPP $CPPFLAGS'
2481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2483 cross_compiling=$ac_cv_prog_cc_cross
2484
2485      cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488
2489 int main() {
2490
2491 ; return 0; }
2492 EOF
2493 if { (eval echo configure:2494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2494   rm -rf conftest*
2495   lt_cv_cc_needs_belf=yes
2496 else
2497   echo "configure: failed program was:" >&5
2498   cat conftest.$ac_ext >&5
2499   rm -rf conftest*
2500   lt_cv_cc_needs_belf=no
2501 fi
2502 rm -f conftest*
2503      ac_ext=c
2504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2507 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2508 cross_compiling=$ac_cv_prog_cc_cross
2509
2510 fi
2511
2512 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2513   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2514     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2515     CFLAGS="$SAVE_CFLAGS"
2516   fi
2517   ;;
2518
2519
2520 esac
2521
2522 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2523 echo "configure:2524: checking how to run the C++ preprocessor" >&5
2524 if test -z "$CXXCPP"; then
2525 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2526   echo $ac_n "(cached) $ac_c" 1>&6
2527 else
2528   ac_ext=C
2529 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2530 ac_cpp='$CXXCPP $CPPFLAGS'
2531 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2532 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2533 cross_compiling=$ac_cv_prog_cxx_cross
2534   CXXCPP="${CXX-g++} -E"
2535   cat > conftest.$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2538 #include <stdlib.h>
2539 EOF
2540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2541 { (eval echo configure:2542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2543 if test -z "$ac_err"; then
2544   :
2545 else
2546   echo "$ac_err" >&5
2547   echo "configure: failed program was:" >&5
2548   cat conftest.$ac_ext >&5
2549   rm -rf conftest*
2550   CXXCPP=/lib/cpp
2551 fi
2552 rm -f conftest*
2553   ac_cv_prog_CXXCPP="$CXXCPP"
2554 ac_ext=c
2555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2556 ac_cpp='$CPP $CPPFLAGS'
2557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2558 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2559 cross_compiling=$ac_cv_prog_cc_cross
2560 fi
2561 fi
2562 CXXCPP="$ac_cv_prog_CXXCPP"
2563 echo "$ac_t""$CXXCPP" 1>&6
2564
2565
2566 # Save cache, so that ltconfig can load it
2567 cat > confcache <<\EOF
2568 # This file is a shell script that caches the results of configure
2569 # tests run on this system so they can be shared between configure
2570 # scripts and configure runs.  It is not useful on other systems.
2571 # If it contains results you don't want to keep, you may remove or edit it.
2572 #
2573 # By default, configure uses ./config.cache as the cache file,
2574 # creating it if it does not exist already.  You can give configure
2575 # the --cache-file=FILE option to use a different cache file; that is
2576 # what configure does when it calls configure scripts in
2577 # subdirectories, so they share the cache.
2578 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2579 # config.status only pays attention to the cache file if you give it the
2580 # --recheck option to rerun configure.
2581 #
2582 EOF
2583 # The following way of writing the cache mishandles newlines in values,
2584 # but we know of no workaround that is simple, portable, and efficient.
2585 # So, don't put newlines in cache variables' values.
2586 # Ultrix sh set writes to stderr and can't be redirected directly,
2587 # and sets the high bit in the cache file unless we assign to the vars.
2588 (set) 2>&1 |
2589   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2590   *ac_space=\ *)
2591     # `set' does not quote correctly, so add quotes (double-quote substitution
2592     # turns \\\\ into \\, and sed turns \\ into \).
2593     sed -n \
2594       -e "s/'/'\\\\''/g" \
2595       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2596     ;;
2597   *)
2598     # `set' quotes correctly as required by POSIX, so do not add quotes.
2599     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2600     ;;
2601   esac >> confcache
2602 if cmp -s $cache_file confcache; then
2603   :
2604 else
2605   if test -w $cache_file; then
2606     echo "updating cache $cache_file"
2607     cat confcache > $cache_file
2608   else
2609     echo "not updating unwritable cache $cache_file"
2610   fi
2611 fi
2612 rm -f confcache
2613
2614
2615 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2616 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2617 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2618 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2619 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2620 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2621 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2622 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2623 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2624 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2625
2626 # Reload cache, that may have been modified by ltconfig
2627 if test -r "$cache_file"; then
2628   echo "loading cache $cache_file"
2629   . $cache_file
2630 else
2631   echo "creating cache $cache_file"
2632   > $cache_file
2633 fi
2634
2635
2636 # This can be used to rebuild libtool when needed
2637 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2638
2639 # Always use our own libtool.
2640 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2641
2642 # Redirect the config.log output again, so that the ltconfig log is not
2643 # clobbered by the next message.
2644 exec 5>>./config.log
2645
2646
2647
2648 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2649 lt_save_CC="$CC"
2650 lt_save_CFLAGS="$CFLAGS"
2651 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2652 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2653 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2654 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2655 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2656 deplibs_check_method="$deplibs_check_method" \
2657 file_magic_cmd="$file_magic_cmd" \
2658 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2659 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2660 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2661 CC="$lt_save_CC"
2662 CFLAGS="$lt_save_CFLAGS"
2663
2664 # Redirect the config.log output again, so that the ltconfig log is not
2665 # clobbered by the next message.
2666 exec 5>>./config.log
2667
2668   
2669
2670   
2671          
2672          
2673
2674
2675
2676 # Check for c++ or library specific bits that don't require linking.
2677 #GLIBCPP_CHECK_COMPILER_VERSION
2678 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2679 echo "configure:2680: checking for GNU make" >&5
2680 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2681   echo $ac_n "(cached) $ac_c" 1>&6
2682 else
2683   _cv_gnu_make_command='' ;
2684           for a in "${MAKE-make}" make gmake gnumake ; do
2685                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2686                   then
2687                           _cv_gnu_make_command=$a ;
2688                           break;
2689                   fi
2690           done ;
2691   
2692 fi
2693
2694 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2695   if test  "x$_cv_gnu_make_command" != "x"  ; then
2696           ifGNUmake='' ;
2697   else
2698           ifGNUmake='#' ;
2699   fi
2700   
2701
2702
2703 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2704 # Check whether --enable-debug or --disable-debug was given.
2705 if test "${enable_debug+set}" = set; then
2706   enableval="$enable_debug"
2707   case "${enableval}" in
2708  yes) enable_debug=yes ;;
2709  no)  enable_debug=no ;;
2710  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
2711  esac
2712 else
2713   enable_debug=no
2714 fi
2715
2716 case "${enable_debug}" in
2717     yes) 
2718         DEBUG_FLAGS='-O0 -ggdb3'                        
2719         ;; 
2720     no)   
2721         DEBUG_FLAGS='-g'
2722         ;;
2723 esac
2724
2725
2726 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2727 echo "configure:2728: checking how to run the C preprocessor" >&5
2728 # On Suns, sometimes $CPP names a directory.
2729 if test -n "$CPP" && test -d "$CPP"; then
2730   CPP=
2731 fi
2732 if test -z "$CPP"; then
2733 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2734   echo $ac_n "(cached) $ac_c" 1>&6
2735 else
2736     # This must be in double quotes, not single quotes, because CPP may get
2737   # substituted into the Makefile and "${CC-cc}" will confuse make.
2738   CPP="${CC-cc} -E"
2739   # On the NeXT, cc -E runs the code through the compiler's parser,
2740   # not just through cpp.
2741   cat > conftest.$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2744 #include <assert.h>
2745 Syntax Error
2746 EOF
2747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2748 { (eval echo configure:2749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2750 if test -z "$ac_err"; then
2751   :
2752 else
2753   echo "$ac_err" >&5
2754   echo "configure: failed program was:" >&5
2755   cat conftest.$ac_ext >&5
2756   rm -rf conftest*
2757   CPP="${CC-cc} -E -traditional-cpp"
2758   cat > conftest.$ac_ext <<EOF
2759 #line 2760 "configure"
2760 #include "confdefs.h"
2761 #include <assert.h>
2762 Syntax Error
2763 EOF
2764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2765 { (eval echo configure:2766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2767 if test -z "$ac_err"; then
2768   :
2769 else
2770   echo "$ac_err" >&5
2771   echo "configure: failed program was:" >&5
2772   cat conftest.$ac_ext >&5
2773   rm -rf conftest*
2774   CPP="${CC-cc} -nologo -E"
2775   cat > conftest.$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2778 #include <assert.h>
2779 Syntax Error
2780 EOF
2781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2782 { (eval echo configure:2783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2784 if test -z "$ac_err"; then
2785   :
2786 else
2787   echo "$ac_err" >&5
2788   echo "configure: failed program was:" >&5
2789   cat conftest.$ac_ext >&5
2790   rm -rf conftest*
2791   CPP=/lib/cpp
2792 fi
2793 rm -f conftest*
2794 fi
2795 rm -f conftest*
2796 fi
2797 rm -f conftest*
2798   ac_cv_prog_CPP="$CPP"
2799 fi
2800   CPP="$ac_cv_prog_CPP"
2801 else
2802   ac_cv_prog_CPP="$CPP"
2803 fi
2804 echo "$ac_t""$CPP" 1>&6
2805
2806
2807   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2808 echo "configure:2809: checking for cstdio to use" >&5
2809   # Check whether --enable-cstdio or --disable-cstdio was given.
2810 if test "${enable_cstdio+set}" = set; then
2811   enableval="$enable_cstdio"
2812   if test x$enable_cstdio = xno; then
2813      enable_cstdio=stdio
2814   fi
2815 else
2816   enable_cstdio=stdio
2817 fi
2818
2819
2820   enable_cstdio_flag=$enable_cstdio
2821
2822     case x${enable_cstdio_flag} in
2823     xlibio)
2824       CSTDIO_H=config/io/c_io_libio.h
2825       BASIC_FILE_H=config/io/basic_file_libio.h
2826       BASIC_FILE_CC=config/io/basic_file_libio.cc
2827       echo "$ac_t""libio" 1>&6
2828
2829       # see if we are on a system with libio native (ie, linux)
2830       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2831 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2832 echo "configure:2833: checking for libio.h" >&5
2833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2834   echo $ac_n "(cached) $ac_c" 1>&6
2835 else
2836   cat > conftest.$ac_ext <<EOF
2837 #line 2838 "configure"
2838 #include "confdefs.h"
2839 #include <libio.h>
2840 EOF
2841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2842 { (eval echo configure:2843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2844 if test -z "$ac_err"; then
2845   rm -rf conftest*
2846   eval "ac_cv_header_$ac_safe=yes"
2847 else
2848   echo "$ac_err" >&5
2849   echo "configure: failed program was:" >&5
2850   cat conftest.$ac_ext >&5
2851   rm -rf conftest*
2852   eval "ac_cv_header_$ac_safe=no"
2853 fi
2854 rm -f conftest*
2855 fi
2856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2857   echo "$ac_t""yes" 1>&6
2858   has_libio=yes
2859 else
2860   echo "$ac_t""no" 1>&6
2861 has_libio=no
2862 fi
2863
2864
2865       # Need to check and see what version of glibc is being used. If
2866       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2867       # compile most of libio for linux systems.
2868       if test x$has_libio = x"yes"; then
2869         case "$target" in
2870           *-*-linux*)
2871               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2872 echo "configure:2873: checking for glibc version >= 2.2" >&5
2873               cat > conftest.$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2876
2877             #include <features.h>
2878               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2879                     ok
2880               #endif
2881               
2882 EOF
2883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2884   egrep "ok" >/dev/null 2>&1; then
2885   rm -rf conftest*
2886   glibc_satisfactory=yes
2887 else
2888   rm -rf conftest*
2889   glibc_satisfactory=no
2890 fi
2891 rm -f conftest*
2892
2893               echo "$ac_t""$glibc_satisfactory" 1>&6
2894             ;;
2895         esac
2896
2897         # XXX at the moment, admit defeat and force the recompilation
2898         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2899         glibc_satisfactory=no        
2900
2901         if test x$glibc_satisfactory = x"yes"; then
2902            need_libio=no
2903            need_wlibio=no        
2904         else
2905            need_libio=yes
2906            # bkoz XXX need to add checks to enable this
2907            # pme XXX here's a first pass at such a check
2908            if test x$enable_c_mbchar != xno; then
2909               need_wlibio=yes
2910            else
2911               need_wlibio=no
2912            fi
2913         fi
2914
2915       else
2916          # Using libio, but <libio.h> doesn't exist on the target system. . .
2917          need_libio=yes
2918          # bkoz XXX need to add checks to enable this
2919          # pme XXX here's a first pass at such a check
2920          if test x$enable_c_mbchar != xno; then
2921              need_wlibio=yes
2922          else
2923              need_wlibio=no
2924          fi
2925       fi
2926       ;;
2927     xstdio | x | xno | xnone | xyes)
2928       # default
2929       CSTDIO_H=config/io/c_io_stdio.h
2930       BASIC_FILE_H=config/io/basic_file_stdio.h
2931       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2932       echo "$ac_t""stdio" 1>&6
2933
2934       # We're not using stdio.
2935       need_libio=no
2936       need_wlibio=no
2937       ;;
2938     *)
2939       echo "$enable_cstdio is an unknown io package" 1>&2
2940       exit 1
2941       ;;
2942   esac
2943   
2944   
2945   
2946
2947   # 2000-08-04 bkoz hack
2948   CCODECVT_C=config/io/c_io_libio_codecvt.c
2949   
2950   # 2000-08-04 bkoz hack
2951
2952   
2953
2954 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2955   GLIBCPP_BUILD_LIBIO_TRUE=
2956   GLIBCPP_BUILD_LIBIO_FALSE='#'
2957 else
2958   GLIBCPP_BUILD_LIBIO_TRUE='#'
2959   GLIBCPP_BUILD_LIBIO_FALSE=
2960 fi
2961   
2962
2963 if test "$need_libio" = yes; then
2964   GLIBCPP_NEED_LIBIO_TRUE=
2965   GLIBCPP_NEED_LIBIO_FALSE='#'
2966 else
2967   GLIBCPP_NEED_LIBIO_TRUE='#'
2968   GLIBCPP_NEED_LIBIO_FALSE=
2969 fi
2970   
2971
2972 if test "$need_wlibio" = yes; then
2973   GLIBCPP_NEED_WLIBIO_TRUE=
2974   GLIBCPP_NEED_WLIBIO_FALSE='#'
2975 else
2976   GLIBCPP_NEED_WLIBIO_TRUE='#'
2977   GLIBCPP_NEED_WLIBIO_FALSE=
2978 fi
2979   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2980     libio_la=../libio/libio.la
2981   else
2982     libio_la=
2983   fi
2984   
2985
2986
2987   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2988 echo "configure:2989: checking for clocale to use" >&5
2989   # Check whether --enable-clocale or --disable-clocale was given.
2990 if test "${enable_clocale+set}" = set; then
2991   enableval="$enable_clocale"
2992   if test x$enable_clocale = xno; then
2993      enable_clocale=no
2994   fi
2995 else
2996   enable_clocale=no
2997 fi
2998
2999
3000   enable_clocale_flag=$enable_clocale
3001
3002       if test x$enable_clocale_flag = xno; then
3003     case x${target_os} in
3004       xlinux* | xgnu*)
3005         cat > conftest.$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3008
3009         #include <features.h>
3010         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
3011           _GLIBCPP_ok
3012         #endif
3013         
3014 EOF
3015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3016   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3017   rm -rf conftest*
3018   enable_clocale_flag=gnu
3019 else
3020   rm -rf conftest*
3021   enable_clocale_flag=generic
3022 fi
3023 rm -f conftest*
3024
3025
3026         # Test for bugs early in glibc-2.2.x series
3027         if test x$enable_clocale_flag = xgnu; then
3028           if test "$cross_compiling" = yes; then
3029   enable_clocale_flag=generic
3030 else
3031   cat > conftest.$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3034
3035           #define _GNU_SOURCE 1
3036           #include <locale.h>
3037           #include <string.h>
3038           #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3039           extern __typeof(newlocale) __newlocale;
3040           extern __typeof(duplocale) __duplocale;
3041           extern __typeof(strcoll_l) __strcoll_l;
3042           #endif
3043           int main()
3044           {
3045             const char __one[] = "Äuglein Augmen";
3046             const char __two[] = "Äuglein";
3047             int i;
3048             int j;
3049             __locale_t  loc;
3050             __locale_t  loc_dup;
3051             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3052             loc_dup = __duplocale(loc);
3053             i = __strcoll_l(__one, __two, loc);
3054             j = __strcoll_l(__one, __two, loc_dup);
3055             return 0;
3056           }
3057           
3058 EOF
3059 if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3060 then
3061   enable_clocale_flag=gnu
3062 else
3063   echo "configure: failed program was:" >&5
3064   cat conftest.$ac_ext >&5
3065   rm -fr conftest*
3066   enable_clocale_flag=generic
3067 fi
3068 rm -fr conftest*
3069 fi
3070
3071         fi
3072
3073         # ... at some point put __strxfrm_l tests in as well.
3074         ;;
3075       *)
3076         enable_clocale_flag=generic
3077         ;;
3078     esac
3079   fi
3080
3081     # Check whether --enable-nls or --disable-nls was given.
3082 if test "${enable_nls+set}" = set; then
3083   enableval="$enable_nls"
3084   :
3085 else
3086   enable_nls=yes
3087 fi
3088
3089   USE_NLS=no
3090
3091     case x${enable_clocale_flag} in
3092     xgeneric)
3093       echo "$ac_t""generic" 1>&6
3094
3095       CLOCALE_H=config/locale/generic/c_locale.h
3096       CLOCALE_CC=config/locale/generic/c_locale.cc
3097       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3098       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3099       CCOLLATE_CC=config/locale/generic/collate_members.cc
3100       CCTYPE_CC=config/locale/generic/ctype_members.cc
3101       CMESSAGES_H=config/locale/generic/messages_members.h
3102       CMESSAGES_CC=config/locale/generic/messages_members.cc
3103       CMONEY_CC=config/locale/generic/monetary_members.cc
3104       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3105       CTIME_CC=config/locale/generic/time_members.cc
3106       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3107       ;;
3108     xgnu)
3109       echo "$ac_t""gnu" 1>&6
3110
3111       # Declare intention to use gettext, and add support for specific
3112       # languages.
3113       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3114       ALL_LINGUAS="de fr"
3115
3116       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3117       # Extract the first word of "msgfmt", so it can be a program name with args.
3118 set dummy msgfmt; ac_word=$2
3119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3120 echo "configure:3121: checking for $ac_word" >&5
3121 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3122   echo $ac_n "(cached) $ac_c" 1>&6
3123 else
3124   if test -n "$check_msgfmt"; then
3125   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3126 else
3127   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3128   ac_dummy="$PATH"
3129   for ac_dir in $ac_dummy; do
3130     test -z "$ac_dir" && ac_dir=.
3131     if test -f $ac_dir/$ac_word; then
3132       ac_cv_prog_check_msgfmt="yes"
3133       break
3134     fi
3135   done
3136   IFS="$ac_save_ifs"
3137   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3138 fi
3139 fi
3140 check_msgfmt="$ac_cv_prog_check_msgfmt"
3141 if test -n "$check_msgfmt"; then
3142   echo "$ac_t""$check_msgfmt" 1>&6
3143 else
3144   echo "$ac_t""no" 1>&6
3145 fi
3146
3147       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3148         USE_NLS=yes
3149       fi
3150       # Export the build objects.
3151       for ling in $ALL_LINGUAS; do \
3152         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3153         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3154       done
3155       
3156       
3157
3158       CLOCALE_H=config/locale/gnu/c_locale.h
3159       CLOCALE_CC=config/locale/gnu/c_locale.cc
3160       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3161       CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3162       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3163       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3164       CMESSAGES_H=config/locale/gnu/messages_members.h
3165       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3166       CMONEY_CC=config/locale/gnu/monetary_members.cc
3167       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3168       CTIME_CC=config/locale/gnu/time_members.cc
3169       CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3170       ;;
3171     xieee_1003.1-2001)
3172       echo "$ac_t""generic" 1>&6
3173
3174       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3175       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3176       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3177       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3178       CCOLLATE_CC=config/locale/generic/collate_members.cc
3179       CCTYPE_CC=config/locale/generic/ctype_members.cc
3180       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3181       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3182       CMONEY_CC=config/locale/generic/monetary_members.cc
3183       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3184       CTIME_CC=config/locale/generic/time_members.cc
3185       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3186       ;;
3187     *)
3188       echo "$enable_clocale is an unknown locale package" 1>&2
3189       exit 1
3190       ;;
3191   esac
3192
3193   # This is where the testsuite looks for locale catalogs, using the
3194   # -DLOCALEDIR define during testsuite compilation.
3195   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3196   
3197
3198   # For the time being, transform ctype_noninline.h to ctype_members_char.cc
3199 #  CCTYPE_CHAR_CC=config/${os_include_dir}/ctype_noninline.h
3200
3201   
3202   
3203   
3204   
3205   
3206   
3207   
3208 #  AC_LINK_FILES($CCTYPE_CHAR_CC, src/ctype_members_char.cc)
3209   
3210   
3211   
3212   
3213   
3214   
3215
3216 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3217 if test "${enable_c_mbchar+set}" = set; then
3218   enableval="$enable_c_mbchar"
3219   case "$enableval" in
3220  yes) enable_c_mbchar=yes ;;
3221  no)  enable_c_mbchar=no ;;
3222  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3223  esac
3224 else
3225   enable_c_mbchar=yes
3226 fi
3227
3228   
3229   # Check whether --enable-c99 or --disable-c99 was given.
3230 if test "${enable_c99+set}" = set; then
3231   enableval="$enable_c99"
3232     case "$enableval" in
3233    yes) enable_c99=yes ;;
3234    no)  enable_c99=no ;;
3235    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3236    esac
3237 else
3238   enable_c99=yes
3239 fi
3240  
3241   
3242   ac_ext=C
3243 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3244 ac_cpp='$CXXCPP $CPPFLAGS'
3245 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3246 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3247 cross_compiling=$ac_cv_prog_cxx_cross
3248
3249
3250   # Check for the existence of <math.h> functions used if C99 is enabled.
3251   ac_c99_math=yes;
3252   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3253 echo "configure:3254: checking for ISO C99 support in <math.h>" >&5
3254   cat > conftest.$ac_ext <<EOF
3255 #line 3256 "configure"
3256 #include "confdefs.h"
3257 #include <math.h>
3258 int main() {
3259 fpclassify(0.0);
3260 ; return 0; }
3261 EOF
3262 if { (eval echo configure:3263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3263   :
3264 else
3265   echo "configure: failed program was:" >&5
3266   cat conftest.$ac_ext >&5
3267   rm -rf conftest*
3268   ac_c99_math=no
3269 fi
3270 rm -f conftest*
3271   cat > conftest.$ac_ext <<EOF
3272 #line 3273 "configure"
3273 #include "confdefs.h"
3274 #include <math.h>
3275 int main() {
3276 isfinite(0.0);
3277 ; return 0; }
3278 EOF
3279 if { (eval echo configure:3280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3280   :
3281 else
3282   echo "configure: failed program was:" >&5
3283   cat conftest.$ac_ext >&5
3284   rm -rf conftest*
3285   ac_c99_math=no
3286 fi
3287 rm -f conftest*
3288   cat > conftest.$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3291 #include <math.h>
3292 int main() {
3293 isinf(0.0);
3294 ; return 0; }
3295 EOF
3296 if { (eval echo configure:3297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3297   :
3298 else
3299   echo "configure: failed program was:" >&5
3300   cat conftest.$ac_ext >&5
3301   rm -rf conftest*
3302   ac_c99_math=no
3303 fi
3304 rm -f conftest*
3305   cat > conftest.$ac_ext <<EOF
3306 #line 3307 "configure"
3307 #include "confdefs.h"
3308 #include <math.h>
3309 int main() {
3310 isnan(0.0);
3311 ; return 0; }
3312 EOF
3313 if { (eval echo configure:3314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3314   :
3315 else
3316   echo "configure: failed program was:" >&5
3317   cat conftest.$ac_ext >&5
3318   rm -rf conftest*
3319   ac_c99_math=no
3320 fi
3321 rm -f conftest*
3322   cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 #include <math.h>
3326 int main() {
3327 isnormal(0.0);
3328 ; return 0; }
3329 EOF
3330 if { (eval echo configure:3331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3331   :
3332 else
3333   echo "configure: failed program was:" >&5
3334   cat conftest.$ac_ext >&5
3335   rm -rf conftest*
3336   ac_c99_math=no
3337 fi
3338 rm -f conftest*
3339   cat > conftest.$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3342 #include <math.h>
3343 int main() {
3344 signbit(0.0);
3345 ; return 0; }
3346 EOF
3347 if { (eval echo configure:3348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3348   :
3349 else
3350   echo "configure: failed program was:" >&5
3351   cat conftest.$ac_ext >&5
3352   rm -rf conftest*
3353   ac_c99_math=no
3354 fi
3355 rm -f conftest*
3356   cat > conftest.$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3359 #include <math.h>
3360 int main() {
3361 isgreater(0.0,0.0);
3362 ; return 0; }
3363 EOF
3364 if { (eval echo configure:3365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3365   :
3366 else
3367   echo "configure: failed program was:" >&5
3368   cat conftest.$ac_ext >&5
3369   rm -rf conftest*
3370   ac_c99_math=no
3371 fi
3372 rm -f conftest*
3373   cat > conftest.$ac_ext <<EOF
3374 #line 3375 "configure"
3375 #include "confdefs.h"
3376 #include <math.h>
3377 int main() {
3378 isgreaterequal(0.0,0.0);
3379 ; return 0; }
3380 EOF
3381 if { (eval echo configure:3382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3382   :
3383 else
3384   echo "configure: failed program was:" >&5
3385   cat conftest.$ac_ext >&5
3386   rm -rf conftest*
3387   ac_c99_math=no
3388 fi
3389 rm -f conftest*
3390   cat > conftest.$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3393 #include <math.h>
3394 int main() {
3395 isless(0.0,0.0);
3396 ; return 0; }
3397 EOF
3398 if { (eval echo configure:3399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3399   :
3400 else
3401   echo "configure: failed program was:" >&5
3402   cat conftest.$ac_ext >&5
3403   rm -rf conftest*
3404   ac_c99_math=no
3405 fi
3406 rm -f conftest*
3407   cat > conftest.$ac_ext <<EOF
3408 #line 3409 "configure"
3409 #include "confdefs.h"
3410 #include <math.h>
3411 int main() {
3412 islessequal(0.0,0.0);
3413 ; return 0; }
3414 EOF
3415 if { (eval echo configure:3416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3416   :
3417 else
3418   echo "configure: failed program was:" >&5
3419   cat conftest.$ac_ext >&5
3420   rm -rf conftest*
3421   ac_c99_math=no
3422 fi
3423 rm -f conftest*
3424   cat > conftest.$ac_ext <<EOF
3425 #line 3426 "configure"
3426 #include "confdefs.h"
3427 #include <math.h>
3428 int main() {
3429 islessgreater(0.0,0.0);
3430 ; return 0; }
3431 EOF
3432 if { (eval echo configure:3433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3433   :
3434 else
3435   echo "configure: failed program was:" >&5
3436   cat conftest.$ac_ext >&5
3437   rm -rf conftest*
3438   ac_c99_math=no
3439 fi
3440 rm -f conftest*
3441   cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3444 #include <math.h>
3445 int main() {
3446 isunordered(0.0,0.0);
3447 ; return 0; }
3448 EOF
3449 if { (eval echo configure:3450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3450   :
3451 else
3452   echo "configure: failed program was:" >&5
3453   cat conftest.$ac_ext >&5
3454   rm -rf conftest*
3455   ac_c99_math=no
3456 fi
3457 rm -f conftest*
3458   echo "$ac_t""$ac_c99_math" 1>&6
3459
3460   # Check for the existence in <stdio.h> of vscanf, et. al.
3461   ac_c99_stdio=yes;
3462   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3463 echo "configure:3464: checking for ISO C99 support in <stdio.h>" >&5
3464   cat > conftest.$ac_ext <<EOF
3465 #line 3466 "configure"
3466 #include "confdefs.h"
3467 #include <stdio.h>
3468 int main() {
3469 snprintf("12", 0, "%i");
3470 ; return 0; }
3471 EOF
3472 if { (eval echo configure:3473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3473   :
3474 else
3475   echo "configure: failed program was:" >&5
3476   cat conftest.$ac_ext >&5
3477   rm -rf conftest*
3478   ac_c99_stdio=no
3479 fi
3480 rm -f conftest*
3481   cat > conftest.$ac_ext <<EOF
3482 #line 3483 "configure"
3483 #include "confdefs.h"
3484 #include <stdio.h>
3485                   #include <stdarg.h>
3486                   void foo(char* fmt, ...)
3487                   {va_list args; va_start(args, fmt);
3488                   vfscanf(stderr, "%i", args);}
3489 int main() {
3490
3491 ; return 0; }
3492 EOF
3493 if { (eval echo configure:3494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3494   :
3495 else
3496   echo "configure: failed program was:" >&5
3497   cat conftest.$ac_ext >&5
3498   rm -rf conftest*
3499   ac_c99_stdio=no
3500 fi
3501 rm -f conftest*
3502   cat > conftest.$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3505 #include <stdio.h>
3506                   #include <stdarg.h>
3507                   void foo(char* fmt, ...)
3508                   {va_list args; va_start(args, fmt);
3509                   vscanf("%i", args);}
3510 int main() {
3511
3512 ; return 0; }
3513 EOF
3514 if { (eval echo configure:3515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3515   :
3516 else
3517   echo "configure: failed program was:" >&5
3518   cat conftest.$ac_ext >&5
3519   rm -rf conftest*
3520   ac_c99_stdio=no
3521 fi
3522 rm -f conftest*
3523   cat > conftest.$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3526 #include <stdio.h>
3527                   #include <stdarg.h>
3528                   void foo(char* fmt, ...)
3529                   {va_list args; va_start(args, fmt);
3530                   vsnprintf(fmt, 0, "%i", args);}
3531 int main() {
3532
3533 ; return 0; }
3534 EOF
3535 if { (eval echo configure:3536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3536   :
3537 else
3538   echo "configure: failed program was:" >&5
3539   cat conftest.$ac_ext >&5
3540   rm -rf conftest*
3541   ac_c99_stdio=no
3542 fi
3543 rm -f conftest*
3544   cat > conftest.$ac_ext <<EOF
3545 #line 3546 "configure"
3546 #include "confdefs.h"
3547 #include <stdio.h>
3548                   #include <stdarg.h>
3549                   void foo(char* fmt, ...)
3550                   {va_list args; va_start(args, fmt);
3551                   vsscanf(fmt, "%i", args);}
3552 int main() {
3553
3554 ; return 0; }
3555 EOF
3556 if { (eval echo configure:3557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3557   :
3558 else
3559   echo "configure: failed program was:" >&5
3560   cat conftest.$ac_ext >&5
3561   rm -rf conftest*
3562   ac_c99_stdio=no
3563 fi
3564 rm -f conftest*
3565   echo "$ac_t""$ac_c99_stdio" 1>&6
3566
3567   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3568   ac_c99_stdlib=yes;
3569   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3570 echo "configure:3571: checking for lldiv_t declaration" >&5
3571   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3572   echo $ac_n "(cached) $ac_c" 1>&6
3573 else
3574   
3575   cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 #include <stdlib.h>
3579 int main() {
3580  lldiv_t mydivt;
3581 ; return 0; }
3582 EOF
3583 if { (eval echo configure:3584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3584   rm -rf conftest*
3585   ac_c99_lldiv_t=yes
3586 else
3587   echo "configure: failed program was:" >&5
3588   cat conftest.$ac_ext >&5
3589   rm -rf conftest*
3590   ac_c99_lldiv_t=no
3591 fi
3592 rm -f conftest*
3593   
3594 fi
3595
3596   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3597
3598   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3599 echo "configure:3600: checking for ISO C99 support in <stdlib.h>" >&5
3600   cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 #include <stdlib.h>
3604 int main() {
3605 char* tmp; strtof("gnu", &tmp);
3606 ; return 0; }
3607 EOF
3608 if { (eval echo configure:3609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3609   :
3610 else
3611   echo "configure: failed program was:" >&5
3612   cat conftest.$ac_ext >&5
3613   rm -rf conftest*
3614   ac_c99_stdlib=no
3615 fi
3616 rm -f conftest*
3617   cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3620 #include <stdlib.h>
3621 int main() {
3622 char* tmp; strtold("gnu", &tmp);
3623 ; return 0; }
3624 EOF
3625 if { (eval echo configure:3626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3626   :
3627 else
3628   echo "configure: failed program was:" >&5
3629   cat conftest.$ac_ext >&5
3630   rm -rf conftest*
3631   ac_c99_stdlib=no
3632 fi
3633 rm -f conftest*
3634   cat > conftest.$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3637 #include <stdlib.h>
3638 int main() {
3639 llabs(10);
3640 ; return 0; }
3641 EOF
3642 if { (eval echo configure:3643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3643   :
3644 else
3645   echo "configure: failed program was:" >&5
3646   cat conftest.$ac_ext >&5
3647   rm -rf conftest*
3648   ac_c99_stdlib=no
3649 fi
3650 rm -f conftest*
3651   cat > conftest.$ac_ext <<EOF
3652 #line 3653 "configure"
3653 #include "confdefs.h"
3654 #include <stdlib.h>
3655 int main() {
3656 lldiv(10,1);
3657 ; return 0; }
3658 EOF
3659 if { (eval echo configure:3660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3660   :
3661 else
3662   echo "configure: failed program was:" >&5
3663   cat conftest.$ac_ext >&5
3664   rm -rf conftest*
3665   ac_c99_stdlib=no
3666 fi
3667 rm -f conftest*
3668   cat > conftest.$ac_ext <<EOF
3669 #line 3670 "configure"
3670 #include "confdefs.h"
3671 #include <stdlib.h>
3672 int main() {
3673 atoll("10");
3674 ; return 0; }
3675 EOF
3676 if { (eval echo configure:3677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3677   :
3678 else
3679   echo "configure: failed program was:" >&5
3680   cat conftest.$ac_ext >&5
3681   rm -rf conftest*
3682   ac_c99_stdlib=no
3683 fi
3684 rm -f conftest*
3685   cat > conftest.$ac_ext <<EOF
3686 #line 3687 "configure"
3687 #include "confdefs.h"
3688 #include <stdlib.h>
3689 int main() {
3690 _Exit(0);
3691 ; return 0; }
3692 EOF
3693 if { (eval echo configure:3694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3694   :
3695 else
3696   echo "configure: failed program was:" >&5
3697   cat conftest.$ac_ext >&5
3698   rm -rf conftest*
3699   ac_c99_stdlib=no
3700 fi
3701 rm -f conftest*
3702   if test x"$ac_c99_lldiv_t" = x"no"; then
3703     ac_c99_stdlib=no; 
3704   fi; 
3705   echo "$ac_t""$ac_c99_stdlib" 1>&6
3706
3707   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3708   # XXX the wchar.h checks should be rolled into the general C99 bits.
3709   ac_c99_wchar=yes;
3710   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3711 echo "configure:3712: checking for additional ISO C99 support in <wchar.h>" >&5
3712   cat > conftest.$ac_ext <<EOF
3713 #line 3714 "configure"
3714 #include "confdefs.h"
3715 #include <wchar.h>
3716 int main() {
3717 wcstold(L"10.0", NULL);
3718 ; return 0; }
3719 EOF
3720 if { (eval echo configure:3721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3721   :
3722 else
3723   echo "configure: failed program was:" >&5
3724   cat conftest.$ac_ext >&5
3725   rm -rf conftest*
3726   ac_c99_wchar=no
3727 fi
3728 rm -f conftest*
3729   cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3732 #include <wchar.h>
3733 int main() {
3734 wcstoll(L"10", NULL, 10);
3735 ; return 0; }
3736 EOF
3737 if { (eval echo configure:3738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3738   :
3739 else
3740   echo "configure: failed program was:" >&5
3741   cat conftest.$ac_ext >&5
3742   rm -rf conftest*
3743   ac_c99_wchar=no
3744 fi
3745 rm -f conftest*
3746   cat > conftest.$ac_ext <<EOF
3747 #line 3748 "configure"
3748 #include "confdefs.h"
3749 #include <wchar.h>
3750 int main() {
3751 wcstoull(L"10", NULL, 10);
3752 ; return 0; }
3753 EOF
3754 if { (eval echo configure:3755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3755   :
3756 else
3757   echo "configure: failed program was:" >&5
3758   cat conftest.$ac_ext >&5
3759   rm -rf conftest*
3760   ac_c99_wchar=no
3761 fi
3762 rm -f conftest*
3763   echo "$ac_t""$ac_c99_wchar" 1>&6
3764
3765   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3766 echo "configure:3767: checking for enabled ISO C99 support" >&5
3767   if test x"$ac_c99_math" = x"no" ||
3768      test x"$ac_c99_stdio" = x"no" ||
3769      test x"$ac_c99_stdlib" = x"no" ||
3770      test x"$ac_c99_wchar" = x"no"; then
3771     enable_c99=no; 
3772   fi; 
3773   echo "$ac_t""$enable_c99" 1>&6
3774
3775   # Option parsed, now set things appropriately
3776   if test x"$enable_c99" = x"yes"; then
3777     cat >> confdefs.h <<\EOF
3778 #define _GLIBCPP_USE_C99 1
3779 EOF
3780
3781   fi
3782
3783   ac_ext=c
3784 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3785 ac_cpp='$CPP $CPPFLAGS'
3786 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3787 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3788 cross_compiling=$ac_cv_prog_cc_cross
3789
3790
3791   
3792   # Check whether --enable-long-long or --disable-long-long was given.
3793 if test "${enable_long_long+set}" = set; then
3794   enableval="$enable_long_long"
3795     case "$enableval" in
3796    yes) enable_long_long=yes ;;
3797    no)  enable_long_long=no ;;
3798    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3799    esac
3800 else
3801   enable_long_long=yes
3802 fi
3803
3804   
3805   ac_ext=C
3806 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3807 ac_cpp='$CXXCPP $CPPFLAGS'
3808 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3809 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3810 cross_compiling=$ac_cv_prog_cxx_cross
3811
3812
3813   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3814 echo "configure:3815: checking for enabled long long I/O support" >&5
3815   # iostreams require strtoll, strtoull to compile
3816   cat > conftest.$ac_ext <<EOF
3817 #line 3818 "configure"
3818 #include "confdefs.h"
3819 #include <stdlib.h>
3820 int main() {
3821 char* tmp; strtoll("gnu", &tmp, 10);
3822 ; return 0; }
3823 EOF
3824 if { (eval echo configure:3825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3825   :
3826 else
3827   echo "configure: failed program was:" >&5
3828   cat conftest.$ac_ext >&5
3829   rm -rf conftest*
3830   enable_long_long=no
3831 fi
3832 rm -f conftest*
3833   cat > conftest.$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3836 #include <stdlib.h>
3837 int main() {
3838 char* tmp; strtoull("gnu", &tmp, 10);
3839 ; return 0; }
3840 EOF
3841 if { (eval echo configure:3842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3842   :
3843 else
3844   echo "configure: failed program was:" >&5
3845   cat conftest.$ac_ext >&5
3846   rm -rf conftest*
3847   enable_long_long=no
3848 fi
3849 rm -f conftest*
3850
3851   # Option parsed, now set things appropriately
3852   if test x"$enable_long_long" = xyes; then
3853     cat >> confdefs.h <<\EOF
3854 #define _GLIBCPP_USE_LONG_LONG 1
3855 EOF
3856
3857   fi
3858   echo "$ac_t""$enable_long_long" 1>&6
3859
3860   ac_ext=c
3861 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3862 ac_cpp='$CPP $CPPFLAGS'
3863 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3864 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3865 cross_compiling=$ac_cv_prog_cc_cross
3866
3867
3868 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3869 echo "configure:3870: checking for c header strategy to use" >&5
3870 # Check whether --enable-cheaders or --disable-cheaders was given.
3871 if test "${enable_cheaders+set}" = set; then
3872   enableval="$enable_cheaders"
3873   
3874   case "$enableval" in
3875    c) 
3876         enable_cheaders=c 
3877         ;;
3878    c_std)  
3879         enable_cheaders=c_std 
3880         ;;
3881    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3882         ;;
3883   esac
3884 else
3885   enable_cheaders=c_std
3886 fi
3887
3888   echo "$ac_t""$enable_cheaders" 1>&6
3889
3890     case "$enable_cheaders" in
3891     c_std)   
3892         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3893         ;;
3894     c)   
3895         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3896         ;;
3897   esac
3898
3899   
3900   
3901
3902 if test "$enable_cheaders" = c; then
3903   GLIBCPP_C_HEADERS_C_TRUE=
3904   GLIBCPP_C_HEADERS_C_FALSE='#'
3905 else
3906   GLIBCPP_C_HEADERS_C_TRUE='#'
3907   GLIBCPP_C_HEADERS_C_FALSE=
3908 fi
3909   
3910
3911 if test "$enable_cheaders" = c_std; then
3912   GLIBCPP_C_HEADERS_C_STD_TRUE=
3913   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3914 else
3915   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3916   GLIBCPP_C_HEADERS_C_STD_FALSE=
3917 fi
3918   
3919
3920 if test "$c_compatibility" = yes; then
3921   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3922   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3923 else
3924   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3925   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3926 fi
3927
3928
3929   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3930 echo "configure:3931: checking for thread model used by GCC" >&5
3931   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3932   echo "$ac_t""$target_thread_file" 1>&6
3933
3934   if test $target_thread_file != single; then
3935     cat >> confdefs.h <<\EOF
3936 #define HAVE_GTHR_DEFAULT 1
3937 EOF
3938
3939     cat >> confdefs.h <<\EOF
3940 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3941 EOF
3942
3943   fi
3944
3945   glibcpp_thread_h=gthr-$target_thread_file.h
3946   
3947
3948 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
3949 if test "${enable_cxx_flags+set}" = set; then
3950   enableval="$enable_cxx_flags"
3951   case "x$enableval" in
3952  xyes)   
3953         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
3954  xno|x)  
3955         enable_cxx_flags='' ;;
3956  *)      
3957         enable_cxx_flags="$enableval" ;;
3958  esac
3959 else
3960   enable_cxx_flags='none'
3961 fi
3962
3963
3964 if test "$enable_cxx_flags" = "none"; then 
3965   enable_cxx_flags=''; 
3966 fi
3967
3968 if test -n "$enable_cxx_flags"; then
3969   for f in $enable_cxx_flags; do
3970     case "$f" in
3971       -fhonor-std)  ;;
3972       -*)  ;;
3973       *)   # and we're trying to pass /what/ exactly?
3974            { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
3975     esac
3976   done
3977 fi
3978 EXTRA_CXX_FLAGS="$enable_cxx_flags"
3979
3980
3981
3982   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3983 echo "configure:3984: checking for exception model to use" >&5
3984   
3985   ac_ext=C
3986 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3987 ac_cpp='$CXXCPP $CPPFLAGS'
3988 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3989 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3990 cross_compiling=$ac_cv_prog_cxx_cross
3991
3992   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3993 if test "${enable_sjlj_exceptions+set}" = set; then
3994   enableval="$enable_sjlj_exceptions"
3995   :
3996 else
3997                        cat > conftest.$ac_ext << EOF
3998 #line 3999 "configure"
3999 struct S { ~S(); };
4000 void bar();
4001 void foo()
4002 {
4003   S s;
4004   bar();
4005 }
4006 EOF
4007    old_CXXFLAGS="$CXXFLAGS"  
4008    CXXFLAGS=-S
4009    if { (eval echo configure:4010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4010      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4011        enable_sjlj_exceptions=yes
4012      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4013        enable_sjlj_exceptions=no
4014      fi
4015    fi
4016    CXXFLAGS="$old_CXXFLAGS"
4017    rm -f conftest*
4018 fi
4019
4020    if test x$enable_sjlj_exceptions = xyes; then
4021      cat >> confdefs.h <<\EOF
4022 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4023 EOF
4024
4025      ac_exception_model_name=sjlj
4026    elif test x$enable_sjlj_exceptions = xno; then
4027      ac_exception_model_name="call frame"
4028    else
4029      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4030    fi
4031    ac_ext=c
4032 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4033 ac_cpp='$CPP $CPPFLAGS'
4034 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4035 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4036 cross_compiling=$ac_cv_prog_cc_cross
4037
4038    echo "$ac_t""$ac_exception_model_name" 1>&6
4039
4040
4041   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4042 echo "configure:4043: checking for use of libunwind" >&5
4043   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4044 if test "${enable_libunwind_exceptions+set}" = set; then
4045   enableval="$enable_libunwind_exceptions"
4046   use_libunwind_exceptions=$enableval
4047 else
4048   use_libunwind_exceptions=no
4049 fi
4050
4051   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4052     if test x"$use_libunwind_exceptions" = xyes; then
4053     LIBUNWIND_FLAG="-lunwind"
4054   else
4055     LIBUNWIND_FLAG=""
4056   fi
4057   
4058
4059 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4060 if test "${enable_concept_checks+set}" = set; then
4061   enableval="$enable_concept_checks"
4062   case "$enableval" in
4063  yes) enable_concept_checks=yes ;;
4064  no)  enable_concept_checks=no ;;
4065  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4066  esac
4067 else
4068   enable_concept_checks=no
4069 fi
4070 if test x"$enable_concept_checks" = xyes; then
4071   cat >> confdefs.h <<\EOF
4072 #define _GLIBCPP_CONCEPT_CHECKS 1
4073 EOF
4074
4075 fi
4076
4077
4078 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4079 for ac_hdr in string.h stdlib.h
4080 do
4081 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4083 echo "configure:4084: checking for $ac_hdr" >&5
4084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4085   echo $ac_n "(cached) $ac_c" 1>&6
4086 else
4087   cat > conftest.$ac_ext <<EOF
4088 #line 4089 "configure"
4089 #include "confdefs.h"
4090 #include <$ac_hdr>
4091 EOF
4092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4093 { (eval echo configure:4094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4095 if test -z "$ac_err"; then
4096   rm -rf conftest*
4097   eval "ac_cv_header_$ac_safe=yes"
4098 else
4099   echo "$ac_err" >&5
4100   echo "configure: failed program was:" >&5
4101   cat conftest.$ac_ext >&5
4102   rm -rf conftest*
4103   eval "ac_cv_header_$ac_safe=no"
4104 fi
4105 rm -f conftest*
4106 fi
4107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4108   echo "$ac_t""yes" 1>&6
4109     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4110   cat >> confdefs.h <<EOF
4111 #define $ac_tr_hdr 1
4112 EOF
4113  
4114 else
4115   echo "$ac_t""no" 1>&6
4116 fi
4117 done
4118
4119
4120 # No surprises, no surprises...
4121 if test $ATOMICITYH = cpu/generic ; then
4122   echo "configure: warning: No native atomic operations are provided yet for this platform." 1>&2
4123   if test $target_thread_file = single; then
4124     echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4125     echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4126   else
4127     echo "configure: warning: They will be faked using a mutex." 1>&2
4128     echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4129   fi
4130 fi
4131
4132
4133 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4134
4135   # We are being configured with some form of cross compiler.
4136   GLIBCPP_IS_CROSS_COMPILING=1
4137
4138   # This lets us hard-code the functionality we know we'll have in the cross
4139   # target environment.  "Let" is a sugar-coated word placed on an especially
4140   # dull and tedious hack, actually.
4141   #
4142   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4143   # that involve linking, can't be used:
4144   #    "cannot open sim-crt0.o"
4145   #    "cannot open crt0.o"
4146   # etc.  All this is because there currently exists no unified, consistent
4147   # way for top level CC information to be passed down to target directories:
4148   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4149   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4150   # crosses can be removed.
4151
4152   # If Canadian cross, then don't pick up tools from the build directory.
4153   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4154   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4155     CANADIAN=yes
4156   else
4157     CANADIAN=no
4158   fi
4159
4160   # Construct crosses by hand, eliminating bits that need ld...
4161   # GLIBCPP_CHECK_COMPILER_FEATURES
4162   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4163   # GLIBCPP_CHECK_MATH_SUPPORT
4164
4165   case "$target" in
4166     *-linux*)
4167       os_include_dir="os/gnu-linux"
4168       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4169         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4170         fp.h locale.h float.h inttypes.h
4171 do
4172 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4173 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4174 echo "configure:4175: checking for $ac_hdr" >&5
4175 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4176   echo $ac_n "(cached) $ac_c" 1>&6
4177 else
4178   cat > conftest.$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4181 #include <$ac_hdr>
4182 EOF
4183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4184 { (eval echo configure:4185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4186 if test -z "$ac_err"; then
4187   rm -rf conftest*
4188   eval "ac_cv_header_$ac_safe=yes"
4189 else
4190   echo "$ac_err" >&5
4191   echo "configure: failed program was:" >&5
4192   cat conftest.$ac_ext >&5
4193   rm -rf conftest*
4194   eval "ac_cv_header_$ac_safe=no"
4195 fi
4196 rm -f conftest*
4197 fi
4198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4199   echo "$ac_t""yes" 1>&6
4200     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4201   cat >> confdefs.h <<EOF
4202 #define $ac_tr_hdr 1
4203 EOF
4204  
4205 else
4206   echo "$ac_t""no" 1>&6
4207 fi
4208 done
4209
4210       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4211       
4212       
4213   # If we're not using GNU ld, then there's no point in even trying these
4214   # tests.  Check for that first.  We should have already tested for gld
4215   # by now (in libtool), but require it now just to be safe...
4216   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4217   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4218   
4219
4220   # The name set by libtool depends on the version of libtool.  Shame on us
4221   # for depending on an impl detail, but c'est la vie.  Older versions used
4222   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4223   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4224   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4225   # set (hence we're using an older libtool), then set it.
4226   if test x${with_gnu_ld+set} != xset; then
4227     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4228       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4229       with_gnu_ld=no
4230     else
4231       with_gnu_ld=$ac_cv_prog_gnu_ld
4232     fi
4233   fi
4234
4235   # Start by getting the version number.  I think the libtool test already
4236   # does some of this, but throws away the result.
4237   
4238   ldver=`$LD --version 2>/dev/null | head -1 | \
4239          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4240   
4241   glibcpp_gnu_ld_version=`echo $ldver | \
4242          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4243
4244   # Set --gc-sections.
4245   if test "$with_gnu_ld" = "notbroken"; then
4246     # GNU ld it is!  Joy and bunny rabbits!
4247
4248     # All these tests are for C++; save the language and the compiler flags.
4249     # Need to do this so that g++ won't try to link in libstdc++
4250     ac_test_CFLAGS="${CFLAGS+set}"
4251     ac_save_CFLAGS="$CFLAGS"
4252     CFLAGS='-x c++  -Wl,--gc-sections'
4253
4254     # Check for -Wl,--gc-sections
4255     # XXX This test is broken at the moment, as symbols required for
4256     # linking are now in libsupc++ (not built yet.....). In addition, 
4257     # this test has cored on solaris in the past. In addition,
4258     # --gc-sections doesn't really work at the moment (keeps on discarding
4259     # used sections, first .eh_frame and now some of the glibc sections for
4260     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4261     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4262 echo "configure:4263: checking for ld that supports -Wl,--gc-sections" >&5
4263     if test "$cross_compiling" = yes; then
4264   ac_sectionLDflags=yes
4265 else
4266   cat > conftest.$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4269
4270      int main(void) 
4271      {
4272        try { throw 1; }
4273        catch (...) { };
4274        return 0;
4275      }
4276     
4277 EOF
4278 if { (eval echo configure:4279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4279 then
4280   ac_sectionLDflags=yes
4281 else
4282   echo "configure: failed program was:" >&5
4283   cat conftest.$ac_ext >&5
4284   rm -fr conftest*
4285   ac_sectionLDflags=no
4286 fi
4287 rm -fr conftest*
4288 fi
4289
4290     if test "$ac_test_CFLAGS" = set; then
4291       CFLAGS="$ac_save_CFLAGS"
4292     else
4293       # this is the suspicious part
4294       CFLAGS=''
4295     fi
4296     if test "$ac_sectionLDflags" = "yes"; then
4297       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4298     fi
4299     echo "$ac_t""$ac_sectionLDflags" 1>&6
4300   fi
4301
4302   # Set linker optimization flags.
4303   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
4304     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4305   fi
4306
4307   
4308   
4309
4310       
4311     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4312 echo "configure:4313: checking for main in -lm" >&5
4313 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4315   echo $ac_n "(cached) $ac_c" 1>&6
4316 else
4317   ac_save_LIBS="$LIBS"
4318 LIBS="-lm  $LIBS"
4319 cat > conftest.$ac_ext <<EOF
4320 #line 4321 "configure"
4321 #include "confdefs.h"
4322
4323 int main() {
4324 main()
4325 ; return 0; }
4326 EOF
4327 if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4328   rm -rf conftest*
4329   eval "ac_cv_lib_$ac_lib_var=yes"
4330 else
4331   echo "configure: failed program was:" >&5
4332   cat conftest.$ac_ext >&5
4333   rm -rf conftest*
4334   eval "ac_cv_lib_$ac_lib_var=no"
4335 fi
4336 rm -f conftest*
4337 LIBS="$ac_save_LIBS"
4338
4339 fi
4340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4341   echo "$ac_t""yes" 1>&6
4342     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4343     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4344   cat >> confdefs.h <<EOF
4345 #define $ac_tr_lib 1
4346 EOF
4347
4348   LIBS="-lm $LIBS"
4349
4350 else
4351   echo "$ac_t""no" 1>&6
4352 fi
4353
4354   for ac_func in nan copysignf
4355 do
4356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4357 echo "configure:4358: checking for $ac_func" >&5
4358 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4359   echo $ac_n "(cached) $ac_c" 1>&6
4360 else
4361   cat > conftest.$ac_ext <<EOF
4362 #line 4363 "configure"
4363 #include "confdefs.h"
4364 /* System header to define __stub macros and hopefully few prototypes,
4365     which can conflict with char $ac_func(); below.  */
4366 #include <assert.h>
4367 /* Override any gcc2 internal prototype to avoid an error.  */
4368 /* We use char because int might match the return type of a gcc2
4369     builtin and then its argument prototype would still apply.  */
4370 char $ac_func();
4371
4372 int main() {
4373
4374 /* The GNU C library defines this for functions which it implements
4375     to always fail with ENOSYS.  Some functions are actually named
4376     something starting with __ and the normal name is an alias.  */
4377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4378 choke me
4379 #else
4380 $ac_func();
4381 #endif
4382
4383 ; return 0; }
4384 EOF
4385 if { (eval echo configure:4386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4386   rm -rf conftest*
4387   eval "ac_cv_func_$ac_func=yes"
4388 else
4389   echo "configure: failed program was:" >&5
4390   cat conftest.$ac_ext >&5
4391   rm -rf conftest*
4392   eval "ac_cv_func_$ac_func=no"
4393 fi
4394 rm -f conftest*
4395 fi
4396
4397 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4398   echo "$ac_t""yes" 1>&6
4399     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4400   cat >> confdefs.h <<EOF
4401 #define $ac_tr_func 1
4402 EOF
4403  
4404 else
4405   echo "$ac_t""no" 1>&6
4406 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4407 fi
4408 done
4409
4410
4411     for ac_func in __signbit
4412 do
4413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4414 echo "configure:4415: checking for $ac_func" >&5
4415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4416   echo $ac_n "(cached) $ac_c" 1>&6
4417 else
4418   cat > conftest.$ac_ext <<EOF
4419 #line 4420 "configure"
4420 #include "confdefs.h"
4421 /* System header to define __stub macros and hopefully few prototypes,
4422     which can conflict with char $ac_func(); below.  */
4423 #include <assert.h>
4424 /* Override any gcc2 internal prototype to avoid an error.  */
4425 /* We use char because int might match the return type of a gcc2
4426     builtin and then its argument prototype would still apply.  */
4427 char $ac_func();
4428
4429 int main() {
4430
4431 /* The GNU C library defines this for functions which it implements
4432     to always fail with ENOSYS.  Some functions are actually named
4433     something starting with __ and the normal name is an alias.  */
4434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4435 choke me
4436 #else
4437 $ac_func();
4438 #endif
4439
4440 ; return 0; }
4441 EOF
4442 if { (eval echo configure:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4443   rm -rf conftest*
4444   eval "ac_cv_func_$ac_func=yes"
4445 else
4446   echo "configure: failed program was:" >&5
4447   cat conftest.$ac_ext >&5
4448   rm -rf conftest*
4449   eval "ac_cv_func_$ac_func=no"
4450 fi
4451 rm -f conftest*
4452 fi
4453
4454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4455   echo "$ac_t""yes" 1>&6
4456     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4457   cat >> confdefs.h <<EOF
4458 #define $ac_tr_func 1
4459 EOF
4460  
4461 else
4462   echo "$ac_t""no" 1>&6
4463 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4464 fi
4465 done
4466
4467   for ac_func in __signbitf
4468 do
4469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4470 echo "configure:4471: checking for $ac_func" >&5
4471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4472   echo $ac_n "(cached) $ac_c" 1>&6
4473 else
4474   cat > conftest.$ac_ext <<EOF
4475 #line 4476 "configure"
4476 #include "confdefs.h"
4477 /* System header to define __stub macros and hopefully few prototypes,
4478     which can conflict with char $ac_func(); below.  */
4479 #include <assert.h>
4480 /* Override any gcc2 internal prototype to avoid an error.  */
4481 /* We use char because int might match the return type of a gcc2
4482     builtin and then its argument prototype would still apply.  */
4483 char $ac_func();
4484
4485 int main() {
4486
4487 /* The GNU C library defines this for functions which it implements
4488     to always fail with ENOSYS.  Some functions are actually named
4489     something starting with __ and the normal name is an alias.  */
4490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4491 choke me
4492 #else
4493 $ac_func();
4494 #endif
4495
4496 ; return 0; }
4497 EOF
4498 if { (eval echo configure:4499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4499   rm -rf conftest*
4500   eval "ac_cv_func_$ac_func=yes"
4501 else
4502   echo "configure: failed program was:" >&5
4503   cat conftest.$ac_ext >&5
4504   rm -rf conftest*
4505   eval "ac_cv_func_$ac_func=no"
4506 fi
4507 rm -f conftest*
4508 fi
4509
4510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4511   echo "$ac_t""yes" 1>&6
4512     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4513   cat >> confdefs.h <<EOF
4514 #define $ac_tr_func 1
4515 EOF
4516  
4517 else
4518   echo "$ac_t""no" 1>&6
4519 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4520 fi
4521 done
4522
4523
4524           if test x$ac_cv_func_copysignl = x"yes"; then
4525     for ac_func in __signbitl
4526 do
4527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4528 echo "configure:4529: checking for $ac_func" >&5
4529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4530   echo $ac_n "(cached) $ac_c" 1>&6
4531 else
4532   cat > conftest.$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4535 /* System header to define __stub macros and hopefully few prototypes,
4536     which can conflict with char $ac_func(); below.  */
4537 #include <assert.h>
4538 /* Override any gcc2 internal prototype to avoid an error.  */
4539 /* We use char because int might match the return type of a gcc2
4540     builtin and then its argument prototype would still apply.  */
4541 char $ac_func();
4542
4543 int main() {
4544
4545 /* The GNU C library defines this for functions which it implements
4546     to always fail with ENOSYS.  Some functions are actually named
4547     something starting with __ and the normal name is an alias.  */
4548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4549 choke me
4550 #else
4551 $ac_func();
4552 #endif
4553
4554 ; return 0; }
4555 EOF
4556 if { (eval echo configure:4557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4557   rm -rf conftest*
4558   eval "ac_cv_func_$ac_func=yes"
4559 else
4560   echo "configure: failed program was:" >&5
4561   cat conftest.$ac_ext >&5
4562   rm -rf conftest*
4563   eval "ac_cv_func_$ac_func=no"
4564 fi
4565 rm -f conftest*
4566 fi
4567
4568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4569   echo "$ac_t""yes" 1>&6
4570     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4571   cat >> confdefs.h <<EOF
4572 #define $ac_tr_func 1
4573 EOF
4574  
4575 else
4576   echo "$ac_t""no" 1>&6
4577 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4578 fi
4579 done
4580
4581   fi
4582
4583   
4584
4585       
4586
4587       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4588 echo "configure:4589: checking for mbstate_t" >&5
4589   cat > conftest.$ac_ext <<EOF
4590 #line 4591 "configure"
4591 #include "confdefs.h"
4592 #include <wchar.h>
4593 int main() {
4594 mbstate_t teststate;
4595 ; return 0; }
4596 EOF
4597 if { (eval echo configure:4598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4598   rm -rf conftest*
4599   have_mbstate_t=yes
4600 else
4601   echo "configure: failed program was:" >&5
4602   cat conftest.$ac_ext >&5
4603   rm -rf conftest*
4604   have_mbstate_t=no
4605 fi
4606 rm -f conftest*
4607   echo "$ac_t""$have_mbstate_t" 1>&6
4608   if test x"$have_mbstate_t" = xyes; then
4609     cat >> confdefs.h <<\EOF
4610 #define HAVE_MBSTATE_T 1
4611 EOF
4612
4613   fi
4614
4615     for ac_hdr in wchar.h
4616 do
4617 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4618 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4619 echo "configure:4620: checking for $ac_hdr" >&5
4620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4621   echo $ac_n "(cached) $ac_c" 1>&6
4622 else
4623   cat > conftest.$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4626 #include <$ac_hdr>
4627 EOF
4628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4629 { (eval echo configure:4630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4631 if test -z "$ac_err"; then
4632   rm -rf conftest*
4633   eval "ac_cv_header_$ac_safe=yes"
4634 else
4635   echo "$ac_err" >&5
4636   echo "configure: failed program was:" >&5
4637   cat conftest.$ac_ext >&5
4638   rm -rf conftest*
4639   eval "ac_cv_header_$ac_safe=no"
4640 fi
4641 rm -f conftest*
4642 fi
4643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4644   echo "$ac_t""yes" 1>&6
4645     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4646   cat >> confdefs.h <<EOF
4647 #define $ac_tr_hdr 1
4648 EOF
4649  ac_has_wchar_h=yes
4650 else
4651   echo "$ac_t""no" 1>&6
4652 ac_has_wchar_h=no
4653 fi
4654 done
4655
4656   for ac_hdr in wctype.h
4657 do
4658 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4660 echo "configure:4661: checking for $ac_hdr" >&5
4661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4662   echo $ac_n "(cached) $ac_c" 1>&6
4663 else
4664   cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4667 #include <$ac_hdr>
4668 EOF
4669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4670 { (eval echo configure:4671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4672 if test -z "$ac_err"; then
4673   rm -rf conftest*
4674   eval "ac_cv_header_$ac_safe=yes"
4675 else
4676   echo "$ac_err" >&5
4677   echo "configure: failed program was:" >&5
4678   cat conftest.$ac_ext >&5
4679   rm -rf conftest*
4680   eval "ac_cv_header_$ac_safe=no"
4681 fi
4682 rm -f conftest*
4683 fi
4684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4685   echo "$ac_t""yes" 1>&6
4686     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4687   cat >> confdefs.h <<EOF
4688 #define $ac_tr_hdr 1
4689 EOF
4690  ac_has_wctype_h=yes
4691 else
4692   echo "$ac_t""no" 1>&6
4693 ac_has_wctype_h=no
4694 fi
4695 done
4696
4697   
4698     if test x"$ac_has_wchar_h" = xyes &&
4699      test x"$ac_has_wctype_h" = xyes &&
4700      test x"$enable_c_mbchar" != xno; then
4701       
4702             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4703 echo "configure:4704: checking for WCHAR_MIN and WCHAR_MAX" >&5
4704     cat > conftest.$ac_ext <<EOF
4705 #line 4706 "configure"
4706 #include "confdefs.h"
4707 #include <wchar.h>
4708 int main() {
4709 int i = WCHAR_MIN; int j = WCHAR_MAX;
4710 ; return 0; }
4711 EOF
4712 if { (eval echo configure:4713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4713   rm -rf conftest*
4714   has_wchar_minmax=yes
4715 else
4716   echo "configure: failed program was:" >&5
4717   cat conftest.$ac_ext >&5
4718   rm -rf conftest*
4719   has_wchar_minmax=no
4720 fi
4721 rm -f conftest*
4722     echo "$ac_t""$has_wchar_minmax" 1>&6
4723     
4724             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4725 echo "configure:4726: checking for WEOF" >&5
4726     cat > conftest.$ac_ext <<EOF
4727 #line 4728 "configure"
4728 #include "confdefs.h"
4729
4730       #include <wchar.h>
4731       #include <stddef.h>
4732 int main() {
4733 wint_t i = WEOF;
4734 ; return 0; }
4735 EOF
4736 if { (eval echo configure:4737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4737   rm -rf conftest*
4738   has_weof=yes
4739 else
4740   echo "configure: failed program was:" >&5
4741   cat conftest.$ac_ext >&5
4742   rm -rf conftest*
4743   has_weof=no
4744 fi
4745 rm -f conftest*
4746     echo "$ac_t""$has_weof" 1>&6
4747   
4748         ac_wfuncs=yes
4749     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4750 do
4751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4752 echo "configure:4753: checking for $ac_func" >&5
4753 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4754   echo $ac_n "(cached) $ac_c" 1>&6
4755 else
4756   cat > conftest.$ac_ext <<EOF
4757 #line 4758 "configure"
4758 #include "confdefs.h"
4759 /* System header to define __stub macros and hopefully few prototypes,
4760     which can conflict with char $ac_func(); below.  */
4761 #include <assert.h>
4762 /* Override any gcc2 internal prototype to avoid an error.  */
4763 /* We use char because int might match the return type of a gcc2
4764     builtin and then its argument prototype would still apply.  */
4765 char $ac_func();
4766
4767 int main() {
4768
4769 /* The GNU C library defines this for functions which it implements
4770     to always fail with ENOSYS.  Some functions are actually named
4771     something starting with __ and the normal name is an alias.  */
4772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4773 choke me
4774 #else
4775 $ac_func();
4776 #endif
4777
4778 ; return 0; }
4779 EOF
4780 if { (eval echo configure:4781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4781   rm -rf conftest*
4782   eval "ac_cv_func_$ac_func=yes"
4783 else
4784   echo "configure: failed program was:" >&5
4785   cat conftest.$ac_ext >&5
4786   rm -rf conftest*
4787   eval "ac_cv_func_$ac_func=no"
4788 fi
4789 rm -f conftest*
4790 fi
4791
4792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4793   echo "$ac_t""yes" 1>&6
4794     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4795   cat >> confdefs.h <<EOF
4796 #define $ac_tr_func 1
4797 EOF
4798  
4799 else
4800   echo "$ac_t""no" 1>&6
4801 \
4802     ac_wfuncs=no
4803 fi
4804 done
4805
4806   
4807         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4808     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4809     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4810     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4811     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4812     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4813 do
4814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4815 echo "configure:4816: checking for $ac_func" >&5
4816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4817   echo $ac_n "(cached) $ac_c" 1>&6
4818 else
4819   cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4822 /* System header to define __stub macros and hopefully few prototypes,
4823     which can conflict with char $ac_func(); below.  */
4824 #include <assert.h>
4825 /* Override any gcc2 internal prototype to avoid an error.  */
4826 /* We use char because int might match the return type of a gcc2
4827     builtin and then its argument prototype would still apply.  */
4828 char $ac_func();
4829
4830 int main() {
4831
4832 /* The GNU C library defines this for functions which it implements
4833     to always fail with ENOSYS.  Some functions are actually named
4834     something starting with __ and the normal name is an alias.  */
4835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4836 choke me
4837 #else
4838 $ac_func();
4839 #endif
4840
4841 ; return 0; }
4842 EOF
4843 if { (eval echo configure:4844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4844   rm -rf conftest*
4845   eval "ac_cv_func_$ac_func=yes"
4846 else
4847   echo "configure: failed program was:" >&5
4848   cat conftest.$ac_ext >&5
4849   rm -rf conftest*
4850   eval "ac_cv_func_$ac_func=no"
4851 fi
4852 rm -f conftest*
4853 fi
4854
4855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4856   echo "$ac_t""yes" 1>&6
4857     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4858   cat >> confdefs.h <<EOF
4859 #define $ac_tr_func 1
4860 EOF
4861  
4862 else
4863   echo "$ac_t""no" 1>&6
4864 \
4865     ac_wfuncs=no
4866 fi
4867 done
4868
4869
4870     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4871 echo "configure:4872: checking for ISO C99 wchar_t support" >&5
4872     if test x"$has_weof" = xyes &&
4873        test x"$has_wchar_minmax" = xyes &&
4874        test x"$ac_wfuncs" = xyes; then
4875       ac_isoC99_wchar_t=yes
4876     else
4877       ac_isoC99_wchar_t=no
4878     fi
4879     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4880   
4881             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4882 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4883 echo "configure:4884: checking for iconv.h" >&5
4884 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4885   echo $ac_n "(cached) $ac_c" 1>&6
4886 else
4887   cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4890 #include <iconv.h>
4891 EOF
4892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4893 { (eval echo configure:4894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4895 if test -z "$ac_err"; then
4896   rm -rf conftest*
4897   eval "ac_cv_header_$ac_safe=yes"
4898 else
4899   echo "$ac_err" >&5
4900   echo "configure: failed program was:" >&5
4901   cat conftest.$ac_ext >&5
4902   rm -rf conftest*
4903   eval "ac_cv_header_$ac_safe=no"
4904 fi
4905 rm -f conftest*
4906 fi
4907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4908   echo "$ac_t""yes" 1>&6
4909   ac_has_iconv_h=yes
4910 else
4911   echo "$ac_t""no" 1>&6
4912 ac_has_iconv_h=no
4913 fi
4914
4915     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4916 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4917 echo "configure:4918: checking for langinfo.h" >&5
4918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4919   echo $ac_n "(cached) $ac_c" 1>&6
4920 else
4921   cat > conftest.$ac_ext <<EOF
4922 #line 4923 "configure"
4923 #include "confdefs.h"
4924 #include <langinfo.h>
4925 EOF
4926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4927 { (eval echo configure:4928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4929 if test -z "$ac_err"; then
4930   rm -rf conftest*
4931   eval "ac_cv_header_$ac_safe=yes"
4932 else
4933   echo "$ac_err" >&5
4934   echo "configure: failed program was:" >&5
4935   cat conftest.$ac_ext >&5
4936   rm -rf conftest*
4937   eval "ac_cv_header_$ac_safe=no"
4938 fi
4939 rm -f conftest*
4940 fi
4941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4942   echo "$ac_t""yes" 1>&6
4943   ac_has_langinfo_h=yes
4944 else
4945   echo "$ac_t""no" 1>&6
4946 ac_has_langinfo_h=no
4947 fi
4948
4949
4950         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4951 echo "configure:4952: checking for iconv in -liconv" >&5
4952 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4954   echo $ac_n "(cached) $ac_c" 1>&6
4955 else
4956   ac_save_LIBS="$LIBS"
4957 LIBS="-liconv  $LIBS"
4958 cat > conftest.$ac_ext <<EOF
4959 #line 4960 "configure"
4960 #include "confdefs.h"
4961 /* Override any gcc2 internal prototype to avoid an error.  */
4962 /* We use char because int might match the return type of a gcc2
4963     builtin and then its argument prototype would still apply.  */
4964 char iconv();
4965
4966 int main() {
4967 iconv()
4968 ; return 0; }
4969 EOF
4970 if { (eval echo configure:4971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4971   rm -rf conftest*
4972   eval "ac_cv_lib_$ac_lib_var=yes"
4973 else
4974   echo "configure: failed program was:" >&5
4975   cat conftest.$ac_ext >&5
4976   rm -rf conftest*
4977   eval "ac_cv_lib_$ac_lib_var=no"
4978 fi
4979 rm -f conftest*
4980 LIBS="$ac_save_LIBS"
4981
4982 fi
4983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4984   echo "$ac_t""yes" 1>&6
4985   libiconv="-liconv"
4986 else
4987   echo "$ac_t""no" 1>&6
4988 fi
4989
4990     ac_save_LIBS="$LIBS"
4991     LIBS="$LIBS $libiconv"
4992
4993     for ac_func in iconv_open iconv_close iconv nl_langinfo
4994 do
4995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4996 echo "configure:4997: checking for $ac_func" >&5
4997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4998   echo $ac_n "(cached) $ac_c" 1>&6
4999 else
5000   cat > conftest.$ac_ext <<EOF
5001 #line 5002 "configure"
5002 #include "confdefs.h"
5003 /* System header to define __stub macros and hopefully few prototypes,
5004     which can conflict with char $ac_func(); below.  */
5005 #include <assert.h>
5006 /* Override any gcc2 internal prototype to avoid an error.  */
5007 /* We use char because int might match the return type of a gcc2
5008     builtin and then its argument prototype would still apply.  */
5009 char $ac_func();
5010
5011 int main() {
5012
5013 /* The GNU C library defines this for functions which it implements
5014     to always fail with ENOSYS.  Some functions are actually named
5015     something starting with __ and the normal name is an alias.  */
5016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5017 choke me
5018 #else
5019 $ac_func();
5020 #endif
5021
5022 ; return 0; }
5023 EOF
5024 if { (eval echo configure:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5025   rm -rf conftest*
5026   eval "ac_cv_func_$ac_func=yes"
5027 else
5028   echo "configure: failed program was:" >&5
5029   cat conftest.$ac_ext >&5
5030   rm -rf conftest*
5031   eval "ac_cv_func_$ac_func=no"
5032 fi
5033 rm -f conftest*
5034 fi
5035
5036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5037   echo "$ac_t""yes" 1>&6
5038     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5039   cat >> confdefs.h <<EOF
5040 #define $ac_tr_func 1
5041 EOF
5042  \
5043     ac_XPG2funcs=yes
5044 else
5045   echo "$ac_t""no" 1>&6
5046 ac_XPG2funcs=no
5047 fi
5048 done
5049
5050   
5051     LIBS="$ac_save_LIBS"
5052
5053     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5054 echo "configure:5055: checking for XPG2 wchar_t support" >&5
5055     if test x"$ac_has_iconv_h" = xyes &&
5056        test x"$ac_has_langinfo_h" = xyes &&
5057        test x"$ac_XPG2funcs" = xyes; then
5058       ac_XPG2_wchar_t=yes
5059     else
5060       ac_XPG2_wchar_t=no
5061     fi
5062     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5063   
5064             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5065 echo "configure:5066: checking for enabled wchar_t specializations" >&5
5066     if test x"$ac_isoC99_wchar_t" = xyes &&
5067        test x"$ac_XPG2_wchar_t" = xyes; then
5068       cat >> confdefs.h <<\EOF
5069 #define _GLIBCPP_USE_WCHAR_T 1
5070 EOF
5071
5072       echo "$ac_t"""yes"" 1>&6
5073     else
5074       echo "$ac_t"""no"" 1>&6
5075     fi
5076   else
5077         echo "configure: warning: wchar_t support disabled." 1>&2
5078   fi
5079
5080       cat >> confdefs.h <<\EOF
5081 #define HAVE_COPYSIGN 1
5082 EOF
5083
5084       cat >> confdefs.h <<\EOF
5085 #define HAVE_COPYSIGNF 1
5086 EOF
5087
5088       cat >> confdefs.h <<\EOF
5089 #define HAVE_FINITE 1
5090 EOF
5091
5092       cat >> confdefs.h <<\EOF
5093 #define HAVE_FINITEF 1
5094 EOF
5095
5096       cat >> confdefs.h <<\EOF
5097 #define HAVE_FREXPF 1
5098 EOF
5099
5100       cat >> confdefs.h <<\EOF
5101 #define HAVE_HYPOTF 1
5102 EOF
5103
5104       cat >> confdefs.h <<\EOF
5105 #define HAVE_ISINF 1
5106 EOF
5107
5108       cat >> confdefs.h <<\EOF
5109 #define HAVE_ISINFF 1
5110 EOF
5111
5112       cat >> confdefs.h <<\EOF
5113 #define HAVE_ISNAN 1
5114 EOF
5115
5116       cat >> confdefs.h <<\EOF
5117 #define HAVE_ISNANF 1
5118 EOF
5119
5120       cat >> confdefs.h <<\EOF
5121 #define HAVE_SINCOS 1
5122 EOF
5123
5124       cat >> confdefs.h <<\EOF
5125 #define HAVE_SINCOSF 1
5126 EOF
5127
5128       if test x"long_double_math_on_this_cpu" = x"yes"; then
5129         cat >> confdefs.h <<\EOF
5130 #define HAVE_FINITEL 1
5131 EOF
5132
5133         cat >> confdefs.h <<\EOF
5134 #define HAVE_HYPOTL 1
5135 EOF
5136
5137         cat >> confdefs.h <<\EOF
5138 #define HAVE_ISINFL 1
5139 EOF
5140
5141         cat >> confdefs.h <<\EOF
5142 #define HAVE_ISNANL 1
5143 EOF
5144
5145       fi
5146       ;;
5147     *-hpux*)
5148       # Check for available headers.
5149       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5150         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5151         fp.h locale.h float.h inttypes.h
5152 do
5153 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5154 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5155 echo "configure:5156: checking for $ac_hdr" >&5
5156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5157   echo $ac_n "(cached) $ac_c" 1>&6
5158 else
5159   cat > conftest.$ac_ext <<EOF
5160 #line 5161 "configure"
5161 #include "confdefs.h"
5162 #include <$ac_hdr>
5163 EOF
5164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5165 { (eval echo configure:5166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5167 if test -z "$ac_err"; then
5168   rm -rf conftest*
5169   eval "ac_cv_header_$ac_safe=yes"
5170 else
5171   echo "$ac_err" >&5
5172   echo "configure: failed program was:" >&5
5173   cat conftest.$ac_ext >&5
5174   rm -rf conftest*
5175   eval "ac_cv_header_$ac_safe=no"
5176 fi
5177 rm -f conftest*
5178 fi
5179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5180   echo "$ac_t""yes" 1>&6
5181     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5182   cat >> confdefs.h <<EOF
5183 #define $ac_tr_hdr 1
5184 EOF
5185  
5186 else
5187   echo "$ac_t""no" 1>&6
5188 fi
5189 done
5190
5191       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5192       
5193       
5194   # If we're not using GNU ld, then there's no point in even trying these
5195   # tests.  Check for that first.  We should have already tested for gld
5196   # by now (in libtool), but require it now just to be safe...
5197   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5198   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5199   
5200
5201   # The name set by libtool depends on the version of libtool.  Shame on us
5202   # for depending on an impl detail, but c'est la vie.  Older versions used
5203   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5204   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5205   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5206   # set (hence we're using an older libtool), then set it.
5207   if test x${with_gnu_ld+set} != xset; then
5208     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5209       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5210       with_gnu_ld=no
5211     else
5212       with_gnu_ld=$ac_cv_prog_gnu_ld
5213     fi
5214   fi
5215
5216   # Start by getting the version number.  I think the libtool test already
5217   # does some of this, but throws away the result.
5218   
5219   ldver=`$LD --version 2>/dev/null | head -1 | \
5220          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5221   
5222   glibcpp_gnu_ld_version=`echo $ldver | \
5223          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5224
5225   # Set --gc-sections.
5226   if test "$with_gnu_ld" = "notbroken"; then
5227     # GNU ld it is!  Joy and bunny rabbits!
5228
5229     # All these tests are for C++; save the language and the compiler flags.
5230     # Need to do this so that g++ won't try to link in libstdc++
5231     ac_test_CFLAGS="${CFLAGS+set}"
5232     ac_save_CFLAGS="$CFLAGS"
5233     CFLAGS='-x c++  -Wl,--gc-sections'
5234
5235     # Check for -Wl,--gc-sections
5236     # XXX This test is broken at the moment, as symbols required for
5237     # linking are now in libsupc++ (not built yet.....). In addition, 
5238     # this test has cored on solaris in the past. In addition,
5239     # --gc-sections doesn't really work at the moment (keeps on discarding
5240     # used sections, first .eh_frame and now some of the glibc sections for
5241     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5242     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5243 echo "configure:5244: checking for ld that supports -Wl,--gc-sections" >&5
5244     if test "$cross_compiling" = yes; then
5245   ac_sectionLDflags=yes
5246 else
5247   cat > conftest.$ac_ext <<EOF
5248 #line 5249 "configure"
5249 #include "confdefs.h"
5250
5251      int main(void) 
5252      {
5253        try { throw 1; }
5254        catch (...) { };
5255        return 0;
5256      }
5257     
5258 EOF
5259 if { (eval echo configure:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5260 then
5261   ac_sectionLDflags=yes
5262 else
5263   echo "configure: failed program was:" >&5
5264   cat conftest.$ac_ext >&5
5265   rm -fr conftest*
5266   ac_sectionLDflags=no
5267 fi
5268 rm -fr conftest*
5269 fi
5270
5271     if test "$ac_test_CFLAGS" = set; then
5272       CFLAGS="$ac_save_CFLAGS"
5273     else
5274       # this is the suspicious part
5275       CFLAGS=''
5276     fi
5277     if test "$ac_sectionLDflags" = "yes"; then
5278       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5279     fi
5280     echo "$ac_t""$ac_sectionLDflags" 1>&6
5281   fi
5282
5283   # Set linker optimization flags.
5284   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
5285     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5286   fi
5287
5288   
5289   
5290
5291       
5292     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5293 echo "configure:5294: checking for main in -lm" >&5
5294 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5296   echo $ac_n "(cached) $ac_c" 1>&6
5297 else
5298   ac_save_LIBS="$LIBS"
5299 LIBS="-lm  $LIBS"
5300 cat > conftest.$ac_ext <<EOF
5301 #line 5302 "configure"
5302 #include "confdefs.h"
5303
5304 int main() {
5305 main()
5306 ; return 0; }
5307 EOF
5308 if { (eval echo configure:5309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5309   rm -rf conftest*
5310   eval "ac_cv_lib_$ac_lib_var=yes"
5311 else
5312   echo "configure: failed program was:" >&5
5313   cat conftest.$ac_ext >&5
5314   rm -rf conftest*
5315   eval "ac_cv_lib_$ac_lib_var=no"
5316 fi
5317 rm -f conftest*
5318 LIBS="$ac_save_LIBS"
5319
5320 fi
5321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5322   echo "$ac_t""yes" 1>&6
5323     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5324     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5325   cat >> confdefs.h <<EOF
5326 #define $ac_tr_lib 1
5327 EOF
5328
5329   LIBS="-lm $LIBS"
5330
5331 else
5332   echo "$ac_t""no" 1>&6
5333 fi
5334
5335   for ac_func in nan copysignf
5336 do
5337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5338 echo "configure:5339: checking for $ac_func" >&5
5339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5340   echo $ac_n "(cached) $ac_c" 1>&6
5341 else
5342   cat > conftest.$ac_ext <<EOF
5343 #line 5344 "configure"
5344 #include "confdefs.h"
5345 /* System header to define __stub macros and hopefully few prototypes,
5346     which can conflict with char $ac_func(); below.  */
5347 #include <assert.h>
5348 /* Override any gcc2 internal prototype to avoid an error.  */
5349 /* We use char because int might match the return type of a gcc2
5350     builtin and then its argument prototype would still apply.  */
5351 char $ac_func();
5352
5353 int main() {
5354
5355 /* The GNU C library defines this for functions which it implements
5356     to always fail with ENOSYS.  Some functions are actually named
5357     something starting with __ and the normal name is an alias.  */
5358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5359 choke me
5360 #else
5361 $ac_func();
5362 #endif
5363
5364 ; return 0; }
5365 EOF
5366 if { (eval echo configure:5367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5367   rm -rf conftest*
5368   eval "ac_cv_func_$ac_func=yes"
5369 else
5370   echo "configure: failed program was:" >&5
5371   cat conftest.$ac_ext >&5
5372   rm -rf conftest*
5373   eval "ac_cv_func_$ac_func=no"
5374 fi
5375 rm -f conftest*
5376 fi
5377
5378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5379   echo "$ac_t""yes" 1>&6
5380     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5381   cat >> confdefs.h <<EOF
5382 #define $ac_tr_func 1
5383 EOF
5384  
5385 else
5386   echo "$ac_t""no" 1>&6
5387 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5388 fi
5389 done
5390
5391
5392     for ac_func in __signbit
5393 do
5394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5395 echo "configure:5396: checking for $ac_func" >&5
5396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5397   echo $ac_n "(cached) $ac_c" 1>&6
5398 else
5399   cat > conftest.$ac_ext <<EOF
5400 #line 5401 "configure"
5401 #include "confdefs.h"
5402 /* System header to define __stub macros and hopefully few prototypes,
5403     which can conflict with char $ac_func(); below.  */
5404 #include <assert.h>
5405 /* Override any gcc2 internal prototype to avoid an error.  */
5406 /* We use char because int might match the return type of a gcc2
5407     builtin and then its argument prototype would still apply.  */
5408 char $ac_func();
5409
5410 int main() {
5411
5412 /* The GNU C library defines this for functions which it implements
5413     to always fail with ENOSYS.  Some functions are actually named
5414     something starting with __ and the normal name is an alias.  */
5415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5416 choke me
5417 #else
5418 $ac_func();
5419 #endif
5420
5421 ; return 0; }
5422 EOF
5423 if { (eval echo configure:5424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5424   rm -rf conftest*
5425   eval "ac_cv_func_$ac_func=yes"
5426 else
5427   echo "configure: failed program was:" >&5
5428   cat conftest.$ac_ext >&5
5429   rm -rf conftest*
5430   eval "ac_cv_func_$ac_func=no"
5431 fi
5432 rm -f conftest*
5433 fi
5434
5435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5436   echo "$ac_t""yes" 1>&6
5437     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5438   cat >> confdefs.h <<EOF
5439 #define $ac_tr_func 1
5440 EOF
5441  
5442 else
5443   echo "$ac_t""no" 1>&6
5444 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5445 fi
5446 done
5447
5448   for ac_func in __signbitf
5449 do
5450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5451 echo "configure:5452: checking for $ac_func" >&5
5452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5453   echo $ac_n "(cached) $ac_c" 1>&6
5454 else
5455   cat > conftest.$ac_ext <<EOF
5456 #line 5457 "configure"
5457 #include "confdefs.h"
5458 /* System header to define __stub macros and hopefully few prototypes,
5459     which can conflict with char $ac_func(); below.  */
5460 #include <assert.h>
5461 /* Override any gcc2 internal prototype to avoid an error.  */
5462 /* We use char because int might match the return type of a gcc2
5463     builtin and then its argument prototype would still apply.  */
5464 char $ac_func();
5465
5466 int main() {
5467
5468 /* The GNU C library defines this for functions which it implements
5469     to always fail with ENOSYS.  Some functions are actually named
5470     something starting with __ and the normal name is an alias.  */
5471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5472 choke me
5473 #else
5474 $ac_func();
5475 #endif
5476
5477 ; return 0; }
5478 EOF
5479 if { (eval echo configure:5480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5480   rm -rf conftest*
5481   eval "ac_cv_func_$ac_func=yes"
5482 else
5483   echo "configure: failed program was:" >&5
5484   cat conftest.$ac_ext >&5
5485   rm -rf conftest*
5486   eval "ac_cv_func_$ac_func=no"
5487 fi
5488 rm -f conftest*
5489 fi
5490
5491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5492   echo "$ac_t""yes" 1>&6
5493     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5494   cat >> confdefs.h <<EOF
5495 #define $ac_tr_func 1
5496 EOF
5497  
5498 else
5499   echo "$ac_t""no" 1>&6
5500 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5501 fi
5502 done
5503
5504
5505           if test x$ac_cv_func_copysignl = x"yes"; then
5506     for ac_func in __signbitl
5507 do
5508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5509 echo "configure:5510: checking for $ac_func" >&5
5510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5511   echo $ac_n "(cached) $ac_c" 1>&6
5512 else
5513   cat > conftest.$ac_ext <<EOF
5514 #line 5515 "configure"
5515 #include "confdefs.h"
5516 /* System header to define __stub macros and hopefully few prototypes,
5517     which can conflict with char $ac_func(); below.  */
5518 #include <assert.h>
5519 /* Override any gcc2 internal prototype to avoid an error.  */
5520 /* We use char because int might match the return type of a gcc2
5521     builtin and then its argument prototype would still apply.  */
5522 char $ac_func();
5523
5524 int main() {
5525
5526 /* The GNU C library defines this for functions which it implements
5527     to always fail with ENOSYS.  Some functions are actually named
5528     something starting with __ and the normal name is an alias.  */
5529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5530 choke me
5531 #else
5532 $ac_func();
5533 #endif
5534
5535 ; return 0; }
5536 EOF
5537 if { (eval echo configure:5538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5538   rm -rf conftest*
5539   eval "ac_cv_func_$ac_func=yes"
5540 else
5541   echo "configure: failed program was:" >&5
5542   cat conftest.$ac_ext >&5
5543   rm -rf conftest*
5544   eval "ac_cv_func_$ac_func=no"
5545 fi
5546 rm -f conftest*
5547 fi
5548
5549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5550   echo "$ac_t""yes" 1>&6
5551     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5552   cat >> confdefs.h <<EOF
5553 #define $ac_tr_func 1
5554 EOF
5555  
5556 else
5557   echo "$ac_t""no" 1>&6
5558 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5559 fi
5560 done
5561
5562   fi
5563
5564   
5565
5566       
5567
5568       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5569 echo "configure:5570: checking for mbstate_t" >&5
5570   cat > conftest.$ac_ext <<EOF
5571 #line 5572 "configure"
5572 #include "confdefs.h"
5573 #include <wchar.h>
5574 int main() {
5575 mbstate_t teststate;
5576 ; return 0; }
5577 EOF
5578 if { (eval echo configure:5579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5579   rm -rf conftest*
5580   have_mbstate_t=yes
5581 else
5582   echo "configure: failed program was:" >&5
5583   cat conftest.$ac_ext >&5
5584   rm -rf conftest*
5585   have_mbstate_t=no
5586 fi
5587 rm -f conftest*
5588   echo "$ac_t""$have_mbstate_t" 1>&6
5589   if test x"$have_mbstate_t" = xyes; then
5590     cat >> confdefs.h <<\EOF
5591 #define HAVE_MBSTATE_T 1
5592 EOF
5593
5594   fi
5595
5596     for ac_hdr in wchar.h
5597 do
5598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5600 echo "configure:5601: checking for $ac_hdr" >&5
5601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5602   echo $ac_n "(cached) $ac_c" 1>&6
5603 else
5604   cat > conftest.$ac_ext <<EOF
5605 #line 5606 "configure"
5606 #include "confdefs.h"
5607 #include <$ac_hdr>
5608 EOF
5609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5610 { (eval echo configure:5611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5612 if test -z "$ac_err"; then
5613   rm -rf conftest*
5614   eval "ac_cv_header_$ac_safe=yes"
5615 else
5616   echo "$ac_err" >&5
5617   echo "configure: failed program was:" >&5
5618   cat conftest.$ac_ext >&5
5619   rm -rf conftest*
5620   eval "ac_cv_header_$ac_safe=no"
5621 fi
5622 rm -f conftest*
5623 fi
5624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5625   echo "$ac_t""yes" 1>&6
5626     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5627   cat >> confdefs.h <<EOF
5628 #define $ac_tr_hdr 1
5629 EOF
5630  ac_has_wchar_h=yes
5631 else
5632   echo "$ac_t""no" 1>&6
5633 ac_has_wchar_h=no
5634 fi
5635 done
5636
5637   for ac_hdr in wctype.h
5638 do
5639 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5640 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5641 echo "configure:5642: checking for $ac_hdr" >&5
5642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5643   echo $ac_n "(cached) $ac_c" 1>&6
5644 else
5645   cat > conftest.$ac_ext <<EOF
5646 #line 5647 "configure"
5647 #include "confdefs.h"
5648 #include <$ac_hdr>
5649 EOF
5650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5651 { (eval echo configure:5652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5653 if test -z "$ac_err"; then
5654   rm -rf conftest*
5655   eval "ac_cv_header_$ac_safe=yes"
5656 else
5657   echo "$ac_err" >&5
5658   echo "configure: failed program was:" >&5
5659   cat conftest.$ac_ext >&5
5660   rm -rf conftest*
5661   eval "ac_cv_header_$ac_safe=no"
5662 fi
5663 rm -f conftest*
5664 fi
5665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5666   echo "$ac_t""yes" 1>&6
5667     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5668   cat >> confdefs.h <<EOF
5669 #define $ac_tr_hdr 1
5670 EOF
5671  ac_has_wctype_h=yes
5672 else
5673   echo "$ac_t""no" 1>&6
5674 ac_has_wctype_h=no
5675 fi
5676 done
5677
5678   
5679     if test x"$ac_has_wchar_h" = xyes &&
5680      test x"$ac_has_wctype_h" = xyes &&
5681      test x"$enable_c_mbchar" != xno; then
5682       
5683             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5684 echo "configure:5685: checking for WCHAR_MIN and WCHAR_MAX" >&5
5685     cat > conftest.$ac_ext <<EOF
5686 #line 5687 "configure"
5687 #include "confdefs.h"
5688 #include <wchar.h>
5689 int main() {
5690 int i = WCHAR_MIN; int j = WCHAR_MAX;
5691 ; return 0; }
5692 EOF
5693 if { (eval echo configure:5694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5694   rm -rf conftest*
5695   has_wchar_minmax=yes
5696 else
5697   echo "configure: failed program was:" >&5
5698   cat conftest.$ac_ext >&5
5699   rm -rf conftest*
5700   has_wchar_minmax=no
5701 fi
5702 rm -f conftest*
5703     echo "$ac_t""$has_wchar_minmax" 1>&6
5704     
5705             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5706 echo "configure:5707: checking for WEOF" >&5
5707     cat > conftest.$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5710
5711       #include <wchar.h>
5712       #include <stddef.h>
5713 int main() {
5714 wint_t i = WEOF;
5715 ; return 0; }
5716 EOF
5717 if { (eval echo configure:5718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5718   rm -rf conftest*
5719   has_weof=yes
5720 else
5721   echo "configure: failed program was:" >&5
5722   cat conftest.$ac_ext >&5
5723   rm -rf conftest*
5724   has_weof=no
5725 fi
5726 rm -f conftest*
5727     echo "$ac_t""$has_weof" 1>&6
5728   
5729         ac_wfuncs=yes
5730     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5731 do
5732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5733 echo "configure:5734: checking for $ac_func" >&5
5734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5735   echo $ac_n "(cached) $ac_c" 1>&6
5736 else
5737   cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5740 /* System header to define __stub macros and hopefully few prototypes,
5741     which can conflict with char $ac_func(); below.  */
5742 #include <assert.h>
5743 /* Override any gcc2 internal prototype to avoid an error.  */
5744 /* We use char because int might match the return type of a gcc2
5745     builtin and then its argument prototype would still apply.  */
5746 char $ac_func();
5747
5748 int main() {
5749
5750 /* The GNU C library defines this for functions which it implements
5751     to always fail with ENOSYS.  Some functions are actually named
5752     something starting with __ and the normal name is an alias.  */
5753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5754 choke me
5755 #else
5756 $ac_func();
5757 #endif
5758
5759 ; return 0; }
5760 EOF
5761 if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5762   rm -rf conftest*
5763   eval "ac_cv_func_$ac_func=yes"
5764 else
5765   echo "configure: failed program was:" >&5
5766   cat conftest.$ac_ext >&5
5767   rm -rf conftest*
5768   eval "ac_cv_func_$ac_func=no"
5769 fi
5770 rm -f conftest*
5771 fi
5772
5773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5774   echo "$ac_t""yes" 1>&6
5775     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5776   cat >> confdefs.h <<EOF
5777 #define $ac_tr_func 1
5778 EOF
5779  
5780 else
5781   echo "$ac_t""no" 1>&6
5782 \
5783     ac_wfuncs=no
5784 fi
5785 done
5786
5787   
5788         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5789     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5790     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5791     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5792     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5793     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5794 do
5795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5796 echo "configure:5797: checking for $ac_func" >&5
5797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5798   echo $ac_n "(cached) $ac_c" 1>&6
5799 else
5800   cat > conftest.$ac_ext <<EOF
5801 #line 5802 "configure"
5802 #include "confdefs.h"
5803 /* System header to define __stub macros and hopefully few prototypes,
5804     which can conflict with char $ac_func(); below.  */
5805 #include <assert.h>
5806 /* Override any gcc2 internal prototype to avoid an error.  */
5807 /* We use char because int might match the return type of a gcc2
5808     builtin and then its argument prototype would still apply.  */
5809 char $ac_func();
5810
5811 int main() {
5812
5813 /* The GNU C library defines this for functions which it implements
5814     to always fail with ENOSYS.  Some functions are actually named
5815     something starting with __ and the normal name is an alias.  */
5816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5817 choke me
5818 #else
5819 $ac_func();
5820 #endif
5821
5822 ; return 0; }
5823 EOF
5824 if { (eval echo configure:5825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5825   rm -rf conftest*
5826   eval "ac_cv_func_$ac_func=yes"
5827 else
5828   echo "configure: failed program was:" >&5
5829   cat conftest.$ac_ext >&5
5830   rm -rf conftest*
5831   eval "ac_cv_func_$ac_func=no"
5832 fi
5833 rm -f conftest*
5834 fi
5835
5836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5837   echo "$ac_t""yes" 1>&6
5838     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5839   cat >> confdefs.h <<EOF
5840 #define $ac_tr_func 1
5841 EOF
5842  
5843 else
5844   echo "$ac_t""no" 1>&6
5845 \
5846     ac_wfuncs=no
5847 fi
5848 done
5849
5850
5851     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5852 echo "configure:5853: checking for ISO C99 wchar_t support" >&5
5853     if test x"$has_weof" = xyes &&
5854        test x"$has_wchar_minmax" = xyes &&
5855        test x"$ac_wfuncs" = xyes; then
5856       ac_isoC99_wchar_t=yes
5857     else
5858       ac_isoC99_wchar_t=no
5859     fi
5860     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5861   
5862             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5863 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5864 echo "configure:5865: checking for iconv.h" >&5
5865 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5866   echo $ac_n "(cached) $ac_c" 1>&6
5867 else
5868   cat > conftest.$ac_ext <<EOF
5869 #line 5870 "configure"
5870 #include "confdefs.h"
5871 #include <iconv.h>
5872 EOF
5873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5874 { (eval echo configure:5875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5876 if test -z "$ac_err"; then
5877   rm -rf conftest*
5878   eval "ac_cv_header_$ac_safe=yes"
5879 else
5880   echo "$ac_err" >&5
5881   echo "configure: failed program was:" >&5
5882   cat conftest.$ac_ext >&5
5883   rm -rf conftest*
5884   eval "ac_cv_header_$ac_safe=no"
5885 fi
5886 rm -f conftest*
5887 fi
5888 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5889   echo "$ac_t""yes" 1>&6
5890   ac_has_iconv_h=yes
5891 else
5892   echo "$ac_t""no" 1>&6
5893 ac_has_iconv_h=no
5894 fi
5895
5896     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5897 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5898 echo "configure:5899: checking for langinfo.h" >&5
5899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5900   echo $ac_n "(cached) $ac_c" 1>&6
5901 else
5902   cat > conftest.$ac_ext <<EOF
5903 #line 5904 "configure"
5904 #include "confdefs.h"
5905 #include <langinfo.h>
5906 EOF
5907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5908 { (eval echo configure:5909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5910 if test -z "$ac_err"; then
5911   rm -rf conftest*
5912   eval "ac_cv_header_$ac_safe=yes"
5913 else
5914   echo "$ac_err" >&5
5915   echo "configure: failed program was:" >&5
5916   cat conftest.$ac_ext >&5
5917   rm -rf conftest*
5918   eval "ac_cv_header_$ac_safe=no"
5919 fi
5920 rm -f conftest*
5921 fi
5922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5923   echo "$ac_t""yes" 1>&6
5924   ac_has_langinfo_h=yes
5925 else
5926   echo "$ac_t""no" 1>&6
5927 ac_has_langinfo_h=no
5928 fi
5929
5930
5931         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5932 echo "configure:5933: checking for iconv in -liconv" >&5
5933 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5934 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5935   echo $ac_n "(cached) $ac_c" 1>&6
5936 else
5937   ac_save_LIBS="$LIBS"
5938 LIBS="-liconv  $LIBS"
5939 cat > conftest.$ac_ext <<EOF
5940 #line 5941 "configure"
5941 #include "confdefs.h"
5942 /* Override any gcc2 internal prototype to avoid an error.  */
5943 /* We use char because int might match the return type of a gcc2
5944     builtin and then its argument prototype would still apply.  */
5945 char iconv();
5946
5947 int main() {
5948 iconv()
5949 ; return 0; }
5950 EOF
5951 if { (eval echo configure:5952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5952   rm -rf conftest*
5953   eval "ac_cv_lib_$ac_lib_var=yes"
5954 else
5955   echo "configure: failed program was:" >&5
5956   cat conftest.$ac_ext >&5
5957   rm -rf conftest*
5958   eval "ac_cv_lib_$ac_lib_var=no"
5959 fi
5960 rm -f conftest*
5961 LIBS="$ac_save_LIBS"
5962
5963 fi
5964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5965   echo "$ac_t""yes" 1>&6
5966   libiconv="-liconv"
5967 else
5968   echo "$ac_t""no" 1>&6
5969 fi
5970
5971     ac_save_LIBS="$LIBS"
5972     LIBS="$LIBS $libiconv"
5973
5974     for ac_func in iconv_open iconv_close iconv nl_langinfo
5975 do
5976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5977 echo "configure:5978: checking for $ac_func" >&5
5978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5979   echo $ac_n "(cached) $ac_c" 1>&6
5980 else
5981   cat > conftest.$ac_ext <<EOF
5982 #line 5983 "configure"
5983 #include "confdefs.h"
5984 /* System header to define __stub macros and hopefully few prototypes,
5985     which can conflict with char $ac_func(); below.  */
5986 #include <assert.h>
5987 /* Override any gcc2 internal prototype to avoid an error.  */
5988 /* We use char because int might match the return type of a gcc2
5989     builtin and then its argument prototype would still apply.  */
5990 char $ac_func();
5991
5992 int main() {
5993
5994 /* The GNU C library defines this for functions which it implements
5995     to always fail with ENOSYS.  Some functions are actually named
5996     something starting with __ and the normal name is an alias.  */
5997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5998 choke me
5999 #else
6000 $ac_func();
6001 #endif
6002
6003 ; return 0; }
6004 EOF
6005 if { (eval echo configure:6006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6006   rm -rf conftest*
6007   eval "ac_cv_func_$ac_func=yes"
6008 else
6009   echo "configure: failed program was:" >&5
6010   cat conftest.$ac_ext >&5
6011   rm -rf conftest*
6012   eval "ac_cv_func_$ac_func=no"
6013 fi
6014 rm -f conftest*
6015 fi
6016
6017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6018   echo "$ac_t""yes" 1>&6
6019     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6020   cat >> confdefs.h <<EOF
6021 #define $ac_tr_func 1
6022 EOF
6023  \
6024     ac_XPG2funcs=yes
6025 else
6026   echo "$ac_t""no" 1>&6
6027 ac_XPG2funcs=no
6028 fi
6029 done
6030
6031   
6032     LIBS="$ac_save_LIBS"
6033
6034     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6035 echo "configure:6036: checking for XPG2 wchar_t support" >&5
6036     if test x"$ac_has_iconv_h" = xyes &&
6037        test x"$ac_has_langinfo_h" = xyes &&
6038        test x"$ac_XPG2funcs" = xyes; then
6039       ac_XPG2_wchar_t=yes
6040     else
6041       ac_XPG2_wchar_t=no
6042     fi
6043     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6044   
6045             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6046 echo "configure:6047: checking for enabled wchar_t specializations" >&5
6047     if test x"$ac_isoC99_wchar_t" = xyes &&
6048        test x"$ac_XPG2_wchar_t" = xyes; then
6049       cat >> confdefs.h <<\EOF
6050 #define _GLIBCPP_USE_WCHAR_T 1
6051 EOF
6052
6053       echo "$ac_t"""yes"" 1>&6
6054     else
6055       echo "$ac_t"""no"" 1>&6
6056     fi
6057   else
6058         echo "configure: warning: wchar_t support disabled." 1>&2
6059   fi
6060
6061       os_include_dir="os/hpux"
6062       cat >> confdefs.h <<\EOF
6063 #define HAVE_COPYSIGN 1
6064 EOF
6065
6066       cat >> confdefs.h <<\EOF
6067 #define HAVE_COPYSIGNF 1
6068 EOF
6069
6070       cat >> confdefs.h <<\EOF
6071 #define HAVE_FREXPF 1
6072 EOF
6073
6074       cat >> confdefs.h <<\EOF
6075 #define HAVE_HYPOT 1
6076 EOF
6077
6078       case "$target" in
6079         *-hpux10*)
6080           cat >> confdefs.h <<\EOF
6081 #define HAVE_FINITE 1
6082 EOF
6083
6084           cat >> confdefs.h <<\EOF
6085 #define HAVE_FINITEF 1
6086 EOF
6087
6088           cat >> confdefs.h <<\EOF
6089 #define HAVE_ISINF 1
6090 EOF
6091
6092           cat >> confdefs.h <<\EOF
6093 #define HAVE_ISINFF 1
6094 EOF
6095
6096           cat >> confdefs.h <<\EOF
6097 #define HAVE_ISNAN 1
6098 EOF
6099
6100           cat >> confdefs.h <<\EOF
6101 #define HAVE_ISNANF 1
6102 EOF
6103
6104           ;;
6105       esac
6106
6107       ;;
6108     *-netbsd*)
6109       # Check for available headers.
6110       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6111         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6112         fp.h locale.h float.h inttypes.h
6113 do
6114 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6115 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6116 echo "configure:6117: checking for $ac_hdr" >&5
6117 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6118   echo $ac_n "(cached) $ac_c" 1>&6
6119 else
6120   cat > conftest.$ac_ext <<EOF
6121 #line 6122 "configure"
6122 #include "confdefs.h"
6123 #include <$ac_hdr>
6124 EOF
6125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6126 { (eval echo configure:6127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6128 if test -z "$ac_err"; then
6129   rm -rf conftest*
6130   eval "ac_cv_header_$ac_safe=yes"
6131 else
6132   echo "$ac_err" >&5
6133   echo "configure: failed program was:" >&5
6134   cat conftest.$ac_ext >&5
6135   rm -rf conftest*
6136   eval "ac_cv_header_$ac_safe=no"
6137 fi
6138 rm -f conftest*
6139 fi
6140 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6141   echo "$ac_t""yes" 1>&6
6142     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6143   cat >> confdefs.h <<EOF
6144 #define $ac_tr_hdr 1
6145 EOF
6146  
6147 else
6148   echo "$ac_t""no" 1>&6
6149 fi
6150 done
6151
6152       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6153        
6154       
6155   # If we're not using GNU ld, then there's no point in even trying these
6156   # tests.  Check for that first.  We should have already tested for gld
6157   # by now (in libtool), but require it now just to be safe...
6158   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6159   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6160   
6161
6162   # The name set by libtool depends on the version of libtool.  Shame on us
6163   # for depending on an impl detail, but c'est la vie.  Older versions used
6164   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6165   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6166   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6167   # set (hence we're using an older libtool), then set it.
6168   if test x${with_gnu_ld+set} != xset; then
6169     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6170       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6171       with_gnu_ld=no
6172     else
6173       with_gnu_ld=$ac_cv_prog_gnu_ld
6174     fi
6175   fi
6176
6177   # Start by getting the version number.  I think the libtool test already
6178   # does some of this, but throws away the result.
6179   
6180   ldver=`$LD --version 2>/dev/null | head -1 | \
6181          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6182   
6183   glibcpp_gnu_ld_version=`echo $ldver | \
6184          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6185
6186   # Set --gc-sections.
6187   if test "$with_gnu_ld" = "notbroken"; then
6188     # GNU ld it is!  Joy and bunny rabbits!
6189
6190     # All these tests are for C++; save the language and the compiler flags.
6191     # Need to do this so that g++ won't try to link in libstdc++
6192     ac_test_CFLAGS="${CFLAGS+set}"
6193     ac_save_CFLAGS="$CFLAGS"
6194     CFLAGS='-x c++  -Wl,--gc-sections'
6195
6196     # Check for -Wl,--gc-sections
6197     # XXX This test is broken at the moment, as symbols required for
6198     # linking are now in libsupc++ (not built yet.....). In addition, 
6199     # this test has cored on solaris in the past. In addition,
6200     # --gc-sections doesn't really work at the moment (keeps on discarding
6201     # used sections, first .eh_frame and now some of the glibc sections for
6202     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6203     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6204 echo "configure:6205: checking for ld that supports -Wl,--gc-sections" >&5
6205     if test "$cross_compiling" = yes; then
6206   ac_sectionLDflags=yes
6207 else
6208   cat > conftest.$ac_ext <<EOF
6209 #line 6210 "configure"
6210 #include "confdefs.h"
6211
6212      int main(void) 
6213      {
6214        try { throw 1; }
6215        catch (...) { };
6216        return 0;
6217      }
6218     
6219 EOF
6220 if { (eval echo configure:6221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6221 then
6222   ac_sectionLDflags=yes
6223 else
6224   echo "configure: failed program was:" >&5
6225   cat conftest.$ac_ext >&5
6226   rm -fr conftest*
6227   ac_sectionLDflags=no
6228 fi
6229 rm -fr conftest*
6230 fi
6231
6232     if test "$ac_test_CFLAGS" = set; then
6233       CFLAGS="$ac_save_CFLAGS"
6234     else
6235       # this is the suspicious part
6236       CFLAGS=''
6237     fi
6238     if test "$ac_sectionLDflags" = "yes"; then
6239       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6240     fi
6241     echo "$ac_t""$ac_sectionLDflags" 1>&6
6242   fi
6243
6244   # Set linker optimization flags.
6245   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
6246     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6247   fi
6248
6249   
6250   
6251
6252       
6253     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6254 echo "configure:6255: checking for main in -lm" >&5
6255 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6257   echo $ac_n "(cached) $ac_c" 1>&6
6258 else
6259   ac_save_LIBS="$LIBS"
6260 LIBS="-lm  $LIBS"
6261 cat > conftest.$ac_ext <<EOF
6262 #line 6263 "configure"
6263 #include "confdefs.h"
6264
6265 int main() {
6266 main()
6267 ; return 0; }
6268 EOF
6269 if { (eval echo configure:6270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6270   rm -rf conftest*
6271   eval "ac_cv_lib_$ac_lib_var=yes"
6272 else
6273   echo "configure: failed program was:" >&5
6274   cat conftest.$ac_ext >&5
6275   rm -rf conftest*
6276   eval "ac_cv_lib_$ac_lib_var=no"
6277 fi
6278 rm -f conftest*
6279 LIBS="$ac_save_LIBS"
6280
6281 fi
6282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6283   echo "$ac_t""yes" 1>&6
6284     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6285     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6286   cat >> confdefs.h <<EOF
6287 #define $ac_tr_lib 1
6288 EOF
6289
6290   LIBS="-lm $LIBS"
6291
6292 else
6293   echo "$ac_t""no" 1>&6
6294 fi
6295
6296   for ac_func in nan copysignf
6297 do
6298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6299 echo "configure:6300: checking for $ac_func" >&5
6300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6301   echo $ac_n "(cached) $ac_c" 1>&6
6302 else
6303   cat > conftest.$ac_ext <<EOF
6304 #line 6305 "configure"
6305 #include "confdefs.h"
6306 /* System header to define __stub macros and hopefully few prototypes,
6307     which can conflict with char $ac_func(); below.  */
6308 #include <assert.h>
6309 /* Override any gcc2 internal prototype to avoid an error.  */
6310 /* We use char because int might match the return type of a gcc2
6311     builtin and then its argument prototype would still apply.  */
6312 char $ac_func();
6313
6314 int main() {
6315
6316 /* The GNU C library defines this for functions which it implements
6317     to always fail with ENOSYS.  Some functions are actually named
6318     something starting with __ and the normal name is an alias.  */
6319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6320 choke me
6321 #else
6322 $ac_func();
6323 #endif
6324
6325 ; return 0; }
6326 EOF
6327 if { (eval echo configure:6328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6328   rm -rf conftest*
6329   eval "ac_cv_func_$ac_func=yes"
6330 else
6331   echo "configure: failed program was:" >&5
6332   cat conftest.$ac_ext >&5
6333   rm -rf conftest*
6334   eval "ac_cv_func_$ac_func=no"
6335 fi
6336 rm -f conftest*
6337 fi
6338
6339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6340   echo "$ac_t""yes" 1>&6
6341     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6342   cat >> confdefs.h <<EOF
6343 #define $ac_tr_func 1
6344 EOF
6345  
6346 else
6347   echo "$ac_t""no" 1>&6
6348 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6349 fi
6350 done
6351
6352
6353     for ac_func in __signbit
6354 do
6355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6356 echo "configure:6357: checking for $ac_func" >&5
6357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6358   echo $ac_n "(cached) $ac_c" 1>&6
6359 else
6360   cat > conftest.$ac_ext <<EOF
6361 #line 6362 "configure"
6362 #include "confdefs.h"
6363 /* System header to define __stub macros and hopefully few prototypes,
6364     which can conflict with char $ac_func(); below.  */
6365 #include <assert.h>
6366 /* Override any gcc2 internal prototype to avoid an error.  */
6367 /* We use char because int might match the return type of a gcc2
6368     builtin and then its argument prototype would still apply.  */
6369 char $ac_func();
6370
6371 int main() {
6372
6373 /* The GNU C library defines this for functions which it implements
6374     to always fail with ENOSYS.  Some functions are actually named
6375     something starting with __ and the normal name is an alias.  */
6376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6377 choke me
6378 #else
6379 $ac_func();
6380 #endif
6381
6382 ; return 0; }
6383 EOF
6384 if { (eval echo configure:6385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6385   rm -rf conftest*
6386   eval "ac_cv_func_$ac_func=yes"
6387 else
6388   echo "configure: failed program was:" >&5
6389   cat conftest.$ac_ext >&5
6390   rm -rf conftest*
6391   eval "ac_cv_func_$ac_func=no"
6392 fi
6393 rm -f conftest*
6394 fi
6395
6396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6397   echo "$ac_t""yes" 1>&6
6398     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6399   cat >> confdefs.h <<EOF
6400 #define $ac_tr_func 1
6401 EOF
6402  
6403 else
6404   echo "$ac_t""no" 1>&6
6405 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6406 fi
6407 done
6408
6409   for ac_func in __signbitf
6410 do
6411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6412 echo "configure:6413: checking for $ac_func" >&5
6413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6414   echo $ac_n "(cached) $ac_c" 1>&6
6415 else
6416   cat > conftest.$ac_ext <<EOF
6417 #line 6418 "configure"
6418 #include "confdefs.h"
6419 /* System header to define __stub macros and hopefully few prototypes,
6420     which can conflict with char $ac_func(); below.  */
6421 #include <assert.h>
6422 /* Override any gcc2 internal prototype to avoid an error.  */
6423 /* We use char because int might match the return type of a gcc2
6424     builtin and then its argument prototype would still apply.  */
6425 char $ac_func();
6426
6427 int main() {
6428
6429 /* The GNU C library defines this for functions which it implements
6430     to always fail with ENOSYS.  Some functions are actually named
6431     something starting with __ and the normal name is an alias.  */
6432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6433 choke me
6434 #else
6435 $ac_func();
6436 #endif
6437
6438 ; return 0; }
6439 EOF
6440 if { (eval echo configure:6441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6441   rm -rf conftest*
6442   eval "ac_cv_func_$ac_func=yes"
6443 else
6444   echo "configure: failed program was:" >&5
6445   cat conftest.$ac_ext >&5
6446   rm -rf conftest*
6447   eval "ac_cv_func_$ac_func=no"
6448 fi
6449 rm -f conftest*
6450 fi
6451
6452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6453   echo "$ac_t""yes" 1>&6
6454     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6455   cat >> confdefs.h <<EOF
6456 #define $ac_tr_func 1
6457 EOF
6458  
6459 else
6460   echo "$ac_t""no" 1>&6
6461 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6462 fi
6463 done
6464
6465
6466           if test x$ac_cv_func_copysignl = x"yes"; then
6467     for ac_func in __signbitl
6468 do
6469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6470 echo "configure:6471: checking for $ac_func" >&5
6471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6472   echo $ac_n "(cached) $ac_c" 1>&6
6473 else
6474   cat > conftest.$ac_ext <<EOF
6475 #line 6476 "configure"
6476 #include "confdefs.h"
6477 /* System header to define __stub macros and hopefully few prototypes,
6478     which can conflict with char $ac_func(); below.  */
6479 #include <assert.h>
6480 /* Override any gcc2 internal prototype to avoid an error.  */
6481 /* We use char because int might match the return type of a gcc2
6482     builtin and then its argument prototype would still apply.  */
6483 char $ac_func();
6484
6485 int main() {
6486
6487 /* The GNU C library defines this for functions which it implements
6488     to always fail with ENOSYS.  Some functions are actually named
6489     something starting with __ and the normal name is an alias.  */
6490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6491 choke me
6492 #else
6493 $ac_func();
6494 #endif
6495
6496 ; return 0; }
6497 EOF
6498 if { (eval echo configure:6499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6499   rm -rf conftest*
6500   eval "ac_cv_func_$ac_func=yes"
6501 else
6502   echo "configure: failed program was:" >&5
6503   cat conftest.$ac_ext >&5
6504   rm -rf conftest*
6505   eval "ac_cv_func_$ac_func=no"
6506 fi
6507 rm -f conftest*
6508 fi
6509
6510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6511   echo "$ac_t""yes" 1>&6
6512     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6513   cat >> confdefs.h <<EOF
6514 #define $ac_tr_func 1
6515 EOF
6516  
6517 else
6518   echo "$ac_t""no" 1>&6
6519 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6520 fi
6521 done
6522
6523   fi
6524
6525   
6526
6527       
6528
6529       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6530 echo "configure:6531: checking for mbstate_t" >&5
6531   cat > conftest.$ac_ext <<EOF
6532 #line 6533 "configure"
6533 #include "confdefs.h"
6534 #include <wchar.h>
6535 int main() {
6536 mbstate_t teststate;
6537 ; return 0; }
6538 EOF
6539 if { (eval echo configure:6540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6540   rm -rf conftest*
6541   have_mbstate_t=yes
6542 else
6543   echo "configure: failed program was:" >&5
6544   cat conftest.$ac_ext >&5
6545   rm -rf conftest*
6546   have_mbstate_t=no
6547 fi
6548 rm -f conftest*
6549   echo "$ac_t""$have_mbstate_t" 1>&6
6550   if test x"$have_mbstate_t" = xyes; then
6551     cat >> confdefs.h <<\EOF
6552 #define HAVE_MBSTATE_T 1
6553 EOF
6554
6555   fi
6556
6557     for ac_hdr in wchar.h
6558 do
6559 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6561 echo "configure:6562: checking for $ac_hdr" >&5
6562 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6563   echo $ac_n "(cached) $ac_c" 1>&6
6564 else
6565   cat > conftest.$ac_ext <<EOF
6566 #line 6567 "configure"
6567 #include "confdefs.h"
6568 #include <$ac_hdr>
6569 EOF
6570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6571 { (eval echo configure:6572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6573 if test -z "$ac_err"; then
6574   rm -rf conftest*
6575   eval "ac_cv_header_$ac_safe=yes"
6576 else
6577   echo "$ac_err" >&5
6578   echo "configure: failed program was:" >&5
6579   cat conftest.$ac_ext >&5
6580   rm -rf conftest*
6581   eval "ac_cv_header_$ac_safe=no"
6582 fi
6583 rm -f conftest*
6584 fi
6585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6586   echo "$ac_t""yes" 1>&6
6587     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6588   cat >> confdefs.h <<EOF
6589 #define $ac_tr_hdr 1
6590 EOF
6591  ac_has_wchar_h=yes
6592 else
6593   echo "$ac_t""no" 1>&6
6594 ac_has_wchar_h=no
6595 fi
6596 done
6597
6598   for ac_hdr in wctype.h
6599 do
6600 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6601 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6602 echo "configure:6603: checking for $ac_hdr" >&5
6603 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6604   echo $ac_n "(cached) $ac_c" 1>&6
6605 else
6606   cat > conftest.$ac_ext <<EOF
6607 #line 6608 "configure"
6608 #include "confdefs.h"
6609 #include <$ac_hdr>
6610 EOF
6611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6612 { (eval echo configure:6613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6614 if test -z "$ac_err"; then
6615   rm -rf conftest*
6616   eval "ac_cv_header_$ac_safe=yes"
6617 else
6618   echo "$ac_err" >&5
6619   echo "configure: failed program was:" >&5
6620   cat conftest.$ac_ext >&5
6621   rm -rf conftest*
6622   eval "ac_cv_header_$ac_safe=no"
6623 fi
6624 rm -f conftest*
6625 fi
6626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6627   echo "$ac_t""yes" 1>&6
6628     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6629   cat >> confdefs.h <<EOF
6630 #define $ac_tr_hdr 1
6631 EOF
6632  ac_has_wctype_h=yes
6633 else
6634   echo "$ac_t""no" 1>&6
6635 ac_has_wctype_h=no
6636 fi
6637 done
6638
6639   
6640     if test x"$ac_has_wchar_h" = xyes &&
6641      test x"$ac_has_wctype_h" = xyes &&
6642      test x"$enable_c_mbchar" != xno; then
6643       
6644             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6645 echo "configure:6646: checking for WCHAR_MIN and WCHAR_MAX" >&5
6646     cat > conftest.$ac_ext <<EOF
6647 #line 6648 "configure"
6648 #include "confdefs.h"
6649 #include <wchar.h>
6650 int main() {
6651 int i = WCHAR_MIN; int j = WCHAR_MAX;
6652 ; return 0; }
6653 EOF
6654 if { (eval echo configure:6655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6655   rm -rf conftest*
6656   has_wchar_minmax=yes
6657 else
6658   echo "configure: failed program was:" >&5
6659   cat conftest.$ac_ext >&5
6660   rm -rf conftest*
6661   has_wchar_minmax=no
6662 fi
6663 rm -f conftest*
6664     echo "$ac_t""$has_wchar_minmax" 1>&6
6665     
6666             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6667 echo "configure:6668: checking for WEOF" >&5
6668     cat > conftest.$ac_ext <<EOF
6669 #line 6670 "configure"
6670 #include "confdefs.h"
6671
6672       #include <wchar.h>
6673       #include <stddef.h>
6674 int main() {
6675 wint_t i = WEOF;
6676 ; return 0; }
6677 EOF
6678 if { (eval echo configure:6679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6679   rm -rf conftest*
6680   has_weof=yes
6681 else
6682   echo "configure: failed program was:" >&5
6683   cat conftest.$ac_ext >&5
6684   rm -rf conftest*
6685   has_weof=no
6686 fi
6687 rm -f conftest*
6688     echo "$ac_t""$has_weof" 1>&6
6689   
6690         ac_wfuncs=yes
6691     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6692 do
6693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6694 echo "configure:6695: checking for $ac_func" >&5
6695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6696   echo $ac_n "(cached) $ac_c" 1>&6
6697 else
6698   cat > conftest.$ac_ext <<EOF
6699 #line 6700 "configure"
6700 #include "confdefs.h"
6701 /* System header to define __stub macros and hopefully few prototypes,
6702     which can conflict with char $ac_func(); below.  */
6703 #include <assert.h>
6704 /* Override any gcc2 internal prototype to avoid an error.  */
6705 /* We use char because int might match the return type of a gcc2
6706     builtin and then its argument prototype would still apply.  */
6707 char $ac_func();
6708
6709 int main() {
6710
6711 /* The GNU C library defines this for functions which it implements
6712     to always fail with ENOSYS.  Some functions are actually named
6713     something starting with __ and the normal name is an alias.  */
6714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6715 choke me
6716 #else
6717 $ac_func();
6718 #endif
6719
6720 ; return 0; }
6721 EOF
6722 if { (eval echo configure:6723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6723   rm -rf conftest*
6724   eval "ac_cv_func_$ac_func=yes"
6725 else
6726   echo "configure: failed program was:" >&5
6727   cat conftest.$ac_ext >&5
6728   rm -rf conftest*
6729   eval "ac_cv_func_$ac_func=no"
6730 fi
6731 rm -f conftest*
6732 fi
6733
6734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6735   echo "$ac_t""yes" 1>&6
6736     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6737   cat >> confdefs.h <<EOF
6738 #define $ac_tr_func 1
6739 EOF
6740  
6741 else
6742   echo "$ac_t""no" 1>&6
6743 \
6744     ac_wfuncs=no
6745 fi
6746 done
6747
6748   
6749         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6750     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6751     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6752     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6753     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6754     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6755 do
6756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6757 echo "configure:6758: checking for $ac_func" >&5
6758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6759   echo $ac_n "(cached) $ac_c" 1>&6
6760 else
6761   cat > conftest.$ac_ext <<EOF
6762 #line 6763 "configure"
6763 #include "confdefs.h"
6764 /* System header to define __stub macros and hopefully few prototypes,
6765     which can conflict with char $ac_func(); below.  */
6766 #include <assert.h>
6767 /* Override any gcc2 internal prototype to avoid an error.  */
6768 /* We use char because int might match the return type of a gcc2
6769     builtin and then its argument prototype would still apply.  */
6770 char $ac_func();
6771
6772 int main() {
6773
6774 /* The GNU C library defines this for functions which it implements
6775     to always fail with ENOSYS.  Some functions are actually named
6776     something starting with __ and the normal name is an alias.  */
6777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6778 choke me
6779 #else
6780 $ac_func();
6781 #endif
6782
6783 ; return 0; }
6784 EOF
6785 if { (eval echo configure:6786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6786   rm -rf conftest*
6787   eval "ac_cv_func_$ac_func=yes"
6788 else
6789   echo "configure: failed program was:" >&5
6790   cat conftest.$ac_ext >&5
6791   rm -rf conftest*
6792   eval "ac_cv_func_$ac_func=no"
6793 fi
6794 rm -f conftest*
6795 fi
6796
6797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6798   echo "$ac_t""yes" 1>&6
6799     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6800   cat >> confdefs.h <<EOF
6801 #define $ac_tr_func 1
6802 EOF
6803  
6804 else
6805   echo "$ac_t""no" 1>&6
6806 \
6807     ac_wfuncs=no
6808 fi
6809 done
6810
6811
6812     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6813 echo "configure:6814: checking for ISO C99 wchar_t support" >&5
6814     if test x"$has_weof" = xyes &&
6815        test x"$has_wchar_minmax" = xyes &&
6816        test x"$ac_wfuncs" = xyes; then
6817       ac_isoC99_wchar_t=yes
6818     else
6819       ac_isoC99_wchar_t=no
6820     fi
6821     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6822   
6823             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6824 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6825 echo "configure:6826: checking for iconv.h" >&5
6826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6827   echo $ac_n "(cached) $ac_c" 1>&6
6828 else
6829   cat > conftest.$ac_ext <<EOF
6830 #line 6831 "configure"
6831 #include "confdefs.h"
6832 #include <iconv.h>
6833 EOF
6834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6835 { (eval echo configure:6836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6837 if test -z "$ac_err"; then
6838   rm -rf conftest*
6839   eval "ac_cv_header_$ac_safe=yes"
6840 else
6841   echo "$ac_err" >&5
6842   echo "configure: failed program was:" >&5
6843   cat conftest.$ac_ext >&5
6844   rm -rf conftest*
6845   eval "ac_cv_header_$ac_safe=no"
6846 fi
6847 rm -f conftest*
6848 fi
6849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6850   echo "$ac_t""yes" 1>&6
6851   ac_has_iconv_h=yes
6852 else
6853   echo "$ac_t""no" 1>&6
6854 ac_has_iconv_h=no
6855 fi
6856
6857     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6858 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6859 echo "configure:6860: checking for langinfo.h" >&5
6860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6861   echo $ac_n "(cached) $ac_c" 1>&6
6862 else
6863   cat > conftest.$ac_ext <<EOF
6864 #line 6865 "configure"
6865 #include "confdefs.h"
6866 #include <langinfo.h>
6867 EOF
6868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6869 { (eval echo configure:6870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6871 if test -z "$ac_err"; then
6872   rm -rf conftest*
6873   eval "ac_cv_header_$ac_safe=yes"
6874 else
6875   echo "$ac_err" >&5
6876   echo "configure: failed program was:" >&5
6877   cat conftest.$ac_ext >&5
6878   rm -rf conftest*
6879   eval "ac_cv_header_$ac_safe=no"
6880 fi
6881 rm -f conftest*
6882 fi
6883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6884   echo "$ac_t""yes" 1>&6
6885   ac_has_langinfo_h=yes
6886 else
6887   echo "$ac_t""no" 1>&6
6888 ac_has_langinfo_h=no
6889 fi
6890
6891
6892         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6893 echo "configure:6894: checking for iconv in -liconv" >&5
6894 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6895 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6896   echo $ac_n "(cached) $ac_c" 1>&6
6897 else
6898   ac_save_LIBS="$LIBS"
6899 LIBS="-liconv  $LIBS"
6900 cat > conftest.$ac_ext <<EOF
6901 #line 6902 "configure"
6902 #include "confdefs.h"
6903 /* Override any gcc2 internal prototype to avoid an error.  */
6904 /* We use char because int might match the return type of a gcc2
6905     builtin and then its argument prototype would still apply.  */
6906 char iconv();
6907
6908 int main() {
6909 iconv()
6910 ; return 0; }
6911 EOF
6912 if { (eval echo configure:6913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6913   rm -rf conftest*
6914   eval "ac_cv_lib_$ac_lib_var=yes"
6915 else
6916   echo "configure: failed program was:" >&5
6917   cat conftest.$ac_ext >&5
6918   rm -rf conftest*
6919   eval "ac_cv_lib_$ac_lib_var=no"
6920 fi
6921 rm -f conftest*
6922 LIBS="$ac_save_LIBS"
6923
6924 fi
6925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6926   echo "$ac_t""yes" 1>&6
6927   libiconv="-liconv"
6928 else
6929   echo "$ac_t""no" 1>&6
6930 fi
6931
6932     ac_save_LIBS="$LIBS"
6933     LIBS="$LIBS $libiconv"
6934
6935     for ac_func in iconv_open iconv_close iconv nl_langinfo
6936 do
6937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6938 echo "configure:6939: checking for $ac_func" >&5
6939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6940   echo $ac_n "(cached) $ac_c" 1>&6
6941 else
6942   cat > conftest.$ac_ext <<EOF
6943 #line 6944 "configure"
6944 #include "confdefs.h"
6945 /* System header to define __stub macros and hopefully few prototypes,
6946     which can conflict with char $ac_func(); below.  */
6947 #include <assert.h>
6948 /* Override any gcc2 internal prototype to avoid an error.  */
6949 /* We use char because int might match the return type of a gcc2
6950     builtin and then its argument prototype would still apply.  */
6951 char $ac_func();
6952
6953 int main() {
6954
6955 /* The GNU C library defines this for functions which it implements
6956     to always fail with ENOSYS.  Some functions are actually named
6957     something starting with __ and the normal name is an alias.  */
6958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6959 choke me
6960 #else
6961 $ac_func();
6962 #endif
6963
6964 ; return 0; }
6965 EOF
6966 if { (eval echo configure:6967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6967   rm -rf conftest*
6968   eval "ac_cv_func_$ac_func=yes"
6969 else
6970   echo "configure: failed program was:" >&5
6971   cat conftest.$ac_ext >&5
6972   rm -rf conftest*
6973   eval "ac_cv_func_$ac_func=no"
6974 fi
6975 rm -f conftest*
6976 fi
6977
6978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6979   echo "$ac_t""yes" 1>&6
6980     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6981   cat >> confdefs.h <<EOF
6982 #define $ac_tr_func 1
6983 EOF
6984  \
6985     ac_XPG2funcs=yes
6986 else
6987   echo "$ac_t""no" 1>&6
6988 ac_XPG2funcs=no
6989 fi
6990 done
6991
6992   
6993     LIBS="$ac_save_LIBS"
6994
6995     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6996 echo "configure:6997: checking for XPG2 wchar_t support" >&5
6997     if test x"$ac_has_iconv_h" = xyes &&
6998        test x"$ac_has_langinfo_h" = xyes &&
6999        test x"$ac_XPG2funcs" = xyes; then
7000       ac_XPG2_wchar_t=yes
7001     else
7002       ac_XPG2_wchar_t=no
7003     fi
7004     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7005   
7006             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7007 echo "configure:7008: checking for enabled wchar_t specializations" >&5
7008     if test x"$ac_isoC99_wchar_t" = xyes &&
7009        test x"$ac_XPG2_wchar_t" = xyes; then
7010       cat >> confdefs.h <<\EOF
7011 #define _GLIBCPP_USE_WCHAR_T 1
7012 EOF
7013
7014       echo "$ac_t"""yes"" 1>&6
7015     else
7016       echo "$ac_t"""no"" 1>&6
7017     fi
7018   else
7019         echo "configure: warning: wchar_t support disabled." 1>&2
7020   fi
7021
7022       os_include_dir="os/bsd/netbsd"
7023       cat >> confdefs.h <<\EOF
7024 #define HAVE_COPYSIGN 1
7025 EOF
7026
7027       cat >> confdefs.h <<\EOF
7028 #define HAVE_COPYSIGNF 1
7029 EOF
7030
7031       cat >> confdefs.h <<\EOF
7032 #define HAVE_FINITEF 1
7033 EOF
7034
7035       cat >> confdefs.h <<\EOF
7036 #define HAVE_FINITE 1
7037 EOF
7038
7039       cat >> confdefs.h <<\EOF
7040 #define HAVE_FREXPF 1
7041 EOF
7042
7043       cat >> confdefs.h <<\EOF
7044 #define HAVE_HYPOTF 1
7045 EOF
7046
7047       cat >> confdefs.h <<\EOF
7048 #define HAVE_ISINF 1
7049 EOF
7050
7051       cat >> confdefs.h <<\EOF
7052 #define HAVE_ISINFF 1
7053 EOF
7054
7055       cat >> confdefs.h <<\EOF
7056 #define HAVE_ISNAN 1
7057 EOF
7058
7059       cat >> confdefs.h <<\EOF
7060 #define HAVE_ISNANF 1
7061 EOF
7062
7063       if test x"long_double_math_on_this_cpu" = x"yes"; then
7064         cat >> confdefs.h <<\EOF
7065 #define HAVE_FINITEL 1
7066 EOF
7067
7068         cat >> confdefs.h <<\EOF
7069 #define HAVE_ISINFL 1
7070 EOF
7071
7072         cat >> confdefs.h <<\EOF
7073 #define HAVE_ISNANL 1
7074 EOF
7075
7076       fi
7077       ;;
7078     *-freebsd*)
7079       # Check for available headers.
7080       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
7081         machine/endian.h machine/param.h sys/machine.h sys/types.h \
7082         fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
7083         sys/time.h unistd.h
7084 do
7085 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7086 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7087 echo "configure:7088: checking for $ac_hdr" >&5
7088 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7089   echo $ac_n "(cached) $ac_c" 1>&6
7090 else
7091   cat > conftest.$ac_ext <<EOF
7092 #line 7093 "configure"
7093 #include "confdefs.h"
7094 #include <$ac_hdr>
7095 EOF
7096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7097 { (eval echo configure:7098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7099 if test -z "$ac_err"; then
7100   rm -rf conftest*
7101   eval "ac_cv_header_$ac_safe=yes"
7102 else
7103   echo "$ac_err" >&5
7104   echo "configure: failed program was:" >&5
7105   cat conftest.$ac_ext >&5
7106   rm -rf conftest*
7107   eval "ac_cv_header_$ac_safe=no"
7108 fi
7109 rm -f conftest*
7110 fi
7111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7112   echo "$ac_t""yes" 1>&6
7113     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7114   cat >> confdefs.h <<EOF
7115 #define $ac_tr_hdr 1
7116 EOF
7117  
7118 else
7119   echo "$ac_t""no" 1>&6
7120 fi
7121 done
7122
7123       SECTION_FLAGS='-ffunction-sections -fdata-sections'
7124        
7125       
7126   # If we're not using GNU ld, then there's no point in even trying these
7127   # tests.  Check for that first.  We should have already tested for gld
7128   # by now (in libtool), but require it now just to be safe...
7129   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7130   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7131   
7132
7133   # The name set by libtool depends on the version of libtool.  Shame on us
7134   # for depending on an impl detail, but c'est la vie.  Older versions used
7135   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7136   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7137   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7138   # set (hence we're using an older libtool), then set it.
7139   if test x${with_gnu_ld+set} != xset; then
7140     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7141       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7142       with_gnu_ld=no
7143     else
7144       with_gnu_ld=$ac_cv_prog_gnu_ld
7145     fi
7146   fi
7147
7148   # Start by getting the version number.  I think the libtool test already
7149   # does some of this, but throws away the result.
7150   
7151   ldver=`$LD --version 2>/dev/null | head -1 | \
7152          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7153   
7154   glibcpp_gnu_ld_version=`echo $ldver | \
7155          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7156
7157   # Set --gc-sections.
7158   if test "$with_gnu_ld" = "notbroken"; then
7159     # GNU ld it is!  Joy and bunny rabbits!
7160
7161     # All these tests are for C++; save the language and the compiler flags.
7162     # Need to do this so that g++ won't try to link in libstdc++
7163     ac_test_CFLAGS="${CFLAGS+set}"
7164     ac_save_CFLAGS="$CFLAGS"
7165     CFLAGS='-x c++  -Wl,--gc-sections'
7166
7167     # Check for -Wl,--gc-sections
7168     # XXX This test is broken at the moment, as symbols required for
7169     # linking are now in libsupc++ (not built yet.....). In addition, 
7170     # this test has cored on solaris in the past. In addition,
7171     # --gc-sections doesn't really work at the moment (keeps on discarding
7172     # used sections, first .eh_frame and now some of the glibc sections for
7173     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7174     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7175 echo "configure:7176: checking for ld that supports -Wl,--gc-sections" >&5
7176     if test "$cross_compiling" = yes; then
7177   ac_sectionLDflags=yes
7178 else
7179   cat > conftest.$ac_ext <<EOF
7180 #line 7181 "configure"
7181 #include "confdefs.h"
7182
7183      int main(void) 
7184      {
7185        try { throw 1; }
7186        catch (...) { };
7187        return 0;
7188      }
7189     
7190 EOF
7191 if { (eval echo configure:7192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7192 then
7193   ac_sectionLDflags=yes
7194 else
7195   echo "configure: failed program was:" >&5
7196   cat conftest.$ac_ext >&5
7197   rm -fr conftest*
7198   ac_sectionLDflags=no
7199 fi
7200 rm -fr conftest*
7201 fi
7202
7203     if test "$ac_test_CFLAGS" = set; then
7204       CFLAGS="$ac_save_CFLAGS"
7205     else
7206       # this is the suspicious part
7207       CFLAGS=''
7208     fi
7209     if test "$ac_sectionLDflags" = "yes"; then
7210       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7211     fi
7212     echo "$ac_t""$ac_sectionLDflags" 1>&6
7213   fi
7214
7215   # Set linker optimization flags.
7216   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
7217     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7218   fi
7219
7220   
7221   
7222
7223       
7224     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7225 echo "configure:7226: checking for main in -lm" >&5
7226 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7227 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7228   echo $ac_n "(cached) $ac_c" 1>&6
7229 else
7230   ac_save_LIBS="$LIBS"
7231 LIBS="-lm  $LIBS"
7232 cat > conftest.$ac_ext <<EOF
7233 #line 7234 "configure"
7234 #include "confdefs.h"
7235
7236 int main() {
7237 main()
7238 ; return 0; }
7239 EOF
7240 if { (eval echo configure:7241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7241   rm -rf conftest*
7242   eval "ac_cv_lib_$ac_lib_var=yes"
7243 else
7244   echo "configure: failed program was:" >&5
7245   cat conftest.$ac_ext >&5
7246   rm -rf conftest*
7247   eval "ac_cv_lib_$ac_lib_var=no"
7248 fi
7249 rm -f conftest*
7250 LIBS="$ac_save_LIBS"
7251
7252 fi
7253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7254   echo "$ac_t""yes" 1>&6
7255     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7256     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7257   cat >> confdefs.h <<EOF
7258 #define $ac_tr_lib 1
7259 EOF
7260
7261   LIBS="-lm $LIBS"
7262
7263 else
7264   echo "$ac_t""no" 1>&6
7265 fi
7266
7267   for ac_func in nan copysignf
7268 do
7269 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7270 echo "configure:7271: checking for $ac_func" >&5
7271 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7272   echo $ac_n "(cached) $ac_c" 1>&6
7273 else
7274   cat > conftest.$ac_ext <<EOF
7275 #line 7276 "configure"
7276 #include "confdefs.h"
7277 /* System header to define __stub macros and hopefully few prototypes,
7278     which can conflict with char $ac_func(); below.  */
7279 #include <assert.h>
7280 /* Override any gcc2 internal prototype to avoid an error.  */
7281 /* We use char because int might match the return type of a gcc2
7282     builtin and then its argument prototype would still apply.  */
7283 char $ac_func();
7284
7285 int main() {
7286
7287 /* The GNU C library defines this for functions which it implements
7288     to always fail with ENOSYS.  Some functions are actually named
7289     something starting with __ and the normal name is an alias.  */
7290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7291 choke me
7292 #else
7293 $ac_func();
7294 #endif
7295
7296 ; return 0; }
7297 EOF
7298 if { (eval echo configure:7299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7299   rm -rf conftest*
7300   eval "ac_cv_func_$ac_func=yes"
7301 else
7302   echo "configure: failed program was:" >&5
7303   cat conftest.$ac_ext >&5
7304   rm -rf conftest*
7305   eval "ac_cv_func_$ac_func=no"
7306 fi
7307 rm -f conftest*
7308 fi
7309
7310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7311   echo "$ac_t""yes" 1>&6
7312     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7313   cat >> confdefs.h <<EOF
7314 #define $ac_tr_func 1
7315 EOF
7316  
7317 else
7318   echo "$ac_t""no" 1>&6
7319 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7320 fi
7321 done
7322
7323
7324     for ac_func in __signbit
7325 do
7326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7327 echo "configure:7328: checking for $ac_func" >&5
7328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7329   echo $ac_n "(cached) $ac_c" 1>&6
7330 else
7331   cat > conftest.$ac_ext <<EOF
7332 #line 7333 "configure"
7333 #include "confdefs.h"
7334 /* System header to define __stub macros and hopefully few prototypes,
7335     which can conflict with char $ac_func(); below.  */
7336 #include <assert.h>
7337 /* Override any gcc2 internal prototype to avoid an error.  */
7338 /* We use char because int might match the return type of a gcc2
7339     builtin and then its argument prototype would still apply.  */
7340 char $ac_func();
7341
7342 int main() {
7343
7344 /* The GNU C library defines this for functions which it implements
7345     to always fail with ENOSYS.  Some functions are actually named
7346     something starting with __ and the normal name is an alias.  */
7347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7348 choke me
7349 #else
7350 $ac_func();
7351 #endif
7352
7353 ; return 0; }
7354 EOF
7355 if { (eval echo configure:7356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7356   rm -rf conftest*
7357   eval "ac_cv_func_$ac_func=yes"
7358 else
7359   echo "configure: failed program was:" >&5
7360   cat conftest.$ac_ext >&5
7361   rm -rf conftest*
7362   eval "ac_cv_func_$ac_func=no"
7363 fi
7364 rm -f conftest*
7365 fi
7366
7367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7368   echo "$ac_t""yes" 1>&6
7369     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7370   cat >> confdefs.h <<EOF
7371 #define $ac_tr_func 1
7372 EOF
7373  
7374 else
7375   echo "$ac_t""no" 1>&6
7376 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7377 fi
7378 done
7379
7380   for ac_func in __signbitf
7381 do
7382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7383 echo "configure:7384: checking for $ac_func" >&5
7384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7385   echo $ac_n "(cached) $ac_c" 1>&6
7386 else
7387   cat > conftest.$ac_ext <<EOF
7388 #line 7389 "configure"
7389 #include "confdefs.h"
7390 /* System header to define __stub macros and hopefully few prototypes,
7391     which can conflict with char $ac_func(); below.  */
7392 #include <assert.h>
7393 /* Override any gcc2 internal prototype to avoid an error.  */
7394 /* We use char because int might match the return type of a gcc2
7395     builtin and then its argument prototype would still apply.  */
7396 char $ac_func();
7397
7398 int main() {
7399
7400 /* The GNU C library defines this for functions which it implements
7401     to always fail with ENOSYS.  Some functions are actually named
7402     something starting with __ and the normal name is an alias.  */
7403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7404 choke me
7405 #else
7406 $ac_func();
7407 #endif
7408
7409 ; return 0; }
7410 EOF
7411 if { (eval echo configure:7412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7412   rm -rf conftest*
7413   eval "ac_cv_func_$ac_func=yes"
7414 else
7415   echo "configure: failed program was:" >&5
7416   cat conftest.$ac_ext >&5
7417   rm -rf conftest*
7418   eval "ac_cv_func_$ac_func=no"
7419 fi
7420 rm -f conftest*
7421 fi
7422
7423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7424   echo "$ac_t""yes" 1>&6
7425     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7426   cat >> confdefs.h <<EOF
7427 #define $ac_tr_func 1
7428 EOF
7429  
7430 else
7431   echo "$ac_t""no" 1>&6
7432 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7433 fi
7434 done
7435
7436
7437           if test x$ac_cv_func_copysignl = x"yes"; then
7438     for ac_func in __signbitl
7439 do
7440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7441 echo "configure:7442: checking for $ac_func" >&5
7442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7443   echo $ac_n "(cached) $ac_c" 1>&6
7444 else
7445   cat > conftest.$ac_ext <<EOF
7446 #line 7447 "configure"
7447 #include "confdefs.h"
7448 /* System header to define __stub macros and hopefully few prototypes,
7449     which can conflict with char $ac_func(); below.  */
7450 #include <assert.h>
7451 /* Override any gcc2 internal prototype to avoid an error.  */
7452 /* We use char because int might match the return type of a gcc2
7453     builtin and then its argument prototype would still apply.  */
7454 char $ac_func();
7455
7456 int main() {
7457
7458 /* The GNU C library defines this for functions which it implements
7459     to always fail with ENOSYS.  Some functions are actually named
7460     something starting with __ and the normal name is an alias.  */
7461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7462 choke me
7463 #else
7464 $ac_func();
7465 #endif
7466
7467 ; return 0; }
7468 EOF
7469 if { (eval echo configure:7470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7470   rm -rf conftest*
7471   eval "ac_cv_func_$ac_func=yes"
7472 else
7473   echo "configure: failed program was:" >&5
7474   cat conftest.$ac_ext >&5
7475   rm -rf conftest*
7476   eval "ac_cv_func_$ac_func=no"
7477 fi
7478 rm -f conftest*
7479 fi
7480
7481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7482   echo "$ac_t""yes" 1>&6
7483     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7484   cat >> confdefs.h <<EOF
7485 #define $ac_tr_func 1
7486 EOF
7487  
7488 else
7489   echo "$ac_t""no" 1>&6
7490 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7491 fi
7492 done
7493
7494   fi
7495
7496   
7497
7498       
7499
7500       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7501 echo "configure:7502: checking for mbstate_t" >&5
7502   cat > conftest.$ac_ext <<EOF
7503 #line 7504 "configure"
7504 #include "confdefs.h"
7505 #include <wchar.h>
7506 int main() {
7507 mbstate_t teststate;
7508 ; return 0; }
7509 EOF
7510 if { (eval echo configure:7511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7511   rm -rf conftest*
7512   have_mbstate_t=yes
7513 else
7514   echo "configure: failed program was:" >&5
7515   cat conftest.$ac_ext >&5
7516   rm -rf conftest*
7517   have_mbstate_t=no
7518 fi
7519 rm -f conftest*
7520   echo "$ac_t""$have_mbstate_t" 1>&6
7521   if test x"$have_mbstate_t" = xyes; then
7522     cat >> confdefs.h <<\EOF
7523 #define HAVE_MBSTATE_T 1
7524 EOF
7525
7526   fi
7527
7528     for ac_hdr in wchar.h
7529 do
7530 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7532 echo "configure:7533: checking for $ac_hdr" >&5
7533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7534   echo $ac_n "(cached) $ac_c" 1>&6
7535 else
7536   cat > conftest.$ac_ext <<EOF
7537 #line 7538 "configure"
7538 #include "confdefs.h"
7539 #include <$ac_hdr>
7540 EOF
7541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7542 { (eval echo configure:7543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7544 if test -z "$ac_err"; then
7545   rm -rf conftest*
7546   eval "ac_cv_header_$ac_safe=yes"
7547 else
7548   echo "$ac_err" >&5
7549   echo "configure: failed program was:" >&5
7550   cat conftest.$ac_ext >&5
7551   rm -rf conftest*
7552   eval "ac_cv_header_$ac_safe=no"
7553 fi
7554 rm -f conftest*
7555 fi
7556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7557   echo "$ac_t""yes" 1>&6
7558     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7559   cat >> confdefs.h <<EOF
7560 #define $ac_tr_hdr 1
7561 EOF
7562  ac_has_wchar_h=yes
7563 else
7564   echo "$ac_t""no" 1>&6
7565 ac_has_wchar_h=no
7566 fi
7567 done
7568
7569   for ac_hdr in wctype.h
7570 do
7571 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7573 echo "configure:7574: checking for $ac_hdr" >&5
7574 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7575   echo $ac_n "(cached) $ac_c" 1>&6
7576 else
7577   cat > conftest.$ac_ext <<EOF
7578 #line 7579 "configure"
7579 #include "confdefs.h"
7580 #include <$ac_hdr>
7581 EOF
7582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7583 { (eval echo configure:7584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7585 if test -z "$ac_err"; then
7586   rm -rf conftest*
7587   eval "ac_cv_header_$ac_safe=yes"
7588 else
7589   echo "$ac_err" >&5
7590   echo "configure: failed program was:" >&5
7591   cat conftest.$ac_ext >&5
7592   rm -rf conftest*
7593   eval "ac_cv_header_$ac_safe=no"
7594 fi
7595 rm -f conftest*
7596 fi
7597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7598   echo "$ac_t""yes" 1>&6
7599     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7600   cat >> confdefs.h <<EOF
7601 #define $ac_tr_hdr 1
7602 EOF
7603  ac_has_wctype_h=yes
7604 else
7605   echo "$ac_t""no" 1>&6
7606 ac_has_wctype_h=no
7607 fi
7608 done
7609
7610   
7611     if test x"$ac_has_wchar_h" = xyes &&
7612      test x"$ac_has_wctype_h" = xyes &&
7613      test x"$enable_c_mbchar" != xno; then
7614       
7615             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7616 echo "configure:7617: checking for WCHAR_MIN and WCHAR_MAX" >&5
7617     cat > conftest.$ac_ext <<EOF
7618 #line 7619 "configure"
7619 #include "confdefs.h"
7620 #include <wchar.h>
7621 int main() {
7622 int i = WCHAR_MIN; int j = WCHAR_MAX;
7623 ; return 0; }
7624 EOF
7625 if { (eval echo configure:7626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7626   rm -rf conftest*
7627   has_wchar_minmax=yes
7628 else
7629   echo "configure: failed program was:" >&5
7630   cat conftest.$ac_ext >&5
7631   rm -rf conftest*
7632   has_wchar_minmax=no
7633 fi
7634 rm -f conftest*
7635     echo "$ac_t""$has_wchar_minmax" 1>&6
7636     
7637             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7638 echo "configure:7639: checking for WEOF" >&5
7639     cat > conftest.$ac_ext <<EOF
7640 #line 7641 "configure"
7641 #include "confdefs.h"
7642
7643       #include <wchar.h>
7644       #include <stddef.h>
7645 int main() {
7646 wint_t i = WEOF;
7647 ; return 0; }
7648 EOF
7649 if { (eval echo configure:7650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7650   rm -rf conftest*
7651   has_weof=yes
7652 else
7653   echo "configure: failed program was:" >&5
7654   cat conftest.$ac_ext >&5
7655   rm -rf conftest*
7656   has_weof=no
7657 fi
7658 rm -f conftest*
7659     echo "$ac_t""$has_weof" 1>&6
7660   
7661         ac_wfuncs=yes
7662     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7663 do
7664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7665 echo "configure:7666: checking for $ac_func" >&5
7666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7667   echo $ac_n "(cached) $ac_c" 1>&6
7668 else
7669   cat > conftest.$ac_ext <<EOF
7670 #line 7671 "configure"
7671 #include "confdefs.h"
7672 /* System header to define __stub macros and hopefully few prototypes,
7673     which can conflict with char $ac_func(); below.  */
7674 #include <assert.h>
7675 /* Override any gcc2 internal prototype to avoid an error.  */
7676 /* We use char because int might match the return type of a gcc2
7677     builtin and then its argument prototype would still apply.  */
7678 char $ac_func();
7679
7680 int main() {
7681
7682 /* The GNU C library defines this for functions which it implements
7683     to always fail with ENOSYS.  Some functions are actually named
7684     something starting with __ and the normal name is an alias.  */
7685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7686 choke me
7687 #else
7688 $ac_func();
7689 #endif
7690
7691 ; return 0; }
7692 EOF
7693 if { (eval echo configure:7694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7694   rm -rf conftest*
7695   eval "ac_cv_func_$ac_func=yes"
7696 else
7697   echo "configure: failed program was:" >&5
7698   cat conftest.$ac_ext >&5
7699   rm -rf conftest*
7700   eval "ac_cv_func_$ac_func=no"
7701 fi
7702 rm -f conftest*
7703 fi
7704
7705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7706   echo "$ac_t""yes" 1>&6
7707     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7708   cat >> confdefs.h <<EOF
7709 #define $ac_tr_func 1
7710 EOF
7711  
7712 else
7713   echo "$ac_t""no" 1>&6
7714 \
7715     ac_wfuncs=no
7716 fi
7717 done
7718
7719   
7720         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7721     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7722     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7723     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7724     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7725     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7726 do
7727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7728 echo "configure:7729: checking for $ac_func" >&5
7729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7730   echo $ac_n "(cached) $ac_c" 1>&6
7731 else
7732   cat > conftest.$ac_ext <<EOF
7733 #line 7734 "configure"
7734 #include "confdefs.h"
7735 /* System header to define __stub macros and hopefully few prototypes,
7736     which can conflict with char $ac_func(); below.  */
7737 #include <assert.h>
7738 /* Override any gcc2 internal prototype to avoid an error.  */
7739 /* We use char because int might match the return type of a gcc2
7740     builtin and then its argument prototype would still apply.  */
7741 char $ac_func();
7742
7743 int main() {
7744
7745 /* The GNU C library defines this for functions which it implements
7746     to always fail with ENOSYS.  Some functions are actually named
7747     something starting with __ and the normal name is an alias.  */
7748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7749 choke me
7750 #else
7751 $ac_func();
7752 #endif
7753
7754 ; return 0; }
7755 EOF
7756 if { (eval echo configure:7757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7757   rm -rf conftest*
7758   eval "ac_cv_func_$ac_func=yes"
7759 else
7760   echo "configure: failed program was:" >&5
7761   cat conftest.$ac_ext >&5
7762   rm -rf conftest*
7763   eval "ac_cv_func_$ac_func=no"
7764 fi
7765 rm -f conftest*
7766 fi
7767
7768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7769   echo "$ac_t""yes" 1>&6
7770     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7771   cat >> confdefs.h <<EOF
7772 #define $ac_tr_func 1
7773 EOF
7774  
7775 else
7776   echo "$ac_t""no" 1>&6
7777 \
7778     ac_wfuncs=no
7779 fi
7780 done
7781
7782
7783     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7784 echo "configure:7785: checking for ISO C99 wchar_t support" >&5
7785     if test x"$has_weof" = xyes &&
7786        test x"$has_wchar_minmax" = xyes &&
7787        test x"$ac_wfuncs" = xyes; then
7788       ac_isoC99_wchar_t=yes
7789     else
7790       ac_isoC99_wchar_t=no
7791     fi
7792     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7793   
7794             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7795 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7796 echo "configure:7797: checking for iconv.h" >&5
7797 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7798   echo $ac_n "(cached) $ac_c" 1>&6
7799 else
7800   cat > conftest.$ac_ext <<EOF
7801 #line 7802 "configure"
7802 #include "confdefs.h"
7803 #include <iconv.h>
7804 EOF
7805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7806 { (eval echo configure:7807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7808 if test -z "$ac_err"; then
7809   rm -rf conftest*
7810   eval "ac_cv_header_$ac_safe=yes"
7811 else
7812   echo "$ac_err" >&5
7813   echo "configure: failed program was:" >&5
7814   cat conftest.$ac_ext >&5
7815   rm -rf conftest*
7816   eval "ac_cv_header_$ac_safe=no"
7817 fi
7818 rm -f conftest*
7819 fi
7820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7821   echo "$ac_t""yes" 1>&6
7822   ac_has_iconv_h=yes
7823 else
7824   echo "$ac_t""no" 1>&6
7825 ac_has_iconv_h=no
7826 fi
7827
7828     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7829 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7830 echo "configure:7831: checking for langinfo.h" >&5
7831 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7832   echo $ac_n "(cached) $ac_c" 1>&6
7833 else
7834   cat > conftest.$ac_ext <<EOF
7835 #line 7836 "configure"
7836 #include "confdefs.h"
7837 #include <langinfo.h>
7838 EOF
7839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7840 { (eval echo configure:7841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7842 if test -z "$ac_err"; then
7843   rm -rf conftest*
7844   eval "ac_cv_header_$ac_safe=yes"
7845 else
7846   echo "$ac_err" >&5
7847   echo "configure: failed program was:" >&5
7848   cat conftest.$ac_ext >&5
7849   rm -rf conftest*
7850   eval "ac_cv_header_$ac_safe=no"
7851 fi
7852 rm -f conftest*
7853 fi
7854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7855   echo "$ac_t""yes" 1>&6
7856   ac_has_langinfo_h=yes
7857 else
7858   echo "$ac_t""no" 1>&6
7859 ac_has_langinfo_h=no
7860 fi
7861
7862
7863         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7864 echo "configure:7865: checking for iconv in -liconv" >&5
7865 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7867   echo $ac_n "(cached) $ac_c" 1>&6
7868 else
7869   ac_save_LIBS="$LIBS"
7870 LIBS="-liconv  $LIBS"
7871 cat > conftest.$ac_ext <<EOF
7872 #line 7873 "configure"
7873 #include "confdefs.h"
7874 /* Override any gcc2 internal prototype to avoid an error.  */
7875 /* We use char because int might match the return type of a gcc2
7876     builtin and then its argument prototype would still apply.  */
7877 char iconv();
7878
7879 int main() {
7880 iconv()
7881 ; return 0; }
7882 EOF
7883 if { (eval echo configure:7884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7884   rm -rf conftest*
7885   eval "ac_cv_lib_$ac_lib_var=yes"
7886 else
7887   echo "configure: failed program was:" >&5
7888   cat conftest.$ac_ext >&5
7889   rm -rf conftest*
7890   eval "ac_cv_lib_$ac_lib_var=no"
7891 fi
7892 rm -f conftest*
7893 LIBS="$ac_save_LIBS"
7894
7895 fi
7896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7897   echo "$ac_t""yes" 1>&6
7898   libiconv="-liconv"
7899 else
7900   echo "$ac_t""no" 1>&6
7901 fi
7902
7903     ac_save_LIBS="$LIBS"
7904     LIBS="$LIBS $libiconv"
7905
7906     for ac_func in iconv_open iconv_close iconv nl_langinfo
7907 do
7908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7909 echo "configure:7910: checking for $ac_func" >&5
7910 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7911   echo $ac_n "(cached) $ac_c" 1>&6
7912 else
7913   cat > conftest.$ac_ext <<EOF
7914 #line 7915 "configure"
7915 #include "confdefs.h"
7916 /* System header to define __stub macros and hopefully few prototypes,
7917     which can conflict with char $ac_func(); below.  */
7918 #include <assert.h>
7919 /* Override any gcc2 internal prototype to avoid an error.  */
7920 /* We use char because int might match the return type of a gcc2
7921     builtin and then its argument prototype would still apply.  */
7922 char $ac_func();
7923
7924 int main() {
7925
7926 /* The GNU C library defines this for functions which it implements
7927     to always fail with ENOSYS.  Some functions are actually named
7928     something starting with __ and the normal name is an alias.  */
7929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7930 choke me
7931 #else
7932 $ac_func();
7933 #endif
7934
7935 ; return 0; }
7936 EOF
7937 if { (eval echo configure:7938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7938   rm -rf conftest*
7939   eval "ac_cv_func_$ac_func=yes"
7940 else
7941   echo "configure: failed program was:" >&5
7942   cat conftest.$ac_ext >&5
7943   rm -rf conftest*
7944   eval "ac_cv_func_$ac_func=no"
7945 fi
7946 rm -f conftest*
7947 fi
7948
7949 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7950   echo "$ac_t""yes" 1>&6
7951     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7952   cat >> confdefs.h <<EOF
7953 #define $ac_tr_func 1
7954 EOF
7955  \
7956     ac_XPG2funcs=yes
7957 else
7958   echo "$ac_t""no" 1>&6
7959 ac_XPG2funcs=no
7960 fi
7961 done
7962
7963   
7964     LIBS="$ac_save_LIBS"
7965
7966     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7967 echo "configure:7968: checking for XPG2 wchar_t support" >&5
7968     if test x"$ac_has_iconv_h" = xyes &&
7969        test x"$ac_has_langinfo_h" = xyes &&
7970        test x"$ac_XPG2funcs" = xyes; then
7971       ac_XPG2_wchar_t=yes
7972     else
7973       ac_XPG2_wchar_t=no
7974     fi
7975     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7976   
7977             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7978 echo "configure:7979: checking for enabled wchar_t specializations" >&5
7979     if test x"$ac_isoC99_wchar_t" = xyes &&
7980        test x"$ac_XPG2_wchar_t" = xyes; then
7981       cat >> confdefs.h <<\EOF
7982 #define _GLIBCPP_USE_WCHAR_T 1
7983 EOF
7984
7985       echo "$ac_t"""yes"" 1>&6
7986     else
7987       echo "$ac_t"""no"" 1>&6
7988     fi
7989   else
7990         echo "configure: warning: wchar_t support disabled." 1>&2
7991   fi
7992
7993       os_include_dir="os/bsd/freebsd"
7994       cat >> confdefs.h <<\EOF
7995 #define HAVE_LC_MESSAGES 1
7996 EOF
7997
7998       cat >> confdefs.h <<\EOF
7999 #define HAVE_DRAND48 1
8000 EOF
8001
8002       cat >> confdefs.h <<\EOF
8003 #define HAVE_GETPAGESIZE 1
8004 EOF
8005
8006       cat >> confdefs.h <<\EOF
8007 #define HAVE_SETENV 1
8008 EOF
8009
8010       cat >> confdefs.h <<\EOF
8011 #define HAVE_SIGSETJMP 1
8012 EOF
8013
8014       cat >> confdefs.h <<\EOF
8015 #define HAVE_COPYSIGN 1
8016 EOF
8017
8018       cat >> confdefs.h <<\EOF
8019 #define HAVE_COPYSIGNF 1
8020 EOF
8021
8022       cat >> confdefs.h <<\EOF
8023 #define HAVE_FINITEF 1
8024 EOF
8025
8026       cat >> confdefs.h <<\EOF
8027 #define HAVE_FINITE 1
8028 EOF
8029
8030       cat >> confdefs.h <<\EOF
8031 #define HAVE_FREXPF 1
8032 EOF
8033
8034       cat >> confdefs.h <<\EOF
8035 #define HAVE_HYPOT 1
8036 EOF
8037
8038       cat >> confdefs.h <<\EOF
8039 #define HAVE_HYPOTF 1
8040 EOF
8041
8042       cat >> confdefs.h <<\EOF
8043 #define HAVE_ISINF 1
8044 EOF
8045
8046       cat >> confdefs.h <<\EOF
8047 #define HAVE_ISNAN 1
8048 EOF
8049
8050       cat >> confdefs.h <<\EOF
8051 #define HAVE_ISNANF 1
8052 EOF
8053
8054       if test x"long_double_math_on_this_cpu" = x"yes"; then
8055         cat >> confdefs.h <<\EOF
8056 #define HAVE_FINITEL 1
8057 EOF
8058
8059         cat >> confdefs.h <<\EOF
8060 #define HAVE_ISINFL 1
8061 EOF
8062
8063         cat >> confdefs.h <<\EOF
8064 #define HAVE_ISNANL 1
8065 EOF
8066
8067       fi
8068       ;;
8069     *-mingw32*)
8070       for ac_hdr in sys/types.h locale.h float.h
8071 do
8072 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8073 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8074 echo "configure:8075: checking for $ac_hdr" >&5
8075 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8076   echo $ac_n "(cached) $ac_c" 1>&6
8077 else
8078   cat > conftest.$ac_ext <<EOF
8079 #line 8080 "configure"
8080 #include "confdefs.h"
8081 #include <$ac_hdr>
8082 EOF
8083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8084 { (eval echo configure:8085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8085 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8086 if test -z "$ac_err"; then
8087   rm -rf conftest*
8088   eval "ac_cv_header_$ac_safe=yes"
8089 else
8090   echo "$ac_err" >&5
8091   echo "configure: failed program was:" >&5
8092   cat conftest.$ac_ext >&5
8093   rm -rf conftest*
8094   eval "ac_cv_header_$ac_safe=no"
8095 fi
8096 rm -f conftest*
8097 fi
8098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8099   echo "$ac_t""yes" 1>&6
8100     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8101   cat >> confdefs.h <<EOF
8102 #define $ac_tr_hdr 1
8103 EOF
8104  
8105 else
8106   echo "$ac_t""no" 1>&6
8107 fi
8108 done
8109
8110       
8111   # If we're not using GNU ld, then there's no point in even trying these
8112   # tests.  Check for that first.  We should have already tested for gld
8113   # by now (in libtool), but require it now just to be safe...
8114   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8115   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8116   
8117
8118   # The name set by libtool depends on the version of libtool.  Shame on us
8119   # for depending on an impl detail, but c'est la vie.  Older versions used
8120   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8121   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8122   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8123   # set (hence we're using an older libtool), then set it.
8124   if test x${with_gnu_ld+set} != xset; then
8125     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8126       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8127       with_gnu_ld=no
8128     else
8129       with_gnu_ld=$ac_cv_prog_gnu_ld
8130     fi
8131   fi
8132
8133   # Start by getting the version number.  I think the libtool test already
8134   # does some of this, but throws away the result.
8135   
8136   ldver=`$LD --version 2>/dev/null | head -1 | \
8137          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8138   
8139   glibcpp_gnu_ld_version=`echo $ldver | \
8140          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8141
8142   # Set --gc-sections.
8143   if test "$with_gnu_ld" = "notbroken"; then
8144     # GNU ld it is!  Joy and bunny rabbits!
8145
8146     # All these tests are for C++; save the language and the compiler flags.
8147     # Need to do this so that g++ won't try to link in libstdc++
8148     ac_test_CFLAGS="${CFLAGS+set}"
8149     ac_save_CFLAGS="$CFLAGS"
8150     CFLAGS='-x c++  -Wl,--gc-sections'
8151
8152     # Check for -Wl,--gc-sections
8153     # XXX This test is broken at the moment, as symbols required for
8154     # linking are now in libsupc++ (not built yet.....). In addition, 
8155     # this test has cored on solaris in the past. In addition,
8156     # --gc-sections doesn't really work at the moment (keeps on discarding
8157     # used sections, first .eh_frame and now some of the glibc sections for
8158     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8159     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8160 echo "configure:8161: checking for ld that supports -Wl,--gc-sections" >&5
8161     if test "$cross_compiling" = yes; then
8162   ac_sectionLDflags=yes
8163 else
8164   cat > conftest.$ac_ext <<EOF
8165 #line 8166 "configure"
8166 #include "confdefs.h"
8167
8168      int main(void) 
8169      {
8170        try { throw 1; }
8171        catch (...) { };
8172        return 0;
8173      }
8174     
8175 EOF
8176 if { (eval echo configure:8177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8177 then
8178   ac_sectionLDflags=yes
8179 else
8180   echo "configure: failed program was:" >&5
8181   cat conftest.$ac_ext >&5
8182   rm -fr conftest*
8183   ac_sectionLDflags=no
8184 fi
8185 rm -fr conftest*
8186 fi
8187
8188     if test "$ac_test_CFLAGS" = set; then
8189       CFLAGS="$ac_save_CFLAGS"
8190     else
8191       # this is the suspicious part
8192       CFLAGS=''
8193     fi
8194     if test "$ac_sectionLDflags" = "yes"; then
8195       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8196     fi
8197     echo "$ac_t""$ac_sectionLDflags" 1>&6
8198   fi
8199
8200   # Set linker optimization flags.
8201   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
8202     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8203   fi
8204
8205   
8206   
8207
8208       
8209     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8210 echo "configure:8211: checking for main in -lm" >&5
8211 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8213   echo $ac_n "(cached) $ac_c" 1>&6
8214 else
8215   ac_save_LIBS="$LIBS"
8216 LIBS="-lm  $LIBS"
8217 cat > conftest.$ac_ext <<EOF
8218 #line 8219 "configure"
8219 #include "confdefs.h"
8220
8221 int main() {
8222 main()
8223 ; return 0; }
8224 EOF
8225 if { (eval echo configure:8226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8226   rm -rf conftest*
8227   eval "ac_cv_lib_$ac_lib_var=yes"
8228 else
8229   echo "configure: failed program was:" >&5
8230   cat conftest.$ac_ext >&5
8231   rm -rf conftest*
8232   eval "ac_cv_lib_$ac_lib_var=no"
8233 fi
8234 rm -f conftest*
8235 LIBS="$ac_save_LIBS"
8236
8237 fi
8238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8239   echo "$ac_t""yes" 1>&6
8240     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8241     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8242   cat >> confdefs.h <<EOF
8243 #define $ac_tr_lib 1
8244 EOF
8245
8246   LIBS="-lm $LIBS"
8247
8248 else
8249   echo "$ac_t""no" 1>&6
8250 fi
8251
8252   for ac_func in nan copysignf
8253 do
8254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8255 echo "configure:8256: checking for $ac_func" >&5
8256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8257   echo $ac_n "(cached) $ac_c" 1>&6
8258 else
8259   cat > conftest.$ac_ext <<EOF
8260 #line 8261 "configure"
8261 #include "confdefs.h"
8262 /* System header to define __stub macros and hopefully few prototypes,
8263     which can conflict with char $ac_func(); below.  */
8264 #include <assert.h>
8265 /* Override any gcc2 internal prototype to avoid an error.  */
8266 /* We use char because int might match the return type of a gcc2
8267     builtin and then its argument prototype would still apply.  */
8268 char $ac_func();
8269
8270 int main() {
8271
8272 /* The GNU C library defines this for functions which it implements
8273     to always fail with ENOSYS.  Some functions are actually named
8274     something starting with __ and the normal name is an alias.  */
8275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8276 choke me
8277 #else
8278 $ac_func();
8279 #endif
8280
8281 ; return 0; }
8282 EOF
8283 if { (eval echo configure:8284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8284   rm -rf conftest*
8285   eval "ac_cv_func_$ac_func=yes"
8286 else
8287   echo "configure: failed program was:" >&5
8288   cat conftest.$ac_ext >&5
8289   rm -rf conftest*
8290   eval "ac_cv_func_$ac_func=no"
8291 fi
8292 rm -f conftest*
8293 fi
8294
8295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8296   echo "$ac_t""yes" 1>&6
8297     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8298   cat >> confdefs.h <<EOF
8299 #define $ac_tr_func 1
8300 EOF
8301  
8302 else
8303   echo "$ac_t""no" 1>&6
8304 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8305 fi
8306 done
8307
8308
8309     for ac_func in __signbit
8310 do
8311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8312 echo "configure:8313: checking for $ac_func" >&5
8313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8314   echo $ac_n "(cached) $ac_c" 1>&6
8315 else
8316   cat > conftest.$ac_ext <<EOF
8317 #line 8318 "configure"
8318 #include "confdefs.h"
8319 /* System header to define __stub macros and hopefully few prototypes,
8320     which can conflict with char $ac_func(); below.  */
8321 #include <assert.h>
8322 /* Override any gcc2 internal prototype to avoid an error.  */
8323 /* We use char because int might match the return type of a gcc2
8324     builtin and then its argument prototype would still apply.  */
8325 char $ac_func();
8326
8327 int main() {
8328
8329 /* The GNU C library defines this for functions which it implements
8330     to always fail with ENOSYS.  Some functions are actually named
8331     something starting with __ and the normal name is an alias.  */
8332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8333 choke me
8334 #else
8335 $ac_func();
8336 #endif
8337
8338 ; return 0; }
8339 EOF
8340 if { (eval echo configure:8341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8341   rm -rf conftest*
8342   eval "ac_cv_func_$ac_func=yes"
8343 else
8344   echo "configure: failed program was:" >&5
8345   cat conftest.$ac_ext >&5
8346   rm -rf conftest*
8347   eval "ac_cv_func_$ac_func=no"
8348 fi
8349 rm -f conftest*
8350 fi
8351
8352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8353   echo "$ac_t""yes" 1>&6
8354     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8355   cat >> confdefs.h <<EOF
8356 #define $ac_tr_func 1
8357 EOF
8358  
8359 else
8360   echo "$ac_t""no" 1>&6
8361 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8362 fi
8363 done
8364
8365   for ac_func in __signbitf
8366 do
8367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8368 echo "configure:8369: checking for $ac_func" >&5
8369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8370   echo $ac_n "(cached) $ac_c" 1>&6
8371 else
8372   cat > conftest.$ac_ext <<EOF
8373 #line 8374 "configure"
8374 #include "confdefs.h"
8375 /* System header to define __stub macros and hopefully few prototypes,
8376     which can conflict with char $ac_func(); below.  */
8377 #include <assert.h>
8378 /* Override any gcc2 internal prototype to avoid an error.  */
8379 /* We use char because int might match the return type of a gcc2
8380     builtin and then its argument prototype would still apply.  */
8381 char $ac_func();
8382
8383 int main() {
8384
8385 /* The GNU C library defines this for functions which it implements
8386     to always fail with ENOSYS.  Some functions are actually named
8387     something starting with __ and the normal name is an alias.  */
8388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8389 choke me
8390 #else
8391 $ac_func();
8392 #endif
8393
8394 ; return 0; }
8395 EOF
8396 if { (eval echo configure:8397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8397   rm -rf conftest*
8398   eval "ac_cv_func_$ac_func=yes"
8399 else
8400   echo "configure: failed program was:" >&5
8401   cat conftest.$ac_ext >&5
8402   rm -rf conftest*
8403   eval "ac_cv_func_$ac_func=no"
8404 fi
8405 rm -f conftest*
8406 fi
8407
8408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8409   echo "$ac_t""yes" 1>&6
8410     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8411   cat >> confdefs.h <<EOF
8412 #define $ac_tr_func 1
8413 EOF
8414  
8415 else
8416   echo "$ac_t""no" 1>&6
8417 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8418 fi
8419 done
8420
8421
8422           if test x$ac_cv_func_copysignl = x"yes"; then
8423     for ac_func in __signbitl
8424 do
8425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8426 echo "configure:8427: checking for $ac_func" >&5
8427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8428   echo $ac_n "(cached) $ac_c" 1>&6
8429 else
8430   cat > conftest.$ac_ext <<EOF
8431 #line 8432 "configure"
8432 #include "confdefs.h"
8433 /* System header to define __stub macros and hopefully few prototypes,
8434     which can conflict with char $ac_func(); below.  */
8435 #include <assert.h>
8436 /* Override any gcc2 internal prototype to avoid an error.  */
8437 /* We use char because int might match the return type of a gcc2
8438     builtin and then its argument prototype would still apply.  */
8439 char $ac_func();
8440
8441 int main() {
8442
8443 /* The GNU C library defines this for functions which it implements
8444     to always fail with ENOSYS.  Some functions are actually named
8445     something starting with __ and the normal name is an alias.  */
8446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8447 choke me
8448 #else
8449 $ac_func();
8450 #endif
8451
8452 ; return 0; }
8453 EOF
8454 if { (eval echo configure:8455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8455   rm -rf conftest*
8456   eval "ac_cv_func_$ac_func=yes"
8457 else
8458   echo "configure: failed program was:" >&5
8459   cat conftest.$ac_ext >&5
8460   rm -rf conftest*
8461   eval "ac_cv_func_$ac_func=no"
8462 fi
8463 rm -f conftest*
8464 fi
8465
8466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8467   echo "$ac_t""yes" 1>&6
8468     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8469   cat >> confdefs.h <<EOF
8470 #define $ac_tr_func 1
8471 EOF
8472  
8473 else
8474   echo "$ac_t""no" 1>&6
8475 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8476 fi
8477 done
8478
8479   fi
8480
8481   
8482
8483       
8484
8485       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8486 echo "configure:8487: checking for mbstate_t" >&5
8487   cat > conftest.$ac_ext <<EOF
8488 #line 8489 "configure"
8489 #include "confdefs.h"
8490 #include <wchar.h>
8491 int main() {
8492 mbstate_t teststate;
8493 ; return 0; }
8494 EOF
8495 if { (eval echo configure:8496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8496   rm -rf conftest*
8497   have_mbstate_t=yes
8498 else
8499   echo "configure: failed program was:" >&5
8500   cat conftest.$ac_ext >&5
8501   rm -rf conftest*
8502   have_mbstate_t=no
8503 fi
8504 rm -f conftest*
8505   echo "$ac_t""$have_mbstate_t" 1>&6
8506   if test x"$have_mbstate_t" = xyes; then
8507     cat >> confdefs.h <<\EOF
8508 #define HAVE_MBSTATE_T 1
8509 EOF
8510
8511   fi
8512
8513     for ac_hdr in wchar.h
8514 do
8515 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8516 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8517 echo "configure:8518: checking for $ac_hdr" >&5
8518 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8519   echo $ac_n "(cached) $ac_c" 1>&6
8520 else
8521   cat > conftest.$ac_ext <<EOF
8522 #line 8523 "configure"
8523 #include "confdefs.h"
8524 #include <$ac_hdr>
8525 EOF
8526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8527 { (eval echo configure:8528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8529 if test -z "$ac_err"; then
8530   rm -rf conftest*
8531   eval "ac_cv_header_$ac_safe=yes"
8532 else
8533   echo "$ac_err" >&5
8534   echo "configure: failed program was:" >&5
8535   cat conftest.$ac_ext >&5
8536   rm -rf conftest*
8537   eval "ac_cv_header_$ac_safe=no"
8538 fi
8539 rm -f conftest*
8540 fi
8541 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8542   echo "$ac_t""yes" 1>&6
8543     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8544   cat >> confdefs.h <<EOF
8545 #define $ac_tr_hdr 1
8546 EOF
8547  ac_has_wchar_h=yes
8548 else
8549   echo "$ac_t""no" 1>&6
8550 ac_has_wchar_h=no
8551 fi
8552 done
8553
8554   for ac_hdr in wctype.h
8555 do
8556 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8557 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8558 echo "configure:8559: checking for $ac_hdr" >&5
8559 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8560   echo $ac_n "(cached) $ac_c" 1>&6
8561 else
8562   cat > conftest.$ac_ext <<EOF
8563 #line 8564 "configure"
8564 #include "confdefs.h"
8565 #include <$ac_hdr>
8566 EOF
8567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8568 { (eval echo configure:8569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8570 if test -z "$ac_err"; then
8571   rm -rf conftest*
8572   eval "ac_cv_header_$ac_safe=yes"
8573 else
8574   echo "$ac_err" >&5
8575   echo "configure: failed program was:" >&5
8576   cat conftest.$ac_ext >&5
8577   rm -rf conftest*
8578   eval "ac_cv_header_$ac_safe=no"
8579 fi
8580 rm -f conftest*
8581 fi
8582 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8583   echo "$ac_t""yes" 1>&6
8584     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8585   cat >> confdefs.h <<EOF
8586 #define $ac_tr_hdr 1
8587 EOF
8588  ac_has_wctype_h=yes
8589 else
8590   echo "$ac_t""no" 1>&6
8591 ac_has_wctype_h=no
8592 fi
8593 done
8594
8595   
8596     if test x"$ac_has_wchar_h" = xyes &&
8597      test x"$ac_has_wctype_h" = xyes &&
8598      test x"$enable_c_mbchar" != xno; then
8599       
8600             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8601 echo "configure:8602: checking for WCHAR_MIN and WCHAR_MAX" >&5
8602     cat > conftest.$ac_ext <<EOF
8603 #line 8604 "configure"
8604 #include "confdefs.h"
8605 #include <wchar.h>
8606 int main() {
8607 int i = WCHAR_MIN; int j = WCHAR_MAX;
8608 ; return 0; }
8609 EOF
8610 if { (eval echo configure:8611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8611   rm -rf conftest*
8612   has_wchar_minmax=yes
8613 else
8614   echo "configure: failed program was:" >&5
8615   cat conftest.$ac_ext >&5
8616   rm -rf conftest*
8617   has_wchar_minmax=no
8618 fi
8619 rm -f conftest*
8620     echo "$ac_t""$has_wchar_minmax" 1>&6
8621     
8622             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8623 echo "configure:8624: checking for WEOF" >&5
8624     cat > conftest.$ac_ext <<EOF
8625 #line 8626 "configure"
8626 #include "confdefs.h"
8627
8628       #include <wchar.h>
8629       #include <stddef.h>
8630 int main() {
8631 wint_t i = WEOF;
8632 ; return 0; }
8633 EOF
8634 if { (eval echo configure:8635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8635   rm -rf conftest*
8636   has_weof=yes
8637 else
8638   echo "configure: failed program was:" >&5
8639   cat conftest.$ac_ext >&5
8640   rm -rf conftest*
8641   has_weof=no
8642 fi
8643 rm -f conftest*
8644     echo "$ac_t""$has_weof" 1>&6
8645   
8646         ac_wfuncs=yes
8647     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8648 do
8649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8650 echo "configure:8651: checking for $ac_func" >&5
8651 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8652   echo $ac_n "(cached) $ac_c" 1>&6
8653 else
8654   cat > conftest.$ac_ext <<EOF
8655 #line 8656 "configure"
8656 #include "confdefs.h"
8657 /* System header to define __stub macros and hopefully few prototypes,
8658     which can conflict with char $ac_func(); below.  */
8659 #include <assert.h>
8660 /* Override any gcc2 internal prototype to avoid an error.  */
8661 /* We use char because int might match the return type of a gcc2
8662     builtin and then its argument prototype would still apply.  */
8663 char $ac_func();
8664
8665 int main() {
8666
8667 /* The GNU C library defines this for functions which it implements
8668     to always fail with ENOSYS.  Some functions are actually named
8669     something starting with __ and the normal name is an alias.  */
8670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8671 choke me
8672 #else
8673 $ac_func();
8674 #endif
8675
8676 ; return 0; }
8677 EOF
8678 if { (eval echo configure:8679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8679   rm -rf conftest*
8680   eval "ac_cv_func_$ac_func=yes"
8681 else
8682   echo "configure: failed program was:" >&5
8683   cat conftest.$ac_ext >&5
8684   rm -rf conftest*
8685   eval "ac_cv_func_$ac_func=no"
8686 fi
8687 rm -f conftest*
8688 fi
8689
8690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8691   echo "$ac_t""yes" 1>&6
8692     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8693   cat >> confdefs.h <<EOF
8694 #define $ac_tr_func 1
8695 EOF
8696  
8697 else
8698   echo "$ac_t""no" 1>&6
8699 \
8700     ac_wfuncs=no
8701 fi
8702 done
8703
8704   
8705         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8706     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8707     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8708     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8709     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8710     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8711 do
8712 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8713 echo "configure:8714: checking for $ac_func" >&5
8714 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8715   echo $ac_n "(cached) $ac_c" 1>&6
8716 else
8717   cat > conftest.$ac_ext <<EOF
8718 #line 8719 "configure"
8719 #include "confdefs.h"
8720 /* System header to define __stub macros and hopefully few prototypes,
8721     which can conflict with char $ac_func(); below.  */
8722 #include <assert.h>
8723 /* Override any gcc2 internal prototype to avoid an error.  */
8724 /* We use char because int might match the return type of a gcc2
8725     builtin and then its argument prototype would still apply.  */
8726 char $ac_func();
8727
8728 int main() {
8729
8730 /* The GNU C library defines this for functions which it implements
8731     to always fail with ENOSYS.  Some functions are actually named
8732     something starting with __ and the normal name is an alias.  */
8733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8734 choke me
8735 #else
8736 $ac_func();
8737 #endif
8738
8739 ; return 0; }
8740 EOF
8741 if { (eval echo configure:8742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8742   rm -rf conftest*
8743   eval "ac_cv_func_$ac_func=yes"
8744 else
8745   echo "configure: failed program was:" >&5
8746   cat conftest.$ac_ext >&5
8747   rm -rf conftest*
8748   eval "ac_cv_func_$ac_func=no"
8749 fi
8750 rm -f conftest*
8751 fi
8752
8753 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8754   echo "$ac_t""yes" 1>&6
8755     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8756   cat >> confdefs.h <<EOF
8757 #define $ac_tr_func 1
8758 EOF
8759  
8760 else
8761   echo "$ac_t""no" 1>&6
8762 \
8763     ac_wfuncs=no
8764 fi
8765 done
8766
8767
8768     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8769 echo "configure:8770: checking for ISO C99 wchar_t support" >&5
8770     if test x"$has_weof" = xyes &&
8771        test x"$has_wchar_minmax" = xyes &&
8772        test x"$ac_wfuncs" = xyes; then
8773       ac_isoC99_wchar_t=yes
8774     else
8775       ac_isoC99_wchar_t=no
8776     fi
8777     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8778   
8779             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8780 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8781 echo "configure:8782: checking for iconv.h" >&5
8782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8783   echo $ac_n "(cached) $ac_c" 1>&6
8784 else
8785   cat > conftest.$ac_ext <<EOF
8786 #line 8787 "configure"
8787 #include "confdefs.h"
8788 #include <iconv.h>
8789 EOF
8790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8791 { (eval echo configure:8792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8793 if test -z "$ac_err"; then
8794   rm -rf conftest*
8795   eval "ac_cv_header_$ac_safe=yes"
8796 else
8797   echo "$ac_err" >&5
8798   echo "configure: failed program was:" >&5
8799   cat conftest.$ac_ext >&5
8800   rm -rf conftest*
8801   eval "ac_cv_header_$ac_safe=no"
8802 fi
8803 rm -f conftest*
8804 fi
8805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8806   echo "$ac_t""yes" 1>&6
8807   ac_has_iconv_h=yes
8808 else
8809   echo "$ac_t""no" 1>&6
8810 ac_has_iconv_h=no
8811 fi
8812
8813     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8814 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8815 echo "configure:8816: checking for langinfo.h" >&5
8816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8817   echo $ac_n "(cached) $ac_c" 1>&6
8818 else
8819   cat > conftest.$ac_ext <<EOF
8820 #line 8821 "configure"
8821 #include "confdefs.h"
8822 #include <langinfo.h>
8823 EOF
8824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8825 { (eval echo configure:8826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8827 if test -z "$ac_err"; then
8828   rm -rf conftest*
8829   eval "ac_cv_header_$ac_safe=yes"
8830 else
8831   echo "$ac_err" >&5
8832   echo "configure: failed program was:" >&5
8833   cat conftest.$ac_ext >&5
8834   rm -rf conftest*
8835   eval "ac_cv_header_$ac_safe=no"
8836 fi
8837 rm -f conftest*
8838 fi
8839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8840   echo "$ac_t""yes" 1>&6
8841   ac_has_langinfo_h=yes
8842 else
8843   echo "$ac_t""no" 1>&6
8844 ac_has_langinfo_h=no
8845 fi
8846
8847
8848         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8849 echo "configure:8850: checking for iconv in -liconv" >&5
8850 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8852   echo $ac_n "(cached) $ac_c" 1>&6
8853 else
8854   ac_save_LIBS="$LIBS"
8855 LIBS="-liconv  $LIBS"
8856 cat > conftest.$ac_ext <<EOF
8857 #line 8858 "configure"
8858 #include "confdefs.h"
8859 /* Override any gcc2 internal prototype to avoid an error.  */
8860 /* We use char because int might match the return type of a gcc2
8861     builtin and then its argument prototype would still apply.  */
8862 char iconv();
8863
8864 int main() {
8865 iconv()
8866 ; return 0; }
8867 EOF
8868 if { (eval echo configure:8869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8869   rm -rf conftest*
8870   eval "ac_cv_lib_$ac_lib_var=yes"
8871 else
8872   echo "configure: failed program was:" >&5
8873   cat conftest.$ac_ext >&5
8874   rm -rf conftest*
8875   eval "ac_cv_lib_$ac_lib_var=no"
8876 fi
8877 rm -f conftest*
8878 LIBS="$ac_save_LIBS"
8879
8880 fi
8881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8882   echo "$ac_t""yes" 1>&6
8883   libiconv="-liconv"
8884 else
8885   echo "$ac_t""no" 1>&6
8886 fi
8887
8888     ac_save_LIBS="$LIBS"
8889     LIBS="$LIBS $libiconv"
8890
8891     for ac_func in iconv_open iconv_close iconv nl_langinfo
8892 do
8893 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8894 echo "configure:8895: checking for $ac_func" >&5
8895 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8896   echo $ac_n "(cached) $ac_c" 1>&6
8897 else
8898   cat > conftest.$ac_ext <<EOF
8899 #line 8900 "configure"
8900 #include "confdefs.h"
8901 /* System header to define __stub macros and hopefully few prototypes,
8902     which can conflict with char $ac_func(); below.  */
8903 #include <assert.h>
8904 /* Override any gcc2 internal prototype to avoid an error.  */
8905 /* We use char because int might match the return type of a gcc2
8906     builtin and then its argument prototype would still apply.  */
8907 char $ac_func();
8908
8909 int main() {
8910
8911 /* The GNU C library defines this for functions which it implements
8912     to always fail with ENOSYS.  Some functions are actually named
8913     something starting with __ and the normal name is an alias.  */
8914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8915 choke me
8916 #else
8917 $ac_func();
8918 #endif
8919
8920 ; return 0; }
8921 EOF
8922 if { (eval echo configure:8923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8923   rm -rf conftest*
8924   eval "ac_cv_func_$ac_func=yes"
8925 else
8926   echo "configure: failed program was:" >&5
8927   cat conftest.$ac_ext >&5
8928   rm -rf conftest*
8929   eval "ac_cv_func_$ac_func=no"
8930 fi
8931 rm -f conftest*
8932 fi
8933
8934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8935   echo "$ac_t""yes" 1>&6
8936     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8937   cat >> confdefs.h <<EOF
8938 #define $ac_tr_func 1
8939 EOF
8940  \
8941     ac_XPG2funcs=yes
8942 else
8943   echo "$ac_t""no" 1>&6
8944 ac_XPG2funcs=no
8945 fi
8946 done
8947
8948   
8949     LIBS="$ac_save_LIBS"
8950
8951     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8952 echo "configure:8953: checking for XPG2 wchar_t support" >&5
8953     if test x"$ac_has_iconv_h" = xyes &&
8954        test x"$ac_has_langinfo_h" = xyes &&
8955        test x"$ac_XPG2funcs" = xyes; then
8956       ac_XPG2_wchar_t=yes
8957     else
8958       ac_XPG2_wchar_t=no
8959     fi
8960     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8961   
8962             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8963 echo "configure:8964: checking for enabled wchar_t specializations" >&5
8964     if test x"$ac_isoC99_wchar_t" = xyes &&
8965        test x"$ac_XPG2_wchar_t" = xyes; then
8966       cat >> confdefs.h <<\EOF
8967 #define _GLIBCPP_USE_WCHAR_T 1
8968 EOF
8969
8970       echo "$ac_t"""yes"" 1>&6
8971     else
8972       echo "$ac_t"""no"" 1>&6
8973     fi
8974   else
8975         echo "configure: warning: wchar_t support disabled." 1>&2
8976   fi
8977
8978       os_include_dir="os/mingw32"
8979       ;;
8980     *-windiss*)
8981       os_include_dir="os/windiss"
8982       ;;
8983     *-qnx6.[12]*)
8984       SECTION_FLAGS='-ffunction-sections -fdata-sections'
8985        
8986       
8987   # If we're not using GNU ld, then there's no point in even trying these
8988   # tests.  Check for that first.  We should have already tested for gld
8989   # by now (in libtool), but require it now just to be safe...
8990   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8991   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8992   
8993
8994   # The name set by libtool depends on the version of libtool.  Shame on us
8995   # for depending on an impl detail, but c'est la vie.  Older versions used
8996   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8997   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8998   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8999   # set (hence we're using an older libtool), then set it.
9000   if test x${with_gnu_ld+set} != xset; then
9001     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9002       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9003       with_gnu_ld=no
9004     else
9005       with_gnu_ld=$ac_cv_prog_gnu_ld
9006     fi
9007   fi
9008
9009   # Start by getting the version number.  I think the libtool test already
9010   # does some of this, but throws away the result.
9011   
9012   ldver=`$LD --version 2>/dev/null | head -1 | \
9013          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9014   
9015   glibcpp_gnu_ld_version=`echo $ldver | \
9016          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9017
9018   # Set --gc-sections.
9019   if test "$with_gnu_ld" = "notbroken"; then
9020     # GNU ld it is!  Joy and bunny rabbits!
9021
9022     # All these tests are for C++; save the language and the compiler flags.
9023     # Need to do this so that g++ won't try to link in libstdc++
9024     ac_test_CFLAGS="${CFLAGS+set}"
9025     ac_save_CFLAGS="$CFLAGS"
9026     CFLAGS='-x c++  -Wl,--gc-sections'
9027
9028     # Check for -Wl,--gc-sections
9029     # XXX This test is broken at the moment, as symbols required for
9030     # linking are now in libsupc++ (not built yet.....). In addition, 
9031     # this test has cored on solaris in the past. In addition,
9032     # --gc-sections doesn't really work at the moment (keeps on discarding
9033     # used sections, first .eh_frame and now some of the glibc sections for
9034     # iconv). Bzzzzt. Thanks for playing, maybe next time.
9035     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9036 echo "configure:9037: checking for ld that supports -Wl,--gc-sections" >&5
9037     if test "$cross_compiling" = yes; then
9038   ac_sectionLDflags=yes
9039 else
9040   cat > conftest.$ac_ext <<EOF
9041 #line 9042 "configure"
9042 #include "confdefs.h"
9043
9044      int main(void) 
9045      {
9046        try { throw 1; }
9047        catch (...) { };
9048        return 0;
9049      }
9050     
9051 EOF
9052 if { (eval echo configure:9053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9053 then
9054   ac_sectionLDflags=yes
9055 else
9056   echo "configure: failed program was:" >&5
9057   cat conftest.$ac_ext >&5
9058   rm -fr conftest*
9059   ac_sectionLDflags=no
9060 fi
9061 rm -fr conftest*
9062 fi
9063
9064     if test "$ac_test_CFLAGS" = set; then
9065       CFLAGS="$ac_save_CFLAGS"
9066     else
9067       # this is the suspicious part
9068       CFLAGS=''
9069     fi
9070     if test "$ac_sectionLDflags" = "yes"; then
9071       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9072     fi
9073     echo "$ac_t""$ac_sectionLDflags" 1>&6
9074   fi
9075
9076   # Set linker optimization flags.
9077   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
9078     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9079   fi
9080
9081   
9082   
9083
9084       
9085     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9086 echo "configure:9087: checking for main in -lm" >&5
9087 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9089   echo $ac_n "(cached) $ac_c" 1>&6
9090 else
9091   ac_save_LIBS="$LIBS"
9092 LIBS="-lm  $LIBS"
9093 cat > conftest.$ac_ext <<EOF
9094 #line 9095 "configure"
9095 #include "confdefs.h"
9096
9097 int main() {
9098 main()
9099 ; return 0; }
9100 EOF
9101 if { (eval echo configure:9102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9102   rm -rf conftest*
9103   eval "ac_cv_lib_$ac_lib_var=yes"
9104 else
9105   echo "configure: failed program was:" >&5
9106   cat conftest.$ac_ext >&5
9107   rm -rf conftest*
9108   eval "ac_cv_lib_$ac_lib_var=no"
9109 fi
9110 rm -f conftest*
9111 LIBS="$ac_save_LIBS"
9112
9113 fi
9114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9115   echo "$ac_t""yes" 1>&6
9116     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9117     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9118   cat >> confdefs.h <<EOF
9119 #define $ac_tr_lib 1
9120 EOF
9121
9122   LIBS="-lm $LIBS"
9123
9124 else
9125   echo "$ac_t""no" 1>&6
9126 fi
9127
9128   for ac_func in nan copysignf
9129 do
9130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9131 echo "configure:9132: checking for $ac_func" >&5
9132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9133   echo $ac_n "(cached) $ac_c" 1>&6
9134 else
9135   cat > conftest.$ac_ext <<EOF
9136 #line 9137 "configure"
9137 #include "confdefs.h"
9138 /* System header to define __stub macros and hopefully few prototypes,
9139     which can conflict with char $ac_func(); below.  */
9140 #include <assert.h>
9141 /* Override any gcc2 internal prototype to avoid an error.  */
9142 /* We use char because int might match the return type of a gcc2
9143     builtin and then its argument prototype would still apply.  */
9144 char $ac_func();
9145
9146 int main() {
9147
9148 /* The GNU C library defines this for functions which it implements
9149     to always fail with ENOSYS.  Some functions are actually named
9150     something starting with __ and the normal name is an alias.  */
9151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9152 choke me
9153 #else
9154 $ac_func();
9155 #endif
9156
9157 ; return 0; }
9158 EOF
9159 if { (eval echo configure:9160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9160   rm -rf conftest*
9161   eval "ac_cv_func_$ac_func=yes"
9162 else
9163   echo "configure: failed program was:" >&5
9164   cat conftest.$ac_ext >&5
9165   rm -rf conftest*
9166   eval "ac_cv_func_$ac_func=no"
9167 fi
9168 rm -f conftest*
9169 fi
9170
9171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9172   echo "$ac_t""yes" 1>&6
9173     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9174   cat >> confdefs.h <<EOF
9175 #define $ac_tr_func 1
9176 EOF
9177  
9178 else
9179   echo "$ac_t""no" 1>&6
9180 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9181 fi
9182 done
9183
9184
9185     for ac_func in __signbit
9186 do
9187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9188 echo "configure:9189: checking for $ac_func" >&5
9189 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9190   echo $ac_n "(cached) $ac_c" 1>&6
9191 else
9192   cat > conftest.$ac_ext <<EOF
9193 #line 9194 "configure"
9194 #include "confdefs.h"
9195 /* System header to define __stub macros and hopefully few prototypes,
9196     which can conflict with char $ac_func(); below.  */
9197 #include <assert.h>
9198 /* Override any gcc2 internal prototype to avoid an error.  */
9199 /* We use char because int might match the return type of a gcc2
9200     builtin and then its argument prototype would still apply.  */
9201 char $ac_func();
9202
9203 int main() {
9204
9205 /* The GNU C library defines this for functions which it implements
9206     to always fail with ENOSYS.  Some functions are actually named
9207     something starting with __ and the normal name is an alias.  */
9208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9209 choke me
9210 #else
9211 $ac_func();
9212 #endif
9213
9214 ; return 0; }
9215 EOF
9216 if { (eval echo configure:9217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9217   rm -rf conftest*
9218   eval "ac_cv_func_$ac_func=yes"
9219 else
9220   echo "configure: failed program was:" >&5
9221   cat conftest.$ac_ext >&5
9222   rm -rf conftest*
9223   eval "ac_cv_func_$ac_func=no"
9224 fi
9225 rm -f conftest*
9226 fi
9227
9228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9229   echo "$ac_t""yes" 1>&6
9230     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9231   cat >> confdefs.h <<EOF
9232 #define $ac_tr_func 1
9233 EOF
9234  
9235 else
9236   echo "$ac_t""no" 1>&6
9237 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9238 fi
9239 done
9240
9241   for ac_func in __signbitf
9242 do
9243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9244 echo "configure:9245: checking for $ac_func" >&5
9245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9246   echo $ac_n "(cached) $ac_c" 1>&6
9247 else
9248   cat > conftest.$ac_ext <<EOF
9249 #line 9250 "configure"
9250 #include "confdefs.h"
9251 /* System header to define __stub macros and hopefully few prototypes,
9252     which can conflict with char $ac_func(); below.  */
9253 #include <assert.h>
9254 /* Override any gcc2 internal prototype to avoid an error.  */
9255 /* We use char because int might match the return type of a gcc2
9256     builtin and then its argument prototype would still apply.  */
9257 char $ac_func();
9258
9259 int main() {
9260
9261 /* The GNU C library defines this for functions which it implements
9262     to always fail with ENOSYS.  Some functions are actually named
9263     something starting with __ and the normal name is an alias.  */
9264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9265 choke me
9266 #else
9267 $ac_func();
9268 #endif
9269
9270 ; return 0; }
9271 EOF
9272 if { (eval echo configure:9273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9273   rm -rf conftest*
9274   eval "ac_cv_func_$ac_func=yes"
9275 else
9276   echo "configure: failed program was:" >&5
9277   cat conftest.$ac_ext >&5
9278   rm -rf conftest*
9279   eval "ac_cv_func_$ac_func=no"
9280 fi
9281 rm -f conftest*
9282 fi
9283
9284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9285   echo "$ac_t""yes" 1>&6
9286     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9287   cat >> confdefs.h <<EOF
9288 #define $ac_tr_func 1
9289 EOF
9290  
9291 else
9292   echo "$ac_t""no" 1>&6
9293 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9294 fi
9295 done
9296
9297
9298           if test x$ac_cv_func_copysignl = x"yes"; then
9299     for ac_func in __signbitl
9300 do
9301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9302 echo "configure:9303: checking for $ac_func" >&5
9303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9304   echo $ac_n "(cached) $ac_c" 1>&6
9305 else
9306   cat > conftest.$ac_ext <<EOF
9307 #line 9308 "configure"
9308 #include "confdefs.h"
9309 /* System header to define __stub macros and hopefully few prototypes,
9310     which can conflict with char $ac_func(); below.  */
9311 #include <assert.h>
9312 /* Override any gcc2 internal prototype to avoid an error.  */
9313 /* We use char because int might match the return type of a gcc2
9314     builtin and then its argument prototype would still apply.  */
9315 char $ac_func();
9316
9317 int main() {
9318
9319 /* The GNU C library defines this for functions which it implements
9320     to always fail with ENOSYS.  Some functions are actually named
9321     something starting with __ and the normal name is an alias.  */
9322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9323 choke me
9324 #else
9325 $ac_func();
9326 #endif
9327
9328 ; return 0; }
9329 EOF
9330 if { (eval echo configure:9331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9331   rm -rf conftest*
9332   eval "ac_cv_func_$ac_func=yes"
9333 else
9334   echo "configure: failed program was:" >&5
9335   cat conftest.$ac_ext >&5
9336   rm -rf conftest*
9337   eval "ac_cv_func_$ac_func=no"
9338 fi
9339 rm -f conftest*
9340 fi
9341
9342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9343   echo "$ac_t""yes" 1>&6
9344     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9345   cat >> confdefs.h <<EOF
9346 #define $ac_tr_func 1
9347 EOF
9348  
9349 else
9350   echo "$ac_t""no" 1>&6
9351 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9352 fi
9353 done
9354
9355   fi
9356
9357   
9358
9359       
9360
9361       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9362 echo "configure:9363: checking for mbstate_t" >&5
9363   cat > conftest.$ac_ext <<EOF
9364 #line 9365 "configure"
9365 #include "confdefs.h"
9366 #include <wchar.h>
9367 int main() {
9368 mbstate_t teststate;
9369 ; return 0; }
9370 EOF
9371 if { (eval echo configure:9372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9372   rm -rf conftest*
9373   have_mbstate_t=yes
9374 else
9375   echo "configure: failed program was:" >&5
9376   cat conftest.$ac_ext >&5
9377   rm -rf conftest*
9378   have_mbstate_t=no
9379 fi
9380 rm -f conftest*
9381   echo "$ac_t""$have_mbstate_t" 1>&6
9382   if test x"$have_mbstate_t" = xyes; then
9383     cat >> confdefs.h <<\EOF
9384 #define HAVE_MBSTATE_T 1
9385 EOF
9386
9387   fi
9388
9389     for ac_hdr in wchar.h
9390 do
9391 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9393 echo "configure:9394: checking for $ac_hdr" >&5
9394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9395   echo $ac_n "(cached) $ac_c" 1>&6
9396 else
9397   cat > conftest.$ac_ext <<EOF
9398 #line 9399 "configure"
9399 #include "confdefs.h"
9400 #include <$ac_hdr>
9401 EOF
9402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9403 { (eval echo configure:9404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9405 if test -z "$ac_err"; then
9406   rm -rf conftest*
9407   eval "ac_cv_header_$ac_safe=yes"
9408 else
9409   echo "$ac_err" >&5
9410   echo "configure: failed program was:" >&5
9411   cat conftest.$ac_ext >&5
9412   rm -rf conftest*
9413   eval "ac_cv_header_$ac_safe=no"
9414 fi
9415 rm -f conftest*
9416 fi
9417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9418   echo "$ac_t""yes" 1>&6
9419     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9420   cat >> confdefs.h <<EOF
9421 #define $ac_tr_hdr 1
9422 EOF
9423  ac_has_wchar_h=yes
9424 else
9425   echo "$ac_t""no" 1>&6
9426 ac_has_wchar_h=no
9427 fi
9428 done
9429
9430   for ac_hdr in wctype.h
9431 do
9432 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9433 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9434 echo "configure:9435: checking for $ac_hdr" >&5
9435 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9436   echo $ac_n "(cached) $ac_c" 1>&6
9437 else
9438   cat > conftest.$ac_ext <<EOF
9439 #line 9440 "configure"
9440 #include "confdefs.h"
9441 #include <$ac_hdr>
9442 EOF
9443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9444 { (eval echo configure:9445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9446 if test -z "$ac_err"; then
9447   rm -rf conftest*
9448   eval "ac_cv_header_$ac_safe=yes"
9449 else
9450   echo "$ac_err" >&5
9451   echo "configure: failed program was:" >&5
9452   cat conftest.$ac_ext >&5
9453   rm -rf conftest*
9454   eval "ac_cv_header_$ac_safe=no"
9455 fi
9456 rm -f conftest*
9457 fi
9458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9459   echo "$ac_t""yes" 1>&6
9460     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9461   cat >> confdefs.h <<EOF
9462 #define $ac_tr_hdr 1
9463 EOF
9464  ac_has_wctype_h=yes
9465 else
9466   echo "$ac_t""no" 1>&6
9467 ac_has_wctype_h=no
9468 fi
9469 done
9470
9471   
9472     if test x"$ac_has_wchar_h" = xyes &&
9473      test x"$ac_has_wctype_h" = xyes &&
9474      test x"$enable_c_mbchar" != xno; then
9475       
9476             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9477 echo "configure:9478: checking for WCHAR_MIN and WCHAR_MAX" >&5
9478     cat > conftest.$ac_ext <<EOF
9479 #line 9480 "configure"
9480 #include "confdefs.h"
9481 #include <wchar.h>
9482 int main() {
9483 int i = WCHAR_MIN; int j = WCHAR_MAX;
9484 ; return 0; }
9485 EOF
9486 if { (eval echo configure:9487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9487   rm -rf conftest*
9488   has_wchar_minmax=yes
9489 else
9490   echo "configure: failed program was:" >&5
9491   cat conftest.$ac_ext >&5
9492   rm -rf conftest*
9493   has_wchar_minmax=no
9494 fi
9495 rm -f conftest*
9496     echo "$ac_t""$has_wchar_minmax" 1>&6
9497     
9498             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9499 echo "configure:9500: checking for WEOF" >&5
9500     cat > conftest.$ac_ext <<EOF
9501 #line 9502 "configure"
9502 #include "confdefs.h"
9503
9504       #include <wchar.h>
9505       #include <stddef.h>
9506 int main() {
9507 wint_t i = WEOF;
9508 ; return 0; }
9509 EOF
9510 if { (eval echo configure:9511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9511   rm -rf conftest*
9512   has_weof=yes
9513 else
9514   echo "configure: failed program was:" >&5
9515   cat conftest.$ac_ext >&5
9516   rm -rf conftest*
9517   has_weof=no
9518 fi
9519 rm -f conftest*
9520     echo "$ac_t""$has_weof" 1>&6
9521   
9522         ac_wfuncs=yes
9523     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9524 do
9525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9526 echo "configure:9527: checking for $ac_func" >&5
9527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9528   echo $ac_n "(cached) $ac_c" 1>&6
9529 else
9530   cat > conftest.$ac_ext <<EOF
9531 #line 9532 "configure"
9532 #include "confdefs.h"
9533 /* System header to define __stub macros and hopefully few prototypes,
9534     which can conflict with char $ac_func(); below.  */
9535 #include <assert.h>
9536 /* Override any gcc2 internal prototype to avoid an error.  */
9537 /* We use char because int might match the return type of a gcc2
9538     builtin and then its argument prototype would still apply.  */
9539 char $ac_func();
9540
9541 int main() {
9542
9543 /* The GNU C library defines this for functions which it implements
9544     to always fail with ENOSYS.  Some functions are actually named
9545     something starting with __ and the normal name is an alias.  */
9546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9547 choke me
9548 #else
9549 $ac_func();
9550 #endif
9551
9552 ; return 0; }
9553 EOF
9554 if { (eval echo configure:9555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9555   rm -rf conftest*
9556   eval "ac_cv_func_$ac_func=yes"
9557 else
9558   echo "configure: failed program was:" >&5
9559   cat conftest.$ac_ext >&5
9560   rm -rf conftest*
9561   eval "ac_cv_func_$ac_func=no"
9562 fi
9563 rm -f conftest*
9564 fi
9565
9566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9567   echo "$ac_t""yes" 1>&6
9568     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9569   cat >> confdefs.h <<EOF
9570 #define $ac_tr_func 1
9571 EOF
9572  
9573 else
9574   echo "$ac_t""no" 1>&6
9575 \
9576     ac_wfuncs=no
9577 fi
9578 done
9579
9580   
9581         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
9582     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9583     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9584     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9585     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9586     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9587 do
9588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9589 echo "configure:9590: checking for $ac_func" >&5
9590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9591   echo $ac_n "(cached) $ac_c" 1>&6
9592 else
9593   cat > conftest.$ac_ext <<EOF
9594 #line 9595 "configure"
9595 #include "confdefs.h"
9596 /* System header to define __stub macros and hopefully few prototypes,
9597     which can conflict with char $ac_func(); below.  */
9598 #include <assert.h>
9599 /* Override any gcc2 internal prototype to avoid an error.  */
9600 /* We use char because int might match the return type of a gcc2
9601     builtin and then its argument prototype would still apply.  */
9602 char $ac_func();
9603
9604 int main() {
9605
9606 /* The GNU C library defines this for functions which it implements
9607     to always fail with ENOSYS.  Some functions are actually named
9608     something starting with __ and the normal name is an alias.  */
9609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9610 choke me
9611 #else
9612 $ac_func();
9613 #endif
9614
9615 ; return 0; }
9616 EOF
9617 if { (eval echo configure:9618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9618   rm -rf conftest*
9619   eval "ac_cv_func_$ac_func=yes"
9620 else
9621   echo "configure: failed program was:" >&5
9622   cat conftest.$ac_ext >&5
9623   rm -rf conftest*
9624   eval "ac_cv_func_$ac_func=no"
9625 fi
9626 rm -f conftest*
9627 fi
9628
9629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9630   echo "$ac_t""yes" 1>&6
9631     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9632   cat >> confdefs.h <<EOF
9633 #define $ac_tr_func 1
9634 EOF
9635  
9636 else
9637   echo "$ac_t""no" 1>&6
9638 \
9639     ac_wfuncs=no
9640 fi
9641 done
9642
9643
9644     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9645 echo "configure:9646: checking for ISO C99 wchar_t support" >&5
9646     if test x"$has_weof" = xyes &&
9647        test x"$has_wchar_minmax" = xyes &&
9648        test x"$ac_wfuncs" = xyes; then
9649       ac_isoC99_wchar_t=yes
9650     else
9651       ac_isoC99_wchar_t=no
9652     fi
9653     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9654   
9655             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9656 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9657 echo "configure:9658: checking for iconv.h" >&5
9658 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9659   echo $ac_n "(cached) $ac_c" 1>&6
9660 else
9661   cat > conftest.$ac_ext <<EOF
9662 #line 9663 "configure"
9663 #include "confdefs.h"
9664 #include <iconv.h>
9665 EOF
9666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9667 { (eval echo configure:9668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9669 if test -z "$ac_err"; then
9670   rm -rf conftest*
9671   eval "ac_cv_header_$ac_safe=yes"
9672 else
9673   echo "$ac_err" >&5
9674   echo "configure: failed program was:" >&5
9675   cat conftest.$ac_ext >&5
9676   rm -rf conftest*
9677   eval "ac_cv_header_$ac_safe=no"
9678 fi
9679 rm -f conftest*
9680 fi
9681 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9682   echo "$ac_t""yes" 1>&6
9683   ac_has_iconv_h=yes
9684 else
9685   echo "$ac_t""no" 1>&6
9686 ac_has_iconv_h=no
9687 fi
9688
9689     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9690 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9691 echo "configure:9692: checking for langinfo.h" >&5
9692 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9693   echo $ac_n "(cached) $ac_c" 1>&6
9694 else
9695   cat > conftest.$ac_ext <<EOF
9696 #line 9697 "configure"
9697 #include "confdefs.h"
9698 #include <langinfo.h>
9699 EOF
9700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9701 { (eval echo configure:9702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9703 if test -z "$ac_err"; then
9704   rm -rf conftest*
9705   eval "ac_cv_header_$ac_safe=yes"
9706 else
9707   echo "$ac_err" >&5
9708   echo "configure: failed program was:" >&5
9709   cat conftest.$ac_ext >&5
9710   rm -rf conftest*
9711   eval "ac_cv_header_$ac_safe=no"
9712 fi
9713 rm -f conftest*
9714 fi
9715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9716   echo "$ac_t""yes" 1>&6
9717   ac_has_langinfo_h=yes
9718 else
9719   echo "$ac_t""no" 1>&6
9720 ac_has_langinfo_h=no
9721 fi
9722
9723
9724         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9725 echo "configure:9726: checking for iconv in -liconv" >&5
9726 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9728   echo $ac_n "(cached) $ac_c" 1>&6
9729 else
9730   ac_save_LIBS="$LIBS"
9731 LIBS="-liconv  $LIBS"
9732 cat > conftest.$ac_ext <<EOF
9733 #line 9734 "configure"
9734 #include "confdefs.h"
9735 /* Override any gcc2 internal prototype to avoid an error.  */
9736 /* We use char because int might match the return type of a gcc2
9737     builtin and then its argument prototype would still apply.  */
9738 char iconv();
9739
9740 int main() {
9741 iconv()
9742 ; return 0; }
9743 EOF
9744 if { (eval echo configure:9745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9745   rm -rf conftest*
9746   eval "ac_cv_lib_$ac_lib_var=yes"
9747 else
9748   echo "configure: failed program was:" >&5
9749   cat conftest.$ac_ext >&5
9750   rm -rf conftest*
9751   eval "ac_cv_lib_$ac_lib_var=no"
9752 fi
9753 rm -f conftest*
9754 LIBS="$ac_save_LIBS"
9755
9756 fi
9757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9758   echo "$ac_t""yes" 1>&6
9759   libiconv="-liconv"
9760 else
9761   echo "$ac_t""no" 1>&6
9762 fi
9763
9764     ac_save_LIBS="$LIBS"
9765     LIBS="$LIBS $libiconv"
9766
9767     for ac_func in iconv_open iconv_close iconv nl_langinfo
9768 do
9769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9770 echo "configure:9771: checking for $ac_func" >&5
9771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9772   echo $ac_n "(cached) $ac_c" 1>&6
9773 else
9774   cat > conftest.$ac_ext <<EOF
9775 #line 9776 "configure"
9776 #include "confdefs.h"
9777 /* System header to define __stub macros and hopefully few prototypes,
9778     which can conflict with char $ac_func(); below.  */
9779 #include <assert.h>
9780 /* Override any gcc2 internal prototype to avoid an error.  */
9781 /* We use char because int might match the return type of a gcc2
9782     builtin and then its argument prototype would still apply.  */
9783 char $ac_func();
9784
9785 int main() {
9786
9787 /* The GNU C library defines this for functions which it implements
9788     to always fail with ENOSYS.  Some functions are actually named
9789     something starting with __ and the normal name is an alias.  */
9790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9791 choke me
9792 #else
9793 $ac_func();
9794 #endif
9795
9796 ; return 0; }
9797 EOF
9798 if { (eval echo configure:9799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9799   rm -rf conftest*
9800   eval "ac_cv_func_$ac_func=yes"
9801 else
9802   echo "configure: failed program was:" >&5
9803   cat conftest.$ac_ext >&5
9804   rm -rf conftest*
9805   eval "ac_cv_func_$ac_func=no"
9806 fi
9807 rm -f conftest*
9808 fi
9809
9810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9811   echo "$ac_t""yes" 1>&6
9812     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9813   cat >> confdefs.h <<EOF
9814 #define $ac_tr_func 1
9815 EOF
9816  \
9817     ac_XPG2funcs=yes
9818 else
9819   echo "$ac_t""no" 1>&6
9820 ac_XPG2funcs=no
9821 fi
9822 done
9823
9824   
9825     LIBS="$ac_save_LIBS"
9826
9827     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9828 echo "configure:9829: checking for XPG2 wchar_t support" >&5
9829     if test x"$ac_has_iconv_h" = xyes &&
9830        test x"$ac_has_langinfo_h" = xyes &&
9831        test x"$ac_XPG2funcs" = xyes; then
9832       ac_XPG2_wchar_t=yes
9833     else
9834       ac_XPG2_wchar_t=no
9835     fi
9836     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9837   
9838             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9839 echo "configure:9840: checking for enabled wchar_t specializations" >&5
9840     if test x"$ac_isoC99_wchar_t" = xyes &&
9841        test x"$ac_XPG2_wchar_t" = xyes; then
9842       cat >> confdefs.h <<\EOF
9843 #define _GLIBCPP_USE_WCHAR_T 1
9844 EOF
9845
9846       echo "$ac_t"""yes"" 1>&6
9847     else
9848       echo "$ac_t"""no"" 1>&6
9849     fi
9850   else
9851         echo "configure: warning: wchar_t support disabled." 1>&2
9852   fi
9853
9854       os_include_dir="os/qnx/qnx6.1"
9855       cat >> confdefs.h <<\EOF
9856 #define HAVE_COSF 1
9857 EOF
9858
9859       cat >> confdefs.h <<\EOF
9860 #define HAVE_COSL 1
9861 EOF
9862
9863       cat >> confdefs.h <<\EOF
9864 #define HAVE_COSHF 1
9865 EOF
9866
9867       cat >> confdefs.h <<\EOF
9868 #define HAVE_COSHL 1
9869 EOF
9870
9871       cat >> confdefs.h <<\EOF
9872 #define HAVE_LOGF 1
9873 EOF
9874
9875       cat >> confdefs.h <<\EOF
9876 #define HAVE_LOGL 1
9877 EOF
9878
9879       cat >> confdefs.h <<\EOF
9880 #define HAVE_LOG10F 1
9881 EOF
9882
9883       cat >> confdefs.h <<\EOF
9884 #define HAVE_LOG10L 1
9885 EOF
9886
9887       cat >> confdefs.h <<\EOF
9888 #define HAVE_SINF 1
9889 EOF
9890
9891       cat >> confdefs.h <<\EOF
9892 #define HAVE_SINL 1
9893 EOF
9894
9895       cat >> confdefs.h <<\EOF
9896 #define HAVE_SINHF 1
9897 EOF
9898
9899       cat >> confdefs.h <<\EOF
9900 #define HAVE_SINHL 1
9901 EOF
9902
9903       ;;
9904     *)
9905       os_include_dir="os/newlib"
9906       cat >> confdefs.h <<\EOF
9907 #define HAVE_HYPOT 1
9908 EOF
9909
9910       ;;
9911   esac
9912
9913   case "$target" in
9914     *-mingw32*)
9915       ;;
9916     *-windiss*)
9917       cat >> confdefs.h <<\EOF
9918 #define HAVE_ACOSF 1
9919 EOF
9920
9921       cat >> confdefs.h <<\EOF
9922 #define HAVE_ASINF 1
9923 EOF
9924
9925       cat >> confdefs.h <<\EOF
9926 #define HAVE_ATAN2F 1
9927 EOF
9928
9929       cat >> confdefs.h <<\EOF
9930 #define HAVE_ATANF 1
9931 EOF
9932
9933       cat >> confdefs.h <<\EOF
9934 #define HAVE_CEILF 1
9935 EOF
9936
9937       cat >> confdefs.h <<\EOF
9938 #define HAVE_COPYSIGN 1
9939 EOF
9940
9941       cat >> confdefs.h <<\EOF
9942 #define HAVE_COPYSIGNF 1
9943 EOF
9944
9945       cat >> confdefs.h <<\EOF
9946 #define HAVE_COSF 1
9947 EOF
9948
9949       cat >> confdefs.h <<\EOF
9950 #define HAVE_COSHF 1
9951 EOF
9952
9953       cat >> confdefs.h <<\EOF
9954 #define HAVE_EXPF 1
9955 EOF
9956
9957       cat >> confdefs.h <<\EOF
9958 #define HAVE_FABSF 1
9959 EOF
9960
9961       cat >> confdefs.h <<\EOF
9962 #define HAVE_FLOORF 1
9963 EOF
9964
9965       cat >> confdefs.h <<\EOF
9966 #define HAVE_FMODF 1
9967 EOF
9968
9969       cat >> confdefs.h <<\EOF
9970 #define HAVE_FREXPF 1
9971 EOF
9972
9973       cat >> confdefs.h <<\EOF
9974 #define HAVE_LDEXPF 1
9975 EOF
9976
9977       cat >> confdefs.h <<\EOF
9978 #define HAVE_LOG10F 1
9979 EOF
9980
9981       cat >> confdefs.h <<\EOF
9982 #define HAVE_LOGF 1
9983 EOF
9984
9985       cat >> confdefs.h <<\EOF
9986 #define HAVE_MODFF 1
9987 EOF
9988
9989       cat >> confdefs.h <<\EOF
9990 #define HAVE_POWF 1
9991 EOF
9992
9993       cat >> confdefs.h <<\EOF
9994 #define HAVE_SINF 1
9995 EOF
9996
9997       cat >> confdefs.h <<\EOF
9998 #define HAVE_SINHF 1
9999 EOF
10000
10001       cat >> confdefs.h <<\EOF
10002 #define HAVE_SQRTF 1
10003 EOF
10004
10005       cat >> confdefs.h <<\EOF
10006 #define HAVE_TANF 1
10007 EOF
10008
10009       cat >> confdefs.h <<\EOF
10010 #define HAVE_TANHF 1
10011 EOF
10012
10013       ;;
10014     *-freebsd*)
10015       # Must replicate generic section since we don't have strtof or strtold.
10016       cat >> confdefs.h <<\EOF
10017 #define HAVE_MMAP 1
10018 EOF
10019
10020       cat >> confdefs.h <<\EOF
10021 #define HAVE_ACOSF 1
10022 EOF
10023
10024       cat >> confdefs.h <<\EOF
10025 #define HAVE_ASINF 1
10026 EOF
10027
10028       cat >> confdefs.h <<\EOF
10029 #define HAVE_ATAN2F 1
10030 EOF
10031
10032       cat >> confdefs.h <<\EOF
10033 #define HAVE_ATANF 1
10034 EOF
10035
10036       cat >> confdefs.h <<\EOF
10037 #define HAVE_CEILF 1
10038 EOF
10039
10040       cat >> confdefs.h <<\EOF
10041 #define HAVE_COPYSIGN 1
10042 EOF
10043
10044       cat >> confdefs.h <<\EOF
10045 #define HAVE_COPYSIGNF 1
10046 EOF
10047
10048       cat >> confdefs.h <<\EOF
10049 #define HAVE_COSF 1
10050 EOF
10051
10052       cat >> confdefs.h <<\EOF
10053 #define HAVE_COSHF 1
10054 EOF
10055
10056       cat >> confdefs.h <<\EOF
10057 #define HAVE_EXPF 1
10058 EOF
10059
10060       cat >> confdefs.h <<\EOF
10061 #define HAVE_FABSF 1
10062 EOF
10063
10064       cat >> confdefs.h <<\EOF
10065 #define HAVE_FLOORF 1
10066 EOF
10067
10068       cat >> confdefs.h <<\EOF
10069 #define HAVE_FMODF 1
10070 EOF
10071
10072       cat >> confdefs.h <<\EOF
10073 #define HAVE_FREXPF 1
10074 EOF
10075
10076       cat >> confdefs.h <<\EOF
10077 #define HAVE_LDEXPF 1
10078 EOF
10079
10080       cat >> confdefs.h <<\EOF
10081 #define HAVE_LOG10F 1
10082 EOF
10083
10084       cat >> confdefs.h <<\EOF
10085 #define HAVE_LOGF 1
10086 EOF
10087
10088       cat >> confdefs.h <<\EOF
10089 #define HAVE_MODFF 1
10090 EOF
10091
10092       cat >> confdefs.h <<\EOF
10093 #define HAVE_POWF 1
10094 EOF
10095
10096       cat >> confdefs.h <<\EOF
10097 #define HAVE_SINF 1
10098 EOF
10099
10100       cat >> confdefs.h <<\EOF
10101 #define HAVE_SINHF 1
10102 EOF
10103
10104       cat >> confdefs.h <<\EOF
10105 #define HAVE_SQRTF 1
10106 EOF
10107
10108       cat >> confdefs.h <<\EOF
10109 #define HAVE_TANF 1
10110 EOF
10111
10112       cat >> confdefs.h <<\EOF
10113 #define HAVE_TANHF 1
10114 EOF
10115
10116       ;;
10117     *)
10118       # GLIBCPP_CHECK_STDLIB_SUPPORT
10119       cat >> confdefs.h <<\EOF
10120 #define HAVE_STRTOF 1
10121 EOF
10122         
10123       cat >> confdefs.h <<\EOF
10124 #define HAVE_STRTOLD 1
10125 EOF
10126         
10127       # AC_FUNC_MMAP
10128       cat >> confdefs.h <<\EOF
10129 #define HAVE_MMAP 1
10130 EOF
10131
10132
10133       cat >> confdefs.h <<\EOF
10134 #define HAVE_ACOSF 1
10135 EOF
10136
10137       cat >> confdefs.h <<\EOF
10138 #define HAVE_ASINF 1
10139 EOF
10140
10141       cat >> confdefs.h <<\EOF
10142 #define HAVE_ATAN2F 1
10143 EOF
10144
10145       cat >> confdefs.h <<\EOF
10146 #define HAVE_ATANF 1
10147 EOF
10148
10149       cat >> confdefs.h <<\EOF
10150 #define HAVE_CEILF 1
10151 EOF
10152
10153       cat >> confdefs.h <<\EOF
10154 #define HAVE_COPYSIGN 1
10155 EOF
10156
10157       cat >> confdefs.h <<\EOF
10158 #define HAVE_COPYSIGNF 1
10159 EOF
10160
10161       cat >> confdefs.h <<\EOF
10162 #define HAVE_COSF 1
10163 EOF
10164
10165       cat >> confdefs.h <<\EOF
10166 #define HAVE_COSHF 1
10167 EOF
10168
10169       cat >> confdefs.h <<\EOF
10170 #define HAVE_EXPF 1
10171 EOF
10172
10173       cat >> confdefs.h <<\EOF
10174 #define HAVE_FABSF 1
10175 EOF
10176
10177       cat >> confdefs.h <<\EOF
10178 #define HAVE_FLOORF 1
10179 EOF
10180
10181       cat >> confdefs.h <<\EOF
10182 #define HAVE_FMODF 1
10183 EOF
10184
10185       cat >> confdefs.h <<\EOF
10186 #define HAVE_FREXPF 1
10187 EOF
10188
10189       cat >> confdefs.h <<\EOF
10190 #define HAVE_LDEXPF 1
10191 EOF
10192
10193       cat >> confdefs.h <<\EOF
10194 #define HAVE_LOG10F 1
10195 EOF
10196
10197       cat >> confdefs.h <<\EOF
10198 #define HAVE_LOGF 1
10199 EOF
10200
10201       cat >> confdefs.h <<\EOF
10202 #define HAVE_MODFF 1
10203 EOF
10204
10205       cat >> confdefs.h <<\EOF
10206 #define HAVE_POWF 1
10207 EOF
10208
10209       cat >> confdefs.h <<\EOF
10210 #define HAVE_SINF 1
10211 EOF
10212
10213       cat >> confdefs.h <<\EOF
10214 #define HAVE_SINHF 1
10215 EOF
10216
10217       cat >> confdefs.h <<\EOF
10218 #define HAVE_SQRTF 1
10219 EOF
10220
10221       cat >> confdefs.h <<\EOF
10222 #define HAVE_TANF 1
10223 EOF
10224
10225       cat >> confdefs.h <<\EOF
10226 #define HAVE_TANHF 1
10227 EOF
10228
10229       ;;
10230   esac
10231
10232   # At some point, we should differentiate between architectures
10233   # like x86, which have long double versions, and alpha/powerpc/etc.,
10234   # which don't. For the time being, punt.
10235   if test x"long_double_math_on_this_cpu" = x"yes"; then
10236     cat >> confdefs.h <<\EOF
10237 #define HAVE_ACOSL 1
10238 EOF
10239
10240     cat >> confdefs.h <<\EOF
10241 #define HAVE_ASINL 1
10242 EOF
10243
10244     cat >> confdefs.h <<\EOF
10245 #define HAVE_ATAN2L 1
10246 EOF
10247
10248     cat >> confdefs.h <<\EOF
10249 #define HAVE_ATANL 1
10250 EOF
10251
10252     cat >> confdefs.h <<\EOF
10253 #define HAVE_CEILL 1
10254 EOF
10255
10256     cat >> confdefs.h <<\EOF
10257 #define HAVE_COPYSIGNL 1
10258 EOF
10259
10260     cat >> confdefs.h <<\EOF
10261 #define HAVE_COSL 1
10262 EOF
10263
10264     cat >> confdefs.h <<\EOF
10265 #define HAVE_COSHL 1
10266 EOF
10267
10268     cat >> confdefs.h <<\EOF
10269 #define HAVE_EXPL 1
10270 EOF
10271
10272     cat >> confdefs.h <<\EOF
10273 #define HAVE_FABSL 1
10274 EOF
10275
10276     cat >> confdefs.h <<\EOF
10277 #define HAVE_FLOORL 1
10278 EOF
10279
10280     cat >> confdefs.h <<\EOF
10281 #define HAVE_FMODL 1
10282 EOF
10283
10284     cat >> confdefs.h <<\EOF
10285 #define HAVE_FREXPL 1
10286 EOF
10287
10288     cat >> confdefs.h <<\EOF
10289 #define HAVE_LDEXPL 1
10290 EOF
10291
10292     cat >> confdefs.h <<\EOF
10293 #define HAVE_LOG10L 1
10294 EOF
10295
10296     cat >> confdefs.h <<\EOF
10297 #define HAVE_LOGL 1
10298 EOF
10299
10300     cat >> confdefs.h <<\EOF
10301 #define HAVE_MODFL 1
10302 EOF
10303
10304     cat >> confdefs.h <<\EOF
10305 #define HAVE_POWL 1
10306 EOF
10307
10308     cat >> confdefs.h <<\EOF
10309 #define HAVE_SINCOSL 1
10310 EOF
10311
10312     cat >> confdefs.h <<\EOF
10313 #define HAVE_SINL 1
10314 EOF
10315
10316     cat >> confdefs.h <<\EOF
10317 #define HAVE_SINHL 1
10318 EOF
10319
10320     cat >> confdefs.h <<\EOF
10321 #define HAVE_SQRTL 1
10322 EOF
10323
10324     cat >> confdefs.h <<\EOF
10325 #define HAVE_TANL 1
10326 EOF
10327
10328     cat >> confdefs.h <<\EOF
10329 #define HAVE_TANHL 1
10330 EOF
10331
10332   fi
10333
10334 else
10335
10336   # We are being configured natively. We can do more elaborate tests
10337   # that include AC_TRY_COMPILE now, as the linker is assumed to be
10338   # working.
10339   GLIBCPP_IS_CROSS_COMPILING=0
10340   CANADIAN=no
10341
10342   # Check for available headers.
10343   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10344   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
10345 do
10346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10348 echo "configure:10349: checking for $ac_hdr" >&5
10349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10350   echo $ac_n "(cached) $ac_c" 1>&6
10351 else
10352   cat > conftest.$ac_ext <<EOF
10353 #line 10354 "configure"
10354 #include "confdefs.h"
10355 #include <$ac_hdr>
10356 EOF
10357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10358 { (eval echo configure:10359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10360 if test -z "$ac_err"; then
10361   rm -rf conftest*
10362   eval "ac_cv_header_$ac_safe=yes"
10363 else
10364   echo "$ac_err" >&5
10365   echo "configure: failed program was:" >&5
10366   cat conftest.$ac_ext >&5
10367   rm -rf conftest*
10368   eval "ac_cv_header_$ac_safe=no"
10369 fi
10370 rm -f conftest*
10371 fi
10372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10373   echo "$ac_t""yes" 1>&6
10374     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10375   cat >> confdefs.h <<EOF
10376 #define $ac_tr_hdr 1
10377 EOF
10378  
10379 else
10380   echo "$ac_t""no" 1>&6
10381 fi
10382 done
10383
10384
10385   
10386   # All these tests are for C++; save the language and the compiler flags.
10387   # The CXXFLAGS thing is suspicious, but based on similar bits previously
10388   # found in GLIBCPP_CONFIGURE.
10389   
10390   ac_ext=C
10391 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10392 ac_cpp='$CXXCPP $CPPFLAGS'
10393 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10394 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10395 cross_compiling=$ac_cv_prog_cxx_cross
10396
10397   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10398   ac_save_CXXFLAGS="$CXXFLAGS"
10399
10400   # Check for maintainer-mode bits.
10401   if test x"$USE_MAINTAINER_MODE" = xno; then
10402     WERROR=''
10403   else
10404     WERROR='-Werror'
10405   fi
10406
10407   # Check for -ffunction-sections -fdata-sections
10408   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10409 echo "configure:10410: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10410   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10411   cat > conftest.$ac_ext <<EOF
10412 #line 10413 "configure"
10413 #include "confdefs.h"
10414
10415 int main() {
10416 int foo;
10417   
10418 ; return 0; }
10419 EOF
10420 if { (eval echo configure:10421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10421   rm -rf conftest*
10422   ac_fdsections=yes
10423 else
10424   echo "configure: failed program was:" >&5
10425   cat conftest.$ac_ext >&5
10426   rm -rf conftest*
10427   ac_fdsections=no
10428 fi
10429 rm -f conftest*
10430   if test "$ac_test_CXXFLAGS" = set; then
10431     CXXFLAGS="$ac_save_CXXFLAGS"
10432   else
10433     # this is the suspicious part
10434     CXXFLAGS=''
10435   fi
10436   if test x"$ac_fdsections" = x"yes" &&
10437      test x"$enable_debug" = x"no"; then
10438     SECTION_FLAGS='-ffunction-sections -fdata-sections'
10439   fi
10440   echo "$ac_t""$ac_fdsections" 1>&6
10441
10442   ac_ext=c
10443 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10444 ac_cpp='$CPP $CPPFLAGS'
10445 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10446 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10447 cross_compiling=$ac_cv_prog_cc_cross
10448
10449   
10450   
10451
10452   
10453   # If we're not using GNU ld, then there's no point in even trying these
10454   # tests.  Check for that first.  We should have already tested for gld
10455   # by now (in libtool), but require it now just to be safe...
10456   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10457   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10458   
10459
10460   # The name set by libtool depends on the version of libtool.  Shame on us
10461   # for depending on an impl detail, but c'est la vie.  Older versions used
10462   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10463   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10464   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
10465   # set (hence we're using an older libtool), then set it.
10466   if test x${with_gnu_ld+set} != xset; then
10467     if test x${ac_cv_prog_gnu_ld+set} != xset; then
10468       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
10469       with_gnu_ld=no
10470     else
10471       with_gnu_ld=$ac_cv_prog_gnu_ld
10472     fi
10473   fi
10474
10475   # Start by getting the version number.  I think the libtool test already
10476   # does some of this, but throws away the result.
10477   
10478   ldver=`$LD --version 2>/dev/null | head -1 | \
10479          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10480   
10481   glibcpp_gnu_ld_version=`echo $ldver | \
10482          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10483
10484   # Set --gc-sections.
10485   if test "$with_gnu_ld" = "notbroken"; then
10486     # GNU ld it is!  Joy and bunny rabbits!
10487
10488     # All these tests are for C++; save the language and the compiler flags.
10489     # Need to do this so that g++ won't try to link in libstdc++
10490     ac_test_CFLAGS="${CFLAGS+set}"
10491     ac_save_CFLAGS="$CFLAGS"
10492     CFLAGS='-x c++  -Wl,--gc-sections'
10493
10494     # Check for -Wl,--gc-sections
10495     # XXX This test is broken at the moment, as symbols required for
10496     # linking are now in libsupc++ (not built yet.....). In addition, 
10497     # this test has cored on solaris in the past. In addition,
10498     # --gc-sections doesn't really work at the moment (keeps on discarding
10499     # used sections, first .eh_frame and now some of the glibc sections for
10500     # iconv). Bzzzzt. Thanks for playing, maybe next time.
10501     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10502 echo "configure:10503: checking for ld that supports -Wl,--gc-sections" >&5
10503     if test "$cross_compiling" = yes; then
10504   ac_sectionLDflags=yes
10505 else
10506   cat > conftest.$ac_ext <<EOF
10507 #line 10508 "configure"
10508 #include "confdefs.h"
10509
10510      int main(void) 
10511      {
10512        try { throw 1; }
10513        catch (...) { };
10514        return 0;
10515      }
10516     
10517 EOF
10518 if { (eval echo configure:10519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10519 then
10520   ac_sectionLDflags=yes
10521 else
10522   echo "configure: failed program was:" >&5
10523   cat conftest.$ac_ext >&5
10524   rm -fr conftest*
10525   ac_sectionLDflags=no
10526 fi
10527 rm -fr conftest*
10528 fi
10529
10530     if test "$ac_test_CFLAGS" = set; then
10531       CFLAGS="$ac_save_CFLAGS"
10532     else
10533       # this is the suspicious part
10534       CFLAGS=''
10535     fi
10536     if test "$ac_sectionLDflags" = "yes"; then
10537       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10538     fi
10539     echo "$ac_t""$ac_sectionLDflags" 1>&6
10540   fi
10541
10542   # Set linker optimization flags.
10543   if test x"$with_gnu_ld" = x"yes" && test x"$enable_debug" = x"no"; then
10544     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10545   fi
10546
10547   
10548   
10549
10550   
10551       
10552   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
10553 echo "configure:10554: checking for __builtin_abs declaration" >&5
10554   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
10555     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
10556   echo $ac_n "(cached) $ac_c" 1>&6
10557 else
10558   
10559       
10560       ac_ext=C
10561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10562 ac_cpp='$CXXCPP $CPPFLAGS'
10563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10565 cross_compiling=$ac_cv_prog_cxx_cross
10566
10567       cat > conftest.$ac_ext <<EOF
10568 #line 10569 "configure"
10569 #include "confdefs.h"
10570 #include <math.h>
10571 int main() {
10572  __builtin_abs(0);
10573 ; return 0; }
10574 EOF
10575 if { (eval echo configure:10576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10576   rm -rf conftest*
10577   glibcpp_cv_func___builtin_abs_use=yes
10578 else
10579   echo "configure: failed program was:" >&5
10580   cat conftest.$ac_ext >&5
10581   rm -rf conftest*
10582   glibcpp_cv_func___builtin_abs_use=no
10583 fi
10584 rm -f conftest*
10585       ac_ext=c
10586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10587 ac_cpp='$CPP $CPPFLAGS'
10588 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10589 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10590 cross_compiling=$ac_cv_prog_cc_cross
10591
10592     
10593 fi
10594
10595   fi
10596   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
10597   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
10598     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
10599 echo "configure:10600: checking for __builtin_abs linkage" >&5
10600     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
10601       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
10602   echo $ac_n "(cached) $ac_c" 1>&6
10603 else
10604   
10605         cat > conftest.$ac_ext <<EOF
10606 #line 10607 "configure"
10607 #include "confdefs.h"
10608 #include <math.h>
10609 int main() {
10610  __builtin_abs(0);
10611 ; return 0; }
10612 EOF
10613 if { (eval echo configure:10614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10614   rm -rf conftest*
10615   glibcpp_cv_func___builtin_abs_link=yes
10616 else
10617   echo "configure: failed program was:" >&5
10618   cat conftest.$ac_ext >&5
10619   rm -rf conftest*
10620   glibcpp_cv_func___builtin_abs_link=no
10621 fi
10622 rm -f conftest*
10623       
10624 fi
10625
10626     fi
10627     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
10628     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
10629       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10630       cat >> confdefs.h <<EOF
10631 #define ${ac_tr_func} 1
10632 EOF
10633
10634     fi
10635   fi
10636
10637   
10638   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
10639 echo "configure:10640: checking for __builtin_fabsf declaration" >&5
10640   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
10641     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
10642   echo $ac_n "(cached) $ac_c" 1>&6
10643 else
10644   
10645       
10646       ac_ext=C
10647 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10648 ac_cpp='$CXXCPP $CPPFLAGS'
10649 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10650 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10651 cross_compiling=$ac_cv_prog_cxx_cross
10652
10653       cat > conftest.$ac_ext <<EOF
10654 #line 10655 "configure"
10655 #include "confdefs.h"
10656 #include <math.h>
10657 int main() {
10658  __builtin_fabsf(0);
10659 ; return 0; }
10660 EOF
10661 if { (eval echo configure:10662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10662   rm -rf conftest*
10663   glibcpp_cv_func___builtin_fabsf_use=yes
10664 else
10665   echo "configure: failed program was:" >&5
10666   cat conftest.$ac_ext >&5
10667   rm -rf conftest*
10668   glibcpp_cv_func___builtin_fabsf_use=no
10669 fi
10670 rm -f conftest*
10671       ac_ext=c
10672 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10673 ac_cpp='$CPP $CPPFLAGS'
10674 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10675 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10676 cross_compiling=$ac_cv_prog_cc_cross
10677
10678     
10679 fi
10680
10681   fi
10682   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
10683   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
10684     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
10685 echo "configure:10686: checking for __builtin_fabsf linkage" >&5
10686     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
10687       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
10688   echo $ac_n "(cached) $ac_c" 1>&6
10689 else
10690   
10691         cat > conftest.$ac_ext <<EOF
10692 #line 10693 "configure"
10693 #include "confdefs.h"
10694 #include <math.h>
10695 int main() {
10696  __builtin_fabsf(0);
10697 ; return 0; }
10698 EOF
10699 if { (eval echo configure:10700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10700   rm -rf conftest*
10701   glibcpp_cv_func___builtin_fabsf_link=yes
10702 else
10703   echo "configure: failed program was:" >&5
10704   cat conftest.$ac_ext >&5
10705   rm -rf conftest*
10706   glibcpp_cv_func___builtin_fabsf_link=no
10707 fi
10708 rm -f conftest*
10709       
10710 fi
10711
10712     fi
10713     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
10714     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
10715       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10716       cat >> confdefs.h <<EOF
10717 #define ${ac_tr_func} 1
10718 EOF
10719
10720     fi
10721   fi
10722
10723   
10724   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
10725 echo "configure:10726: checking for __builtin_fabs declaration" >&5
10726   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
10727     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
10728   echo $ac_n "(cached) $ac_c" 1>&6
10729 else
10730   
10731       
10732       ac_ext=C
10733 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10734 ac_cpp='$CXXCPP $CPPFLAGS'
10735 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10736 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10737 cross_compiling=$ac_cv_prog_cxx_cross
10738
10739       cat > conftest.$ac_ext <<EOF
10740 #line 10741 "configure"
10741 #include "confdefs.h"
10742 #include <math.h>
10743 int main() {
10744  __builtin_fabs(0);
10745 ; return 0; }
10746 EOF
10747 if { (eval echo configure:10748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10748   rm -rf conftest*
10749   glibcpp_cv_func___builtin_fabs_use=yes
10750 else
10751   echo "configure: failed program was:" >&5
10752   cat conftest.$ac_ext >&5
10753   rm -rf conftest*
10754   glibcpp_cv_func___builtin_fabs_use=no
10755 fi
10756 rm -f conftest*
10757       ac_ext=c
10758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10759 ac_cpp='$CPP $CPPFLAGS'
10760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10762 cross_compiling=$ac_cv_prog_cc_cross
10763
10764     
10765 fi
10766
10767   fi
10768   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
10769   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
10770     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
10771 echo "configure:10772: checking for __builtin_fabs linkage" >&5
10772     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
10773       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
10774   echo $ac_n "(cached) $ac_c" 1>&6
10775 else
10776   
10777         cat > conftest.$ac_ext <<EOF
10778 #line 10779 "configure"
10779 #include "confdefs.h"
10780 #include <math.h>
10781 int main() {
10782  __builtin_fabs(0);
10783 ; return 0; }
10784 EOF
10785 if { (eval echo configure:10786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10786   rm -rf conftest*
10787   glibcpp_cv_func___builtin_fabs_link=yes
10788 else
10789   echo "configure: failed program was:" >&5
10790   cat conftest.$ac_ext >&5
10791   rm -rf conftest*
10792   glibcpp_cv_func___builtin_fabs_link=no
10793 fi
10794 rm -f conftest*
10795       
10796 fi
10797
10798     fi
10799     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
10800     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
10801       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10802       cat >> confdefs.h <<EOF
10803 #define ${ac_tr_func} 1
10804 EOF
10805
10806     fi
10807   fi
10808
10809   
10810   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
10811 echo "configure:10812: checking for __builtin_fabsl declaration" >&5
10812   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
10813     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
10814   echo $ac_n "(cached) $ac_c" 1>&6
10815 else
10816   
10817       
10818       ac_ext=C
10819 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10820 ac_cpp='$CXXCPP $CPPFLAGS'
10821 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10822 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10823 cross_compiling=$ac_cv_prog_cxx_cross
10824
10825       cat > conftest.$ac_ext <<EOF
10826 #line 10827 "configure"
10827 #include "confdefs.h"
10828 #include <math.h>
10829 int main() {
10830  __builtin_fabsl(0);
10831 ; return 0; }
10832 EOF
10833 if { (eval echo configure:10834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10834   rm -rf conftest*
10835   glibcpp_cv_func___builtin_fabsl_use=yes
10836 else
10837   echo "configure: failed program was:" >&5
10838   cat conftest.$ac_ext >&5
10839   rm -rf conftest*
10840   glibcpp_cv_func___builtin_fabsl_use=no
10841 fi
10842 rm -f conftest*
10843       ac_ext=c
10844 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10845 ac_cpp='$CPP $CPPFLAGS'
10846 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10847 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10848 cross_compiling=$ac_cv_prog_cc_cross
10849
10850     
10851 fi
10852
10853   fi
10854   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
10855   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
10856     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
10857 echo "configure:10858: checking for __builtin_fabsl linkage" >&5
10858     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
10859       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
10860   echo $ac_n "(cached) $ac_c" 1>&6
10861 else
10862   
10863         cat > conftest.$ac_ext <<EOF
10864 #line 10865 "configure"
10865 #include "confdefs.h"
10866 #include <math.h>
10867 int main() {
10868  __builtin_fabsl(0);
10869 ; return 0; }
10870 EOF
10871 if { (eval echo configure:10872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10872   rm -rf conftest*
10873   glibcpp_cv_func___builtin_fabsl_link=yes
10874 else
10875   echo "configure: failed program was:" >&5
10876   cat conftest.$ac_ext >&5
10877   rm -rf conftest*
10878   glibcpp_cv_func___builtin_fabsl_link=no
10879 fi
10880 rm -f conftest*
10881       
10882 fi
10883
10884     fi
10885     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
10886     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
10887       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10888       cat >> confdefs.h <<EOF
10889 #define ${ac_tr_func} 1
10890 EOF
10891
10892     fi
10893   fi
10894
10895   
10896   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
10897 echo "configure:10898: checking for __builtin_labs declaration" >&5
10898   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
10899     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
10900   echo $ac_n "(cached) $ac_c" 1>&6
10901 else
10902   
10903       
10904       ac_ext=C
10905 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10906 ac_cpp='$CXXCPP $CPPFLAGS'
10907 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10908 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10909 cross_compiling=$ac_cv_prog_cxx_cross
10910
10911       cat > conftest.$ac_ext <<EOF
10912 #line 10913 "configure"
10913 #include "confdefs.h"
10914 #include <math.h>
10915 int main() {
10916  __builtin_labs(0);
10917 ; return 0; }
10918 EOF
10919 if { (eval echo configure:10920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10920   rm -rf conftest*
10921   glibcpp_cv_func___builtin_labs_use=yes
10922 else
10923   echo "configure: failed program was:" >&5
10924   cat conftest.$ac_ext >&5
10925   rm -rf conftest*
10926   glibcpp_cv_func___builtin_labs_use=no
10927 fi
10928 rm -f conftest*
10929       ac_ext=c
10930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10931 ac_cpp='$CPP $CPPFLAGS'
10932 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10933 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10934 cross_compiling=$ac_cv_prog_cc_cross
10935
10936     
10937 fi
10938
10939   fi
10940   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
10941   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
10942     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
10943 echo "configure:10944: checking for __builtin_labs linkage" >&5
10944     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
10945       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
10946   echo $ac_n "(cached) $ac_c" 1>&6
10947 else
10948   
10949         cat > conftest.$ac_ext <<EOF
10950 #line 10951 "configure"
10951 #include "confdefs.h"
10952 #include <math.h>
10953 int main() {
10954  __builtin_labs(0);
10955 ; return 0; }
10956 EOF
10957 if { (eval echo configure:10958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10958   rm -rf conftest*
10959   glibcpp_cv_func___builtin_labs_link=yes
10960 else
10961   echo "configure: failed program was:" >&5
10962   cat conftest.$ac_ext >&5
10963   rm -rf conftest*
10964   glibcpp_cv_func___builtin_labs_link=no
10965 fi
10966 rm -f conftest*
10967       
10968 fi
10969
10970     fi
10971     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
10972     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
10973       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10974       cat >> confdefs.h <<EOF
10975 #define ${ac_tr_func} 1
10976 EOF
10977
10978     fi
10979   fi
10980
10981
10982   
10983   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
10984 echo "configure:10985: checking for __builtin_sqrtf declaration" >&5
10985   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
10986     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_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 int main() {
11003  __builtin_sqrtf(0);
11004 ; return 0; }
11005 EOF
11006 if { (eval echo configure:11007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11007   rm -rf conftest*
11008   glibcpp_cv_func___builtin_sqrtf_use=yes
11009 else
11010   echo "configure: failed program was:" >&5
11011   cat conftest.$ac_ext >&5
11012   rm -rf conftest*
11013   glibcpp_cv_func___builtin_sqrtf_use=no
11014 fi
11015 rm -f conftest*
11016       ac_ext=c
11017 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11018 ac_cpp='$CPP $CPPFLAGS'
11019 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11020 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11021 cross_compiling=$ac_cv_prog_cc_cross
11022
11023     
11024 fi
11025
11026   fi
11027   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
11028   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
11029     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
11030 echo "configure:11031: checking for __builtin_sqrtf linkage" >&5
11031     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
11032       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
11033   echo $ac_n "(cached) $ac_c" 1>&6
11034 else
11035   
11036         cat > conftest.$ac_ext <<EOF
11037 #line 11038 "configure"
11038 #include "confdefs.h"
11039 #include <math.h>
11040 int main() {
11041  __builtin_sqrtf(0);
11042 ; return 0; }
11043 EOF
11044 if { (eval echo configure:11045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11045   rm -rf conftest*
11046   glibcpp_cv_func___builtin_sqrtf_link=yes
11047 else
11048   echo "configure: failed program was:" >&5
11049   cat conftest.$ac_ext >&5
11050   rm -rf conftest*
11051   glibcpp_cv_func___builtin_sqrtf_link=no
11052 fi
11053 rm -f conftest*
11054       
11055 fi
11056
11057     fi
11058     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
11059     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
11060       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11061       cat >> confdefs.h <<EOF
11062 #define ${ac_tr_func} 1
11063 EOF
11064
11065     fi
11066   fi
11067
11068   
11069   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
11070 echo "configure:11071: checking for __builtin_sqrt declaration" >&5
11071   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
11072     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
11073   echo $ac_n "(cached) $ac_c" 1>&6
11074 else
11075   
11076       
11077       ac_ext=C
11078 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11079 ac_cpp='$CXXCPP $CPPFLAGS'
11080 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11081 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11082 cross_compiling=$ac_cv_prog_cxx_cross
11083
11084       cat > conftest.$ac_ext <<EOF
11085 #line 11086 "configure"
11086 #include "confdefs.h"
11087 #include <math.h>
11088 int main() {
11089  __builtin_sqrt(0);
11090 ; return 0; }
11091 EOF
11092 if { (eval echo configure:11093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11093   rm -rf conftest*
11094   glibcpp_cv_func___builtin_sqrt_use=yes
11095 else
11096   echo "configure: failed program was:" >&5
11097   cat conftest.$ac_ext >&5
11098   rm -rf conftest*
11099   glibcpp_cv_func___builtin_sqrt_use=no
11100 fi
11101 rm -f conftest*
11102       ac_ext=c
11103 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11104 ac_cpp='$CPP $CPPFLAGS'
11105 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11106 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11107 cross_compiling=$ac_cv_prog_cc_cross
11108
11109     
11110 fi
11111
11112   fi
11113   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
11114   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
11115     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
11116 echo "configure:11117: checking for __builtin_sqrt linkage" >&5
11117     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
11118       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
11119   echo $ac_n "(cached) $ac_c" 1>&6
11120 else
11121   
11122         cat > conftest.$ac_ext <<EOF
11123 #line 11124 "configure"
11124 #include "confdefs.h"
11125 #include <math.h>
11126 int main() {
11127  __builtin_sqrt(0);
11128 ; return 0; }
11129 EOF
11130 if { (eval echo configure:11131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11131   rm -rf conftest*
11132   glibcpp_cv_func___builtin_sqrt_link=yes
11133 else
11134   echo "configure: failed program was:" >&5
11135   cat conftest.$ac_ext >&5
11136   rm -rf conftest*
11137   glibcpp_cv_func___builtin_sqrt_link=no
11138 fi
11139 rm -f conftest*
11140       
11141 fi
11142
11143     fi
11144     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
11145     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
11146       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11147       cat >> confdefs.h <<EOF
11148 #define ${ac_tr_func} 1
11149 EOF
11150
11151     fi
11152   fi
11153
11154   
11155   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
11156 echo "configure:11157: checking for __builtin_sqrtl declaration" >&5
11157   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
11158     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
11159   echo $ac_n "(cached) $ac_c" 1>&6
11160 else
11161   
11162       
11163       ac_ext=C
11164 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11165 ac_cpp='$CXXCPP $CPPFLAGS'
11166 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11167 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11168 cross_compiling=$ac_cv_prog_cxx_cross
11169
11170       cat > conftest.$ac_ext <<EOF
11171 #line 11172 "configure"
11172 #include "confdefs.h"
11173 #include <math.h>
11174 int main() {
11175  __builtin_sqrtl(0);
11176 ; return 0; }
11177 EOF
11178 if { (eval echo configure:11179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11179   rm -rf conftest*
11180   glibcpp_cv_func___builtin_sqrtl_use=yes
11181 else
11182   echo "configure: failed program was:" >&5
11183   cat conftest.$ac_ext >&5
11184   rm -rf conftest*
11185   glibcpp_cv_func___builtin_sqrtl_use=no
11186 fi
11187 rm -f conftest*
11188       ac_ext=c
11189 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11190 ac_cpp='$CPP $CPPFLAGS'
11191 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11192 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11193 cross_compiling=$ac_cv_prog_cc_cross
11194
11195     
11196 fi
11197
11198   fi
11199   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
11200   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
11201     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
11202 echo "configure:11203: checking for __builtin_sqrtl linkage" >&5
11203     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
11204       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
11205   echo $ac_n "(cached) $ac_c" 1>&6
11206 else
11207   
11208         cat > conftest.$ac_ext <<EOF
11209 #line 11210 "configure"
11210 #include "confdefs.h"
11211 #include <math.h>
11212 int main() {
11213  __builtin_sqrtl(0);
11214 ; return 0; }
11215 EOF
11216 if { (eval echo configure:11217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11217   rm -rf conftest*
11218   glibcpp_cv_func___builtin_sqrtl_link=yes
11219 else
11220   echo "configure: failed program was:" >&5
11221   cat conftest.$ac_ext >&5
11222   rm -rf conftest*
11223   glibcpp_cv_func___builtin_sqrtl_link=no
11224 fi
11225 rm -f conftest*
11226       
11227 fi
11228
11229     fi
11230     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
11231     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
11232       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11233       cat >> confdefs.h <<EOF
11234 #define ${ac_tr_func} 1
11235 EOF
11236
11237     fi
11238   fi
11239
11240
11241   
11242   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
11243 echo "configure:11244: checking for __builtin_sinf declaration" >&5
11244   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
11245     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
11246   echo $ac_n "(cached) $ac_c" 1>&6
11247 else
11248   
11249       
11250       ac_ext=C
11251 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11252 ac_cpp='$CXXCPP $CPPFLAGS'
11253 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11254 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11255 cross_compiling=$ac_cv_prog_cxx_cross
11256
11257       cat > conftest.$ac_ext <<EOF
11258 #line 11259 "configure"
11259 #include "confdefs.h"
11260 #include <math.h>
11261 int main() {
11262  __builtin_sinf(0);
11263 ; return 0; }
11264 EOF
11265 if { (eval echo configure:11266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11266   rm -rf conftest*
11267   glibcpp_cv_func___builtin_sinf_use=yes
11268 else
11269   echo "configure: failed program was:" >&5
11270   cat conftest.$ac_ext >&5
11271   rm -rf conftest*
11272   glibcpp_cv_func___builtin_sinf_use=no
11273 fi
11274 rm -f conftest*
11275       ac_ext=c
11276 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11277 ac_cpp='$CPP $CPPFLAGS'
11278 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11279 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11280 cross_compiling=$ac_cv_prog_cc_cross
11281
11282     
11283 fi
11284
11285   fi
11286   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
11287   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
11288     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
11289 echo "configure:11290: checking for __builtin_sinf linkage" >&5
11290     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
11291       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
11292   echo $ac_n "(cached) $ac_c" 1>&6
11293 else
11294   
11295         cat > conftest.$ac_ext <<EOF
11296 #line 11297 "configure"
11297 #include "confdefs.h"
11298 #include <math.h>
11299 int main() {
11300  __builtin_sinf(0);
11301 ; return 0; }
11302 EOF
11303 if { (eval echo configure:11304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11304   rm -rf conftest*
11305   glibcpp_cv_func___builtin_sinf_link=yes
11306 else
11307   echo "configure: failed program was:" >&5
11308   cat conftest.$ac_ext >&5
11309   rm -rf conftest*
11310   glibcpp_cv_func___builtin_sinf_link=no
11311 fi
11312 rm -f conftest*
11313       
11314 fi
11315
11316     fi
11317     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
11318     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
11319       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11320       cat >> confdefs.h <<EOF
11321 #define ${ac_tr_func} 1
11322 EOF
11323
11324     fi
11325   fi
11326
11327   
11328   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
11329 echo "configure:11330: checking for __builtin_sin declaration" >&5
11330   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
11331     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
11332   echo $ac_n "(cached) $ac_c" 1>&6
11333 else
11334   
11335       
11336       ac_ext=C
11337 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11338 ac_cpp='$CXXCPP $CPPFLAGS'
11339 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11340 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11341 cross_compiling=$ac_cv_prog_cxx_cross
11342
11343       cat > conftest.$ac_ext <<EOF
11344 #line 11345 "configure"
11345 #include "confdefs.h"
11346 #include <math.h>
11347 int main() {
11348  __builtin_sin(0);
11349 ; return 0; }
11350 EOF
11351 if { (eval echo configure:11352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11352   rm -rf conftest*
11353   glibcpp_cv_func___builtin_sin_use=yes
11354 else
11355   echo "configure: failed program was:" >&5
11356   cat conftest.$ac_ext >&5
11357   rm -rf conftest*
11358   glibcpp_cv_func___builtin_sin_use=no
11359 fi
11360 rm -f conftest*
11361       ac_ext=c
11362 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11363 ac_cpp='$CPP $CPPFLAGS'
11364 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11365 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11366 cross_compiling=$ac_cv_prog_cc_cross
11367
11368     
11369 fi
11370
11371   fi
11372   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
11373   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
11374     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
11375 echo "configure:11376: checking for __builtin_sin linkage" >&5
11376     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
11377       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
11378   echo $ac_n "(cached) $ac_c" 1>&6
11379 else
11380   
11381         cat > conftest.$ac_ext <<EOF
11382 #line 11383 "configure"
11383 #include "confdefs.h"
11384 #include <math.h>
11385 int main() {
11386  __builtin_sin(0);
11387 ; return 0; }
11388 EOF
11389 if { (eval echo configure:11390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11390   rm -rf conftest*
11391   glibcpp_cv_func___builtin_sin_link=yes
11392 else
11393   echo "configure: failed program was:" >&5
11394   cat conftest.$ac_ext >&5
11395   rm -rf conftest*
11396   glibcpp_cv_func___builtin_sin_link=no
11397 fi
11398 rm -f conftest*
11399       
11400 fi
11401
11402     fi
11403     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
11404     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
11405       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11406       cat >> confdefs.h <<EOF
11407 #define ${ac_tr_func} 1
11408 EOF
11409
11410     fi
11411   fi
11412
11413   
11414   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
11415 echo "configure:11416: checking for __builtin_sinl declaration" >&5
11416   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
11417     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
11418   echo $ac_n "(cached) $ac_c" 1>&6
11419 else
11420   
11421       
11422       ac_ext=C
11423 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11424 ac_cpp='$CXXCPP $CPPFLAGS'
11425 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11426 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11427 cross_compiling=$ac_cv_prog_cxx_cross
11428
11429       cat > conftest.$ac_ext <<EOF
11430 #line 11431 "configure"
11431 #include "confdefs.h"
11432 #include <math.h>
11433 int main() {
11434  __builtin_sinl(0);
11435 ; return 0; }
11436 EOF
11437 if { (eval echo configure:11438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11438   rm -rf conftest*
11439   glibcpp_cv_func___builtin_sinl_use=yes
11440 else
11441   echo "configure: failed program was:" >&5
11442   cat conftest.$ac_ext >&5
11443   rm -rf conftest*
11444   glibcpp_cv_func___builtin_sinl_use=no
11445 fi
11446 rm -f conftest*
11447       ac_ext=c
11448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11449 ac_cpp='$CPP $CPPFLAGS'
11450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11452 cross_compiling=$ac_cv_prog_cc_cross
11453
11454     
11455 fi
11456
11457   fi
11458   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
11459   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
11460     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
11461 echo "configure:11462: checking for __builtin_sinl linkage" >&5
11462     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
11463       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
11464   echo $ac_n "(cached) $ac_c" 1>&6
11465 else
11466   
11467         cat > conftest.$ac_ext <<EOF
11468 #line 11469 "configure"
11469 #include "confdefs.h"
11470 #include <math.h>
11471 int main() {
11472  __builtin_sinl(0);
11473 ; return 0; }
11474 EOF
11475 if { (eval echo configure:11476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11476   rm -rf conftest*
11477   glibcpp_cv_func___builtin_sinl_link=yes
11478 else
11479   echo "configure: failed program was:" >&5
11480   cat conftest.$ac_ext >&5
11481   rm -rf conftest*
11482   glibcpp_cv_func___builtin_sinl_link=no
11483 fi
11484 rm -f conftest*
11485       
11486 fi
11487
11488     fi
11489     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
11490     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
11491       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11492       cat >> confdefs.h <<EOF
11493 #define ${ac_tr_func} 1
11494 EOF
11495
11496     fi
11497   fi
11498
11499
11500   
11501   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
11502 echo "configure:11503: checking for __builtin_cosf declaration" >&5
11503   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
11504     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
11505   echo $ac_n "(cached) $ac_c" 1>&6
11506 else
11507   
11508       
11509       ac_ext=C
11510 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11511 ac_cpp='$CXXCPP $CPPFLAGS'
11512 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11513 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11514 cross_compiling=$ac_cv_prog_cxx_cross
11515
11516       cat > conftest.$ac_ext <<EOF
11517 #line 11518 "configure"
11518 #include "confdefs.h"
11519 #include <math.h>
11520 int main() {
11521  __builtin_cosf(0);
11522 ; return 0; }
11523 EOF
11524 if { (eval echo configure:11525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11525   rm -rf conftest*
11526   glibcpp_cv_func___builtin_cosf_use=yes
11527 else
11528   echo "configure: failed program was:" >&5
11529   cat conftest.$ac_ext >&5
11530   rm -rf conftest*
11531   glibcpp_cv_func___builtin_cosf_use=no
11532 fi
11533 rm -f conftest*
11534       ac_ext=c
11535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11536 ac_cpp='$CPP $CPPFLAGS'
11537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11539 cross_compiling=$ac_cv_prog_cc_cross
11540
11541     
11542 fi
11543
11544   fi
11545   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
11546   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
11547     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
11548 echo "configure:11549: checking for __builtin_cosf linkage" >&5
11549     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
11550       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
11551   echo $ac_n "(cached) $ac_c" 1>&6
11552 else
11553   
11554         cat > conftest.$ac_ext <<EOF
11555 #line 11556 "configure"
11556 #include "confdefs.h"
11557 #include <math.h>
11558 int main() {
11559  __builtin_cosf(0);
11560 ; return 0; }
11561 EOF
11562 if { (eval echo configure:11563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11563   rm -rf conftest*
11564   glibcpp_cv_func___builtin_cosf_link=yes
11565 else
11566   echo "configure: failed program was:" >&5
11567   cat conftest.$ac_ext >&5
11568   rm -rf conftest*
11569   glibcpp_cv_func___builtin_cosf_link=no
11570 fi
11571 rm -f conftest*
11572       
11573 fi
11574
11575     fi
11576     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
11577     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
11578       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11579       cat >> confdefs.h <<EOF
11580 #define ${ac_tr_func} 1
11581 EOF
11582
11583     fi
11584   fi
11585
11586   
11587   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
11588 echo "configure:11589: checking for __builtin_cos declaration" >&5
11589   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
11590     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
11591   echo $ac_n "(cached) $ac_c" 1>&6
11592 else
11593   
11594       
11595       ac_ext=C
11596 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11597 ac_cpp='$CXXCPP $CPPFLAGS'
11598 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11599 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11600 cross_compiling=$ac_cv_prog_cxx_cross
11601
11602       cat > conftest.$ac_ext <<EOF
11603 #line 11604 "configure"
11604 #include "confdefs.h"
11605 #include <math.h>
11606 int main() {
11607  __builtin_cos(0);
11608 ; return 0; }
11609 EOF
11610 if { (eval echo configure:11611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11611   rm -rf conftest*
11612   glibcpp_cv_func___builtin_cos_use=yes
11613 else
11614   echo "configure: failed program was:" >&5
11615   cat conftest.$ac_ext >&5
11616   rm -rf conftest*
11617   glibcpp_cv_func___builtin_cos_use=no
11618 fi
11619 rm -f conftest*
11620       ac_ext=c
11621 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11622 ac_cpp='$CPP $CPPFLAGS'
11623 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11624 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11625 cross_compiling=$ac_cv_prog_cc_cross
11626
11627     
11628 fi
11629
11630   fi
11631   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
11632   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
11633     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
11634 echo "configure:11635: checking for __builtin_cos linkage" >&5
11635     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
11636       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
11637   echo $ac_n "(cached) $ac_c" 1>&6
11638 else
11639   
11640         cat > conftest.$ac_ext <<EOF
11641 #line 11642 "configure"
11642 #include "confdefs.h"
11643 #include <math.h>
11644 int main() {
11645  __builtin_cos(0);
11646 ; return 0; }
11647 EOF
11648 if { (eval echo configure:11649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11649   rm -rf conftest*
11650   glibcpp_cv_func___builtin_cos_link=yes
11651 else
11652   echo "configure: failed program was:" >&5
11653   cat conftest.$ac_ext >&5
11654   rm -rf conftest*
11655   glibcpp_cv_func___builtin_cos_link=no
11656 fi
11657 rm -f conftest*
11658       
11659 fi
11660
11661     fi
11662     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
11663     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
11664       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11665       cat >> confdefs.h <<EOF
11666 #define ${ac_tr_func} 1
11667 EOF
11668
11669     fi
11670   fi
11671
11672   
11673   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
11674 echo "configure:11675: checking for __builtin_cosl declaration" >&5
11675   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
11676     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
11677   echo $ac_n "(cached) $ac_c" 1>&6
11678 else
11679   
11680       
11681       ac_ext=C
11682 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11683 ac_cpp='$CXXCPP $CPPFLAGS'
11684 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11685 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11686 cross_compiling=$ac_cv_prog_cxx_cross
11687
11688       cat > conftest.$ac_ext <<EOF
11689 #line 11690 "configure"
11690 #include "confdefs.h"
11691 #include <math.h>
11692 int main() {
11693  __builtin_cosl(0);
11694 ; return 0; }
11695 EOF
11696 if { (eval echo configure:11697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11697   rm -rf conftest*
11698   glibcpp_cv_func___builtin_cosl_use=yes
11699 else
11700   echo "configure: failed program was:" >&5
11701   cat conftest.$ac_ext >&5
11702   rm -rf conftest*
11703   glibcpp_cv_func___builtin_cosl_use=no
11704 fi
11705 rm -f conftest*
11706       ac_ext=c
11707 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11708 ac_cpp='$CPP $CPPFLAGS'
11709 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11710 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11711 cross_compiling=$ac_cv_prog_cc_cross
11712
11713     
11714 fi
11715
11716   fi
11717   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
11718   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
11719     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
11720 echo "configure:11721: checking for __builtin_cosl linkage" >&5
11721     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
11722       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
11723   echo $ac_n "(cached) $ac_c" 1>&6
11724 else
11725   
11726         cat > conftest.$ac_ext <<EOF
11727 #line 11728 "configure"
11728 #include "confdefs.h"
11729 #include <math.h>
11730 int main() {
11731  __builtin_cosl(0);
11732 ; return 0; }
11733 EOF
11734 if { (eval echo configure:11735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11735   rm -rf conftest*
11736   glibcpp_cv_func___builtin_cosl_link=yes
11737 else
11738   echo "configure: failed program was:" >&5
11739   cat conftest.$ac_ext >&5
11740   rm -rf conftest*
11741   glibcpp_cv_func___builtin_cosl_link=no
11742 fi
11743 rm -f conftest*
11744       
11745 fi
11746
11747     fi
11748     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
11749     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
11750       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11751       cat >> confdefs.h <<EOF
11752 #define ${ac_tr_func} 1
11753 EOF
11754
11755     fi
11756   fi
11757
11758
11759               dummyvar=no
11760   if test x$dummyvar = x"yes"; then
11761     cat >> confdefs.h <<\EOF
11762 #define HAVE___BUILTIN_ABS 1
11763 EOF
11764
11765     cat >> confdefs.h <<\EOF
11766 #define HAVE___BUILTIN_LABS 1
11767 EOF
11768
11769     cat >> confdefs.h <<\EOF
11770 #define HAVE___BUILTIN_COS 1
11771 EOF
11772
11773     cat >> confdefs.h <<\EOF
11774 #define HAVE___BUILTIN_COSF 1
11775 EOF
11776
11777     cat >> confdefs.h <<\EOF
11778 #define HAVE___BUILTIN_COSL 1
11779 EOF
11780
11781     cat >> confdefs.h <<\EOF
11782 #define HAVE___BUILTIN_FABS 1
11783 EOF
11784
11785     cat >> confdefs.h <<\EOF
11786 #define HAVE___BUILTIN_FABSF 1
11787 EOF
11788
11789     cat >> confdefs.h <<\EOF
11790 #define HAVE___BUILTIN_FABSL 1
11791 EOF
11792
11793     cat >> confdefs.h <<\EOF
11794 #define HAVE___BUILTIN_SIN 1
11795 EOF
11796
11797     cat >> confdefs.h <<\EOF
11798 #define HAVE___BUILTIN_SINF 1
11799 EOF
11800
11801     cat >> confdefs.h <<\EOF
11802 #define HAVE___BUILTIN_SINL 1
11803 EOF
11804
11805     cat >> confdefs.h <<\EOF
11806 #define HAVE___BUILTIN_SQRT 1
11807 EOF
11808
11809     cat >> confdefs.h <<\EOF
11810 #define HAVE___BUILTIN_SQRTF 1
11811 EOF
11812
11813     cat >> confdefs.h <<\EOF
11814 #define HAVE___BUILTIN_SQRTL 1
11815 EOF
11816
11817   fi
11818
11819   
11820   ac_test_CXXFLAGS="${CXXFLAGS+set}"
11821   ac_save_CXXFLAGS="$CXXFLAGS"
11822   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
11823
11824     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
11825 echo "configure:11826: checking for sin in -lm" >&5
11826 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
11827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11828   echo $ac_n "(cached) $ac_c" 1>&6
11829 else
11830   ac_save_LIBS="$LIBS"
11831 LIBS="-lm  $LIBS"
11832 cat > conftest.$ac_ext <<EOF
11833 #line 11834 "configure"
11834 #include "confdefs.h"
11835 /* Override any gcc2 internal prototype to avoid an error.  */
11836 /* We use char because int might match the return type of a gcc2
11837     builtin and then its argument prototype would still apply.  */
11838 char sin();
11839
11840 int main() {
11841 sin()
11842 ; return 0; }
11843 EOF
11844 if { (eval echo configure:11845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11845   rm -rf conftest*
11846   eval "ac_cv_lib_$ac_lib_var=yes"
11847 else
11848   echo "configure: failed program was:" >&5
11849   cat conftest.$ac_ext >&5
11850   rm -rf conftest*
11851   eval "ac_cv_lib_$ac_lib_var=no"
11852 fi
11853 rm -f conftest*
11854 LIBS="$ac_save_LIBS"
11855
11856 fi
11857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11858   echo "$ac_t""yes" 1>&6
11859   libm="-lm"
11860 else
11861   echo "$ac_t""no" 1>&6
11862 fi
11863
11864   ac_save_LIBS="$LIBS"
11865   LIBS="$LIBS $libm"
11866
11867     
11868   
11869   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
11870 echo "configure:11871: checking for isinf declaration" >&5
11871   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
11872     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
11873   echo $ac_n "(cached) $ac_c" 1>&6
11874 else
11875   
11876       
11877       ac_ext=C
11878 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11879 ac_cpp='$CXXCPP $CPPFLAGS'
11880 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11881 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11882 cross_compiling=$ac_cv_prog_cxx_cross
11883
11884       cat > conftest.$ac_ext <<EOF
11885 #line 11886 "configure"
11886 #include "confdefs.h"
11887 #include <math.h>
11888                       #ifdef HAVE_IEEEFP_H
11889                       #include <ieeefp.h>
11890                       #endif
11891                      
11892 int main() {
11893  isinf(0);
11894 ; return 0; }
11895 EOF
11896 if { (eval echo configure:11897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11897   rm -rf conftest*
11898   glibcpp_cv_func_isinf_use=yes
11899 else
11900   echo "configure: failed program was:" >&5
11901   cat conftest.$ac_ext >&5
11902   rm -rf conftest*
11903   glibcpp_cv_func_isinf_use=no
11904 fi
11905 rm -f conftest*
11906       ac_ext=c
11907 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11908 ac_cpp='$CPP $CPPFLAGS'
11909 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11910 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11911 cross_compiling=$ac_cv_prog_cc_cross
11912
11913     
11914 fi
11915
11916   fi
11917   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
11918
11919   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
11920     for ac_func in isinf
11921 do
11922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11923 echo "configure:11924: checking for $ac_func" >&5
11924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11925   echo $ac_n "(cached) $ac_c" 1>&6
11926 else
11927   cat > conftest.$ac_ext <<EOF
11928 #line 11929 "configure"
11929 #include "confdefs.h"
11930 /* System header to define __stub macros and hopefully few prototypes,
11931     which can conflict with char $ac_func(); below.  */
11932 #include <assert.h>
11933 /* Override any gcc2 internal prototype to avoid an error.  */
11934 /* We use char because int might match the return type of a gcc2
11935     builtin and then its argument prototype would still apply.  */
11936 char $ac_func();
11937
11938 int main() {
11939
11940 /* The GNU C library defines this for functions which it implements
11941     to always fail with ENOSYS.  Some functions are actually named
11942     something starting with __ and the normal name is an alias.  */
11943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11944 choke me
11945 #else
11946 $ac_func();
11947 #endif
11948
11949 ; return 0; }
11950 EOF
11951 if { (eval echo configure:11952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11952   rm -rf conftest*
11953   eval "ac_cv_func_$ac_func=yes"
11954 else
11955   echo "configure: failed program was:" >&5
11956   cat conftest.$ac_ext >&5
11957   rm -rf conftest*
11958   eval "ac_cv_func_$ac_func=no"
11959 fi
11960 rm -f conftest*
11961 fi
11962
11963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11964   echo "$ac_t""yes" 1>&6
11965     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11966   cat >> confdefs.h <<EOF
11967 #define $ac_tr_func 1
11968 EOF
11969  
11970 else
11971   echo "$ac_t""no" 1>&6
11972 fi
11973 done
11974     
11975   else
11976     
11977   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
11978 echo "configure:11979: checking for _isinf declaration" >&5
11979   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
11980     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
11981   echo $ac_n "(cached) $ac_c" 1>&6
11982 else
11983   
11984       
11985       ac_ext=C
11986 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11987 ac_cpp='$CXXCPP $CPPFLAGS'
11988 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11989 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11990 cross_compiling=$ac_cv_prog_cxx_cross
11991
11992       cat > conftest.$ac_ext <<EOF
11993 #line 11994 "configure"
11994 #include "confdefs.h"
11995 #include <math.h>
11996                       #ifdef HAVE_IEEEFP_H
11997                       #include <ieeefp.h>
11998                       #endif
11999                      
12000 int main() {
12001  _isinf(0);
12002 ; return 0; }
12003 EOF
12004 if { (eval echo configure:12005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12005   rm -rf conftest*
12006   glibcpp_cv_func__isinf_use=yes
12007 else
12008   echo "configure: failed program was:" >&5
12009   cat conftest.$ac_ext >&5
12010   rm -rf conftest*
12011   glibcpp_cv_func__isinf_use=no
12012 fi
12013 rm -f conftest*
12014       ac_ext=c
12015 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12016 ac_cpp='$CPP $CPPFLAGS'
12017 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12018 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12019 cross_compiling=$ac_cv_prog_cc_cross
12020
12021     
12022 fi
12023
12024   fi
12025   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
12026
12027     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
12028       for ac_func in _isinf
12029 do
12030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12031 echo "configure:12032: checking for $ac_func" >&5
12032 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12033   echo $ac_n "(cached) $ac_c" 1>&6
12034 else
12035   cat > conftest.$ac_ext <<EOF
12036 #line 12037 "configure"
12037 #include "confdefs.h"
12038 /* System header to define __stub macros and hopefully few prototypes,
12039     which can conflict with char $ac_func(); below.  */
12040 #include <assert.h>
12041 /* Override any gcc2 internal prototype to avoid an error.  */
12042 /* We use char because int might match the return type of a gcc2
12043     builtin and then its argument prototype would still apply.  */
12044 char $ac_func();
12045
12046 int main() {
12047
12048 /* The GNU C library defines this for functions which it implements
12049     to always fail with ENOSYS.  Some functions are actually named
12050     something starting with __ and the normal name is an alias.  */
12051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12052 choke me
12053 #else
12054 $ac_func();
12055 #endif
12056
12057 ; return 0; }
12058 EOF
12059 if { (eval echo configure:12060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12060   rm -rf conftest*
12061   eval "ac_cv_func_$ac_func=yes"
12062 else
12063   echo "configure: failed program was:" >&5
12064   cat conftest.$ac_ext >&5
12065   rm -rf conftest*
12066   eval "ac_cv_func_$ac_func=no"
12067 fi
12068 rm -f conftest*
12069 fi
12070
12071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12072   echo "$ac_t""yes" 1>&6
12073     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12074   cat >> confdefs.h <<EOF
12075 #define $ac_tr_func 1
12076 EOF
12077  
12078 else
12079   echo "$ac_t""no" 1>&6
12080 fi
12081 done
12082     
12083     fi
12084   fi
12085
12086   
12087   
12088   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
12089 echo "configure:12090: checking for isnan declaration" >&5
12090   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
12091     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
12092   echo $ac_n "(cached) $ac_c" 1>&6
12093 else
12094   
12095       
12096       ac_ext=C
12097 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12098 ac_cpp='$CXXCPP $CPPFLAGS'
12099 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12100 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12101 cross_compiling=$ac_cv_prog_cxx_cross
12102
12103       cat > conftest.$ac_ext <<EOF
12104 #line 12105 "configure"
12105 #include "confdefs.h"
12106 #include <math.h>
12107                       #ifdef HAVE_IEEEFP_H
12108                       #include <ieeefp.h>
12109                       #endif
12110                      
12111 int main() {
12112  isnan(0);
12113 ; return 0; }
12114 EOF
12115 if { (eval echo configure:12116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12116   rm -rf conftest*
12117   glibcpp_cv_func_isnan_use=yes
12118 else
12119   echo "configure: failed program was:" >&5
12120   cat conftest.$ac_ext >&5
12121   rm -rf conftest*
12122   glibcpp_cv_func_isnan_use=no
12123 fi
12124 rm -f conftest*
12125       ac_ext=c
12126 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12127 ac_cpp='$CPP $CPPFLAGS'
12128 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12129 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12130 cross_compiling=$ac_cv_prog_cc_cross
12131
12132     
12133 fi
12134
12135   fi
12136   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
12137
12138   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
12139     for ac_func in isnan
12140 do
12141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12142 echo "configure:12143: checking for $ac_func" >&5
12143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12144   echo $ac_n "(cached) $ac_c" 1>&6
12145 else
12146   cat > conftest.$ac_ext <<EOF
12147 #line 12148 "configure"
12148 #include "confdefs.h"
12149 /* System header to define __stub macros and hopefully few prototypes,
12150     which can conflict with char $ac_func(); below.  */
12151 #include <assert.h>
12152 /* Override any gcc2 internal prototype to avoid an error.  */
12153 /* We use char because int might match the return type of a gcc2
12154     builtin and then its argument prototype would still apply.  */
12155 char $ac_func();
12156
12157 int main() {
12158
12159 /* The GNU C library defines this for functions which it implements
12160     to always fail with ENOSYS.  Some functions are actually named
12161     something starting with __ and the normal name is an alias.  */
12162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12163 choke me
12164 #else
12165 $ac_func();
12166 #endif
12167
12168 ; return 0; }
12169 EOF
12170 if { (eval echo configure:12171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12171   rm -rf conftest*
12172   eval "ac_cv_func_$ac_func=yes"
12173 else
12174   echo "configure: failed program was:" >&5
12175   cat conftest.$ac_ext >&5
12176   rm -rf conftest*
12177   eval "ac_cv_func_$ac_func=no"
12178 fi
12179 rm -f conftest*
12180 fi
12181
12182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12183   echo "$ac_t""yes" 1>&6
12184     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12185   cat >> confdefs.h <<EOF
12186 #define $ac_tr_func 1
12187 EOF
12188  
12189 else
12190   echo "$ac_t""no" 1>&6
12191 fi
12192 done
12193     
12194   else
12195     
12196   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
12197 echo "configure:12198: checking for _isnan declaration" >&5
12198   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
12199     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
12200   echo $ac_n "(cached) $ac_c" 1>&6
12201 else
12202   
12203       
12204       ac_ext=C
12205 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12206 ac_cpp='$CXXCPP $CPPFLAGS'
12207 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12208 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12209 cross_compiling=$ac_cv_prog_cxx_cross
12210
12211       cat > conftest.$ac_ext <<EOF
12212 #line 12213 "configure"
12213 #include "confdefs.h"
12214 #include <math.h>
12215                       #ifdef HAVE_IEEEFP_H
12216                       #include <ieeefp.h>
12217                       #endif
12218                      
12219 int main() {
12220  _isnan(0);
12221 ; return 0; }
12222 EOF
12223 if { (eval echo configure:12224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12224   rm -rf conftest*
12225   glibcpp_cv_func__isnan_use=yes
12226 else
12227   echo "configure: failed program was:" >&5
12228   cat conftest.$ac_ext >&5
12229   rm -rf conftest*
12230   glibcpp_cv_func__isnan_use=no
12231 fi
12232 rm -f conftest*
12233       ac_ext=c
12234 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12235 ac_cpp='$CPP $CPPFLAGS'
12236 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12237 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12238 cross_compiling=$ac_cv_prog_cc_cross
12239
12240     
12241 fi
12242
12243   fi
12244   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
12245
12246     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
12247       for ac_func in _isnan
12248 do
12249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12250 echo "configure:12251: checking for $ac_func" >&5
12251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12252   echo $ac_n "(cached) $ac_c" 1>&6
12253 else
12254   cat > conftest.$ac_ext <<EOF
12255 #line 12256 "configure"
12256 #include "confdefs.h"
12257 /* System header to define __stub macros and hopefully few prototypes,
12258     which can conflict with char $ac_func(); below.  */
12259 #include <assert.h>
12260 /* Override any gcc2 internal prototype to avoid an error.  */
12261 /* We use char because int might match the return type of a gcc2
12262     builtin and then its argument prototype would still apply.  */
12263 char $ac_func();
12264
12265 int main() {
12266
12267 /* The GNU C library defines this for functions which it implements
12268     to always fail with ENOSYS.  Some functions are actually named
12269     something starting with __ and the normal name is an alias.  */
12270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12271 choke me
12272 #else
12273 $ac_func();
12274 #endif
12275
12276 ; return 0; }
12277 EOF
12278 if { (eval echo configure:12279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12279   rm -rf conftest*
12280   eval "ac_cv_func_$ac_func=yes"
12281 else
12282   echo "configure: failed program was:" >&5
12283   cat conftest.$ac_ext >&5
12284   rm -rf conftest*
12285   eval "ac_cv_func_$ac_func=no"
12286 fi
12287 rm -f conftest*
12288 fi
12289
12290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12291   echo "$ac_t""yes" 1>&6
12292     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12293   cat >> confdefs.h <<EOF
12294 #define $ac_tr_func 1
12295 EOF
12296  
12297 else
12298   echo "$ac_t""no" 1>&6
12299 fi
12300 done
12301     
12302     fi
12303   fi
12304
12305   
12306   
12307   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
12308 echo "configure:12309: checking for finite declaration" >&5
12309   if test x${glibcpp_cv_func_finite_use+set} != xset; then
12310     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
12311   echo $ac_n "(cached) $ac_c" 1>&6
12312 else
12313   
12314       
12315       ac_ext=C
12316 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12317 ac_cpp='$CXXCPP $CPPFLAGS'
12318 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12319 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12320 cross_compiling=$ac_cv_prog_cxx_cross
12321
12322       cat > conftest.$ac_ext <<EOF
12323 #line 12324 "configure"
12324 #include "confdefs.h"
12325 #include <math.h>
12326                       #ifdef HAVE_IEEEFP_H
12327                       #include <ieeefp.h>
12328                       #endif
12329                      
12330 int main() {
12331  finite(0);
12332 ; return 0; }
12333 EOF
12334 if { (eval echo configure:12335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12335   rm -rf conftest*
12336   glibcpp_cv_func_finite_use=yes
12337 else
12338   echo "configure: failed program was:" >&5
12339   cat conftest.$ac_ext >&5
12340   rm -rf conftest*
12341   glibcpp_cv_func_finite_use=no
12342 fi
12343 rm -f conftest*
12344       ac_ext=c
12345 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12346 ac_cpp='$CPP $CPPFLAGS'
12347 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12348 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12349 cross_compiling=$ac_cv_prog_cc_cross
12350
12351     
12352 fi
12353
12354   fi
12355   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
12356
12357   if test x$glibcpp_cv_func_finite_use = x"yes"; then
12358     for ac_func in finite
12359 do
12360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12361 echo "configure:12362: checking for $ac_func" >&5
12362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12363   echo $ac_n "(cached) $ac_c" 1>&6
12364 else
12365   cat > conftest.$ac_ext <<EOF
12366 #line 12367 "configure"
12367 #include "confdefs.h"
12368 /* System header to define __stub macros and hopefully few prototypes,
12369     which can conflict with char $ac_func(); below.  */
12370 #include <assert.h>
12371 /* Override any gcc2 internal prototype to avoid an error.  */
12372 /* We use char because int might match the return type of a gcc2
12373     builtin and then its argument prototype would still apply.  */
12374 char $ac_func();
12375
12376 int main() {
12377
12378 /* The GNU C library defines this for functions which it implements
12379     to always fail with ENOSYS.  Some functions are actually named
12380     something starting with __ and the normal name is an alias.  */
12381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12382 choke me
12383 #else
12384 $ac_func();
12385 #endif
12386
12387 ; return 0; }
12388 EOF
12389 if { (eval echo configure:12390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12390   rm -rf conftest*
12391   eval "ac_cv_func_$ac_func=yes"
12392 else
12393   echo "configure: failed program was:" >&5
12394   cat conftest.$ac_ext >&5
12395   rm -rf conftest*
12396   eval "ac_cv_func_$ac_func=no"
12397 fi
12398 rm -f conftest*
12399 fi
12400
12401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12402   echo "$ac_t""yes" 1>&6
12403     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12404   cat >> confdefs.h <<EOF
12405 #define $ac_tr_func 1
12406 EOF
12407  
12408 else
12409   echo "$ac_t""no" 1>&6
12410 fi
12411 done
12412     
12413   else
12414     
12415   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
12416 echo "configure:12417: checking for _finite declaration" >&5
12417   if test x${glibcpp_cv_func__finite_use+set} != xset; then
12418     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
12419   echo $ac_n "(cached) $ac_c" 1>&6
12420 else
12421   
12422       
12423       ac_ext=C
12424 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12425 ac_cpp='$CXXCPP $CPPFLAGS'
12426 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12427 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12428 cross_compiling=$ac_cv_prog_cxx_cross
12429
12430       cat > conftest.$ac_ext <<EOF
12431 #line 12432 "configure"
12432 #include "confdefs.h"
12433 #include <math.h>
12434                       #ifdef HAVE_IEEEFP_H
12435                       #include <ieeefp.h>
12436                       #endif
12437                      
12438 int main() {
12439  _finite(0);
12440 ; return 0; }
12441 EOF
12442 if { (eval echo configure:12443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12443   rm -rf conftest*
12444   glibcpp_cv_func__finite_use=yes
12445 else
12446   echo "configure: failed program was:" >&5
12447   cat conftest.$ac_ext >&5
12448   rm -rf conftest*
12449   glibcpp_cv_func__finite_use=no
12450 fi
12451 rm -f conftest*
12452       ac_ext=c
12453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12454 ac_cpp='$CPP $CPPFLAGS'
12455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12457 cross_compiling=$ac_cv_prog_cc_cross
12458
12459     
12460 fi
12461
12462   fi
12463   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
12464
12465     if test x$glibcpp_cv_func__finite_use = x"yes"; then
12466       for ac_func in _finite
12467 do
12468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12469 echo "configure:12470: checking for $ac_func" >&5
12470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12471   echo $ac_n "(cached) $ac_c" 1>&6
12472 else
12473   cat > conftest.$ac_ext <<EOF
12474 #line 12475 "configure"
12475 #include "confdefs.h"
12476 /* System header to define __stub macros and hopefully few prototypes,
12477     which can conflict with char $ac_func(); below.  */
12478 #include <assert.h>
12479 /* Override any gcc2 internal prototype to avoid an error.  */
12480 /* We use char because int might match the return type of a gcc2
12481     builtin and then its argument prototype would still apply.  */
12482 char $ac_func();
12483
12484 int main() {
12485
12486 /* The GNU C library defines this for functions which it implements
12487     to always fail with ENOSYS.  Some functions are actually named
12488     something starting with __ and the normal name is an alias.  */
12489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12490 choke me
12491 #else
12492 $ac_func();
12493 #endif
12494
12495 ; return 0; }
12496 EOF
12497 if { (eval echo configure:12498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12498   rm -rf conftest*
12499   eval "ac_cv_func_$ac_func=yes"
12500 else
12501   echo "configure: failed program was:" >&5
12502   cat conftest.$ac_ext >&5
12503   rm -rf conftest*
12504   eval "ac_cv_func_$ac_func=no"
12505 fi
12506 rm -f conftest*
12507 fi
12508
12509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12510   echo "$ac_t""yes" 1>&6
12511     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12512   cat >> confdefs.h <<EOF
12513 #define $ac_tr_func 1
12514 EOF
12515  
12516 else
12517   echo "$ac_t""no" 1>&6
12518 fi
12519 done
12520     
12521     fi
12522   fi
12523
12524   
12525   
12526   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
12527 echo "configure:12528: checking for copysign declaration" >&5
12528   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
12529     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
12530   echo $ac_n "(cached) $ac_c" 1>&6
12531 else
12532   
12533       
12534       ac_ext=C
12535 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12536 ac_cpp='$CXXCPP $CPPFLAGS'
12537 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12538 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12539 cross_compiling=$ac_cv_prog_cxx_cross
12540
12541       cat > conftest.$ac_ext <<EOF
12542 #line 12543 "configure"
12543 #include "confdefs.h"
12544 #include <math.h>
12545 int main() {
12546  copysign(0, 0);
12547 ; return 0; }
12548 EOF
12549 if { (eval echo configure:12550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12550   rm -rf conftest*
12551   glibcpp_cv_func_copysign_use=yes
12552 else
12553   echo "configure: failed program was:" >&5
12554   cat conftest.$ac_ext >&5
12555   rm -rf conftest*
12556   glibcpp_cv_func_copysign_use=no
12557 fi
12558 rm -f conftest*
12559       ac_ext=c
12560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12561 ac_cpp='$CPP $CPPFLAGS'
12562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12564 cross_compiling=$ac_cv_prog_cc_cross
12565
12566     
12567 fi
12568
12569   fi
12570   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
12571
12572   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
12573     for ac_func in copysign
12574 do
12575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12576 echo "configure:12577: checking for $ac_func" >&5
12577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12578   echo $ac_n "(cached) $ac_c" 1>&6
12579 else
12580   cat > conftest.$ac_ext <<EOF
12581 #line 12582 "configure"
12582 #include "confdefs.h"
12583 /* System header to define __stub macros and hopefully few prototypes,
12584     which can conflict with char $ac_func(); below.  */
12585 #include <assert.h>
12586 /* Override any gcc2 internal prototype to avoid an error.  */
12587 /* We use char because int might match the return type of a gcc2
12588     builtin and then its argument prototype would still apply.  */
12589 char $ac_func();
12590
12591 int main() {
12592
12593 /* The GNU C library defines this for functions which it implements
12594     to always fail with ENOSYS.  Some functions are actually named
12595     something starting with __ and the normal name is an alias.  */
12596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12597 choke me
12598 #else
12599 $ac_func();
12600 #endif
12601
12602 ; return 0; }
12603 EOF
12604 if { (eval echo configure:12605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12605   rm -rf conftest*
12606   eval "ac_cv_func_$ac_func=yes"
12607 else
12608   echo "configure: failed program was:" >&5
12609   cat conftest.$ac_ext >&5
12610   rm -rf conftest*
12611   eval "ac_cv_func_$ac_func=no"
12612 fi
12613 rm -f conftest*
12614 fi
12615
12616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12617   echo "$ac_t""yes" 1>&6
12618     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12619   cat >> confdefs.h <<EOF
12620 #define $ac_tr_func 1
12621 EOF
12622  
12623 else
12624   echo "$ac_t""no" 1>&6
12625 fi
12626 done
12627     
12628   else
12629     
12630   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
12631 echo "configure:12632: checking for _copysign declaration" >&5
12632   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
12633     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
12634   echo $ac_n "(cached) $ac_c" 1>&6
12635 else
12636   
12637       
12638       ac_ext=C
12639 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12640 ac_cpp='$CXXCPP $CPPFLAGS'
12641 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12642 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12643 cross_compiling=$ac_cv_prog_cxx_cross
12644
12645       cat > conftest.$ac_ext <<EOF
12646 #line 12647 "configure"
12647 #include "confdefs.h"
12648 #include <math.h>
12649 int main() {
12650  _copysign(0, 0);
12651 ; return 0; }
12652 EOF
12653 if { (eval echo configure:12654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12654   rm -rf conftest*
12655   glibcpp_cv_func__copysign_use=yes
12656 else
12657   echo "configure: failed program was:" >&5
12658   cat conftest.$ac_ext >&5
12659   rm -rf conftest*
12660   glibcpp_cv_func__copysign_use=no
12661 fi
12662 rm -f conftest*
12663       ac_ext=c
12664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12665 ac_cpp='$CPP $CPPFLAGS'
12666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12668 cross_compiling=$ac_cv_prog_cc_cross
12669
12670     
12671 fi
12672
12673   fi
12674   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
12675
12676     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
12677       for ac_func in _copysign
12678 do
12679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12680 echo "configure:12681: checking for $ac_func" >&5
12681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12682   echo $ac_n "(cached) $ac_c" 1>&6
12683 else
12684   cat > conftest.$ac_ext <<EOF
12685 #line 12686 "configure"
12686 #include "confdefs.h"
12687 /* System header to define __stub macros and hopefully few prototypes,
12688     which can conflict with char $ac_func(); below.  */
12689 #include <assert.h>
12690 /* Override any gcc2 internal prototype to avoid an error.  */
12691 /* We use char because int might match the return type of a gcc2
12692     builtin and then its argument prototype would still apply.  */
12693 char $ac_func();
12694
12695 int main() {
12696
12697 /* The GNU C library defines this for functions which it implements
12698     to always fail with ENOSYS.  Some functions are actually named
12699     something starting with __ and the normal name is an alias.  */
12700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12701 choke me
12702 #else
12703 $ac_func();
12704 #endif
12705
12706 ; return 0; }
12707 EOF
12708 if { (eval echo configure:12709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12709   rm -rf conftest*
12710   eval "ac_cv_func_$ac_func=yes"
12711 else
12712   echo "configure: failed program was:" >&5
12713   cat conftest.$ac_ext >&5
12714   rm -rf conftest*
12715   eval "ac_cv_func_$ac_func=no"
12716 fi
12717 rm -f conftest*
12718 fi
12719
12720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12721   echo "$ac_t""yes" 1>&6
12722     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12723   cat >> confdefs.h <<EOF
12724 #define $ac_tr_func 1
12725 EOF
12726  
12727 else
12728   echo "$ac_t""no" 1>&6
12729 fi
12730 done
12731     
12732     fi
12733   fi
12734
12735   
12736   
12737   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
12738 echo "configure:12739: checking for sincos declaration" >&5
12739   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
12740     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
12741   echo $ac_n "(cached) $ac_c" 1>&6
12742 else
12743   
12744       
12745       ac_ext=C
12746 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12747 ac_cpp='$CXXCPP $CPPFLAGS'
12748 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12749 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12750 cross_compiling=$ac_cv_prog_cxx_cross
12751
12752       cat > conftest.$ac_ext <<EOF
12753 #line 12754 "configure"
12754 #include "confdefs.h"
12755 #include <math.h>
12756 int main() {
12757  sincos(0, 0, 0);
12758 ; return 0; }
12759 EOF
12760 if { (eval echo configure:12761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12761   rm -rf conftest*
12762   glibcpp_cv_func_sincos_use=yes
12763 else
12764   echo "configure: failed program was:" >&5
12765   cat conftest.$ac_ext >&5
12766   rm -rf conftest*
12767   glibcpp_cv_func_sincos_use=no
12768 fi
12769 rm -f conftest*
12770       ac_ext=c
12771 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12772 ac_cpp='$CPP $CPPFLAGS'
12773 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12774 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12775 cross_compiling=$ac_cv_prog_cc_cross
12776
12777     
12778 fi
12779
12780   fi
12781   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
12782
12783   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
12784     for ac_func in sincos
12785 do
12786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12787 echo "configure:12788: checking for $ac_func" >&5
12788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12789   echo $ac_n "(cached) $ac_c" 1>&6
12790 else
12791   cat > conftest.$ac_ext <<EOF
12792 #line 12793 "configure"
12793 #include "confdefs.h"
12794 /* System header to define __stub macros and hopefully few prototypes,
12795     which can conflict with char $ac_func(); below.  */
12796 #include <assert.h>
12797 /* Override any gcc2 internal prototype to avoid an error.  */
12798 /* We use char because int might match the return type of a gcc2
12799     builtin and then its argument prototype would still apply.  */
12800 char $ac_func();
12801
12802 int main() {
12803
12804 /* The GNU C library defines this for functions which it implements
12805     to always fail with ENOSYS.  Some functions are actually named
12806     something starting with __ and the normal name is an alias.  */
12807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12808 choke me
12809 #else
12810 $ac_func();
12811 #endif
12812
12813 ; return 0; }
12814 EOF
12815 if { (eval echo configure:12816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12816   rm -rf conftest*
12817   eval "ac_cv_func_$ac_func=yes"
12818 else
12819   echo "configure: failed program was:" >&5
12820   cat conftest.$ac_ext >&5
12821   rm -rf conftest*
12822   eval "ac_cv_func_$ac_func=no"
12823 fi
12824 rm -f conftest*
12825 fi
12826
12827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12828   echo "$ac_t""yes" 1>&6
12829     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12830   cat >> confdefs.h <<EOF
12831 #define $ac_tr_func 1
12832 EOF
12833  
12834 else
12835   echo "$ac_t""no" 1>&6
12836 fi
12837 done
12838     
12839   else
12840     
12841   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
12842 echo "configure:12843: checking for _sincos declaration" >&5
12843   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
12844     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
12845   echo $ac_n "(cached) $ac_c" 1>&6
12846 else
12847   
12848       
12849       ac_ext=C
12850 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12851 ac_cpp='$CXXCPP $CPPFLAGS'
12852 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12853 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12854 cross_compiling=$ac_cv_prog_cxx_cross
12855
12856       cat > conftest.$ac_ext <<EOF
12857 #line 12858 "configure"
12858 #include "confdefs.h"
12859 #include <math.h>
12860 int main() {
12861  _sincos(0, 0, 0);
12862 ; return 0; }
12863 EOF
12864 if { (eval echo configure:12865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12865   rm -rf conftest*
12866   glibcpp_cv_func__sincos_use=yes
12867 else
12868   echo "configure: failed program was:" >&5
12869   cat conftest.$ac_ext >&5
12870   rm -rf conftest*
12871   glibcpp_cv_func__sincos_use=no
12872 fi
12873 rm -f conftest*
12874       ac_ext=c
12875 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12876 ac_cpp='$CPP $CPPFLAGS'
12877 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12878 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12879 cross_compiling=$ac_cv_prog_cc_cross
12880
12881     
12882 fi
12883
12884   fi
12885   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
12886
12887     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
12888       for ac_func in _sincos
12889 do
12890 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12891 echo "configure:12892: checking for $ac_func" >&5
12892 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12893   echo $ac_n "(cached) $ac_c" 1>&6
12894 else
12895   cat > conftest.$ac_ext <<EOF
12896 #line 12897 "configure"
12897 #include "confdefs.h"
12898 /* System header to define __stub macros and hopefully few prototypes,
12899     which can conflict with char $ac_func(); below.  */
12900 #include <assert.h>
12901 /* Override any gcc2 internal prototype to avoid an error.  */
12902 /* We use char because int might match the return type of a gcc2
12903     builtin and then its argument prototype would still apply.  */
12904 char $ac_func();
12905
12906 int main() {
12907
12908 /* The GNU C library defines this for functions which it implements
12909     to always fail with ENOSYS.  Some functions are actually named
12910     something starting with __ and the normal name is an alias.  */
12911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12912 choke me
12913 #else
12914 $ac_func();
12915 #endif
12916
12917 ; return 0; }
12918 EOF
12919 if { (eval echo configure:12920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12920   rm -rf conftest*
12921   eval "ac_cv_func_$ac_func=yes"
12922 else
12923   echo "configure: failed program was:" >&5
12924   cat conftest.$ac_ext >&5
12925   rm -rf conftest*
12926   eval "ac_cv_func_$ac_func=no"
12927 fi
12928 rm -f conftest*
12929 fi
12930
12931 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12932   echo "$ac_t""yes" 1>&6
12933     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12934   cat >> confdefs.h <<EOF
12935 #define $ac_tr_func 1
12936 EOF
12937  
12938 else
12939   echo "$ac_t""no" 1>&6
12940 fi
12941 done
12942     
12943     fi
12944   fi
12945
12946   
12947   
12948   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
12949 echo "configure:12950: checking for fpclass declaration" >&5
12950   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
12951     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
12952   echo $ac_n "(cached) $ac_c" 1>&6
12953 else
12954   
12955       
12956       ac_ext=C
12957 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12958 ac_cpp='$CXXCPP $CPPFLAGS'
12959 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12960 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12961 cross_compiling=$ac_cv_prog_cxx_cross
12962
12963       cat > conftest.$ac_ext <<EOF
12964 #line 12965 "configure"
12965 #include "confdefs.h"
12966 #include <math.h>
12967                       #ifdef HAVE_IEEEFP_H
12968                       #include <ieeefp.h>
12969                       #endif
12970                      
12971 int main() {
12972  fpclass(0);
12973 ; return 0; }
12974 EOF
12975 if { (eval echo configure:12976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12976   rm -rf conftest*
12977   glibcpp_cv_func_fpclass_use=yes
12978 else
12979   echo "configure: failed program was:" >&5
12980   cat conftest.$ac_ext >&5
12981   rm -rf conftest*
12982   glibcpp_cv_func_fpclass_use=no
12983 fi
12984 rm -f conftest*
12985       ac_ext=c
12986 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12987 ac_cpp='$CPP $CPPFLAGS'
12988 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12989 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12990 cross_compiling=$ac_cv_prog_cc_cross
12991
12992     
12993 fi
12994
12995   fi
12996   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
12997
12998   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
12999     for ac_func in fpclass
13000 do
13001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13002 echo "configure:13003: checking for $ac_func" >&5
13003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13004   echo $ac_n "(cached) $ac_c" 1>&6
13005 else
13006   cat > conftest.$ac_ext <<EOF
13007 #line 13008 "configure"
13008 #include "confdefs.h"
13009 /* System header to define __stub macros and hopefully few prototypes,
13010     which can conflict with char $ac_func(); below.  */
13011 #include <assert.h>
13012 /* Override any gcc2 internal prototype to avoid an error.  */
13013 /* We use char because int might match the return type of a gcc2
13014     builtin and then its argument prototype would still apply.  */
13015 char $ac_func();
13016
13017 int main() {
13018
13019 /* The GNU C library defines this for functions which it implements
13020     to always fail with ENOSYS.  Some functions are actually named
13021     something starting with __ and the normal name is an alias.  */
13022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13023 choke me
13024 #else
13025 $ac_func();
13026 #endif
13027
13028 ; return 0; }
13029 EOF
13030 if { (eval echo configure:13031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13031   rm -rf conftest*
13032   eval "ac_cv_func_$ac_func=yes"
13033 else
13034   echo "configure: failed program was:" >&5
13035   cat conftest.$ac_ext >&5
13036   rm -rf conftest*
13037   eval "ac_cv_func_$ac_func=no"
13038 fi
13039 rm -f conftest*
13040 fi
13041
13042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13043   echo "$ac_t""yes" 1>&6
13044     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13045   cat >> confdefs.h <<EOF
13046 #define $ac_tr_func 1
13047 EOF
13048  
13049 else
13050   echo "$ac_t""no" 1>&6
13051 fi
13052 done
13053     
13054   else
13055     
13056   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
13057 echo "configure:13058: checking for _fpclass declaration" >&5
13058   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
13059     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
13060   echo $ac_n "(cached) $ac_c" 1>&6
13061 else
13062   
13063       
13064       ac_ext=C
13065 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13066 ac_cpp='$CXXCPP $CPPFLAGS'
13067 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13068 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13069 cross_compiling=$ac_cv_prog_cxx_cross
13070
13071       cat > conftest.$ac_ext <<EOF
13072 #line 13073 "configure"
13073 #include "confdefs.h"
13074 #include <math.h>
13075                       #ifdef HAVE_IEEEFP_H
13076                       #include <ieeefp.h>
13077                       #endif
13078                      
13079 int main() {
13080  _fpclass(0);
13081 ; return 0; }
13082 EOF
13083 if { (eval echo configure:13084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13084   rm -rf conftest*
13085   glibcpp_cv_func__fpclass_use=yes
13086 else
13087   echo "configure: failed program was:" >&5
13088   cat conftest.$ac_ext >&5
13089   rm -rf conftest*
13090   glibcpp_cv_func__fpclass_use=no
13091 fi
13092 rm -f conftest*
13093       ac_ext=c
13094 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13095 ac_cpp='$CPP $CPPFLAGS'
13096 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13097 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13098 cross_compiling=$ac_cv_prog_cc_cross
13099
13100     
13101 fi
13102
13103   fi
13104   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
13105
13106     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
13107       for ac_func in _fpclass
13108 do
13109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13110 echo "configure:13111: checking for $ac_func" >&5
13111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13112   echo $ac_n "(cached) $ac_c" 1>&6
13113 else
13114   cat > conftest.$ac_ext <<EOF
13115 #line 13116 "configure"
13116 #include "confdefs.h"
13117 /* System header to define __stub macros and hopefully few prototypes,
13118     which can conflict with char $ac_func(); below.  */
13119 #include <assert.h>
13120 /* Override any gcc2 internal prototype to avoid an error.  */
13121 /* We use char because int might match the return type of a gcc2
13122     builtin and then its argument prototype would still apply.  */
13123 char $ac_func();
13124
13125 int main() {
13126
13127 /* The GNU C library defines this for functions which it implements
13128     to always fail with ENOSYS.  Some functions are actually named
13129     something starting with __ and the normal name is an alias.  */
13130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13131 choke me
13132 #else
13133 $ac_func();
13134 #endif
13135
13136 ; return 0; }
13137 EOF
13138 if { (eval echo configure:13139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13139   rm -rf conftest*
13140   eval "ac_cv_func_$ac_func=yes"
13141 else
13142   echo "configure: failed program was:" >&5
13143   cat conftest.$ac_ext >&5
13144   rm -rf conftest*
13145   eval "ac_cv_func_$ac_func=no"
13146 fi
13147 rm -f conftest*
13148 fi
13149
13150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13151   echo "$ac_t""yes" 1>&6
13152     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13153   cat >> confdefs.h <<EOF
13154 #define $ac_tr_func 1
13155 EOF
13156  
13157 else
13158   echo "$ac_t""no" 1>&6
13159 fi
13160 done
13161     
13162     fi
13163   fi
13164
13165   
13166   
13167   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
13168 echo "configure:13169: checking for qfpclass declaration" >&5
13169   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
13170     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
13171   echo $ac_n "(cached) $ac_c" 1>&6
13172 else
13173   
13174       
13175       ac_ext=C
13176 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13177 ac_cpp='$CXXCPP $CPPFLAGS'
13178 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13179 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13180 cross_compiling=$ac_cv_prog_cxx_cross
13181
13182       cat > conftest.$ac_ext <<EOF
13183 #line 13184 "configure"
13184 #include "confdefs.h"
13185 #include <math.h>
13186                       #ifdef HAVE_IEEEFP_H
13187                       #include <ieeefp.h>
13188                       #endif
13189                      
13190 int main() {
13191  qfpclass(0);
13192 ; return 0; }
13193 EOF
13194 if { (eval echo configure:13195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13195   rm -rf conftest*
13196   glibcpp_cv_func_qfpclass_use=yes
13197 else
13198   echo "configure: failed program was:" >&5
13199   cat conftest.$ac_ext >&5
13200   rm -rf conftest*
13201   glibcpp_cv_func_qfpclass_use=no
13202 fi
13203 rm -f conftest*
13204       ac_ext=c
13205 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13206 ac_cpp='$CPP $CPPFLAGS'
13207 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13208 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13209 cross_compiling=$ac_cv_prog_cc_cross
13210
13211     
13212 fi
13213
13214   fi
13215   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
13216
13217   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
13218     for ac_func in qfpclass
13219 do
13220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13221 echo "configure:13222: checking for $ac_func" >&5
13222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13223   echo $ac_n "(cached) $ac_c" 1>&6
13224 else
13225   cat > conftest.$ac_ext <<EOF
13226 #line 13227 "configure"
13227 #include "confdefs.h"
13228 /* System header to define __stub macros and hopefully few prototypes,
13229     which can conflict with char $ac_func(); below.  */
13230 #include <assert.h>
13231 /* Override any gcc2 internal prototype to avoid an error.  */
13232 /* We use char because int might match the return type of a gcc2
13233     builtin and then its argument prototype would still apply.  */
13234 char $ac_func();
13235
13236 int main() {
13237
13238 /* The GNU C library defines this for functions which it implements
13239     to always fail with ENOSYS.  Some functions are actually named
13240     something starting with __ and the normal name is an alias.  */
13241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13242 choke me
13243 #else
13244 $ac_func();
13245 #endif
13246
13247 ; return 0; }
13248 EOF
13249 if { (eval echo configure:13250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13250   rm -rf conftest*
13251   eval "ac_cv_func_$ac_func=yes"
13252 else
13253   echo "configure: failed program was:" >&5
13254   cat conftest.$ac_ext >&5
13255   rm -rf conftest*
13256   eval "ac_cv_func_$ac_func=no"
13257 fi
13258 rm -f conftest*
13259 fi
13260
13261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13262   echo "$ac_t""yes" 1>&6
13263     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13264   cat >> confdefs.h <<EOF
13265 #define $ac_tr_func 1
13266 EOF
13267  
13268 else
13269   echo "$ac_t""no" 1>&6
13270 fi
13271 done
13272     
13273   else
13274     
13275   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
13276 echo "configure:13277: checking for _qfpclass declaration" >&5
13277   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
13278     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
13279   echo $ac_n "(cached) $ac_c" 1>&6
13280 else
13281   
13282       
13283       ac_ext=C
13284 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13285 ac_cpp='$CXXCPP $CPPFLAGS'
13286 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13287 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13288 cross_compiling=$ac_cv_prog_cxx_cross
13289
13290       cat > conftest.$ac_ext <<EOF
13291 #line 13292 "configure"
13292 #include "confdefs.h"
13293 #include <math.h>
13294                       #ifdef HAVE_IEEEFP_H
13295                       #include <ieeefp.h>
13296                       #endif
13297                      
13298 int main() {
13299  _qfpclass(0);
13300 ; return 0; }
13301 EOF
13302 if { (eval echo configure:13303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13303   rm -rf conftest*
13304   glibcpp_cv_func__qfpclass_use=yes
13305 else
13306   echo "configure: failed program was:" >&5
13307   cat conftest.$ac_ext >&5
13308   rm -rf conftest*
13309   glibcpp_cv_func__qfpclass_use=no
13310 fi
13311 rm -f conftest*
13312       ac_ext=c
13313 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13314 ac_cpp='$CPP $CPPFLAGS'
13315 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13316 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13317 cross_compiling=$ac_cv_prog_cc_cross
13318
13319     
13320 fi
13321
13322   fi
13323   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
13324
13325     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
13326       for ac_func in _qfpclass
13327 do
13328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13329 echo "configure:13330: checking for $ac_func" >&5
13330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13331   echo $ac_n "(cached) $ac_c" 1>&6
13332 else
13333   cat > conftest.$ac_ext <<EOF
13334 #line 13335 "configure"
13335 #include "confdefs.h"
13336 /* System header to define __stub macros and hopefully few prototypes,
13337     which can conflict with char $ac_func(); below.  */
13338 #include <assert.h>
13339 /* Override any gcc2 internal prototype to avoid an error.  */
13340 /* We use char because int might match the return type of a gcc2
13341     builtin and then its argument prototype would still apply.  */
13342 char $ac_func();
13343
13344 int main() {
13345
13346 /* The GNU C library defines this for functions which it implements
13347     to always fail with ENOSYS.  Some functions are actually named
13348     something starting with __ and the normal name is an alias.  */
13349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13350 choke me
13351 #else
13352 $ac_func();
13353 #endif
13354
13355 ; return 0; }
13356 EOF
13357 if { (eval echo configure:13358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13358   rm -rf conftest*
13359   eval "ac_cv_func_$ac_func=yes"
13360 else
13361   echo "configure: failed program was:" >&5
13362   cat conftest.$ac_ext >&5
13363   rm -rf conftest*
13364   eval "ac_cv_func_$ac_func=no"
13365 fi
13366 rm -f conftest*
13367 fi
13368
13369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13370   echo "$ac_t""yes" 1>&6
13371     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13372   cat >> confdefs.h <<EOF
13373 #define $ac_tr_func 1
13374 EOF
13375  
13376 else
13377   echo "$ac_t""no" 1>&6
13378 fi
13379 done
13380     
13381     fi
13382   fi
13383
13384   
13385   
13386   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
13387 echo "configure:13388: checking for hypot declaration" >&5
13388   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
13389     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
13390   echo $ac_n "(cached) $ac_c" 1>&6
13391 else
13392   
13393       
13394       ac_ext=C
13395 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13396 ac_cpp='$CXXCPP $CPPFLAGS'
13397 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13398 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13399 cross_compiling=$ac_cv_prog_cxx_cross
13400
13401       cat > conftest.$ac_ext <<EOF
13402 #line 13403 "configure"
13403 #include "confdefs.h"
13404 #include <math.h>
13405 int main() {
13406  hypot(0, 0);
13407 ; return 0; }
13408 EOF
13409 if { (eval echo configure:13410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13410   rm -rf conftest*
13411   glibcpp_cv_func_hypot_use=yes
13412 else
13413   echo "configure: failed program was:" >&5
13414   cat conftest.$ac_ext >&5
13415   rm -rf conftest*
13416   glibcpp_cv_func_hypot_use=no
13417 fi
13418 rm -f conftest*
13419       ac_ext=c
13420 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13421 ac_cpp='$CPP $CPPFLAGS'
13422 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13423 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13424 cross_compiling=$ac_cv_prog_cc_cross
13425
13426     
13427 fi
13428
13429   fi
13430   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
13431
13432   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
13433     for ac_func in hypot
13434 do
13435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13436 echo "configure:13437: checking for $ac_func" >&5
13437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13438   echo $ac_n "(cached) $ac_c" 1>&6
13439 else
13440   cat > conftest.$ac_ext <<EOF
13441 #line 13442 "configure"
13442 #include "confdefs.h"
13443 /* System header to define __stub macros and hopefully few prototypes,
13444     which can conflict with char $ac_func(); below.  */
13445 #include <assert.h>
13446 /* Override any gcc2 internal prototype to avoid an error.  */
13447 /* We use char because int might match the return type of a gcc2
13448     builtin and then its argument prototype would still apply.  */
13449 char $ac_func();
13450
13451 int main() {
13452
13453 /* The GNU C library defines this for functions which it implements
13454     to always fail with ENOSYS.  Some functions are actually named
13455     something starting with __ and the normal name is an alias.  */
13456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13457 choke me
13458 #else
13459 $ac_func();
13460 #endif
13461
13462 ; return 0; }
13463 EOF
13464 if { (eval echo configure:13465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13465   rm -rf conftest*
13466   eval "ac_cv_func_$ac_func=yes"
13467 else
13468   echo "configure: failed program was:" >&5
13469   cat conftest.$ac_ext >&5
13470   rm -rf conftest*
13471   eval "ac_cv_func_$ac_func=no"
13472 fi
13473 rm -f conftest*
13474 fi
13475
13476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13477   echo "$ac_t""yes" 1>&6
13478     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13479   cat >> confdefs.h <<EOF
13480 #define $ac_tr_func 1
13481 EOF
13482  
13483 else
13484   echo "$ac_t""no" 1>&6
13485 fi
13486 done
13487     
13488   else
13489     
13490   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
13491 echo "configure:13492: checking for _hypot declaration" >&5
13492   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
13493     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
13494   echo $ac_n "(cached) $ac_c" 1>&6
13495 else
13496   
13497       
13498       ac_ext=C
13499 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13500 ac_cpp='$CXXCPP $CPPFLAGS'
13501 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13502 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13503 cross_compiling=$ac_cv_prog_cxx_cross
13504
13505       cat > conftest.$ac_ext <<EOF
13506 #line 13507 "configure"
13507 #include "confdefs.h"
13508 #include <math.h>
13509 int main() {
13510  _hypot(0, 0);
13511 ; return 0; }
13512 EOF
13513 if { (eval echo configure:13514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13514   rm -rf conftest*
13515   glibcpp_cv_func__hypot_use=yes
13516 else
13517   echo "configure: failed program was:" >&5
13518   cat conftest.$ac_ext >&5
13519   rm -rf conftest*
13520   glibcpp_cv_func__hypot_use=no
13521 fi
13522 rm -f conftest*
13523       ac_ext=c
13524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13525 ac_cpp='$CPP $CPPFLAGS'
13526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13528 cross_compiling=$ac_cv_prog_cc_cross
13529
13530     
13531 fi
13532
13533   fi
13534   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
13535
13536     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
13537       for ac_func in _hypot
13538 do
13539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13540 echo "configure:13541: checking for $ac_func" >&5
13541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13542   echo $ac_n "(cached) $ac_c" 1>&6
13543 else
13544   cat > conftest.$ac_ext <<EOF
13545 #line 13546 "configure"
13546 #include "confdefs.h"
13547 /* System header to define __stub macros and hopefully few prototypes,
13548     which can conflict with char $ac_func(); below.  */
13549 #include <assert.h>
13550 /* Override any gcc2 internal prototype to avoid an error.  */
13551 /* We use char because int might match the return type of a gcc2
13552     builtin and then its argument prototype would still apply.  */
13553 char $ac_func();
13554
13555 int main() {
13556
13557 /* The GNU C library defines this for functions which it implements
13558     to always fail with ENOSYS.  Some functions are actually named
13559     something starting with __ and the normal name is an alias.  */
13560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13561 choke me
13562 #else
13563 $ac_func();
13564 #endif
13565
13566 ; return 0; }
13567 EOF
13568 if { (eval echo configure:13569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13569   rm -rf conftest*
13570   eval "ac_cv_func_$ac_func=yes"
13571 else
13572   echo "configure: failed program was:" >&5
13573   cat conftest.$ac_ext >&5
13574   rm -rf conftest*
13575   eval "ac_cv_func_$ac_func=no"
13576 fi
13577 rm -f conftest*
13578 fi
13579
13580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13581   echo "$ac_t""yes" 1>&6
13582     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13583   cat >> confdefs.h <<EOF
13584 #define $ac_tr_func 1
13585 EOF
13586  
13587 else
13588   echo "$ac_t""no" 1>&6
13589 fi
13590 done
13591     
13592     fi
13593   fi
13594
13595
13596     
13597   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
13598 echo "configure:13599: checking for float trig functions" >&5
13599   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
13600   echo $ac_n "(cached) $ac_c" 1>&6
13601 else
13602   
13603     
13604     ac_ext=C
13605 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13606 ac_cpp='$CXXCPP $CPPFLAGS'
13607 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13608 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13609 cross_compiling=$ac_cv_prog_cxx_cross
13610
13611     cat > conftest.$ac_ext <<EOF
13612 #line 13613 "configure"
13613 #include "confdefs.h"
13614 #include <math.h>
13615 int main() {
13616  `for x in acosf asinf atanf \
13617                                           cosf sinf tanf \
13618                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
13619 ; return 0; }
13620 EOF
13621 if { (eval echo configure:13622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13622   rm -rf conftest*
13623   glibcpp_cv_func_float_trig_use=yes
13624 else
13625   echo "configure: failed program was:" >&5
13626   cat conftest.$ac_ext >&5
13627   rm -rf conftest*
13628   glibcpp_cv_func_float_trig_use=no
13629 fi
13630 rm -f conftest*
13631     ac_ext=c
13632 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13633 ac_cpp='$CPP $CPPFLAGS'
13634 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13635 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13636 cross_compiling=$ac_cv_prog_cc_cross
13637
13638 fi
13639
13640   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
13641   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
13642     for ac_func in acosf asinf atanf \
13643                                           cosf sinf tanf \
13644                                           coshf sinhf tanhf
13645 do
13646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13647 echo "configure:13648: checking for $ac_func" >&5
13648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13649   echo $ac_n "(cached) $ac_c" 1>&6
13650 else
13651   cat > conftest.$ac_ext <<EOF
13652 #line 13653 "configure"
13653 #include "confdefs.h"
13654 /* System header to define __stub macros and hopefully few prototypes,
13655     which can conflict with char $ac_func(); below.  */
13656 #include <assert.h>
13657 /* Override any gcc2 internal prototype to avoid an error.  */
13658 /* We use char because int might match the return type of a gcc2
13659     builtin and then its argument prototype would still apply.  */
13660 char $ac_func();
13661
13662 int main() {
13663
13664 /* The GNU C library defines this for functions which it implements
13665     to always fail with ENOSYS.  Some functions are actually named
13666     something starting with __ and the normal name is an alias.  */
13667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13668 choke me
13669 #else
13670 $ac_func();
13671 #endif
13672
13673 ; return 0; }
13674 EOF
13675 if { (eval echo configure:13676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13676   rm -rf conftest*
13677   eval "ac_cv_func_$ac_func=yes"
13678 else
13679   echo "configure: failed program was:" >&5
13680   cat conftest.$ac_ext >&5
13681   rm -rf conftest*
13682   eval "ac_cv_func_$ac_func=no"
13683 fi
13684 rm -f conftest*
13685 fi
13686
13687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13688   echo "$ac_t""yes" 1>&6
13689     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13690   cat >> confdefs.h <<EOF
13691 #define $ac_tr_func 1
13692 EOF
13693  
13694 else
13695   echo "$ac_t""no" 1>&6
13696 fi
13697 done
13698
13699   fi
13700
13701   
13702   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
13703 echo "configure:13704: checking for float round functions" >&5
13704   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
13705   echo $ac_n "(cached) $ac_c" 1>&6
13706 else
13707   
13708     
13709     ac_ext=C
13710 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13711 ac_cpp='$CXXCPP $CPPFLAGS'
13712 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13713 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13714 cross_compiling=$ac_cv_prog_cxx_cross
13715
13716     cat > conftest.$ac_ext <<EOF
13717 #line 13718 "configure"
13718 #include "confdefs.h"
13719 #include <math.h>
13720 int main() {
13721  `for x in ceilf floorf; do echo "$x (0);"; done` 
13722 ; return 0; }
13723 EOF
13724 if { (eval echo configure:13725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13725   rm -rf conftest*
13726   glibcpp_cv_func_float_round_use=yes
13727 else
13728   echo "configure: failed program was:" >&5
13729   cat conftest.$ac_ext >&5
13730   rm -rf conftest*
13731   glibcpp_cv_func_float_round_use=no
13732 fi
13733 rm -f conftest*
13734     ac_ext=c
13735 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13736 ac_cpp='$CPP $CPPFLAGS'
13737 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13738 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13739 cross_compiling=$ac_cv_prog_cc_cross
13740
13741 fi
13742
13743   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
13744   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
13745     for ac_func in ceilf floorf
13746 do
13747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13748 echo "configure:13749: checking for $ac_func" >&5
13749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13750   echo $ac_n "(cached) $ac_c" 1>&6
13751 else
13752   cat > conftest.$ac_ext <<EOF
13753 #line 13754 "configure"
13754 #include "confdefs.h"
13755 /* System header to define __stub macros and hopefully few prototypes,
13756     which can conflict with char $ac_func(); below.  */
13757 #include <assert.h>
13758 /* Override any gcc2 internal prototype to avoid an error.  */
13759 /* We use char because int might match the return type of a gcc2
13760     builtin and then its argument prototype would still apply.  */
13761 char $ac_func();
13762
13763 int main() {
13764
13765 /* The GNU C library defines this for functions which it implements
13766     to always fail with ENOSYS.  Some functions are actually named
13767     something starting with __ and the normal name is an alias.  */
13768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13769 choke me
13770 #else
13771 $ac_func();
13772 #endif
13773
13774 ; return 0; }
13775 EOF
13776 if { (eval echo configure:13777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13777   rm -rf conftest*
13778   eval "ac_cv_func_$ac_func=yes"
13779 else
13780   echo "configure: failed program was:" >&5
13781   cat conftest.$ac_ext >&5
13782   rm -rf conftest*
13783   eval "ac_cv_func_$ac_func=no"
13784 fi
13785 rm -f conftest*
13786 fi
13787
13788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13789   echo "$ac_t""yes" 1>&6
13790     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13791   cat >> confdefs.h <<EOF
13792 #define $ac_tr_func 1
13793 EOF
13794  
13795 else
13796   echo "$ac_t""no" 1>&6
13797 fi
13798 done
13799
13800   fi
13801
13802   
13803   
13804   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
13805 echo "configure:13806: checking for expf declaration" >&5
13806   if test x${glibcpp_cv_func_expf_use+set} != xset; then
13807     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
13808   echo $ac_n "(cached) $ac_c" 1>&6
13809 else
13810   
13811       
13812       ac_ext=C
13813 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13814 ac_cpp='$CXXCPP $CPPFLAGS'
13815 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13816 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13817 cross_compiling=$ac_cv_prog_cxx_cross
13818
13819       cat > conftest.$ac_ext <<EOF
13820 #line 13821 "configure"
13821 #include "confdefs.h"
13822 #include <math.h>
13823                       #ifdef HAVE_IEEEFP_H
13824                       #include <ieeefp.h>
13825                       #endif
13826                      
13827 int main() {
13828  expf(0);
13829 ; return 0; }
13830 EOF
13831 if { (eval echo configure:13832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13832   rm -rf conftest*
13833   glibcpp_cv_func_expf_use=yes
13834 else
13835   echo "configure: failed program was:" >&5
13836   cat conftest.$ac_ext >&5
13837   rm -rf conftest*
13838   glibcpp_cv_func_expf_use=no
13839 fi
13840 rm -f conftest*
13841       ac_ext=c
13842 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13843 ac_cpp='$CPP $CPPFLAGS'
13844 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13845 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13846 cross_compiling=$ac_cv_prog_cc_cross
13847
13848     
13849 fi
13850
13851   fi
13852   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
13853
13854   if test x$glibcpp_cv_func_expf_use = x"yes"; then
13855     for ac_func in expf
13856 do
13857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13858 echo "configure:13859: checking for $ac_func" >&5
13859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13860   echo $ac_n "(cached) $ac_c" 1>&6
13861 else
13862   cat > conftest.$ac_ext <<EOF
13863 #line 13864 "configure"
13864 #include "confdefs.h"
13865 /* System header to define __stub macros and hopefully few prototypes,
13866     which can conflict with char $ac_func(); below.  */
13867 #include <assert.h>
13868 /* Override any gcc2 internal prototype to avoid an error.  */
13869 /* We use char because int might match the return type of a gcc2
13870     builtin and then its argument prototype would still apply.  */
13871 char $ac_func();
13872
13873 int main() {
13874
13875 /* The GNU C library defines this for functions which it implements
13876     to always fail with ENOSYS.  Some functions are actually named
13877     something starting with __ and the normal name is an alias.  */
13878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13879 choke me
13880 #else
13881 $ac_func();
13882 #endif
13883
13884 ; return 0; }
13885 EOF
13886 if { (eval echo configure:13887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13887   rm -rf conftest*
13888   eval "ac_cv_func_$ac_func=yes"
13889 else
13890   echo "configure: failed program was:" >&5
13891   cat conftest.$ac_ext >&5
13892   rm -rf conftest*
13893   eval "ac_cv_func_$ac_func=no"
13894 fi
13895 rm -f conftest*
13896 fi
13897
13898 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13899   echo "$ac_t""yes" 1>&6
13900     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13901   cat >> confdefs.h <<EOF
13902 #define $ac_tr_func 1
13903 EOF
13904  
13905 else
13906   echo "$ac_t""no" 1>&6
13907 fi
13908 done
13909     
13910   else
13911     
13912   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
13913 echo "configure:13914: checking for _expf declaration" >&5
13914   if test x${glibcpp_cv_func__expf_use+set} != xset; then
13915     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
13916   echo $ac_n "(cached) $ac_c" 1>&6
13917 else
13918   
13919       
13920       ac_ext=C
13921 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13922 ac_cpp='$CXXCPP $CPPFLAGS'
13923 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13924 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13925 cross_compiling=$ac_cv_prog_cxx_cross
13926
13927       cat > conftest.$ac_ext <<EOF
13928 #line 13929 "configure"
13929 #include "confdefs.h"
13930 #include <math.h>
13931                       #ifdef HAVE_IEEEFP_H
13932                       #include <ieeefp.h>
13933                       #endif
13934                      
13935 int main() {
13936  _expf(0);
13937 ; return 0; }
13938 EOF
13939 if { (eval echo configure:13940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13940   rm -rf conftest*
13941   glibcpp_cv_func__expf_use=yes
13942 else
13943   echo "configure: failed program was:" >&5
13944   cat conftest.$ac_ext >&5
13945   rm -rf conftest*
13946   glibcpp_cv_func__expf_use=no
13947 fi
13948 rm -f conftest*
13949       ac_ext=c
13950 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13951 ac_cpp='$CPP $CPPFLAGS'
13952 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13953 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13954 cross_compiling=$ac_cv_prog_cc_cross
13955
13956     
13957 fi
13958
13959   fi
13960   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
13961
13962     if test x$glibcpp_cv_func__expf_use = x"yes"; then
13963       for ac_func in _expf
13964 do
13965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13966 echo "configure:13967: checking for $ac_func" >&5
13967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13968   echo $ac_n "(cached) $ac_c" 1>&6
13969 else
13970   cat > conftest.$ac_ext <<EOF
13971 #line 13972 "configure"
13972 #include "confdefs.h"
13973 /* System header to define __stub macros and hopefully few prototypes,
13974     which can conflict with char $ac_func(); below.  */
13975 #include <assert.h>
13976 /* Override any gcc2 internal prototype to avoid an error.  */
13977 /* We use char because int might match the return type of a gcc2
13978     builtin and then its argument prototype would still apply.  */
13979 char $ac_func();
13980
13981 int main() {
13982
13983 /* The GNU C library defines this for functions which it implements
13984     to always fail with ENOSYS.  Some functions are actually named
13985     something starting with __ and the normal name is an alias.  */
13986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13987 choke me
13988 #else
13989 $ac_func();
13990 #endif
13991
13992 ; return 0; }
13993 EOF
13994 if { (eval echo configure:13995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13995   rm -rf conftest*
13996   eval "ac_cv_func_$ac_func=yes"
13997 else
13998   echo "configure: failed program was:" >&5
13999   cat conftest.$ac_ext >&5
14000   rm -rf conftest*
14001   eval "ac_cv_func_$ac_func=no"
14002 fi
14003 rm -f conftest*
14004 fi
14005
14006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14007   echo "$ac_t""yes" 1>&6
14008     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14009   cat >> confdefs.h <<EOF
14010 #define $ac_tr_func 1
14011 EOF
14012  
14013 else
14014   echo "$ac_t""no" 1>&6
14015 fi
14016 done
14017     
14018     fi
14019   fi
14020
14021   
14022   
14023   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
14024 echo "configure:14025: checking for isnanf declaration" >&5
14025   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
14026     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
14027   echo $ac_n "(cached) $ac_c" 1>&6
14028 else
14029   
14030       
14031       ac_ext=C
14032 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14033 ac_cpp='$CXXCPP $CPPFLAGS'
14034 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14035 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14036 cross_compiling=$ac_cv_prog_cxx_cross
14037
14038       cat > conftest.$ac_ext <<EOF
14039 #line 14040 "configure"
14040 #include "confdefs.h"
14041 #include <math.h>
14042                       #ifdef HAVE_IEEEFP_H
14043                       #include <ieeefp.h>
14044                       #endif
14045                      
14046 int main() {
14047  isnanf(0);
14048 ; return 0; }
14049 EOF
14050 if { (eval echo configure:14051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14051   rm -rf conftest*
14052   glibcpp_cv_func_isnanf_use=yes
14053 else
14054   echo "configure: failed program was:" >&5
14055   cat conftest.$ac_ext >&5
14056   rm -rf conftest*
14057   glibcpp_cv_func_isnanf_use=no
14058 fi
14059 rm -f conftest*
14060       ac_ext=c
14061 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14062 ac_cpp='$CPP $CPPFLAGS'
14063 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14064 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14065 cross_compiling=$ac_cv_prog_cc_cross
14066
14067     
14068 fi
14069
14070   fi
14071   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
14072
14073   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
14074     for ac_func in isnanf
14075 do
14076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14077 echo "configure:14078: checking for $ac_func" >&5
14078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14079   echo $ac_n "(cached) $ac_c" 1>&6
14080 else
14081   cat > conftest.$ac_ext <<EOF
14082 #line 14083 "configure"
14083 #include "confdefs.h"
14084 /* System header to define __stub macros and hopefully few prototypes,
14085     which can conflict with char $ac_func(); below.  */
14086 #include <assert.h>
14087 /* Override any gcc2 internal prototype to avoid an error.  */
14088 /* We use char because int might match the return type of a gcc2
14089     builtin and then its argument prototype would still apply.  */
14090 char $ac_func();
14091
14092 int main() {
14093
14094 /* The GNU C library defines this for functions which it implements
14095     to always fail with ENOSYS.  Some functions are actually named
14096     something starting with __ and the normal name is an alias.  */
14097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14098 choke me
14099 #else
14100 $ac_func();
14101 #endif
14102
14103 ; return 0; }
14104 EOF
14105 if { (eval echo configure:14106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14106   rm -rf conftest*
14107   eval "ac_cv_func_$ac_func=yes"
14108 else
14109   echo "configure: failed program was:" >&5
14110   cat conftest.$ac_ext >&5
14111   rm -rf conftest*
14112   eval "ac_cv_func_$ac_func=no"
14113 fi
14114 rm -f conftest*
14115 fi
14116
14117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14118   echo "$ac_t""yes" 1>&6
14119     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14120   cat >> confdefs.h <<EOF
14121 #define $ac_tr_func 1
14122 EOF
14123  
14124 else
14125   echo "$ac_t""no" 1>&6
14126 fi
14127 done
14128     
14129   else
14130     
14131   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
14132 echo "configure:14133: checking for _isnanf declaration" >&5
14133   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
14134     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
14135   echo $ac_n "(cached) $ac_c" 1>&6
14136 else
14137   
14138       
14139       ac_ext=C
14140 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14141 ac_cpp='$CXXCPP $CPPFLAGS'
14142 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14143 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14144 cross_compiling=$ac_cv_prog_cxx_cross
14145
14146       cat > conftest.$ac_ext <<EOF
14147 #line 14148 "configure"
14148 #include "confdefs.h"
14149 #include <math.h>
14150                       #ifdef HAVE_IEEEFP_H
14151                       #include <ieeefp.h>
14152                       #endif
14153                      
14154 int main() {
14155  _isnanf(0);
14156 ; return 0; }
14157 EOF
14158 if { (eval echo configure:14159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14159   rm -rf conftest*
14160   glibcpp_cv_func__isnanf_use=yes
14161 else
14162   echo "configure: failed program was:" >&5
14163   cat conftest.$ac_ext >&5
14164   rm -rf conftest*
14165   glibcpp_cv_func__isnanf_use=no
14166 fi
14167 rm -f conftest*
14168       ac_ext=c
14169 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14170 ac_cpp='$CPP $CPPFLAGS'
14171 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14172 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14173 cross_compiling=$ac_cv_prog_cc_cross
14174
14175     
14176 fi
14177
14178   fi
14179   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
14180
14181     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
14182       for ac_func in _isnanf
14183 do
14184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14185 echo "configure:14186: checking for $ac_func" >&5
14186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14187   echo $ac_n "(cached) $ac_c" 1>&6
14188 else
14189   cat > conftest.$ac_ext <<EOF
14190 #line 14191 "configure"
14191 #include "confdefs.h"
14192 /* System header to define __stub macros and hopefully few prototypes,
14193     which can conflict with char $ac_func(); below.  */
14194 #include <assert.h>
14195 /* Override any gcc2 internal prototype to avoid an error.  */
14196 /* We use char because int might match the return type of a gcc2
14197     builtin and then its argument prototype would still apply.  */
14198 char $ac_func();
14199
14200 int main() {
14201
14202 /* The GNU C library defines this for functions which it implements
14203     to always fail with ENOSYS.  Some functions are actually named
14204     something starting with __ and the normal name is an alias.  */
14205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14206 choke me
14207 #else
14208 $ac_func();
14209 #endif
14210
14211 ; return 0; }
14212 EOF
14213 if { (eval echo configure:14214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14214   rm -rf conftest*
14215   eval "ac_cv_func_$ac_func=yes"
14216 else
14217   echo "configure: failed program was:" >&5
14218   cat conftest.$ac_ext >&5
14219   rm -rf conftest*
14220   eval "ac_cv_func_$ac_func=no"
14221 fi
14222 rm -f conftest*
14223 fi
14224
14225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14226   echo "$ac_t""yes" 1>&6
14227     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14228   cat >> confdefs.h <<EOF
14229 #define $ac_tr_func 1
14230 EOF
14231  
14232 else
14233   echo "$ac_t""no" 1>&6
14234 fi
14235 done
14236     
14237     fi
14238   fi
14239
14240   
14241   
14242   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
14243 echo "configure:14244: checking for isinff declaration" >&5
14244   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
14245     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
14246   echo $ac_n "(cached) $ac_c" 1>&6
14247 else
14248   
14249       
14250       ac_ext=C
14251 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14252 ac_cpp='$CXXCPP $CPPFLAGS'
14253 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14254 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14255 cross_compiling=$ac_cv_prog_cxx_cross
14256
14257       cat > conftest.$ac_ext <<EOF
14258 #line 14259 "configure"
14259 #include "confdefs.h"
14260 #include <math.h>
14261                       #ifdef HAVE_IEEEFP_H
14262                       #include <ieeefp.h>
14263                       #endif
14264                      
14265 int main() {
14266  isinff(0);
14267 ; return 0; }
14268 EOF
14269 if { (eval echo configure:14270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14270   rm -rf conftest*
14271   glibcpp_cv_func_isinff_use=yes
14272 else
14273   echo "configure: failed program was:" >&5
14274   cat conftest.$ac_ext >&5
14275   rm -rf conftest*
14276   glibcpp_cv_func_isinff_use=no
14277 fi
14278 rm -f conftest*
14279       ac_ext=c
14280 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14281 ac_cpp='$CPP $CPPFLAGS'
14282 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14283 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14284 cross_compiling=$ac_cv_prog_cc_cross
14285
14286     
14287 fi
14288
14289   fi
14290   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
14291
14292   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
14293     for ac_func in isinff
14294 do
14295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14296 echo "configure:14297: checking for $ac_func" >&5
14297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14298   echo $ac_n "(cached) $ac_c" 1>&6
14299 else
14300   cat > conftest.$ac_ext <<EOF
14301 #line 14302 "configure"
14302 #include "confdefs.h"
14303 /* System header to define __stub macros and hopefully few prototypes,
14304     which can conflict with char $ac_func(); below.  */
14305 #include <assert.h>
14306 /* Override any gcc2 internal prototype to avoid an error.  */
14307 /* We use char because int might match the return type of a gcc2
14308     builtin and then its argument prototype would still apply.  */
14309 char $ac_func();
14310
14311 int main() {
14312
14313 /* The GNU C library defines this for functions which it implements
14314     to always fail with ENOSYS.  Some functions are actually named
14315     something starting with __ and the normal name is an alias.  */
14316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14317 choke me
14318 #else
14319 $ac_func();
14320 #endif
14321
14322 ; return 0; }
14323 EOF
14324 if { (eval echo configure:14325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14325   rm -rf conftest*
14326   eval "ac_cv_func_$ac_func=yes"
14327 else
14328   echo "configure: failed program was:" >&5
14329   cat conftest.$ac_ext >&5
14330   rm -rf conftest*
14331   eval "ac_cv_func_$ac_func=no"
14332 fi
14333 rm -f conftest*
14334 fi
14335
14336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14337   echo "$ac_t""yes" 1>&6
14338     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14339   cat >> confdefs.h <<EOF
14340 #define $ac_tr_func 1
14341 EOF
14342  
14343 else
14344   echo "$ac_t""no" 1>&6
14345 fi
14346 done
14347     
14348   else
14349     
14350   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
14351 echo "configure:14352: checking for _isinff declaration" >&5
14352   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
14353     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
14354   echo $ac_n "(cached) $ac_c" 1>&6
14355 else
14356   
14357       
14358       ac_ext=C
14359 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14360 ac_cpp='$CXXCPP $CPPFLAGS'
14361 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14362 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14363 cross_compiling=$ac_cv_prog_cxx_cross
14364
14365       cat > conftest.$ac_ext <<EOF
14366 #line 14367 "configure"
14367 #include "confdefs.h"
14368 #include <math.h>
14369                       #ifdef HAVE_IEEEFP_H
14370                       #include <ieeefp.h>
14371                       #endif
14372                      
14373 int main() {
14374  _isinff(0);
14375 ; return 0; }
14376 EOF
14377 if { (eval echo configure:14378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14378   rm -rf conftest*
14379   glibcpp_cv_func__isinff_use=yes
14380 else
14381   echo "configure: failed program was:" >&5
14382   cat conftest.$ac_ext >&5
14383   rm -rf conftest*
14384   glibcpp_cv_func__isinff_use=no
14385 fi
14386 rm -f conftest*
14387       ac_ext=c
14388 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14389 ac_cpp='$CPP $CPPFLAGS'
14390 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14391 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14392 cross_compiling=$ac_cv_prog_cc_cross
14393
14394     
14395 fi
14396
14397   fi
14398   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
14399
14400     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
14401       for ac_func in _isinff
14402 do
14403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14404 echo "configure:14405: checking for $ac_func" >&5
14405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14406   echo $ac_n "(cached) $ac_c" 1>&6
14407 else
14408   cat > conftest.$ac_ext <<EOF
14409 #line 14410 "configure"
14410 #include "confdefs.h"
14411 /* System header to define __stub macros and hopefully few prototypes,
14412     which can conflict with char $ac_func(); below.  */
14413 #include <assert.h>
14414 /* Override any gcc2 internal prototype to avoid an error.  */
14415 /* We use char because int might match the return type of a gcc2
14416     builtin and then its argument prototype would still apply.  */
14417 char $ac_func();
14418
14419 int main() {
14420
14421 /* The GNU C library defines this for functions which it implements
14422     to always fail with ENOSYS.  Some functions are actually named
14423     something starting with __ and the normal name is an alias.  */
14424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14425 choke me
14426 #else
14427 $ac_func();
14428 #endif
14429
14430 ; return 0; }
14431 EOF
14432 if { (eval echo configure:14433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14433   rm -rf conftest*
14434   eval "ac_cv_func_$ac_func=yes"
14435 else
14436   echo "configure: failed program was:" >&5
14437   cat conftest.$ac_ext >&5
14438   rm -rf conftest*
14439   eval "ac_cv_func_$ac_func=no"
14440 fi
14441 rm -f conftest*
14442 fi
14443
14444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14445   echo "$ac_t""yes" 1>&6
14446     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14447   cat >> confdefs.h <<EOF
14448 #define $ac_tr_func 1
14449 EOF
14450  
14451 else
14452   echo "$ac_t""no" 1>&6
14453 fi
14454 done
14455     
14456     fi
14457   fi
14458
14459   
14460   
14461   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
14462 echo "configure:14463: checking for atan2f declaration" >&5
14463   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
14464     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
14465   echo $ac_n "(cached) $ac_c" 1>&6
14466 else
14467   
14468       
14469       ac_ext=C
14470 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14471 ac_cpp='$CXXCPP $CPPFLAGS'
14472 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14473 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14474 cross_compiling=$ac_cv_prog_cxx_cross
14475
14476       cat > conftest.$ac_ext <<EOF
14477 #line 14478 "configure"
14478 #include "confdefs.h"
14479 #include <math.h>
14480 int main() {
14481  atan2f(0, 0);
14482 ; return 0; }
14483 EOF
14484 if { (eval echo configure:14485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14485   rm -rf conftest*
14486   glibcpp_cv_func_atan2f_use=yes
14487 else
14488   echo "configure: failed program was:" >&5
14489   cat conftest.$ac_ext >&5
14490   rm -rf conftest*
14491   glibcpp_cv_func_atan2f_use=no
14492 fi
14493 rm -f conftest*
14494       ac_ext=c
14495 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14496 ac_cpp='$CPP $CPPFLAGS'
14497 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14498 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14499 cross_compiling=$ac_cv_prog_cc_cross
14500
14501     
14502 fi
14503
14504   fi
14505   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
14506
14507   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
14508     for ac_func in atan2f
14509 do
14510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14511 echo "configure:14512: checking for $ac_func" >&5
14512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14513   echo $ac_n "(cached) $ac_c" 1>&6
14514 else
14515   cat > conftest.$ac_ext <<EOF
14516 #line 14517 "configure"
14517 #include "confdefs.h"
14518 /* System header to define __stub macros and hopefully few prototypes,
14519     which can conflict with char $ac_func(); below.  */
14520 #include <assert.h>
14521 /* Override any gcc2 internal prototype to avoid an error.  */
14522 /* We use char because int might match the return type of a gcc2
14523     builtin and then its argument prototype would still apply.  */
14524 char $ac_func();
14525
14526 int main() {
14527
14528 /* The GNU C library defines this for functions which it implements
14529     to always fail with ENOSYS.  Some functions are actually named
14530     something starting with __ and the normal name is an alias.  */
14531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14532 choke me
14533 #else
14534 $ac_func();
14535 #endif
14536
14537 ; return 0; }
14538 EOF
14539 if { (eval echo configure:14540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14540   rm -rf conftest*
14541   eval "ac_cv_func_$ac_func=yes"
14542 else
14543   echo "configure: failed program was:" >&5
14544   cat conftest.$ac_ext >&5
14545   rm -rf conftest*
14546   eval "ac_cv_func_$ac_func=no"
14547 fi
14548 rm -f conftest*
14549 fi
14550
14551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14552   echo "$ac_t""yes" 1>&6
14553     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14554   cat >> confdefs.h <<EOF
14555 #define $ac_tr_func 1
14556 EOF
14557  
14558 else
14559   echo "$ac_t""no" 1>&6
14560 fi
14561 done
14562     
14563   else
14564     
14565   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
14566 echo "configure:14567: checking for _atan2f declaration" >&5
14567   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
14568     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
14569   echo $ac_n "(cached) $ac_c" 1>&6
14570 else
14571   
14572       
14573       ac_ext=C
14574 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14575 ac_cpp='$CXXCPP $CPPFLAGS'
14576 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14577 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14578 cross_compiling=$ac_cv_prog_cxx_cross
14579
14580       cat > conftest.$ac_ext <<EOF
14581 #line 14582 "configure"
14582 #include "confdefs.h"
14583 #include <math.h>
14584 int main() {
14585  _atan2f(0, 0);
14586 ; return 0; }
14587 EOF
14588 if { (eval echo configure:14589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14589   rm -rf conftest*
14590   glibcpp_cv_func__atan2f_use=yes
14591 else
14592   echo "configure: failed program was:" >&5
14593   cat conftest.$ac_ext >&5
14594   rm -rf conftest*
14595   glibcpp_cv_func__atan2f_use=no
14596 fi
14597 rm -f conftest*
14598       ac_ext=c
14599 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14600 ac_cpp='$CPP $CPPFLAGS'
14601 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14602 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14603 cross_compiling=$ac_cv_prog_cc_cross
14604
14605     
14606 fi
14607
14608   fi
14609   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
14610
14611     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
14612       for ac_func in _atan2f
14613 do
14614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14615 echo "configure:14616: checking for $ac_func" >&5
14616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14617   echo $ac_n "(cached) $ac_c" 1>&6
14618 else
14619   cat > conftest.$ac_ext <<EOF
14620 #line 14621 "configure"
14621 #include "confdefs.h"
14622 /* System header to define __stub macros and hopefully few prototypes,
14623     which can conflict with char $ac_func(); below.  */
14624 #include <assert.h>
14625 /* Override any gcc2 internal prototype to avoid an error.  */
14626 /* We use char because int might match the return type of a gcc2
14627     builtin and then its argument prototype would still apply.  */
14628 char $ac_func();
14629
14630 int main() {
14631
14632 /* The GNU C library defines this for functions which it implements
14633     to always fail with ENOSYS.  Some functions are actually named
14634     something starting with __ and the normal name is an alias.  */
14635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14636 choke me
14637 #else
14638 $ac_func();
14639 #endif
14640
14641 ; return 0; }
14642 EOF
14643 if { (eval echo configure:14644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14644   rm -rf conftest*
14645   eval "ac_cv_func_$ac_func=yes"
14646 else
14647   echo "configure: failed program was:" >&5
14648   cat conftest.$ac_ext >&5
14649   rm -rf conftest*
14650   eval "ac_cv_func_$ac_func=no"
14651 fi
14652 rm -f conftest*
14653 fi
14654
14655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14656   echo "$ac_t""yes" 1>&6
14657     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14658   cat >> confdefs.h <<EOF
14659 #define $ac_tr_func 1
14660 EOF
14661  
14662 else
14663   echo "$ac_t""no" 1>&6
14664 fi
14665 done
14666     
14667     fi
14668   fi
14669
14670   
14671   
14672   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
14673 echo "configure:14674: checking for fabsf declaration" >&5
14674   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
14675     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
14676   echo $ac_n "(cached) $ac_c" 1>&6
14677 else
14678   
14679       
14680       ac_ext=C
14681 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14682 ac_cpp='$CXXCPP $CPPFLAGS'
14683 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14684 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14685 cross_compiling=$ac_cv_prog_cxx_cross
14686
14687       cat > conftest.$ac_ext <<EOF
14688 #line 14689 "configure"
14689 #include "confdefs.h"
14690 #include <math.h>
14691                       #ifdef HAVE_IEEEFP_H
14692                       #include <ieeefp.h>
14693                       #endif
14694                      
14695 int main() {
14696  fabsf(0);
14697 ; return 0; }
14698 EOF
14699 if { (eval echo configure:14700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14700   rm -rf conftest*
14701   glibcpp_cv_func_fabsf_use=yes
14702 else
14703   echo "configure: failed program was:" >&5
14704   cat conftest.$ac_ext >&5
14705   rm -rf conftest*
14706   glibcpp_cv_func_fabsf_use=no
14707 fi
14708 rm -f conftest*
14709       ac_ext=c
14710 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14711 ac_cpp='$CPP $CPPFLAGS'
14712 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14713 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14714 cross_compiling=$ac_cv_prog_cc_cross
14715
14716     
14717 fi
14718
14719   fi
14720   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
14721
14722   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
14723     for ac_func in fabsf
14724 do
14725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14726 echo "configure:14727: checking for $ac_func" >&5
14727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14728   echo $ac_n "(cached) $ac_c" 1>&6
14729 else
14730   cat > conftest.$ac_ext <<EOF
14731 #line 14732 "configure"
14732 #include "confdefs.h"
14733 /* System header to define __stub macros and hopefully few prototypes,
14734     which can conflict with char $ac_func(); below.  */
14735 #include <assert.h>
14736 /* Override any gcc2 internal prototype to avoid an error.  */
14737 /* We use char because int might match the return type of a gcc2
14738     builtin and then its argument prototype would still apply.  */
14739 char $ac_func();
14740
14741 int main() {
14742
14743 /* The GNU C library defines this for functions which it implements
14744     to always fail with ENOSYS.  Some functions are actually named
14745     something starting with __ and the normal name is an alias.  */
14746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14747 choke me
14748 #else
14749 $ac_func();
14750 #endif
14751
14752 ; return 0; }
14753 EOF
14754 if { (eval echo configure:14755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14755   rm -rf conftest*
14756   eval "ac_cv_func_$ac_func=yes"
14757 else
14758   echo "configure: failed program was:" >&5
14759   cat conftest.$ac_ext >&5
14760   rm -rf conftest*
14761   eval "ac_cv_func_$ac_func=no"
14762 fi
14763 rm -f conftest*
14764 fi
14765
14766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14767   echo "$ac_t""yes" 1>&6
14768     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14769   cat >> confdefs.h <<EOF
14770 #define $ac_tr_func 1
14771 EOF
14772  
14773 else
14774   echo "$ac_t""no" 1>&6
14775 fi
14776 done
14777     
14778   else
14779     
14780   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
14781 echo "configure:14782: checking for _fabsf declaration" >&5
14782   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
14783     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
14784   echo $ac_n "(cached) $ac_c" 1>&6
14785 else
14786   
14787       
14788       ac_ext=C
14789 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14790 ac_cpp='$CXXCPP $CPPFLAGS'
14791 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14792 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14793 cross_compiling=$ac_cv_prog_cxx_cross
14794
14795       cat > conftest.$ac_ext <<EOF
14796 #line 14797 "configure"
14797 #include "confdefs.h"
14798 #include <math.h>
14799                       #ifdef HAVE_IEEEFP_H
14800                       #include <ieeefp.h>
14801                       #endif
14802                      
14803 int main() {
14804  _fabsf(0);
14805 ; return 0; }
14806 EOF
14807 if { (eval echo configure:14808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14808   rm -rf conftest*
14809   glibcpp_cv_func__fabsf_use=yes
14810 else
14811   echo "configure: failed program was:" >&5
14812   cat conftest.$ac_ext >&5
14813   rm -rf conftest*
14814   glibcpp_cv_func__fabsf_use=no
14815 fi
14816 rm -f conftest*
14817       ac_ext=c
14818 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14819 ac_cpp='$CPP $CPPFLAGS'
14820 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14821 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14822 cross_compiling=$ac_cv_prog_cc_cross
14823
14824     
14825 fi
14826
14827   fi
14828   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
14829
14830     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
14831       for ac_func in _fabsf
14832 do
14833 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14834 echo "configure:14835: checking for $ac_func" >&5
14835 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14836   echo $ac_n "(cached) $ac_c" 1>&6
14837 else
14838   cat > conftest.$ac_ext <<EOF
14839 #line 14840 "configure"
14840 #include "confdefs.h"
14841 /* System header to define __stub macros and hopefully few prototypes,
14842     which can conflict with char $ac_func(); below.  */
14843 #include <assert.h>
14844 /* Override any gcc2 internal prototype to avoid an error.  */
14845 /* We use char because int might match the return type of a gcc2
14846     builtin and then its argument prototype would still apply.  */
14847 char $ac_func();
14848
14849 int main() {
14850
14851 /* The GNU C library defines this for functions which it implements
14852     to always fail with ENOSYS.  Some functions are actually named
14853     something starting with __ and the normal name is an alias.  */
14854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14855 choke me
14856 #else
14857 $ac_func();
14858 #endif
14859
14860 ; return 0; }
14861 EOF
14862 if { (eval echo configure:14863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14863   rm -rf conftest*
14864   eval "ac_cv_func_$ac_func=yes"
14865 else
14866   echo "configure: failed program was:" >&5
14867   cat conftest.$ac_ext >&5
14868   rm -rf conftest*
14869   eval "ac_cv_func_$ac_func=no"
14870 fi
14871 rm -f conftest*
14872 fi
14873
14874 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14875   echo "$ac_t""yes" 1>&6
14876     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14877   cat >> confdefs.h <<EOF
14878 #define $ac_tr_func 1
14879 EOF
14880  
14881 else
14882   echo "$ac_t""no" 1>&6
14883 fi
14884 done
14885     
14886     fi
14887   fi
14888
14889   
14890   
14891   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
14892 echo "configure:14893: checking for fmodf declaration" >&5
14893   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
14894     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
14895   echo $ac_n "(cached) $ac_c" 1>&6
14896 else
14897   
14898       
14899       ac_ext=C
14900 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14901 ac_cpp='$CXXCPP $CPPFLAGS'
14902 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14903 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14904 cross_compiling=$ac_cv_prog_cxx_cross
14905
14906       cat > conftest.$ac_ext <<EOF
14907 #line 14908 "configure"
14908 #include "confdefs.h"
14909 #include <math.h>
14910 int main() {
14911  fmodf(0, 0);
14912 ; return 0; }
14913 EOF
14914 if { (eval echo configure:14915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14915   rm -rf conftest*
14916   glibcpp_cv_func_fmodf_use=yes
14917 else
14918   echo "configure: failed program was:" >&5
14919   cat conftest.$ac_ext >&5
14920   rm -rf conftest*
14921   glibcpp_cv_func_fmodf_use=no
14922 fi
14923 rm -f conftest*
14924       ac_ext=c
14925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14926 ac_cpp='$CPP $CPPFLAGS'
14927 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14928 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14929 cross_compiling=$ac_cv_prog_cc_cross
14930
14931     
14932 fi
14933
14934   fi
14935   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
14936
14937   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
14938     for ac_func in fmodf
14939 do
14940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14941 echo "configure:14942: checking for $ac_func" >&5
14942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14943   echo $ac_n "(cached) $ac_c" 1>&6
14944 else
14945   cat > conftest.$ac_ext <<EOF
14946 #line 14947 "configure"
14947 #include "confdefs.h"
14948 /* System header to define __stub macros and hopefully few prototypes,
14949     which can conflict with char $ac_func(); below.  */
14950 #include <assert.h>
14951 /* Override any gcc2 internal prototype to avoid an error.  */
14952 /* We use char because int might match the return type of a gcc2
14953     builtin and then its argument prototype would still apply.  */
14954 char $ac_func();
14955
14956 int main() {
14957
14958 /* The GNU C library defines this for functions which it implements
14959     to always fail with ENOSYS.  Some functions are actually named
14960     something starting with __ and the normal name is an alias.  */
14961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14962 choke me
14963 #else
14964 $ac_func();
14965 #endif
14966
14967 ; return 0; }
14968 EOF
14969 if { (eval echo configure:14970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14970   rm -rf conftest*
14971   eval "ac_cv_func_$ac_func=yes"
14972 else
14973   echo "configure: failed program was:" >&5
14974   cat conftest.$ac_ext >&5
14975   rm -rf conftest*
14976   eval "ac_cv_func_$ac_func=no"
14977 fi
14978 rm -f conftest*
14979 fi
14980
14981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14982   echo "$ac_t""yes" 1>&6
14983     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14984   cat >> confdefs.h <<EOF
14985 #define $ac_tr_func 1
14986 EOF
14987  
14988 else
14989   echo "$ac_t""no" 1>&6
14990 fi
14991 done
14992     
14993   else
14994     
14995   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
14996 echo "configure:14997: checking for _fmodf declaration" >&5
14997   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
14998     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
14999   echo $ac_n "(cached) $ac_c" 1>&6
15000 else
15001   
15002       
15003       ac_ext=C
15004 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15005 ac_cpp='$CXXCPP $CPPFLAGS'
15006 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15007 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15008 cross_compiling=$ac_cv_prog_cxx_cross
15009
15010       cat > conftest.$ac_ext <<EOF
15011 #line 15012 "configure"
15012 #include "confdefs.h"
15013 #include <math.h>
15014 int main() {
15015  _fmodf(0, 0);
15016 ; return 0; }
15017 EOF
15018 if { (eval echo configure:15019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15019   rm -rf conftest*
15020   glibcpp_cv_func__fmodf_use=yes
15021 else
15022   echo "configure: failed program was:" >&5
15023   cat conftest.$ac_ext >&5
15024   rm -rf conftest*
15025   glibcpp_cv_func__fmodf_use=no
15026 fi
15027 rm -f conftest*
15028       ac_ext=c
15029 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15030 ac_cpp='$CPP $CPPFLAGS'
15031 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15032 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15033 cross_compiling=$ac_cv_prog_cc_cross
15034
15035     
15036 fi
15037
15038   fi
15039   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
15040
15041     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
15042       for ac_func in _fmodf
15043 do
15044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15045 echo "configure:15046: checking for $ac_func" >&5
15046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15047   echo $ac_n "(cached) $ac_c" 1>&6
15048 else
15049   cat > conftest.$ac_ext <<EOF
15050 #line 15051 "configure"
15051 #include "confdefs.h"
15052 /* System header to define __stub macros and hopefully few prototypes,
15053     which can conflict with char $ac_func(); below.  */
15054 #include <assert.h>
15055 /* Override any gcc2 internal prototype to avoid an error.  */
15056 /* We use char because int might match the return type of a gcc2
15057     builtin and then its argument prototype would still apply.  */
15058 char $ac_func();
15059
15060 int main() {
15061
15062 /* The GNU C library defines this for functions which it implements
15063     to always fail with ENOSYS.  Some functions are actually named
15064     something starting with __ and the normal name is an alias.  */
15065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15066 choke me
15067 #else
15068 $ac_func();
15069 #endif
15070
15071 ; return 0; }
15072 EOF
15073 if { (eval echo configure:15074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15074   rm -rf conftest*
15075   eval "ac_cv_func_$ac_func=yes"
15076 else
15077   echo "configure: failed program was:" >&5
15078   cat conftest.$ac_ext >&5
15079   rm -rf conftest*
15080   eval "ac_cv_func_$ac_func=no"
15081 fi
15082 rm -f conftest*
15083 fi
15084
15085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15086   echo "$ac_t""yes" 1>&6
15087     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15088   cat >> confdefs.h <<EOF
15089 #define $ac_tr_func 1
15090 EOF
15091  
15092 else
15093   echo "$ac_t""no" 1>&6
15094 fi
15095 done
15096     
15097     fi
15098   fi
15099
15100   
15101   
15102   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
15103 echo "configure:15104: checking for frexpf declaration" >&5
15104   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
15105     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
15106   echo $ac_n "(cached) $ac_c" 1>&6
15107 else
15108   
15109       
15110       ac_ext=C
15111 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15112 ac_cpp='$CXXCPP $CPPFLAGS'
15113 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15114 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15115 cross_compiling=$ac_cv_prog_cxx_cross
15116
15117       cat > conftest.$ac_ext <<EOF
15118 #line 15119 "configure"
15119 #include "confdefs.h"
15120 #include <math.h>
15121 int main() {
15122  frexpf(0, 0);
15123 ; return 0; }
15124 EOF
15125 if { (eval echo configure:15126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15126   rm -rf conftest*
15127   glibcpp_cv_func_frexpf_use=yes
15128 else
15129   echo "configure: failed program was:" >&5
15130   cat conftest.$ac_ext >&5
15131   rm -rf conftest*
15132   glibcpp_cv_func_frexpf_use=no
15133 fi
15134 rm -f conftest*
15135       ac_ext=c
15136 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15137 ac_cpp='$CPP $CPPFLAGS'
15138 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15139 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15140 cross_compiling=$ac_cv_prog_cc_cross
15141
15142     
15143 fi
15144
15145   fi
15146   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
15147
15148   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
15149     for ac_func in frexpf
15150 do
15151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15152 echo "configure:15153: checking for $ac_func" >&5
15153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15154   echo $ac_n "(cached) $ac_c" 1>&6
15155 else
15156   cat > conftest.$ac_ext <<EOF
15157 #line 15158 "configure"
15158 #include "confdefs.h"
15159 /* System header to define __stub macros and hopefully few prototypes,
15160     which can conflict with char $ac_func(); below.  */
15161 #include <assert.h>
15162 /* Override any gcc2 internal prototype to avoid an error.  */
15163 /* We use char because int might match the return type of a gcc2
15164     builtin and then its argument prototype would still apply.  */
15165 char $ac_func();
15166
15167 int main() {
15168
15169 /* The GNU C library defines this for functions which it implements
15170     to always fail with ENOSYS.  Some functions are actually named
15171     something starting with __ and the normal name is an alias.  */
15172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15173 choke me
15174 #else
15175 $ac_func();
15176 #endif
15177
15178 ; return 0; }
15179 EOF
15180 if { (eval echo configure:15181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15181   rm -rf conftest*
15182   eval "ac_cv_func_$ac_func=yes"
15183 else
15184   echo "configure: failed program was:" >&5
15185   cat conftest.$ac_ext >&5
15186   rm -rf conftest*
15187   eval "ac_cv_func_$ac_func=no"
15188 fi
15189 rm -f conftest*
15190 fi
15191
15192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15193   echo "$ac_t""yes" 1>&6
15194     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15195   cat >> confdefs.h <<EOF
15196 #define $ac_tr_func 1
15197 EOF
15198  
15199 else
15200   echo "$ac_t""no" 1>&6
15201 fi
15202 done
15203     
15204   else
15205     
15206   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
15207 echo "configure:15208: checking for _frexpf declaration" >&5
15208   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
15209     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
15210   echo $ac_n "(cached) $ac_c" 1>&6
15211 else
15212   
15213       
15214       ac_ext=C
15215 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15216 ac_cpp='$CXXCPP $CPPFLAGS'
15217 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15218 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15219 cross_compiling=$ac_cv_prog_cxx_cross
15220
15221       cat > conftest.$ac_ext <<EOF
15222 #line 15223 "configure"
15223 #include "confdefs.h"
15224 #include <math.h>
15225 int main() {
15226  _frexpf(0, 0);
15227 ; return 0; }
15228 EOF
15229 if { (eval echo configure:15230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15230   rm -rf conftest*
15231   glibcpp_cv_func__frexpf_use=yes
15232 else
15233   echo "configure: failed program was:" >&5
15234   cat conftest.$ac_ext >&5
15235   rm -rf conftest*
15236   glibcpp_cv_func__frexpf_use=no
15237 fi
15238 rm -f conftest*
15239       ac_ext=c
15240 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15241 ac_cpp='$CPP $CPPFLAGS'
15242 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15243 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15244 cross_compiling=$ac_cv_prog_cc_cross
15245
15246     
15247 fi
15248
15249   fi
15250   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
15251
15252     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
15253       for ac_func in _frexpf
15254 do
15255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15256 echo "configure:15257: checking for $ac_func" >&5
15257 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15258   echo $ac_n "(cached) $ac_c" 1>&6
15259 else
15260   cat > conftest.$ac_ext <<EOF
15261 #line 15262 "configure"
15262 #include "confdefs.h"
15263 /* System header to define __stub macros and hopefully few prototypes,
15264     which can conflict with char $ac_func(); below.  */
15265 #include <assert.h>
15266 /* Override any gcc2 internal prototype to avoid an error.  */
15267 /* We use char because int might match the return type of a gcc2
15268     builtin and then its argument prototype would still apply.  */
15269 char $ac_func();
15270
15271 int main() {
15272
15273 /* The GNU C library defines this for functions which it implements
15274     to always fail with ENOSYS.  Some functions are actually named
15275     something starting with __ and the normal name is an alias.  */
15276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15277 choke me
15278 #else
15279 $ac_func();
15280 #endif
15281
15282 ; return 0; }
15283 EOF
15284 if { (eval echo configure:15285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15285   rm -rf conftest*
15286   eval "ac_cv_func_$ac_func=yes"
15287 else
15288   echo "configure: failed program was:" >&5
15289   cat conftest.$ac_ext >&5
15290   rm -rf conftest*
15291   eval "ac_cv_func_$ac_func=no"
15292 fi
15293 rm -f conftest*
15294 fi
15295
15296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15297   echo "$ac_t""yes" 1>&6
15298     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15299   cat >> confdefs.h <<EOF
15300 #define $ac_tr_func 1
15301 EOF
15302  
15303 else
15304   echo "$ac_t""no" 1>&6
15305 fi
15306 done
15307     
15308     fi
15309   fi
15310
15311   
15312   
15313   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
15314 echo "configure:15315: checking for hypotf declaration" >&5
15315   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
15316     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
15317   echo $ac_n "(cached) $ac_c" 1>&6
15318 else
15319   
15320       
15321       ac_ext=C
15322 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15323 ac_cpp='$CXXCPP $CPPFLAGS'
15324 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15325 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15326 cross_compiling=$ac_cv_prog_cxx_cross
15327
15328       cat > conftest.$ac_ext <<EOF
15329 #line 15330 "configure"
15330 #include "confdefs.h"
15331 #include <math.h>
15332 int main() {
15333  hypotf(0, 0);
15334 ; return 0; }
15335 EOF
15336 if { (eval echo configure:15337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15337   rm -rf conftest*
15338   glibcpp_cv_func_hypotf_use=yes
15339 else
15340   echo "configure: failed program was:" >&5
15341   cat conftest.$ac_ext >&5
15342   rm -rf conftest*
15343   glibcpp_cv_func_hypotf_use=no
15344 fi
15345 rm -f conftest*
15346       ac_ext=c
15347 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15348 ac_cpp='$CPP $CPPFLAGS'
15349 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15350 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15351 cross_compiling=$ac_cv_prog_cc_cross
15352
15353     
15354 fi
15355
15356   fi
15357   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
15358
15359   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
15360     for ac_func in hypotf
15361 do
15362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15363 echo "configure:15364: checking for $ac_func" >&5
15364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15365   echo $ac_n "(cached) $ac_c" 1>&6
15366 else
15367   cat > conftest.$ac_ext <<EOF
15368 #line 15369 "configure"
15369 #include "confdefs.h"
15370 /* System header to define __stub macros and hopefully few prototypes,
15371     which can conflict with char $ac_func(); below.  */
15372 #include <assert.h>
15373 /* Override any gcc2 internal prototype to avoid an error.  */
15374 /* We use char because int might match the return type of a gcc2
15375     builtin and then its argument prototype would still apply.  */
15376 char $ac_func();
15377
15378 int main() {
15379
15380 /* The GNU C library defines this for functions which it implements
15381     to always fail with ENOSYS.  Some functions are actually named
15382     something starting with __ and the normal name is an alias.  */
15383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15384 choke me
15385 #else
15386 $ac_func();
15387 #endif
15388
15389 ; return 0; }
15390 EOF
15391 if { (eval echo configure:15392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15392   rm -rf conftest*
15393   eval "ac_cv_func_$ac_func=yes"
15394 else
15395   echo "configure: failed program was:" >&5
15396   cat conftest.$ac_ext >&5
15397   rm -rf conftest*
15398   eval "ac_cv_func_$ac_func=no"
15399 fi
15400 rm -f conftest*
15401 fi
15402
15403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15404   echo "$ac_t""yes" 1>&6
15405     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15406   cat >> confdefs.h <<EOF
15407 #define $ac_tr_func 1
15408 EOF
15409  
15410 else
15411   echo "$ac_t""no" 1>&6
15412 fi
15413 done
15414     
15415   else
15416     
15417   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
15418 echo "configure:15419: checking for _hypotf declaration" >&5
15419   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
15420     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
15421   echo $ac_n "(cached) $ac_c" 1>&6
15422 else
15423   
15424       
15425       ac_ext=C
15426 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15427 ac_cpp='$CXXCPP $CPPFLAGS'
15428 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15429 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15430 cross_compiling=$ac_cv_prog_cxx_cross
15431
15432       cat > conftest.$ac_ext <<EOF
15433 #line 15434 "configure"
15434 #include "confdefs.h"
15435 #include <math.h>
15436 int main() {
15437  _hypotf(0, 0);
15438 ; return 0; }
15439 EOF
15440 if { (eval echo configure:15441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15441   rm -rf conftest*
15442   glibcpp_cv_func__hypotf_use=yes
15443 else
15444   echo "configure: failed program was:" >&5
15445   cat conftest.$ac_ext >&5
15446   rm -rf conftest*
15447   glibcpp_cv_func__hypotf_use=no
15448 fi
15449 rm -f conftest*
15450       ac_ext=c
15451 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15452 ac_cpp='$CPP $CPPFLAGS'
15453 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15454 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15455 cross_compiling=$ac_cv_prog_cc_cross
15456
15457     
15458 fi
15459
15460   fi
15461   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
15462
15463     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
15464       for ac_func in _hypotf
15465 do
15466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15467 echo "configure:15468: checking for $ac_func" >&5
15468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15469   echo $ac_n "(cached) $ac_c" 1>&6
15470 else
15471   cat > conftest.$ac_ext <<EOF
15472 #line 15473 "configure"
15473 #include "confdefs.h"
15474 /* System header to define __stub macros and hopefully few prototypes,
15475     which can conflict with char $ac_func(); below.  */
15476 #include <assert.h>
15477 /* Override any gcc2 internal prototype to avoid an error.  */
15478 /* We use char because int might match the return type of a gcc2
15479     builtin and then its argument prototype would still apply.  */
15480 char $ac_func();
15481
15482 int main() {
15483
15484 /* The GNU C library defines this for functions which it implements
15485     to always fail with ENOSYS.  Some functions are actually named
15486     something starting with __ and the normal name is an alias.  */
15487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15488 choke me
15489 #else
15490 $ac_func();
15491 #endif
15492
15493 ; return 0; }
15494 EOF
15495 if { (eval echo configure:15496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15496   rm -rf conftest*
15497   eval "ac_cv_func_$ac_func=yes"
15498 else
15499   echo "configure: failed program was:" >&5
15500   cat conftest.$ac_ext >&5
15501   rm -rf conftest*
15502   eval "ac_cv_func_$ac_func=no"
15503 fi
15504 rm -f conftest*
15505 fi
15506
15507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15508   echo "$ac_t""yes" 1>&6
15509     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15510   cat >> confdefs.h <<EOF
15511 #define $ac_tr_func 1
15512 EOF
15513  
15514 else
15515   echo "$ac_t""no" 1>&6
15516 fi
15517 done
15518     
15519     fi
15520   fi
15521
15522   
15523   
15524   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
15525 echo "configure:15526: checking for ldexpf declaration" >&5
15526   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
15527     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
15528   echo $ac_n "(cached) $ac_c" 1>&6
15529 else
15530   
15531       
15532       ac_ext=C
15533 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15534 ac_cpp='$CXXCPP $CPPFLAGS'
15535 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15536 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15537 cross_compiling=$ac_cv_prog_cxx_cross
15538
15539       cat > conftest.$ac_ext <<EOF
15540 #line 15541 "configure"
15541 #include "confdefs.h"
15542 #include <math.h>
15543 int main() {
15544  ldexpf(0, 0);
15545 ; return 0; }
15546 EOF
15547 if { (eval echo configure:15548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15548   rm -rf conftest*
15549   glibcpp_cv_func_ldexpf_use=yes
15550 else
15551   echo "configure: failed program was:" >&5
15552   cat conftest.$ac_ext >&5
15553   rm -rf conftest*
15554   glibcpp_cv_func_ldexpf_use=no
15555 fi
15556 rm -f conftest*
15557       ac_ext=c
15558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15559 ac_cpp='$CPP $CPPFLAGS'
15560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15562 cross_compiling=$ac_cv_prog_cc_cross
15563
15564     
15565 fi
15566
15567   fi
15568   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
15569
15570   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
15571     for ac_func in ldexpf
15572 do
15573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15574 echo "configure:15575: checking for $ac_func" >&5
15575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15576   echo $ac_n "(cached) $ac_c" 1>&6
15577 else
15578   cat > conftest.$ac_ext <<EOF
15579 #line 15580 "configure"
15580 #include "confdefs.h"
15581 /* System header to define __stub macros and hopefully few prototypes,
15582     which can conflict with char $ac_func(); below.  */
15583 #include <assert.h>
15584 /* Override any gcc2 internal prototype to avoid an error.  */
15585 /* We use char because int might match the return type of a gcc2
15586     builtin and then its argument prototype would still apply.  */
15587 char $ac_func();
15588
15589 int main() {
15590
15591 /* The GNU C library defines this for functions which it implements
15592     to always fail with ENOSYS.  Some functions are actually named
15593     something starting with __ and the normal name is an alias.  */
15594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15595 choke me
15596 #else
15597 $ac_func();
15598 #endif
15599
15600 ; return 0; }
15601 EOF
15602 if { (eval echo configure:15603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15603   rm -rf conftest*
15604   eval "ac_cv_func_$ac_func=yes"
15605 else
15606   echo "configure: failed program was:" >&5
15607   cat conftest.$ac_ext >&5
15608   rm -rf conftest*
15609   eval "ac_cv_func_$ac_func=no"
15610 fi
15611 rm -f conftest*
15612 fi
15613
15614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15615   echo "$ac_t""yes" 1>&6
15616     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15617   cat >> confdefs.h <<EOF
15618 #define $ac_tr_func 1
15619 EOF
15620  
15621 else
15622   echo "$ac_t""no" 1>&6
15623 fi
15624 done
15625     
15626   else
15627     
15628   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
15629 echo "configure:15630: checking for _ldexpf declaration" >&5
15630   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
15631     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
15632   echo $ac_n "(cached) $ac_c" 1>&6
15633 else
15634   
15635       
15636       ac_ext=C
15637 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15638 ac_cpp='$CXXCPP $CPPFLAGS'
15639 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15640 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15641 cross_compiling=$ac_cv_prog_cxx_cross
15642
15643       cat > conftest.$ac_ext <<EOF
15644 #line 15645 "configure"
15645 #include "confdefs.h"
15646 #include <math.h>
15647 int main() {
15648  _ldexpf(0, 0);
15649 ; return 0; }
15650 EOF
15651 if { (eval echo configure:15652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15652   rm -rf conftest*
15653   glibcpp_cv_func__ldexpf_use=yes
15654 else
15655   echo "configure: failed program was:" >&5
15656   cat conftest.$ac_ext >&5
15657   rm -rf conftest*
15658   glibcpp_cv_func__ldexpf_use=no
15659 fi
15660 rm -f conftest*
15661       ac_ext=c
15662 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15663 ac_cpp='$CPP $CPPFLAGS'
15664 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15665 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15666 cross_compiling=$ac_cv_prog_cc_cross
15667
15668     
15669 fi
15670
15671   fi
15672   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
15673
15674     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
15675       for ac_func in _ldexpf
15676 do
15677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15678 echo "configure:15679: checking for $ac_func" >&5
15679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15680   echo $ac_n "(cached) $ac_c" 1>&6
15681 else
15682   cat > conftest.$ac_ext <<EOF
15683 #line 15684 "configure"
15684 #include "confdefs.h"
15685 /* System header to define __stub macros and hopefully few prototypes,
15686     which can conflict with char $ac_func(); below.  */
15687 #include <assert.h>
15688 /* Override any gcc2 internal prototype to avoid an error.  */
15689 /* We use char because int might match the return type of a gcc2
15690     builtin and then its argument prototype would still apply.  */
15691 char $ac_func();
15692
15693 int main() {
15694
15695 /* The GNU C library defines this for functions which it implements
15696     to always fail with ENOSYS.  Some functions are actually named
15697     something starting with __ and the normal name is an alias.  */
15698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15699 choke me
15700 #else
15701 $ac_func();
15702 #endif
15703
15704 ; return 0; }
15705 EOF
15706 if { (eval echo configure:15707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15707   rm -rf conftest*
15708   eval "ac_cv_func_$ac_func=yes"
15709 else
15710   echo "configure: failed program was:" >&5
15711   cat conftest.$ac_ext >&5
15712   rm -rf conftest*
15713   eval "ac_cv_func_$ac_func=no"
15714 fi
15715 rm -f conftest*
15716 fi
15717
15718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15719   echo "$ac_t""yes" 1>&6
15720     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15721   cat >> confdefs.h <<EOF
15722 #define $ac_tr_func 1
15723 EOF
15724  
15725 else
15726   echo "$ac_t""no" 1>&6
15727 fi
15728 done
15729     
15730     fi
15731   fi
15732
15733   
15734   
15735   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
15736 echo "configure:15737: checking for logf declaration" >&5
15737   if test x${glibcpp_cv_func_logf_use+set} != xset; then
15738     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
15739   echo $ac_n "(cached) $ac_c" 1>&6
15740 else
15741   
15742       
15743       ac_ext=C
15744 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15745 ac_cpp='$CXXCPP $CPPFLAGS'
15746 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15747 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15748 cross_compiling=$ac_cv_prog_cxx_cross
15749
15750       cat > conftest.$ac_ext <<EOF
15751 #line 15752 "configure"
15752 #include "confdefs.h"
15753 #include <math.h>
15754                       #ifdef HAVE_IEEEFP_H
15755                       #include <ieeefp.h>
15756                       #endif
15757                      
15758 int main() {
15759  logf(0);
15760 ; return 0; }
15761 EOF
15762 if { (eval echo configure:15763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15763   rm -rf conftest*
15764   glibcpp_cv_func_logf_use=yes
15765 else
15766   echo "configure: failed program was:" >&5
15767   cat conftest.$ac_ext >&5
15768   rm -rf conftest*
15769   glibcpp_cv_func_logf_use=no
15770 fi
15771 rm -f conftest*
15772       ac_ext=c
15773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15774 ac_cpp='$CPP $CPPFLAGS'
15775 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15776 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15777 cross_compiling=$ac_cv_prog_cc_cross
15778
15779     
15780 fi
15781
15782   fi
15783   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
15784
15785   if test x$glibcpp_cv_func_logf_use = x"yes"; then
15786     for ac_func in logf
15787 do
15788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15789 echo "configure:15790: checking for $ac_func" >&5
15790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15791   echo $ac_n "(cached) $ac_c" 1>&6
15792 else
15793   cat > conftest.$ac_ext <<EOF
15794 #line 15795 "configure"
15795 #include "confdefs.h"
15796 /* System header to define __stub macros and hopefully few prototypes,
15797     which can conflict with char $ac_func(); below.  */
15798 #include <assert.h>
15799 /* Override any gcc2 internal prototype to avoid an error.  */
15800 /* We use char because int might match the return type of a gcc2
15801     builtin and then its argument prototype would still apply.  */
15802 char $ac_func();
15803
15804 int main() {
15805
15806 /* The GNU C library defines this for functions which it implements
15807     to always fail with ENOSYS.  Some functions are actually named
15808     something starting with __ and the normal name is an alias.  */
15809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15810 choke me
15811 #else
15812 $ac_func();
15813 #endif
15814
15815 ; return 0; }
15816 EOF
15817 if { (eval echo configure:15818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15818   rm -rf conftest*
15819   eval "ac_cv_func_$ac_func=yes"
15820 else
15821   echo "configure: failed program was:" >&5
15822   cat conftest.$ac_ext >&5
15823   rm -rf conftest*
15824   eval "ac_cv_func_$ac_func=no"
15825 fi
15826 rm -f conftest*
15827 fi
15828
15829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15830   echo "$ac_t""yes" 1>&6
15831     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15832   cat >> confdefs.h <<EOF
15833 #define $ac_tr_func 1
15834 EOF
15835  
15836 else
15837   echo "$ac_t""no" 1>&6
15838 fi
15839 done
15840     
15841   else
15842     
15843   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
15844 echo "configure:15845: checking for _logf declaration" >&5
15845   if test x${glibcpp_cv_func__logf_use+set} != xset; then
15846     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
15847   echo $ac_n "(cached) $ac_c" 1>&6
15848 else
15849   
15850       
15851       ac_ext=C
15852 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15853 ac_cpp='$CXXCPP $CPPFLAGS'
15854 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15855 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15856 cross_compiling=$ac_cv_prog_cxx_cross
15857
15858       cat > conftest.$ac_ext <<EOF
15859 #line 15860 "configure"
15860 #include "confdefs.h"
15861 #include <math.h>
15862                       #ifdef HAVE_IEEEFP_H
15863                       #include <ieeefp.h>
15864                       #endif
15865                      
15866 int main() {
15867  _logf(0);
15868 ; return 0; }
15869 EOF
15870 if { (eval echo configure:15871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15871   rm -rf conftest*
15872   glibcpp_cv_func__logf_use=yes
15873 else
15874   echo "configure: failed program was:" >&5
15875   cat conftest.$ac_ext >&5
15876   rm -rf conftest*
15877   glibcpp_cv_func__logf_use=no
15878 fi
15879 rm -f conftest*
15880       ac_ext=c
15881 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15882 ac_cpp='$CPP $CPPFLAGS'
15883 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15884 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15885 cross_compiling=$ac_cv_prog_cc_cross
15886
15887     
15888 fi
15889
15890   fi
15891   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
15892
15893     if test x$glibcpp_cv_func__logf_use = x"yes"; then
15894       for ac_func in _logf
15895 do
15896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15897 echo "configure:15898: checking for $ac_func" >&5
15898 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15899   echo $ac_n "(cached) $ac_c" 1>&6
15900 else
15901   cat > conftest.$ac_ext <<EOF
15902 #line 15903 "configure"
15903 #include "confdefs.h"
15904 /* System header to define __stub macros and hopefully few prototypes,
15905     which can conflict with char $ac_func(); below.  */
15906 #include <assert.h>
15907 /* Override any gcc2 internal prototype to avoid an error.  */
15908 /* We use char because int might match the return type of a gcc2
15909     builtin and then its argument prototype would still apply.  */
15910 char $ac_func();
15911
15912 int main() {
15913
15914 /* The GNU C library defines this for functions which it implements
15915     to always fail with ENOSYS.  Some functions are actually named
15916     something starting with __ and the normal name is an alias.  */
15917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15918 choke me
15919 #else
15920 $ac_func();
15921 #endif
15922
15923 ; return 0; }
15924 EOF
15925 if { (eval echo configure:15926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15926   rm -rf conftest*
15927   eval "ac_cv_func_$ac_func=yes"
15928 else
15929   echo "configure: failed program was:" >&5
15930   cat conftest.$ac_ext >&5
15931   rm -rf conftest*
15932   eval "ac_cv_func_$ac_func=no"
15933 fi
15934 rm -f conftest*
15935 fi
15936
15937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15938   echo "$ac_t""yes" 1>&6
15939     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15940   cat >> confdefs.h <<EOF
15941 #define $ac_tr_func 1
15942 EOF
15943  
15944 else
15945   echo "$ac_t""no" 1>&6
15946 fi
15947 done
15948     
15949     fi
15950   fi
15951
15952   
15953   
15954   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
15955 echo "configure:15956: checking for log10f declaration" >&5
15956   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
15957     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
15958   echo $ac_n "(cached) $ac_c" 1>&6
15959 else
15960   
15961       
15962       ac_ext=C
15963 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15964 ac_cpp='$CXXCPP $CPPFLAGS'
15965 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15966 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15967 cross_compiling=$ac_cv_prog_cxx_cross
15968
15969       cat > conftest.$ac_ext <<EOF
15970 #line 15971 "configure"
15971 #include "confdefs.h"
15972 #include <math.h>
15973                       #ifdef HAVE_IEEEFP_H
15974                       #include <ieeefp.h>
15975                       #endif
15976                      
15977 int main() {
15978  log10f(0);
15979 ; return 0; }
15980 EOF
15981 if { (eval echo configure:15982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15982   rm -rf conftest*
15983   glibcpp_cv_func_log10f_use=yes
15984 else
15985   echo "configure: failed program was:" >&5
15986   cat conftest.$ac_ext >&5
15987   rm -rf conftest*
15988   glibcpp_cv_func_log10f_use=no
15989 fi
15990 rm -f conftest*
15991       ac_ext=c
15992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15993 ac_cpp='$CPP $CPPFLAGS'
15994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15996 cross_compiling=$ac_cv_prog_cc_cross
15997
15998     
15999 fi
16000
16001   fi
16002   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
16003
16004   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
16005     for ac_func in log10f
16006 do
16007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16008 echo "configure:16009: checking for $ac_func" >&5
16009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16010   echo $ac_n "(cached) $ac_c" 1>&6
16011 else
16012   cat > conftest.$ac_ext <<EOF
16013 #line 16014 "configure"
16014 #include "confdefs.h"
16015 /* System header to define __stub macros and hopefully few prototypes,
16016     which can conflict with char $ac_func(); below.  */
16017 #include <assert.h>
16018 /* Override any gcc2 internal prototype to avoid an error.  */
16019 /* We use char because int might match the return type of a gcc2
16020     builtin and then its argument prototype would still apply.  */
16021 char $ac_func();
16022
16023 int main() {
16024
16025 /* The GNU C library defines this for functions which it implements
16026     to always fail with ENOSYS.  Some functions are actually named
16027     something starting with __ and the normal name is an alias.  */
16028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16029 choke me
16030 #else
16031 $ac_func();
16032 #endif
16033
16034 ; return 0; }
16035 EOF
16036 if { (eval echo configure:16037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16037   rm -rf conftest*
16038   eval "ac_cv_func_$ac_func=yes"
16039 else
16040   echo "configure: failed program was:" >&5
16041   cat conftest.$ac_ext >&5
16042   rm -rf conftest*
16043   eval "ac_cv_func_$ac_func=no"
16044 fi
16045 rm -f conftest*
16046 fi
16047
16048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16049   echo "$ac_t""yes" 1>&6
16050     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16051   cat >> confdefs.h <<EOF
16052 #define $ac_tr_func 1
16053 EOF
16054  
16055 else
16056   echo "$ac_t""no" 1>&6
16057 fi
16058 done
16059     
16060   else
16061     
16062   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
16063 echo "configure:16064: checking for _log10f declaration" >&5
16064   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
16065     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
16066   echo $ac_n "(cached) $ac_c" 1>&6
16067 else
16068   
16069       
16070       ac_ext=C
16071 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16072 ac_cpp='$CXXCPP $CPPFLAGS'
16073 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16074 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16075 cross_compiling=$ac_cv_prog_cxx_cross
16076
16077       cat > conftest.$ac_ext <<EOF
16078 #line 16079 "configure"
16079 #include "confdefs.h"
16080 #include <math.h>
16081                       #ifdef HAVE_IEEEFP_H
16082                       #include <ieeefp.h>
16083                       #endif
16084                      
16085 int main() {
16086  _log10f(0);
16087 ; return 0; }
16088 EOF
16089 if { (eval echo configure:16090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16090   rm -rf conftest*
16091   glibcpp_cv_func__log10f_use=yes
16092 else
16093   echo "configure: failed program was:" >&5
16094   cat conftest.$ac_ext >&5
16095   rm -rf conftest*
16096   glibcpp_cv_func__log10f_use=no
16097 fi
16098 rm -f conftest*
16099       ac_ext=c
16100 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16101 ac_cpp='$CPP $CPPFLAGS'
16102 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16103 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16104 cross_compiling=$ac_cv_prog_cc_cross
16105
16106     
16107 fi
16108
16109   fi
16110   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
16111
16112     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
16113       for ac_func in _log10f
16114 do
16115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16116 echo "configure:16117: checking for $ac_func" >&5
16117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16118   echo $ac_n "(cached) $ac_c" 1>&6
16119 else
16120   cat > conftest.$ac_ext <<EOF
16121 #line 16122 "configure"
16122 #include "confdefs.h"
16123 /* System header to define __stub macros and hopefully few prototypes,
16124     which can conflict with char $ac_func(); below.  */
16125 #include <assert.h>
16126 /* Override any gcc2 internal prototype to avoid an error.  */
16127 /* We use char because int might match the return type of a gcc2
16128     builtin and then its argument prototype would still apply.  */
16129 char $ac_func();
16130
16131 int main() {
16132
16133 /* The GNU C library defines this for functions which it implements
16134     to always fail with ENOSYS.  Some functions are actually named
16135     something starting with __ and the normal name is an alias.  */
16136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16137 choke me
16138 #else
16139 $ac_func();
16140 #endif
16141
16142 ; return 0; }
16143 EOF
16144 if { (eval echo configure:16145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16145   rm -rf conftest*
16146   eval "ac_cv_func_$ac_func=yes"
16147 else
16148   echo "configure: failed program was:" >&5
16149   cat conftest.$ac_ext >&5
16150   rm -rf conftest*
16151   eval "ac_cv_func_$ac_func=no"
16152 fi
16153 rm -f conftest*
16154 fi
16155
16156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16157   echo "$ac_t""yes" 1>&6
16158     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16159   cat >> confdefs.h <<EOF
16160 #define $ac_tr_func 1
16161 EOF
16162  
16163 else
16164   echo "$ac_t""no" 1>&6
16165 fi
16166 done
16167     
16168     fi
16169   fi
16170
16171   
16172   
16173   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
16174 echo "configure:16175: checking for modff declaration" >&5
16175   if test x${glibcpp_cv_func_modff_use+set} != xset; then
16176     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
16177   echo $ac_n "(cached) $ac_c" 1>&6
16178 else
16179   
16180       
16181       ac_ext=C
16182 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16183 ac_cpp='$CXXCPP $CPPFLAGS'
16184 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16185 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16186 cross_compiling=$ac_cv_prog_cxx_cross
16187
16188       cat > conftest.$ac_ext <<EOF
16189 #line 16190 "configure"
16190 #include "confdefs.h"
16191 #include <math.h>
16192 int main() {
16193  modff(0, 0);
16194 ; return 0; }
16195 EOF
16196 if { (eval echo configure:16197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16197   rm -rf conftest*
16198   glibcpp_cv_func_modff_use=yes
16199 else
16200   echo "configure: failed program was:" >&5
16201   cat conftest.$ac_ext >&5
16202   rm -rf conftest*
16203   glibcpp_cv_func_modff_use=no
16204 fi
16205 rm -f conftest*
16206       ac_ext=c
16207 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16208 ac_cpp='$CPP $CPPFLAGS'
16209 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16210 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16211 cross_compiling=$ac_cv_prog_cc_cross
16212
16213     
16214 fi
16215
16216   fi
16217   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
16218
16219   if test x$glibcpp_cv_func_modff_use = x"yes"; then
16220     for ac_func in modff
16221 do
16222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16223 echo "configure:16224: checking for $ac_func" >&5
16224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16225   echo $ac_n "(cached) $ac_c" 1>&6
16226 else
16227   cat > conftest.$ac_ext <<EOF
16228 #line 16229 "configure"
16229 #include "confdefs.h"
16230 /* System header to define __stub macros and hopefully few prototypes,
16231     which can conflict with char $ac_func(); below.  */
16232 #include <assert.h>
16233 /* Override any gcc2 internal prototype to avoid an error.  */
16234 /* We use char because int might match the return type of a gcc2
16235     builtin and then its argument prototype would still apply.  */
16236 char $ac_func();
16237
16238 int main() {
16239
16240 /* The GNU C library defines this for functions which it implements
16241     to always fail with ENOSYS.  Some functions are actually named
16242     something starting with __ and the normal name is an alias.  */
16243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16244 choke me
16245 #else
16246 $ac_func();
16247 #endif
16248
16249 ; return 0; }
16250 EOF
16251 if { (eval echo configure:16252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16252   rm -rf conftest*
16253   eval "ac_cv_func_$ac_func=yes"
16254 else
16255   echo "configure: failed program was:" >&5
16256   cat conftest.$ac_ext >&5
16257   rm -rf conftest*
16258   eval "ac_cv_func_$ac_func=no"
16259 fi
16260 rm -f conftest*
16261 fi
16262
16263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16264   echo "$ac_t""yes" 1>&6
16265     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16266   cat >> confdefs.h <<EOF
16267 #define $ac_tr_func 1
16268 EOF
16269  
16270 else
16271   echo "$ac_t""no" 1>&6
16272 fi
16273 done
16274     
16275   else
16276     
16277   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
16278 echo "configure:16279: checking for _modff declaration" >&5
16279   if test x${glibcpp_cv_func__modff_use+set} != xset; then
16280     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
16281   echo $ac_n "(cached) $ac_c" 1>&6
16282 else
16283   
16284       
16285       ac_ext=C
16286 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16287 ac_cpp='$CXXCPP $CPPFLAGS'
16288 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16289 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16290 cross_compiling=$ac_cv_prog_cxx_cross
16291
16292       cat > conftest.$ac_ext <<EOF
16293 #line 16294 "configure"
16294 #include "confdefs.h"
16295 #include <math.h>
16296 int main() {
16297  _modff(0, 0);
16298 ; return 0; }
16299 EOF
16300 if { (eval echo configure:16301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16301   rm -rf conftest*
16302   glibcpp_cv_func__modff_use=yes
16303 else
16304   echo "configure: failed program was:" >&5
16305   cat conftest.$ac_ext >&5
16306   rm -rf conftest*
16307   glibcpp_cv_func__modff_use=no
16308 fi
16309 rm -f conftest*
16310       ac_ext=c
16311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16312 ac_cpp='$CPP $CPPFLAGS'
16313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16315 cross_compiling=$ac_cv_prog_cc_cross
16316
16317     
16318 fi
16319
16320   fi
16321   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
16322
16323     if test x$glibcpp_cv_func__modff_use = x"yes"; then
16324       for ac_func in _modff
16325 do
16326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16327 echo "configure:16328: checking for $ac_func" >&5
16328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16329   echo $ac_n "(cached) $ac_c" 1>&6
16330 else
16331   cat > conftest.$ac_ext <<EOF
16332 #line 16333 "configure"
16333 #include "confdefs.h"
16334 /* System header to define __stub macros and hopefully few prototypes,
16335     which can conflict with char $ac_func(); below.  */
16336 #include <assert.h>
16337 /* Override any gcc2 internal prototype to avoid an error.  */
16338 /* We use char because int might match the return type of a gcc2
16339     builtin and then its argument prototype would still apply.  */
16340 char $ac_func();
16341
16342 int main() {
16343
16344 /* The GNU C library defines this for functions which it implements
16345     to always fail with ENOSYS.  Some functions are actually named
16346     something starting with __ and the normal name is an alias.  */
16347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16348 choke me
16349 #else
16350 $ac_func();
16351 #endif
16352
16353 ; return 0; }
16354 EOF
16355 if { (eval echo configure:16356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16356   rm -rf conftest*
16357   eval "ac_cv_func_$ac_func=yes"
16358 else
16359   echo "configure: failed program was:" >&5
16360   cat conftest.$ac_ext >&5
16361   rm -rf conftest*
16362   eval "ac_cv_func_$ac_func=no"
16363 fi
16364 rm -f conftest*
16365 fi
16366
16367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16368   echo "$ac_t""yes" 1>&6
16369     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16370   cat >> confdefs.h <<EOF
16371 #define $ac_tr_func 1
16372 EOF
16373  
16374 else
16375   echo "$ac_t""no" 1>&6
16376 fi
16377 done
16378     
16379     fi
16380   fi
16381
16382   
16383   
16384   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
16385 echo "configure:16386: checking for powf declaration" >&5
16386   if test x${glibcpp_cv_func_powf_use+set} != xset; then
16387     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
16388   echo $ac_n "(cached) $ac_c" 1>&6
16389 else
16390   
16391       
16392       ac_ext=C
16393 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16394 ac_cpp='$CXXCPP $CPPFLAGS'
16395 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16396 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16397 cross_compiling=$ac_cv_prog_cxx_cross
16398
16399       cat > conftest.$ac_ext <<EOF
16400 #line 16401 "configure"
16401 #include "confdefs.h"
16402 #include <math.h>
16403 int main() {
16404  powf(0, 0);
16405 ; return 0; }
16406 EOF
16407 if { (eval echo configure:16408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16408   rm -rf conftest*
16409   glibcpp_cv_func_powf_use=yes
16410 else
16411   echo "configure: failed program was:" >&5
16412   cat conftest.$ac_ext >&5
16413   rm -rf conftest*
16414   glibcpp_cv_func_powf_use=no
16415 fi
16416 rm -f conftest*
16417       ac_ext=c
16418 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16419 ac_cpp='$CPP $CPPFLAGS'
16420 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16421 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16422 cross_compiling=$ac_cv_prog_cc_cross
16423
16424     
16425 fi
16426
16427   fi
16428   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
16429
16430   if test x$glibcpp_cv_func_powf_use = x"yes"; then
16431     for ac_func in powf
16432 do
16433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16434 echo "configure:16435: checking for $ac_func" >&5
16435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16436   echo $ac_n "(cached) $ac_c" 1>&6
16437 else
16438   cat > conftest.$ac_ext <<EOF
16439 #line 16440 "configure"
16440 #include "confdefs.h"
16441 /* System header to define __stub macros and hopefully few prototypes,
16442     which can conflict with char $ac_func(); below.  */
16443 #include <assert.h>
16444 /* Override any gcc2 internal prototype to avoid an error.  */
16445 /* We use char because int might match the return type of a gcc2
16446     builtin and then its argument prototype would still apply.  */
16447 char $ac_func();
16448
16449 int main() {
16450
16451 /* The GNU C library defines this for functions which it implements
16452     to always fail with ENOSYS.  Some functions are actually named
16453     something starting with __ and the normal name is an alias.  */
16454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16455 choke me
16456 #else
16457 $ac_func();
16458 #endif
16459
16460 ; return 0; }
16461 EOF
16462 if { (eval echo configure:16463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16463   rm -rf conftest*
16464   eval "ac_cv_func_$ac_func=yes"
16465 else
16466   echo "configure: failed program was:" >&5
16467   cat conftest.$ac_ext >&5
16468   rm -rf conftest*
16469   eval "ac_cv_func_$ac_func=no"
16470 fi
16471 rm -f conftest*
16472 fi
16473
16474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16475   echo "$ac_t""yes" 1>&6
16476     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16477   cat >> confdefs.h <<EOF
16478 #define $ac_tr_func 1
16479 EOF
16480  
16481 else
16482   echo "$ac_t""no" 1>&6
16483 fi
16484 done
16485     
16486   else
16487     
16488   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
16489 echo "configure:16490: checking for _powf declaration" >&5
16490   if test x${glibcpp_cv_func__powf_use+set} != xset; then
16491     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
16492   echo $ac_n "(cached) $ac_c" 1>&6
16493 else
16494   
16495       
16496       ac_ext=C
16497 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16498 ac_cpp='$CXXCPP $CPPFLAGS'
16499 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16500 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16501 cross_compiling=$ac_cv_prog_cxx_cross
16502
16503       cat > conftest.$ac_ext <<EOF
16504 #line 16505 "configure"
16505 #include "confdefs.h"
16506 #include <math.h>
16507 int main() {
16508  _powf(0, 0);
16509 ; return 0; }
16510 EOF
16511 if { (eval echo configure:16512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16512   rm -rf conftest*
16513   glibcpp_cv_func__powf_use=yes
16514 else
16515   echo "configure: failed program was:" >&5
16516   cat conftest.$ac_ext >&5
16517   rm -rf conftest*
16518   glibcpp_cv_func__powf_use=no
16519 fi
16520 rm -f conftest*
16521       ac_ext=c
16522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16523 ac_cpp='$CPP $CPPFLAGS'
16524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16526 cross_compiling=$ac_cv_prog_cc_cross
16527
16528     
16529 fi
16530
16531   fi
16532   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
16533
16534     if test x$glibcpp_cv_func__powf_use = x"yes"; then
16535       for ac_func in _powf
16536 do
16537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16538 echo "configure:16539: checking for $ac_func" >&5
16539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16540   echo $ac_n "(cached) $ac_c" 1>&6
16541 else
16542   cat > conftest.$ac_ext <<EOF
16543 #line 16544 "configure"
16544 #include "confdefs.h"
16545 /* System header to define __stub macros and hopefully few prototypes,
16546     which can conflict with char $ac_func(); below.  */
16547 #include <assert.h>
16548 /* Override any gcc2 internal prototype to avoid an error.  */
16549 /* We use char because int might match the return type of a gcc2
16550     builtin and then its argument prototype would still apply.  */
16551 char $ac_func();
16552
16553 int main() {
16554
16555 /* The GNU C library defines this for functions which it implements
16556     to always fail with ENOSYS.  Some functions are actually named
16557     something starting with __ and the normal name is an alias.  */
16558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16559 choke me
16560 #else
16561 $ac_func();
16562 #endif
16563
16564 ; return 0; }
16565 EOF
16566 if { (eval echo configure:16567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16567   rm -rf conftest*
16568   eval "ac_cv_func_$ac_func=yes"
16569 else
16570   echo "configure: failed program was:" >&5
16571   cat conftest.$ac_ext >&5
16572   rm -rf conftest*
16573   eval "ac_cv_func_$ac_func=no"
16574 fi
16575 rm -f conftest*
16576 fi
16577
16578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16579   echo "$ac_t""yes" 1>&6
16580     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16581   cat >> confdefs.h <<EOF
16582 #define $ac_tr_func 1
16583 EOF
16584  
16585 else
16586   echo "$ac_t""no" 1>&6
16587 fi
16588 done
16589     
16590     fi
16591   fi
16592
16593   
16594   
16595   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
16596 echo "configure:16597: checking for sqrtf declaration" >&5
16597   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
16598     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
16599   echo $ac_n "(cached) $ac_c" 1>&6
16600 else
16601   
16602       
16603       ac_ext=C
16604 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16605 ac_cpp='$CXXCPP $CPPFLAGS'
16606 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16607 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16608 cross_compiling=$ac_cv_prog_cxx_cross
16609
16610       cat > conftest.$ac_ext <<EOF
16611 #line 16612 "configure"
16612 #include "confdefs.h"
16613 #include <math.h>
16614                       #ifdef HAVE_IEEEFP_H
16615                       #include <ieeefp.h>
16616                       #endif
16617                      
16618 int main() {
16619  sqrtf(0);
16620 ; return 0; }
16621 EOF
16622 if { (eval echo configure:16623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16623   rm -rf conftest*
16624   glibcpp_cv_func_sqrtf_use=yes
16625 else
16626   echo "configure: failed program was:" >&5
16627   cat conftest.$ac_ext >&5
16628   rm -rf conftest*
16629   glibcpp_cv_func_sqrtf_use=no
16630 fi
16631 rm -f conftest*
16632       ac_ext=c
16633 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16634 ac_cpp='$CPP $CPPFLAGS'
16635 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16636 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16637 cross_compiling=$ac_cv_prog_cc_cross
16638
16639     
16640 fi
16641
16642   fi
16643   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
16644
16645   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
16646     for ac_func in sqrtf
16647 do
16648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16649 echo "configure:16650: checking for $ac_func" >&5
16650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16651   echo $ac_n "(cached) $ac_c" 1>&6
16652 else
16653   cat > conftest.$ac_ext <<EOF
16654 #line 16655 "configure"
16655 #include "confdefs.h"
16656 /* System header to define __stub macros and hopefully few prototypes,
16657     which can conflict with char $ac_func(); below.  */
16658 #include <assert.h>
16659 /* Override any gcc2 internal prototype to avoid an error.  */
16660 /* We use char because int might match the return type of a gcc2
16661     builtin and then its argument prototype would still apply.  */
16662 char $ac_func();
16663
16664 int main() {
16665
16666 /* The GNU C library defines this for functions which it implements
16667     to always fail with ENOSYS.  Some functions are actually named
16668     something starting with __ and the normal name is an alias.  */
16669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16670 choke me
16671 #else
16672 $ac_func();
16673 #endif
16674
16675 ; return 0; }
16676 EOF
16677 if { (eval echo configure:16678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16678   rm -rf conftest*
16679   eval "ac_cv_func_$ac_func=yes"
16680 else
16681   echo "configure: failed program was:" >&5
16682   cat conftest.$ac_ext >&5
16683   rm -rf conftest*
16684   eval "ac_cv_func_$ac_func=no"
16685 fi
16686 rm -f conftest*
16687 fi
16688
16689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16690   echo "$ac_t""yes" 1>&6
16691     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16692   cat >> confdefs.h <<EOF
16693 #define $ac_tr_func 1
16694 EOF
16695  
16696 else
16697   echo "$ac_t""no" 1>&6
16698 fi
16699 done
16700     
16701   else
16702     
16703   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
16704 echo "configure:16705: checking for _sqrtf declaration" >&5
16705   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
16706     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
16707   echo $ac_n "(cached) $ac_c" 1>&6
16708 else
16709   
16710       
16711       ac_ext=C
16712 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16713 ac_cpp='$CXXCPP $CPPFLAGS'
16714 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16715 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16716 cross_compiling=$ac_cv_prog_cxx_cross
16717
16718       cat > conftest.$ac_ext <<EOF
16719 #line 16720 "configure"
16720 #include "confdefs.h"
16721 #include <math.h>
16722                       #ifdef HAVE_IEEEFP_H
16723                       #include <ieeefp.h>
16724                       #endif
16725                      
16726 int main() {
16727  _sqrtf(0);
16728 ; return 0; }
16729 EOF
16730 if { (eval echo configure:16731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16731   rm -rf conftest*
16732   glibcpp_cv_func__sqrtf_use=yes
16733 else
16734   echo "configure: failed program was:" >&5
16735   cat conftest.$ac_ext >&5
16736   rm -rf conftest*
16737   glibcpp_cv_func__sqrtf_use=no
16738 fi
16739 rm -f conftest*
16740       ac_ext=c
16741 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16742 ac_cpp='$CPP $CPPFLAGS'
16743 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16744 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16745 cross_compiling=$ac_cv_prog_cc_cross
16746
16747     
16748 fi
16749
16750   fi
16751   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
16752
16753     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
16754       for ac_func in _sqrtf
16755 do
16756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16757 echo "configure:16758: checking for $ac_func" >&5
16758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16759   echo $ac_n "(cached) $ac_c" 1>&6
16760 else
16761   cat > conftest.$ac_ext <<EOF
16762 #line 16763 "configure"
16763 #include "confdefs.h"
16764 /* System header to define __stub macros and hopefully few prototypes,
16765     which can conflict with char $ac_func(); below.  */
16766 #include <assert.h>
16767 /* Override any gcc2 internal prototype to avoid an error.  */
16768 /* We use char because int might match the return type of a gcc2
16769     builtin and then its argument prototype would still apply.  */
16770 char $ac_func();
16771
16772 int main() {
16773
16774 /* The GNU C library defines this for functions which it implements
16775     to always fail with ENOSYS.  Some functions are actually named
16776     something starting with __ and the normal name is an alias.  */
16777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16778 choke me
16779 #else
16780 $ac_func();
16781 #endif
16782
16783 ; return 0; }
16784 EOF
16785 if { (eval echo configure:16786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16786   rm -rf conftest*
16787   eval "ac_cv_func_$ac_func=yes"
16788 else
16789   echo "configure: failed program was:" >&5
16790   cat conftest.$ac_ext >&5
16791   rm -rf conftest*
16792   eval "ac_cv_func_$ac_func=no"
16793 fi
16794 rm -f conftest*
16795 fi
16796
16797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16798   echo "$ac_t""yes" 1>&6
16799     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16800   cat >> confdefs.h <<EOF
16801 #define $ac_tr_func 1
16802 EOF
16803  
16804 else
16805   echo "$ac_t""no" 1>&6
16806 fi
16807 done
16808     
16809     fi
16810   fi
16811
16812   
16813   
16814   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
16815 echo "configure:16816: checking for sincosf declaration" >&5
16816   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
16817     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
16818   echo $ac_n "(cached) $ac_c" 1>&6
16819 else
16820   
16821       
16822       ac_ext=C
16823 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16824 ac_cpp='$CXXCPP $CPPFLAGS'
16825 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16826 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16827 cross_compiling=$ac_cv_prog_cxx_cross
16828
16829       cat > conftest.$ac_ext <<EOF
16830 #line 16831 "configure"
16831 #include "confdefs.h"
16832 #include <math.h>
16833 int main() {
16834  sincosf(0, 0, 0);
16835 ; return 0; }
16836 EOF
16837 if { (eval echo configure:16838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16838   rm -rf conftest*
16839   glibcpp_cv_func_sincosf_use=yes
16840 else
16841   echo "configure: failed program was:" >&5
16842   cat conftest.$ac_ext >&5
16843   rm -rf conftest*
16844   glibcpp_cv_func_sincosf_use=no
16845 fi
16846 rm -f conftest*
16847       ac_ext=c
16848 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16849 ac_cpp='$CPP $CPPFLAGS'
16850 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16851 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16852 cross_compiling=$ac_cv_prog_cc_cross
16853
16854     
16855 fi
16856
16857   fi
16858   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
16859
16860   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
16861     for ac_func in sincosf
16862 do
16863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16864 echo "configure:16865: checking for $ac_func" >&5
16865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16866   echo $ac_n "(cached) $ac_c" 1>&6
16867 else
16868   cat > conftest.$ac_ext <<EOF
16869 #line 16870 "configure"
16870 #include "confdefs.h"
16871 /* System header to define __stub macros and hopefully few prototypes,
16872     which can conflict with char $ac_func(); below.  */
16873 #include <assert.h>
16874 /* Override any gcc2 internal prototype to avoid an error.  */
16875 /* We use char because int might match the return type of a gcc2
16876     builtin and then its argument prototype would still apply.  */
16877 char $ac_func();
16878
16879 int main() {
16880
16881 /* The GNU C library defines this for functions which it implements
16882     to always fail with ENOSYS.  Some functions are actually named
16883     something starting with __ and the normal name is an alias.  */
16884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16885 choke me
16886 #else
16887 $ac_func();
16888 #endif
16889
16890 ; return 0; }
16891 EOF
16892 if { (eval echo configure:16893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16893   rm -rf conftest*
16894   eval "ac_cv_func_$ac_func=yes"
16895 else
16896   echo "configure: failed program was:" >&5
16897   cat conftest.$ac_ext >&5
16898   rm -rf conftest*
16899   eval "ac_cv_func_$ac_func=no"
16900 fi
16901 rm -f conftest*
16902 fi
16903
16904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16905   echo "$ac_t""yes" 1>&6
16906     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16907   cat >> confdefs.h <<EOF
16908 #define $ac_tr_func 1
16909 EOF
16910  
16911 else
16912   echo "$ac_t""no" 1>&6
16913 fi
16914 done
16915     
16916   else
16917     
16918   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
16919 echo "configure:16920: checking for _sincosf declaration" >&5
16920   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
16921     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
16922   echo $ac_n "(cached) $ac_c" 1>&6
16923 else
16924   
16925       
16926       ac_ext=C
16927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16928 ac_cpp='$CXXCPP $CPPFLAGS'
16929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16931 cross_compiling=$ac_cv_prog_cxx_cross
16932
16933       cat > conftest.$ac_ext <<EOF
16934 #line 16935 "configure"
16935 #include "confdefs.h"
16936 #include <math.h>
16937 int main() {
16938  _sincosf(0, 0, 0);
16939 ; return 0; }
16940 EOF
16941 if { (eval echo configure:16942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16942   rm -rf conftest*
16943   glibcpp_cv_func__sincosf_use=yes
16944 else
16945   echo "configure: failed program was:" >&5
16946   cat conftest.$ac_ext >&5
16947   rm -rf conftest*
16948   glibcpp_cv_func__sincosf_use=no
16949 fi
16950 rm -f conftest*
16951       ac_ext=c
16952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16953 ac_cpp='$CPP $CPPFLAGS'
16954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16956 cross_compiling=$ac_cv_prog_cc_cross
16957
16958     
16959 fi
16960
16961   fi
16962   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
16963
16964     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
16965       for ac_func in _sincosf
16966 do
16967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16968 echo "configure:16969: checking for $ac_func" >&5
16969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16970   echo $ac_n "(cached) $ac_c" 1>&6
16971 else
16972   cat > conftest.$ac_ext <<EOF
16973 #line 16974 "configure"
16974 #include "confdefs.h"
16975 /* System header to define __stub macros and hopefully few prototypes,
16976     which can conflict with char $ac_func(); below.  */
16977 #include <assert.h>
16978 /* Override any gcc2 internal prototype to avoid an error.  */
16979 /* We use char because int might match the return type of a gcc2
16980     builtin and then its argument prototype would still apply.  */
16981 char $ac_func();
16982
16983 int main() {
16984
16985 /* The GNU C library defines this for functions which it implements
16986     to always fail with ENOSYS.  Some functions are actually named
16987     something starting with __ and the normal name is an alias.  */
16988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16989 choke me
16990 #else
16991 $ac_func();
16992 #endif
16993
16994 ; return 0; }
16995 EOF
16996 if { (eval echo configure:16997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16997   rm -rf conftest*
16998   eval "ac_cv_func_$ac_func=yes"
16999 else
17000   echo "configure: failed program was:" >&5
17001   cat conftest.$ac_ext >&5
17002   rm -rf conftest*
17003   eval "ac_cv_func_$ac_func=no"
17004 fi
17005 rm -f conftest*
17006 fi
17007
17008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17009   echo "$ac_t""yes" 1>&6
17010     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17011   cat >> confdefs.h <<EOF
17012 #define $ac_tr_func 1
17013 EOF
17014  
17015 else
17016   echo "$ac_t""no" 1>&6
17017 fi
17018 done
17019     
17020     fi
17021   fi
17022
17023   
17024   
17025   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
17026 echo "configure:17027: checking for finitef declaration" >&5
17027   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
17028     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
17029   echo $ac_n "(cached) $ac_c" 1>&6
17030 else
17031   
17032       
17033       ac_ext=C
17034 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17035 ac_cpp='$CXXCPP $CPPFLAGS'
17036 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17037 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17038 cross_compiling=$ac_cv_prog_cxx_cross
17039
17040       cat > conftest.$ac_ext <<EOF
17041 #line 17042 "configure"
17042 #include "confdefs.h"
17043 #include <math.h>
17044                       #ifdef HAVE_IEEEFP_H
17045                       #include <ieeefp.h>
17046                       #endif
17047                      
17048 int main() {
17049  finitef(0);
17050 ; return 0; }
17051 EOF
17052 if { (eval echo configure:17053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17053   rm -rf conftest*
17054   glibcpp_cv_func_finitef_use=yes
17055 else
17056   echo "configure: failed program was:" >&5
17057   cat conftest.$ac_ext >&5
17058   rm -rf conftest*
17059   glibcpp_cv_func_finitef_use=no
17060 fi
17061 rm -f conftest*
17062       ac_ext=c
17063 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17064 ac_cpp='$CPP $CPPFLAGS'
17065 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17066 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17067 cross_compiling=$ac_cv_prog_cc_cross
17068
17069     
17070 fi
17071
17072   fi
17073   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
17074
17075   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
17076     for ac_func in finitef
17077 do
17078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17079 echo "configure:17080: checking for $ac_func" >&5
17080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17081   echo $ac_n "(cached) $ac_c" 1>&6
17082 else
17083   cat > conftest.$ac_ext <<EOF
17084 #line 17085 "configure"
17085 #include "confdefs.h"
17086 /* System header to define __stub macros and hopefully few prototypes,
17087     which can conflict with char $ac_func(); below.  */
17088 #include <assert.h>
17089 /* Override any gcc2 internal prototype to avoid an error.  */
17090 /* We use char because int might match the return type of a gcc2
17091     builtin and then its argument prototype would still apply.  */
17092 char $ac_func();
17093
17094 int main() {
17095
17096 /* The GNU C library defines this for functions which it implements
17097     to always fail with ENOSYS.  Some functions are actually named
17098     something starting with __ and the normal name is an alias.  */
17099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17100 choke me
17101 #else
17102 $ac_func();
17103 #endif
17104
17105 ; return 0; }
17106 EOF
17107 if { (eval echo configure:17108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17108   rm -rf conftest*
17109   eval "ac_cv_func_$ac_func=yes"
17110 else
17111   echo "configure: failed program was:" >&5
17112   cat conftest.$ac_ext >&5
17113   rm -rf conftest*
17114   eval "ac_cv_func_$ac_func=no"
17115 fi
17116 rm -f conftest*
17117 fi
17118
17119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17120   echo "$ac_t""yes" 1>&6
17121     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17122   cat >> confdefs.h <<EOF
17123 #define $ac_tr_func 1
17124 EOF
17125  
17126 else
17127   echo "$ac_t""no" 1>&6
17128 fi
17129 done
17130     
17131   else
17132     
17133   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
17134 echo "configure:17135: checking for _finitef declaration" >&5
17135   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
17136     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
17137   echo $ac_n "(cached) $ac_c" 1>&6
17138 else
17139   
17140       
17141       ac_ext=C
17142 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17143 ac_cpp='$CXXCPP $CPPFLAGS'
17144 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17145 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17146 cross_compiling=$ac_cv_prog_cxx_cross
17147
17148       cat > conftest.$ac_ext <<EOF
17149 #line 17150 "configure"
17150 #include "confdefs.h"
17151 #include <math.h>
17152                       #ifdef HAVE_IEEEFP_H
17153                       #include <ieeefp.h>
17154                       #endif
17155                      
17156 int main() {
17157  _finitef(0);
17158 ; return 0; }
17159 EOF
17160 if { (eval echo configure:17161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17161   rm -rf conftest*
17162   glibcpp_cv_func__finitef_use=yes
17163 else
17164   echo "configure: failed program was:" >&5
17165   cat conftest.$ac_ext >&5
17166   rm -rf conftest*
17167   glibcpp_cv_func__finitef_use=no
17168 fi
17169 rm -f conftest*
17170       ac_ext=c
17171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17172 ac_cpp='$CPP $CPPFLAGS'
17173 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17174 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17175 cross_compiling=$ac_cv_prog_cc_cross
17176
17177     
17178 fi
17179
17180   fi
17181   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
17182
17183     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
17184       for ac_func in _finitef
17185 do
17186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17187 echo "configure:17188: checking for $ac_func" >&5
17188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17189   echo $ac_n "(cached) $ac_c" 1>&6
17190 else
17191   cat > conftest.$ac_ext <<EOF
17192 #line 17193 "configure"
17193 #include "confdefs.h"
17194 /* System header to define __stub macros and hopefully few prototypes,
17195     which can conflict with char $ac_func(); below.  */
17196 #include <assert.h>
17197 /* Override any gcc2 internal prototype to avoid an error.  */
17198 /* We use char because int might match the return type of a gcc2
17199     builtin and then its argument prototype would still apply.  */
17200 char $ac_func();
17201
17202 int main() {
17203
17204 /* The GNU C library defines this for functions which it implements
17205     to always fail with ENOSYS.  Some functions are actually named
17206     something starting with __ and the normal name is an alias.  */
17207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17208 choke me
17209 #else
17210 $ac_func();
17211 #endif
17212
17213 ; return 0; }
17214 EOF
17215 if { (eval echo configure:17216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17216   rm -rf conftest*
17217   eval "ac_cv_func_$ac_func=yes"
17218 else
17219   echo "configure: failed program was:" >&5
17220   cat conftest.$ac_ext >&5
17221   rm -rf conftest*
17222   eval "ac_cv_func_$ac_func=no"
17223 fi
17224 rm -f conftest*
17225 fi
17226
17227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17228   echo "$ac_t""yes" 1>&6
17229     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17230   cat >> confdefs.h <<EOF
17231 #define $ac_tr_func 1
17232 EOF
17233  
17234 else
17235   echo "$ac_t""no" 1>&6
17236 fi
17237 done
17238     
17239     fi
17240   fi
17241
17242
17243     
17244   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
17245 echo "configure:17246: checking for long double trig functions" >&5
17246   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
17247   echo $ac_n "(cached) $ac_c" 1>&6
17248 else
17249   
17250     
17251     ac_ext=C
17252 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17253 ac_cpp='$CXXCPP $CPPFLAGS'
17254 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17255 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17256 cross_compiling=$ac_cv_prog_cxx_cross
17257
17258     cat > conftest.$ac_ext <<EOF
17259 #line 17260 "configure"
17260 #include "confdefs.h"
17261 #include <math.h>
17262 int main() {
17263  `for x in acosl asinl atanl \
17264                                           cosl sinl tanl \
17265                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
17266 ; return 0; }
17267 EOF
17268 if { (eval echo configure:17269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17269   rm -rf conftest*
17270   glibcpp_cv_func_long_double_trig_use=yes
17271 else
17272   echo "configure: failed program was:" >&5
17273   cat conftest.$ac_ext >&5
17274   rm -rf conftest*
17275   glibcpp_cv_func_long_double_trig_use=no
17276 fi
17277 rm -f conftest*
17278     ac_ext=c
17279 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17280 ac_cpp='$CPP $CPPFLAGS'
17281 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17282 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17283 cross_compiling=$ac_cv_prog_cc_cross
17284
17285 fi
17286
17287   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
17288   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
17289     for ac_func in acosl asinl atanl \
17290                                           cosl sinl tanl \
17291                                           coshl sinhl tanhl
17292 do
17293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17294 echo "configure:17295: checking for $ac_func" >&5
17295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17296   echo $ac_n "(cached) $ac_c" 1>&6
17297 else
17298   cat > conftest.$ac_ext <<EOF
17299 #line 17300 "configure"
17300 #include "confdefs.h"
17301 /* System header to define __stub macros and hopefully few prototypes,
17302     which can conflict with char $ac_func(); below.  */
17303 #include <assert.h>
17304 /* Override any gcc2 internal prototype to avoid an error.  */
17305 /* We use char because int might match the return type of a gcc2
17306     builtin and then its argument prototype would still apply.  */
17307 char $ac_func();
17308
17309 int main() {
17310
17311 /* The GNU C library defines this for functions which it implements
17312     to always fail with ENOSYS.  Some functions are actually named
17313     something starting with __ and the normal name is an alias.  */
17314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17315 choke me
17316 #else
17317 $ac_func();
17318 #endif
17319
17320 ; return 0; }
17321 EOF
17322 if { (eval echo configure:17323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17323   rm -rf conftest*
17324   eval "ac_cv_func_$ac_func=yes"
17325 else
17326   echo "configure: failed program was:" >&5
17327   cat conftest.$ac_ext >&5
17328   rm -rf conftest*
17329   eval "ac_cv_func_$ac_func=no"
17330 fi
17331 rm -f conftest*
17332 fi
17333
17334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17335   echo "$ac_t""yes" 1>&6
17336     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17337   cat >> confdefs.h <<EOF
17338 #define $ac_tr_func 1
17339 EOF
17340  
17341 else
17342   echo "$ac_t""no" 1>&6
17343 fi
17344 done
17345
17346   fi
17347
17348   
17349   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
17350 echo "configure:17351: checking for long double round functions" >&5
17351   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
17352   echo $ac_n "(cached) $ac_c" 1>&6
17353 else
17354   
17355     
17356     ac_ext=C
17357 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17358 ac_cpp='$CXXCPP $CPPFLAGS'
17359 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17360 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17361 cross_compiling=$ac_cv_prog_cxx_cross
17362
17363     cat > conftest.$ac_ext <<EOF
17364 #line 17365 "configure"
17365 #include "confdefs.h"
17366 #include <math.h>
17367 int main() {
17368  `for x in ceill floorl; do echo "$x (0);"; done` 
17369 ; return 0; }
17370 EOF
17371 if { (eval echo configure:17372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17372   rm -rf conftest*
17373   glibcpp_cv_func_long_double_round_use=yes
17374 else
17375   echo "configure: failed program was:" >&5
17376   cat conftest.$ac_ext >&5
17377   rm -rf conftest*
17378   glibcpp_cv_func_long_double_round_use=no
17379 fi
17380 rm -f conftest*
17381     ac_ext=c
17382 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17383 ac_cpp='$CPP $CPPFLAGS'
17384 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17385 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17386 cross_compiling=$ac_cv_prog_cc_cross
17387
17388 fi
17389
17390   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
17391   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
17392     for ac_func in ceill floorl
17393 do
17394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17395 echo "configure:17396: checking for $ac_func" >&5
17396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17397   echo $ac_n "(cached) $ac_c" 1>&6
17398 else
17399   cat > conftest.$ac_ext <<EOF
17400 #line 17401 "configure"
17401 #include "confdefs.h"
17402 /* System header to define __stub macros and hopefully few prototypes,
17403     which can conflict with char $ac_func(); below.  */
17404 #include <assert.h>
17405 /* Override any gcc2 internal prototype to avoid an error.  */
17406 /* We use char because int might match the return type of a gcc2
17407     builtin and then its argument prototype would still apply.  */
17408 char $ac_func();
17409
17410 int main() {
17411
17412 /* The GNU C library defines this for functions which it implements
17413     to always fail with ENOSYS.  Some functions are actually named
17414     something starting with __ and the normal name is an alias.  */
17415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17416 choke me
17417 #else
17418 $ac_func();
17419 #endif
17420
17421 ; return 0; }
17422 EOF
17423 if { (eval echo configure:17424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17424   rm -rf conftest*
17425   eval "ac_cv_func_$ac_func=yes"
17426 else
17427   echo "configure: failed program was:" >&5
17428   cat conftest.$ac_ext >&5
17429   rm -rf conftest*
17430   eval "ac_cv_func_$ac_func=no"
17431 fi
17432 rm -f conftest*
17433 fi
17434
17435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17436   echo "$ac_t""yes" 1>&6
17437     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17438   cat >> confdefs.h <<EOF
17439 #define $ac_tr_func 1
17440 EOF
17441  
17442 else
17443   echo "$ac_t""no" 1>&6
17444 fi
17445 done
17446
17447   fi
17448
17449   
17450   
17451   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
17452 echo "configure:17453: checking for isnanl declaration" >&5
17453   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
17454     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
17455   echo $ac_n "(cached) $ac_c" 1>&6
17456 else
17457   
17458       
17459       ac_ext=C
17460 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17461 ac_cpp='$CXXCPP $CPPFLAGS'
17462 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17463 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17464 cross_compiling=$ac_cv_prog_cxx_cross
17465
17466       cat > conftest.$ac_ext <<EOF
17467 #line 17468 "configure"
17468 #include "confdefs.h"
17469 #include <math.h>
17470                       #ifdef HAVE_IEEEFP_H
17471                       #include <ieeefp.h>
17472                       #endif
17473                      
17474 int main() {
17475  isnanl(0);
17476 ; return 0; }
17477 EOF
17478 if { (eval echo configure:17479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17479   rm -rf conftest*
17480   glibcpp_cv_func_isnanl_use=yes
17481 else
17482   echo "configure: failed program was:" >&5
17483   cat conftest.$ac_ext >&5
17484   rm -rf conftest*
17485   glibcpp_cv_func_isnanl_use=no
17486 fi
17487 rm -f conftest*
17488       ac_ext=c
17489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17490 ac_cpp='$CPP $CPPFLAGS'
17491 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17492 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17493 cross_compiling=$ac_cv_prog_cc_cross
17494
17495     
17496 fi
17497
17498   fi
17499   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
17500
17501   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
17502     for ac_func in isnanl
17503 do
17504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17505 echo "configure:17506: checking for $ac_func" >&5
17506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17507   echo $ac_n "(cached) $ac_c" 1>&6
17508 else
17509   cat > conftest.$ac_ext <<EOF
17510 #line 17511 "configure"
17511 #include "confdefs.h"
17512 /* System header to define __stub macros and hopefully few prototypes,
17513     which can conflict with char $ac_func(); below.  */
17514 #include <assert.h>
17515 /* Override any gcc2 internal prototype to avoid an error.  */
17516 /* We use char because int might match the return type of a gcc2
17517     builtin and then its argument prototype would still apply.  */
17518 char $ac_func();
17519
17520 int main() {
17521
17522 /* The GNU C library defines this for functions which it implements
17523     to always fail with ENOSYS.  Some functions are actually named
17524     something starting with __ and the normal name is an alias.  */
17525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17526 choke me
17527 #else
17528 $ac_func();
17529 #endif
17530
17531 ; return 0; }
17532 EOF
17533 if { (eval echo configure:17534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17534   rm -rf conftest*
17535   eval "ac_cv_func_$ac_func=yes"
17536 else
17537   echo "configure: failed program was:" >&5
17538   cat conftest.$ac_ext >&5
17539   rm -rf conftest*
17540   eval "ac_cv_func_$ac_func=no"
17541 fi
17542 rm -f conftest*
17543 fi
17544
17545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17546   echo "$ac_t""yes" 1>&6
17547     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17548   cat >> confdefs.h <<EOF
17549 #define $ac_tr_func 1
17550 EOF
17551  
17552 else
17553   echo "$ac_t""no" 1>&6
17554 fi
17555 done
17556     
17557   else
17558     
17559   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
17560 echo "configure:17561: checking for _isnanl declaration" >&5
17561   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
17562     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
17563   echo $ac_n "(cached) $ac_c" 1>&6
17564 else
17565   
17566       
17567       ac_ext=C
17568 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17569 ac_cpp='$CXXCPP $CPPFLAGS'
17570 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17571 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17572 cross_compiling=$ac_cv_prog_cxx_cross
17573
17574       cat > conftest.$ac_ext <<EOF
17575 #line 17576 "configure"
17576 #include "confdefs.h"
17577 #include <math.h>
17578                       #ifdef HAVE_IEEEFP_H
17579                       #include <ieeefp.h>
17580                       #endif
17581                      
17582 int main() {
17583  _isnanl(0);
17584 ; return 0; }
17585 EOF
17586 if { (eval echo configure:17587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17587   rm -rf conftest*
17588   glibcpp_cv_func__isnanl_use=yes
17589 else
17590   echo "configure: failed program was:" >&5
17591   cat conftest.$ac_ext >&5
17592   rm -rf conftest*
17593   glibcpp_cv_func__isnanl_use=no
17594 fi
17595 rm -f conftest*
17596       ac_ext=c
17597 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17598 ac_cpp='$CPP $CPPFLAGS'
17599 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17600 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17601 cross_compiling=$ac_cv_prog_cc_cross
17602
17603     
17604 fi
17605
17606   fi
17607   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
17608
17609     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
17610       for ac_func in _isnanl
17611 do
17612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17613 echo "configure:17614: checking for $ac_func" >&5
17614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17615   echo $ac_n "(cached) $ac_c" 1>&6
17616 else
17617   cat > conftest.$ac_ext <<EOF
17618 #line 17619 "configure"
17619 #include "confdefs.h"
17620 /* System header to define __stub macros and hopefully few prototypes,
17621     which can conflict with char $ac_func(); below.  */
17622 #include <assert.h>
17623 /* Override any gcc2 internal prototype to avoid an error.  */
17624 /* We use char because int might match the return type of a gcc2
17625     builtin and then its argument prototype would still apply.  */
17626 char $ac_func();
17627
17628 int main() {
17629
17630 /* The GNU C library defines this for functions which it implements
17631     to always fail with ENOSYS.  Some functions are actually named
17632     something starting with __ and the normal name is an alias.  */
17633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17634 choke me
17635 #else
17636 $ac_func();
17637 #endif
17638
17639 ; return 0; }
17640 EOF
17641 if { (eval echo configure:17642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17642   rm -rf conftest*
17643   eval "ac_cv_func_$ac_func=yes"
17644 else
17645   echo "configure: failed program was:" >&5
17646   cat conftest.$ac_ext >&5
17647   rm -rf conftest*
17648   eval "ac_cv_func_$ac_func=no"
17649 fi
17650 rm -f conftest*
17651 fi
17652
17653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17654   echo "$ac_t""yes" 1>&6
17655     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17656   cat >> confdefs.h <<EOF
17657 #define $ac_tr_func 1
17658 EOF
17659  
17660 else
17661   echo "$ac_t""no" 1>&6
17662 fi
17663 done
17664     
17665     fi
17666   fi
17667
17668   
17669   
17670   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
17671 echo "configure:17672: checking for isinfl declaration" >&5
17672   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
17673     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
17674   echo $ac_n "(cached) $ac_c" 1>&6
17675 else
17676   
17677       
17678       ac_ext=C
17679 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17680 ac_cpp='$CXXCPP $CPPFLAGS'
17681 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17682 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17683 cross_compiling=$ac_cv_prog_cxx_cross
17684
17685       cat > conftest.$ac_ext <<EOF
17686 #line 17687 "configure"
17687 #include "confdefs.h"
17688 #include <math.h>
17689                       #ifdef HAVE_IEEEFP_H
17690                       #include <ieeefp.h>
17691                       #endif
17692                      
17693 int main() {
17694  isinfl(0);
17695 ; return 0; }
17696 EOF
17697 if { (eval echo configure:17698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17698   rm -rf conftest*
17699   glibcpp_cv_func_isinfl_use=yes
17700 else
17701   echo "configure: failed program was:" >&5
17702   cat conftest.$ac_ext >&5
17703   rm -rf conftest*
17704   glibcpp_cv_func_isinfl_use=no
17705 fi
17706 rm -f conftest*
17707       ac_ext=c
17708 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17709 ac_cpp='$CPP $CPPFLAGS'
17710 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17711 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17712 cross_compiling=$ac_cv_prog_cc_cross
17713
17714     
17715 fi
17716
17717   fi
17718   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
17719
17720   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
17721     for ac_func in isinfl
17722 do
17723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17724 echo "configure:17725: checking for $ac_func" >&5
17725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17726   echo $ac_n "(cached) $ac_c" 1>&6
17727 else
17728   cat > conftest.$ac_ext <<EOF
17729 #line 17730 "configure"
17730 #include "confdefs.h"
17731 /* System header to define __stub macros and hopefully few prototypes,
17732     which can conflict with char $ac_func(); below.  */
17733 #include <assert.h>
17734 /* Override any gcc2 internal prototype to avoid an error.  */
17735 /* We use char because int might match the return type of a gcc2
17736     builtin and then its argument prototype would still apply.  */
17737 char $ac_func();
17738
17739 int main() {
17740
17741 /* The GNU C library defines this for functions which it implements
17742     to always fail with ENOSYS.  Some functions are actually named
17743     something starting with __ and the normal name is an alias.  */
17744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17745 choke me
17746 #else
17747 $ac_func();
17748 #endif
17749
17750 ; return 0; }
17751 EOF
17752 if { (eval echo configure:17753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17753   rm -rf conftest*
17754   eval "ac_cv_func_$ac_func=yes"
17755 else
17756   echo "configure: failed program was:" >&5
17757   cat conftest.$ac_ext >&5
17758   rm -rf conftest*
17759   eval "ac_cv_func_$ac_func=no"
17760 fi
17761 rm -f conftest*
17762 fi
17763
17764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17765   echo "$ac_t""yes" 1>&6
17766     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17767   cat >> confdefs.h <<EOF
17768 #define $ac_tr_func 1
17769 EOF
17770  
17771 else
17772   echo "$ac_t""no" 1>&6
17773 fi
17774 done
17775     
17776   else
17777     
17778   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
17779 echo "configure:17780: checking for _isinfl declaration" >&5
17780   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
17781     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
17782   echo $ac_n "(cached) $ac_c" 1>&6
17783 else
17784   
17785       
17786       ac_ext=C
17787 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17788 ac_cpp='$CXXCPP $CPPFLAGS'
17789 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17790 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17791 cross_compiling=$ac_cv_prog_cxx_cross
17792
17793       cat > conftest.$ac_ext <<EOF
17794 #line 17795 "configure"
17795 #include "confdefs.h"
17796 #include <math.h>
17797                       #ifdef HAVE_IEEEFP_H
17798                       #include <ieeefp.h>
17799                       #endif
17800                      
17801 int main() {
17802  _isinfl(0);
17803 ; return 0; }
17804 EOF
17805 if { (eval echo configure:17806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17806   rm -rf conftest*
17807   glibcpp_cv_func__isinfl_use=yes
17808 else
17809   echo "configure: failed program was:" >&5
17810   cat conftest.$ac_ext >&5
17811   rm -rf conftest*
17812   glibcpp_cv_func__isinfl_use=no
17813 fi
17814 rm -f conftest*
17815       ac_ext=c
17816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17817 ac_cpp='$CPP $CPPFLAGS'
17818 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17819 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17820 cross_compiling=$ac_cv_prog_cc_cross
17821
17822     
17823 fi
17824
17825   fi
17826   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
17827
17828     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
17829       for ac_func in _isinfl
17830 do
17831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17832 echo "configure:17833: checking for $ac_func" >&5
17833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17834   echo $ac_n "(cached) $ac_c" 1>&6
17835 else
17836   cat > conftest.$ac_ext <<EOF
17837 #line 17838 "configure"
17838 #include "confdefs.h"
17839 /* System header to define __stub macros and hopefully few prototypes,
17840     which can conflict with char $ac_func(); below.  */
17841 #include <assert.h>
17842 /* Override any gcc2 internal prototype to avoid an error.  */
17843 /* We use char because int might match the return type of a gcc2
17844     builtin and then its argument prototype would still apply.  */
17845 char $ac_func();
17846
17847 int main() {
17848
17849 /* The GNU C library defines this for functions which it implements
17850     to always fail with ENOSYS.  Some functions are actually named
17851     something starting with __ and the normal name is an alias.  */
17852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17853 choke me
17854 #else
17855 $ac_func();
17856 #endif
17857
17858 ; return 0; }
17859 EOF
17860 if { (eval echo configure:17861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17861   rm -rf conftest*
17862   eval "ac_cv_func_$ac_func=yes"
17863 else
17864   echo "configure: failed program was:" >&5
17865   cat conftest.$ac_ext >&5
17866   rm -rf conftest*
17867   eval "ac_cv_func_$ac_func=no"
17868 fi
17869 rm -f conftest*
17870 fi
17871
17872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17873   echo "$ac_t""yes" 1>&6
17874     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17875   cat >> confdefs.h <<EOF
17876 #define $ac_tr_func 1
17877 EOF
17878  
17879 else
17880   echo "$ac_t""no" 1>&6
17881 fi
17882 done
17883     
17884     fi
17885   fi
17886
17887   
17888   
17889   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
17890 echo "configure:17891: checking for copysignl declaration" >&5
17891   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
17892     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
17893   echo $ac_n "(cached) $ac_c" 1>&6
17894 else
17895   
17896       
17897       ac_ext=C
17898 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17899 ac_cpp='$CXXCPP $CPPFLAGS'
17900 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17901 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17902 cross_compiling=$ac_cv_prog_cxx_cross
17903
17904       cat > conftest.$ac_ext <<EOF
17905 #line 17906 "configure"
17906 #include "confdefs.h"
17907 #include <math.h>
17908 int main() {
17909  copysignl(0, 0);
17910 ; return 0; }
17911 EOF
17912 if { (eval echo configure:17913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17913   rm -rf conftest*
17914   glibcpp_cv_func_copysignl_use=yes
17915 else
17916   echo "configure: failed program was:" >&5
17917   cat conftest.$ac_ext >&5
17918   rm -rf conftest*
17919   glibcpp_cv_func_copysignl_use=no
17920 fi
17921 rm -f conftest*
17922       ac_ext=c
17923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17924 ac_cpp='$CPP $CPPFLAGS'
17925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17927 cross_compiling=$ac_cv_prog_cc_cross
17928
17929     
17930 fi
17931
17932   fi
17933   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
17934
17935   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
17936     for ac_func in copysignl
17937 do
17938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17939 echo "configure:17940: checking for $ac_func" >&5
17940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17941   echo $ac_n "(cached) $ac_c" 1>&6
17942 else
17943   cat > conftest.$ac_ext <<EOF
17944 #line 17945 "configure"
17945 #include "confdefs.h"
17946 /* System header to define __stub macros and hopefully few prototypes,
17947     which can conflict with char $ac_func(); below.  */
17948 #include <assert.h>
17949 /* Override any gcc2 internal prototype to avoid an error.  */
17950 /* We use char because int might match the return type of a gcc2
17951     builtin and then its argument prototype would still apply.  */
17952 char $ac_func();
17953
17954 int main() {
17955
17956 /* The GNU C library defines this for functions which it implements
17957     to always fail with ENOSYS.  Some functions are actually named
17958     something starting with __ and the normal name is an alias.  */
17959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17960 choke me
17961 #else
17962 $ac_func();
17963 #endif
17964
17965 ; return 0; }
17966 EOF
17967 if { (eval echo configure:17968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17968   rm -rf conftest*
17969   eval "ac_cv_func_$ac_func=yes"
17970 else
17971   echo "configure: failed program was:" >&5
17972   cat conftest.$ac_ext >&5
17973   rm -rf conftest*
17974   eval "ac_cv_func_$ac_func=no"
17975 fi
17976 rm -f conftest*
17977 fi
17978
17979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17980   echo "$ac_t""yes" 1>&6
17981     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17982   cat >> confdefs.h <<EOF
17983 #define $ac_tr_func 1
17984 EOF
17985  
17986 else
17987   echo "$ac_t""no" 1>&6
17988 fi
17989 done
17990     
17991   else
17992     
17993   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
17994 echo "configure:17995: checking for _copysignl declaration" >&5
17995   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
17996     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
17997   echo $ac_n "(cached) $ac_c" 1>&6
17998 else
17999   
18000       
18001       ac_ext=C
18002 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18003 ac_cpp='$CXXCPP $CPPFLAGS'
18004 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18005 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18006 cross_compiling=$ac_cv_prog_cxx_cross
18007
18008       cat > conftest.$ac_ext <<EOF
18009 #line 18010 "configure"
18010 #include "confdefs.h"
18011 #include <math.h>
18012 int main() {
18013  _copysignl(0, 0);
18014 ; return 0; }
18015 EOF
18016 if { (eval echo configure:18017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18017   rm -rf conftest*
18018   glibcpp_cv_func__copysignl_use=yes
18019 else
18020   echo "configure: failed program was:" >&5
18021   cat conftest.$ac_ext >&5
18022   rm -rf conftest*
18023   glibcpp_cv_func__copysignl_use=no
18024 fi
18025 rm -f conftest*
18026       ac_ext=c
18027 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18028 ac_cpp='$CPP $CPPFLAGS'
18029 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18030 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18031 cross_compiling=$ac_cv_prog_cc_cross
18032
18033     
18034 fi
18035
18036   fi
18037   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
18038
18039     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
18040       for ac_func in _copysignl
18041 do
18042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18043 echo "configure:18044: checking for $ac_func" >&5
18044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18045   echo $ac_n "(cached) $ac_c" 1>&6
18046 else
18047   cat > conftest.$ac_ext <<EOF
18048 #line 18049 "configure"
18049 #include "confdefs.h"
18050 /* System header to define __stub macros and hopefully few prototypes,
18051     which can conflict with char $ac_func(); below.  */
18052 #include <assert.h>
18053 /* Override any gcc2 internal prototype to avoid an error.  */
18054 /* We use char because int might match the return type of a gcc2
18055     builtin and then its argument prototype would still apply.  */
18056 char $ac_func();
18057
18058 int main() {
18059
18060 /* The GNU C library defines this for functions which it implements
18061     to always fail with ENOSYS.  Some functions are actually named
18062     something starting with __ and the normal name is an alias.  */
18063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18064 choke me
18065 #else
18066 $ac_func();
18067 #endif
18068
18069 ; return 0; }
18070 EOF
18071 if { (eval echo configure:18072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18072   rm -rf conftest*
18073   eval "ac_cv_func_$ac_func=yes"
18074 else
18075   echo "configure: failed program was:" >&5
18076   cat conftest.$ac_ext >&5
18077   rm -rf conftest*
18078   eval "ac_cv_func_$ac_func=no"
18079 fi
18080 rm -f conftest*
18081 fi
18082
18083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18084   echo "$ac_t""yes" 1>&6
18085     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18086   cat >> confdefs.h <<EOF
18087 #define $ac_tr_func 1
18088 EOF
18089  
18090 else
18091   echo "$ac_t""no" 1>&6
18092 fi
18093 done
18094     
18095     fi
18096   fi
18097
18098   
18099   
18100   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
18101 echo "configure:18102: checking for atan2l declaration" >&5
18102   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
18103     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
18104   echo $ac_n "(cached) $ac_c" 1>&6
18105 else
18106   
18107       
18108       ac_ext=C
18109 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18110 ac_cpp='$CXXCPP $CPPFLAGS'
18111 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18112 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18113 cross_compiling=$ac_cv_prog_cxx_cross
18114
18115       cat > conftest.$ac_ext <<EOF
18116 #line 18117 "configure"
18117 #include "confdefs.h"
18118 #include <math.h>
18119 int main() {
18120  atan2l(0, 0);
18121 ; return 0; }
18122 EOF
18123 if { (eval echo configure:18124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18124   rm -rf conftest*
18125   glibcpp_cv_func_atan2l_use=yes
18126 else
18127   echo "configure: failed program was:" >&5
18128   cat conftest.$ac_ext >&5
18129   rm -rf conftest*
18130   glibcpp_cv_func_atan2l_use=no
18131 fi
18132 rm -f conftest*
18133       ac_ext=c
18134 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18135 ac_cpp='$CPP $CPPFLAGS'
18136 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18137 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18138 cross_compiling=$ac_cv_prog_cc_cross
18139
18140     
18141 fi
18142
18143   fi
18144   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
18145
18146   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
18147     for ac_func in atan2l
18148 do
18149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18150 echo "configure:18151: checking for $ac_func" >&5
18151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18152   echo $ac_n "(cached) $ac_c" 1>&6
18153 else
18154   cat > conftest.$ac_ext <<EOF
18155 #line 18156 "configure"
18156 #include "confdefs.h"
18157 /* System header to define __stub macros and hopefully few prototypes,
18158     which can conflict with char $ac_func(); below.  */
18159 #include <assert.h>
18160 /* Override any gcc2 internal prototype to avoid an error.  */
18161 /* We use char because int might match the return type of a gcc2
18162     builtin and then its argument prototype would still apply.  */
18163 char $ac_func();
18164
18165 int main() {
18166
18167 /* The GNU C library defines this for functions which it implements
18168     to always fail with ENOSYS.  Some functions are actually named
18169     something starting with __ and the normal name is an alias.  */
18170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18171 choke me
18172 #else
18173 $ac_func();
18174 #endif
18175
18176 ; return 0; }
18177 EOF
18178 if { (eval echo configure:18179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18179   rm -rf conftest*
18180   eval "ac_cv_func_$ac_func=yes"
18181 else
18182   echo "configure: failed program was:" >&5
18183   cat conftest.$ac_ext >&5
18184   rm -rf conftest*
18185   eval "ac_cv_func_$ac_func=no"
18186 fi
18187 rm -f conftest*
18188 fi
18189
18190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18191   echo "$ac_t""yes" 1>&6
18192     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18193   cat >> confdefs.h <<EOF
18194 #define $ac_tr_func 1
18195 EOF
18196  
18197 else
18198   echo "$ac_t""no" 1>&6
18199 fi
18200 done
18201     
18202   else
18203     
18204   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
18205 echo "configure:18206: checking for _atan2l declaration" >&5
18206   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
18207     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
18208   echo $ac_n "(cached) $ac_c" 1>&6
18209 else
18210   
18211       
18212       ac_ext=C
18213 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18214 ac_cpp='$CXXCPP $CPPFLAGS'
18215 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18216 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18217 cross_compiling=$ac_cv_prog_cxx_cross
18218
18219       cat > conftest.$ac_ext <<EOF
18220 #line 18221 "configure"
18221 #include "confdefs.h"
18222 #include <math.h>
18223 int main() {
18224  _atan2l(0, 0);
18225 ; return 0; }
18226 EOF
18227 if { (eval echo configure:18228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18228   rm -rf conftest*
18229   glibcpp_cv_func__atan2l_use=yes
18230 else
18231   echo "configure: failed program was:" >&5
18232   cat conftest.$ac_ext >&5
18233   rm -rf conftest*
18234   glibcpp_cv_func__atan2l_use=no
18235 fi
18236 rm -f conftest*
18237       ac_ext=c
18238 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18239 ac_cpp='$CPP $CPPFLAGS'
18240 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18241 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18242 cross_compiling=$ac_cv_prog_cc_cross
18243
18244     
18245 fi
18246
18247   fi
18248   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
18249
18250     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
18251       for ac_func in _atan2l
18252 do
18253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18254 echo "configure:18255: checking for $ac_func" >&5
18255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18256   echo $ac_n "(cached) $ac_c" 1>&6
18257 else
18258   cat > conftest.$ac_ext <<EOF
18259 #line 18260 "configure"
18260 #include "confdefs.h"
18261 /* System header to define __stub macros and hopefully few prototypes,
18262     which can conflict with char $ac_func(); below.  */
18263 #include <assert.h>
18264 /* Override any gcc2 internal prototype to avoid an error.  */
18265 /* We use char because int might match the return type of a gcc2
18266     builtin and then its argument prototype would still apply.  */
18267 char $ac_func();
18268
18269 int main() {
18270
18271 /* The GNU C library defines this for functions which it implements
18272     to always fail with ENOSYS.  Some functions are actually named
18273     something starting with __ and the normal name is an alias.  */
18274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18275 choke me
18276 #else
18277 $ac_func();
18278 #endif
18279
18280 ; return 0; }
18281 EOF
18282 if { (eval echo configure:18283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18283   rm -rf conftest*
18284   eval "ac_cv_func_$ac_func=yes"
18285 else
18286   echo "configure: failed program was:" >&5
18287   cat conftest.$ac_ext >&5
18288   rm -rf conftest*
18289   eval "ac_cv_func_$ac_func=no"
18290 fi
18291 rm -f conftest*
18292 fi
18293
18294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18295   echo "$ac_t""yes" 1>&6
18296     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18297   cat >> confdefs.h <<EOF
18298 #define $ac_tr_func 1
18299 EOF
18300  
18301 else
18302   echo "$ac_t""no" 1>&6
18303 fi
18304 done
18305     
18306     fi
18307   fi
18308
18309   
18310   
18311   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
18312 echo "configure:18313: checking for expl declaration" >&5
18313   if test x${glibcpp_cv_func_expl_use+set} != xset; then
18314     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
18315   echo $ac_n "(cached) $ac_c" 1>&6
18316 else
18317   
18318       
18319       ac_ext=C
18320 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18321 ac_cpp='$CXXCPP $CPPFLAGS'
18322 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18323 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18324 cross_compiling=$ac_cv_prog_cxx_cross
18325
18326       cat > conftest.$ac_ext <<EOF
18327 #line 18328 "configure"
18328 #include "confdefs.h"
18329 #include <math.h>
18330                       #ifdef HAVE_IEEEFP_H
18331                       #include <ieeefp.h>
18332                       #endif
18333                      
18334 int main() {
18335  expl(0);
18336 ; return 0; }
18337 EOF
18338 if { (eval echo configure:18339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18339   rm -rf conftest*
18340   glibcpp_cv_func_expl_use=yes
18341 else
18342   echo "configure: failed program was:" >&5
18343   cat conftest.$ac_ext >&5
18344   rm -rf conftest*
18345   glibcpp_cv_func_expl_use=no
18346 fi
18347 rm -f conftest*
18348       ac_ext=c
18349 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18350 ac_cpp='$CPP $CPPFLAGS'
18351 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18352 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18353 cross_compiling=$ac_cv_prog_cc_cross
18354
18355     
18356 fi
18357
18358   fi
18359   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
18360
18361   if test x$glibcpp_cv_func_expl_use = x"yes"; then
18362     for ac_func in expl
18363 do
18364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18365 echo "configure:18366: checking for $ac_func" >&5
18366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18367   echo $ac_n "(cached) $ac_c" 1>&6
18368 else
18369   cat > conftest.$ac_ext <<EOF
18370 #line 18371 "configure"
18371 #include "confdefs.h"
18372 /* System header to define __stub macros and hopefully few prototypes,
18373     which can conflict with char $ac_func(); below.  */
18374 #include <assert.h>
18375 /* Override any gcc2 internal prototype to avoid an error.  */
18376 /* We use char because int might match the return type of a gcc2
18377     builtin and then its argument prototype would still apply.  */
18378 char $ac_func();
18379
18380 int main() {
18381
18382 /* The GNU C library defines this for functions which it implements
18383     to always fail with ENOSYS.  Some functions are actually named
18384     something starting with __ and the normal name is an alias.  */
18385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18386 choke me
18387 #else
18388 $ac_func();
18389 #endif
18390
18391 ; return 0; }
18392 EOF
18393 if { (eval echo configure:18394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18394   rm -rf conftest*
18395   eval "ac_cv_func_$ac_func=yes"
18396 else
18397   echo "configure: failed program was:" >&5
18398   cat conftest.$ac_ext >&5
18399   rm -rf conftest*
18400   eval "ac_cv_func_$ac_func=no"
18401 fi
18402 rm -f conftest*
18403 fi
18404
18405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18406   echo "$ac_t""yes" 1>&6
18407     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18408   cat >> confdefs.h <<EOF
18409 #define $ac_tr_func 1
18410 EOF
18411  
18412 else
18413   echo "$ac_t""no" 1>&6
18414 fi
18415 done
18416     
18417   else
18418     
18419   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
18420 echo "configure:18421: checking for _expl declaration" >&5
18421   if test x${glibcpp_cv_func__expl_use+set} != xset; then
18422     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
18423   echo $ac_n "(cached) $ac_c" 1>&6
18424 else
18425   
18426       
18427       ac_ext=C
18428 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18429 ac_cpp='$CXXCPP $CPPFLAGS'
18430 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18431 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18432 cross_compiling=$ac_cv_prog_cxx_cross
18433
18434       cat > conftest.$ac_ext <<EOF
18435 #line 18436 "configure"
18436 #include "confdefs.h"
18437 #include <math.h>
18438                       #ifdef HAVE_IEEEFP_H
18439                       #include <ieeefp.h>
18440                       #endif
18441                      
18442 int main() {
18443  _expl(0);
18444 ; return 0; }
18445 EOF
18446 if { (eval echo configure:18447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18447   rm -rf conftest*
18448   glibcpp_cv_func__expl_use=yes
18449 else
18450   echo "configure: failed program was:" >&5
18451   cat conftest.$ac_ext >&5
18452   rm -rf conftest*
18453   glibcpp_cv_func__expl_use=no
18454 fi
18455 rm -f conftest*
18456       ac_ext=c
18457 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18458 ac_cpp='$CPP $CPPFLAGS'
18459 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18460 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18461 cross_compiling=$ac_cv_prog_cc_cross
18462
18463     
18464 fi
18465
18466   fi
18467   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
18468
18469     if test x$glibcpp_cv_func__expl_use = x"yes"; then
18470       for ac_func in _expl
18471 do
18472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18473 echo "configure:18474: checking for $ac_func" >&5
18474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18475   echo $ac_n "(cached) $ac_c" 1>&6
18476 else
18477   cat > conftest.$ac_ext <<EOF
18478 #line 18479 "configure"
18479 #include "confdefs.h"
18480 /* System header to define __stub macros and hopefully few prototypes,
18481     which can conflict with char $ac_func(); below.  */
18482 #include <assert.h>
18483 /* Override any gcc2 internal prototype to avoid an error.  */
18484 /* We use char because int might match the return type of a gcc2
18485     builtin and then its argument prototype would still apply.  */
18486 char $ac_func();
18487
18488 int main() {
18489
18490 /* The GNU C library defines this for functions which it implements
18491     to always fail with ENOSYS.  Some functions are actually named
18492     something starting with __ and the normal name is an alias.  */
18493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18494 choke me
18495 #else
18496 $ac_func();
18497 #endif
18498
18499 ; return 0; }
18500 EOF
18501 if { (eval echo configure:18502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18502   rm -rf conftest*
18503   eval "ac_cv_func_$ac_func=yes"
18504 else
18505   echo "configure: failed program was:" >&5
18506   cat conftest.$ac_ext >&5
18507   rm -rf conftest*
18508   eval "ac_cv_func_$ac_func=no"
18509 fi
18510 rm -f conftest*
18511 fi
18512
18513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18514   echo "$ac_t""yes" 1>&6
18515     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18516   cat >> confdefs.h <<EOF
18517 #define $ac_tr_func 1
18518 EOF
18519  
18520 else
18521   echo "$ac_t""no" 1>&6
18522 fi
18523 done
18524     
18525     fi
18526   fi
18527
18528   
18529   
18530   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
18531 echo "configure:18532: checking for fabsl declaration" >&5
18532   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
18533     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
18534   echo $ac_n "(cached) $ac_c" 1>&6
18535 else
18536   
18537       
18538       ac_ext=C
18539 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18540 ac_cpp='$CXXCPP $CPPFLAGS'
18541 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18542 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18543 cross_compiling=$ac_cv_prog_cxx_cross
18544
18545       cat > conftest.$ac_ext <<EOF
18546 #line 18547 "configure"
18547 #include "confdefs.h"
18548 #include <math.h>
18549                       #ifdef HAVE_IEEEFP_H
18550                       #include <ieeefp.h>
18551                       #endif
18552                      
18553 int main() {
18554  fabsl(0);
18555 ; return 0; }
18556 EOF
18557 if { (eval echo configure:18558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18558   rm -rf conftest*
18559   glibcpp_cv_func_fabsl_use=yes
18560 else
18561   echo "configure: failed program was:" >&5
18562   cat conftest.$ac_ext >&5
18563   rm -rf conftest*
18564   glibcpp_cv_func_fabsl_use=no
18565 fi
18566 rm -f conftest*
18567       ac_ext=c
18568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18569 ac_cpp='$CPP $CPPFLAGS'
18570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18572 cross_compiling=$ac_cv_prog_cc_cross
18573
18574     
18575 fi
18576
18577   fi
18578   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
18579
18580   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
18581     for ac_func in fabsl
18582 do
18583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18584 echo "configure:18585: checking for $ac_func" >&5
18585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18586   echo $ac_n "(cached) $ac_c" 1>&6
18587 else
18588   cat > conftest.$ac_ext <<EOF
18589 #line 18590 "configure"
18590 #include "confdefs.h"
18591 /* System header to define __stub macros and hopefully few prototypes,
18592     which can conflict with char $ac_func(); below.  */
18593 #include <assert.h>
18594 /* Override any gcc2 internal prototype to avoid an error.  */
18595 /* We use char because int might match the return type of a gcc2
18596     builtin and then its argument prototype would still apply.  */
18597 char $ac_func();
18598
18599 int main() {
18600
18601 /* The GNU C library defines this for functions which it implements
18602     to always fail with ENOSYS.  Some functions are actually named
18603     something starting with __ and the normal name is an alias.  */
18604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18605 choke me
18606 #else
18607 $ac_func();
18608 #endif
18609
18610 ; return 0; }
18611 EOF
18612 if { (eval echo configure:18613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18613   rm -rf conftest*
18614   eval "ac_cv_func_$ac_func=yes"
18615 else
18616   echo "configure: failed program was:" >&5
18617   cat conftest.$ac_ext >&5
18618   rm -rf conftest*
18619   eval "ac_cv_func_$ac_func=no"
18620 fi
18621 rm -f conftest*
18622 fi
18623
18624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18625   echo "$ac_t""yes" 1>&6
18626     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18627   cat >> confdefs.h <<EOF
18628 #define $ac_tr_func 1
18629 EOF
18630  
18631 else
18632   echo "$ac_t""no" 1>&6
18633 fi
18634 done
18635     
18636   else
18637     
18638   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
18639 echo "configure:18640: checking for _fabsl declaration" >&5
18640   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
18641     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
18642   echo $ac_n "(cached) $ac_c" 1>&6
18643 else
18644   
18645       
18646       ac_ext=C
18647 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18648 ac_cpp='$CXXCPP $CPPFLAGS'
18649 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18650 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18651 cross_compiling=$ac_cv_prog_cxx_cross
18652
18653       cat > conftest.$ac_ext <<EOF
18654 #line 18655 "configure"
18655 #include "confdefs.h"
18656 #include <math.h>
18657                       #ifdef HAVE_IEEEFP_H
18658                       #include <ieeefp.h>
18659                       #endif
18660                      
18661 int main() {
18662  _fabsl(0);
18663 ; return 0; }
18664 EOF
18665 if { (eval echo configure:18666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18666   rm -rf conftest*
18667   glibcpp_cv_func__fabsl_use=yes
18668 else
18669   echo "configure: failed program was:" >&5
18670   cat conftest.$ac_ext >&5
18671   rm -rf conftest*
18672   glibcpp_cv_func__fabsl_use=no
18673 fi
18674 rm -f conftest*
18675       ac_ext=c
18676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18677 ac_cpp='$CPP $CPPFLAGS'
18678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18680 cross_compiling=$ac_cv_prog_cc_cross
18681
18682     
18683 fi
18684
18685   fi
18686   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
18687
18688     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
18689       for ac_func in _fabsl
18690 do
18691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18692 echo "configure:18693: checking for $ac_func" >&5
18693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18694   echo $ac_n "(cached) $ac_c" 1>&6
18695 else
18696   cat > conftest.$ac_ext <<EOF
18697 #line 18698 "configure"
18698 #include "confdefs.h"
18699 /* System header to define __stub macros and hopefully few prototypes,
18700     which can conflict with char $ac_func(); below.  */
18701 #include <assert.h>
18702 /* Override any gcc2 internal prototype to avoid an error.  */
18703 /* We use char because int might match the return type of a gcc2
18704     builtin and then its argument prototype would still apply.  */
18705 char $ac_func();
18706
18707 int main() {
18708
18709 /* The GNU C library defines this for functions which it implements
18710     to always fail with ENOSYS.  Some functions are actually named
18711     something starting with __ and the normal name is an alias.  */
18712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18713 choke me
18714 #else
18715 $ac_func();
18716 #endif
18717
18718 ; return 0; }
18719 EOF
18720 if { (eval echo configure:18721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18721   rm -rf conftest*
18722   eval "ac_cv_func_$ac_func=yes"
18723 else
18724   echo "configure: failed program was:" >&5
18725   cat conftest.$ac_ext >&5
18726   rm -rf conftest*
18727   eval "ac_cv_func_$ac_func=no"
18728 fi
18729 rm -f conftest*
18730 fi
18731
18732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18733   echo "$ac_t""yes" 1>&6
18734     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18735   cat >> confdefs.h <<EOF
18736 #define $ac_tr_func 1
18737 EOF
18738  
18739 else
18740   echo "$ac_t""no" 1>&6
18741 fi
18742 done
18743     
18744     fi
18745   fi
18746
18747   
18748   
18749   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
18750 echo "configure:18751: checking for fmodl declaration" >&5
18751   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
18752     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
18753   echo $ac_n "(cached) $ac_c" 1>&6
18754 else
18755   
18756       
18757       ac_ext=C
18758 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18759 ac_cpp='$CXXCPP $CPPFLAGS'
18760 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18761 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18762 cross_compiling=$ac_cv_prog_cxx_cross
18763
18764       cat > conftest.$ac_ext <<EOF
18765 #line 18766 "configure"
18766 #include "confdefs.h"
18767 #include <math.h>
18768 int main() {
18769  fmodl(0, 0);
18770 ; return 0; }
18771 EOF
18772 if { (eval echo configure:18773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18773   rm -rf conftest*
18774   glibcpp_cv_func_fmodl_use=yes
18775 else
18776   echo "configure: failed program was:" >&5
18777   cat conftest.$ac_ext >&5
18778   rm -rf conftest*
18779   glibcpp_cv_func_fmodl_use=no
18780 fi
18781 rm -f conftest*
18782       ac_ext=c
18783 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18784 ac_cpp='$CPP $CPPFLAGS'
18785 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18786 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18787 cross_compiling=$ac_cv_prog_cc_cross
18788
18789     
18790 fi
18791
18792   fi
18793   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
18794
18795   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
18796     for ac_func in fmodl
18797 do
18798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18799 echo "configure:18800: checking for $ac_func" >&5
18800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18801   echo $ac_n "(cached) $ac_c" 1>&6
18802 else
18803   cat > conftest.$ac_ext <<EOF
18804 #line 18805 "configure"
18805 #include "confdefs.h"
18806 /* System header to define __stub macros and hopefully few prototypes,
18807     which can conflict with char $ac_func(); below.  */
18808 #include <assert.h>
18809 /* Override any gcc2 internal prototype to avoid an error.  */
18810 /* We use char because int might match the return type of a gcc2
18811     builtin and then its argument prototype would still apply.  */
18812 char $ac_func();
18813
18814 int main() {
18815
18816 /* The GNU C library defines this for functions which it implements
18817     to always fail with ENOSYS.  Some functions are actually named
18818     something starting with __ and the normal name is an alias.  */
18819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18820 choke me
18821 #else
18822 $ac_func();
18823 #endif
18824
18825 ; return 0; }
18826 EOF
18827 if { (eval echo configure:18828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18828   rm -rf conftest*
18829   eval "ac_cv_func_$ac_func=yes"
18830 else
18831   echo "configure: failed program was:" >&5
18832   cat conftest.$ac_ext >&5
18833   rm -rf conftest*
18834   eval "ac_cv_func_$ac_func=no"
18835 fi
18836 rm -f conftest*
18837 fi
18838
18839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18840   echo "$ac_t""yes" 1>&6
18841     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18842   cat >> confdefs.h <<EOF
18843 #define $ac_tr_func 1
18844 EOF
18845  
18846 else
18847   echo "$ac_t""no" 1>&6
18848 fi
18849 done
18850     
18851   else
18852     
18853   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
18854 echo "configure:18855: checking for _fmodl declaration" >&5
18855   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
18856     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
18857   echo $ac_n "(cached) $ac_c" 1>&6
18858 else
18859   
18860       
18861       ac_ext=C
18862 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18863 ac_cpp='$CXXCPP $CPPFLAGS'
18864 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18865 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18866 cross_compiling=$ac_cv_prog_cxx_cross
18867
18868       cat > conftest.$ac_ext <<EOF
18869 #line 18870 "configure"
18870 #include "confdefs.h"
18871 #include <math.h>
18872 int main() {
18873  _fmodl(0, 0);
18874 ; return 0; }
18875 EOF
18876 if { (eval echo configure:18877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18877   rm -rf conftest*
18878   glibcpp_cv_func__fmodl_use=yes
18879 else
18880   echo "configure: failed program was:" >&5
18881   cat conftest.$ac_ext >&5
18882   rm -rf conftest*
18883   glibcpp_cv_func__fmodl_use=no
18884 fi
18885 rm -f conftest*
18886       ac_ext=c
18887 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18888 ac_cpp='$CPP $CPPFLAGS'
18889 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18890 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18891 cross_compiling=$ac_cv_prog_cc_cross
18892
18893     
18894 fi
18895
18896   fi
18897   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
18898
18899     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
18900       for ac_func in _fmodl
18901 do
18902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18903 echo "configure:18904: checking for $ac_func" >&5
18904 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18905   echo $ac_n "(cached) $ac_c" 1>&6
18906 else
18907   cat > conftest.$ac_ext <<EOF
18908 #line 18909 "configure"
18909 #include "confdefs.h"
18910 /* System header to define __stub macros and hopefully few prototypes,
18911     which can conflict with char $ac_func(); below.  */
18912 #include <assert.h>
18913 /* Override any gcc2 internal prototype to avoid an error.  */
18914 /* We use char because int might match the return type of a gcc2
18915     builtin and then its argument prototype would still apply.  */
18916 char $ac_func();
18917
18918 int main() {
18919
18920 /* The GNU C library defines this for functions which it implements
18921     to always fail with ENOSYS.  Some functions are actually named
18922     something starting with __ and the normal name is an alias.  */
18923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18924 choke me
18925 #else
18926 $ac_func();
18927 #endif
18928
18929 ; return 0; }
18930 EOF
18931 if { (eval echo configure:18932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18932   rm -rf conftest*
18933   eval "ac_cv_func_$ac_func=yes"
18934 else
18935   echo "configure: failed program was:" >&5
18936   cat conftest.$ac_ext >&5
18937   rm -rf conftest*
18938   eval "ac_cv_func_$ac_func=no"
18939 fi
18940 rm -f conftest*
18941 fi
18942
18943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18944   echo "$ac_t""yes" 1>&6
18945     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18946   cat >> confdefs.h <<EOF
18947 #define $ac_tr_func 1
18948 EOF
18949  
18950 else
18951   echo "$ac_t""no" 1>&6
18952 fi
18953 done
18954     
18955     fi
18956   fi
18957
18958   
18959   
18960   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
18961 echo "configure:18962: checking for frexpl declaration" >&5
18962   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
18963     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
18964   echo $ac_n "(cached) $ac_c" 1>&6
18965 else
18966   
18967       
18968       ac_ext=C
18969 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18970 ac_cpp='$CXXCPP $CPPFLAGS'
18971 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18972 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18973 cross_compiling=$ac_cv_prog_cxx_cross
18974
18975       cat > conftest.$ac_ext <<EOF
18976 #line 18977 "configure"
18977 #include "confdefs.h"
18978 #include <math.h>
18979 int main() {
18980  frexpl(0, 0);
18981 ; return 0; }
18982 EOF
18983 if { (eval echo configure:18984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18984   rm -rf conftest*
18985   glibcpp_cv_func_frexpl_use=yes
18986 else
18987   echo "configure: failed program was:" >&5
18988   cat conftest.$ac_ext >&5
18989   rm -rf conftest*
18990   glibcpp_cv_func_frexpl_use=no
18991 fi
18992 rm -f conftest*
18993       ac_ext=c
18994 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18995 ac_cpp='$CPP $CPPFLAGS'
18996 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18997 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18998 cross_compiling=$ac_cv_prog_cc_cross
18999
19000     
19001 fi
19002
19003   fi
19004   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
19005
19006   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
19007     for ac_func in frexpl
19008 do
19009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19010 echo "configure:19011: checking for $ac_func" >&5
19011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19012   echo $ac_n "(cached) $ac_c" 1>&6
19013 else
19014   cat > conftest.$ac_ext <<EOF
19015 #line 19016 "configure"
19016 #include "confdefs.h"
19017 /* System header to define __stub macros and hopefully few prototypes,
19018     which can conflict with char $ac_func(); below.  */
19019 #include <assert.h>
19020 /* Override any gcc2 internal prototype to avoid an error.  */
19021 /* We use char because int might match the return type of a gcc2
19022     builtin and then its argument prototype would still apply.  */
19023 char $ac_func();
19024
19025 int main() {
19026
19027 /* The GNU C library defines this for functions which it implements
19028     to always fail with ENOSYS.  Some functions are actually named
19029     something starting with __ and the normal name is an alias.  */
19030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19031 choke me
19032 #else
19033 $ac_func();
19034 #endif
19035
19036 ; return 0; }
19037 EOF
19038 if { (eval echo configure:19039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19039   rm -rf conftest*
19040   eval "ac_cv_func_$ac_func=yes"
19041 else
19042   echo "configure: failed program was:" >&5
19043   cat conftest.$ac_ext >&5
19044   rm -rf conftest*
19045   eval "ac_cv_func_$ac_func=no"
19046 fi
19047 rm -f conftest*
19048 fi
19049
19050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19051   echo "$ac_t""yes" 1>&6
19052     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19053   cat >> confdefs.h <<EOF
19054 #define $ac_tr_func 1
19055 EOF
19056  
19057 else
19058   echo "$ac_t""no" 1>&6
19059 fi
19060 done
19061     
19062   else
19063     
19064   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
19065 echo "configure:19066: checking for _frexpl declaration" >&5
19066   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
19067     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
19068   echo $ac_n "(cached) $ac_c" 1>&6
19069 else
19070   
19071       
19072       ac_ext=C
19073 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19074 ac_cpp='$CXXCPP $CPPFLAGS'
19075 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19076 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19077 cross_compiling=$ac_cv_prog_cxx_cross
19078
19079       cat > conftest.$ac_ext <<EOF
19080 #line 19081 "configure"
19081 #include "confdefs.h"
19082 #include <math.h>
19083 int main() {
19084  _frexpl(0, 0);
19085 ; return 0; }
19086 EOF
19087 if { (eval echo configure:19088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19088   rm -rf conftest*
19089   glibcpp_cv_func__frexpl_use=yes
19090 else
19091   echo "configure: failed program was:" >&5
19092   cat conftest.$ac_ext >&5
19093   rm -rf conftest*
19094   glibcpp_cv_func__frexpl_use=no
19095 fi
19096 rm -f conftest*
19097       ac_ext=c
19098 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19099 ac_cpp='$CPP $CPPFLAGS'
19100 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19101 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19102 cross_compiling=$ac_cv_prog_cc_cross
19103
19104     
19105 fi
19106
19107   fi
19108   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
19109
19110     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
19111       for ac_func in _frexpl
19112 do
19113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19114 echo "configure:19115: checking for $ac_func" >&5
19115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19116   echo $ac_n "(cached) $ac_c" 1>&6
19117 else
19118   cat > conftest.$ac_ext <<EOF
19119 #line 19120 "configure"
19120 #include "confdefs.h"
19121 /* System header to define __stub macros and hopefully few prototypes,
19122     which can conflict with char $ac_func(); below.  */
19123 #include <assert.h>
19124 /* Override any gcc2 internal prototype to avoid an error.  */
19125 /* We use char because int might match the return type of a gcc2
19126     builtin and then its argument prototype would still apply.  */
19127 char $ac_func();
19128
19129 int main() {
19130
19131 /* The GNU C library defines this for functions which it implements
19132     to always fail with ENOSYS.  Some functions are actually named
19133     something starting with __ and the normal name is an alias.  */
19134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19135 choke me
19136 #else
19137 $ac_func();
19138 #endif
19139
19140 ; return 0; }
19141 EOF
19142 if { (eval echo configure:19143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19143   rm -rf conftest*
19144   eval "ac_cv_func_$ac_func=yes"
19145 else
19146   echo "configure: failed program was:" >&5
19147   cat conftest.$ac_ext >&5
19148   rm -rf conftest*
19149   eval "ac_cv_func_$ac_func=no"
19150 fi
19151 rm -f conftest*
19152 fi
19153
19154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19155   echo "$ac_t""yes" 1>&6
19156     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19157   cat >> confdefs.h <<EOF
19158 #define $ac_tr_func 1
19159 EOF
19160  
19161 else
19162   echo "$ac_t""no" 1>&6
19163 fi
19164 done
19165     
19166     fi
19167   fi
19168
19169   
19170   
19171   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
19172 echo "configure:19173: checking for hypotl declaration" >&5
19173   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
19174     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
19175   echo $ac_n "(cached) $ac_c" 1>&6
19176 else
19177   
19178       
19179       ac_ext=C
19180 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19181 ac_cpp='$CXXCPP $CPPFLAGS'
19182 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19183 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19184 cross_compiling=$ac_cv_prog_cxx_cross
19185
19186       cat > conftest.$ac_ext <<EOF
19187 #line 19188 "configure"
19188 #include "confdefs.h"
19189 #include <math.h>
19190 int main() {
19191  hypotl(0, 0);
19192 ; return 0; }
19193 EOF
19194 if { (eval echo configure:19195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19195   rm -rf conftest*
19196   glibcpp_cv_func_hypotl_use=yes
19197 else
19198   echo "configure: failed program was:" >&5
19199   cat conftest.$ac_ext >&5
19200   rm -rf conftest*
19201   glibcpp_cv_func_hypotl_use=no
19202 fi
19203 rm -f conftest*
19204       ac_ext=c
19205 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19206 ac_cpp='$CPP $CPPFLAGS'
19207 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19208 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19209 cross_compiling=$ac_cv_prog_cc_cross
19210
19211     
19212 fi
19213
19214   fi
19215   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
19216
19217   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
19218     for ac_func in hypotl
19219 do
19220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19221 echo "configure:19222: checking for $ac_func" >&5
19222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19223   echo $ac_n "(cached) $ac_c" 1>&6
19224 else
19225   cat > conftest.$ac_ext <<EOF
19226 #line 19227 "configure"
19227 #include "confdefs.h"
19228 /* System header to define __stub macros and hopefully few prototypes,
19229     which can conflict with char $ac_func(); below.  */
19230 #include <assert.h>
19231 /* Override any gcc2 internal prototype to avoid an error.  */
19232 /* We use char because int might match the return type of a gcc2
19233     builtin and then its argument prototype would still apply.  */
19234 char $ac_func();
19235
19236 int main() {
19237
19238 /* The GNU C library defines this for functions which it implements
19239     to always fail with ENOSYS.  Some functions are actually named
19240     something starting with __ and the normal name is an alias.  */
19241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19242 choke me
19243 #else
19244 $ac_func();
19245 #endif
19246
19247 ; return 0; }
19248 EOF
19249 if { (eval echo configure:19250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19250   rm -rf conftest*
19251   eval "ac_cv_func_$ac_func=yes"
19252 else
19253   echo "configure: failed program was:" >&5
19254   cat conftest.$ac_ext >&5
19255   rm -rf conftest*
19256   eval "ac_cv_func_$ac_func=no"
19257 fi
19258 rm -f conftest*
19259 fi
19260
19261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19262   echo "$ac_t""yes" 1>&6
19263     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19264   cat >> confdefs.h <<EOF
19265 #define $ac_tr_func 1
19266 EOF
19267  
19268 else
19269   echo "$ac_t""no" 1>&6
19270 fi
19271 done
19272     
19273   else
19274     
19275   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
19276 echo "configure:19277: checking for _hypotl declaration" >&5
19277   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
19278     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
19279   echo $ac_n "(cached) $ac_c" 1>&6
19280 else
19281   
19282       
19283       ac_ext=C
19284 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19285 ac_cpp='$CXXCPP $CPPFLAGS'
19286 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19287 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19288 cross_compiling=$ac_cv_prog_cxx_cross
19289
19290       cat > conftest.$ac_ext <<EOF
19291 #line 19292 "configure"
19292 #include "confdefs.h"
19293 #include <math.h>
19294 int main() {
19295  _hypotl(0, 0);
19296 ; return 0; }
19297 EOF
19298 if { (eval echo configure:19299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19299   rm -rf conftest*
19300   glibcpp_cv_func__hypotl_use=yes
19301 else
19302   echo "configure: failed program was:" >&5
19303   cat conftest.$ac_ext >&5
19304   rm -rf conftest*
19305   glibcpp_cv_func__hypotl_use=no
19306 fi
19307 rm -f conftest*
19308       ac_ext=c
19309 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19310 ac_cpp='$CPP $CPPFLAGS'
19311 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19312 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19313 cross_compiling=$ac_cv_prog_cc_cross
19314
19315     
19316 fi
19317
19318   fi
19319   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
19320
19321     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
19322       for ac_func in _hypotl
19323 do
19324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19325 echo "configure:19326: checking for $ac_func" >&5
19326 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19327   echo $ac_n "(cached) $ac_c" 1>&6
19328 else
19329   cat > conftest.$ac_ext <<EOF
19330 #line 19331 "configure"
19331 #include "confdefs.h"
19332 /* System header to define __stub macros and hopefully few prototypes,
19333     which can conflict with char $ac_func(); below.  */
19334 #include <assert.h>
19335 /* Override any gcc2 internal prototype to avoid an error.  */
19336 /* We use char because int might match the return type of a gcc2
19337     builtin and then its argument prototype would still apply.  */
19338 char $ac_func();
19339
19340 int main() {
19341
19342 /* The GNU C library defines this for functions which it implements
19343     to always fail with ENOSYS.  Some functions are actually named
19344     something starting with __ and the normal name is an alias.  */
19345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19346 choke me
19347 #else
19348 $ac_func();
19349 #endif
19350
19351 ; return 0; }
19352 EOF
19353 if { (eval echo configure:19354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19354   rm -rf conftest*
19355   eval "ac_cv_func_$ac_func=yes"
19356 else
19357   echo "configure: failed program was:" >&5
19358   cat conftest.$ac_ext >&5
19359   rm -rf conftest*
19360   eval "ac_cv_func_$ac_func=no"
19361 fi
19362 rm -f conftest*
19363 fi
19364
19365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19366   echo "$ac_t""yes" 1>&6
19367     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19368   cat >> confdefs.h <<EOF
19369 #define $ac_tr_func 1
19370 EOF
19371  
19372 else
19373   echo "$ac_t""no" 1>&6
19374 fi
19375 done
19376     
19377     fi
19378   fi
19379
19380   
19381   
19382   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
19383 echo "configure:19384: checking for ldexpl declaration" >&5
19384   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
19385     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
19386   echo $ac_n "(cached) $ac_c" 1>&6
19387 else
19388   
19389       
19390       ac_ext=C
19391 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19392 ac_cpp='$CXXCPP $CPPFLAGS'
19393 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19394 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19395 cross_compiling=$ac_cv_prog_cxx_cross
19396
19397       cat > conftest.$ac_ext <<EOF
19398 #line 19399 "configure"
19399 #include "confdefs.h"
19400 #include <math.h>
19401 int main() {
19402  ldexpl(0, 0);
19403 ; return 0; }
19404 EOF
19405 if { (eval echo configure:19406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19406   rm -rf conftest*
19407   glibcpp_cv_func_ldexpl_use=yes
19408 else
19409   echo "configure: failed program was:" >&5
19410   cat conftest.$ac_ext >&5
19411   rm -rf conftest*
19412   glibcpp_cv_func_ldexpl_use=no
19413 fi
19414 rm -f conftest*
19415       ac_ext=c
19416 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19417 ac_cpp='$CPP $CPPFLAGS'
19418 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19419 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19420 cross_compiling=$ac_cv_prog_cc_cross
19421
19422     
19423 fi
19424
19425   fi
19426   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
19427
19428   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
19429     for ac_func in ldexpl
19430 do
19431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19432 echo "configure:19433: checking for $ac_func" >&5
19433 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19434   echo $ac_n "(cached) $ac_c" 1>&6
19435 else
19436   cat > conftest.$ac_ext <<EOF
19437 #line 19438 "configure"
19438 #include "confdefs.h"
19439 /* System header to define __stub macros and hopefully few prototypes,
19440     which can conflict with char $ac_func(); below.  */
19441 #include <assert.h>
19442 /* Override any gcc2 internal prototype to avoid an error.  */
19443 /* We use char because int might match the return type of a gcc2
19444     builtin and then its argument prototype would still apply.  */
19445 char $ac_func();
19446
19447 int main() {
19448
19449 /* The GNU C library defines this for functions which it implements
19450     to always fail with ENOSYS.  Some functions are actually named
19451     something starting with __ and the normal name is an alias.  */
19452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19453 choke me
19454 #else
19455 $ac_func();
19456 #endif
19457
19458 ; return 0; }
19459 EOF
19460 if { (eval echo configure:19461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19461   rm -rf conftest*
19462   eval "ac_cv_func_$ac_func=yes"
19463 else
19464   echo "configure: failed program was:" >&5
19465   cat conftest.$ac_ext >&5
19466   rm -rf conftest*
19467   eval "ac_cv_func_$ac_func=no"
19468 fi
19469 rm -f conftest*
19470 fi
19471
19472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19473   echo "$ac_t""yes" 1>&6
19474     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19475   cat >> confdefs.h <<EOF
19476 #define $ac_tr_func 1
19477 EOF
19478  
19479 else
19480   echo "$ac_t""no" 1>&6
19481 fi
19482 done
19483     
19484   else
19485     
19486   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
19487 echo "configure:19488: checking for _ldexpl declaration" >&5
19488   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
19489     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
19490   echo $ac_n "(cached) $ac_c" 1>&6
19491 else
19492   
19493       
19494       ac_ext=C
19495 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19496 ac_cpp='$CXXCPP $CPPFLAGS'
19497 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19498 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19499 cross_compiling=$ac_cv_prog_cxx_cross
19500
19501       cat > conftest.$ac_ext <<EOF
19502 #line 19503 "configure"
19503 #include "confdefs.h"
19504 #include <math.h>
19505 int main() {
19506  _ldexpl(0, 0);
19507 ; return 0; }
19508 EOF
19509 if { (eval echo configure:19510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19510   rm -rf conftest*
19511   glibcpp_cv_func__ldexpl_use=yes
19512 else
19513   echo "configure: failed program was:" >&5
19514   cat conftest.$ac_ext >&5
19515   rm -rf conftest*
19516   glibcpp_cv_func__ldexpl_use=no
19517 fi
19518 rm -f conftest*
19519       ac_ext=c
19520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19521 ac_cpp='$CPP $CPPFLAGS'
19522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19524 cross_compiling=$ac_cv_prog_cc_cross
19525
19526     
19527 fi
19528
19529   fi
19530   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
19531
19532     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
19533       for ac_func in _ldexpl
19534 do
19535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19536 echo "configure:19537: checking for $ac_func" >&5
19537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19538   echo $ac_n "(cached) $ac_c" 1>&6
19539 else
19540   cat > conftest.$ac_ext <<EOF
19541 #line 19542 "configure"
19542 #include "confdefs.h"
19543 /* System header to define __stub macros and hopefully few prototypes,
19544     which can conflict with char $ac_func(); below.  */
19545 #include <assert.h>
19546 /* Override any gcc2 internal prototype to avoid an error.  */
19547 /* We use char because int might match the return type of a gcc2
19548     builtin and then its argument prototype would still apply.  */
19549 char $ac_func();
19550
19551 int main() {
19552
19553 /* The GNU C library defines this for functions which it implements
19554     to always fail with ENOSYS.  Some functions are actually named
19555     something starting with __ and the normal name is an alias.  */
19556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19557 choke me
19558 #else
19559 $ac_func();
19560 #endif
19561
19562 ; return 0; }
19563 EOF
19564 if { (eval echo configure:19565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19565   rm -rf conftest*
19566   eval "ac_cv_func_$ac_func=yes"
19567 else
19568   echo "configure: failed program was:" >&5
19569   cat conftest.$ac_ext >&5
19570   rm -rf conftest*
19571   eval "ac_cv_func_$ac_func=no"
19572 fi
19573 rm -f conftest*
19574 fi
19575
19576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19577   echo "$ac_t""yes" 1>&6
19578     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19579   cat >> confdefs.h <<EOF
19580 #define $ac_tr_func 1
19581 EOF
19582  
19583 else
19584   echo "$ac_t""no" 1>&6
19585 fi
19586 done
19587     
19588     fi
19589   fi
19590
19591   
19592   
19593   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
19594 echo "configure:19595: checking for logl declaration" >&5
19595   if test x${glibcpp_cv_func_logl_use+set} != xset; then
19596     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
19597   echo $ac_n "(cached) $ac_c" 1>&6
19598 else
19599   
19600       
19601       ac_ext=C
19602 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19603 ac_cpp='$CXXCPP $CPPFLAGS'
19604 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19605 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19606 cross_compiling=$ac_cv_prog_cxx_cross
19607
19608       cat > conftest.$ac_ext <<EOF
19609 #line 19610 "configure"
19610 #include "confdefs.h"
19611 #include <math.h>
19612                       #ifdef HAVE_IEEEFP_H
19613                       #include <ieeefp.h>
19614                       #endif
19615                      
19616 int main() {
19617  logl(0);
19618 ; return 0; }
19619 EOF
19620 if { (eval echo configure:19621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19621   rm -rf conftest*
19622   glibcpp_cv_func_logl_use=yes
19623 else
19624   echo "configure: failed program was:" >&5
19625   cat conftest.$ac_ext >&5
19626   rm -rf conftest*
19627   glibcpp_cv_func_logl_use=no
19628 fi
19629 rm -f conftest*
19630       ac_ext=c
19631 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19632 ac_cpp='$CPP $CPPFLAGS'
19633 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19634 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19635 cross_compiling=$ac_cv_prog_cc_cross
19636
19637     
19638 fi
19639
19640   fi
19641   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
19642
19643   if test x$glibcpp_cv_func_logl_use = x"yes"; then
19644     for ac_func in logl
19645 do
19646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19647 echo "configure:19648: checking for $ac_func" >&5
19648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19649   echo $ac_n "(cached) $ac_c" 1>&6
19650 else
19651   cat > conftest.$ac_ext <<EOF
19652 #line 19653 "configure"
19653 #include "confdefs.h"
19654 /* System header to define __stub macros and hopefully few prototypes,
19655     which can conflict with char $ac_func(); below.  */
19656 #include <assert.h>
19657 /* Override any gcc2 internal prototype to avoid an error.  */
19658 /* We use char because int might match the return type of a gcc2
19659     builtin and then its argument prototype would still apply.  */
19660 char $ac_func();
19661
19662 int main() {
19663
19664 /* The GNU C library defines this for functions which it implements
19665     to always fail with ENOSYS.  Some functions are actually named
19666     something starting with __ and the normal name is an alias.  */
19667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19668 choke me
19669 #else
19670 $ac_func();
19671 #endif
19672
19673 ; return 0; }
19674 EOF
19675 if { (eval echo configure:19676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19676   rm -rf conftest*
19677   eval "ac_cv_func_$ac_func=yes"
19678 else
19679   echo "configure: failed program was:" >&5
19680   cat conftest.$ac_ext >&5
19681   rm -rf conftest*
19682   eval "ac_cv_func_$ac_func=no"
19683 fi
19684 rm -f conftest*
19685 fi
19686
19687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19688   echo "$ac_t""yes" 1>&6
19689     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19690   cat >> confdefs.h <<EOF
19691 #define $ac_tr_func 1
19692 EOF
19693  
19694 else
19695   echo "$ac_t""no" 1>&6
19696 fi
19697 done
19698     
19699   else
19700     
19701   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
19702 echo "configure:19703: checking for _logl declaration" >&5
19703   if test x${glibcpp_cv_func__logl_use+set} != xset; then
19704     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
19705   echo $ac_n "(cached) $ac_c" 1>&6
19706 else
19707   
19708       
19709       ac_ext=C
19710 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19711 ac_cpp='$CXXCPP $CPPFLAGS'
19712 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19713 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19714 cross_compiling=$ac_cv_prog_cxx_cross
19715
19716       cat > conftest.$ac_ext <<EOF
19717 #line 19718 "configure"
19718 #include "confdefs.h"
19719 #include <math.h>
19720                       #ifdef HAVE_IEEEFP_H
19721                       #include <ieeefp.h>
19722                       #endif
19723                      
19724 int main() {
19725  _logl(0);
19726 ; return 0; }
19727 EOF
19728 if { (eval echo configure:19729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19729   rm -rf conftest*
19730   glibcpp_cv_func__logl_use=yes
19731 else
19732   echo "configure: failed program was:" >&5
19733   cat conftest.$ac_ext >&5
19734   rm -rf conftest*
19735   glibcpp_cv_func__logl_use=no
19736 fi
19737 rm -f conftest*
19738       ac_ext=c
19739 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19740 ac_cpp='$CPP $CPPFLAGS'
19741 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19742 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19743 cross_compiling=$ac_cv_prog_cc_cross
19744
19745     
19746 fi
19747
19748   fi
19749   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
19750
19751     if test x$glibcpp_cv_func__logl_use = x"yes"; then
19752       for ac_func in _logl
19753 do
19754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19755 echo "configure:19756: checking for $ac_func" >&5
19756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19757   echo $ac_n "(cached) $ac_c" 1>&6
19758 else
19759   cat > conftest.$ac_ext <<EOF
19760 #line 19761 "configure"
19761 #include "confdefs.h"
19762 /* System header to define __stub macros and hopefully few prototypes,
19763     which can conflict with char $ac_func(); below.  */
19764 #include <assert.h>
19765 /* Override any gcc2 internal prototype to avoid an error.  */
19766 /* We use char because int might match the return type of a gcc2
19767     builtin and then its argument prototype would still apply.  */
19768 char $ac_func();
19769
19770 int main() {
19771
19772 /* The GNU C library defines this for functions which it implements
19773     to always fail with ENOSYS.  Some functions are actually named
19774     something starting with __ and the normal name is an alias.  */
19775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19776 choke me
19777 #else
19778 $ac_func();
19779 #endif
19780
19781 ; return 0; }
19782 EOF
19783 if { (eval echo configure:19784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19784   rm -rf conftest*
19785   eval "ac_cv_func_$ac_func=yes"
19786 else
19787   echo "configure: failed program was:" >&5
19788   cat conftest.$ac_ext >&5
19789   rm -rf conftest*
19790   eval "ac_cv_func_$ac_func=no"
19791 fi
19792 rm -f conftest*
19793 fi
19794
19795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19796   echo "$ac_t""yes" 1>&6
19797     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19798   cat >> confdefs.h <<EOF
19799 #define $ac_tr_func 1
19800 EOF
19801  
19802 else
19803   echo "$ac_t""no" 1>&6
19804 fi
19805 done
19806     
19807     fi
19808   fi
19809
19810   
19811   
19812   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
19813 echo "configure:19814: checking for log10l declaration" >&5
19814   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
19815     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
19816   echo $ac_n "(cached) $ac_c" 1>&6
19817 else
19818   
19819       
19820       ac_ext=C
19821 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19822 ac_cpp='$CXXCPP $CPPFLAGS'
19823 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19824 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19825 cross_compiling=$ac_cv_prog_cxx_cross
19826
19827       cat > conftest.$ac_ext <<EOF
19828 #line 19829 "configure"
19829 #include "confdefs.h"
19830 #include <math.h>
19831                       #ifdef HAVE_IEEEFP_H
19832                       #include <ieeefp.h>
19833                       #endif
19834                      
19835 int main() {
19836  log10l(0);
19837 ; return 0; }
19838 EOF
19839 if { (eval echo configure:19840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19840   rm -rf conftest*
19841   glibcpp_cv_func_log10l_use=yes
19842 else
19843   echo "configure: failed program was:" >&5
19844   cat conftest.$ac_ext >&5
19845   rm -rf conftest*
19846   glibcpp_cv_func_log10l_use=no
19847 fi
19848 rm -f conftest*
19849       ac_ext=c
19850 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19851 ac_cpp='$CPP $CPPFLAGS'
19852 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19853 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19854 cross_compiling=$ac_cv_prog_cc_cross
19855
19856     
19857 fi
19858
19859   fi
19860   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
19861
19862   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
19863     for ac_func in log10l
19864 do
19865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19866 echo "configure:19867: checking for $ac_func" >&5
19867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19868   echo $ac_n "(cached) $ac_c" 1>&6
19869 else
19870   cat > conftest.$ac_ext <<EOF
19871 #line 19872 "configure"
19872 #include "confdefs.h"
19873 /* System header to define __stub macros and hopefully few prototypes,
19874     which can conflict with char $ac_func(); below.  */
19875 #include <assert.h>
19876 /* Override any gcc2 internal prototype to avoid an error.  */
19877 /* We use char because int might match the return type of a gcc2
19878     builtin and then its argument prototype would still apply.  */
19879 char $ac_func();
19880
19881 int main() {
19882
19883 /* The GNU C library defines this for functions which it implements
19884     to always fail with ENOSYS.  Some functions are actually named
19885     something starting with __ and the normal name is an alias.  */
19886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19887 choke me
19888 #else
19889 $ac_func();
19890 #endif
19891
19892 ; return 0; }
19893 EOF
19894 if { (eval echo configure:19895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19895   rm -rf conftest*
19896   eval "ac_cv_func_$ac_func=yes"
19897 else
19898   echo "configure: failed program was:" >&5
19899   cat conftest.$ac_ext >&5
19900   rm -rf conftest*
19901   eval "ac_cv_func_$ac_func=no"
19902 fi
19903 rm -f conftest*
19904 fi
19905
19906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19907   echo "$ac_t""yes" 1>&6
19908     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19909   cat >> confdefs.h <<EOF
19910 #define $ac_tr_func 1
19911 EOF
19912  
19913 else
19914   echo "$ac_t""no" 1>&6
19915 fi
19916 done
19917     
19918   else
19919     
19920   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
19921 echo "configure:19922: checking for _log10l declaration" >&5
19922   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
19923     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
19924   echo $ac_n "(cached) $ac_c" 1>&6
19925 else
19926   
19927       
19928       ac_ext=C
19929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19930 ac_cpp='$CXXCPP $CPPFLAGS'
19931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19933 cross_compiling=$ac_cv_prog_cxx_cross
19934
19935       cat > conftest.$ac_ext <<EOF
19936 #line 19937 "configure"
19937 #include "confdefs.h"
19938 #include <math.h>
19939                       #ifdef HAVE_IEEEFP_H
19940                       #include <ieeefp.h>
19941                       #endif
19942                      
19943 int main() {
19944  _log10l(0);
19945 ; return 0; }
19946 EOF
19947 if { (eval echo configure:19948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19948   rm -rf conftest*
19949   glibcpp_cv_func__log10l_use=yes
19950 else
19951   echo "configure: failed program was:" >&5
19952   cat conftest.$ac_ext >&5
19953   rm -rf conftest*
19954   glibcpp_cv_func__log10l_use=no
19955 fi
19956 rm -f conftest*
19957       ac_ext=c
19958 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19959 ac_cpp='$CPP $CPPFLAGS'
19960 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19961 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19962 cross_compiling=$ac_cv_prog_cc_cross
19963
19964     
19965 fi
19966
19967   fi
19968   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
19969
19970     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
19971       for ac_func in _log10l
19972 do
19973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19974 echo "configure:19975: checking for $ac_func" >&5
19975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19976   echo $ac_n "(cached) $ac_c" 1>&6
19977 else
19978   cat > conftest.$ac_ext <<EOF
19979 #line 19980 "configure"
19980 #include "confdefs.h"
19981 /* System header to define __stub macros and hopefully few prototypes,
19982     which can conflict with char $ac_func(); below.  */
19983 #include <assert.h>
19984 /* Override any gcc2 internal prototype to avoid an error.  */
19985 /* We use char because int might match the return type of a gcc2
19986     builtin and then its argument prototype would still apply.  */
19987 char $ac_func();
19988
19989 int main() {
19990
19991 /* The GNU C library defines this for functions which it implements
19992     to always fail with ENOSYS.  Some functions are actually named
19993     something starting with __ and the normal name is an alias.  */
19994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19995 choke me
19996 #else
19997 $ac_func();
19998 #endif
19999
20000 ; return 0; }
20001 EOF
20002 if { (eval echo configure:20003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20003   rm -rf conftest*
20004   eval "ac_cv_func_$ac_func=yes"
20005 else
20006   echo "configure: failed program was:" >&5
20007   cat conftest.$ac_ext >&5
20008   rm -rf conftest*
20009   eval "ac_cv_func_$ac_func=no"
20010 fi
20011 rm -f conftest*
20012 fi
20013
20014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20015   echo "$ac_t""yes" 1>&6
20016     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20017   cat >> confdefs.h <<EOF
20018 #define $ac_tr_func 1
20019 EOF
20020  
20021 else
20022   echo "$ac_t""no" 1>&6
20023 fi
20024 done
20025     
20026     fi
20027   fi
20028
20029   
20030   
20031   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
20032 echo "configure:20033: checking for modfl declaration" >&5
20033   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
20034     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
20035   echo $ac_n "(cached) $ac_c" 1>&6
20036 else
20037   
20038       
20039       ac_ext=C
20040 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20041 ac_cpp='$CXXCPP $CPPFLAGS'
20042 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20043 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20044 cross_compiling=$ac_cv_prog_cxx_cross
20045
20046       cat > conftest.$ac_ext <<EOF
20047 #line 20048 "configure"
20048 #include "confdefs.h"
20049 #include <math.h>
20050 int main() {
20051  modfl(0, 0);
20052 ; return 0; }
20053 EOF
20054 if { (eval echo configure:20055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20055   rm -rf conftest*
20056   glibcpp_cv_func_modfl_use=yes
20057 else
20058   echo "configure: failed program was:" >&5
20059   cat conftest.$ac_ext >&5
20060   rm -rf conftest*
20061   glibcpp_cv_func_modfl_use=no
20062 fi
20063 rm -f conftest*
20064       ac_ext=c
20065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20066 ac_cpp='$CPP $CPPFLAGS'
20067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20069 cross_compiling=$ac_cv_prog_cc_cross
20070
20071     
20072 fi
20073
20074   fi
20075   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
20076
20077   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
20078     for ac_func in modfl
20079 do
20080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20081 echo "configure:20082: checking for $ac_func" >&5
20082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20083   echo $ac_n "(cached) $ac_c" 1>&6
20084 else
20085   cat > conftest.$ac_ext <<EOF
20086 #line 20087 "configure"
20087 #include "confdefs.h"
20088 /* System header to define __stub macros and hopefully few prototypes,
20089     which can conflict with char $ac_func(); below.  */
20090 #include <assert.h>
20091 /* Override any gcc2 internal prototype to avoid an error.  */
20092 /* We use char because int might match the return type of a gcc2
20093     builtin and then its argument prototype would still apply.  */
20094 char $ac_func();
20095
20096 int main() {
20097
20098 /* The GNU C library defines this for functions which it implements
20099     to always fail with ENOSYS.  Some functions are actually named
20100     something starting with __ and the normal name is an alias.  */
20101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20102 choke me
20103 #else
20104 $ac_func();
20105 #endif
20106
20107 ; return 0; }
20108 EOF
20109 if { (eval echo configure:20110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20110   rm -rf conftest*
20111   eval "ac_cv_func_$ac_func=yes"
20112 else
20113   echo "configure: failed program was:" >&5
20114   cat conftest.$ac_ext >&5
20115   rm -rf conftest*
20116   eval "ac_cv_func_$ac_func=no"
20117 fi
20118 rm -f conftest*
20119 fi
20120
20121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20122   echo "$ac_t""yes" 1>&6
20123     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20124   cat >> confdefs.h <<EOF
20125 #define $ac_tr_func 1
20126 EOF
20127  
20128 else
20129   echo "$ac_t""no" 1>&6
20130 fi
20131 done
20132     
20133   else
20134     
20135   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
20136 echo "configure:20137: checking for _modfl declaration" >&5
20137   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
20138     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
20139   echo $ac_n "(cached) $ac_c" 1>&6
20140 else
20141   
20142       
20143       ac_ext=C
20144 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20145 ac_cpp='$CXXCPP $CPPFLAGS'
20146 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20147 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20148 cross_compiling=$ac_cv_prog_cxx_cross
20149
20150       cat > conftest.$ac_ext <<EOF
20151 #line 20152 "configure"
20152 #include "confdefs.h"
20153 #include <math.h>
20154 int main() {
20155  _modfl(0, 0);
20156 ; return 0; }
20157 EOF
20158 if { (eval echo configure:20159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20159   rm -rf conftest*
20160   glibcpp_cv_func__modfl_use=yes
20161 else
20162   echo "configure: failed program was:" >&5
20163   cat conftest.$ac_ext >&5
20164   rm -rf conftest*
20165   glibcpp_cv_func__modfl_use=no
20166 fi
20167 rm -f conftest*
20168       ac_ext=c
20169 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20170 ac_cpp='$CPP $CPPFLAGS'
20171 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20172 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20173 cross_compiling=$ac_cv_prog_cc_cross
20174
20175     
20176 fi
20177
20178   fi
20179   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
20180
20181     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
20182       for ac_func in _modfl
20183 do
20184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20185 echo "configure:20186: checking for $ac_func" >&5
20186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20187   echo $ac_n "(cached) $ac_c" 1>&6
20188 else
20189   cat > conftest.$ac_ext <<EOF
20190 #line 20191 "configure"
20191 #include "confdefs.h"
20192 /* System header to define __stub macros and hopefully few prototypes,
20193     which can conflict with char $ac_func(); below.  */
20194 #include <assert.h>
20195 /* Override any gcc2 internal prototype to avoid an error.  */
20196 /* We use char because int might match the return type of a gcc2
20197     builtin and then its argument prototype would still apply.  */
20198 char $ac_func();
20199
20200 int main() {
20201
20202 /* The GNU C library defines this for functions which it implements
20203     to always fail with ENOSYS.  Some functions are actually named
20204     something starting with __ and the normal name is an alias.  */
20205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20206 choke me
20207 #else
20208 $ac_func();
20209 #endif
20210
20211 ; return 0; }
20212 EOF
20213 if { (eval echo configure:20214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20214   rm -rf conftest*
20215   eval "ac_cv_func_$ac_func=yes"
20216 else
20217   echo "configure: failed program was:" >&5
20218   cat conftest.$ac_ext >&5
20219   rm -rf conftest*
20220   eval "ac_cv_func_$ac_func=no"
20221 fi
20222 rm -f conftest*
20223 fi
20224
20225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20226   echo "$ac_t""yes" 1>&6
20227     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20228   cat >> confdefs.h <<EOF
20229 #define $ac_tr_func 1
20230 EOF
20231  
20232 else
20233   echo "$ac_t""no" 1>&6
20234 fi
20235 done
20236     
20237     fi
20238   fi
20239
20240   
20241   
20242   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
20243 echo "configure:20244: checking for powl declaration" >&5
20244   if test x${glibcpp_cv_func_powl_use+set} != xset; then
20245     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
20246   echo $ac_n "(cached) $ac_c" 1>&6
20247 else
20248   
20249       
20250       ac_ext=C
20251 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20252 ac_cpp='$CXXCPP $CPPFLAGS'
20253 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20254 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20255 cross_compiling=$ac_cv_prog_cxx_cross
20256
20257       cat > conftest.$ac_ext <<EOF
20258 #line 20259 "configure"
20259 #include "confdefs.h"
20260 #include <math.h>
20261 int main() {
20262  powl(0, 0);
20263 ; return 0; }
20264 EOF
20265 if { (eval echo configure:20266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20266   rm -rf conftest*
20267   glibcpp_cv_func_powl_use=yes
20268 else
20269   echo "configure: failed program was:" >&5
20270   cat conftest.$ac_ext >&5
20271   rm -rf conftest*
20272   glibcpp_cv_func_powl_use=no
20273 fi
20274 rm -f conftest*
20275       ac_ext=c
20276 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20277 ac_cpp='$CPP $CPPFLAGS'
20278 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20279 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20280 cross_compiling=$ac_cv_prog_cc_cross
20281
20282     
20283 fi
20284
20285   fi
20286   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
20287
20288   if test x$glibcpp_cv_func_powl_use = x"yes"; then
20289     for ac_func in powl
20290 do
20291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20292 echo "configure:20293: checking for $ac_func" >&5
20293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20294   echo $ac_n "(cached) $ac_c" 1>&6
20295 else
20296   cat > conftest.$ac_ext <<EOF
20297 #line 20298 "configure"
20298 #include "confdefs.h"
20299 /* System header to define __stub macros and hopefully few prototypes,
20300     which can conflict with char $ac_func(); below.  */
20301 #include <assert.h>
20302 /* Override any gcc2 internal prototype to avoid an error.  */
20303 /* We use char because int might match the return type of a gcc2
20304     builtin and then its argument prototype would still apply.  */
20305 char $ac_func();
20306
20307 int main() {
20308
20309 /* The GNU C library defines this for functions which it implements
20310     to always fail with ENOSYS.  Some functions are actually named
20311     something starting with __ and the normal name is an alias.  */
20312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20313 choke me
20314 #else
20315 $ac_func();
20316 #endif
20317
20318 ; return 0; }
20319 EOF
20320 if { (eval echo configure:20321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20321   rm -rf conftest*
20322   eval "ac_cv_func_$ac_func=yes"
20323 else
20324   echo "configure: failed program was:" >&5
20325   cat conftest.$ac_ext >&5
20326   rm -rf conftest*
20327   eval "ac_cv_func_$ac_func=no"
20328 fi
20329 rm -f conftest*
20330 fi
20331
20332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20333   echo "$ac_t""yes" 1>&6
20334     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20335   cat >> confdefs.h <<EOF
20336 #define $ac_tr_func 1
20337 EOF
20338  
20339 else
20340   echo "$ac_t""no" 1>&6
20341 fi
20342 done
20343     
20344   else
20345     
20346   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
20347 echo "configure:20348: checking for _powl declaration" >&5
20348   if test x${glibcpp_cv_func__powl_use+set} != xset; then
20349     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
20350   echo $ac_n "(cached) $ac_c" 1>&6
20351 else
20352   
20353       
20354       ac_ext=C
20355 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20356 ac_cpp='$CXXCPP $CPPFLAGS'
20357 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20358 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20359 cross_compiling=$ac_cv_prog_cxx_cross
20360
20361       cat > conftest.$ac_ext <<EOF
20362 #line 20363 "configure"
20363 #include "confdefs.h"
20364 #include <math.h>
20365 int main() {
20366  _powl(0, 0);
20367 ; return 0; }
20368 EOF
20369 if { (eval echo configure:20370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20370   rm -rf conftest*
20371   glibcpp_cv_func__powl_use=yes
20372 else
20373   echo "configure: failed program was:" >&5
20374   cat conftest.$ac_ext >&5
20375   rm -rf conftest*
20376   glibcpp_cv_func__powl_use=no
20377 fi
20378 rm -f conftest*
20379       ac_ext=c
20380 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20381 ac_cpp='$CPP $CPPFLAGS'
20382 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20383 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20384 cross_compiling=$ac_cv_prog_cc_cross
20385
20386     
20387 fi
20388
20389   fi
20390   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
20391
20392     if test x$glibcpp_cv_func__powl_use = x"yes"; then
20393       for ac_func in _powl
20394 do
20395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20396 echo "configure:20397: checking for $ac_func" >&5
20397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20398   echo $ac_n "(cached) $ac_c" 1>&6
20399 else
20400   cat > conftest.$ac_ext <<EOF
20401 #line 20402 "configure"
20402 #include "confdefs.h"
20403 /* System header to define __stub macros and hopefully few prototypes,
20404     which can conflict with char $ac_func(); below.  */
20405 #include <assert.h>
20406 /* Override any gcc2 internal prototype to avoid an error.  */
20407 /* We use char because int might match the return type of a gcc2
20408     builtin and then its argument prototype would still apply.  */
20409 char $ac_func();
20410
20411 int main() {
20412
20413 /* The GNU C library defines this for functions which it implements
20414     to always fail with ENOSYS.  Some functions are actually named
20415     something starting with __ and the normal name is an alias.  */
20416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20417 choke me
20418 #else
20419 $ac_func();
20420 #endif
20421
20422 ; return 0; }
20423 EOF
20424 if { (eval echo configure:20425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20425   rm -rf conftest*
20426   eval "ac_cv_func_$ac_func=yes"
20427 else
20428   echo "configure: failed program was:" >&5
20429   cat conftest.$ac_ext >&5
20430   rm -rf conftest*
20431   eval "ac_cv_func_$ac_func=no"
20432 fi
20433 rm -f conftest*
20434 fi
20435
20436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20437   echo "$ac_t""yes" 1>&6
20438     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20439   cat >> confdefs.h <<EOF
20440 #define $ac_tr_func 1
20441 EOF
20442  
20443 else
20444   echo "$ac_t""no" 1>&6
20445 fi
20446 done
20447     
20448     fi
20449   fi
20450
20451   
20452   
20453   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
20454 echo "configure:20455: checking for sqrtl declaration" >&5
20455   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
20456     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
20457   echo $ac_n "(cached) $ac_c" 1>&6
20458 else
20459   
20460       
20461       ac_ext=C
20462 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20463 ac_cpp='$CXXCPP $CPPFLAGS'
20464 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20465 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20466 cross_compiling=$ac_cv_prog_cxx_cross
20467
20468       cat > conftest.$ac_ext <<EOF
20469 #line 20470 "configure"
20470 #include "confdefs.h"
20471 #include <math.h>
20472                       #ifdef HAVE_IEEEFP_H
20473                       #include <ieeefp.h>
20474                       #endif
20475                      
20476 int main() {
20477  sqrtl(0);
20478 ; return 0; }
20479 EOF
20480 if { (eval echo configure:20481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20481   rm -rf conftest*
20482   glibcpp_cv_func_sqrtl_use=yes
20483 else
20484   echo "configure: failed program was:" >&5
20485   cat conftest.$ac_ext >&5
20486   rm -rf conftest*
20487   glibcpp_cv_func_sqrtl_use=no
20488 fi
20489 rm -f conftest*
20490       ac_ext=c
20491 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20492 ac_cpp='$CPP $CPPFLAGS'
20493 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20494 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20495 cross_compiling=$ac_cv_prog_cc_cross
20496
20497     
20498 fi
20499
20500   fi
20501   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
20502
20503   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
20504     for ac_func in sqrtl
20505 do
20506 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20507 echo "configure:20508: checking for $ac_func" >&5
20508 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20509   echo $ac_n "(cached) $ac_c" 1>&6
20510 else
20511   cat > conftest.$ac_ext <<EOF
20512 #line 20513 "configure"
20513 #include "confdefs.h"
20514 /* System header to define __stub macros and hopefully few prototypes,
20515     which can conflict with char $ac_func(); below.  */
20516 #include <assert.h>
20517 /* Override any gcc2 internal prototype to avoid an error.  */
20518 /* We use char because int might match the return type of a gcc2
20519     builtin and then its argument prototype would still apply.  */
20520 char $ac_func();
20521
20522 int main() {
20523
20524 /* The GNU C library defines this for functions which it implements
20525     to always fail with ENOSYS.  Some functions are actually named
20526     something starting with __ and the normal name is an alias.  */
20527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20528 choke me
20529 #else
20530 $ac_func();
20531 #endif
20532
20533 ; return 0; }
20534 EOF
20535 if { (eval echo configure:20536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20536   rm -rf conftest*
20537   eval "ac_cv_func_$ac_func=yes"
20538 else
20539   echo "configure: failed program was:" >&5
20540   cat conftest.$ac_ext >&5
20541   rm -rf conftest*
20542   eval "ac_cv_func_$ac_func=no"
20543 fi
20544 rm -f conftest*
20545 fi
20546
20547 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20548   echo "$ac_t""yes" 1>&6
20549     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20550   cat >> confdefs.h <<EOF
20551 #define $ac_tr_func 1
20552 EOF
20553  
20554 else
20555   echo "$ac_t""no" 1>&6
20556 fi
20557 done
20558     
20559   else
20560     
20561   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
20562 echo "configure:20563: checking for _sqrtl declaration" >&5
20563   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
20564     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
20565   echo $ac_n "(cached) $ac_c" 1>&6
20566 else
20567   
20568       
20569       ac_ext=C
20570 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20571 ac_cpp='$CXXCPP $CPPFLAGS'
20572 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20573 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20574 cross_compiling=$ac_cv_prog_cxx_cross
20575
20576       cat > conftest.$ac_ext <<EOF
20577 #line 20578 "configure"
20578 #include "confdefs.h"
20579 #include <math.h>
20580                       #ifdef HAVE_IEEEFP_H
20581                       #include <ieeefp.h>
20582                       #endif
20583                      
20584 int main() {
20585  _sqrtl(0);
20586 ; return 0; }
20587 EOF
20588 if { (eval echo configure:20589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20589   rm -rf conftest*
20590   glibcpp_cv_func__sqrtl_use=yes
20591 else
20592   echo "configure: failed program was:" >&5
20593   cat conftest.$ac_ext >&5
20594   rm -rf conftest*
20595   glibcpp_cv_func__sqrtl_use=no
20596 fi
20597 rm -f conftest*
20598       ac_ext=c
20599 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20600 ac_cpp='$CPP $CPPFLAGS'
20601 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20602 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20603 cross_compiling=$ac_cv_prog_cc_cross
20604
20605     
20606 fi
20607
20608   fi
20609   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
20610
20611     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
20612       for ac_func in _sqrtl
20613 do
20614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20615 echo "configure:20616: checking for $ac_func" >&5
20616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20617   echo $ac_n "(cached) $ac_c" 1>&6
20618 else
20619   cat > conftest.$ac_ext <<EOF
20620 #line 20621 "configure"
20621 #include "confdefs.h"
20622 /* System header to define __stub macros and hopefully few prototypes,
20623     which can conflict with char $ac_func(); below.  */
20624 #include <assert.h>
20625 /* Override any gcc2 internal prototype to avoid an error.  */
20626 /* We use char because int might match the return type of a gcc2
20627     builtin and then its argument prototype would still apply.  */
20628 char $ac_func();
20629
20630 int main() {
20631
20632 /* The GNU C library defines this for functions which it implements
20633     to always fail with ENOSYS.  Some functions are actually named
20634     something starting with __ and the normal name is an alias.  */
20635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20636 choke me
20637 #else
20638 $ac_func();
20639 #endif
20640
20641 ; return 0; }
20642 EOF
20643 if { (eval echo configure:20644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20644   rm -rf conftest*
20645   eval "ac_cv_func_$ac_func=yes"
20646 else
20647   echo "configure: failed program was:" >&5
20648   cat conftest.$ac_ext >&5
20649   rm -rf conftest*
20650   eval "ac_cv_func_$ac_func=no"
20651 fi
20652 rm -f conftest*
20653 fi
20654
20655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20656   echo "$ac_t""yes" 1>&6
20657     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20658   cat >> confdefs.h <<EOF
20659 #define $ac_tr_func 1
20660 EOF
20661  
20662 else
20663   echo "$ac_t""no" 1>&6
20664 fi
20665 done
20666     
20667     fi
20668   fi
20669
20670   
20671   
20672   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
20673 echo "configure:20674: checking for sincosl declaration" >&5
20674   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
20675     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
20676   echo $ac_n "(cached) $ac_c" 1>&6
20677 else
20678   
20679       
20680       ac_ext=C
20681 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20682 ac_cpp='$CXXCPP $CPPFLAGS'
20683 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20684 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20685 cross_compiling=$ac_cv_prog_cxx_cross
20686
20687       cat > conftest.$ac_ext <<EOF
20688 #line 20689 "configure"
20689 #include "confdefs.h"
20690 #include <math.h>
20691 int main() {
20692  sincosl(0, 0, 0);
20693 ; return 0; }
20694 EOF
20695 if { (eval echo configure:20696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20696   rm -rf conftest*
20697   glibcpp_cv_func_sincosl_use=yes
20698 else
20699   echo "configure: failed program was:" >&5
20700   cat conftest.$ac_ext >&5
20701   rm -rf conftest*
20702   glibcpp_cv_func_sincosl_use=no
20703 fi
20704 rm -f conftest*
20705       ac_ext=c
20706 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20707 ac_cpp='$CPP $CPPFLAGS'
20708 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20709 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20710 cross_compiling=$ac_cv_prog_cc_cross
20711
20712     
20713 fi
20714
20715   fi
20716   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
20717
20718   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
20719     for ac_func in sincosl
20720 do
20721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20722 echo "configure:20723: checking for $ac_func" >&5
20723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20724   echo $ac_n "(cached) $ac_c" 1>&6
20725 else
20726   cat > conftest.$ac_ext <<EOF
20727 #line 20728 "configure"
20728 #include "confdefs.h"
20729 /* System header to define __stub macros and hopefully few prototypes,
20730     which can conflict with char $ac_func(); below.  */
20731 #include <assert.h>
20732 /* Override any gcc2 internal prototype to avoid an error.  */
20733 /* We use char because int might match the return type of a gcc2
20734     builtin and then its argument prototype would still apply.  */
20735 char $ac_func();
20736
20737 int main() {
20738
20739 /* The GNU C library defines this for functions which it implements
20740     to always fail with ENOSYS.  Some functions are actually named
20741     something starting with __ and the normal name is an alias.  */
20742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20743 choke me
20744 #else
20745 $ac_func();
20746 #endif
20747
20748 ; return 0; }
20749 EOF
20750 if { (eval echo configure:20751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20751   rm -rf conftest*
20752   eval "ac_cv_func_$ac_func=yes"
20753 else
20754   echo "configure: failed program was:" >&5
20755   cat conftest.$ac_ext >&5
20756   rm -rf conftest*
20757   eval "ac_cv_func_$ac_func=no"
20758 fi
20759 rm -f conftest*
20760 fi
20761
20762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20763   echo "$ac_t""yes" 1>&6
20764     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20765   cat >> confdefs.h <<EOF
20766 #define $ac_tr_func 1
20767 EOF
20768  
20769 else
20770   echo "$ac_t""no" 1>&6
20771 fi
20772 done
20773     
20774   else
20775     
20776   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
20777 echo "configure:20778: checking for _sincosl declaration" >&5
20778   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
20779     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
20780   echo $ac_n "(cached) $ac_c" 1>&6
20781 else
20782   
20783       
20784       ac_ext=C
20785 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20786 ac_cpp='$CXXCPP $CPPFLAGS'
20787 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20788 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20789 cross_compiling=$ac_cv_prog_cxx_cross
20790
20791       cat > conftest.$ac_ext <<EOF
20792 #line 20793 "configure"
20793 #include "confdefs.h"
20794 #include <math.h>
20795 int main() {
20796  _sincosl(0, 0, 0);
20797 ; return 0; }
20798 EOF
20799 if { (eval echo configure:20800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20800   rm -rf conftest*
20801   glibcpp_cv_func__sincosl_use=yes
20802 else
20803   echo "configure: failed program was:" >&5
20804   cat conftest.$ac_ext >&5
20805   rm -rf conftest*
20806   glibcpp_cv_func__sincosl_use=no
20807 fi
20808 rm -f conftest*
20809       ac_ext=c
20810 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20811 ac_cpp='$CPP $CPPFLAGS'
20812 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20813 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20814 cross_compiling=$ac_cv_prog_cc_cross
20815
20816     
20817 fi
20818
20819   fi
20820   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
20821
20822     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
20823       for ac_func in _sincosl
20824 do
20825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20826 echo "configure:20827: checking for $ac_func" >&5
20827 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20828   echo $ac_n "(cached) $ac_c" 1>&6
20829 else
20830   cat > conftest.$ac_ext <<EOF
20831 #line 20832 "configure"
20832 #include "confdefs.h"
20833 /* System header to define __stub macros and hopefully few prototypes,
20834     which can conflict with char $ac_func(); below.  */
20835 #include <assert.h>
20836 /* Override any gcc2 internal prototype to avoid an error.  */
20837 /* We use char because int might match the return type of a gcc2
20838     builtin and then its argument prototype would still apply.  */
20839 char $ac_func();
20840
20841 int main() {
20842
20843 /* The GNU C library defines this for functions which it implements
20844     to always fail with ENOSYS.  Some functions are actually named
20845     something starting with __ and the normal name is an alias.  */
20846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20847 choke me
20848 #else
20849 $ac_func();
20850 #endif
20851
20852 ; return 0; }
20853 EOF
20854 if { (eval echo configure:20855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20855   rm -rf conftest*
20856   eval "ac_cv_func_$ac_func=yes"
20857 else
20858   echo "configure: failed program was:" >&5
20859   cat conftest.$ac_ext >&5
20860   rm -rf conftest*
20861   eval "ac_cv_func_$ac_func=no"
20862 fi
20863 rm -f conftest*
20864 fi
20865
20866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20867   echo "$ac_t""yes" 1>&6
20868     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20869   cat >> confdefs.h <<EOF
20870 #define $ac_tr_func 1
20871 EOF
20872  
20873 else
20874   echo "$ac_t""no" 1>&6
20875 fi
20876 done
20877     
20878     fi
20879   fi
20880
20881   
20882   
20883   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
20884 echo "configure:20885: checking for finitel declaration" >&5
20885   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
20886     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
20887   echo $ac_n "(cached) $ac_c" 1>&6
20888 else
20889   
20890       
20891       ac_ext=C
20892 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20893 ac_cpp='$CXXCPP $CPPFLAGS'
20894 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20895 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20896 cross_compiling=$ac_cv_prog_cxx_cross
20897
20898       cat > conftest.$ac_ext <<EOF
20899 #line 20900 "configure"
20900 #include "confdefs.h"
20901 #include <math.h>
20902                       #ifdef HAVE_IEEEFP_H
20903                       #include <ieeefp.h>
20904                       #endif
20905                      
20906 int main() {
20907  finitel(0);
20908 ; return 0; }
20909 EOF
20910 if { (eval echo configure:20911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20911   rm -rf conftest*
20912   glibcpp_cv_func_finitel_use=yes
20913 else
20914   echo "configure: failed program was:" >&5
20915   cat conftest.$ac_ext >&5
20916   rm -rf conftest*
20917   glibcpp_cv_func_finitel_use=no
20918 fi
20919 rm -f conftest*
20920       ac_ext=c
20921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20922 ac_cpp='$CPP $CPPFLAGS'
20923 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20924 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20925 cross_compiling=$ac_cv_prog_cc_cross
20926
20927     
20928 fi
20929
20930   fi
20931   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
20932
20933   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
20934     for ac_func in finitel
20935 do
20936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20937 echo "configure:20938: checking for $ac_func" >&5
20938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20939   echo $ac_n "(cached) $ac_c" 1>&6
20940 else
20941   cat > conftest.$ac_ext <<EOF
20942 #line 20943 "configure"
20943 #include "confdefs.h"
20944 /* System header to define __stub macros and hopefully few prototypes,
20945     which can conflict with char $ac_func(); below.  */
20946 #include <assert.h>
20947 /* Override any gcc2 internal prototype to avoid an error.  */
20948 /* We use char because int might match the return type of a gcc2
20949     builtin and then its argument prototype would still apply.  */
20950 char $ac_func();
20951
20952 int main() {
20953
20954 /* The GNU C library defines this for functions which it implements
20955     to always fail with ENOSYS.  Some functions are actually named
20956     something starting with __ and the normal name is an alias.  */
20957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20958 choke me
20959 #else
20960 $ac_func();
20961 #endif
20962
20963 ; return 0; }
20964 EOF
20965 if { (eval echo configure:20966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20966   rm -rf conftest*
20967   eval "ac_cv_func_$ac_func=yes"
20968 else
20969   echo "configure: failed program was:" >&5
20970   cat conftest.$ac_ext >&5
20971   rm -rf conftest*
20972   eval "ac_cv_func_$ac_func=no"
20973 fi
20974 rm -f conftest*
20975 fi
20976
20977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20978   echo "$ac_t""yes" 1>&6
20979     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20980   cat >> confdefs.h <<EOF
20981 #define $ac_tr_func 1
20982 EOF
20983  
20984 else
20985   echo "$ac_t""no" 1>&6
20986 fi
20987 done
20988     
20989   else
20990     
20991   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
20992 echo "configure:20993: checking for _finitel declaration" >&5
20993   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
20994     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
20995   echo $ac_n "(cached) $ac_c" 1>&6
20996 else
20997   
20998       
20999       ac_ext=C
21000 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21001 ac_cpp='$CXXCPP $CPPFLAGS'
21002 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21003 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21004 cross_compiling=$ac_cv_prog_cxx_cross
21005
21006       cat > conftest.$ac_ext <<EOF
21007 #line 21008 "configure"
21008 #include "confdefs.h"
21009 #include <math.h>
21010                       #ifdef HAVE_IEEEFP_H
21011                       #include <ieeefp.h>
21012                       #endif
21013                      
21014 int main() {
21015  _finitel(0);
21016 ; return 0; }
21017 EOF
21018 if { (eval echo configure:21019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21019   rm -rf conftest*
21020   glibcpp_cv_func__finitel_use=yes
21021 else
21022   echo "configure: failed program was:" >&5
21023   cat conftest.$ac_ext >&5
21024   rm -rf conftest*
21025   glibcpp_cv_func__finitel_use=no
21026 fi
21027 rm -f conftest*
21028       ac_ext=c
21029 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21030 ac_cpp='$CPP $CPPFLAGS'
21031 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21032 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21033 cross_compiling=$ac_cv_prog_cc_cross
21034
21035     
21036 fi
21037
21038   fi
21039   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
21040
21041     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
21042       for ac_func in _finitel
21043 do
21044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21045 echo "configure:21046: checking for $ac_func" >&5
21046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21047   echo $ac_n "(cached) $ac_c" 1>&6
21048 else
21049   cat > conftest.$ac_ext <<EOF
21050 #line 21051 "configure"
21051 #include "confdefs.h"
21052 /* System header to define __stub macros and hopefully few prototypes,
21053     which can conflict with char $ac_func(); below.  */
21054 #include <assert.h>
21055 /* Override any gcc2 internal prototype to avoid an error.  */
21056 /* We use char because int might match the return type of a gcc2
21057     builtin and then its argument prototype would still apply.  */
21058 char $ac_func();
21059
21060 int main() {
21061
21062 /* The GNU C library defines this for functions which it implements
21063     to always fail with ENOSYS.  Some functions are actually named
21064     something starting with __ and the normal name is an alias.  */
21065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21066 choke me
21067 #else
21068 $ac_func();
21069 #endif
21070
21071 ; return 0; }
21072 EOF
21073 if { (eval echo configure:21074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21074   rm -rf conftest*
21075   eval "ac_cv_func_$ac_func=yes"
21076 else
21077   echo "configure: failed program was:" >&5
21078   cat conftest.$ac_ext >&5
21079   rm -rf conftest*
21080   eval "ac_cv_func_$ac_func=no"
21081 fi
21082 rm -f conftest*
21083 fi
21084
21085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21086   echo "$ac_t""yes" 1>&6
21087     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21088   cat >> confdefs.h <<EOF
21089 #define $ac_tr_func 1
21090 EOF
21091  
21092 else
21093   echo "$ac_t""no" 1>&6
21094 fi
21095 done
21096     
21097     fi
21098   fi
21099
21100
21101         
21102     
21103   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
21104 echo "configure:21105: checking for _float trig functions" >&5
21105   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
21106   echo $ac_n "(cached) $ac_c" 1>&6
21107 else
21108   
21109     
21110     ac_ext=C
21111 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21112 ac_cpp='$CXXCPP $CPPFLAGS'
21113 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21114 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21115 cross_compiling=$ac_cv_prog_cxx_cross
21116
21117     cat > conftest.$ac_ext <<EOF
21118 #line 21119 "configure"
21119 #include "confdefs.h"
21120 #include <math.h>
21121 int main() {
21122  `for x in _acosf _asinf _atanf \
21123                                           _cosf _sinf _tanf \
21124                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
21125 ; return 0; }
21126 EOF
21127 if { (eval echo configure:21128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21128   rm -rf conftest*
21129   glibcpp_cv_func__float_trig_use=yes
21130 else
21131   echo "configure: failed program was:" >&5
21132   cat conftest.$ac_ext >&5
21133   rm -rf conftest*
21134   glibcpp_cv_func__float_trig_use=no
21135 fi
21136 rm -f conftest*
21137     ac_ext=c
21138 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21139 ac_cpp='$CPP $CPPFLAGS'
21140 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21141 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21142 cross_compiling=$ac_cv_prog_cc_cross
21143
21144 fi
21145
21146   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
21147   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
21148     for ac_func in _acosf _asinf _atanf \
21149                                           _cosf _sinf _tanf \
21150                                           _coshf _sinhf _tanhf
21151 do
21152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21153 echo "configure:21154: checking for $ac_func" >&5
21154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21155   echo $ac_n "(cached) $ac_c" 1>&6
21156 else
21157   cat > conftest.$ac_ext <<EOF
21158 #line 21159 "configure"
21159 #include "confdefs.h"
21160 /* System header to define __stub macros and hopefully few prototypes,
21161     which can conflict with char $ac_func(); below.  */
21162 #include <assert.h>
21163 /* Override any gcc2 internal prototype to avoid an error.  */
21164 /* We use char because int might match the return type of a gcc2
21165     builtin and then its argument prototype would still apply.  */
21166 char $ac_func();
21167
21168 int main() {
21169
21170 /* The GNU C library defines this for functions which it implements
21171     to always fail with ENOSYS.  Some functions are actually named
21172     something starting with __ and the normal name is an alias.  */
21173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21174 choke me
21175 #else
21176 $ac_func();
21177 #endif
21178
21179 ; return 0; }
21180 EOF
21181 if { (eval echo configure:21182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21182   rm -rf conftest*
21183   eval "ac_cv_func_$ac_func=yes"
21184 else
21185   echo "configure: failed program was:" >&5
21186   cat conftest.$ac_ext >&5
21187   rm -rf conftest*
21188   eval "ac_cv_func_$ac_func=no"
21189 fi
21190 rm -f conftest*
21191 fi
21192
21193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21194   echo "$ac_t""yes" 1>&6
21195     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21196   cat >> confdefs.h <<EOF
21197 #define $ac_tr_func 1
21198 EOF
21199  
21200 else
21201   echo "$ac_t""no" 1>&6
21202 fi
21203 done
21204
21205   fi
21206
21207   
21208   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
21209 echo "configure:21210: checking for _float round functions" >&5
21210   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
21211   echo $ac_n "(cached) $ac_c" 1>&6
21212 else
21213   
21214     
21215     ac_ext=C
21216 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21217 ac_cpp='$CXXCPP $CPPFLAGS'
21218 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21219 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21220 cross_compiling=$ac_cv_prog_cxx_cross
21221
21222     cat > conftest.$ac_ext <<EOF
21223 #line 21224 "configure"
21224 #include "confdefs.h"
21225 #include <math.h>
21226 int main() {
21227  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
21228 ; return 0; }
21229 EOF
21230 if { (eval echo configure:21231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21231   rm -rf conftest*
21232   glibcpp_cv_func__float_round_use=yes
21233 else
21234   echo "configure: failed program was:" >&5
21235   cat conftest.$ac_ext >&5
21236   rm -rf conftest*
21237   glibcpp_cv_func__float_round_use=no
21238 fi
21239 rm -f conftest*
21240     ac_ext=c
21241 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21242 ac_cpp='$CPP $CPPFLAGS'
21243 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21244 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21245 cross_compiling=$ac_cv_prog_cc_cross
21246
21247 fi
21248
21249   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
21250   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
21251     for ac_func in _ceilf _floorf
21252 do
21253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21254 echo "configure:21255: checking for $ac_func" >&5
21255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21256   echo $ac_n "(cached) $ac_c" 1>&6
21257 else
21258   cat > conftest.$ac_ext <<EOF
21259 #line 21260 "configure"
21260 #include "confdefs.h"
21261 /* System header to define __stub macros and hopefully few prototypes,
21262     which can conflict with char $ac_func(); below.  */
21263 #include <assert.h>
21264 /* Override any gcc2 internal prototype to avoid an error.  */
21265 /* We use char because int might match the return type of a gcc2
21266     builtin and then its argument prototype would still apply.  */
21267 char $ac_func();
21268
21269 int main() {
21270
21271 /* The GNU C library defines this for functions which it implements
21272     to always fail with ENOSYS.  Some functions are actually named
21273     something starting with __ and the normal name is an alias.  */
21274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21275 choke me
21276 #else
21277 $ac_func();
21278 #endif
21279
21280 ; return 0; }
21281 EOF
21282 if { (eval echo configure:21283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21283   rm -rf conftest*
21284   eval "ac_cv_func_$ac_func=yes"
21285 else
21286   echo "configure: failed program was:" >&5
21287   cat conftest.$ac_ext >&5
21288   rm -rf conftest*
21289   eval "ac_cv_func_$ac_func=no"
21290 fi
21291 rm -f conftest*
21292 fi
21293
21294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21295   echo "$ac_t""yes" 1>&6
21296     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21297   cat >> confdefs.h <<EOF
21298 #define $ac_tr_func 1
21299 EOF
21300  
21301 else
21302   echo "$ac_t""no" 1>&6
21303 fi
21304 done
21305
21306   fi
21307
21308
21309     
21310   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
21311 echo "configure:21312: checking for _long double trig functions" >&5
21312   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
21313   echo $ac_n "(cached) $ac_c" 1>&6
21314 else
21315   
21316     
21317     ac_ext=C
21318 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21319 ac_cpp='$CXXCPP $CPPFLAGS'
21320 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21321 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21322 cross_compiling=$ac_cv_prog_cxx_cross
21323
21324     cat > conftest.$ac_ext <<EOF
21325 #line 21326 "configure"
21326 #include "confdefs.h"
21327 #include <math.h>
21328 int main() {
21329  `for x in _acosl _asinl _atanl \
21330                                           _cosl _sinl _tanl \
21331                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
21332 ; return 0; }
21333 EOF
21334 if { (eval echo configure:21335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21335   rm -rf conftest*
21336   glibcpp_cv_func__long_double_trig_use=yes
21337 else
21338   echo "configure: failed program was:" >&5
21339   cat conftest.$ac_ext >&5
21340   rm -rf conftest*
21341   glibcpp_cv_func__long_double_trig_use=no
21342 fi
21343 rm -f conftest*
21344     ac_ext=c
21345 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21346 ac_cpp='$CPP $CPPFLAGS'
21347 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21348 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21349 cross_compiling=$ac_cv_prog_cc_cross
21350
21351 fi
21352
21353   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
21354   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
21355     for ac_func in _acosl _asinl _atanl \
21356                                           _cosl _sinl _tanl \
21357                                           _coshl _sinhl _tanhl
21358 do
21359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21360 echo "configure:21361: checking for $ac_func" >&5
21361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21362   echo $ac_n "(cached) $ac_c" 1>&6
21363 else
21364   cat > conftest.$ac_ext <<EOF
21365 #line 21366 "configure"
21366 #include "confdefs.h"
21367 /* System header to define __stub macros and hopefully few prototypes,
21368     which can conflict with char $ac_func(); below.  */
21369 #include <assert.h>
21370 /* Override any gcc2 internal prototype to avoid an error.  */
21371 /* We use char because int might match the return type of a gcc2
21372     builtin and then its argument prototype would still apply.  */
21373 char $ac_func();
21374
21375 int main() {
21376
21377 /* The GNU C library defines this for functions which it implements
21378     to always fail with ENOSYS.  Some functions are actually named
21379     something starting with __ and the normal name is an alias.  */
21380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21381 choke me
21382 #else
21383 $ac_func();
21384 #endif
21385
21386 ; return 0; }
21387 EOF
21388 if { (eval echo configure:21389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21389   rm -rf conftest*
21390   eval "ac_cv_func_$ac_func=yes"
21391 else
21392   echo "configure: failed program was:" >&5
21393   cat conftest.$ac_ext >&5
21394   rm -rf conftest*
21395   eval "ac_cv_func_$ac_func=no"
21396 fi
21397 rm -f conftest*
21398 fi
21399
21400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21401   echo "$ac_t""yes" 1>&6
21402     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21403   cat >> confdefs.h <<EOF
21404 #define $ac_tr_func 1
21405 EOF
21406  
21407 else
21408   echo "$ac_t""no" 1>&6
21409 fi
21410 done
21411
21412   fi
21413
21414   
21415   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
21416 echo "configure:21417: checking for _long double round functions" >&5
21417   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
21418   echo $ac_n "(cached) $ac_c" 1>&6
21419 else
21420   
21421     
21422     ac_ext=C
21423 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21424 ac_cpp='$CXXCPP $CPPFLAGS'
21425 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21426 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21427 cross_compiling=$ac_cv_prog_cxx_cross
21428
21429     cat > conftest.$ac_ext <<EOF
21430 #line 21431 "configure"
21431 #include "confdefs.h"
21432 #include <math.h>
21433 int main() {
21434  `for x in _ceill _floorl; do echo "$x (0);"; done` 
21435 ; return 0; }
21436 EOF
21437 if { (eval echo configure:21438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21438   rm -rf conftest*
21439   glibcpp_cv_func__long_double_round_use=yes
21440 else
21441   echo "configure: failed program was:" >&5
21442   cat conftest.$ac_ext >&5
21443   rm -rf conftest*
21444   glibcpp_cv_func__long_double_round_use=no
21445 fi
21446 rm -f conftest*
21447     ac_ext=c
21448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21449 ac_cpp='$CPP $CPPFLAGS'
21450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21452 cross_compiling=$ac_cv_prog_cc_cross
21453
21454 fi
21455
21456   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
21457   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
21458     for ac_func in _ceill _floorl
21459 do
21460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21461 echo "configure:21462: checking for $ac_func" >&5
21462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21463   echo $ac_n "(cached) $ac_c" 1>&6
21464 else
21465   cat > conftest.$ac_ext <<EOF
21466 #line 21467 "configure"
21467 #include "confdefs.h"
21468 /* System header to define __stub macros and hopefully few prototypes,
21469     which can conflict with char $ac_func(); below.  */
21470 #include <assert.h>
21471 /* Override any gcc2 internal prototype to avoid an error.  */
21472 /* We use char because int might match the return type of a gcc2
21473     builtin and then its argument prototype would still apply.  */
21474 char $ac_func();
21475
21476 int main() {
21477
21478 /* The GNU C library defines this for functions which it implements
21479     to always fail with ENOSYS.  Some functions are actually named
21480     something starting with __ and the normal name is an alias.  */
21481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21482 choke me
21483 #else
21484 $ac_func();
21485 #endif
21486
21487 ; return 0; }
21488 EOF
21489 if { (eval echo configure:21490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21490   rm -rf conftest*
21491   eval "ac_cv_func_$ac_func=yes"
21492 else
21493   echo "configure: failed program was:" >&5
21494   cat conftest.$ac_ext >&5
21495   rm -rf conftest*
21496   eval "ac_cv_func_$ac_func=no"
21497 fi
21498 rm -f conftest*
21499 fi
21500
21501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21502   echo "$ac_t""yes" 1>&6
21503     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21504   cat >> confdefs.h <<EOF
21505 #define $ac_tr_func 1
21506 EOF
21507  
21508 else
21509   echo "$ac_t""no" 1>&6
21510 fi
21511 done
21512
21513   fi
21514
21515
21516   LIBS="$ac_save_LIBS"
21517   CXXFLAGS="$ac_save_CXXFLAGS"
21518
21519   
21520     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21521 echo "configure:21522: checking for main in -lm" >&5
21522 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21524   echo $ac_n "(cached) $ac_c" 1>&6
21525 else
21526   ac_save_LIBS="$LIBS"
21527 LIBS="-lm  $LIBS"
21528 cat > conftest.$ac_ext <<EOF
21529 #line 21530 "configure"
21530 #include "confdefs.h"
21531
21532 int main() {
21533 main()
21534 ; return 0; }
21535 EOF
21536 if { (eval echo configure:21537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21537   rm -rf conftest*
21538   eval "ac_cv_lib_$ac_lib_var=yes"
21539 else
21540   echo "configure: failed program was:" >&5
21541   cat conftest.$ac_ext >&5
21542   rm -rf conftest*
21543   eval "ac_cv_lib_$ac_lib_var=no"
21544 fi
21545 rm -f conftest*
21546 LIBS="$ac_save_LIBS"
21547
21548 fi
21549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21550   echo "$ac_t""yes" 1>&6
21551     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21552     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21553   cat >> confdefs.h <<EOF
21554 #define $ac_tr_lib 1
21555 EOF
21556
21557   LIBS="-lm $LIBS"
21558
21559 else
21560   echo "$ac_t""no" 1>&6
21561 fi
21562
21563   for ac_func in nan copysignf
21564 do
21565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21566 echo "configure:21567: checking for $ac_func" >&5
21567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21568   echo $ac_n "(cached) $ac_c" 1>&6
21569 else
21570   cat > conftest.$ac_ext <<EOF
21571 #line 21572 "configure"
21572 #include "confdefs.h"
21573 /* System header to define __stub macros and hopefully few prototypes,
21574     which can conflict with char $ac_func(); below.  */
21575 #include <assert.h>
21576 /* Override any gcc2 internal prototype to avoid an error.  */
21577 /* We use char because int might match the return type of a gcc2
21578     builtin and then its argument prototype would still apply.  */
21579 char $ac_func();
21580
21581 int main() {
21582
21583 /* The GNU C library defines this for functions which it implements
21584     to always fail with ENOSYS.  Some functions are actually named
21585     something starting with __ and the normal name is an alias.  */
21586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21587 choke me
21588 #else
21589 $ac_func();
21590 #endif
21591
21592 ; return 0; }
21593 EOF
21594 if { (eval echo configure:21595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21595   rm -rf conftest*
21596   eval "ac_cv_func_$ac_func=yes"
21597 else
21598   echo "configure: failed program was:" >&5
21599   cat conftest.$ac_ext >&5
21600   rm -rf conftest*
21601   eval "ac_cv_func_$ac_func=no"
21602 fi
21603 rm -f conftest*
21604 fi
21605
21606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21607   echo "$ac_t""yes" 1>&6
21608     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21609   cat >> confdefs.h <<EOF
21610 #define $ac_tr_func 1
21611 EOF
21612  
21613 else
21614   echo "$ac_t""no" 1>&6
21615 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21616 fi
21617 done
21618
21619
21620     for ac_func in __signbit
21621 do
21622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21623 echo "configure:21624: checking for $ac_func" >&5
21624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21625   echo $ac_n "(cached) $ac_c" 1>&6
21626 else
21627   cat > conftest.$ac_ext <<EOF
21628 #line 21629 "configure"
21629 #include "confdefs.h"
21630 /* System header to define __stub macros and hopefully few prototypes,
21631     which can conflict with char $ac_func(); below.  */
21632 #include <assert.h>
21633 /* Override any gcc2 internal prototype to avoid an error.  */
21634 /* We use char because int might match the return type of a gcc2
21635     builtin and then its argument prototype would still apply.  */
21636 char $ac_func();
21637
21638 int main() {
21639
21640 /* The GNU C library defines this for functions which it implements
21641     to always fail with ENOSYS.  Some functions are actually named
21642     something starting with __ and the normal name is an alias.  */
21643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21644 choke me
21645 #else
21646 $ac_func();
21647 #endif
21648
21649 ; return 0; }
21650 EOF
21651 if { (eval echo configure:21652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21652   rm -rf conftest*
21653   eval "ac_cv_func_$ac_func=yes"
21654 else
21655   echo "configure: failed program was:" >&5
21656   cat conftest.$ac_ext >&5
21657   rm -rf conftest*
21658   eval "ac_cv_func_$ac_func=no"
21659 fi
21660 rm -f conftest*
21661 fi
21662
21663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21664   echo "$ac_t""yes" 1>&6
21665     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21666   cat >> confdefs.h <<EOF
21667 #define $ac_tr_func 1
21668 EOF
21669  
21670 else
21671   echo "$ac_t""no" 1>&6
21672 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21673 fi
21674 done
21675
21676   for ac_func in __signbitf
21677 do
21678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21679 echo "configure:21680: checking for $ac_func" >&5
21680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21681   echo $ac_n "(cached) $ac_c" 1>&6
21682 else
21683   cat > conftest.$ac_ext <<EOF
21684 #line 21685 "configure"
21685 #include "confdefs.h"
21686 /* System header to define __stub macros and hopefully few prototypes,
21687     which can conflict with char $ac_func(); below.  */
21688 #include <assert.h>
21689 /* Override any gcc2 internal prototype to avoid an error.  */
21690 /* We use char because int might match the return type of a gcc2
21691     builtin and then its argument prototype would still apply.  */
21692 char $ac_func();
21693
21694 int main() {
21695
21696 /* The GNU C library defines this for functions which it implements
21697     to always fail with ENOSYS.  Some functions are actually named
21698     something starting with __ and the normal name is an alias.  */
21699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21700 choke me
21701 #else
21702 $ac_func();
21703 #endif
21704
21705 ; return 0; }
21706 EOF
21707 if { (eval echo configure:21708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21708   rm -rf conftest*
21709   eval "ac_cv_func_$ac_func=yes"
21710 else
21711   echo "configure: failed program was:" >&5
21712   cat conftest.$ac_ext >&5
21713   rm -rf conftest*
21714   eval "ac_cv_func_$ac_func=no"
21715 fi
21716 rm -f conftest*
21717 fi
21718
21719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21720   echo "$ac_t""yes" 1>&6
21721     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21722   cat >> confdefs.h <<EOF
21723 #define $ac_tr_func 1
21724 EOF
21725  
21726 else
21727   echo "$ac_t""no" 1>&6
21728 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21729 fi
21730 done
21731
21732
21733           if test x$ac_cv_func_copysignl = x"yes"; then
21734     for ac_func in __signbitl
21735 do
21736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21737 echo "configure:21738: checking for $ac_func" >&5
21738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21739   echo $ac_n "(cached) $ac_c" 1>&6
21740 else
21741   cat > conftest.$ac_ext <<EOF
21742 #line 21743 "configure"
21743 #include "confdefs.h"
21744 /* System header to define __stub macros and hopefully few prototypes,
21745     which can conflict with char $ac_func(); below.  */
21746 #include <assert.h>
21747 /* Override any gcc2 internal prototype to avoid an error.  */
21748 /* We use char because int might match the return type of a gcc2
21749     builtin and then its argument prototype would still apply.  */
21750 char $ac_func();
21751
21752 int main() {
21753
21754 /* The GNU C library defines this for functions which it implements
21755     to always fail with ENOSYS.  Some functions are actually named
21756     something starting with __ and the normal name is an alias.  */
21757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21758 choke me
21759 #else
21760 $ac_func();
21761 #endif
21762
21763 ; return 0; }
21764 EOF
21765 if { (eval echo configure:21766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21766   rm -rf conftest*
21767   eval "ac_cv_func_$ac_func=yes"
21768 else
21769   echo "configure: failed program was:" >&5
21770   cat conftest.$ac_ext >&5
21771   rm -rf conftest*
21772   eval "ac_cv_func_$ac_func=no"
21773 fi
21774 rm -f conftest*
21775 fi
21776
21777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21778   echo "$ac_t""yes" 1>&6
21779     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21780   cat >> confdefs.h <<EOF
21781 #define $ac_tr_func 1
21782 EOF
21783  
21784 else
21785   echo "$ac_t""no" 1>&6
21786 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
21787 fi
21788 done
21789
21790   fi
21791
21792   
21793
21794   
21795
21796       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
21797 echo "configure:21798: checking for mbstate_t" >&5
21798   cat > conftest.$ac_ext <<EOF
21799 #line 21800 "configure"
21800 #include "confdefs.h"
21801 #include <wchar.h>
21802 int main() {
21803 mbstate_t teststate;
21804 ; return 0; }
21805 EOF
21806 if { (eval echo configure:21807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21807   rm -rf conftest*
21808   have_mbstate_t=yes
21809 else
21810   echo "configure: failed program was:" >&5
21811   cat conftest.$ac_ext >&5
21812   rm -rf conftest*
21813   have_mbstate_t=no
21814 fi
21815 rm -f conftest*
21816   echo "$ac_t""$have_mbstate_t" 1>&6
21817   if test x"$have_mbstate_t" = xyes; then
21818     cat >> confdefs.h <<\EOF
21819 #define HAVE_MBSTATE_T 1
21820 EOF
21821
21822   fi
21823
21824     for ac_hdr in wchar.h
21825 do
21826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21828 echo "configure:21829: checking for $ac_hdr" >&5
21829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21830   echo $ac_n "(cached) $ac_c" 1>&6
21831 else
21832   cat > conftest.$ac_ext <<EOF
21833 #line 21834 "configure"
21834 #include "confdefs.h"
21835 #include <$ac_hdr>
21836 EOF
21837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21838 { (eval echo configure:21839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21840 if test -z "$ac_err"; then
21841   rm -rf conftest*
21842   eval "ac_cv_header_$ac_safe=yes"
21843 else
21844   echo "$ac_err" >&5
21845   echo "configure: failed program was:" >&5
21846   cat conftest.$ac_ext >&5
21847   rm -rf conftest*
21848   eval "ac_cv_header_$ac_safe=no"
21849 fi
21850 rm -f conftest*
21851 fi
21852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21853   echo "$ac_t""yes" 1>&6
21854     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21855   cat >> confdefs.h <<EOF
21856 #define $ac_tr_hdr 1
21857 EOF
21858  ac_has_wchar_h=yes
21859 else
21860   echo "$ac_t""no" 1>&6
21861 ac_has_wchar_h=no
21862 fi
21863 done
21864
21865   for ac_hdr in wctype.h
21866 do
21867 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21868 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21869 echo "configure:21870: checking for $ac_hdr" >&5
21870 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21871   echo $ac_n "(cached) $ac_c" 1>&6
21872 else
21873   cat > conftest.$ac_ext <<EOF
21874 #line 21875 "configure"
21875 #include "confdefs.h"
21876 #include <$ac_hdr>
21877 EOF
21878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21879 { (eval echo configure:21880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21881 if test -z "$ac_err"; then
21882   rm -rf conftest*
21883   eval "ac_cv_header_$ac_safe=yes"
21884 else
21885   echo "$ac_err" >&5
21886   echo "configure: failed program was:" >&5
21887   cat conftest.$ac_ext >&5
21888   rm -rf conftest*
21889   eval "ac_cv_header_$ac_safe=no"
21890 fi
21891 rm -f conftest*
21892 fi
21893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21894   echo "$ac_t""yes" 1>&6
21895     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21896   cat >> confdefs.h <<EOF
21897 #define $ac_tr_hdr 1
21898 EOF
21899  ac_has_wctype_h=yes
21900 else
21901   echo "$ac_t""no" 1>&6
21902 ac_has_wctype_h=no
21903 fi
21904 done
21905
21906   
21907     if test x"$ac_has_wchar_h" = xyes &&
21908      test x"$ac_has_wctype_h" = xyes &&
21909      test x"$enable_c_mbchar" != xno; then
21910       
21911             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
21912 echo "configure:21913: checking for WCHAR_MIN and WCHAR_MAX" >&5
21913     cat > conftest.$ac_ext <<EOF
21914 #line 21915 "configure"
21915 #include "confdefs.h"
21916 #include <wchar.h>
21917 int main() {
21918 int i = WCHAR_MIN; int j = WCHAR_MAX;
21919 ; return 0; }
21920 EOF
21921 if { (eval echo configure:21922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21922   rm -rf conftest*
21923   has_wchar_minmax=yes
21924 else
21925   echo "configure: failed program was:" >&5
21926   cat conftest.$ac_ext >&5
21927   rm -rf conftest*
21928   has_wchar_minmax=no
21929 fi
21930 rm -f conftest*
21931     echo "$ac_t""$has_wchar_minmax" 1>&6
21932     
21933             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
21934 echo "configure:21935: checking for WEOF" >&5
21935     cat > conftest.$ac_ext <<EOF
21936 #line 21937 "configure"
21937 #include "confdefs.h"
21938
21939       #include <wchar.h>
21940       #include <stddef.h>
21941 int main() {
21942 wint_t i = WEOF;
21943 ; return 0; }
21944 EOF
21945 if { (eval echo configure:21946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21946   rm -rf conftest*
21947   has_weof=yes
21948 else
21949   echo "configure: failed program was:" >&5
21950   cat conftest.$ac_ext >&5
21951   rm -rf conftest*
21952   has_weof=no
21953 fi
21954 rm -f conftest*
21955     echo "$ac_t""$has_weof" 1>&6
21956   
21957         ac_wfuncs=yes
21958     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
21959 do
21960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21961 echo "configure:21962: checking for $ac_func" >&5
21962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21963   echo $ac_n "(cached) $ac_c" 1>&6
21964 else
21965   cat > conftest.$ac_ext <<EOF
21966 #line 21967 "configure"
21967 #include "confdefs.h"
21968 /* System header to define __stub macros and hopefully few prototypes,
21969     which can conflict with char $ac_func(); below.  */
21970 #include <assert.h>
21971 /* Override any gcc2 internal prototype to avoid an error.  */
21972 /* We use char because int might match the return type of a gcc2
21973     builtin and then its argument prototype would still apply.  */
21974 char $ac_func();
21975
21976 int main() {
21977
21978 /* The GNU C library defines this for functions which it implements
21979     to always fail with ENOSYS.  Some functions are actually named
21980     something starting with __ and the normal name is an alias.  */
21981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21982 choke me
21983 #else
21984 $ac_func();
21985 #endif
21986
21987 ; return 0; }
21988 EOF
21989 if { (eval echo configure:21990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21990   rm -rf conftest*
21991   eval "ac_cv_func_$ac_func=yes"
21992 else
21993   echo "configure: failed program was:" >&5
21994   cat conftest.$ac_ext >&5
21995   rm -rf conftest*
21996   eval "ac_cv_func_$ac_func=no"
21997 fi
21998 rm -f conftest*
21999 fi
22000
22001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22002   echo "$ac_t""yes" 1>&6
22003     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22004   cat >> confdefs.h <<EOF
22005 #define $ac_tr_func 1
22006 EOF
22007  
22008 else
22009   echo "$ac_t""no" 1>&6
22010 \
22011     ac_wfuncs=no
22012 fi
22013 done
22014
22015   
22016         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
22017     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22018     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22019     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22020     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22021     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22022 do
22023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22024 echo "configure:22025: checking for $ac_func" >&5
22025 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22026   echo $ac_n "(cached) $ac_c" 1>&6
22027 else
22028   cat > conftest.$ac_ext <<EOF
22029 #line 22030 "configure"
22030 #include "confdefs.h"
22031 /* System header to define __stub macros and hopefully few prototypes,
22032     which can conflict with char $ac_func(); below.  */
22033 #include <assert.h>
22034 /* Override any gcc2 internal prototype to avoid an error.  */
22035 /* We use char because int might match the return type of a gcc2
22036     builtin and then its argument prototype would still apply.  */
22037 char $ac_func();
22038
22039 int main() {
22040
22041 /* The GNU C library defines this for functions which it implements
22042     to always fail with ENOSYS.  Some functions are actually named
22043     something starting with __ and the normal name is an alias.  */
22044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22045 choke me
22046 #else
22047 $ac_func();
22048 #endif
22049
22050 ; return 0; }
22051 EOF
22052 if { (eval echo configure:22053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22053   rm -rf conftest*
22054   eval "ac_cv_func_$ac_func=yes"
22055 else
22056   echo "configure: failed program was:" >&5
22057   cat conftest.$ac_ext >&5
22058   rm -rf conftest*
22059   eval "ac_cv_func_$ac_func=no"
22060 fi
22061 rm -f conftest*
22062 fi
22063
22064 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22065   echo "$ac_t""yes" 1>&6
22066     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22067   cat >> confdefs.h <<EOF
22068 #define $ac_tr_func 1
22069 EOF
22070  
22071 else
22072   echo "$ac_t""no" 1>&6
22073 \
22074     ac_wfuncs=no
22075 fi
22076 done
22077
22078
22079     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22080 echo "configure:22081: checking for ISO C99 wchar_t support" >&5
22081     if test x"$has_weof" = xyes &&
22082        test x"$has_wchar_minmax" = xyes &&
22083        test x"$ac_wfuncs" = xyes; then
22084       ac_isoC99_wchar_t=yes
22085     else
22086       ac_isoC99_wchar_t=no
22087     fi
22088     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22089   
22090             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22091 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22092 echo "configure:22093: checking for iconv.h" >&5
22093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22094   echo $ac_n "(cached) $ac_c" 1>&6
22095 else
22096   cat > conftest.$ac_ext <<EOF
22097 #line 22098 "configure"
22098 #include "confdefs.h"
22099 #include <iconv.h>
22100 EOF
22101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22102 { (eval echo configure:22103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22104 if test -z "$ac_err"; then
22105   rm -rf conftest*
22106   eval "ac_cv_header_$ac_safe=yes"
22107 else
22108   echo "$ac_err" >&5
22109   echo "configure: failed program was:" >&5
22110   cat conftest.$ac_ext >&5
22111   rm -rf conftest*
22112   eval "ac_cv_header_$ac_safe=no"
22113 fi
22114 rm -f conftest*
22115 fi
22116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22117   echo "$ac_t""yes" 1>&6
22118   ac_has_iconv_h=yes
22119 else
22120   echo "$ac_t""no" 1>&6
22121 ac_has_iconv_h=no
22122 fi
22123
22124     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22125 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22126 echo "configure:22127: checking for langinfo.h" >&5
22127 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22128   echo $ac_n "(cached) $ac_c" 1>&6
22129 else
22130   cat > conftest.$ac_ext <<EOF
22131 #line 22132 "configure"
22132 #include "confdefs.h"
22133 #include <langinfo.h>
22134 EOF
22135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22136 { (eval echo configure:22137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22138 if test -z "$ac_err"; then
22139   rm -rf conftest*
22140   eval "ac_cv_header_$ac_safe=yes"
22141 else
22142   echo "$ac_err" >&5
22143   echo "configure: failed program was:" >&5
22144   cat conftest.$ac_ext >&5
22145   rm -rf conftest*
22146   eval "ac_cv_header_$ac_safe=no"
22147 fi
22148 rm -f conftest*
22149 fi
22150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22151   echo "$ac_t""yes" 1>&6
22152   ac_has_langinfo_h=yes
22153 else
22154   echo "$ac_t""no" 1>&6
22155 ac_has_langinfo_h=no
22156 fi
22157
22158
22159         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22160 echo "configure:22161: checking for iconv in -liconv" >&5
22161 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22163   echo $ac_n "(cached) $ac_c" 1>&6
22164 else
22165   ac_save_LIBS="$LIBS"
22166 LIBS="-liconv  $LIBS"
22167 cat > conftest.$ac_ext <<EOF
22168 #line 22169 "configure"
22169 #include "confdefs.h"
22170 /* Override any gcc2 internal prototype to avoid an error.  */
22171 /* We use char because int might match the return type of a gcc2
22172     builtin and then its argument prototype would still apply.  */
22173 char iconv();
22174
22175 int main() {
22176 iconv()
22177 ; return 0; }
22178 EOF
22179 if { (eval echo configure:22180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22180   rm -rf conftest*
22181   eval "ac_cv_lib_$ac_lib_var=yes"
22182 else
22183   echo "configure: failed program was:" >&5
22184   cat conftest.$ac_ext >&5
22185   rm -rf conftest*
22186   eval "ac_cv_lib_$ac_lib_var=no"
22187 fi
22188 rm -f conftest*
22189 LIBS="$ac_save_LIBS"
22190
22191 fi
22192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22193   echo "$ac_t""yes" 1>&6
22194   libiconv="-liconv"
22195 else
22196   echo "$ac_t""no" 1>&6
22197 fi
22198
22199     ac_save_LIBS="$LIBS"
22200     LIBS="$LIBS $libiconv"
22201
22202     for ac_func in iconv_open iconv_close iconv nl_langinfo
22203 do
22204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22205 echo "configure:22206: checking for $ac_func" >&5
22206 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22207   echo $ac_n "(cached) $ac_c" 1>&6
22208 else
22209   cat > conftest.$ac_ext <<EOF
22210 #line 22211 "configure"
22211 #include "confdefs.h"
22212 /* System header to define __stub macros and hopefully few prototypes,
22213     which can conflict with char $ac_func(); below.  */
22214 #include <assert.h>
22215 /* Override any gcc2 internal prototype to avoid an error.  */
22216 /* We use char because int might match the return type of a gcc2
22217     builtin and then its argument prototype would still apply.  */
22218 char $ac_func();
22219
22220 int main() {
22221
22222 /* The GNU C library defines this for functions which it implements
22223     to always fail with ENOSYS.  Some functions are actually named
22224     something starting with __ and the normal name is an alias.  */
22225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22226 choke me
22227 #else
22228 $ac_func();
22229 #endif
22230
22231 ; return 0; }
22232 EOF
22233 if { (eval echo configure:22234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22234   rm -rf conftest*
22235   eval "ac_cv_func_$ac_func=yes"
22236 else
22237   echo "configure: failed program was:" >&5
22238   cat conftest.$ac_ext >&5
22239   rm -rf conftest*
22240   eval "ac_cv_func_$ac_func=no"
22241 fi
22242 rm -f conftest*
22243 fi
22244
22245 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22246   echo "$ac_t""yes" 1>&6
22247     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22248   cat >> confdefs.h <<EOF
22249 #define $ac_tr_func 1
22250 EOF
22251  \
22252     ac_XPG2funcs=yes
22253 else
22254   echo "$ac_t""no" 1>&6
22255 ac_XPG2funcs=no
22256 fi
22257 done
22258
22259   
22260     LIBS="$ac_save_LIBS"
22261
22262     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22263 echo "configure:22264: checking for XPG2 wchar_t support" >&5
22264     if test x"$ac_has_iconv_h" = xyes &&
22265        test x"$ac_has_langinfo_h" = xyes &&
22266        test x"$ac_XPG2funcs" = xyes; then
22267       ac_XPG2_wchar_t=yes
22268     else
22269       ac_XPG2_wchar_t=no
22270     fi
22271     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22272   
22273             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22274 echo "configure:22275: checking for enabled wchar_t specializations" >&5
22275     if test x"$ac_isoC99_wchar_t" = xyes &&
22276        test x"$ac_XPG2_wchar_t" = xyes; then
22277       cat >> confdefs.h <<\EOF
22278 #define _GLIBCPP_USE_WCHAR_T 1
22279 EOF
22280
22281       echo "$ac_t"""yes"" 1>&6
22282     else
22283       echo "$ac_t"""no"" 1>&6
22284     fi
22285   else
22286         echo "configure: warning: wchar_t support disabled." 1>&2
22287   fi
22288
22289   
22290   ac_test_CXXFLAGS="${CXXFLAGS+set}"
22291   ac_save_CXXFLAGS="$CXXFLAGS"
22292   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22293
22294   
22295   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22296 echo "configure:22297: checking for strtold declaration" >&5
22297   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22298     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22299   echo $ac_n "(cached) $ac_c" 1>&6
22300 else
22301   
22302       
22303       ac_ext=C
22304 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22305 ac_cpp='$CXXCPP $CPPFLAGS'
22306 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22307 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22308 cross_compiling=$ac_cv_prog_cxx_cross
22309
22310       cat > conftest.$ac_ext <<EOF
22311 #line 22312 "configure"
22312 #include "confdefs.h"
22313 #include <stdlib.h>
22314 int main() {
22315  strtold(0, 0);
22316 ; return 0; }
22317 EOF
22318 if { (eval echo configure:22319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22319   rm -rf conftest*
22320   glibcpp_cv_func_strtold_use=yes
22321 else
22322   echo "configure: failed program was:" >&5
22323   cat conftest.$ac_ext >&5
22324   rm -rf conftest*
22325   glibcpp_cv_func_strtold_use=no
22326 fi
22327 rm -f conftest*
22328       ac_ext=c
22329 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22330 ac_cpp='$CPP $CPPFLAGS'
22331 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22332 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22333 cross_compiling=$ac_cv_prog_cc_cross
22334
22335     
22336 fi
22337
22338   fi
22339   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22340   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22341     for ac_func in strtold
22342 do
22343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22344 echo "configure:22345: checking for $ac_func" >&5
22345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22346   echo $ac_n "(cached) $ac_c" 1>&6
22347 else
22348   cat > conftest.$ac_ext <<EOF
22349 #line 22350 "configure"
22350 #include "confdefs.h"
22351 /* System header to define __stub macros and hopefully few prototypes,
22352     which can conflict with char $ac_func(); below.  */
22353 #include <assert.h>
22354 /* Override any gcc2 internal prototype to avoid an error.  */
22355 /* We use char because int might match the return type of a gcc2
22356     builtin and then its argument prototype would still apply.  */
22357 char $ac_func();
22358
22359 int main() {
22360
22361 /* The GNU C library defines this for functions which it implements
22362     to always fail with ENOSYS.  Some functions are actually named
22363     something starting with __ and the normal name is an alias.  */
22364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22365 choke me
22366 #else
22367 $ac_func();
22368 #endif
22369
22370 ; return 0; }
22371 EOF
22372 if { (eval echo configure:22373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22373   rm -rf conftest*
22374   eval "ac_cv_func_$ac_func=yes"
22375 else
22376   echo "configure: failed program was:" >&5
22377   cat conftest.$ac_ext >&5
22378   rm -rf conftest*
22379   eval "ac_cv_func_$ac_func=no"
22380 fi
22381 rm -f conftest*
22382 fi
22383
22384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22385   echo "$ac_t""yes" 1>&6
22386     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22387   cat >> confdefs.h <<EOF
22388 #define $ac_tr_func 1
22389 EOF
22390  
22391 else
22392   echo "$ac_t""no" 1>&6
22393 fi
22394 done
22395     
22396   fi
22397
22398   
22399   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22400 echo "configure:22401: checking for strtof declaration" >&5
22401   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22402     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22403   echo $ac_n "(cached) $ac_c" 1>&6
22404 else
22405   
22406       
22407       ac_ext=C
22408 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22409 ac_cpp='$CXXCPP $CPPFLAGS'
22410 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22411 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22412 cross_compiling=$ac_cv_prog_cxx_cross
22413
22414       cat > conftest.$ac_ext <<EOF
22415 #line 22416 "configure"
22416 #include "confdefs.h"
22417 #include <stdlib.h>
22418 int main() {
22419  strtof(0, 0);
22420 ; return 0; }
22421 EOF
22422 if { (eval echo configure:22423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22423   rm -rf conftest*
22424   glibcpp_cv_func_strtof_use=yes
22425 else
22426   echo "configure: failed program was:" >&5
22427   cat conftest.$ac_ext >&5
22428   rm -rf conftest*
22429   glibcpp_cv_func_strtof_use=no
22430 fi
22431 rm -f conftest*
22432       ac_ext=c
22433 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22434 ac_cpp='$CPP $CPPFLAGS'
22435 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22436 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22437 cross_compiling=$ac_cv_prog_cc_cross
22438
22439     
22440 fi
22441
22442   fi
22443   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22444   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22445     for ac_func in strtof
22446 do
22447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22448 echo "configure:22449: checking for $ac_func" >&5
22449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22450   echo $ac_n "(cached) $ac_c" 1>&6
22451 else
22452   cat > conftest.$ac_ext <<EOF
22453 #line 22454 "configure"
22454 #include "confdefs.h"
22455 /* System header to define __stub macros and hopefully few prototypes,
22456     which can conflict with char $ac_func(); below.  */
22457 #include <assert.h>
22458 /* Override any gcc2 internal prototype to avoid an error.  */
22459 /* We use char because int might match the return type of a gcc2
22460     builtin and then its argument prototype would still apply.  */
22461 char $ac_func();
22462
22463 int main() {
22464
22465 /* The GNU C library defines this for functions which it implements
22466     to always fail with ENOSYS.  Some functions are actually named
22467     something starting with __ and the normal name is an alias.  */
22468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22469 choke me
22470 #else
22471 $ac_func();
22472 #endif
22473
22474 ; return 0; }
22475 EOF
22476 if { (eval echo configure:22477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22477   rm -rf conftest*
22478   eval "ac_cv_func_$ac_func=yes"
22479 else
22480   echo "configure: failed program was:" >&5
22481   cat conftest.$ac_ext >&5
22482   rm -rf conftest*
22483   eval "ac_cv_func_$ac_func=no"
22484 fi
22485 rm -f conftest*
22486 fi
22487
22488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22489   echo "$ac_t""yes" 1>&6
22490     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22491   cat >> confdefs.h <<EOF
22492 #define $ac_tr_func 1
22493 EOF
22494  
22495 else
22496   echo "$ac_t""no" 1>&6
22497 fi
22498 done
22499     
22500   fi
22501
22502   for ac_func in drand48
22503 do
22504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22505 echo "configure:22506: checking for $ac_func" >&5
22506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22507   echo $ac_n "(cached) $ac_c" 1>&6
22508 else
22509   cat > conftest.$ac_ext <<EOF
22510 #line 22511 "configure"
22511 #include "confdefs.h"
22512 /* System header to define __stub macros and hopefully few prototypes,
22513     which can conflict with char $ac_func(); below.  */
22514 #include <assert.h>
22515 /* Override any gcc2 internal prototype to avoid an error.  */
22516 /* We use char because int might match the return type of a gcc2
22517     builtin and then its argument prototype would still apply.  */
22518 char $ac_func();
22519
22520 int main() {
22521
22522 /* The GNU C library defines this for functions which it implements
22523     to always fail with ENOSYS.  Some functions are actually named
22524     something starting with __ and the normal name is an alias.  */
22525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22526 choke me
22527 #else
22528 $ac_func();
22529 #endif
22530
22531 ; return 0; }
22532 EOF
22533 if { (eval echo configure:22534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22534   rm -rf conftest*
22535   eval "ac_cv_func_$ac_func=yes"
22536 else
22537   echo "configure: failed program was:" >&5
22538   cat conftest.$ac_ext >&5
22539   rm -rf conftest*
22540   eval "ac_cv_func_$ac_func=no"
22541 fi
22542 rm -f conftest*
22543 fi
22544
22545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22546   echo "$ac_t""yes" 1>&6
22547     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22548   cat >> confdefs.h <<EOF
22549 #define $ac_tr_func 1
22550 EOF
22551  
22552 else
22553   echo "$ac_t""no" 1>&6
22554 fi
22555 done
22556
22557
22558   CXXFLAGS="$ac_save_CXXFLAGS"
22559
22560   
22561   ac_test_CXXFLAGS="${CXXFLAGS+set}"
22562   ac_save_CXXFLAGS="$CXXFLAGS"
22563   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22564
22565   
22566   echo $ac_n "checking for isatty declaration""... $ac_c" 1>&6
22567 echo "configure:22568: checking for isatty declaration" >&5
22568   if test x${glibcpp_cv_func_isatty_use+set} != xset; then
22569     if eval "test \"`echo '$''{'glibcpp_cv_func_isatty_use'+set}'`\" = set"; then
22570   echo $ac_n "(cached) $ac_c" 1>&6
22571 else
22572   
22573       
22574       ac_ext=C
22575 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22576 ac_cpp='$CXXCPP $CPPFLAGS'
22577 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22578 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22579 cross_compiling=$ac_cv_prog_cxx_cross
22580
22581       cat > conftest.$ac_ext <<EOF
22582 #line 22583 "configure"
22583 #include "confdefs.h"
22584 #include <unistd.h>
22585 int main() {
22586  isatty(0);
22587 ; return 0; }
22588 EOF
22589 if { (eval echo configure:22590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22590   rm -rf conftest*
22591   glibcpp_cv_func_isatty_use=yes
22592 else
22593   echo "configure: failed program was:" >&5
22594   cat conftest.$ac_ext >&5
22595   rm -rf conftest*
22596   glibcpp_cv_func_isatty_use=no
22597 fi
22598 rm -f conftest*
22599       ac_ext=c
22600 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22601 ac_cpp='$CPP $CPPFLAGS'
22602 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22603 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22604 cross_compiling=$ac_cv_prog_cc_cross
22605
22606     
22607 fi
22608
22609   fi
22610   echo "$ac_t""$glibcpp_cv_func_isatty_use" 1>&6
22611   if test x$glibcpp_cv_func_isatty_use = x"yes"; then
22612     for ac_func in isatty
22613 do
22614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22615 echo "configure:22616: checking for $ac_func" >&5
22616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22617   echo $ac_n "(cached) $ac_c" 1>&6
22618 else
22619   cat > conftest.$ac_ext <<EOF
22620 #line 22621 "configure"
22621 #include "confdefs.h"
22622 /* System header to define __stub macros and hopefully few prototypes,
22623     which can conflict with char $ac_func(); below.  */
22624 #include <assert.h>
22625 /* Override any gcc2 internal prototype to avoid an error.  */
22626 /* We use char because int might match the return type of a gcc2
22627     builtin and then its argument prototype would still apply.  */
22628 char $ac_func();
22629
22630 int main() {
22631
22632 /* The GNU C library defines this for functions which it implements
22633     to always fail with ENOSYS.  Some functions are actually named
22634     something starting with __ and the normal name is an alias.  */
22635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22636 choke me
22637 #else
22638 $ac_func();
22639 #endif
22640
22641 ; return 0; }
22642 EOF
22643 if { (eval echo configure:22644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22644   rm -rf conftest*
22645   eval "ac_cv_func_$ac_func=yes"
22646 else
22647   echo "configure: failed program was:" >&5
22648   cat conftest.$ac_ext >&5
22649   rm -rf conftest*
22650   eval "ac_cv_func_$ac_func=no"
22651 fi
22652 rm -f conftest*
22653 fi
22654
22655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22656   echo "$ac_t""yes" 1>&6
22657     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22658   cat >> confdefs.h <<EOF
22659 #define $ac_tr_func 1
22660 EOF
22661  
22662 else
22663   echo "$ac_t""no" 1>&6
22664 fi
22665 done
22666     
22667   fi
22668
22669   
22670   CXXFLAGS="$ac_save_CXXFLAGS"
22671
22672   
22673   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22674 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22675 echo "configure:22676: checking for locale.h" >&5
22676 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22677   echo $ac_n "(cached) $ac_c" 1>&6
22678 else
22679   cat > conftest.$ac_ext <<EOF
22680 #line 22681 "configure"
22681 #include "confdefs.h"
22682 #include <locale.h>
22683 EOF
22684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22685 { (eval echo configure:22686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22687 if test -z "$ac_err"; then
22688   rm -rf conftest*
22689   eval "ac_cv_header_$ac_safe=yes"
22690 else
22691   echo "$ac_err" >&5
22692   echo "configure: failed program was:" >&5
22693   cat conftest.$ac_ext >&5
22694   rm -rf conftest*
22695   eval "ac_cv_header_$ac_safe=no"
22696 fi
22697 rm -f conftest*
22698 fi
22699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22700   echo "$ac_t""yes" 1>&6
22701   
22702     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
22703 echo "configure:22704: checking for LC_MESSAGES" >&5
22704 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
22705   echo $ac_n "(cached) $ac_c" 1>&6
22706 else
22707   cat > conftest.$ac_ext <<EOF
22708 #line 22709 "configure"
22709 #include "confdefs.h"
22710 #include <locale.h>
22711 int main() {
22712 return LC_MESSAGES
22713 ; return 0; }
22714 EOF
22715 if { (eval echo configure:22716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22716   rm -rf conftest*
22717   ac_cv_val_LC_MESSAGES=yes
22718 else
22719   echo "configure: failed program was:" >&5
22720   cat conftest.$ac_ext >&5
22721   rm -rf conftest*
22722   ac_cv_val_LC_MESSAGES=no
22723 fi
22724 rm -f conftest*
22725 fi
22726
22727 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
22728     if test $ac_cv_val_LC_MESSAGES = yes; then
22729       cat >> confdefs.h <<\EOF
22730 #define HAVE_LC_MESSAGES 1
22731 EOF
22732
22733     fi
22734   
22735 else
22736   echo "$ac_t""no" 1>&6
22737 fi
22738
22739
22740
22741   cat > conftest.$ac_ext <<EOF
22742 #line 22743 "configure"
22743 #include "confdefs.h"
22744
22745   #include <setjmp.h>
22746   
22747 int main() {
22748 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
22749 ; return 0; }
22750 EOF
22751 if { (eval echo configure:22752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22752   rm -rf conftest*
22753   cat >> confdefs.h <<\EOF
22754 #define HAVE_SIGSETJMP 1
22755 EOF
22756
22757   
22758 else
22759   echo "configure: failed program was:" >&5
22760   cat conftest.$ac_ext >&5
22761 fi
22762 rm -f conftest*
22763
22764   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
22765 do
22766 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22767 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22768 echo "configure:22769: checking for $ac_hdr" >&5
22769 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22770   echo $ac_n "(cached) $ac_c" 1>&6
22771 else
22772   cat > conftest.$ac_ext <<EOF
22773 #line 22774 "configure"
22774 #include "confdefs.h"
22775 #include <$ac_hdr>
22776 EOF
22777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22778 { (eval echo configure:22779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22780 if test -z "$ac_err"; then
22781   rm -rf conftest*
22782   eval "ac_cv_header_$ac_safe=yes"
22783 else
22784   echo "$ac_err" >&5
22785   echo "configure: failed program was:" >&5
22786   cat conftest.$ac_ext >&5
22787   rm -rf conftest*
22788   eval "ac_cv_header_$ac_safe=no"
22789 fi
22790 rm -f conftest*
22791 fi
22792 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22793   echo "$ac_t""yes" 1>&6
22794     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22795   cat >> confdefs.h <<EOF
22796 #define $ac_tr_hdr 1
22797 EOF
22798  
22799 else
22800   echo "$ac_t""no" 1>&6
22801 fi
22802 done
22803
22804 for ac_func in getpagesize
22805 do
22806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22807 echo "configure:22808: checking for $ac_func" >&5
22808 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22809   echo $ac_n "(cached) $ac_c" 1>&6
22810 else
22811   cat > conftest.$ac_ext <<EOF
22812 #line 22813 "configure"
22813 #include "confdefs.h"
22814 /* System header to define __stub macros and hopefully few prototypes,
22815     which can conflict with char $ac_func(); below.  */
22816 #include <assert.h>
22817 /* Override any gcc2 internal prototype to avoid an error.  */
22818 /* We use char because int might match the return type of a gcc2
22819     builtin and then its argument prototype would still apply.  */
22820 char $ac_func();
22821
22822 int main() {
22823
22824 /* The GNU C library defines this for functions which it implements
22825     to always fail with ENOSYS.  Some functions are actually named
22826     something starting with __ and the normal name is an alias.  */
22827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22828 choke me
22829 #else
22830 $ac_func();
22831 #endif
22832
22833 ; return 0; }
22834 EOF
22835 if { (eval echo configure:22836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22836   rm -rf conftest*
22837   eval "ac_cv_func_$ac_func=yes"
22838 else
22839   echo "configure: failed program was:" >&5
22840   cat conftest.$ac_ext >&5
22841   rm -rf conftest*
22842   eval "ac_cv_func_$ac_func=no"
22843 fi
22844 rm -f conftest*
22845 fi
22846
22847 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22848   echo "$ac_t""yes" 1>&6
22849     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22850   cat >> confdefs.h <<EOF
22851 #define $ac_tr_func 1
22852 EOF
22853  
22854 else
22855   echo "$ac_t""no" 1>&6
22856 fi
22857 done
22858
22859 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
22860 echo "configure:22861: checking for working mmap" >&5
22861 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
22862   echo $ac_n "(cached) $ac_c" 1>&6
22863 else
22864   if test "$cross_compiling" = yes; then
22865   ac_cv_func_mmap_fixed_mapped=no
22866 else
22867   cat > conftest.$ac_ext <<EOF
22868 #line 22869 "configure"
22869 #include "confdefs.h"
22870
22871 /* Thanks to Mike Haertel and Jim Avera for this test.
22872    Here is a matrix of mmap possibilities:
22873         mmap private not fixed
22874         mmap private fixed at somewhere currently unmapped
22875         mmap private fixed at somewhere already mapped
22876         mmap shared not fixed
22877         mmap shared fixed at somewhere currently unmapped
22878         mmap shared fixed at somewhere already mapped
22879    For private mappings, we should verify that changes cannot be read()
22880    back from the file, nor mmap's back from the file at a different
22881    address.  (There have been systems where private was not correctly
22882    implemented like the infamous i386 svr4.0, and systems where the
22883    VM page cache was not coherent with the filesystem buffer cache
22884    like early versions of FreeBSD and possibly contemporary NetBSD.)
22885    For shared mappings, we should conversely verify that changes get
22886    propogated back to all the places they're supposed to be.
22887
22888    Grep wants private fixed already mapped.
22889    The main things grep needs to know about mmap are:
22890    * does it exist and is it safe to write into the mmap'd area
22891    * how to use it (BSD variants)  */
22892 #include <sys/types.h>
22893 #include <fcntl.h>
22894 #include <sys/mman.h>
22895
22896 #if HAVE_SYS_TYPES_H
22897 # include <sys/types.h>
22898 #endif
22899
22900 #if HAVE_STDLIB_H
22901 # include <stdlib.h>
22902 #endif
22903
22904 #if HAVE_SYS_STAT_H
22905 # include <sys/stat.h>
22906 #endif
22907
22908 #if HAVE_UNISTD_H
22909 # include <unistd.h>
22910 #endif
22911
22912 /* This mess was copied from the GNU getpagesize.h.  */
22913 #ifndef HAVE_GETPAGESIZE
22914
22915 /* Assume that all systems that can run configure have sys/param.h.  */
22916 # ifndef HAVE_SYS_PARAM_H
22917 #  define HAVE_SYS_PARAM_H 1
22918 # endif
22919
22920 # ifdef _SC_PAGESIZE
22921 #  define getpagesize() sysconf(_SC_PAGESIZE)
22922 # else /* no _SC_PAGESIZE */
22923 #  ifdef HAVE_SYS_PARAM_H
22924 #   include <sys/param.h>
22925 #   ifdef EXEC_PAGESIZE
22926 #    define getpagesize() EXEC_PAGESIZE
22927 #   else /* no EXEC_PAGESIZE */
22928 #    ifdef NBPG
22929 #     define getpagesize() NBPG * CLSIZE
22930 #     ifndef CLSIZE
22931 #      define CLSIZE 1
22932 #     endif /* no CLSIZE */
22933 #    else /* no NBPG */
22934 #     ifdef NBPC
22935 #      define getpagesize() NBPC
22936 #     else /* no NBPC */
22937 #      ifdef PAGESIZE
22938 #       define getpagesize() PAGESIZE
22939 #      endif /* PAGESIZE */
22940 #     endif /* no NBPC */
22941 #    endif /* no NBPG */
22942 #   endif /* no EXEC_PAGESIZE */
22943 #  else /* no HAVE_SYS_PARAM_H */
22944 #   define getpagesize() 8192   /* punt totally */
22945 #  endif /* no HAVE_SYS_PARAM_H */
22946 # endif /* no _SC_PAGESIZE */
22947
22948 #endif /* no HAVE_GETPAGESIZE */
22949
22950 #ifdef __cplusplus
22951 extern "C" { void *malloc(unsigned); }
22952 #else
22953 char *malloc();
22954 #endif
22955
22956 int
22957 main()
22958 {
22959         char *data, *data2, *data3;
22960         int i, pagesize;
22961         int fd;
22962
22963         pagesize = getpagesize();
22964
22965         /*
22966          * First, make a file with some known garbage in it.
22967          */
22968         data = malloc(pagesize);
22969         if (!data)
22970                 exit(1);
22971         for (i = 0; i < pagesize; ++i)
22972                 *(data + i) = rand();
22973         umask(0);
22974         fd = creat("conftestmmap", 0600);
22975         if (fd < 0)
22976                 exit(1);
22977         if (write(fd, data, pagesize) != pagesize)
22978                 exit(1);
22979         close(fd);
22980
22981         /*
22982          * Next, try to mmap the file at a fixed address which
22983          * already has something else allocated at it.  If we can,
22984          * also make sure that we see the same garbage.
22985          */
22986         fd = open("conftestmmap", O_RDWR);
22987         if (fd < 0)
22988                 exit(1);
22989         data2 = malloc(2 * pagesize);
22990         if (!data2)
22991                 exit(1);
22992         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22993         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
22994             MAP_PRIVATE | MAP_FIXED, fd, 0L))
22995                 exit(1);
22996         for (i = 0; i < pagesize; ++i)
22997                 if (*(data + i) != *(data2 + i))
22998                         exit(1);
22999
23000         /*
23001          * Finally, make sure that changes to the mapped area
23002          * do not percolate back to the file as seen by read().
23003          * (This is a bug on some variants of i386 svr4.0.)
23004          */
23005         for (i = 0; i < pagesize; ++i)
23006                 *(data2 + i) = *(data2 + i) + 1;
23007         data3 = malloc(pagesize);
23008         if (!data3)
23009                 exit(1);
23010         if (read(fd, data3, pagesize) != pagesize)
23011                 exit(1);
23012         for (i = 0; i < pagesize; ++i)
23013                 if (*(data + i) != *(data3 + i))
23014                         exit(1);
23015         close(fd);
23016         unlink("conftestmmap");
23017         exit(0);
23018 }
23019
23020 EOF
23021 if { (eval echo configure:23022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23022 then
23023   ac_cv_func_mmap_fixed_mapped=yes
23024 else
23025   echo "configure: failed program was:" >&5
23026   cat conftest.$ac_ext >&5
23027   rm -fr conftest*
23028   ac_cv_func_mmap_fixed_mapped=no
23029 fi
23030 rm -fr conftest*
23031 fi
23032
23033 fi
23034
23035 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23036 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23037   cat >> confdefs.h <<\EOF
23038 #define HAVE_MMAP 1
23039 EOF
23040
23041 fi
23042
23043
23044   # Establish limits on memory usage during 'make check'
23045   
23046   
23047   setrlimit_have_headers=yes
23048   for ac_hdr in unistd.h sys/time.h sys/resource.h
23049 do
23050 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23051 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23052 echo "configure:23053: checking for $ac_hdr" >&5
23053 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23054   echo $ac_n "(cached) $ac_c" 1>&6
23055 else
23056   cat > conftest.$ac_ext <<EOF
23057 #line 23058 "configure"
23058 #include "confdefs.h"
23059 #include <$ac_hdr>
23060 EOF
23061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23062 { (eval echo configure:23063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23064 if test -z "$ac_err"; then
23065   rm -rf conftest*
23066   eval "ac_cv_header_$ac_safe=yes"
23067 else
23068   echo "$ac_err" >&5
23069   echo "configure: failed program was:" >&5
23070   cat conftest.$ac_ext >&5
23071   rm -rf conftest*
23072   eval "ac_cv_header_$ac_safe=no"
23073 fi
23074 rm -f conftest*
23075 fi
23076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23077   echo "$ac_t""yes" 1>&6
23078     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23079   cat >> confdefs.h <<EOF
23080 #define $ac_tr_hdr 1
23081 EOF
23082  
23083 else
23084   echo "$ac_t""no" 1>&6
23085 setrlimit_have_headers=no
23086 fi
23087 done
23088
23089   # If don't have the headers, then we can't run the tests now, and we
23090   # won't be seeing any of these during testsuite compilation.
23091   if test $setrlimit_have_headers = yes; then
23092     # Can't do these in a loop, else the resulting syntax is wrong.
23093     
23094   cat > conftest.$ac_ext <<EOF
23095 #line 23096 "configure"
23096 #include "confdefs.h"
23097 #include <unistd.h>
23098                   #include <sys/time.h>
23099                   #include <sys/resource.h>
23100                  
23101 int main() {
23102  int f = RLIMIT_DATA ; 
23103 ; return 0; }
23104 EOF
23105 if { (eval echo configure:23106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23106   rm -rf conftest*
23107   glibcpp_mresult=1
23108 else
23109   echo "configure: failed program was:" >&5
23110   cat conftest.$ac_ext >&5
23111   rm -rf conftest*
23112   glibcpp_mresult=0
23113 fi
23114 rm -f conftest*
23115   cat >> confdefs.h <<EOF
23116 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23117 EOF
23118
23119
23120     
23121   cat > conftest.$ac_ext <<EOF
23122 #line 23123 "configure"
23123 #include "confdefs.h"
23124 #include <unistd.h>
23125                   #include <sys/time.h>
23126                   #include <sys/resource.h>
23127                  
23128 int main() {
23129  int f = RLIMIT_RSS ; 
23130 ; return 0; }
23131 EOF
23132 if { (eval echo configure:23133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23133   rm -rf conftest*
23134   glibcpp_mresult=1
23135 else
23136   echo "configure: failed program was:" >&5
23137   cat conftest.$ac_ext >&5
23138   rm -rf conftest*
23139   glibcpp_mresult=0
23140 fi
23141 rm -f conftest*
23142   cat >> confdefs.h <<EOF
23143 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23144 EOF
23145
23146
23147     
23148   cat > conftest.$ac_ext <<EOF
23149 #line 23150 "configure"
23150 #include "confdefs.h"
23151 #include <unistd.h>
23152                   #include <sys/time.h>
23153                   #include <sys/resource.h>
23154                  
23155 int main() {
23156  int f = RLIMIT_VMEM ; 
23157 ; return 0; }
23158 EOF
23159 if { (eval echo configure:23160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23160   rm -rf conftest*
23161   glibcpp_mresult=1
23162 else
23163   echo "configure: failed program was:" >&5
23164   cat conftest.$ac_ext >&5
23165   rm -rf conftest*
23166   glibcpp_mresult=0
23167 fi
23168 rm -f conftest*
23169   cat >> confdefs.h <<EOF
23170 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23171 EOF
23172
23173
23174     
23175   cat > conftest.$ac_ext <<EOF
23176 #line 23177 "configure"
23177 #include "confdefs.h"
23178 #include <unistd.h>
23179                   #include <sys/time.h>
23180                   #include <sys/resource.h>
23181                  
23182 int main() {
23183  int f = RLIMIT_AS ; 
23184 ; return 0; }
23185 EOF
23186 if { (eval echo configure:23187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23187   rm -rf conftest*
23188   glibcpp_mresult=1
23189 else
23190   echo "configure: failed program was:" >&5
23191   cat conftest.$ac_ext >&5
23192   rm -rf conftest*
23193   glibcpp_mresult=0
23194 fi
23195 rm -f conftest*
23196   cat >> confdefs.h <<EOF
23197 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23198 EOF
23199
23200
23201
23202     # Check for rlimit, setrlimit.
23203     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23204   echo $ac_n "(cached) $ac_c" 1>&6
23205 else
23206   
23207       cat > conftest.$ac_ext <<EOF
23208 #line 23209 "configure"
23209 #include "confdefs.h"
23210 #include <unistd.h>
23211                   #include <sys/time.h>
23212                   #include <sys/resource.h>
23213                      
23214 int main() {
23215  struct rlimit r; setrlimit(0, &r);
23216 ; return 0; }
23217 EOF
23218 if { (eval echo configure:23219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23219   rm -rf conftest*
23220   ac_setrlimit=yes
23221 else
23222   echo "configure: failed program was:" >&5
23223   cat conftest.$ac_ext >&5
23224   rm -rf conftest*
23225   ac_setrlimit=no
23226 fi
23227 rm -f conftest*
23228     
23229 fi
23230
23231   fi
23232
23233   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23234 echo "configure:23235: checking for testsuite memory limit support" >&5
23235   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23236     ac_mem_limits=yes
23237     cat >> confdefs.h <<\EOF
23238 #define _GLIBCPP_MEM_LIMITS 1
23239 EOF
23240
23241   else
23242     ac_mem_limits=no
23243   fi
23244   echo "$ac_t""$ac_mem_limits" 1>&6
23245
23246
23247   # Look for setenv, so that extended locale tests can be performed.
23248   
23249   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23250 echo "configure:23251: checking for setenv declaration" >&5
23251   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23252     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23253   echo $ac_n "(cached) $ac_c" 1>&6
23254 else
23255   
23256       
23257       ac_ext=C
23258 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23259 ac_cpp='$CXXCPP $CPPFLAGS'
23260 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23261 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23262 cross_compiling=$ac_cv_prog_cxx_cross
23263
23264       cat > conftest.$ac_ext <<EOF
23265 #line 23266 "configure"
23266 #include "confdefs.h"
23267 #include <stdlib.h>
23268 int main() {
23269  setenv(0, 0, 0);
23270 ; return 0; }
23271 EOF
23272 if { (eval echo configure:23273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23273   rm -rf conftest*
23274   glibcpp_cv_func_setenv_use=yes
23275 else
23276   echo "configure: failed program was:" >&5
23277   cat conftest.$ac_ext >&5
23278   rm -rf conftest*
23279   glibcpp_cv_func_setenv_use=no
23280 fi
23281 rm -f conftest*
23282       ac_ext=c
23283 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23284 ac_cpp='$CPP $CPPFLAGS'
23285 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23286 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23287 cross_compiling=$ac_cv_prog_cc_cross
23288
23289     
23290 fi
23291
23292   fi
23293   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23294   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23295     for ac_func in setenv
23296 do
23297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23298 echo "configure:23299: checking for $ac_func" >&5
23299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23300   echo $ac_n "(cached) $ac_c" 1>&6
23301 else
23302   cat > conftest.$ac_ext <<EOF
23303 #line 23304 "configure"
23304 #include "confdefs.h"
23305 /* System header to define __stub macros and hopefully few prototypes,
23306     which can conflict with char $ac_func(); below.  */
23307 #include <assert.h>
23308 /* Override any gcc2 internal prototype to avoid an error.  */
23309 /* We use char because int might match the return type of a gcc2
23310     builtin and then its argument prototype would still apply.  */
23311 char $ac_func();
23312
23313 int main() {
23314
23315 /* The GNU C library defines this for functions which it implements
23316     to always fail with ENOSYS.  Some functions are actually named
23317     something starting with __ and the normal name is an alias.  */
23318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23319 choke me
23320 #else
23321 $ac_func();
23322 #endif
23323
23324 ; return 0; }
23325 EOF
23326 if { (eval echo configure:23327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23327   rm -rf conftest*
23328   eval "ac_cv_func_$ac_func=yes"
23329 else
23330   echo "configure: failed program was:" >&5
23331   cat conftest.$ac_ext >&5
23332   rm -rf conftest*
23333   eval "ac_cv_func_$ac_func=no"
23334 fi
23335 rm -f conftest*
23336 fi
23337
23338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23339   echo "$ac_t""yes" 1>&6
23340     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23341   cat >> confdefs.h <<EOF
23342 #define $ac_tr_func 1
23343 EOF
23344  
23345 else
23346   echo "$ac_t""no" 1>&6
23347 fi
23348 done
23349     
23350   fi
23351
23352
23353   # Export file names for ABI checking.
23354   baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
23355   
23356
23357   # Don't do ABI checking unless native.
23358   
23359
23360 if test x"$build" = x"$host" && test -z "$with_cross_host"; then
23361   GLIBCPP_BUILD_ABI_CHECK_TRUE=
23362   GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
23363 else
23364   GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
23365   GLIBCPP_BUILD_ABI_CHECK_FALSE=
23366 fi
23367
23368 fi
23369
23370 # This depends on the possibly-skipped linker test above.
23371 # Check whether --enable-symvers or --disable-symvers was given.
23372 if test "${enable_symvers+set}" = set; then
23373   enableval="$enable_symvers"
23374   case "$enableval" in
23375  yes) enable_symvers=yes ;;
23376  no)  enable_symvers=no ;;
23377  # other names here, just as sanity checks
23378  #gnu|sun|etcetera) enable_symvers=$enableval ;;
23379  gnu) enable_symvers=$enableval ;;
23380  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23381  esac
23382 else
23383   enable_symvers=yes
23384 fi
23385
23386 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23387 # don't know enough about $LD to do tricks... 
23388 if test x$enable_shared = xno || 
23389         test "x$LD" = x || 
23390         test x$glibcpp_gnu_ld_version = x; then
23391   enable_symvers=no
23392 fi
23393
23394 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23395 if test $enable_symvers != no; then
23396   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23397 echo "configure:23398: checking for shared libgcc" >&5
23398   ac_save_CFLAGS="$CFLAGS"
23399   CFLAGS=' -lgcc_s'
23400   cat > conftest.$ac_ext <<EOF
23401 #line 23402 "configure"
23402 #include "confdefs.h"
23403
23404 int main() {
23405 return 0
23406 ; return 0; }
23407 EOF
23408 if { (eval echo configure:23409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23409   rm -rf conftest*
23410   glibcpp_shared_libgcc=yes
23411 else
23412   echo "configure: failed program was:" >&5
23413   cat conftest.$ac_ext >&5
23414   rm -rf conftest*
23415   glibcpp_shared_libgcc=no
23416 fi
23417 rm -f conftest*
23418   CFLAGS="$ac_save_CFLAGS"
23419   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23420 fi
23421
23422 # For GNU ld, we need at least this version.  It's 2.12 in the same format
23423 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
23424 glibcpp_min_gnu_ld_version=21200
23425
23426 # Check to see if unspecified "yes" value can win, given results
23427 # above.  
23428 if test $enable_symvers = yes ; then
23429   if test $with_gnu_ld = yes &&
23430     test $glibcpp_shared_libgcc = yes ;
23431   then
23432     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23433         enable_symvers=gnu
23434     else
23435       ac_test_CFLAGS="${CFLAGS+set}"
23436       ac_save_CFLAGS="$CFLAGS"
23437       CFLAGS='-shared -Wl,--version-script,conftest.map'
23438       enable_symvers=no
23439       
23440       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23441       
23442       cat > conftest.$ac_ext <<EOF
23443 #line 23444 "configure"
23444 #include "confdefs.h"
23445 int foo;
23446 int main() {
23447
23448 ; return 0; }
23449 EOF
23450 if { (eval echo configure:23451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23451   rm -rf conftest*
23452   enable_symvers=gnu
23453 else
23454   echo "configure: failed program was:" >&5
23455   cat conftest.$ac_ext >&5
23456 fi
23457 rm -f conftest*
23458       if test "$ac_test_CFLAGS" = set; then
23459         CFLAGS="$ac_save_CFLAGS"
23460       else
23461         # this is the suspicious part
23462         CFLAGS=''
23463       fi
23464       rm -f conftest.map
23465     fi
23466   else
23467     # just fail for now
23468     enable_symvers=no
23469   fi
23470 fi
23471
23472 case $enable_symvers in
23473   no)
23474       LINKER_MAP=config/linker-map.dummy
23475       ;;
23476   gnu)
23477       LINKER_MAP=config/linker-map.gnu
23478       cat >> confdefs.h <<\EOF
23479 #define _GLIBCPP_SYMVER 1
23480 EOF
23481         
23482       ;;
23483 esac
23484
23485
23486
23487
23488 if test $enable_symvers != no; then
23489   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23490   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23491 else
23492   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23493   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23494 fi
23495 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23496 echo "configure:23497: checking versioning on shared library symbols" >&5
23497 echo "$ac_t""$enable_symvers" 1>&6
23498
23499
23500 # Propagate the target-specific source directories through the build chain.
23501 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH 
23502 # uses it, and it only gets used in this file.)
23503 OS_INC_SRCDIR=config/${os_include_dir}
23504 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23505
23506
23507
23508 # Set up cross-compile flags
23509   
23510
23511 if test "$CANADIAN" = yes; then
23512   CANADIAN_TRUE=
23513   CANADIAN_FALSE='#'
23514 else
23515   CANADIAN_TRUE='#'
23516   CANADIAN_FALSE=
23517 fi
23518  
23519 cat > confcache <<\EOF
23520 # This file is a shell script that caches the results of configure
23521 # tests run on this system so they can be shared between configure
23522 # scripts and configure runs.  It is not useful on other systems.
23523 # If it contains results you don't want to keep, you may remove or edit it.
23524 #
23525 # By default, configure uses ./config.cache as the cache file,
23526 # creating it if it does not exist already.  You can give configure
23527 # the --cache-file=FILE option to use a different cache file; that is
23528 # what configure does when it calls configure scripts in
23529 # subdirectories, so they share the cache.
23530 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23531 # config.status only pays attention to the cache file if you give it the
23532 # --recheck option to rerun configure.
23533 #
23534 EOF
23535 # The following way of writing the cache mishandles newlines in values,
23536 # but we know of no workaround that is simple, portable, and efficient.
23537 # So, don't put newlines in cache variables' values.
23538 # Ultrix sh set writes to stderr and can't be redirected directly,
23539 # and sets the high bit in the cache file unless we assign to the vars.
23540 (set) 2>&1 |
23541   case `(ac_space=' '; set | grep ac_space) 2>&1` in
23542   *ac_space=\ *)
23543     # `set' does not quote correctly, so add quotes (double-quote substitution
23544     # turns \\\\ into \\, and sed turns \\ into \).
23545     sed -n \
23546       -e "s/'/'\\\\''/g" \
23547       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23548     ;;
23549   *)
23550     # `set' quotes correctly as required by POSIX, so do not add quotes.
23551     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23552     ;;
23553   esac >> confcache
23554 if cmp -s $cache_file confcache; then
23555   :
23556 else
23557   if test -w $cache_file; then
23558     echo "updating cache $cache_file"
23559     cat confcache > $cache_file
23560   else
23561     echo "not updating unwritable cache $cache_file"
23562   fi
23563 fi
23564 rm -f confcache
23565
23566
23567 if test "${multilib}" = "yes"; then
23568   multilib_arg="--enable-multilib"
23569 else
23570   multilib_arg=
23571 fi
23572
23573 # Export all the install information
23574
23575 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23576 # exported correctly in GLIBCPP_CONFIGURE.
23577 glibcpp_toolexecdir=no
23578 glibcpp_toolexeclibdir=no
23579 glibcpp_prefixdir=${prefix}
23580
23581 # Process the option --with-gxx-include-dir=<path to include-files directory>
23582 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23583 echo "configure:23584: checking for --with-gxx-include-dir" >&5
23584 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23585 if test "${with_gxx_include_dir+set}" = set; then
23586   withval="$with_gxx_include_dir"
23587   case "${withval}" in
23588   yes)
23589     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23590     gxx_include_dir=no
23591     ;;
23592   no)
23593     gxx_include_dir=no
23594     ;;
23595   *)
23596     gxx_include_dir=${withval}
23597     ;;
23598 esac
23599 else
23600   gxx_include_dir=no
23601 fi
23602
23603 echo "$ac_t""$gxx_include_dir" 1>&6
23604
23605 # Process the option "--enable-version-specific-runtime-libs"
23606 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23607 echo "configure:23608: checking for --enable-version-specific-runtime-libs" >&5
23608 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23609 if test "${enable_version_specific_runtime_libs+set}" = set; then
23610   enableval="$enable_version_specific_runtime_libs"
23611   case "$enableval" in
23612  yes) version_specific_libs=yes ;;
23613  no)  version_specific_libs=no ;;
23614  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23615  esac
23616 else
23617   version_specific_libs=no
23618 fi
23619 # Option set, now we can test it.
23620 echo "$ac_t""$version_specific_libs" 1>&6
23621
23622 # Default case for install directory for include files.
23623 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23624   gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23625 fi
23626
23627 # Version-specific runtime libs processing.
23628 if test $version_specific_libs = yes; then
23629   # Need the gcc compiler version to know where to install libraries
23630   # and header files if --enable-version-specific-runtime-libs option
23631   # is selected.
23632   if test x"$gxx_include_dir" = x"no"; then
23633     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23634   fi
23635   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23636   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23637 fi
23638
23639 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
23640 # Install a library built with a cross compiler in tooldir, not libdir.
23641 if test x"$glibcpp_toolexecdir" = x"no"; then 
23642   if test -n "$with_cross_host" &&
23643      test x"$with_cross_host" != x"no"; then
23644     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
23645     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
23646   else
23647     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23648     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
23649   fi
23650 fi
23651
23652 echo $ac_n "checking for install location""... $ac_c" 1>&6
23653 echo "configure:23654: checking for install location" >&5
23654 echo "$ac_t""$gxx_include_dir" 1>&6
23655
23656
23657
23658
23659
23660
23661
23662 # Export all the include and flag information to makefiles.
23663
23664   # Root level of the build directory include sources.
23665   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
23666
23667   # Passed down for canadian crosses.
23668   if test x"$CANADIAN" = xyes; then
23669     TOPLEVEL_INCLUDES='-I$(includedir)'
23670   fi
23671
23672   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23673
23674   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23675
23676   if test x"$need_libio" = xyes; then
23677     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
23678     
23679   fi
23680
23681   # Now, export this to all the little Makefiles....
23682   
23683   
23684   
23685   
23686
23687
23688   # Optimization flags that are probably a good idea for thrill-seekers. Just
23689   # uncomment the lines below and make, everything else is ready to go... 
23690   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
23691   OPTIMIZE_CXXFLAGS=
23692   
23693
23694   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
23695   
23696
23697
23698 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23699    grep "enable shared" > /dev/null; then
23700   LIBSUPCXX_PICFLAGS=-prefer-pic
23701 else
23702   LIBSUPCXX_PICFLAGS=
23703 fi
23704
23705
23706 # Generate the various Makefiles, include files, and scripts.
23707 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
23708 # and libsupc++/Makefile.am so that multilib installs will end up
23709 # installed in the correct place. To work around this not being passed
23710 # down from config-ml.in -> top_srcdir/Makefile.am ->
23711 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
23712 trap '' 1 2 15
23713 cat > confcache <<\EOF
23714 # This file is a shell script that caches the results of configure
23715 # tests run on this system so they can be shared between configure
23716 # scripts and configure runs.  It is not useful on other systems.
23717 # If it contains results you don't want to keep, you may remove or edit it.
23718 #
23719 # By default, configure uses ./config.cache as the cache file,
23720 # creating it if it does not exist already.  You can give configure
23721 # the --cache-file=FILE option to use a different cache file; that is
23722 # what configure does when it calls configure scripts in
23723 # subdirectories, so they share the cache.
23724 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23725 # config.status only pays attention to the cache file if you give it the
23726 # --recheck option to rerun configure.
23727 #
23728 EOF
23729 # The following way of writing the cache mishandles newlines in values,
23730 # but we know of no workaround that is simple, portable, and efficient.
23731 # So, don't put newlines in cache variables' values.
23732 # Ultrix sh set writes to stderr and can't be redirected directly,
23733 # and sets the high bit in the cache file unless we assign to the vars.
23734 (set) 2>&1 |
23735   case `(ac_space=' '; set | grep ac_space) 2>&1` in
23736   *ac_space=\ *)
23737     # `set' does not quote correctly, so add quotes (double-quote substitution
23738     # turns \\\\ into \\, and sed turns \\ into \).
23739     sed -n \
23740       -e "s/'/'\\\\''/g" \
23741       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23742     ;;
23743   *)
23744     # `set' quotes correctly as required by POSIX, so do not add quotes.
23745     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23746     ;;
23747   esac >> confcache
23748 if cmp -s $cache_file confcache; then
23749   :
23750 else
23751   if test -w $cache_file; then
23752     echo "updating cache $cache_file"
23753     cat confcache > $cache_file
23754   else
23755     echo "not updating unwritable cache $cache_file"
23756   fi
23757 fi
23758 rm -f confcache
23759
23760 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23761
23762 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23763 # Let make expand exec_prefix.
23764 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23765
23766 # Any assignment to VPATH causes Sun make to only execute
23767 # the first set of double-colon rules, so remove it if not needed.
23768 # If there is a colon in the path, we need to keep it.
23769 if test "x$srcdir" = x.; then
23770   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
23771 fi
23772
23773 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23774
23775 DEFS=-DHAVE_CONFIG_H
23776
23777 # Without the "./", some shells look in PATH for config.status.
23778 : ${CONFIG_STATUS=./config.status}
23779
23780 echo creating $CONFIG_STATUS
23781 rm -f $CONFIG_STATUS
23782 cat > $CONFIG_STATUS <<EOF
23783 #! /bin/sh
23784 # Generated automatically by configure.
23785 # Run this file to recreate the current configuration.
23786 # This directory was configured as follows,
23787 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23788 #
23789 # $0 $ac_configure_args
23790 #
23791 # Compiler output produced by configure, useful for debugging
23792 # configure, is in ./config.log if it exists.
23793
23794 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23795 for ac_option
23796 do
23797   case "\$ac_option" in
23798   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23799     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23800     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23801   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23802     echo "$CONFIG_STATUS generated by autoconf version 2.13"
23803     exit 0 ;;
23804   -help | --help | --hel | --he | --h)
23805     echo "\$ac_cs_usage"; exit 0 ;;
23806   *) echo "\$ac_cs_usage"; exit 1 ;;
23807   esac
23808 done
23809
23810 ac_given_srcdir=$srcdir
23811 ac_given_INSTALL="$INSTALL"
23812
23813 trap 'rm -fr `echo "Makefile \
23814     include/Makefile src/Makefile \
23815     libmath/Makefile libio/Makefile libsupc++/Makefile \
23816     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23817 EOF
23818 cat >> $CONFIG_STATUS <<EOF
23819
23820 # Protect against being on the right side of a sed subst in config.status.
23821 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23822  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23823 $ac_vpsub
23824 $extrasub
23825 s%@SHELL@%$SHELL%g
23826 s%@CFLAGS@%$CFLAGS%g
23827 s%@CPPFLAGS@%$CPPFLAGS%g
23828 s%@CXXFLAGS@%$CXXFLAGS%g
23829 s%@FFLAGS@%$FFLAGS%g
23830 s%@DEFS@%$DEFS%g
23831 s%@LDFLAGS@%$LDFLAGS%g
23832 s%@LIBS@%$LIBS%g
23833 s%@exec_prefix@%$exec_prefix%g
23834 s%@prefix@%$prefix%g
23835 s%@program_transform_name@%$program_transform_name%g
23836 s%@bindir@%$bindir%g
23837 s%@sbindir@%$sbindir%g
23838 s%@libexecdir@%$libexecdir%g
23839 s%@datadir@%$datadir%g
23840 s%@sysconfdir@%$sysconfdir%g
23841 s%@sharedstatedir@%$sharedstatedir%g
23842 s%@localstatedir@%$localstatedir%g
23843 s%@libdir@%$libdir%g
23844 s%@includedir@%$includedir%g
23845 s%@oldincludedir@%$oldincludedir%g
23846 s%@infodir@%$infodir%g
23847 s%@mandir@%$mandir%g
23848 s%@PACKAGE@%$PACKAGE%g
23849 s%@libtool_VERSION@%$libtool_VERSION%g
23850 s%@toplevel_srcdir@%$toplevel_srcdir%g
23851 s%@host@%$host%g
23852 s%@host_alias@%$host_alias%g
23853 s%@host_cpu@%$host_cpu%g
23854 s%@host_vendor@%$host_vendor%g
23855 s%@host_os@%$host_os%g
23856 s%@target@%$target%g
23857 s%@target_alias@%$target_alias%g
23858 s%@target_cpu@%$target_cpu%g
23859 s%@target_vendor@%$target_vendor%g
23860 s%@target_os@%$target_os%g
23861 s%@build@%$build%g
23862 s%@build_alias@%$build_alias%g
23863 s%@build_cpu@%$build_cpu%g
23864 s%@build_vendor@%$build_vendor%g
23865 s%@build_os@%$build_os%g
23866 s%@glibcpp_builddir@%$glibcpp_builddir%g
23867 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
23868 s%@AWK@%$AWK%g
23869 s%@LN_S@%$LN_S%g
23870 s%@glibcpp_basedir@%$glibcpp_basedir%g
23871 s%@CC@%$CC%g
23872 s%@glibcpp_CXX@%$glibcpp_CXX%g
23873 s%@AS@%$AS%g
23874 s%@AR@%$AR%g
23875 s%@RANLIB@%$RANLIB%g
23876 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23877 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23878 s%@INSTALL_DATA@%$INSTALL_DATA%g
23879 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
23880 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
23881 s%@MAINT@%$MAINT%g
23882 s%@EXEEXT@%$EXEEXT%g
23883 s%@VERSION@%$VERSION%g
23884 s%@ACLOCAL@%$ACLOCAL%g
23885 s%@AUTOCONF@%$AUTOCONF%g
23886 s%@AUTOMAKE@%$AUTOMAKE%g
23887 s%@AUTOHEADER@%$AUTOHEADER%g
23888 s%@MAKEINFO@%$MAKEINFO%g
23889 s%@SET_MAKE@%$SET_MAKE%g
23890 s%@OBJEXT@%$OBJEXT%g
23891 s%@STRIP@%$STRIP%g
23892 s%@LIBTOOL@%$LIBTOOL%g
23893 s%@CXXCPP@%$CXXCPP%g
23894 s%@enable_shared@%$enable_shared%g
23895 s%@enable_static@%$enable_static%g
23896 s%@ifGNUmake@%$ifGNUmake%g
23897 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
23898 s%@CPP@%$CPP%g
23899 s%@CSTDIO_H@%$CSTDIO_H%g
23900 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
23901 s%@CCODECVT_C@%$CCODECVT_C%g
23902 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
23903 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
23904 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
23905 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
23906 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
23907 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
23908 s%@libio_la@%$libio_la%g
23909 s%@check_msgfmt@%$check_msgfmt%g
23910 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
23911 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
23912 s%@glibcpp_localedir@%$glibcpp_localedir%g
23913 s%@USE_NLS@%$USE_NLS%g
23914 s%@CLOCALE_H@%$CLOCALE_H%g
23915 s%@CCODECVT_H@%$CCODECVT_H%g
23916 s%@CMESSAGES_H@%$CMESSAGES_H%g
23917 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
23918 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
23919 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
23920 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
23921 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
23922 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
23923 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
23924 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
23925 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
23926 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
23927 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
23928 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
23929 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
23930 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
23931 s%@WERROR@%$WERROR%g
23932 s%@baseline_file@%$baseline_file%g
23933 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
23934 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
23935 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
23936 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
23937 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
23938 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
23939 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
23940 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
23941 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
23942 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
23943 s%@gxx_include_dir@%$gxx_include_dir%g
23944 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
23945 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
23946 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
23947 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
23948 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
23949 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
23950 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
23951 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
23952 s%@WARN_FLAGS@%$WARN_FLAGS%g
23953 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
23954
23955 CEOF
23956 EOF
23957
23958 cat >> $CONFIG_STATUS <<\EOF
23959
23960 # Split the substitutions into bite-sized pieces for seds with
23961 # small command number limits, like on Digital OSF/1 and HP-UX.
23962 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23963 ac_file=1 # Number of current file.
23964 ac_beg=1 # First line for current file.
23965 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23966 ac_more_lines=:
23967 ac_sed_cmds=""
23968 while $ac_more_lines; do
23969   if test $ac_beg -gt 1; then
23970     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23971   else
23972     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23973   fi
23974   if test ! -s conftest.s$ac_file; then
23975     ac_more_lines=false
23976     rm -f conftest.s$ac_file
23977   else
23978     if test -z "$ac_sed_cmds"; then
23979       ac_sed_cmds="sed -f conftest.s$ac_file"
23980     else
23981       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23982     fi
23983     ac_file=`expr $ac_file + 1`
23984     ac_beg=$ac_end
23985     ac_end=`expr $ac_end + $ac_max_sed_cmds`
23986   fi
23987 done
23988 if test -z "$ac_sed_cmds"; then
23989   ac_sed_cmds=cat
23990 fi
23991 EOF
23992
23993 cat >> $CONFIG_STATUS <<EOF
23994
23995 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
23996     include/Makefile src/Makefile \
23997     libmath/Makefile libio/Makefile libsupc++/Makefile \
23998     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
23999 EOF
24000 cat >> $CONFIG_STATUS <<\EOF
24001 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24002   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24003   case "$ac_file" in
24004   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24005        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24006   *) ac_file_in="${ac_file}.in" ;;
24007   esac
24008
24009   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24010
24011   # Remove last slash and all that follows it.  Not all systems have dirname.
24012   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24013   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24014     # The file is in a subdirectory.
24015     test ! -d "$ac_dir" && mkdir "$ac_dir"
24016     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24017     # A "../" for each directory in $ac_dir_suffix.
24018     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24019   else
24020     ac_dir_suffix= ac_dots=
24021   fi
24022
24023   case "$ac_given_srcdir" in
24024   .)  srcdir=.
24025       if test -z "$ac_dots"; then top_srcdir=.
24026       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24027   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24028   *) # Relative path.
24029     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24030     top_srcdir="$ac_dots$ac_given_srcdir" ;;
24031   esac
24032
24033   case "$ac_given_INSTALL" in
24034   [/$]*) INSTALL="$ac_given_INSTALL" ;;
24035   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24036   esac
24037
24038   echo creating "$ac_file"
24039   rm -f "$ac_file"
24040   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24041   case "$ac_file" in
24042   *Makefile*) ac_comsub="1i\\
24043 # $configure_input" ;;
24044   *) ac_comsub= ;;
24045   esac
24046
24047   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24048   sed -e "$ac_comsub
24049 s%@configure_input@%$configure_input%g
24050 s%@srcdir@%$srcdir%g
24051 s%@top_srcdir@%$top_srcdir%g
24052 s%@INSTALL@%$INSTALL%g
24053 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24054 fi; done
24055 rm -f conftest.s*
24056
24057 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24058 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24059 #
24060 # ac_d sets the value in "#define NAME VALUE" lines.
24061 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24062 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
24063 ac_dC='\3'
24064 ac_dD='%g'
24065 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24066 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24067 ac_uB='\([      ]\)%\1#\2define\3'
24068 ac_uC=' '
24069 ac_uD='\4%g'
24070 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24071 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24072 ac_eB='$%\1#\2define\3'
24073 ac_eC=' '
24074 ac_eD='%g'
24075
24076 if test "${CONFIG_HEADERS+set}" != set; then
24077 EOF
24078 cat >> $CONFIG_STATUS <<EOF
24079   CONFIG_HEADERS="config.h"
24080 EOF
24081 cat >> $CONFIG_STATUS <<\EOF
24082 fi
24083 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24084   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24085   case "$ac_file" in
24086   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24087        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24088   *) ac_file_in="${ac_file}.in" ;;
24089   esac
24090
24091   echo creating $ac_file
24092
24093   rm -f conftest.frag conftest.in conftest.out
24094   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24095   cat $ac_file_inputs > conftest.in
24096
24097 EOF
24098
24099 # Transform confdefs.h into a sed script conftest.vals that substitutes
24100 # the proper values into config.h.in to produce config.h.  And first:
24101 # Protect against being on the right side of a sed subst in config.status.
24102 # Protect against being in an unquoted here document in config.status.
24103 rm -f conftest.vals
24104 cat > conftest.hdr <<\EOF
24105 s/[\\&%]/\\&/g
24106 s%[\\$`]%\\&%g
24107 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24108 s%ac_d%ac_u%gp
24109 s%ac_u%ac_e%gp
24110 EOF
24111 sed -n -f conftest.hdr confdefs.h > conftest.vals
24112 rm -f conftest.hdr
24113
24114 # This sed command replaces #undef with comments.  This is necessary, for
24115 # example, in the case of _POSIX_SOURCE, which is predefined and required
24116 # on some systems where configure will not decide to define it.
24117 cat >> conftest.vals <<\EOF
24118 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24119 EOF
24120
24121 # Break up conftest.vals because some shells have a limit on
24122 # the size of here documents, and old seds have small limits too.
24123
24124 rm -f conftest.tail
24125 while :
24126 do
24127   ac_lines=`grep -c . conftest.vals`
24128   # grep -c gives empty output for an empty file on some AIX systems.
24129   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24130   # Write a limited-size here document to conftest.frag.
24131   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24132   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24133   echo 'CEOF
24134   sed -f conftest.frag conftest.in > conftest.out
24135   rm -f conftest.in
24136   mv conftest.out conftest.in
24137 ' >> $CONFIG_STATUS
24138   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24139   rm -f conftest.vals
24140   mv conftest.tail conftest.vals
24141 done
24142 rm -f conftest.vals
24143
24144 cat >> $CONFIG_STATUS <<\EOF
24145   rm -f conftest.frag conftest.h
24146   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
24147   cat conftest.in >> conftest.h
24148   rm -f conftest.in
24149   if cmp -s $ac_file conftest.h 2>/dev/null; then
24150     echo "$ac_file is unchanged"
24151     rm -f conftest.h
24152   else
24153     # Remove last slash and all that follows it.  Not all systems have dirname.
24154       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24155       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24156       # The file is in a subdirectory.
24157       test ! -d "$ac_dir" && mkdir "$ac_dir"
24158     fi
24159     rm -f $ac_file
24160     mv conftest.h $ac_file
24161   fi
24162 fi; done
24163
24164 EOF
24165
24166 cat >> $CONFIG_STATUS <<EOF
24167 ac_sources="$BASIC_FILE_CC $CLOCALE_CC $CCODECVT_CC $CCOLLATE_CC $CCTYPE_CC $CMESSAGES_CC $CMONEY_CC $CNUMERIC_CC $CTIME_CC $CLOCALE_INTERNAL_H $LINKER_MAP"
24168 ac_dests="src/basic_file.cc src/c++locale.cc src/codecvt_members.cc src/collate_members.cc src/ctype_members.cc src/messages_members.cc src/monetary_members.cc src/numeric_members.cc src/time_members.cc src/c++locale_internal.h src/linker.map"
24169 EOF
24170
24171 cat >> $CONFIG_STATUS <<\EOF
24172 srcdir=$ac_given_srcdir
24173 while test -n "$ac_sources"; do
24174   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
24175   set $ac_sources; ac_source=$1; shift; ac_sources=$*
24176
24177   echo "linking $srcdir/$ac_source to $ac_dest"
24178
24179   if test ! -r $srcdir/$ac_source; then
24180     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
24181   fi
24182   rm -f $ac_dest
24183
24184   # Make relative symlinks.
24185   # Remove last slash and all that follows it.  Not all systems have dirname.
24186   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
24187   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
24188     # The dest file is in a subdirectory.
24189     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
24190     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
24191     # A "../" for each directory in $ac_dest_dir_suffix.
24192     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
24193   else
24194     ac_dest_dir_suffix= ac_dots=
24195   fi
24196
24197   case "$srcdir" in
24198   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
24199   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
24200   esac
24201
24202   # Make a symlink if possible; otherwise try a hard link.
24203   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24204     ln $srcdir/$ac_source $ac_dest; then :
24205   else
24206     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
24207   fi
24208 done
24209 EOF
24210 cat >> $CONFIG_STATUS <<EOF
24211
24212 srcdir=${srcdir}
24213 host=${host}
24214 target=${target}
24215 with_multisubdir=${with_multisubdir}
24216 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24217 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24218 glibcpp_basedir=${glibcpp_basedir}
24219 CC="${CC}"
24220 CXX="${CXX}"
24221
24222 EOF
24223 cat >> $CONFIG_STATUS <<\EOF
24224 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24225 if test -n "$CONFIG_FILES"; then
24226   LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24227   ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24228   grep '^MULTISUBDIR =' Makefile >> src/Makefile
24229   grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24230 fi
24231 chmod +x mkcheck
24232 chmod +x testsuite_flags
24233
24234 exit 0
24235 EOF
24236 chmod +x $CONFIG_STATUS
24237 rm -fr confdefs* $ac_clean_files
24238 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24239
24240
24241
24242 # Sanity checking & User-visible messages.
24243 # Checks down here, otherwise they get scrolled off before
24244 # the user will notice.
24245
24246 # Trying to get more people to read documentation.  Possibly remove
24247 # check and warn all the time. There is no "informational" AC_MSG_
24248 # macro, so these are going to be printed even when --quiet/--silent
24249 # is given.
24250 if test ! -f stamp-sanity-warned; then
24251   touch stamp-sanity-warned
24252   echo ""
24253   echo "Please make certain that you read the installation information here:"
24254   echo "  faster => ${srcdir}/docs/html/install.html"
24255   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24256   echo ""
24257   echo "and the configuration information here:"
24258   echo "  faster => ${srcdir}/docs/html/configopts.html"
24259   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24260   echo ""
24261   echo "before proceeding with ${_cv_gnu_make_command}."
24262   echo ""
24263 fi