OSDN Git Service

* configure.in: Define with_target_subdir and with_build_subdir
[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-cstdio         enable stdio for target io package. 
38   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
39   "
40 ac_help="$ac_help
41   --enable-clocale        enable model for target locale package. 
42   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
43   "
44 ac_help="$ac_help
45   --enable-nls            use Native Language Support (default)"
46 ac_help="$ac_help
47   --enable-cheaders=MODEL       construct "C" header files for g++ [default=c_std]"
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-sjlj-exceptions  force use of builtin_setjmp for exceptions"
56 ac_help="$ac_help
57   --enable-libunwind-exceptions  force use of libunwind for exceptions"
58 ac_help="$ac_help
59   --enable-concept-checks use Boost-derived template checks [default=no]"
60 ac_help="$ac_help
61   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
62                                 [default=none]"
63 ac_help="$ac_help
64   --enable-debug          extra debugging, turn off optimization [default=no]"
65 ac_help="$ac_help
66   --enable-debug-flags=FLAGS    pass compiler FLAGS when building debug 
67                         library;[default=none]"
68 ac_help="$ac_help
69   --enable-symvers=style  enables symbol versioning of the shared library [default=yes]"
70 ac_help="$ac_help
71   --with-gxx-include-dir  the installation directory for include files"
72 ac_help="$ac_help
73   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
74
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
78 build=NONE
79 cache_file=./config.cache
80 exec_prefix=NONE
81 host=NONE
82 no_create=
83 nonopt=NONE
84 no_recursion=
85 prefix=NONE
86 program_prefix=NONE
87 program_suffix=NONE
88 program_transform_name=s,x,x,
89 silent=
90 site=
91 srcdir=
92 target=NONE
93 verbose=
94 x_includes=NONE
95 x_libraries=NONE
96 bindir='${exec_prefix}/bin'
97 sbindir='${exec_prefix}/sbin'
98 libexecdir='${exec_prefix}/libexec'
99 datadir='${prefix}/share'
100 sysconfdir='${prefix}/etc'
101 sharedstatedir='${prefix}/com'
102 localstatedir='${prefix}/var'
103 libdir='${exec_prefix}/lib'
104 includedir='${prefix}/include'
105 oldincludedir='/usr/include'
106 infodir='${prefix}/info'
107 mandir='${prefix}/man'
108
109 # Initialize some other variables.
110 subdirs=
111 MFLAGS= MAKEFLAGS=
112 SHELL=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
114 ac_max_here_lines=12
115
116 ac_prev=
117 for ac_option
118 do
119
120   # If the previous option needs an argument, assign it.
121   if test -n "$ac_prev"; then
122     eval "$ac_prev=\$ac_option"
123     ac_prev=
124     continue
125   fi
126
127   case "$ac_option" in
128   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129   *) ac_optarg= ;;
130   esac
131
132   # Accept the important Cygnus configure options, so we can diagnose typos.
133
134   case "$ac_option" in
135
136   -bindir | --bindir | --bindi | --bind | --bin | --bi)
137     ac_prev=bindir ;;
138   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
139     bindir="$ac_optarg" ;;
140
141   -build | --build | --buil | --bui | --bu)
142     ac_prev=build ;;
143   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
144     build="$ac_optarg" ;;
145
146   -cache-file | --cache-file | --cache-fil | --cache-fi \
147   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
148     ac_prev=cache_file ;;
149   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
150   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
151     cache_file="$ac_optarg" ;;
152
153   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
154     ac_prev=datadir ;;
155   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
156   | --da=*)
157     datadir="$ac_optarg" ;;
158
159   -disable-* | --disable-*)
160     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
161     # Reject names that are not valid shell variable names.
162     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164     fi
165     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166     eval "enable_${ac_feature}=no" ;;
167
168   -enable-* | --enable-*)
169     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170     # Reject names that are not valid shell variable names.
171     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173     fi
174     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175     case "$ac_option" in
176       *=*) ;;
177       *) ac_optarg=yes ;;
178     esac
179     eval "enable_${ac_feature}='$ac_optarg'" ;;
180
181   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
182   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
183   | --exec | --exe | --ex)
184     ac_prev=exec_prefix ;;
185   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
186   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
187   | --exec=* | --exe=* | --ex=*)
188     exec_prefix="$ac_optarg" ;;
189
190   -gas | --gas | --ga | --g)
191     # Obsolete; use --with-gas.
192     with_gas=yes ;;
193
194   -help | --help | --hel | --he)
195     # Omit some internal or obsolete options to make the list less imposing.
196     # This message is too long to be a string in the A/UX 3.1 sh.
197     cat << EOF
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
200 Configuration:
201   --cache-file=FILE       cache test results in FILE
202   --help                  print this message
203   --no-create             do not create output files
204   --quiet, --silent       do not print \`checking...' messages
205   --version               print the version of autoconf that created configure
206 Directory and file names:
207   --prefix=PREFIX         install architecture-independent files in PREFIX
208                           [$ac_default_prefix]
209   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
210                           [same as prefix]
211   --bindir=DIR            user executables in DIR [EPREFIX/bin]
212   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
213   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
214   --datadir=DIR           read-only architecture-independent data in DIR
215                           [PREFIX/share]
216   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
217   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
218                           [PREFIX/com]
219   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
220   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
221   --includedir=DIR        C header files in DIR [PREFIX/include]
222   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
223   --infodir=DIR           info documentation in DIR [PREFIX/info]
224   --mandir=DIR            man documentation in DIR [PREFIX/man]
225   --srcdir=DIR            find the sources in DIR [configure dir or ..]
226   --program-prefix=PREFIX prepend PREFIX to installed program names
227   --program-suffix=SUFFIX append SUFFIX to installed program names
228   --program-transform-name=PROGRAM
229                           run sed PROGRAM on installed program names
230 EOF
231     cat << EOF
232 Host type:
233   --build=BUILD           configure for building on BUILD [BUILD=HOST]
234   --host=HOST             configure for HOST [guessed]
235   --target=TARGET         configure for TARGET [TARGET=HOST]
236 Features and packages:
237   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
238   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
239   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
240   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
241   --x-includes=DIR        X include files are in DIR
242   --x-libraries=DIR       X library files are in DIR
243 EOF
244     if test -n "$ac_help"; then
245       echo "--enable and --with options recognized:$ac_help"
246     fi
247     exit 0 ;;
248
249   -host | --host | --hos | --ho)
250     ac_prev=host ;;
251   -host=* | --host=* | --hos=* | --ho=*)
252     host="$ac_optarg" ;;
253
254   -includedir | --includedir | --includedi | --included | --include \
255   | --includ | --inclu | --incl | --inc)
256     ac_prev=includedir ;;
257   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
258   | --includ=* | --inclu=* | --incl=* | --inc=*)
259     includedir="$ac_optarg" ;;
260
261   -infodir | --infodir | --infodi | --infod | --info | --inf)
262     ac_prev=infodir ;;
263   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
264     infodir="$ac_optarg" ;;
265
266   -libdir | --libdir | --libdi | --libd)
267     ac_prev=libdir ;;
268   -libdir=* | --libdir=* | --libdi=* | --libd=*)
269     libdir="$ac_optarg" ;;
270
271   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
272   | --libexe | --libex | --libe)
273     ac_prev=libexecdir ;;
274   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
275   | --libexe=* | --libex=* | --libe=*)
276     libexecdir="$ac_optarg" ;;
277
278   -localstatedir | --localstatedir | --localstatedi | --localstated \
279   | --localstate | --localstat | --localsta | --localst \
280   | --locals | --local | --loca | --loc | --lo)
281     ac_prev=localstatedir ;;
282   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
283   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
284   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
285     localstatedir="$ac_optarg" ;;
286
287   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
288     ac_prev=mandir ;;
289   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290     mandir="$ac_optarg" ;;
291
292   -nfp | --nfp | --nf)
293     # Obsolete; use --without-fp.
294     with_fp=no ;;
295
296   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297   | --no-cr | --no-c)
298     no_create=yes ;;
299
300   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
301   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
302     no_recursion=yes ;;
303
304   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
305   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
306   | --oldin | --oldi | --old | --ol | --o)
307     ac_prev=oldincludedir ;;
308   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
309   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
310   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
311     oldincludedir="$ac_optarg" ;;
312
313   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
314     ac_prev=prefix ;;
315   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316     prefix="$ac_optarg" ;;
317
318   -program-prefix | --program-prefix | --program-prefi | --program-pref \
319   | --program-pre | --program-pr | --program-p)
320     ac_prev=program_prefix ;;
321   -program-prefix=* | --program-prefix=* | --program-prefi=* \
322   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
323     program_prefix="$ac_optarg" ;;
324
325   -program-suffix | --program-suffix | --program-suffi | --program-suff \
326   | --program-suf | --program-su | --program-s)
327     ac_prev=program_suffix ;;
328   -program-suffix=* | --program-suffix=* | --program-suffi=* \
329   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
330     program_suffix="$ac_optarg" ;;
331
332   -program-transform-name | --program-transform-name \
333   | --program-transform-nam | --program-transform-na \
334   | --program-transform-n | --program-transform- \
335   | --program-transform | --program-transfor \
336   | --program-transfo | --program-transf \
337   | --program-trans | --program-tran \
338   | --progr-tra | --program-tr | --program-t)
339     ac_prev=program_transform_name ;;
340   -program-transform-name=* | --program-transform-name=* \
341   | --program-transform-nam=* | --program-transform-na=* \
342   | --program-transform-n=* | --program-transform-=* \
343   | --program-transform=* | --program-transfor=* \
344   | --program-transfo=* | --program-transf=* \
345   | --program-trans=* | --program-tran=* \
346   | --progr-tra=* | --program-tr=* | --program-t=*)
347     program_transform_name="$ac_optarg" ;;
348
349   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
350   | -silent | --silent | --silen | --sile | --sil)
351     silent=yes ;;
352
353   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
354     ac_prev=sbindir ;;
355   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
356   | --sbi=* | --sb=*)
357     sbindir="$ac_optarg" ;;
358
359   -sharedstatedir | --sharedstatedir | --sharedstatedi \
360   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
361   | --sharedst | --shareds | --shared | --share | --shar \
362   | --sha | --sh)
363     ac_prev=sharedstatedir ;;
364   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
365   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
366   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
367   | --sha=* | --sh=*)
368     sharedstatedir="$ac_optarg" ;;
369
370   -site | --site | --sit)
371     ac_prev=site ;;
372   -site=* | --site=* | --sit=*)
373     site="$ac_optarg" ;;
374
375   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
376     ac_prev=srcdir ;;
377   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378     srcdir="$ac_optarg" ;;
379
380   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
381   | --syscon | --sysco | --sysc | --sys | --sy)
382     ac_prev=sysconfdir ;;
383   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
384   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
385     sysconfdir="$ac_optarg" ;;
386
387   -target | --target | --targe | --targ | --tar | --ta | --t)
388     ac_prev=target ;;
389   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
390     target="$ac_optarg" ;;
391
392   -v | -verbose | --verbose | --verbos | --verbo | --verb)
393     verbose=yes ;;
394
395   -version | --version | --versio | --versi | --vers)
396     echo "configure generated by autoconf version 2.13"
397     exit 0 ;;
398
399   -with-* | --with-*)
400     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401     # Reject names that are not valid shell variable names.
402     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404     fi
405     ac_package=`echo $ac_package| sed 's/-/_/g'`
406     case "$ac_option" in
407       *=*) ;;
408       *) ac_optarg=yes ;;
409     esac
410     eval "with_${ac_package}='$ac_optarg'" ;;
411
412   -without-* | --without-*)
413     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
414     # Reject names that are not valid shell variable names.
415     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417     fi
418     ac_package=`echo $ac_package| sed 's/-/_/g'`
419     eval "with_${ac_package}=no" ;;
420
421   --x)
422     # Obsolete; use --with-x.
423     with_x=yes ;;
424
425   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
426   | --x-incl | --x-inc | --x-in | --x-i)
427     ac_prev=x_includes ;;
428   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
429   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
430     x_includes="$ac_optarg" ;;
431
432   -x-libraries | --x-libraries | --x-librarie | --x-librari \
433   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
434     ac_prev=x_libraries ;;
435   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
436   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
437     x_libraries="$ac_optarg" ;;
438
439   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440     ;;
441
442   *)
443     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444       echo "configure: warning: $ac_option: invalid host type" 1>&2
445     fi
446     if test "x$nonopt" != xNONE; then
447       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
448     fi
449     nonopt="$ac_option"
450     ;;
451
452   esac
453 done
454
455 if test -n "$ac_prev"; then
456   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 fi
458
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
460
461 # File descriptor usage:
462 # 0 standard input
463 # 1 file creation
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
470   exec 6>/dev/null
471 else
472   exec 6>&1
473 fi
474 exec 5>./config.log
475
476 echo "\
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
479 " 1>&5
480
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
483 ac_configure_args=
484 for ac_arg
485 do
486   case "$ac_arg" in
487   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488   | --no-cr | --no-c) ;;
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
491   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
493   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
494   esac
495 done
496
497 # NLS nuisances.
498 # Only set these to C if already set.  These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
503 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
505 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
506
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 echo > confdefs.h
511
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file=src/ios.cc
515
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518   ac_srcdir_defaulted=yes
519   # Try the directory containing this script, then its parent.
520   ac_prog=$0
521   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
523   srcdir=$ac_confdir
524   if test ! -r $srcdir/$ac_unique_file; then
525     srcdir=..
526   fi
527 else
528   ac_srcdir_defaulted=no
529 fi
530 if test ! -r $srcdir/$ac_unique_file; then
531   if test "$ac_srcdir_defaulted" = yes; then
532     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
533   else
534     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535   fi
536 fi
537 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
538
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541   if test "x$prefix" != xNONE; then
542     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
543   else
544     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
545   fi
546 fi
547 for ac_site_file in $CONFIG_SITE; do
548   if test -r "$ac_site_file"; then
549     echo "loading site script $ac_site_file"
550     . "$ac_site_file"
551   fi
552 done
553
554 if test -r "$cache_file"; then
555   echo "loading cache $cache_file"
556   . $cache_file
557 else
558   echo "creating cache $cache_file"
559   > $cache_file
560 fi
561
562 ac_ext=c
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp='$CPP $CPPFLAGS'
565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling=$ac_cv_prog_cc_cross
568
569 ac_exeext=
570 ac_objext=o
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574     ac_n= ac_c='
575 ' ac_t='        '
576   else
577     ac_n=-n ac_c= ac_t=
578   fi
579 else
580   ac_n= ac_c='\c' ac_t=
581 fi
582
583
584
585 # This works around the fact that libtool configuration may change LD
586 # for this particular configuration, but some shells, instead of
587 # keeping the changes in LD private, export them just because LD is
588 # exported.  Only used at the end of this file.
589 ORIGINAL_LD_FOR_MULTILIBS=$LD
590
591 PACKAGE=libstdc++
592
593 # For libtool versioning info, format is CURRENT:REVISION:AGE
594 libtool_VERSION=5:2:0
595
596
597
598       # Check whether --enable-multilib or --disable-multilib was given.
599 if test "${enable_multilib+set}" = set; then
600   enableval="$enable_multilib"
601   case "${enableval}" in
602     yes) multilib=yes ;;
603     no)  multilib=no ;;
604     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
605    esac
606 else
607   multilib=yes
608 fi
609
610   # When building with srcdir == objdir, links to the source files will
611   # be created in directories within the target_subdir.  We have to
612   # adjust toplevel_srcdir accordingly, so that configure finds
613   # install-sh and other auxiliary files that live in the top-level
614   # source directory.
615   if test "${srcdir}" = "."; then
616     if test -z "${with_target_subdir}"; then
617       toprel=".."
618     else
619       if test "${with_target_subdir}" != "."; then
620         toprel="${with_multisrctop}../.."
621       else
622         toprel="${with_multisrctop}.."
623       fi
624     fi
625   else
626     toprel=".."
627   fi
628   ac_aux_dir=
629 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
630   if test -f $ac_dir/install-sh; then
631     ac_aux_dir=$ac_dir
632     ac_install_sh="$ac_aux_dir/install-sh -c"
633     break
634   elif test -f $ac_dir/install.sh; then
635     ac_aux_dir=$ac_dir
636     ac_install_sh="$ac_aux_dir/install.sh -c"
637     break
638   fi
639 done
640 if test -z "$ac_aux_dir"; then
641   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
642 fi
643 ac_config_guess=$ac_aux_dir/config.guess
644 ac_config_sub=$ac_aux_dir/config.sub
645 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
646
647   toplevel_srcdir=\${top_srcdir}/$toprel
648   
649
650
651 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
652 #
653 # You will slowly go insane if you do not grok the following fact:  when
654 # building v3 as part of the compiler, the top-level /target/ becomes the
655 # library's /host/.  `configure' then causes --target to default to --host,
656 # exactly like any other package using autoconf.  Therefore, 'target' and
657 # 'host' will always be the same.  This makes sense both for native and
658 # cross compilers, just think about it for a little while.  :-)
659 #
660 # Also, if v3 is being configured as part of a cross compiler, the top-level
661 # configure script will pass the "real" host as $with_cross_host.
662 #
663 # AC 2.5x sets target_alias iff the user specified --target, but we use it
664 # everywhere, so we set it here just to be sure.  In AC 2.13
665 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
666
667 # Do some error checking and defaulting for the host and target type.
668 # The inputs are:
669 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
670 #
671 # The rules are:
672 # 1. You are not allowed to specify --host, --target, and nonopt at the
673 #    same time.
674 # 2. Host defaults to nonopt.
675 # 3. If nonopt is not specified, then host defaults to the current host,
676 #    as determined by config.guess.
677 # 4. Target and build default to nonopt.
678 # 5. If nonopt is not specified, then target and build default to host.
679
680 # The aliases save the names the user supplied, while $host etc.
681 # will get canonicalized.
682 case $host---$target---$nonopt in
683 NONE---*---* | *---NONE---* | *---*---NONE) ;;
684 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
685 esac
686
687
688 # Make sure we can run config.sub.
689 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
691 fi
692
693 echo $ac_n "checking host system type""... $ac_c" 1>&6
694 echo "configure:695: checking host system type" >&5
695
696 host_alias=$host
697 case "$host_alias" in
698 NONE)
699   case $nonopt in
700   NONE)
701     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
702     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
703     fi ;;
704   *) host_alias=$nonopt ;;
705   esac ;;
706 esac
707
708 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
709 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
710 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
711 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo "$ac_t""$host" 1>&6
713
714 echo $ac_n "checking target system type""... $ac_c" 1>&6
715 echo "configure:716: checking target system type" >&5
716
717 target_alias=$target
718 case "$target_alias" in
719 NONE)
720   case $nonopt in
721   NONE) target_alias=$host_alias ;;
722   *) target_alias=$nonopt ;;
723   esac ;;
724 esac
725
726 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
727 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
728 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
729 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
730 echo "$ac_t""$target" 1>&6
731
732 echo $ac_n "checking build system type""... $ac_c" 1>&6
733 echo "configure:734: checking build system type" >&5
734
735 build_alias=$build
736 case "$build_alias" in
737 NONE)
738   case $nonopt in
739   NONE) build_alias=$host_alias ;;
740   *) build_alias=$nonopt ;;
741   esac ;;
742 esac
743
744 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
745 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
746 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
747 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
748 echo "$ac_t""$build" 1>&6
749
750 test "$host_alias" != "$target_alias" &&
751   test "$program_prefix$program_suffix$program_transform_name" = \
752     NONENONEs,x,x, &&
753   program_prefix=${target_alias}-
754
755 target_alias=${target_alias-$target}
756
757
758 # Runs configure.target, finds CC, CXX and assorted other critical bits.
759 # Must run this before the GLIBCPP_ENABLE_* macros below.
760 if test $host != $build; then
761   ac_tool_prefix=${host_alias}-
762 else
763   ac_tool_prefix=
764 fi
765
766 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
767 echo "configure:768: checking for Cygwin environment" >&5
768 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
769   echo $ac_n "(cached) $ac_c" 1>&6
770 else
771   cat > conftest.$ac_ext <<EOF
772 #line 773 "configure"
773 #include "confdefs.h"
774
775 int main() {
776
777 #ifndef __CYGWIN__
778 #define __CYGWIN__ __CYGWIN32__
779 #endif
780 return __CYGWIN__;
781 ; return 0; }
782 EOF
783 if { (eval echo configure:784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
784   rm -rf conftest*
785   ac_cv_cygwin=yes
786 else
787   echo "configure: failed program was:" >&5
788   cat conftest.$ac_ext >&5
789   rm -rf conftest*
790   ac_cv_cygwin=no
791 fi
792 rm -f conftest*
793 rm -f conftest*
794 fi
795
796 echo "$ac_t""$ac_cv_cygwin" 1>&6
797 CYGWIN=
798 test "$ac_cv_cygwin" = yes && CYGWIN=yes
799 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
800 echo "configure:801: checking for mingw32 environment" >&5
801 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
802   echo $ac_n "(cached) $ac_c" 1>&6
803 else
804   cat > conftest.$ac_ext <<EOF
805 #line 806 "configure"
806 #include "confdefs.h"
807
808 int main() {
809 return __MINGW32__;
810 ; return 0; }
811 EOF
812 if { (eval echo configure:813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
813   rm -rf conftest*
814   ac_cv_mingw32=yes
815 else
816   echo "configure: failed program was:" >&5
817   cat conftest.$ac_ext >&5
818   rm -rf conftest*
819   ac_cv_mingw32=no
820 fi
821 rm -f conftest*
822 rm -f conftest*
823 fi
824
825 echo "$ac_t""$ac_cv_mingw32" 1>&6
826 MINGW32=
827 test "$ac_cv_mingw32" = yes && MINGW32=yes
828
829   # Export build and source directories.
830   # These need to be absolute paths, yet at the same time need to
831   # canonicalize only relative paths, because then amd will not unmount
832   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
833   glibcpp_builddir=`${PWDCMD-pwd}`
834   case $srcdir in
835   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
836   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
837   esac
838   
839   
840
841     
842
843   for ac_prog in gawk mawk nawk awk
844 do
845 # Extract the first word of "$ac_prog", so it can be a program name with args.
846 set dummy $ac_prog; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
850   echo $ac_n "(cached) $ac_c" 1>&6
851 else
852   if test -n "$AWK"; then
853   ac_cv_prog_AWK="$AWK" # Let the user override the test.
854 else
855   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
856   ac_dummy="$PATH"
857   for ac_dir in $ac_dummy; do
858     test -z "$ac_dir" && ac_dir=.
859     if test -f $ac_dir/$ac_word; then
860       ac_cv_prog_AWK="$ac_prog"
861       break
862     fi
863   done
864   IFS="$ac_save_ifs"
865 fi
866 fi
867 AWK="$ac_cv_prog_AWK"
868 if test -n "$AWK"; then
869   echo "$ac_t""$AWK" 1>&6
870 else
871   echo "$ac_t""no" 1>&6
872 fi
873
874 test -n "$AWK" && break
875 done
876
877   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
878   # be 'cp -p' if linking isn't available.  Uncomment the next line to
879   # force a particular method.
880   #ac_cv_prog_LN_S='cp -p'
881   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
882 echo "configure:883: checking whether ln -s works" >&5
883 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
884   echo $ac_n "(cached) $ac_c" 1>&6
885 else
886   rm -f conftestdata
887 if ln -s X conftestdata 2>/dev/null
888 then
889   rm -f conftestdata
890   ac_cv_prog_LN_S="ln -s"
891 else
892   ac_cv_prog_LN_S=ln
893 fi
894 fi
895 LN_S="$ac_cv_prog_LN_S"
896 if test "$ac_cv_prog_LN_S" = "ln -s"; then
897   echo "$ac_t""yes" 1>&6
898 else
899   echo "$ac_t""no" 1>&6
900 fi
901
902
903   # We use these options to decide which functions to include.
904   # Check whether --with-target-subdir or --without-target-subdir was given.
905 if test "${with_target_subdir+set}" = set; then
906   withval="$with_target_subdir"
907   :
908 fi
909
910   # Check whether --with-cross-host or --without-cross-host was given.
911 if test "${with_cross_host+set}" = set; then
912   withval="$with_cross_host"
913   :
914 fi
915
916
917   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
918   
919
920   # Never versions of autoconf add an underscore to these functions.
921   # Prevent future problems ...
922   
923   
924   
925   
926
927   # AC_PROG_CC
928   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
929   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
930   # are probably using a cross compiler, which will not be able to fully
931   # link an executable.  This is addressed in later versions of autoconf.
932
933   
934
935       
936   # Extract the first word of "gcc", so it can be a program name with args.
937 set dummy gcc; ac_word=$2
938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
939 echo "configure:940: checking for $ac_word" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
941   echo $ac_n "(cached) $ac_c" 1>&6
942 else
943   if test -n "$CC"; then
944   ac_cv_prog_CC="$CC" # Let the user override the test.
945 else
946   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
947   ac_dummy="$PATH"
948   for ac_dir in $ac_dummy; do
949     test -z "$ac_dir" && ac_dir=.
950     if test -f $ac_dir/$ac_word; then
951       ac_cv_prog_CC="gcc"
952       break
953     fi
954   done
955   IFS="$ac_save_ifs"
956 fi
957 fi
958 CC="$ac_cv_prog_CC"
959 if test -n "$CC"; then
960   echo "$ac_t""$CC" 1>&6
961 else
962   echo "$ac_t""no" 1>&6
963 fi
964
965   if test -z "$CC"; then
966     # Extract the first word of "cc", so it can be a program name with args.
967 set dummy cc; ac_word=$2
968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
969 echo "configure:970: checking for $ac_word" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
971   echo $ac_n "(cached) $ac_c" 1>&6
972 else
973   if test -n "$CC"; then
974   ac_cv_prog_CC="$CC" # Let the user override the test.
975 else
976   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
977   ac_prog_rejected=no
978   ac_dummy="$PATH"
979   for ac_dir in $ac_dummy; do
980     test -z "$ac_dir" && ac_dir=.
981     if test -f $ac_dir/$ac_word; then
982       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
983         ac_prog_rejected=yes
984         continue
985       fi
986       ac_cv_prog_CC="cc"
987       break
988     fi
989   done
990   IFS="$ac_save_ifs"
991 if test $ac_prog_rejected = yes; then
992   # We found a bogon in the path, so make sure we never use it.
993   set dummy $ac_cv_prog_CC
994   shift
995   if test $# -gt 0; then
996     # We chose a different compiler from the bogus one.
997     # However, it has the same basename, so the bogon will be chosen
998     # first if we set CC to just the basename; use the full file name.
999     shift
1000     set dummy "$ac_dir/$ac_word" "$@"
1001     shift
1002     ac_cv_prog_CC="$@"
1003   fi
1004 fi
1005 fi
1006 fi
1007 CC="$ac_cv_prog_CC"
1008 if test -n "$CC"; then
1009   echo "$ac_t""$CC" 1>&6
1010 else
1011   echo "$ac_t""no" 1>&6
1012 fi
1013
1014     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1015   fi
1016
1017   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1018 echo "configure:1019: checking whether we are using GNU C" >&5
1019 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1020   echo $ac_n "(cached) $ac_c" 1>&6
1021 else
1022   cat > conftest.c <<EOF
1023 #ifdef __GNUC__
1024   yes;
1025 #endif
1026 EOF
1027 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1028   ac_cv_prog_gcc=yes
1029 else
1030   ac_cv_prog_gcc=no
1031 fi
1032 fi
1033
1034 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1035
1036   if test $ac_cv_prog_gcc = yes; then
1037     GCC=yes
1038           ac_test_CFLAGS="${CFLAGS+set}"
1039     ac_save_CFLAGS="$CFLAGS"
1040     CFLAGS=
1041     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1042 echo "configure:1043: checking whether ${CC-cc} accepts -g" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1044   echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1046   echo 'void f(){}' > conftest.c
1047 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1048   ac_cv_prog_cc_g=yes
1049 else
1050   ac_cv_prog_cc_g=no
1051 fi
1052 rm -f conftest*
1053
1054 fi
1055
1056 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1057     if test "$ac_test_CFLAGS" = set; then
1058       CFLAGS="$ac_save_CFLAGS"
1059     elif test $ac_cv_prog_cc_g = yes; then
1060       CFLAGS="-g -O2"
1061     else
1062       CFLAGS="-O2"
1063     fi
1064   else
1065     GCC=
1066     test "${CFLAGS+set}" = set || CFLAGS="-g"
1067   fi
1068   
1069
1070   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1071   # will try to link in libstdc++.
1072   
1073
1074       
1075   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1076   # flags that come in CXX while configuring libstdc++.  They're different
1077   # from those used for all other target libraries.  If CXX is set in
1078   # the environment, respect that here.
1079   glibcpp_CXX=$CXX
1080   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1081 do
1082 # Extract the first word of "$ac_prog", so it can be a program name with args.
1083 set dummy $ac_prog; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1087   echo $ac_n "(cached) $ac_c" 1>&6
1088 else
1089   if test -n "$glibcpp_CXX"; then
1090   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1091 else
1092   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1093   ac_dummy="$PATH"
1094   for ac_dir in $ac_dummy; do
1095     test -z "$ac_dir" && ac_dir=.
1096     if test -f $ac_dir/$ac_word; then
1097       ac_cv_prog_glibcpp_CXX="$ac_prog"
1098       break
1099     fi
1100   done
1101   IFS="$ac_save_ifs"
1102 fi
1103 fi
1104 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1105 if test -n "$glibcpp_CXX"; then
1106   echo "$ac_t""$glibcpp_CXX" 1>&6
1107 else
1108   echo "$ac_t""no" 1>&6
1109 fi
1110
1111 test -n "$glibcpp_CXX" && break
1112 done
1113 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1114
1115   
1116   CXX=$glibcpp_CXX
1117   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1118
1119   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether we are using GNU C++" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1122   echo $ac_n "(cached) $ac_c" 1>&6
1123 else
1124   cat > conftest.C <<EOF
1125 #ifdef __GNUC__
1126   yes;
1127 #endif
1128 EOF
1129 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1130   ac_cv_prog_gxx=yes
1131 else
1132   ac_cv_prog_gxx=no
1133 fi
1134 fi
1135
1136 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1137
1138   if test $ac_cv_prog_gxx = yes; then
1139     GXX=yes
1140                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1141     ac_save_CXXFLAGS="$CXXFLAGS"
1142     CXXFLAGS=
1143     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether ${CXX-g++} accepts -g" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1146   echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148   echo 'void f(){}' > conftest.cc
1149 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1150   ac_cv_prog_cxx_g=yes
1151 else
1152   ac_cv_prog_cxx_g=no
1153 fi
1154 rm -f conftest*
1155
1156 fi
1157
1158 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1159     if test "$ac_test_CXXFLAGS" = set; then
1160       CXXFLAGS="$ac_save_CXXFLAGS"
1161     elif test $ac_cv_prog_cxx_g = yes; then
1162       CXXFLAGS="-g -O2"
1163     else
1164       CXXFLAGS="-O2"
1165     fi
1166   else
1167     GXX=
1168     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1169   fi
1170   
1171
1172   # For directory versioning (e.g., headers) and other variables.
1173   echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1174 echo "configure:1175: checking for GCC version number" >&5
1175   gcc_version=`$glibcpp_CXX -dumpversion`
1176   echo "$ac_t""$gcc_version" 1>&6
1177
1178   # For some reason, gettext needs this.
1179   
1180         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1181 echo "configure:1182: checking for strerror in -lcposix" >&5
1182 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1184   echo $ac_n "(cached) $ac_c" 1>&6
1185 else
1186   ac_save_LIBS="$LIBS"
1187 LIBS="-lcposix  $LIBS"
1188 cat > conftest.$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1191 /* Override any gcc2 internal prototype to avoid an error.  */
1192 /* We use char because int might match the return type of a gcc2
1193     builtin and then its argument prototype would still apply.  */
1194 char strerror();
1195
1196 int main() {
1197 strerror()
1198 ; return 0; }
1199 EOF
1200 if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1201   rm -rf conftest*
1202   eval "ac_cv_lib_$ac_lib_var=yes"
1203 else
1204   echo "configure: failed program was:" >&5
1205   cat conftest.$ac_ext >&5
1206   rm -rf conftest*
1207   eval "ac_cv_lib_$ac_lib_var=no"
1208 fi
1209 rm -f conftest*
1210 LIBS="$ac_save_LIBS"
1211
1212 fi
1213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1214   echo "$ac_t""yes" 1>&6
1215   LIBS="$LIBS -lcposix"
1216 else
1217   echo "$ac_t""no" 1>&6
1218 fi
1219
1220   
1221
1222
1223   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1224 set dummy ${ac_tool_prefix}as; ac_word=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1228   echo $ac_n "(cached) $ac_c" 1>&6
1229 else
1230   if test -n "$AS"; then
1231   ac_cv_prog_AS="$AS" # Let the user override the test.
1232 else
1233   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1234   ac_dummy="$PATH"
1235   for ac_dir in $ac_dummy; do
1236     test -z "$ac_dir" && ac_dir=.
1237     if test -f $ac_dir/$ac_word; then
1238       ac_cv_prog_AS="${ac_tool_prefix}as"
1239       break
1240     fi
1241   done
1242   IFS="$ac_save_ifs"
1243   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1244 fi
1245 fi
1246 AS="$ac_cv_prog_AS"
1247 if test -n "$AS"; then
1248   echo "$ac_t""$AS" 1>&6
1249 else
1250   echo "$ac_t""no" 1>&6
1251 fi
1252
1253
1254
1255   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1256 set dummy ${ac_tool_prefix}ar; ac_word=$2
1257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1258 echo "configure:1259: checking for $ac_word" >&5
1259 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1260   echo $ac_n "(cached) $ac_c" 1>&6
1261 else
1262   if test -n "$AR"; then
1263   ac_cv_prog_AR="$AR" # Let the user override the test.
1264 else
1265   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1266   ac_dummy="$PATH"
1267   for ac_dir in $ac_dummy; do
1268     test -z "$ac_dir" && ac_dir=.
1269     if test -f $ac_dir/$ac_word; then
1270       ac_cv_prog_AR="${ac_tool_prefix}ar"
1271       break
1272     fi
1273   done
1274   IFS="$ac_save_ifs"
1275   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1276 fi
1277 fi
1278 AR="$ac_cv_prog_AR"
1279 if test -n "$AR"; then
1280   echo "$ac_t""$AR" 1>&6
1281 else
1282   echo "$ac_t""no" 1>&6
1283 fi
1284
1285
1286
1287   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1288 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290 echo "configure:1291: checking for $ac_word" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1292   echo $ac_n "(cached) $ac_c" 1>&6
1293 else
1294   if test -n "$RANLIB"; then
1295   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1296 else
1297   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1298   ac_dummy="$PATH"
1299   for ac_dir in $ac_dummy; do
1300     test -z "$ac_dir" && ac_dir=.
1301     if test -f $ac_dir/$ac_word; then
1302       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1303       break
1304     fi
1305   done
1306   IFS="$ac_save_ifs"
1307 fi
1308 fi
1309 RANLIB="$ac_cv_prog_RANLIB"
1310 if test -n "$RANLIB"; then
1311   echo "$ac_t""$RANLIB" 1>&6
1312 else
1313   echo "$ac_t""no" 1>&6
1314 fi
1315
1316
1317 if test -z "$ac_cv_prog_RANLIB"; then
1318 if test -n "$ac_tool_prefix"; then
1319   # Extract the first word of "ranlib", so it can be a program name with args.
1320 set dummy ranlib; ac_word=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1324   echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326   if test -n "$RANLIB"; then
1327   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1328 else
1329   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1330   ac_dummy="$PATH"
1331   for ac_dir in $ac_dummy; do
1332     test -z "$ac_dir" && ac_dir=.
1333     if test -f $ac_dir/$ac_word; then
1334       ac_cv_prog_RANLIB="ranlib"
1335       break
1336     fi
1337   done
1338   IFS="$ac_save_ifs"
1339   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1340 fi
1341 fi
1342 RANLIB="$ac_cv_prog_RANLIB"
1343 if test -n "$RANLIB"; then
1344   echo "$ac_t""$RANLIB" 1>&6
1345 else
1346   echo "$ac_t""no" 1>&6
1347 fi
1348
1349 else
1350   RANLIB="ranlib-not-found-in-path-error"
1351 fi
1352 fi
1353
1354   # Find a good install program.  We prefer a C program (faster),
1355 # so one script is as good as another.  But avoid the broken or
1356 # incompatible versions:
1357 # SysV /etc/install, /usr/sbin/install
1358 # SunOS /usr/etc/install
1359 # IRIX /sbin/install
1360 # AIX /bin/install
1361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1364 # ./install, which can be erroneously created by make from ./install.sh.
1365 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1366 echo "configure:1367: checking for a BSD compatible install" >&5
1367 if test -z "$INSTALL"; then
1368 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1369   echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1372   for ac_dir in $PATH; do
1373     # Account for people who put trailing slashes in PATH elements.
1374     case "$ac_dir/" in
1375     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1376     *)
1377       # OSF1 and SCO ODT 3.0 have their own names for install.
1378       # Don't use installbsd from OSF since it installs stuff as root
1379       # by default.
1380       for ac_prog in ginstall scoinst install; do
1381         if test -f $ac_dir/$ac_prog; then
1382           if test $ac_prog = install &&
1383             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1384             # AIX install.  It has an incompatible calling convention.
1385             :
1386           else
1387             ac_cv_path_install="$ac_dir/$ac_prog -c"
1388             break 2
1389           fi
1390         fi
1391       done
1392       ;;
1393     esac
1394   done
1395   IFS="$ac_save_IFS"
1396
1397 fi
1398   if test "${ac_cv_path_install+set}" = set; then
1399     INSTALL="$ac_cv_path_install"
1400   else
1401     # As a last resort, use the slow shell script.  We don't cache a
1402     # path for INSTALL within a source directory, because that will
1403     # break other packages using the cache if that directory is
1404     # removed, or if the path is relative.
1405     INSTALL="$ac_install_sh"
1406   fi
1407 fi
1408 echo "$ac_t""$INSTALL" 1>&6
1409
1410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1411 # It thinks the first close brace ends the variable substitution.
1412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1413
1414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1415
1416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1417
1418
1419   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether to enable maintainer-specific portions of Makefiles" >&5
1421     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1422 if test "${enable_maintainer_mode+set}" = set; then
1423   enableval="$enable_maintainer_mode"
1424   USE_MAINTAINER_MODE=$enableval
1425 else
1426   USE_MAINTAINER_MODE=no
1427 fi
1428
1429   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1430   
1431
1432 if test $USE_MAINTAINER_MODE = yes; then
1433   MAINTAINER_MODE_TRUE=
1434   MAINTAINER_MODE_FALSE='#'
1435 else
1436   MAINTAINER_MODE_TRUE='#'
1437   MAINTAINER_MODE_FALSE=
1438 fi
1439   MAINT=$MAINTAINER_MODE_TRUE
1440   
1441
1442
1443   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1444   # at least currently, we never actually build a program, so we never
1445   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1446   # fails, because we are probably configuring with a cross compiler
1447   # which can't create executables.  So we include AC_EXEEXT to keep
1448   # automake happy, but we don't execute it, since we don't care about
1449   # the result.
1450   if false; then
1451     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1452     # to nothing, so nothing would remain between `then' and `fi' if it
1453     # were not for the `:' below.
1454     :
1455     
1456
1457 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1458 echo "configure:1459: checking for executable suffix" >&5
1459 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1460   echo $ac_n "(cached) $ac_c" 1>&6
1461 else
1462   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1463   ac_cv_exeext=.exe
1464 else
1465   rm -f conftest*
1466   echo 'int main () { return 0; }' > conftest.$ac_ext
1467   ac_cv_exeext=
1468   if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1469     for file in conftest.*; do
1470       case $file in
1471       *.c | *.o | *.obj) ;;
1472       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1473       esac
1474     done
1475   else
1476     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1477   fi
1478   rm -f conftest*
1479   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1480 fi
1481 fi
1482
1483 EXEEXT=""
1484 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1485 echo "$ac_t""${ac_cv_exeext}" 1>&6
1486 ac_exeext=$EXEEXT
1487
1488   fi
1489
1490   case ${glibcpp_basedir} in
1491     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1492     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1493   esac
1494
1495   # Find platform-specific directories containing configuration info.  In
1496   # addition to possibly modifying the same flags, it also sets up symlinks.
1497   
1498   . ${glibcpp_basedir}/configure.target
1499   echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1500   echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1501
1502
1503
1504 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1505 echo "configure:1506: checking whether build environment is sane" >&5
1506 # Just in case
1507 sleep 1
1508 echo timestamp > conftestfile
1509 # Do `set' in a subshell so we don't clobber the current shell's
1510 # arguments.  Must try -L first in case configure is actually a
1511 # symlink; some systems play weird games with the mod time of symlinks
1512 # (eg FreeBSD returns the mod time of the symlink's containing
1513 # directory).
1514 if (
1515    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1516    if test "$*" = "X"; then
1517       # -L didn't work.
1518       set X `ls -t $srcdir/configure conftestfile`
1519    fi
1520    if test "$*" != "X $srcdir/configure conftestfile" \
1521       && test "$*" != "X conftestfile $srcdir/configure"; then
1522
1523       # If neither matched, then we have a broken ls.  This can happen
1524       # if, for instance, CONFIG_SHELL is bash and it inherits a
1525       # broken ls alias from the environment.  This has actually
1526       # happened.  Such a system could not be considered "sane".
1527       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1528 alias in your environment" 1>&2; exit 1; }
1529    fi
1530
1531    test "$2" = conftestfile
1532    )
1533 then
1534    # Ok.
1535    :
1536 else
1537    { echo "configure: error: newly created file is older than distributed files!
1538 Check your system clock" 1>&2; exit 1; }
1539 fi
1540 rm -f conftest*
1541 echo "$ac_t""yes" 1>&6
1542 if test "$program_transform_name" = s,x,x,; then
1543   program_transform_name=
1544 else
1545   # Double any \ or $.  echo might interpret backslashes.
1546   cat <<\EOF_SED > conftestsed
1547 s,\\,\\\\,g; s,\$,$$,g
1548 EOF_SED
1549   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1550   rm -f conftestsed
1551 fi
1552 test "$program_prefix" != NONE &&
1553   program_transform_name="s,^,${program_prefix},; $program_transform_name"
1554 # Use a double $ so make ignores it.
1555 test "$program_suffix" != NONE &&
1556   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1557
1558 # sed with no file args requires a program.
1559 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1560
1561 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1562 echo "configure:1563: checking whether ${MAKE-make} sets \${MAKE}" >&5
1563 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1564 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1565   echo $ac_n "(cached) $ac_c" 1>&6
1566 else
1567   cat > conftestmake <<\EOF
1568 all:
1569         @echo 'ac_maketemp="${MAKE}"'
1570 EOF
1571 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1572 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1573 if test -n "$ac_maketemp"; then
1574   eval ac_cv_prog_make_${ac_make}_set=yes
1575 else
1576   eval ac_cv_prog_make_${ac_make}_set=no
1577 fi
1578 rm -f conftestmake
1579 fi
1580 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1581   echo "$ac_t""yes" 1>&6
1582   SET_MAKE=
1583 else
1584   echo "$ac_t""no" 1>&6
1585   SET_MAKE="MAKE=${MAKE-make}"
1586 fi
1587
1588
1589 PACKAGE=$PACKAGE
1590
1591 VERSION=$gcc_version
1592
1593 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1594   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1595 fi
1596 cat >> confdefs.h <<EOF
1597 #define PACKAGE "$PACKAGE"
1598 EOF
1599
1600 cat >> confdefs.h <<EOF
1601 #define VERSION "$VERSION"
1602 EOF
1603
1604
1605
1606 missing_dir=`cd $ac_aux_dir && pwd`
1607 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1608 echo "configure:1609: checking for working aclocal" >&5
1609 # Run test in a subshell; some versions of sh will print an error if
1610 # an executable is not found, even if stderr is redirected.
1611 # Redirect stdin to placate older versions of autoconf.  Sigh.
1612 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1613    ACLOCAL=aclocal
1614    echo "$ac_t""found" 1>&6
1615 else
1616    ACLOCAL="$missing_dir/missing aclocal"
1617    echo "$ac_t""missing" 1>&6
1618 fi
1619
1620 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1621 echo "configure:1622: checking for working autoconf" >&5
1622 # Run test in a subshell; some versions of sh will print an error if
1623 # an executable is not found, even if stderr is redirected.
1624 # Redirect stdin to placate older versions of autoconf.  Sigh.
1625 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1626    AUTOCONF=autoconf
1627    echo "$ac_t""found" 1>&6
1628 else
1629    AUTOCONF="$missing_dir/missing autoconf"
1630    echo "$ac_t""missing" 1>&6
1631 fi
1632
1633 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1634 echo "configure:1635: checking for working automake" >&5
1635 # Run test in a subshell; some versions of sh will print an error if
1636 # an executable is not found, even if stderr is redirected.
1637 # Redirect stdin to placate older versions of autoconf.  Sigh.
1638 if (automake --version) < /dev/null > /dev/null 2>&1; then
1639    AUTOMAKE=automake
1640    echo "$ac_t""found" 1>&6
1641 else
1642    AUTOMAKE="$missing_dir/missing automake"
1643    echo "$ac_t""missing" 1>&6
1644 fi
1645
1646 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1647 echo "configure:1648: checking for working autoheader" >&5
1648 # Run test in a subshell; some versions of sh will print an error if
1649 # an executable is not found, even if stderr is redirected.
1650 # Redirect stdin to placate older versions of autoconf.  Sigh.
1651 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1652    AUTOHEADER=autoheader
1653    echo "$ac_t""found" 1>&6
1654 else
1655    AUTOHEADER="$missing_dir/missing autoheader"
1656    echo "$ac_t""missing" 1>&6
1657 fi
1658
1659 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1660 echo "configure:1661: checking for working makeinfo" >&5
1661 # Run test in a subshell; some versions of sh will print an error if
1662 # an executable is not found, even if stderr is redirected.
1663 # Redirect stdin to placate older versions of autoconf.  Sigh.
1664 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1665    MAKEINFO=makeinfo
1666    echo "$ac_t""found" 1>&6
1667 else
1668    MAKEINFO="$missing_dir/missing makeinfo"
1669    echo "$ac_t""missing" 1>&6
1670 fi
1671
1672
1673
1674
1675
1676
1677
1678 # Check whether --enable-shared or --disable-shared was given.
1679 if test "${enable_shared+set}" = set; then
1680   enableval="$enable_shared"
1681   p=${PACKAGE-default}
1682 case $enableval in
1683 yes) enable_shared=yes ;;
1684 no) enable_shared=no ;;
1685 *)
1686   enable_shared=no
1687   # Look at the argument we got.  We use all the common list separators.
1688   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1689   for pkg in $enableval; do
1690     if test "X$pkg" = "X$p"; then
1691       enable_shared=yes
1692     fi
1693   done
1694   IFS="$ac_save_ifs"
1695   ;;
1696 esac
1697 else
1698   enable_shared=yes
1699 fi
1700
1701 # Check whether --enable-static or --disable-static was given.
1702 if test "${enable_static+set}" = set; then
1703   enableval="$enable_static"
1704   p=${PACKAGE-default}
1705 case $enableval in
1706 yes) enable_static=yes ;;
1707 no) enable_static=no ;;
1708 *)
1709   enable_static=no
1710   # Look at the argument we got.  We use all the common list separators.
1711   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1712   for pkg in $enableval; do
1713     if test "X$pkg" = "X$p"; then
1714       enable_static=yes
1715     fi
1716   done
1717   IFS="$ac_save_ifs"
1718   ;;
1719 esac
1720 else
1721   enable_static=yes
1722 fi
1723
1724 # Check whether --enable-fast-install or --disable-fast-install was given.
1725 if test "${enable_fast_install+set}" = set; then
1726   enableval="$enable_fast_install"
1727   p=${PACKAGE-default}
1728 case $enableval in
1729 yes) enable_fast_install=yes ;;
1730 no) enable_fast_install=no ;;
1731 *)
1732   enable_fast_install=no
1733   # Look at the argument we got.  We use all the common list separators.
1734   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1735   for pkg in $enableval; do
1736     if test "X$pkg" = "X$p"; then
1737       enable_fast_install=yes
1738     fi
1739   done
1740   IFS="$ac_save_ifs"
1741   ;;
1742 esac
1743 else
1744   enable_fast_install=yes
1745 fi
1746
1747 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1748 if test "${with_gnu_ld+set}" = set; then
1749   withval="$with_gnu_ld"
1750   test "$withval" = no || with_gnu_ld=yes
1751 else
1752   with_gnu_ld=no
1753 fi
1754
1755 ac_prog=ld
1756 if test "$GCC" = yes; then
1757   # Check if gcc -print-prog-name=ld gives a path.
1758   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1759 echo "configure:1760: checking for ld used by GCC" >&5
1760   case $host in
1761   *-*-mingw*)
1762     # gcc leaves a trailing carriage return which upsets mingw
1763     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1764   *)
1765     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1766   esac
1767   case $ac_prog in
1768     # Accept absolute paths.
1769     [\\/]* | [A-Za-z]:[\\/]*)
1770       re_direlt='/[^/][^/]*/\.\./'
1771       # Canonicalize the path of ld
1772       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1773       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1774         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1775       done
1776       test -z "$LD" && LD="$ac_prog"
1777       ;;
1778   "")
1779     # If it fails, then pretend we aren't using GCC.
1780     ac_prog=ld
1781     ;;
1782   *)
1783     # If it is relative, then search for the first ld in PATH.
1784     with_gnu_ld=unknown
1785     ;;
1786   esac
1787 elif test "$with_gnu_ld" = yes; then
1788   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1789 echo "configure:1790: checking for GNU ld" >&5
1790 else
1791   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1792 echo "configure:1793: checking for non-GNU ld" >&5
1793 fi
1794 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1795   echo $ac_n "(cached) $ac_c" 1>&6
1796 else
1797   if test -z "$LD"; then
1798   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1799   for ac_dir in $PATH; do
1800     test -z "$ac_dir" && ac_dir=.
1801     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1802       lt_cv_path_LD="$ac_dir/$ac_prog"
1803       # Check to see if the program is GNU ld.  I'd rather use --version,
1804       # but apparently some GNU ld's only accept -v.
1805       # Break only if it was the GNU/non-GNU ld that we prefer.
1806       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1807         test "$with_gnu_ld" != no && break
1808       else
1809         test "$with_gnu_ld" != yes && break
1810       fi
1811     fi
1812   done
1813   IFS="$ac_save_ifs"
1814 else
1815   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1816 fi
1817 fi
1818
1819 LD="$lt_cv_path_LD"
1820 if test -n "$LD"; then
1821   echo "$ac_t""$LD" 1>&6
1822 else
1823   echo "$ac_t""no" 1>&6
1824 fi
1825 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1826 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1827 echo "configure:1828: checking if the linker ($LD) is GNU ld" >&5
1828 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1829   echo $ac_n "(cached) $ac_c" 1>&6
1830 else
1831   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1832 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1833   lt_cv_prog_gnu_ld=yes
1834 else
1835   lt_cv_prog_gnu_ld=no
1836 fi
1837 fi
1838
1839 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1840 with_gnu_ld=$lt_cv_prog_gnu_ld
1841
1842
1843 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1844 echo "configure:1845: checking for $LD option to reload object files" >&5
1845 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1846   echo $ac_n "(cached) $ac_c" 1>&6
1847 else
1848   lt_cv_ld_reload_flag='-r'
1849 fi
1850
1851 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1852 reload_flag=$lt_cv_ld_reload_flag
1853 test -n "$reload_flag" && reload_flag=" $reload_flag"
1854
1855 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1856 echo "configure:1857: checking for BSD-compatible nm" >&5
1857 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1858   echo $ac_n "(cached) $ac_c" 1>&6
1859 else
1860   if test -n "$NM"; then
1861   # Let the user override the test.
1862   lt_cv_path_NM="$NM"
1863 else
1864   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1865   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1866     test -z "$ac_dir" && ac_dir=.
1867     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1868     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1869       # Check to see if the nm accepts a BSD-compat flag.
1870       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1871       #   nm: unknown option "B" ignored
1872       # Tru64's nm complains that /dev/null is an invalid object file
1873       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1874         lt_cv_path_NM="$tmp_nm -B"
1875         break
1876       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1877         lt_cv_path_NM="$tmp_nm -p"
1878         break
1879       else
1880         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1881         continue # so that we can try to find one that supports BSD flags
1882       fi
1883     fi
1884   done
1885   IFS="$ac_save_ifs"
1886   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1887 fi
1888 fi
1889
1890 NM="$lt_cv_path_NM"
1891 echo "$ac_t""$NM" 1>&6
1892
1893 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1894 echo "configure:1895: checking how to recognise dependant libraries" >&5
1895 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1896   echo $ac_n "(cached) $ac_c" 1>&6
1897 else
1898   lt_cv_file_magic_cmd='$MAGIC_CMD'
1899 lt_cv_file_magic_test_file=
1900 lt_cv_deplibs_check_method='unknown'
1901 # Need to set the preceding variable on all platforms that support
1902 # interlibrary dependencies.
1903 # 'none' -- dependencies not supported.
1904 # `unknown' -- same as none, but documents that we really don't know.
1905 # 'pass_all' -- all dependencies passed with no checks.
1906 # 'test_compile' -- check by making test program.
1907 # 'file_magic [regex]' -- check by looking for files in library path
1908 # which responds to the $file_magic_cmd with a given egrep regex.
1909 # If you have `file' or equivalent on your system and you're not sure
1910 # whether `pass_all' will *always* work, you probably want this one.
1911
1912 case $host_os in
1913 aix*)
1914   lt_cv_deplibs_check_method=pass_all
1915   ;;
1916
1917 beos*)
1918   lt_cv_deplibs_check_method=pass_all
1919   ;;
1920
1921 bsdi4*)
1922   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1923   lt_cv_file_magic_cmd='/usr/bin/file -L'
1924   lt_cv_file_magic_test_file=/shlib/libc.so
1925   ;;
1926
1927 cygwin* | mingw* |pw32*)
1928   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1929   lt_cv_file_magic_cmd='$OBJDUMP -f'
1930   ;;
1931
1932 darwin* | rhapsody*)
1933   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1934   lt_cv_file_magic_cmd='/usr/bin/file -L'
1935   case "$host_os" in
1936   rhapsody* | darwin1.012)
1937     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1938     ;;
1939   *) # Darwin 1.3 on
1940     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1941     ;;
1942   esac
1943   ;;
1944
1945 freebsd* )
1946   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1947     case $host_cpu in
1948     i*86 )
1949       # Not sure whether the presence of OpenBSD here was a mistake.
1950       # Let's accept both of them until this is cleared up.
1951       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1952       lt_cv_file_magic_cmd=/usr/bin/file
1953       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1954       ;;
1955     esac
1956   else
1957     lt_cv_deplibs_check_method=pass_all
1958   fi
1959   ;;
1960
1961 gnu*)
1962   lt_cv_deplibs_check_method=pass_all
1963   ;;
1964
1965 hpux10.20*|hpux11*)
1966   case $host_cpu in
1967   hppa*)
1968     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1969     lt_cv_file_magic_cmd=/usr/bin/file
1970     lt_cv_file_magic_test_file=/usr/lib/libc.sl
1971     ;;
1972   ia64*)
1973     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1974     lt_cv_file_magic_cmd=/usr/bin/file
1975     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1976     ;;
1977   esac
1978   ;;
1979
1980 irix5* | irix6*)
1981   case $host_os in
1982   irix5*)
1983     # this will be overridden with pass_all, but let us keep it just in case
1984     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1985     ;;
1986   *)
1987     case $LD in
1988     *-32|*"-32 ") libmagic=32-bit;;
1989     *-n32|*"-n32 ") libmagic=N32;;
1990     *-64|*"-64 ") libmagic=64-bit;;
1991     *) libmagic=never-match;;
1992     esac
1993     # this will be overridden with pass_all, but let us keep it just in case
1994     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1995     ;;
1996   esac
1997   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1998   lt_cv_deplibs_check_method=pass_all
1999   ;;
2000
2001 # This must be Linux ELF.
2002 linux-gnu*)
2003   case $host_cpu in
2004   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2005     lt_cv_deplibs_check_method=pass_all ;;
2006   *)
2007     # glibc up to 2.1.1 does not perform some relocations on ARM
2008     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2009   esac
2010   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2011   ;;
2012
2013 netbsd*)
2014   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2015     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2016   else
2017     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2018   fi
2019   ;;
2020
2021 newsos6)
2022   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2023   lt_cv_file_magic_cmd=/usr/bin/file
2024   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2025   ;;
2026
2027 osf3* | osf4* | osf5*)
2028   # this will be overridden with pass_all, but let us keep it just in case
2029   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2030   lt_cv_file_magic_test_file=/shlib/libc.so
2031   lt_cv_deplibs_check_method=pass_all
2032   ;;
2033
2034 sco3.2v5*)
2035   lt_cv_deplibs_check_method=pass_all
2036   ;;
2037
2038 solaris*)
2039   lt_cv_deplibs_check_method=pass_all
2040   lt_cv_file_magic_test_file=/lib/libc.so
2041   ;;
2042
2043 sysv5uw[78]* | sysv4*uw2*)
2044   lt_cv_deplibs_check_method=pass_all
2045   ;;
2046
2047 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2048   case $host_vendor in
2049   ncr)
2050     lt_cv_deplibs_check_method=pass_all
2051     ;;
2052   motorola)
2053     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]'
2054     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2055     ;;
2056   esac
2057   ;;
2058 esac
2059
2060 fi
2061
2062 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2063 file_magic_cmd=$lt_cv_file_magic_cmd
2064 deplibs_check_method=$lt_cv_deplibs_check_method
2065
2066 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2067 echo "configure:2068: checking for object suffix" >&5
2068 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2069   echo $ac_n "(cached) $ac_c" 1>&6
2070 else
2071   rm -f conftest*
2072 echo 'int i = 1;' > conftest.$ac_ext
2073 if { (eval echo configure:2074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2074   for ac_file in conftest.*; do
2075     case $ac_file in
2076     *.c) ;;
2077     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2078     esac
2079   done
2080 else
2081   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2082 fi
2083 rm -f conftest*
2084 fi
2085
2086 echo "$ac_t""$ac_cv_objext" 1>&6
2087 OBJEXT=$ac_cv_objext
2088 ac_objext=$ac_cv_objext
2089
2090 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2091
2092 # Only perform the check for file, if the check method requires it
2093 case $deplibs_check_method in
2094 file_magic*)
2095   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2096     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2097 echo "configure:2098: checking for ${ac_tool_prefix}file" >&5
2098 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2099   echo $ac_n "(cached) $ac_c" 1>&6
2100 else
2101   case $MAGIC_CMD in
2102   /*)
2103   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2104   ;;
2105   ?:/*)
2106   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2107   ;;
2108   *)
2109   ac_save_MAGIC_CMD="$MAGIC_CMD"
2110   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2111   ac_dummy="/usr/bin:$PATH"
2112   for ac_dir in $ac_dummy; do
2113     test -z "$ac_dir" && ac_dir=.
2114     if test -f $ac_dir/${ac_tool_prefix}file; then
2115       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2116       if test -n "$file_magic_test_file"; then
2117         case $deplibs_check_method in
2118         "file_magic "*)
2119           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2120           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2121           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2122             egrep "$file_magic_regex" > /dev/null; then
2123             :
2124           else
2125             cat <<EOF 1>&2
2126
2127 *** Warning: the command libtool uses to detect shared libraries,
2128 *** $file_magic_cmd, produces output that libtool cannot recognize.
2129 *** The result is that libtool may fail to recognize shared libraries
2130 *** as such.  This will affect the creation of libtool libraries that
2131 *** depend on shared libraries, but programs linked with such libtool
2132 *** libraries will work regardless of this problem.  Nevertheless, you
2133 *** may want to report the problem to your system manager and/or to
2134 *** bug-libtool@gnu.org
2135
2136 EOF
2137           fi ;;
2138         esac
2139       fi
2140       break
2141     fi
2142   done
2143   IFS="$ac_save_ifs"
2144   MAGIC_CMD="$ac_save_MAGIC_CMD"
2145   ;;
2146 esac
2147 fi
2148
2149 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2150 if test -n "$MAGIC_CMD"; then
2151   echo "$ac_t""$MAGIC_CMD" 1>&6
2152 else
2153   echo "$ac_t""no" 1>&6
2154 fi
2155
2156 if test -z "$lt_cv_path_MAGIC_CMD"; then
2157   if test -n "$ac_tool_prefix"; then
2158     echo $ac_n "checking for file""... $ac_c" 1>&6
2159 echo "configure:2160: checking for file" >&5
2160 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2161   echo $ac_n "(cached) $ac_c" 1>&6
2162 else
2163   case $MAGIC_CMD in
2164   /*)
2165   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2166   ;;
2167   ?:/*)
2168   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2169   ;;
2170   *)
2171   ac_save_MAGIC_CMD="$MAGIC_CMD"
2172   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2173   ac_dummy="/usr/bin:$PATH"
2174   for ac_dir in $ac_dummy; do
2175     test -z "$ac_dir" && ac_dir=.
2176     if test -f $ac_dir/file; then
2177       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2178       if test -n "$file_magic_test_file"; then
2179         case $deplibs_check_method in
2180         "file_magic "*)
2181           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2182           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2183           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2184             egrep "$file_magic_regex" > /dev/null; then
2185             :
2186           else
2187             cat <<EOF 1>&2
2188
2189 *** Warning: the command libtool uses to detect shared libraries,
2190 *** $file_magic_cmd, produces output that libtool cannot recognize.
2191 *** The result is that libtool may fail to recognize shared libraries
2192 *** as such.  This will affect the creation of libtool libraries that
2193 *** depend on shared libraries, but programs linked with such libtool
2194 *** libraries will work regardless of this problem.  Nevertheless, you
2195 *** may want to report the problem to your system manager and/or to
2196 *** bug-libtool@gnu.org
2197
2198 EOF
2199           fi ;;
2200         esac
2201       fi
2202       break
2203     fi
2204   done
2205   IFS="$ac_save_ifs"
2206   MAGIC_CMD="$ac_save_MAGIC_CMD"
2207   ;;
2208 esac
2209 fi
2210
2211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2212 if test -n "$MAGIC_CMD"; then
2213   echo "$ac_t""$MAGIC_CMD" 1>&6
2214 else
2215   echo "$ac_t""no" 1>&6
2216 fi
2217
2218   else
2219     MAGIC_CMD=:
2220   fi
2221 fi
2222
2223   fi
2224   ;;
2225 esac
2226
2227 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2228 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2230 echo "configure:2231: checking for $ac_word" >&5
2231 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2232   echo $ac_n "(cached) $ac_c" 1>&6
2233 else
2234   if test -n "$RANLIB"; then
2235   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2236 else
2237   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2238   ac_dummy="$PATH"
2239   for ac_dir in $ac_dummy; do
2240     test -z "$ac_dir" && ac_dir=.
2241     if test -f $ac_dir/$ac_word; then
2242       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2243       break
2244     fi
2245   done
2246   IFS="$ac_save_ifs"
2247 fi
2248 fi
2249 RANLIB="$ac_cv_prog_RANLIB"
2250 if test -n "$RANLIB"; then
2251   echo "$ac_t""$RANLIB" 1>&6
2252 else
2253   echo "$ac_t""no" 1>&6
2254 fi
2255
2256
2257 if test -z "$ac_cv_prog_RANLIB"; then
2258 if test -n "$ac_tool_prefix"; then
2259   # Extract the first word of "ranlib", so it can be a program name with args.
2260 set dummy ranlib; ac_word=$2
2261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2262 echo "configure:2263: checking for $ac_word" >&5
2263 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2264   echo $ac_n "(cached) $ac_c" 1>&6
2265 else
2266   if test -n "$RANLIB"; then
2267   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2268 else
2269   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2270   ac_dummy="$PATH"
2271   for ac_dir in $ac_dummy; do
2272     test -z "$ac_dir" && ac_dir=.
2273     if test -f $ac_dir/$ac_word; then
2274       ac_cv_prog_RANLIB="ranlib"
2275       break
2276     fi
2277   done
2278   IFS="$ac_save_ifs"
2279   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2280 fi
2281 fi
2282 RANLIB="$ac_cv_prog_RANLIB"
2283 if test -n "$RANLIB"; then
2284   echo "$ac_t""$RANLIB" 1>&6
2285 else
2286   echo "$ac_t""no" 1>&6
2287 fi
2288
2289 else
2290   RANLIB=":"
2291 fi
2292 fi
2293
2294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2295 set dummy ${ac_tool_prefix}strip; ac_word=$2
2296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_word" >&5
2298 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2299   echo $ac_n "(cached) $ac_c" 1>&6
2300 else
2301   if test -n "$STRIP"; then
2302   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2303 else
2304   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2305   ac_dummy="$PATH"
2306   for ac_dir in $ac_dummy; do
2307     test -z "$ac_dir" && ac_dir=.
2308     if test -f $ac_dir/$ac_word; then
2309       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2310       break
2311     fi
2312   done
2313   IFS="$ac_save_ifs"
2314 fi
2315 fi
2316 STRIP="$ac_cv_prog_STRIP"
2317 if test -n "$STRIP"; then
2318   echo "$ac_t""$STRIP" 1>&6
2319 else
2320   echo "$ac_t""no" 1>&6
2321 fi
2322
2323
2324 if test -z "$ac_cv_prog_STRIP"; then
2325 if test -n "$ac_tool_prefix"; then
2326   # Extract the first word of "strip", so it can be a program name with args.
2327 set dummy strip; ac_word=$2
2328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2329 echo "configure:2330: checking for $ac_word" >&5
2330 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2331   echo $ac_n "(cached) $ac_c" 1>&6
2332 else
2333   if test -n "$STRIP"; then
2334   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2335 else
2336   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2337   ac_dummy="$PATH"
2338   for ac_dir in $ac_dummy; do
2339     test -z "$ac_dir" && ac_dir=.
2340     if test -f $ac_dir/$ac_word; then
2341       ac_cv_prog_STRIP="strip"
2342       break
2343     fi
2344   done
2345   IFS="$ac_save_ifs"
2346   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2347 fi
2348 fi
2349 STRIP="$ac_cv_prog_STRIP"
2350 if test -n "$STRIP"; then
2351   echo "$ac_t""$STRIP" 1>&6
2352 else
2353   echo "$ac_t""no" 1>&6
2354 fi
2355
2356 else
2357   STRIP=":"
2358 fi
2359 fi
2360
2361
2362 # Check for any special flags to pass to ltconfig.
2363 libtool_flags="--cache-file=$cache_file"
2364 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2365 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2366 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2367 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2368 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2369 libtool_flags="$libtool_flags --enable-dlopen"
2370
2371 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2372 if test "${enable_libtool_lock+set}" = set; then
2373   enableval="$enable_libtool_lock"
2374   :
2375 fi
2376
2377 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2378 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2379
2380 # Check whether --with-pic or --without-pic was given.
2381 if test "${with_pic+set}" = set; then
2382   withval="$with_pic"
2383   pic_mode="$withval"
2384 else
2385   pic_mode=default
2386 fi
2387
2388 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2389 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2390
2391 # Some flags need to be propagated to the compiler or linker for good
2392 # libtool support.
2393 case $host in
2394 *-*-irix6*)
2395   # Find out which ABI we are using.
2396   echo '#line 2397 "configure"' > conftest.$ac_ext
2397   if { (eval echo configure:2398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2398     case `/usr/bin/file conftest.$ac_objext` in
2399     *32-bit*)
2400       LD="${LD-ld} -32"
2401       ;;
2402     *N32*)
2403       LD="${LD-ld} -n32"
2404       ;;
2405     *64-bit*)
2406       LD="${LD-ld} -64"
2407       ;;
2408     esac
2409   fi
2410   rm -rf conftest*
2411   ;;
2412
2413 ia64-*-hpux*)
2414   # Find out which ABI we are using.
2415   echo 'int i;' > conftest.$ac_ext
2416   if { (eval echo configure:2417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2417     case "`/usr/bin/file conftest.o`" in
2418     *ELF-32*)
2419       HPUX_IA64_MODE="32"
2420       ;;
2421     *ELF-64*)
2422       HPUX_IA64_MODE="64"
2423       ;;
2424     esac
2425   fi
2426   rm -rf conftest*
2427   ;;
2428
2429 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2430   # Find out which ABI we are using.
2431   echo 'int i;' > conftest.$ac_ext
2432   if { (eval echo configure:2433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2433     case "`/usr/bin/file conftest.o`" in
2434     *32-bit*)
2435       case $host in
2436         x86_64-*linux*)
2437           LD="${LD-ld} -m elf_i386"
2438           ;;
2439         ppc64-*linux*)
2440           LD="${LD-ld} -m elf32ppclinux"
2441           ;;
2442         s390x-*linux*)
2443           LD="${LD-ld} -m elf_s390"
2444           ;;
2445         sparc64-*linux*)
2446           LD="${LD-ld} -m elf32_sparc"
2447           ;;
2448       esac
2449       ;;
2450     *64-bit*)
2451       case $host in
2452         x86_64-*linux*)
2453           LD="${LD-ld} -m elf_x86_64"
2454           ;;
2455         ppc*-*linux*|powerpc*-*linux*)
2456           LD="${LD-ld} -m elf64ppc"
2457           ;;
2458         s390*-*linux*)
2459           LD="${LD-ld} -m elf64_s390"
2460           ;;
2461         sparc*-*linux*)
2462           LD="${LD-ld} -m elf64_sparc"
2463           ;;
2464       esac
2465       ;;
2466     esac
2467   fi
2468   rm -rf conftest*
2469   ;;
2470
2471 *-*-sco3.2v5*)
2472   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2473   SAVE_CFLAGS="$CFLAGS"
2474   CFLAGS="$CFLAGS -belf"
2475   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2476 echo "configure:2477: checking whether the C compiler needs -belf" >&5
2477 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2478   echo $ac_n "(cached) $ac_c" 1>&6
2479 else
2480   
2481      ac_ext=c
2482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2483 ac_cpp='$CPP $CPPFLAGS'
2484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2486 cross_compiling=$ac_cv_prog_cc_cross
2487
2488      cat > conftest.$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2491
2492 int main() {
2493
2494 ; return 0; }
2495 EOF
2496 if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2497   rm -rf conftest*
2498   lt_cv_cc_needs_belf=yes
2499 else
2500   echo "configure: failed program was:" >&5
2501   cat conftest.$ac_ext >&5
2502   rm -rf conftest*
2503   lt_cv_cc_needs_belf=no
2504 fi
2505 rm -f conftest*
2506      ac_ext=c
2507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2511 cross_compiling=$ac_cv_prog_cc_cross
2512
2513 fi
2514
2515 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2516   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2517     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2518     CFLAGS="$SAVE_CFLAGS"
2519   fi
2520   ;;
2521
2522
2523 esac
2524
2525 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2526 echo "configure:2527: checking how to run the C++ preprocessor" >&5
2527 if test -z "$CXXCPP"; then
2528 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2529   echo $ac_n "(cached) $ac_c" 1>&6
2530 else
2531   ac_ext=C
2532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2533 ac_cpp='$CXXCPP $CPPFLAGS'
2534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2536 cross_compiling=$ac_cv_prog_cxx_cross
2537   CXXCPP="${CXX-g++} -E"
2538   cat > conftest.$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2541 #include <stdlib.h>
2542 EOF
2543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2544 { (eval echo configure:2545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2546 if test -z "$ac_err"; then
2547   :
2548 else
2549   echo "$ac_err" >&5
2550   echo "configure: failed program was:" >&5
2551   cat conftest.$ac_ext >&5
2552   rm -rf conftest*
2553   CXXCPP=/lib/cpp
2554 fi
2555 rm -f conftest*
2556   ac_cv_prog_CXXCPP="$CXXCPP"
2557 ac_ext=c
2558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2562 cross_compiling=$ac_cv_prog_cc_cross
2563 fi
2564 fi
2565 CXXCPP="$ac_cv_prog_CXXCPP"
2566 echo "$ac_t""$CXXCPP" 1>&6
2567
2568
2569 # Save cache, so that ltconfig can load it
2570 cat > confcache <<\EOF
2571 # This file is a shell script that caches the results of configure
2572 # tests run on this system so they can be shared between configure
2573 # scripts and configure runs.  It is not useful on other systems.
2574 # If it contains results you don't want to keep, you may remove or edit it.
2575 #
2576 # By default, configure uses ./config.cache as the cache file,
2577 # creating it if it does not exist already.  You can give configure
2578 # the --cache-file=FILE option to use a different cache file; that is
2579 # what configure does when it calls configure scripts in
2580 # subdirectories, so they share the cache.
2581 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2582 # config.status only pays attention to the cache file if you give it the
2583 # --recheck option to rerun configure.
2584 #
2585 EOF
2586 # The following way of writing the cache mishandles newlines in values,
2587 # but we know of no workaround that is simple, portable, and efficient.
2588 # So, don't put newlines in cache variables' values.
2589 # Ultrix sh set writes to stderr and can't be redirected directly,
2590 # and sets the high bit in the cache file unless we assign to the vars.
2591 (set) 2>&1 |
2592   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2593   *ac_space=\ *)
2594     # `set' does not quote correctly, so add quotes (double-quote substitution
2595     # turns \\\\ into \\, and sed turns \\ into \).
2596     sed -n \
2597       -e "s/'/'\\\\''/g" \
2598       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2599     ;;
2600   *)
2601     # `set' quotes correctly as required by POSIX, so do not add quotes.
2602     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2603     ;;
2604   esac >> confcache
2605 if cmp -s $cache_file confcache; then
2606   :
2607 else
2608   if test -w $cache_file; then
2609     echo "updating cache $cache_file"
2610     cat confcache > $cache_file
2611   else
2612     echo "not updating unwritable cache $cache_file"
2613   fi
2614 fi
2615 rm -f confcache
2616
2617
2618 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2619 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2620 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2621 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2622 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2623 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2624 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2625 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2626 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2627 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2628
2629 # Reload cache, that may have been modified by ltconfig
2630 if test -r "$cache_file"; then
2631   echo "loading cache $cache_file"
2632   . $cache_file
2633 else
2634   echo "creating cache $cache_file"
2635   > $cache_file
2636 fi
2637
2638
2639 # This can be used to rebuild libtool when needed
2640 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2641
2642 # Always use our own libtool.
2643 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2644
2645 # Redirect the config.log output again, so that the ltconfig log is not
2646 # clobbered by the next message.
2647 exec 5>>./config.log
2648
2649
2650
2651 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2652 lt_save_CC="$CC"
2653 lt_save_CFLAGS="$CFLAGS"
2654 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2655 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2656 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2657 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2658 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2659 deplibs_check_method="$deplibs_check_method" \
2660 file_magic_cmd="$file_magic_cmd" \
2661 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2662 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2663 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2664 CC="$lt_save_CC"
2665 CFLAGS="$lt_save_CFLAGS"
2666
2667 # Redirect the config.log output again, so that the ltconfig log is not
2668 # clobbered by the next message.
2669 exec 5>>./config.log
2670
2671   
2672
2673   
2674          
2675          
2676
2677
2678
2679 # Check for c++ or library specific bits that don't require linking.
2680 #GLIBCPP_CHECK_COMPILER_VERSION
2681 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2682 echo "configure:2683: checking for GNU make" >&5
2683 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2684   echo $ac_n "(cached) $ac_c" 1>&6
2685 else
2686   _cv_gnu_make_command='' ;
2687           for a in "${MAKE-make}" make gmake gnumake ; do
2688                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2689                   then
2690                           _cv_gnu_make_command=$a ;
2691                           break;
2692                   fi
2693           done ;
2694   
2695 fi
2696
2697 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2698   if test  "x$_cv_gnu_make_command" != "x"  ; then
2699           ifGNUmake='' ;
2700   else
2701           ifGNUmake='#' ;
2702   fi
2703   
2704
2705
2706 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2707 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2708 echo "configure:2709: checking how to run the C preprocessor" >&5
2709 # On Suns, sometimes $CPP names a directory.
2710 if test -n "$CPP" && test -d "$CPP"; then
2711   CPP=
2712 fi
2713 if test -z "$CPP"; then
2714 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2715   echo $ac_n "(cached) $ac_c" 1>&6
2716 else
2717     # This must be in double quotes, not single quotes, because CPP may get
2718   # substituted into the Makefile and "${CC-cc}" will confuse make.
2719   CPP="${CC-cc} -E"
2720   # On the NeXT, cc -E runs the code through the compiler's parser,
2721   # not just through cpp.
2722   cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2725 #include <assert.h>
2726 Syntax Error
2727 EOF
2728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2729 { (eval echo configure:2730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2731 if test -z "$ac_err"; then
2732   :
2733 else
2734   echo "$ac_err" >&5
2735   echo "configure: failed program was:" >&5
2736   cat conftest.$ac_ext >&5
2737   rm -rf conftest*
2738   CPP="${CC-cc} -E -traditional-cpp"
2739   cat > conftest.$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2742 #include <assert.h>
2743 Syntax Error
2744 EOF
2745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2746 { (eval echo configure:2747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2748 if test -z "$ac_err"; then
2749   :
2750 else
2751   echo "$ac_err" >&5
2752   echo "configure: failed program was:" >&5
2753   cat conftest.$ac_ext >&5
2754   rm -rf conftest*
2755   CPP="${CC-cc} -nologo -E"
2756   cat > conftest.$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2759 #include <assert.h>
2760 Syntax Error
2761 EOF
2762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2763 { (eval echo configure:2764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2765 if test -z "$ac_err"; then
2766   :
2767 else
2768   echo "$ac_err" >&5
2769   echo "configure: failed program was:" >&5
2770   cat conftest.$ac_ext >&5
2771   rm -rf conftest*
2772   CPP=/lib/cpp
2773 fi
2774 rm -f conftest*
2775 fi
2776 rm -f conftest*
2777 fi
2778 rm -f conftest*
2779   ac_cv_prog_CPP="$CPP"
2780 fi
2781   CPP="$ac_cv_prog_CPP"
2782 else
2783   ac_cv_prog_CPP="$CPP"
2784 fi
2785 echo "$ac_t""$CPP" 1>&6
2786
2787
2788   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2789 echo "configure:2790: checking for cstdio to use" >&5
2790   # Check whether --enable-cstdio or --disable-cstdio was given.
2791 if test "${enable_cstdio+set}" = set; then
2792   enableval="$enable_cstdio"
2793   if test x$enable_cstdio = xno; then
2794      enable_cstdio=stdio
2795   fi
2796 else
2797   enable_cstdio=stdio
2798 fi
2799
2800
2801   enable_cstdio_flag=$enable_cstdio
2802
2803     case x${enable_cstdio_flag} in
2804     xlibio)
2805       CSTDIO_H=config/io/c_io_libio.h
2806       BASIC_FILE_H=config/io/basic_file_libio.h
2807       BASIC_FILE_CC=config/io/basic_file_libio.cc
2808       echo "$ac_t""libio" 1>&6
2809
2810       # see if we are on a system with libio native (ie, linux)
2811       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2812 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2813 echo "configure:2814: checking for libio.h" >&5
2814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2815   echo $ac_n "(cached) $ac_c" 1>&6
2816 else
2817   cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2820 #include <libio.h>
2821 EOF
2822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2823 { (eval echo configure:2824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2825 if test -z "$ac_err"; then
2826   rm -rf conftest*
2827   eval "ac_cv_header_$ac_safe=yes"
2828 else
2829   echo "$ac_err" >&5
2830   echo "configure: failed program was:" >&5
2831   cat conftest.$ac_ext >&5
2832   rm -rf conftest*
2833   eval "ac_cv_header_$ac_safe=no"
2834 fi
2835 rm -f conftest*
2836 fi
2837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2838   echo "$ac_t""yes" 1>&6
2839   has_libio=yes
2840 else
2841   echo "$ac_t""no" 1>&6
2842 has_libio=no
2843 fi
2844
2845
2846       # Need to check and see what version of glibc is being used. If
2847       # it's not glibc-2.2 or higher, then we'll need to go ahead and 
2848       # compile most of libio for linux systems.
2849       if test x$has_libio = x"yes"; then
2850         case "$target" in
2851           *-*-linux*)
2852               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2853 echo "configure:2854: checking for glibc version >= 2.2" >&5
2854               cat > conftest.$ac_ext <<EOF
2855 #line 2856 "configure"
2856 #include "confdefs.h"
2857
2858             #include <features.h>
2859               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2860                     ok
2861               #endif
2862               
2863 EOF
2864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2865   egrep "ok" >/dev/null 2>&1; then
2866   rm -rf conftest*
2867   glibc_satisfactory=yes
2868 else
2869   rm -rf conftest*
2870   glibc_satisfactory=no
2871 fi
2872 rm -f conftest*
2873
2874               echo "$ac_t""$glibc_satisfactory" 1>&6
2875             ;;
2876         esac
2877
2878         # XXX at the moment, admit defeat and force the recompilation
2879         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2880         glibc_satisfactory=no        
2881
2882         if test x$glibc_satisfactory = x"yes"; then
2883            need_libio=no
2884            need_wlibio=no        
2885         else
2886            need_libio=yes
2887            # bkoz XXX need to add checks to enable this
2888            # pme XXX here's a first pass at such a check
2889            if test x$enable_c_mbchar != xno; then
2890               need_wlibio=yes
2891            else
2892               need_wlibio=no
2893            fi
2894         fi
2895
2896       else
2897          # Using libio, but <libio.h> doesn't exist on the target system. . .
2898          need_libio=yes
2899          # bkoz XXX need to add checks to enable this
2900          # pme XXX here's a first pass at such a check
2901          if test x$enable_c_mbchar != xno; then
2902              need_wlibio=yes
2903          else
2904              need_wlibio=no
2905          fi
2906       fi
2907       ;;
2908     xstdio | x | xno | xnone | xyes)
2909       # default
2910       CSTDIO_H=config/io/c_io_stdio.h
2911       BASIC_FILE_H=config/io/basic_file_stdio.h
2912       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2913       echo "$ac_t""stdio" 1>&6
2914
2915       # We're not using stdio.
2916       need_libio=no
2917       need_wlibio=no
2918       ;;
2919     *)
2920       echo "$enable_cstdio is an unknown io package" 1>&2
2921       exit 1
2922       ;;
2923   esac
2924   
2925   
2926   
2927
2928   # 2000-08-04 bkoz hack
2929   CCODECVT_C=config/io/c_io_libio_codecvt.c
2930   
2931   # 2000-08-04 bkoz hack
2932
2933   
2934
2935 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2936   GLIBCPP_BUILD_LIBIO_TRUE=
2937   GLIBCPP_BUILD_LIBIO_FALSE='#'
2938 else
2939   GLIBCPP_BUILD_LIBIO_TRUE='#'
2940   GLIBCPP_BUILD_LIBIO_FALSE=
2941 fi
2942   
2943
2944 if test "$need_libio" = yes; then
2945   GLIBCPP_NEED_LIBIO_TRUE=
2946   GLIBCPP_NEED_LIBIO_FALSE='#'
2947 else
2948   GLIBCPP_NEED_LIBIO_TRUE='#'
2949   GLIBCPP_NEED_LIBIO_FALSE=
2950 fi
2951   
2952
2953 if test "$need_wlibio" = yes; then
2954   GLIBCPP_NEED_WLIBIO_TRUE=
2955   GLIBCPP_NEED_WLIBIO_FALSE='#'
2956 else
2957   GLIBCPP_NEED_WLIBIO_TRUE='#'
2958   GLIBCPP_NEED_WLIBIO_FALSE=
2959 fi
2960   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2961     libio_la=../libio/libio.la
2962   else
2963     libio_la=
2964   fi
2965   
2966
2967
2968   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2969 echo "configure:2970: checking for clocale to use" >&5
2970   # Check whether --enable-clocale or --disable-clocale was given.
2971 if test "${enable_clocale+set}" = set; then
2972   enableval="$enable_clocale"
2973   if test x$enable_clocale = xno; then
2974      enable_clocale=no
2975   fi
2976 else
2977   enable_clocale=no
2978 fi
2979
2980
2981   enable_clocale_flag=$enable_clocale
2982
2983       if test x$enable_clocale_flag = xno; then
2984     case x${target_os} in
2985       xlinux* | xgnu*)
2986         cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2989
2990         #include <features.h>
2991         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) 
2992           _GLIBCPP_ok
2993         #endif
2994         
2995 EOF
2996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2997   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2998   rm -rf conftest*
2999   enable_clocale_flag=gnu
3000 else
3001   rm -rf conftest*
3002   enable_clocale_flag=generic
3003 fi
3004 rm -f conftest*
3005
3006
3007         # Test for bugs early in glibc-2.2.x series
3008         if test x$enable_clocale_flag = xgnu; then
3009           if test "$cross_compiling" = yes; then
3010   enable_clocale_flag=generic
3011 else
3012   cat > conftest.$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3015
3016           #define _GNU_SOURCE 1
3017           #include <locale.h>
3018           #include <string.h>
3019           #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3020           extern __typeof(newlocale) __newlocale;
3021           extern __typeof(duplocale) __duplocale;
3022           extern __typeof(strcoll_l) __strcoll_l;
3023           #endif
3024           int main()
3025           {
3026             const char __one[] = "Äuglein Augmen";
3027             const char __two[] = "Äuglein";
3028             int i;
3029             int j;
3030             __locale_t  loc;
3031             __locale_t  loc_dup;
3032             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3033             loc_dup = __duplocale(loc);
3034             i = __strcoll_l(__one, __two, loc);
3035             j = __strcoll_l(__one, __two, loc_dup);
3036             return 0;
3037           }
3038           
3039 EOF
3040 if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3041 then
3042   enable_clocale_flag=gnu
3043 else
3044   echo "configure: failed program was:" >&5
3045   cat conftest.$ac_ext >&5
3046   rm -fr conftest*
3047   enable_clocale_flag=generic
3048 fi
3049 rm -fr conftest*
3050 fi
3051
3052         fi
3053
3054         # ... at some point put __strxfrm_l tests in as well.
3055         ;;
3056       *)
3057         enable_clocale_flag=generic
3058         ;;
3059     esac
3060   fi
3061
3062     # Check whether --enable-nls or --disable-nls was given.
3063 if test "${enable_nls+set}" = set; then
3064   enableval="$enable_nls"
3065   :
3066 else
3067   enable_nls=yes
3068 fi
3069
3070   USE_NLS=no
3071
3072     case x${enable_clocale_flag} in
3073     xgeneric)
3074       echo "$ac_t""generic" 1>&6
3075
3076       CLOCALE_H=config/locale/generic/c_locale.h
3077       CLOCALE_CC=config/locale/generic/c_locale.cc
3078       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3079       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3080       CCOLLATE_CC=config/locale/generic/collate_members.cc
3081       CCTYPE_CC=config/locale/generic/ctype_members.cc
3082       CMESSAGES_H=config/locale/generic/messages_members.h
3083       CMESSAGES_CC=config/locale/generic/messages_members.cc
3084       CMONEY_CC=config/locale/generic/monetary_members.cc
3085       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3086       CTIME_CC=config/locale/generic/time_members.cc
3087       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3088       ;;
3089     xgnu)
3090       echo "$ac_t""gnu" 1>&6
3091
3092       # Declare intention to use gettext, and add support for specific
3093       # languages.
3094       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3095       ALL_LINGUAS="de fr"
3096
3097       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3098       # Extract the first word of "msgfmt", so it can be a program name with args.
3099 set dummy msgfmt; ac_word=$2
3100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3101 echo "configure:3102: checking for $ac_word" >&5
3102 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3103   echo $ac_n "(cached) $ac_c" 1>&6
3104 else
3105   if test -n "$check_msgfmt"; then
3106   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3107 else
3108   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3109   ac_dummy="$PATH"
3110   for ac_dir in $ac_dummy; do
3111     test -z "$ac_dir" && ac_dir=.
3112     if test -f $ac_dir/$ac_word; then
3113       ac_cv_prog_check_msgfmt="yes"
3114       break
3115     fi
3116   done
3117   IFS="$ac_save_ifs"
3118   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3119 fi
3120 fi
3121 check_msgfmt="$ac_cv_prog_check_msgfmt"
3122 if test -n "$check_msgfmt"; then
3123   echo "$ac_t""$check_msgfmt" 1>&6
3124 else
3125   echo "$ac_t""no" 1>&6
3126 fi
3127
3128       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3129         USE_NLS=yes
3130       fi
3131       # Export the build objects.
3132       for ling in $ALL_LINGUAS; do \
3133         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3134         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3135       done
3136       
3137       
3138
3139       CLOCALE_H=config/locale/gnu/c_locale.h
3140       CLOCALE_CC=config/locale/gnu/c_locale.cc
3141       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3142       CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3143       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3144       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3145       CMESSAGES_H=config/locale/gnu/messages_members.h
3146       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3147       CMONEY_CC=config/locale/gnu/monetary_members.cc
3148       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3149       CTIME_CC=config/locale/gnu/time_members.cc
3150       CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3151       ;;
3152     xieee_1003.1-2001)
3153       echo "$ac_t""generic" 1>&6
3154
3155       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3156       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3157       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3158       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3159       CCOLLATE_CC=config/locale/generic/collate_members.cc
3160       CCTYPE_CC=config/locale/generic/ctype_members.cc
3161       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3162       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3163       CMONEY_CC=config/locale/generic/monetary_members.cc
3164       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3165       CTIME_CC=config/locale/generic/time_members.cc
3166       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3167       ;;
3168     *)
3169       echo "$enable_clocale is an unknown locale package" 1>&2
3170       exit 1
3171       ;;
3172   esac
3173
3174   # This is where the testsuite looks for locale catalogs, using the
3175   # -DLOCALEDIR define during testsuite compilation.
3176   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3177   
3178
3179   
3180   
3181   
3182   
3183   
3184   
3185   
3186   
3187   
3188   
3189   
3190   
3191   
3192
3193 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3194 echo "configure:3195: checking for c header strategy to use" >&5
3195 # Check whether --enable-cheaders or --disable-cheaders was given.
3196 if test "${enable_cheaders+set}" = set; then
3197   enableval="$enable_cheaders"
3198   
3199   case "$enableval" in
3200    c) 
3201         enable_cheaders=c 
3202         ;;
3203    c_std)  
3204         enable_cheaders=c_std 
3205         ;;
3206    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; } 
3207         ;;
3208   esac
3209 else
3210   enable_cheaders=c_std
3211 fi
3212
3213   echo "$ac_t""$enable_cheaders" 1>&6
3214
3215     case "$enable_cheaders" in
3216     c_std)   
3217         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3218         ;;
3219     c)   
3220         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3221         ;;
3222   esac
3223
3224   
3225   
3226
3227 if test "$enable_cheaders" = c; then
3228   GLIBCPP_C_HEADERS_C_TRUE=
3229   GLIBCPP_C_HEADERS_C_FALSE='#'
3230 else
3231   GLIBCPP_C_HEADERS_C_TRUE='#'
3232   GLIBCPP_C_HEADERS_C_FALSE=
3233 fi
3234   
3235
3236 if test "$enable_cheaders" = c_std; then
3237   GLIBCPP_C_HEADERS_C_STD_TRUE=
3238   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3239 else
3240   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3241   GLIBCPP_C_HEADERS_C_STD_FALSE=
3242 fi
3243   
3244
3245 if test "$c_compatibility" = yes; then
3246   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3247   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3248 else
3249   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3250   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3251 fi
3252
3253 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3254 if test "${enable_c_mbchar+set}" = set; then
3255   enableval="$enable_c_mbchar"
3256   case "$enableval" in
3257  yes) enable_c_mbchar=yes ;;
3258  no)  enable_c_mbchar=no ;;
3259  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3260  esac
3261 else
3262   enable_c_mbchar=yes
3263 fi
3264
3265   
3266   # Check whether --enable-c99 or --disable-c99 was given.
3267 if test "${enable_c99+set}" = set; then
3268   enableval="$enable_c99"
3269     case "$enableval" in
3270    yes) enable_c99=yes ;;
3271    no)  enable_c99=no ;;
3272    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3273    esac
3274 else
3275   enable_c99=yes
3276 fi
3277  
3278   
3279   ac_ext=C
3280 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3281 ac_cpp='$CXXCPP $CPPFLAGS'
3282 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3283 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3284 cross_compiling=$ac_cv_prog_cxx_cross
3285
3286
3287   # Check for the existence of <math.h> functions used if C99 is enabled.
3288   ac_c99_math=yes;
3289   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3290 echo "configure:3291: checking for ISO C99 support in <math.h>" >&5
3291   cat > conftest.$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3294 #include <math.h>
3295 int main() {
3296 fpclassify(0.0);
3297 ; return 0; }
3298 EOF
3299 if { (eval echo configure:3300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3300   :
3301 else
3302   echo "configure: failed program was:" >&5
3303   cat conftest.$ac_ext >&5
3304   rm -rf conftest*
3305   ac_c99_math=no
3306 fi
3307 rm -f conftest*
3308   cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3311 #include <math.h>
3312 int main() {
3313 isfinite(0.0);
3314 ; return 0; }
3315 EOF
3316 if { (eval echo configure:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3317   :
3318 else
3319   echo "configure: failed program was:" >&5
3320   cat conftest.$ac_ext >&5
3321   rm -rf conftest*
3322   ac_c99_math=no
3323 fi
3324 rm -f conftest*
3325   cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328 #include <math.h>
3329 int main() {
3330 isinf(0.0);
3331 ; return 0; }
3332 EOF
3333 if { (eval echo configure:3334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3334   :
3335 else
3336   echo "configure: failed program was:" >&5
3337   cat conftest.$ac_ext >&5
3338   rm -rf conftest*
3339   ac_c99_math=no
3340 fi
3341 rm -f conftest*
3342   cat > conftest.$ac_ext <<EOF
3343 #line 3344 "configure"
3344 #include "confdefs.h"
3345 #include <math.h>
3346 int main() {
3347 isnan(0.0);
3348 ; return 0; }
3349 EOF
3350 if { (eval echo configure:3351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3351   :
3352 else
3353   echo "configure: failed program was:" >&5
3354   cat conftest.$ac_ext >&5
3355   rm -rf conftest*
3356   ac_c99_math=no
3357 fi
3358 rm -f conftest*
3359   cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3362 #include <math.h>
3363 int main() {
3364 isnormal(0.0);
3365 ; return 0; }
3366 EOF
3367 if { (eval echo configure:3368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3368   :
3369 else
3370   echo "configure: failed program was:" >&5
3371   cat conftest.$ac_ext >&5
3372   rm -rf conftest*
3373   ac_c99_math=no
3374 fi
3375 rm -f conftest*
3376   cat > conftest.$ac_ext <<EOF
3377 #line 3378 "configure"
3378 #include "confdefs.h"
3379 #include <math.h>
3380 int main() {
3381 signbit(0.0);
3382 ; return 0; }
3383 EOF
3384 if { (eval echo configure:3385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3385   :
3386 else
3387   echo "configure: failed program was:" >&5
3388   cat conftest.$ac_ext >&5
3389   rm -rf conftest*
3390   ac_c99_math=no
3391 fi
3392 rm -f conftest*
3393   cat > conftest.$ac_ext <<EOF
3394 #line 3395 "configure"
3395 #include "confdefs.h"
3396 #include <math.h>
3397 int main() {
3398 isgreater(0.0,0.0);
3399 ; return 0; }
3400 EOF
3401 if { (eval echo configure:3402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3402   :
3403 else
3404   echo "configure: failed program was:" >&5
3405   cat conftest.$ac_ext >&5
3406   rm -rf conftest*
3407   ac_c99_math=no
3408 fi
3409 rm -f conftest*
3410   cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 #include <math.h>
3414 int main() {
3415 isgreaterequal(0.0,0.0);
3416 ; return 0; }
3417 EOF
3418 if { (eval echo configure:3419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3419   :
3420 else
3421   echo "configure: failed program was:" >&5
3422   cat conftest.$ac_ext >&5
3423   rm -rf conftest*
3424   ac_c99_math=no
3425 fi
3426 rm -f conftest*
3427   cat > conftest.$ac_ext <<EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3430 #include <math.h>
3431 int main() {
3432 isless(0.0,0.0);
3433 ; return 0; }
3434 EOF
3435 if { (eval echo configure:3436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3436   :
3437 else
3438   echo "configure: failed program was:" >&5
3439   cat conftest.$ac_ext >&5
3440   rm -rf conftest*
3441   ac_c99_math=no
3442 fi
3443 rm -f conftest*
3444   cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3447 #include <math.h>
3448 int main() {
3449 islessequal(0.0,0.0);
3450 ; return 0; }
3451 EOF
3452 if { (eval echo configure:3453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3453   :
3454 else
3455   echo "configure: failed program was:" >&5
3456   cat conftest.$ac_ext >&5
3457   rm -rf conftest*
3458   ac_c99_math=no
3459 fi
3460 rm -f conftest*
3461   cat > conftest.$ac_ext <<EOF
3462 #line 3463 "configure"
3463 #include "confdefs.h"
3464 #include <math.h>
3465 int main() {
3466 islessgreater(0.0,0.0);
3467 ; return 0; }
3468 EOF
3469 if { (eval echo configure:3470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3470   :
3471 else
3472   echo "configure: failed program was:" >&5
3473   cat conftest.$ac_ext >&5
3474   rm -rf conftest*
3475   ac_c99_math=no
3476 fi
3477 rm -f conftest*
3478   cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3481 #include <math.h>
3482 int main() {
3483 isunordered(0.0,0.0);
3484 ; return 0; }
3485 EOF
3486 if { (eval echo configure:3487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3487   :
3488 else
3489   echo "configure: failed program was:" >&5
3490   cat conftest.$ac_ext >&5
3491   rm -rf conftest*
3492   ac_c99_math=no
3493 fi
3494 rm -f conftest*
3495   echo "$ac_t""$ac_c99_math" 1>&6
3496
3497   # Check for the existence in <stdio.h> of vscanf, et. al.
3498   ac_c99_stdio=yes;
3499   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3500 echo "configure:3501: checking for ISO C99 support in <stdio.h>" >&5
3501   cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 #include <stdio.h>
3505 int main() {
3506 snprintf("12", 0, "%i");
3507 ; return 0; }
3508 EOF
3509 if { (eval echo configure:3510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3510   :
3511 else
3512   echo "configure: failed program was:" >&5
3513   cat conftest.$ac_ext >&5
3514   rm -rf conftest*
3515   ac_c99_stdio=no
3516 fi
3517 rm -f conftest*
3518   cat > conftest.$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 #include <stdio.h>
3522                   #include <stdarg.h>
3523                   void foo(char* fmt, ...)
3524                   {va_list args; va_start(args, fmt);
3525                   vfscanf(stderr, "%i", args);}
3526 int main() {
3527
3528 ; return 0; }
3529 EOF
3530 if { (eval echo configure:3531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3531   :
3532 else
3533   echo "configure: failed program was:" >&5
3534   cat conftest.$ac_ext >&5
3535   rm -rf conftest*
3536   ac_c99_stdio=no
3537 fi
3538 rm -f conftest*
3539   cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3542 #include <stdio.h>
3543                   #include <stdarg.h>
3544                   void foo(char* fmt, ...)
3545                   {va_list args; va_start(args, fmt);
3546                   vscanf("%i", args);}
3547 int main() {
3548
3549 ; return 0; }
3550 EOF
3551 if { (eval echo configure:3552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3552   :
3553 else
3554   echo "configure: failed program was:" >&5
3555   cat conftest.$ac_ext >&5
3556   rm -rf conftest*
3557   ac_c99_stdio=no
3558 fi
3559 rm -f conftest*
3560   cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 #include <stdio.h>
3564                   #include <stdarg.h>
3565                   void foo(char* fmt, ...)
3566                   {va_list args; va_start(args, fmt);
3567                   vsnprintf(fmt, 0, "%i", args);}
3568 int main() {
3569
3570 ; return 0; }
3571 EOF
3572 if { (eval echo configure:3573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3573   :
3574 else
3575   echo "configure: failed program was:" >&5
3576   cat conftest.$ac_ext >&5
3577   rm -rf conftest*
3578   ac_c99_stdio=no
3579 fi
3580 rm -f conftest*
3581   cat > conftest.$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3584 #include <stdio.h>
3585                   #include <stdarg.h>
3586                   void foo(char* fmt, ...)
3587                   {va_list args; va_start(args, fmt);
3588                   vsscanf(fmt, "%i", args);}
3589 int main() {
3590
3591 ; return 0; }
3592 EOF
3593 if { (eval echo configure:3594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3594   :
3595 else
3596   echo "configure: failed program was:" >&5
3597   cat conftest.$ac_ext >&5
3598   rm -rf conftest*
3599   ac_c99_stdio=no
3600 fi
3601 rm -f conftest*
3602   echo "$ac_t""$ac_c99_stdio" 1>&6
3603
3604   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3605   ac_c99_stdlib=yes;
3606   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3607 echo "configure:3608: checking for lldiv_t declaration" >&5
3608   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3609   echo $ac_n "(cached) $ac_c" 1>&6
3610 else
3611   
3612   cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3615 #include <stdlib.h>
3616 int main() {
3617  lldiv_t mydivt;
3618 ; return 0; }
3619 EOF
3620 if { (eval echo configure:3621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3621   rm -rf conftest*
3622   ac_c99_lldiv_t=yes
3623 else
3624   echo "configure: failed program was:" >&5
3625   cat conftest.$ac_ext >&5
3626   rm -rf conftest*
3627   ac_c99_lldiv_t=no
3628 fi
3629 rm -f conftest*
3630   
3631 fi
3632
3633   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3634
3635   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3636 echo "configure:3637: checking for ISO C99 support in <stdlib.h>" >&5
3637   cat > conftest.$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3640 #include <stdlib.h>
3641 int main() {
3642 char* tmp; strtof("gnu", &tmp);
3643 ; return 0; }
3644 EOF
3645 if { (eval echo configure:3646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3646   :
3647 else
3648   echo "configure: failed program was:" >&5
3649   cat conftest.$ac_ext >&5
3650   rm -rf conftest*
3651   ac_c99_stdlib=no
3652 fi
3653 rm -f conftest*
3654   cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 #include <stdlib.h>
3658 int main() {
3659 char* tmp; strtold("gnu", &tmp);
3660 ; return 0; }
3661 EOF
3662 if { (eval echo configure:3663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3663   :
3664 else
3665   echo "configure: failed program was:" >&5
3666   cat conftest.$ac_ext >&5
3667   rm -rf conftest*
3668   ac_c99_stdlib=no
3669 fi
3670 rm -f conftest*
3671   cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3674 #include <stdlib.h>
3675 int main() {
3676 llabs(10);
3677 ; return 0; }
3678 EOF
3679 if { (eval echo configure:3680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3680   :
3681 else
3682   echo "configure: failed program was:" >&5
3683   cat conftest.$ac_ext >&5
3684   rm -rf conftest*
3685   ac_c99_stdlib=no
3686 fi
3687 rm -f conftest*
3688   cat > conftest.$ac_ext <<EOF
3689 #line 3690 "configure"
3690 #include "confdefs.h"
3691 #include <stdlib.h>
3692 int main() {
3693 lldiv(10,1);
3694 ; return 0; }
3695 EOF
3696 if { (eval echo configure:3697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3697   :
3698 else
3699   echo "configure: failed program was:" >&5
3700   cat conftest.$ac_ext >&5
3701   rm -rf conftest*
3702   ac_c99_stdlib=no
3703 fi
3704 rm -f conftest*
3705   cat > conftest.$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 #include <stdlib.h>
3709 int main() {
3710 atoll("10");
3711 ; return 0; }
3712 EOF
3713 if { (eval echo configure:3714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3714   :
3715 else
3716   echo "configure: failed program was:" >&5
3717   cat conftest.$ac_ext >&5
3718   rm -rf conftest*
3719   ac_c99_stdlib=no
3720 fi
3721 rm -f conftest*
3722   cat > conftest.$ac_ext <<EOF
3723 #line 3724 "configure"
3724 #include "confdefs.h"
3725 #include <stdlib.h>
3726 int main() {
3727 _Exit(0);
3728 ; return 0; }
3729 EOF
3730 if { (eval echo configure:3731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3731   :
3732 else
3733   echo "configure: failed program was:" >&5
3734   cat conftest.$ac_ext >&5
3735   rm -rf conftest*
3736   ac_c99_stdlib=no
3737 fi
3738 rm -f conftest*
3739   if test x"$ac_c99_lldiv_t" = x"no"; then
3740     ac_c99_stdlib=no; 
3741   fi; 
3742   echo "$ac_t""$ac_c99_stdlib" 1>&6
3743
3744   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3745   # XXX the wchar.h checks should be rolled into the general C99 bits.
3746   ac_c99_wchar=yes;
3747   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3748 echo "configure:3749: checking for additional ISO C99 support in <wchar.h>" >&5
3749   cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3752 #include <wchar.h>
3753 int main() {
3754 wcstold(L"10.0", NULL);
3755 ; return 0; }
3756 EOF
3757 if { (eval echo configure:3758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3758   :
3759 else
3760   echo "configure: failed program was:" >&5
3761   cat conftest.$ac_ext >&5
3762   rm -rf conftest*
3763   ac_c99_wchar=no
3764 fi
3765 rm -f conftest*
3766   cat > conftest.$ac_ext <<EOF
3767 #line 3768 "configure"
3768 #include "confdefs.h"
3769 #include <wchar.h>
3770 int main() {
3771 wcstoll(L"10", NULL, 10);
3772 ; return 0; }
3773 EOF
3774 if { (eval echo configure:3775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3775   :
3776 else
3777   echo "configure: failed program was:" >&5
3778   cat conftest.$ac_ext >&5
3779   rm -rf conftest*
3780   ac_c99_wchar=no
3781 fi
3782 rm -f conftest*
3783   cat > conftest.$ac_ext <<EOF
3784 #line 3785 "configure"
3785 #include "confdefs.h"
3786 #include <wchar.h>
3787 int main() {
3788 wcstoull(L"10", NULL, 10);
3789 ; return 0; }
3790 EOF
3791 if { (eval echo configure:3792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3792   :
3793 else
3794   echo "configure: failed program was:" >&5
3795   cat conftest.$ac_ext >&5
3796   rm -rf conftest*
3797   ac_c99_wchar=no
3798 fi
3799 rm -f conftest*
3800   echo "$ac_t""$ac_c99_wchar" 1>&6
3801
3802   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3803 echo "configure:3804: checking for enabled ISO C99 support" >&5
3804   if test x"$ac_c99_math" = x"no" ||
3805      test x"$ac_c99_stdio" = x"no" ||
3806      test x"$ac_c99_stdlib" = x"no" ||
3807      test x"$ac_c99_wchar" = x"no"; then
3808     enable_c99=no; 
3809   fi; 
3810   echo "$ac_t""$enable_c99" 1>&6
3811
3812   # Option parsed, now set things appropriately
3813   if test x"$enable_c99" = x"yes"; then
3814     cat >> confdefs.h <<\EOF
3815 #define _GLIBCPP_USE_C99 1
3816 EOF
3817
3818   fi
3819
3820   ac_ext=c
3821 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3824 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3825 cross_compiling=$ac_cv_prog_cc_cross
3826
3827
3828   
3829   # Check whether --enable-long-long or --disable-long-long was given.
3830 if test "${enable_long_long+set}" = set; then
3831   enableval="$enable_long_long"
3832     case "$enableval" in
3833    yes) enable_long_long=yes ;;
3834    no)  enable_long_long=no ;;
3835    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3836    esac
3837 else
3838   enable_long_long=yes
3839 fi
3840
3841   
3842   ac_ext=C
3843 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3844 ac_cpp='$CXXCPP $CPPFLAGS'
3845 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3846 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3847 cross_compiling=$ac_cv_prog_cxx_cross
3848
3849
3850   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3851 echo "configure:3852: checking for enabled long long I/O support" >&5
3852   # iostreams require strtoll, strtoull to compile
3853   cat > conftest.$ac_ext <<EOF
3854 #line 3855 "configure"
3855 #include "confdefs.h"
3856 #include <stdlib.h>
3857 int main() {
3858 char* tmp; strtoll("gnu", &tmp, 10);
3859 ; return 0; }
3860 EOF
3861 if { (eval echo configure:3862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3862   :
3863 else
3864   echo "configure: failed program was:" >&5
3865   cat conftest.$ac_ext >&5
3866   rm -rf conftest*
3867   enable_long_long=no
3868 fi
3869 rm -f conftest*
3870   cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 #include <stdlib.h>
3874 int main() {
3875 char* tmp; strtoull("gnu", &tmp, 10);
3876 ; return 0; }
3877 EOF
3878 if { (eval echo configure:3879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3879   :
3880 else
3881   echo "configure: failed program was:" >&5
3882   cat conftest.$ac_ext >&5
3883   rm -rf conftest*
3884   enable_long_long=no
3885 fi
3886 rm -f conftest*
3887
3888   # Option parsed, now set things appropriately
3889   if test x"$enable_long_long" = xyes; then
3890     cat >> confdefs.h <<\EOF
3891 #define _GLIBCPP_USE_LONG_LONG 1
3892 EOF
3893
3894   fi
3895   echo "$ac_t""$enable_long_long" 1>&6
3896
3897   ac_ext=c
3898 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3901 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3902 cross_compiling=$ac_cv_prog_cc_cross
3903
3904
3905
3906   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3907 echo "configure:3908: checking for thread model used by GCC" >&5
3908   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3909   echo "$ac_t""$target_thread_file" 1>&6
3910
3911   if test $target_thread_file != single; then
3912     cat >> confdefs.h <<\EOF
3913 #define HAVE_GTHR_DEFAULT 1
3914 EOF
3915
3916     cat >> confdefs.h <<\EOF
3917 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3918 EOF
3919
3920   fi
3921
3922   glibcpp_thread_h=gthr-$target_thread_file.h
3923   
3924
3925
3926   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3927 echo "configure:3928: checking for exception model to use" >&5
3928   
3929   ac_ext=C
3930 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3931 ac_cpp='$CXXCPP $CPPFLAGS'
3932 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3933 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3934 cross_compiling=$ac_cv_prog_cxx_cross
3935
3936   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3937 if test "${enable_sjlj_exceptions+set}" = set; then
3938   enableval="$enable_sjlj_exceptions"
3939   :
3940 else
3941                        cat > conftest.$ac_ext << EOF
3942 #line 3943 "configure"
3943 struct S { ~S(); };
3944 void bar();
3945 void foo()
3946 {
3947   S s;
3948   bar();
3949 }
3950 EOF
3951    old_CXXFLAGS="$CXXFLAGS"  
3952    CXXFLAGS=-S
3953    if { (eval echo configure:3954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3954      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3955        enable_sjlj_exceptions=yes
3956      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3957        enable_sjlj_exceptions=no
3958      fi
3959    fi
3960    CXXFLAGS="$old_CXXFLAGS"
3961    rm -f conftest*
3962 fi
3963
3964    if test x$enable_sjlj_exceptions = xyes; then
3965      cat >> confdefs.h <<\EOF
3966 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3967 EOF
3968
3969      ac_exception_model_name=sjlj
3970    elif test x$enable_sjlj_exceptions = xno; then
3971      ac_exception_model_name="call frame"
3972    else
3973      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3974    fi
3975    ac_ext=c
3976 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3977 ac_cpp='$CPP $CPPFLAGS'
3978 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3979 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3980 cross_compiling=$ac_cv_prog_cc_cross
3981
3982    echo "$ac_t""$ac_exception_model_name" 1>&6
3983
3984
3985   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
3986 echo "configure:3987: checking for use of libunwind" >&5
3987   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
3988 if test "${enable_libunwind_exceptions+set}" = set; then
3989   enableval="$enable_libunwind_exceptions"
3990   use_libunwind_exceptions=$enableval
3991 else
3992   use_libunwind_exceptions=no
3993 fi
3994
3995   echo "$ac_t""$use_libunwind_exceptions" 1>&6
3996     if test x"$use_libunwind_exceptions" = xyes; then
3997     LIBUNWIND_FLAG="-lunwind"
3998   else
3999     LIBUNWIND_FLAG=""
4000   fi
4001   
4002
4003 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4004 if test "${enable_concept_checks+set}" = set; then
4005   enableval="$enable_concept_checks"
4006   case "$enableval" in
4007  yes) enable_concept_checks=yes ;;
4008  no)  enable_concept_checks=no ;;
4009  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4010  esac
4011 else
4012   enable_concept_checks=no
4013 fi
4014 if test x"$enable_concept_checks" = xyes; then
4015   cat >> confdefs.h <<\EOF
4016 #define _GLIBCPP_CONCEPT_CHECKS 1
4017 EOF
4018
4019 fi
4020
4021 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4022 if test "${enable_cxx_flags+set}" = set; then
4023   enableval="$enable_cxx_flags"
4024   enable_cxx_flags='none'
4025 fi
4026
4027
4028 case "x$enable_cxx_flags" in
4029  xyes)   
4030         { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4031  xno | xnone | x)  
4032         enable_cxx_flags='' ;;
4033  *)      
4034         enable_cxx_flags="$enableval" ;;
4035 esac    
4036
4037 if test -n "$enable_cxx_flags"; then
4038   for f in $enable_cxx_flags; do
4039     case "$f" in
4040       -fhonor-std)  ;;
4041       -*)  ;;
4042       *)   # and we're trying to pass /what/ exactly?
4043            { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4044     esac
4045   done
4046 fi
4047 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4048
4049
4050 # Check whether --enable-debug or --disable-debug was given.
4051 if test "${enable_debug+set}" = set; then
4052   enableval="$enable_debug"
4053   case "${enableval}" in
4054  yes) enable_debug=yes ;;
4055  no)  enable_debug=no ;;
4056  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4057  esac
4058 else
4059   enable_debug=no
4060 fi
4061 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4062 echo "configure:4063: checking for additional debug build" >&5
4063 echo "$ac_t""$enable_debug" 1>&6
4064
4065
4066 if test "$enable_debug" = yes; then
4067   GLIBCPP_BUILD_DEBUG_TRUE=
4068   GLIBCPP_BUILD_DEBUG_FALSE='#'
4069 else
4070   GLIBCPP_BUILD_DEBUG_TRUE='#'
4071   GLIBCPP_BUILD_DEBUG_FALSE=
4072 fi      
4073
4074 # Check whether --enable-debug_flags or --disable-debug_flags was given.
4075 if test "${enable_debug_flags+set}" = set; then
4076   enableval="$enable_debug_flags"
4077   case "${enableval}" in
4078  none)  ;;
4079  -*) enable_debug_flags="${enableval}" ;;
4080  *)   { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4081  esac
4082 else
4083   enable_debug_flags=none
4084 fi
4085
4086 case x"$enable_debug" in
4087     xyes) 
4088         case "$enable_debug_flags" in
4089           none) 
4090             DEBUG_FLAGS="-g3 -O0";;
4091           -*) #valid input
4092             DEBUG_FLAGS="${enableval}"
4093         esac
4094         ;; 
4095     xno)   
4096         DEBUG_FLAGS=""
4097         ;;
4098 esac
4099
4100
4101 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4102 echo "configure:4103: checking for debug build flags" >&5
4103 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4104
4105
4106 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4107 for ac_hdr in string.h stdlib.h
4108 do
4109 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4110 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4111 echo "configure:4112: checking for $ac_hdr" >&5
4112 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4113   echo $ac_n "(cached) $ac_c" 1>&6
4114 else
4115   cat > conftest.$ac_ext <<EOF
4116 #line 4117 "configure"
4117 #include "confdefs.h"
4118 #include <$ac_hdr>
4119 EOF
4120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4121 { (eval echo configure:4122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4123 if test -z "$ac_err"; then
4124   rm -rf conftest*
4125   eval "ac_cv_header_$ac_safe=yes"
4126 else
4127   echo "$ac_err" >&5
4128   echo "configure: failed program was:" >&5
4129   cat conftest.$ac_ext >&5
4130   rm -rf conftest*
4131   eval "ac_cv_header_$ac_safe=no"
4132 fi
4133 rm -f conftest*
4134 fi
4135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4136   echo "$ac_t""yes" 1>&6
4137     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4138   cat >> confdefs.h <<EOF
4139 #define $ac_tr_hdr 1
4140 EOF
4141  
4142 else
4143   echo "$ac_t""no" 1>&6
4144 fi
4145 done
4146
4147
4148 # No surprises, no surprises...
4149 if test $ATOMICITYH = cpu/generic ; then
4150   echo "configure: warning: No native atomic operations are provided yet for this platform." 1>&2
4151   if test $target_thread_file = single; then
4152     echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4153     echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4154   else
4155     echo "configure: warning: They will be faked using a mutex." 1>&2
4156     echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4157   fi
4158 fi
4159
4160
4161 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4162
4163   # We are being configured with some form of cross compiler.
4164   GLIBCPP_IS_CROSS_COMPILING=1
4165
4166   # This lets us hard-code the functionality we know we'll have in the cross
4167   # target environment.  "Let" is a sugar-coated word placed on an especially
4168   # dull and tedious hack, actually.
4169   #
4170   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4171   # that involve linking, can't be used:
4172   #    "cannot open sim-crt0.o"
4173   #    "cannot open crt0.o"
4174   # etc.  All this is because there currently exists no unified, consistent
4175   # way for top level CC information to be passed down to target directories:
4176   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4177   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4178   # crosses can be removed.
4179
4180   # If Canadian cross, then don't pick up tools from the build directory.
4181   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4182   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4183     CANADIAN=yes
4184   else
4185     CANADIAN=no
4186   fi
4187
4188   # Construct crosses by hand, eliminating bits that need ld...
4189   # GLIBCPP_CHECK_COMPILER_FEATURES
4190   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4191   # GLIBCPP_CHECK_MATH_SUPPORT
4192
4193   case "$target" in
4194     *-linux*)
4195       os_include_dir="os/gnu-linux"
4196       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4197         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4198         fp.h locale.h float.h inttypes.h
4199 do
4200 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4201 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4202 echo "configure:4203: checking for $ac_hdr" >&5
4203 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4204   echo $ac_n "(cached) $ac_c" 1>&6
4205 else
4206   cat > conftest.$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4209 #include <$ac_hdr>
4210 EOF
4211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4212 { (eval echo configure:4213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4214 if test -z "$ac_err"; then
4215   rm -rf conftest*
4216   eval "ac_cv_header_$ac_safe=yes"
4217 else
4218   echo "$ac_err" >&5
4219   echo "configure: failed program was:" >&5
4220   cat conftest.$ac_ext >&5
4221   rm -rf conftest*
4222   eval "ac_cv_header_$ac_safe=no"
4223 fi
4224 rm -f conftest*
4225 fi
4226 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4227   echo "$ac_t""yes" 1>&6
4228     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4229   cat >> confdefs.h <<EOF
4230 #define $ac_tr_hdr 1
4231 EOF
4232  
4233 else
4234   echo "$ac_t""no" 1>&6
4235 fi
4236 done
4237
4238       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4239       
4240       
4241   # If we're not using GNU ld, then there's no point in even trying these
4242   # tests.  Check for that first.  We should have already tested for gld
4243   # by now (in libtool), but require it now just to be safe...
4244   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4245   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4246   
4247
4248   # The name set by libtool depends on the version of libtool.  Shame on us
4249   # for depending on an impl detail, but c'est la vie.  Older versions used
4250   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4251   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4252   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4253   # set (hence we're using an older libtool), then set it.
4254   if test x${with_gnu_ld+set} != xset; then
4255     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4256       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4257       with_gnu_ld=no
4258     else
4259       with_gnu_ld=$ac_cv_prog_gnu_ld
4260     fi
4261   fi
4262
4263   # Start by getting the version number.  I think the libtool test already
4264   # does some of this, but throws away the result.
4265   
4266   ldver=`$LD --version 2>/dev/null | head -1 | \
4267          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4268   
4269   glibcpp_gnu_ld_version=`echo $ldver | \
4270          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4271
4272   # Set --gc-sections.
4273   if test "$with_gnu_ld" = "notbroken"; then
4274     # GNU ld it is!  Joy and bunny rabbits!
4275
4276     # All these tests are for C++; save the language and the compiler flags.
4277     # Need to do this so that g++ won't try to link in libstdc++
4278     ac_test_CFLAGS="${CFLAGS+set}"
4279     ac_save_CFLAGS="$CFLAGS"
4280     CFLAGS='-x c++  -Wl,--gc-sections'
4281
4282     # Check for -Wl,--gc-sections
4283     # XXX This test is broken at the moment, as symbols required for
4284     # linking are now in libsupc++ (not built yet.....). In addition, 
4285     # this test has cored on solaris in the past. In addition,
4286     # --gc-sections doesn't really work at the moment (keeps on discarding
4287     # used sections, first .eh_frame and now some of the glibc sections for
4288     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4289     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4290 echo "configure:4291: checking for ld that supports -Wl,--gc-sections" >&5
4291     if test "$cross_compiling" = yes; then
4292   ac_sectionLDflags=yes
4293 else
4294   cat > conftest.$ac_ext <<EOF
4295 #line 4296 "configure"
4296 #include "confdefs.h"
4297
4298      int main(void) 
4299      {
4300        try { throw 1; }
4301        catch (...) { };
4302        return 0;
4303      }
4304     
4305 EOF
4306 if { (eval echo configure:4307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4307 then
4308   ac_sectionLDflags=yes
4309 else
4310   echo "configure: failed program was:" >&5
4311   cat conftest.$ac_ext >&5
4312   rm -fr conftest*
4313   ac_sectionLDflags=no
4314 fi
4315 rm -fr conftest*
4316 fi
4317
4318     if test "$ac_test_CFLAGS" = set; then
4319       CFLAGS="$ac_save_CFLAGS"
4320     else
4321       # this is the suspicious part
4322       CFLAGS=''
4323     fi
4324     if test "$ac_sectionLDflags" = "yes"; then
4325       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4326     fi
4327     echo "$ac_t""$ac_sectionLDflags" 1>&6
4328   fi
4329
4330   # Set linker optimization flags.
4331   if test x"$with_gnu_ld" = x"yes"; then
4332     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4333   fi
4334
4335   
4336   
4337
4338       
4339     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4340 echo "configure:4341: checking for main in -lm" >&5
4341 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4343   echo $ac_n "(cached) $ac_c" 1>&6
4344 else
4345   ac_save_LIBS="$LIBS"
4346 LIBS="-lm  $LIBS"
4347 cat > conftest.$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4350
4351 int main() {
4352 main()
4353 ; return 0; }
4354 EOF
4355 if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4356   rm -rf conftest*
4357   eval "ac_cv_lib_$ac_lib_var=yes"
4358 else
4359   echo "configure: failed program was:" >&5
4360   cat conftest.$ac_ext >&5
4361   rm -rf conftest*
4362   eval "ac_cv_lib_$ac_lib_var=no"
4363 fi
4364 rm -f conftest*
4365 LIBS="$ac_save_LIBS"
4366
4367 fi
4368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4369   echo "$ac_t""yes" 1>&6
4370     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4371     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4372   cat >> confdefs.h <<EOF
4373 #define $ac_tr_lib 1
4374 EOF
4375
4376   LIBS="-lm $LIBS"
4377
4378 else
4379   echo "$ac_t""no" 1>&6
4380 fi
4381
4382   for ac_func in nan copysignf
4383 do
4384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4385 echo "configure:4386: checking for $ac_func" >&5
4386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4387   echo $ac_n "(cached) $ac_c" 1>&6
4388 else
4389   cat > conftest.$ac_ext <<EOF
4390 #line 4391 "configure"
4391 #include "confdefs.h"
4392 /* System header to define __stub macros and hopefully few prototypes,
4393     which can conflict with char $ac_func(); below.  */
4394 #include <assert.h>
4395 /* Override any gcc2 internal prototype to avoid an error.  */
4396 /* We use char because int might match the return type of a gcc2
4397     builtin and then its argument prototype would still apply.  */
4398 char $ac_func();
4399
4400 int main() {
4401
4402 /* The GNU C library defines this for functions which it implements
4403     to always fail with ENOSYS.  Some functions are actually named
4404     something starting with __ and the normal name is an alias.  */
4405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4406 choke me
4407 #else
4408 $ac_func();
4409 #endif
4410
4411 ; return 0; }
4412 EOF
4413 if { (eval echo configure:4414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4414   rm -rf conftest*
4415   eval "ac_cv_func_$ac_func=yes"
4416 else
4417   echo "configure: failed program was:" >&5
4418   cat conftest.$ac_ext >&5
4419   rm -rf conftest*
4420   eval "ac_cv_func_$ac_func=no"
4421 fi
4422 rm -f conftest*
4423 fi
4424
4425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4426   echo "$ac_t""yes" 1>&6
4427     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4428   cat >> confdefs.h <<EOF
4429 #define $ac_tr_func 1
4430 EOF
4431  
4432 else
4433   echo "$ac_t""no" 1>&6
4434 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4435 fi
4436 done
4437
4438
4439     for ac_func in __signbit
4440 do
4441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4442 echo "configure:4443: checking for $ac_func" >&5
4443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4444   echo $ac_n "(cached) $ac_c" 1>&6
4445 else
4446   cat > conftest.$ac_ext <<EOF
4447 #line 4448 "configure"
4448 #include "confdefs.h"
4449 /* System header to define __stub macros and hopefully few prototypes,
4450     which can conflict with char $ac_func(); below.  */
4451 #include <assert.h>
4452 /* Override any gcc2 internal prototype to avoid an error.  */
4453 /* We use char because int might match the return type of a gcc2
4454     builtin and then its argument prototype would still apply.  */
4455 char $ac_func();
4456
4457 int main() {
4458
4459 /* The GNU C library defines this for functions which it implements
4460     to always fail with ENOSYS.  Some functions are actually named
4461     something starting with __ and the normal name is an alias.  */
4462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4463 choke me
4464 #else
4465 $ac_func();
4466 #endif
4467
4468 ; return 0; }
4469 EOF
4470 if { (eval echo configure:4471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4471   rm -rf conftest*
4472   eval "ac_cv_func_$ac_func=yes"
4473 else
4474   echo "configure: failed program was:" >&5
4475   cat conftest.$ac_ext >&5
4476   rm -rf conftest*
4477   eval "ac_cv_func_$ac_func=no"
4478 fi
4479 rm -f conftest*
4480 fi
4481
4482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4483   echo "$ac_t""yes" 1>&6
4484     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4485   cat >> confdefs.h <<EOF
4486 #define $ac_tr_func 1
4487 EOF
4488  
4489 else
4490   echo "$ac_t""no" 1>&6
4491 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4492 fi
4493 done
4494
4495   for ac_func in __signbitf
4496 do
4497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4498 echo "configure:4499: checking for $ac_func" >&5
4499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4500   echo $ac_n "(cached) $ac_c" 1>&6
4501 else
4502   cat > conftest.$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4505 /* System header to define __stub macros and hopefully few prototypes,
4506     which can conflict with char $ac_func(); below.  */
4507 #include <assert.h>
4508 /* Override any gcc2 internal prototype to avoid an error.  */
4509 /* We use char because int might match the return type of a gcc2
4510     builtin and then its argument prototype would still apply.  */
4511 char $ac_func();
4512
4513 int main() {
4514
4515 /* The GNU C library defines this for functions which it implements
4516     to always fail with ENOSYS.  Some functions are actually named
4517     something starting with __ and the normal name is an alias.  */
4518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4519 choke me
4520 #else
4521 $ac_func();
4522 #endif
4523
4524 ; return 0; }
4525 EOF
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4527   rm -rf conftest*
4528   eval "ac_cv_func_$ac_func=yes"
4529 else
4530   echo "configure: failed program was:" >&5
4531   cat conftest.$ac_ext >&5
4532   rm -rf conftest*
4533   eval "ac_cv_func_$ac_func=no"
4534 fi
4535 rm -f conftest*
4536 fi
4537
4538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4539   echo "$ac_t""yes" 1>&6
4540     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4541   cat >> confdefs.h <<EOF
4542 #define $ac_tr_func 1
4543 EOF
4544  
4545 else
4546   echo "$ac_t""no" 1>&6
4547 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4548 fi
4549 done
4550
4551
4552           if test x$ac_cv_func_copysignl = x"yes"; then
4553     for ac_func in __signbitl
4554 do
4555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4556 echo "configure:4557: checking for $ac_func" >&5
4557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4558   echo $ac_n "(cached) $ac_c" 1>&6
4559 else
4560   cat > conftest.$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4563 /* System header to define __stub macros and hopefully few prototypes,
4564     which can conflict with char $ac_func(); below.  */
4565 #include <assert.h>
4566 /* Override any gcc2 internal prototype to avoid an error.  */
4567 /* We use char because int might match the return type of a gcc2
4568     builtin and then its argument prototype would still apply.  */
4569 char $ac_func();
4570
4571 int main() {
4572
4573 /* The GNU C library defines this for functions which it implements
4574     to always fail with ENOSYS.  Some functions are actually named
4575     something starting with __ and the normal name is an alias.  */
4576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4577 choke me
4578 #else
4579 $ac_func();
4580 #endif
4581
4582 ; return 0; }
4583 EOF
4584 if { (eval echo configure:4585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4585   rm -rf conftest*
4586   eval "ac_cv_func_$ac_func=yes"
4587 else
4588   echo "configure: failed program was:" >&5
4589   cat conftest.$ac_ext >&5
4590   rm -rf conftest*
4591   eval "ac_cv_func_$ac_func=no"
4592 fi
4593 rm -f conftest*
4594 fi
4595
4596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4597   echo "$ac_t""yes" 1>&6
4598     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4599   cat >> confdefs.h <<EOF
4600 #define $ac_tr_func 1
4601 EOF
4602  
4603 else
4604   echo "$ac_t""no" 1>&6
4605 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4606 fi
4607 done
4608
4609   fi
4610
4611   if test -n "$LIBMATHOBJS"; then
4612     need_libmath=yes
4613   fi
4614   
4615   
4616
4617 if test "$need_libmath" = yes; then
4618   GLIBCPP_BUILD_LIBMATH_TRUE=
4619   GLIBCPP_BUILD_LIBMATH_FALSE='#'
4620 else
4621   GLIBCPP_BUILD_LIBMATH_TRUE='#'
4622   GLIBCPP_BUILD_LIBMATH_FALSE=
4623 fi
4624
4625       
4626
4627       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4628 echo "configure:4629: checking for mbstate_t" >&5
4629   cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4632 #include <wchar.h>
4633 int main() {
4634 mbstate_t teststate;
4635 ; return 0; }
4636 EOF
4637 if { (eval echo configure:4638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4638   rm -rf conftest*
4639   have_mbstate_t=yes
4640 else
4641   echo "configure: failed program was:" >&5
4642   cat conftest.$ac_ext >&5
4643   rm -rf conftest*
4644   have_mbstate_t=no
4645 fi
4646 rm -f conftest*
4647   echo "$ac_t""$have_mbstate_t" 1>&6
4648   if test x"$have_mbstate_t" = xyes; then
4649     cat >> confdefs.h <<\EOF
4650 #define HAVE_MBSTATE_T 1
4651 EOF
4652
4653   fi
4654
4655     for ac_hdr in wchar.h
4656 do
4657 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4659 echo "configure:4660: checking for $ac_hdr" >&5
4660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4661   echo $ac_n "(cached) $ac_c" 1>&6
4662 else
4663   cat > conftest.$ac_ext <<EOF
4664 #line 4665 "configure"
4665 #include "confdefs.h"
4666 #include <$ac_hdr>
4667 EOF
4668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4669 { (eval echo configure:4670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4671 if test -z "$ac_err"; then
4672   rm -rf conftest*
4673   eval "ac_cv_header_$ac_safe=yes"
4674 else
4675   echo "$ac_err" >&5
4676   echo "configure: failed program was:" >&5
4677   cat conftest.$ac_ext >&5
4678   rm -rf conftest*
4679   eval "ac_cv_header_$ac_safe=no"
4680 fi
4681 rm -f conftest*
4682 fi
4683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4684   echo "$ac_t""yes" 1>&6
4685     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4686   cat >> confdefs.h <<EOF
4687 #define $ac_tr_hdr 1
4688 EOF
4689  ac_has_wchar_h=yes
4690 else
4691   echo "$ac_t""no" 1>&6
4692 ac_has_wchar_h=no
4693 fi
4694 done
4695
4696   for ac_hdr in wctype.h
4697 do
4698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4700 echo "configure:4701: checking for $ac_hdr" >&5
4701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4702   echo $ac_n "(cached) $ac_c" 1>&6
4703 else
4704   cat > conftest.$ac_ext <<EOF
4705 #line 4706 "configure"
4706 #include "confdefs.h"
4707 #include <$ac_hdr>
4708 EOF
4709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4710 { (eval echo configure:4711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4712 if test -z "$ac_err"; then
4713   rm -rf conftest*
4714   eval "ac_cv_header_$ac_safe=yes"
4715 else
4716   echo "$ac_err" >&5
4717   echo "configure: failed program was:" >&5
4718   cat conftest.$ac_ext >&5
4719   rm -rf conftest*
4720   eval "ac_cv_header_$ac_safe=no"
4721 fi
4722 rm -f conftest*
4723 fi
4724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4725   echo "$ac_t""yes" 1>&6
4726     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4727   cat >> confdefs.h <<EOF
4728 #define $ac_tr_hdr 1
4729 EOF
4730  ac_has_wctype_h=yes
4731 else
4732   echo "$ac_t""no" 1>&6
4733 ac_has_wctype_h=no
4734 fi
4735 done
4736
4737   
4738     if test x"$ac_has_wchar_h" = xyes &&
4739      test x"$ac_has_wctype_h" = xyes &&
4740      test x"$enable_c_mbchar" != xno; then
4741       
4742             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4743 echo "configure:4744: checking for WCHAR_MIN and WCHAR_MAX" >&5
4744     cat > conftest.$ac_ext <<EOF
4745 #line 4746 "configure"
4746 #include "confdefs.h"
4747 #include <wchar.h>
4748 int main() {
4749 int i = WCHAR_MIN; int j = WCHAR_MAX;
4750 ; return 0; }
4751 EOF
4752 if { (eval echo configure:4753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4753   rm -rf conftest*
4754   has_wchar_minmax=yes
4755 else
4756   echo "configure: failed program was:" >&5
4757   cat conftest.$ac_ext >&5
4758   rm -rf conftest*
4759   has_wchar_minmax=no
4760 fi
4761 rm -f conftest*
4762     echo "$ac_t""$has_wchar_minmax" 1>&6
4763     
4764             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4765 echo "configure:4766: checking for WEOF" >&5
4766     cat > conftest.$ac_ext <<EOF
4767 #line 4768 "configure"
4768 #include "confdefs.h"
4769
4770       #include <wchar.h>
4771       #include <stddef.h>
4772 int main() {
4773 wint_t i = WEOF;
4774 ; return 0; }
4775 EOF
4776 if { (eval echo configure:4777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4777   rm -rf conftest*
4778   has_weof=yes
4779 else
4780   echo "configure: failed program was:" >&5
4781   cat conftest.$ac_ext >&5
4782   rm -rf conftest*
4783   has_weof=no
4784 fi
4785 rm -f conftest*
4786     echo "$ac_t""$has_weof" 1>&6
4787   
4788         ac_wfuncs=yes
4789     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4790 do
4791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4792 echo "configure:4793: checking for $ac_func" >&5
4793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4794   echo $ac_n "(cached) $ac_c" 1>&6
4795 else
4796   cat > conftest.$ac_ext <<EOF
4797 #line 4798 "configure"
4798 #include "confdefs.h"
4799 /* System header to define __stub macros and hopefully few prototypes,
4800     which can conflict with char $ac_func(); below.  */
4801 #include <assert.h>
4802 /* Override any gcc2 internal prototype to avoid an error.  */
4803 /* We use char because int might match the return type of a gcc2
4804     builtin and then its argument prototype would still apply.  */
4805 char $ac_func();
4806
4807 int main() {
4808
4809 /* The GNU C library defines this for functions which it implements
4810     to always fail with ENOSYS.  Some functions are actually named
4811     something starting with __ and the normal name is an alias.  */
4812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4813 choke me
4814 #else
4815 $ac_func();
4816 #endif
4817
4818 ; return 0; }
4819 EOF
4820 if { (eval echo configure:4821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4821   rm -rf conftest*
4822   eval "ac_cv_func_$ac_func=yes"
4823 else
4824   echo "configure: failed program was:" >&5
4825   cat conftest.$ac_ext >&5
4826   rm -rf conftest*
4827   eval "ac_cv_func_$ac_func=no"
4828 fi
4829 rm -f conftest*
4830 fi
4831
4832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4833   echo "$ac_t""yes" 1>&6
4834     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4835   cat >> confdefs.h <<EOF
4836 #define $ac_tr_func 1
4837 EOF
4838  
4839 else
4840   echo "$ac_t""no" 1>&6
4841 \
4842     ac_wfuncs=no
4843 fi
4844 done
4845
4846   
4847         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4848     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4849     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4850     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4851     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4852     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4853 do
4854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4855 echo "configure:4856: checking for $ac_func" >&5
4856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4857   echo $ac_n "(cached) $ac_c" 1>&6
4858 else
4859   cat > conftest.$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4862 /* System header to define __stub macros and hopefully few prototypes,
4863     which can conflict with char $ac_func(); below.  */
4864 #include <assert.h>
4865 /* Override any gcc2 internal prototype to avoid an error.  */
4866 /* We use char because int might match the return type of a gcc2
4867     builtin and then its argument prototype would still apply.  */
4868 char $ac_func();
4869
4870 int main() {
4871
4872 /* The GNU C library defines this for functions which it implements
4873     to always fail with ENOSYS.  Some functions are actually named
4874     something starting with __ and the normal name is an alias.  */
4875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4876 choke me
4877 #else
4878 $ac_func();
4879 #endif
4880
4881 ; return 0; }
4882 EOF
4883 if { (eval echo configure:4884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4884   rm -rf conftest*
4885   eval "ac_cv_func_$ac_func=yes"
4886 else
4887   echo "configure: failed program was:" >&5
4888   cat conftest.$ac_ext >&5
4889   rm -rf conftest*
4890   eval "ac_cv_func_$ac_func=no"
4891 fi
4892 rm -f conftest*
4893 fi
4894
4895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4896   echo "$ac_t""yes" 1>&6
4897     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4898   cat >> confdefs.h <<EOF
4899 #define $ac_tr_func 1
4900 EOF
4901  
4902 else
4903   echo "$ac_t""no" 1>&6
4904 \
4905     ac_wfuncs=no
4906 fi
4907 done
4908
4909
4910     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4911 echo "configure:4912: checking for ISO C99 wchar_t support" >&5
4912     if test x"$has_weof" = xyes &&
4913        test x"$has_wchar_minmax" = xyes &&
4914        test x"$ac_wfuncs" = xyes; then
4915       ac_isoC99_wchar_t=yes
4916     else
4917       ac_isoC99_wchar_t=no
4918     fi
4919     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4920   
4921             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4922 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4923 echo "configure:4924: checking for iconv.h" >&5
4924 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4925   echo $ac_n "(cached) $ac_c" 1>&6
4926 else
4927   cat > conftest.$ac_ext <<EOF
4928 #line 4929 "configure"
4929 #include "confdefs.h"
4930 #include <iconv.h>
4931 EOF
4932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4933 { (eval echo configure:4934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4935 if test -z "$ac_err"; then
4936   rm -rf conftest*
4937   eval "ac_cv_header_$ac_safe=yes"
4938 else
4939   echo "$ac_err" >&5
4940   echo "configure: failed program was:" >&5
4941   cat conftest.$ac_ext >&5
4942   rm -rf conftest*
4943   eval "ac_cv_header_$ac_safe=no"
4944 fi
4945 rm -f conftest*
4946 fi
4947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4948   echo "$ac_t""yes" 1>&6
4949   ac_has_iconv_h=yes
4950 else
4951   echo "$ac_t""no" 1>&6
4952 ac_has_iconv_h=no
4953 fi
4954
4955     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4956 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4957 echo "configure:4958: checking for langinfo.h" >&5
4958 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4959   echo $ac_n "(cached) $ac_c" 1>&6
4960 else
4961   cat > conftest.$ac_ext <<EOF
4962 #line 4963 "configure"
4963 #include "confdefs.h"
4964 #include <langinfo.h>
4965 EOF
4966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4967 { (eval echo configure:4968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4969 if test -z "$ac_err"; then
4970   rm -rf conftest*
4971   eval "ac_cv_header_$ac_safe=yes"
4972 else
4973   echo "$ac_err" >&5
4974   echo "configure: failed program was:" >&5
4975   cat conftest.$ac_ext >&5
4976   rm -rf conftest*
4977   eval "ac_cv_header_$ac_safe=no"
4978 fi
4979 rm -f conftest*
4980 fi
4981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4982   echo "$ac_t""yes" 1>&6
4983   ac_has_langinfo_h=yes
4984 else
4985   echo "$ac_t""no" 1>&6
4986 ac_has_langinfo_h=no
4987 fi
4988
4989
4990         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4991 echo "configure:4992: checking for iconv in -liconv" >&5
4992 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
4993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4994   echo $ac_n "(cached) $ac_c" 1>&6
4995 else
4996   ac_save_LIBS="$LIBS"
4997 LIBS="-liconv  $LIBS"
4998 cat > conftest.$ac_ext <<EOF
4999 #line 5000 "configure"
5000 #include "confdefs.h"
5001 /* Override any gcc2 internal prototype to avoid an error.  */
5002 /* We use char because int might match the return type of a gcc2
5003     builtin and then its argument prototype would still apply.  */
5004 char iconv();
5005
5006 int main() {
5007 iconv()
5008 ; return 0; }
5009 EOF
5010 if { (eval echo configure:5011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5011   rm -rf conftest*
5012   eval "ac_cv_lib_$ac_lib_var=yes"
5013 else
5014   echo "configure: failed program was:" >&5
5015   cat conftest.$ac_ext >&5
5016   rm -rf conftest*
5017   eval "ac_cv_lib_$ac_lib_var=no"
5018 fi
5019 rm -f conftest*
5020 LIBS="$ac_save_LIBS"
5021
5022 fi
5023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5024   echo "$ac_t""yes" 1>&6
5025   libiconv="-liconv"
5026 else
5027   echo "$ac_t""no" 1>&6
5028 fi
5029
5030     ac_save_LIBS="$LIBS"
5031     LIBS="$LIBS $libiconv"
5032
5033     for ac_func in iconv_open iconv_close iconv nl_langinfo
5034 do
5035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5036 echo "configure:5037: checking for $ac_func" >&5
5037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5038   echo $ac_n "(cached) $ac_c" 1>&6
5039 else
5040   cat > conftest.$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5043 /* System header to define __stub macros and hopefully few prototypes,
5044     which can conflict with char $ac_func(); below.  */
5045 #include <assert.h>
5046 /* Override any gcc2 internal prototype to avoid an error.  */
5047 /* We use char because int might match the return type of a gcc2
5048     builtin and then its argument prototype would still apply.  */
5049 char $ac_func();
5050
5051 int main() {
5052
5053 /* The GNU C library defines this for functions which it implements
5054     to always fail with ENOSYS.  Some functions are actually named
5055     something starting with __ and the normal name is an alias.  */
5056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5057 choke me
5058 #else
5059 $ac_func();
5060 #endif
5061
5062 ; return 0; }
5063 EOF
5064 if { (eval echo configure:5065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5065   rm -rf conftest*
5066   eval "ac_cv_func_$ac_func=yes"
5067 else
5068   echo "configure: failed program was:" >&5
5069   cat conftest.$ac_ext >&5
5070   rm -rf conftest*
5071   eval "ac_cv_func_$ac_func=no"
5072 fi
5073 rm -f conftest*
5074 fi
5075
5076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5077   echo "$ac_t""yes" 1>&6
5078     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5079   cat >> confdefs.h <<EOF
5080 #define $ac_tr_func 1
5081 EOF
5082  \
5083     ac_XPG2funcs=yes
5084 else
5085   echo "$ac_t""no" 1>&6
5086 ac_XPG2funcs=no
5087 fi
5088 done
5089
5090   
5091     LIBS="$ac_save_LIBS"
5092
5093     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5094 echo "configure:5095: checking for XPG2 wchar_t support" >&5
5095     if test x"$ac_has_iconv_h" = xyes &&
5096        test x"$ac_has_langinfo_h" = xyes &&
5097        test x"$ac_XPG2funcs" = xyes; then
5098       ac_XPG2_wchar_t=yes
5099     else
5100       ac_XPG2_wchar_t=no
5101     fi
5102     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5103   
5104             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5105 echo "configure:5106: checking for enabled wchar_t specializations" >&5
5106     if test x"$ac_isoC99_wchar_t" = xyes &&
5107        test x"$ac_XPG2_wchar_t" = xyes; then
5108       cat >> confdefs.h <<\EOF
5109 #define _GLIBCPP_USE_WCHAR_T 1
5110 EOF
5111
5112       echo "$ac_t"""yes"" 1>&6
5113     else
5114       echo "$ac_t"""no"" 1>&6
5115     fi
5116   else
5117         echo "configure: warning: wchar_t support disabled." 1>&2
5118   fi
5119
5120       cat >> confdefs.h <<\EOF
5121 #define HAVE_COPYSIGN 1
5122 EOF
5123
5124       cat >> confdefs.h <<\EOF
5125 #define HAVE_COPYSIGNF 1
5126 EOF
5127
5128       cat >> confdefs.h <<\EOF
5129 #define HAVE_FINITE 1
5130 EOF
5131
5132       cat >> confdefs.h <<\EOF
5133 #define HAVE_FINITEF 1
5134 EOF
5135
5136       cat >> confdefs.h <<\EOF
5137 #define HAVE_FREXPF 1
5138 EOF
5139
5140       cat >> confdefs.h <<\EOF
5141 #define HAVE_HYPOTF 1
5142 EOF
5143
5144       cat >> confdefs.h <<\EOF
5145 #define HAVE_ISINF 1
5146 EOF
5147
5148       cat >> confdefs.h <<\EOF
5149 #define HAVE_ISINFF 1
5150 EOF
5151
5152       cat >> confdefs.h <<\EOF
5153 #define HAVE_ISNAN 1
5154 EOF
5155
5156       cat >> confdefs.h <<\EOF
5157 #define HAVE_ISNANF 1
5158 EOF
5159
5160       cat >> confdefs.h <<\EOF
5161 #define HAVE_SINCOS 1
5162 EOF
5163
5164       cat >> confdefs.h <<\EOF
5165 #define HAVE_SINCOSF 1
5166 EOF
5167
5168       if test x"long_double_math_on_this_cpu" = x"yes"; then
5169         cat >> confdefs.h <<\EOF
5170 #define HAVE_FINITEL 1
5171 EOF
5172
5173         cat >> confdefs.h <<\EOF
5174 #define HAVE_HYPOTL 1
5175 EOF
5176
5177         cat >> confdefs.h <<\EOF
5178 #define HAVE_ISINFL 1
5179 EOF
5180
5181         cat >> confdefs.h <<\EOF
5182 #define HAVE_ISNANL 1
5183 EOF
5184
5185       fi
5186       ;;
5187     *-hpux*)
5188       # Check for available headers.
5189       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5190         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5191         fp.h locale.h float.h inttypes.h
5192 do
5193 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5194 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5195 echo "configure:5196: checking for $ac_hdr" >&5
5196 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5197   echo $ac_n "(cached) $ac_c" 1>&6
5198 else
5199   cat > conftest.$ac_ext <<EOF
5200 #line 5201 "configure"
5201 #include "confdefs.h"
5202 #include <$ac_hdr>
5203 EOF
5204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5205 { (eval echo configure:5206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5207 if test -z "$ac_err"; then
5208   rm -rf conftest*
5209   eval "ac_cv_header_$ac_safe=yes"
5210 else
5211   echo "$ac_err" >&5
5212   echo "configure: failed program was:" >&5
5213   cat conftest.$ac_ext >&5
5214   rm -rf conftest*
5215   eval "ac_cv_header_$ac_safe=no"
5216 fi
5217 rm -f conftest*
5218 fi
5219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5220   echo "$ac_t""yes" 1>&6
5221     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5222   cat >> confdefs.h <<EOF
5223 #define $ac_tr_hdr 1
5224 EOF
5225  
5226 else
5227   echo "$ac_t""no" 1>&6
5228 fi
5229 done
5230
5231       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5232       
5233       
5234   # If we're not using GNU ld, then there's no point in even trying these
5235   # tests.  Check for that first.  We should have already tested for gld
5236   # by now (in libtool), but require it now just to be safe...
5237   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5238   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5239   
5240
5241   # The name set by libtool depends on the version of libtool.  Shame on us
5242   # for depending on an impl detail, but c'est la vie.  Older versions used
5243   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5244   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5245   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5246   # set (hence we're using an older libtool), then set it.
5247   if test x${with_gnu_ld+set} != xset; then
5248     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5249       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5250       with_gnu_ld=no
5251     else
5252       with_gnu_ld=$ac_cv_prog_gnu_ld
5253     fi
5254   fi
5255
5256   # Start by getting the version number.  I think the libtool test already
5257   # does some of this, but throws away the result.
5258   
5259   ldver=`$LD --version 2>/dev/null | head -1 | \
5260          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5261   
5262   glibcpp_gnu_ld_version=`echo $ldver | \
5263          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5264
5265   # Set --gc-sections.
5266   if test "$with_gnu_ld" = "notbroken"; then
5267     # GNU ld it is!  Joy and bunny rabbits!
5268
5269     # All these tests are for C++; save the language and the compiler flags.
5270     # Need to do this so that g++ won't try to link in libstdc++
5271     ac_test_CFLAGS="${CFLAGS+set}"
5272     ac_save_CFLAGS="$CFLAGS"
5273     CFLAGS='-x c++  -Wl,--gc-sections'
5274
5275     # Check for -Wl,--gc-sections
5276     # XXX This test is broken at the moment, as symbols required for
5277     # linking are now in libsupc++ (not built yet.....). In addition, 
5278     # this test has cored on solaris in the past. In addition,
5279     # --gc-sections doesn't really work at the moment (keeps on discarding
5280     # used sections, first .eh_frame and now some of the glibc sections for
5281     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5282     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5283 echo "configure:5284: checking for ld that supports -Wl,--gc-sections" >&5
5284     if test "$cross_compiling" = yes; then
5285   ac_sectionLDflags=yes
5286 else
5287   cat > conftest.$ac_ext <<EOF
5288 #line 5289 "configure"
5289 #include "confdefs.h"
5290
5291      int main(void) 
5292      {
5293        try { throw 1; }
5294        catch (...) { };
5295        return 0;
5296      }
5297     
5298 EOF
5299 if { (eval echo configure:5300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5300 then
5301   ac_sectionLDflags=yes
5302 else
5303   echo "configure: failed program was:" >&5
5304   cat conftest.$ac_ext >&5
5305   rm -fr conftest*
5306   ac_sectionLDflags=no
5307 fi
5308 rm -fr conftest*
5309 fi
5310
5311     if test "$ac_test_CFLAGS" = set; then
5312       CFLAGS="$ac_save_CFLAGS"
5313     else
5314       # this is the suspicious part
5315       CFLAGS=''
5316     fi
5317     if test "$ac_sectionLDflags" = "yes"; then
5318       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5319     fi
5320     echo "$ac_t""$ac_sectionLDflags" 1>&6
5321   fi
5322
5323   # Set linker optimization flags.
5324   if test x"$with_gnu_ld" = x"yes"; then
5325     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5326   fi
5327
5328   
5329   
5330
5331       
5332     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5333 echo "configure:5334: checking for main in -lm" >&5
5334 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5336   echo $ac_n "(cached) $ac_c" 1>&6
5337 else
5338   ac_save_LIBS="$LIBS"
5339 LIBS="-lm  $LIBS"
5340 cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5343
5344 int main() {
5345 main()
5346 ; return 0; }
5347 EOF
5348 if { (eval echo configure:5349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5349   rm -rf conftest*
5350   eval "ac_cv_lib_$ac_lib_var=yes"
5351 else
5352   echo "configure: failed program was:" >&5
5353   cat conftest.$ac_ext >&5
5354   rm -rf conftest*
5355   eval "ac_cv_lib_$ac_lib_var=no"
5356 fi
5357 rm -f conftest*
5358 LIBS="$ac_save_LIBS"
5359
5360 fi
5361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5362   echo "$ac_t""yes" 1>&6
5363     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5364     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5365   cat >> confdefs.h <<EOF
5366 #define $ac_tr_lib 1
5367 EOF
5368
5369   LIBS="-lm $LIBS"
5370
5371 else
5372   echo "$ac_t""no" 1>&6
5373 fi
5374
5375   for ac_func in nan copysignf
5376 do
5377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5378 echo "configure:5379: checking for $ac_func" >&5
5379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5380   echo $ac_n "(cached) $ac_c" 1>&6
5381 else
5382   cat > conftest.$ac_ext <<EOF
5383 #line 5384 "configure"
5384 #include "confdefs.h"
5385 /* System header to define __stub macros and hopefully few prototypes,
5386     which can conflict with char $ac_func(); below.  */
5387 #include <assert.h>
5388 /* Override any gcc2 internal prototype to avoid an error.  */
5389 /* We use char because int might match the return type of a gcc2
5390     builtin and then its argument prototype would still apply.  */
5391 char $ac_func();
5392
5393 int main() {
5394
5395 /* The GNU C library defines this for functions which it implements
5396     to always fail with ENOSYS.  Some functions are actually named
5397     something starting with __ and the normal name is an alias.  */
5398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5399 choke me
5400 #else
5401 $ac_func();
5402 #endif
5403
5404 ; return 0; }
5405 EOF
5406 if { (eval echo configure:5407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5407   rm -rf conftest*
5408   eval "ac_cv_func_$ac_func=yes"
5409 else
5410   echo "configure: failed program was:" >&5
5411   cat conftest.$ac_ext >&5
5412   rm -rf conftest*
5413   eval "ac_cv_func_$ac_func=no"
5414 fi
5415 rm -f conftest*
5416 fi
5417
5418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5419   echo "$ac_t""yes" 1>&6
5420     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5421   cat >> confdefs.h <<EOF
5422 #define $ac_tr_func 1
5423 EOF
5424  
5425 else
5426   echo "$ac_t""no" 1>&6
5427 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5428 fi
5429 done
5430
5431
5432     for ac_func in __signbit
5433 do
5434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5435 echo "configure:5436: checking for $ac_func" >&5
5436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5437   echo $ac_n "(cached) $ac_c" 1>&6
5438 else
5439   cat > conftest.$ac_ext <<EOF
5440 #line 5441 "configure"
5441 #include "confdefs.h"
5442 /* System header to define __stub macros and hopefully few prototypes,
5443     which can conflict with char $ac_func(); below.  */
5444 #include <assert.h>
5445 /* Override any gcc2 internal prototype to avoid an error.  */
5446 /* We use char because int might match the return type of a gcc2
5447     builtin and then its argument prototype would still apply.  */
5448 char $ac_func();
5449
5450 int main() {
5451
5452 /* The GNU C library defines this for functions which it implements
5453     to always fail with ENOSYS.  Some functions are actually named
5454     something starting with __ and the normal name is an alias.  */
5455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5456 choke me
5457 #else
5458 $ac_func();
5459 #endif
5460
5461 ; return 0; }
5462 EOF
5463 if { (eval echo configure:5464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5464   rm -rf conftest*
5465   eval "ac_cv_func_$ac_func=yes"
5466 else
5467   echo "configure: failed program was:" >&5
5468   cat conftest.$ac_ext >&5
5469   rm -rf conftest*
5470   eval "ac_cv_func_$ac_func=no"
5471 fi
5472 rm -f conftest*
5473 fi
5474
5475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5476   echo "$ac_t""yes" 1>&6
5477     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5478   cat >> confdefs.h <<EOF
5479 #define $ac_tr_func 1
5480 EOF
5481  
5482 else
5483   echo "$ac_t""no" 1>&6
5484 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5485 fi
5486 done
5487
5488   for ac_func in __signbitf
5489 do
5490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5491 echo "configure:5492: checking for $ac_func" >&5
5492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5493   echo $ac_n "(cached) $ac_c" 1>&6
5494 else
5495   cat > conftest.$ac_ext <<EOF
5496 #line 5497 "configure"
5497 #include "confdefs.h"
5498 /* System header to define __stub macros and hopefully few prototypes,
5499     which can conflict with char $ac_func(); below.  */
5500 #include <assert.h>
5501 /* Override any gcc2 internal prototype to avoid an error.  */
5502 /* We use char because int might match the return type of a gcc2
5503     builtin and then its argument prototype would still apply.  */
5504 char $ac_func();
5505
5506 int main() {
5507
5508 /* The GNU C library defines this for functions which it implements
5509     to always fail with ENOSYS.  Some functions are actually named
5510     something starting with __ and the normal name is an alias.  */
5511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5512 choke me
5513 #else
5514 $ac_func();
5515 #endif
5516
5517 ; return 0; }
5518 EOF
5519 if { (eval echo configure:5520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5520   rm -rf conftest*
5521   eval "ac_cv_func_$ac_func=yes"
5522 else
5523   echo "configure: failed program was:" >&5
5524   cat conftest.$ac_ext >&5
5525   rm -rf conftest*
5526   eval "ac_cv_func_$ac_func=no"
5527 fi
5528 rm -f conftest*
5529 fi
5530
5531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5532   echo "$ac_t""yes" 1>&6
5533     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5534   cat >> confdefs.h <<EOF
5535 #define $ac_tr_func 1
5536 EOF
5537  
5538 else
5539   echo "$ac_t""no" 1>&6
5540 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5541 fi
5542 done
5543
5544
5545           if test x$ac_cv_func_copysignl = x"yes"; then
5546     for ac_func in __signbitl
5547 do
5548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5549 echo "configure:5550: checking for $ac_func" >&5
5550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5551   echo $ac_n "(cached) $ac_c" 1>&6
5552 else
5553   cat > conftest.$ac_ext <<EOF
5554 #line 5555 "configure"
5555 #include "confdefs.h"
5556 /* System header to define __stub macros and hopefully few prototypes,
5557     which can conflict with char $ac_func(); below.  */
5558 #include <assert.h>
5559 /* Override any gcc2 internal prototype to avoid an error.  */
5560 /* We use char because int might match the return type of a gcc2
5561     builtin and then its argument prototype would still apply.  */
5562 char $ac_func();
5563
5564 int main() {
5565
5566 /* The GNU C library defines this for functions which it implements
5567     to always fail with ENOSYS.  Some functions are actually named
5568     something starting with __ and the normal name is an alias.  */
5569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5570 choke me
5571 #else
5572 $ac_func();
5573 #endif
5574
5575 ; return 0; }
5576 EOF
5577 if { (eval echo configure:5578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5578   rm -rf conftest*
5579   eval "ac_cv_func_$ac_func=yes"
5580 else
5581   echo "configure: failed program was:" >&5
5582   cat conftest.$ac_ext >&5
5583   rm -rf conftest*
5584   eval "ac_cv_func_$ac_func=no"
5585 fi
5586 rm -f conftest*
5587 fi
5588
5589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5590   echo "$ac_t""yes" 1>&6
5591     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5592   cat >> confdefs.h <<EOF
5593 #define $ac_tr_func 1
5594 EOF
5595  
5596 else
5597   echo "$ac_t""no" 1>&6
5598 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5599 fi
5600 done
5601
5602   fi
5603
5604   if test -n "$LIBMATHOBJS"; then
5605     need_libmath=yes
5606   fi
5607   
5608   
5609
5610 if test "$need_libmath" = yes; then
5611   GLIBCPP_BUILD_LIBMATH_TRUE=
5612   GLIBCPP_BUILD_LIBMATH_FALSE='#'
5613 else
5614   GLIBCPP_BUILD_LIBMATH_TRUE='#'
5615   GLIBCPP_BUILD_LIBMATH_FALSE=
5616 fi
5617
5618       
5619
5620       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5621 echo "configure:5622: checking for mbstate_t" >&5
5622   cat > conftest.$ac_ext <<EOF
5623 #line 5624 "configure"
5624 #include "confdefs.h"
5625 #include <wchar.h>
5626 int main() {
5627 mbstate_t teststate;
5628 ; return 0; }
5629 EOF
5630 if { (eval echo configure:5631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5631   rm -rf conftest*
5632   have_mbstate_t=yes
5633 else
5634   echo "configure: failed program was:" >&5
5635   cat conftest.$ac_ext >&5
5636   rm -rf conftest*
5637   have_mbstate_t=no
5638 fi
5639 rm -f conftest*
5640   echo "$ac_t""$have_mbstate_t" 1>&6
5641   if test x"$have_mbstate_t" = xyes; then
5642     cat >> confdefs.h <<\EOF
5643 #define HAVE_MBSTATE_T 1
5644 EOF
5645
5646   fi
5647
5648     for ac_hdr in wchar.h
5649 do
5650 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5651 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5652 echo "configure:5653: checking for $ac_hdr" >&5
5653 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5654   echo $ac_n "(cached) $ac_c" 1>&6
5655 else
5656   cat > conftest.$ac_ext <<EOF
5657 #line 5658 "configure"
5658 #include "confdefs.h"
5659 #include <$ac_hdr>
5660 EOF
5661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5662 { (eval echo configure:5663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5664 if test -z "$ac_err"; then
5665   rm -rf conftest*
5666   eval "ac_cv_header_$ac_safe=yes"
5667 else
5668   echo "$ac_err" >&5
5669   echo "configure: failed program was:" >&5
5670   cat conftest.$ac_ext >&5
5671   rm -rf conftest*
5672   eval "ac_cv_header_$ac_safe=no"
5673 fi
5674 rm -f conftest*
5675 fi
5676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5677   echo "$ac_t""yes" 1>&6
5678     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5679   cat >> confdefs.h <<EOF
5680 #define $ac_tr_hdr 1
5681 EOF
5682  ac_has_wchar_h=yes
5683 else
5684   echo "$ac_t""no" 1>&6
5685 ac_has_wchar_h=no
5686 fi
5687 done
5688
5689   for ac_hdr in wctype.h
5690 do
5691 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5693 echo "configure:5694: checking for $ac_hdr" >&5
5694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5695   echo $ac_n "(cached) $ac_c" 1>&6
5696 else
5697   cat > conftest.$ac_ext <<EOF
5698 #line 5699 "configure"
5699 #include "confdefs.h"
5700 #include <$ac_hdr>
5701 EOF
5702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5703 { (eval echo configure:5704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5705 if test -z "$ac_err"; then
5706   rm -rf conftest*
5707   eval "ac_cv_header_$ac_safe=yes"
5708 else
5709   echo "$ac_err" >&5
5710   echo "configure: failed program was:" >&5
5711   cat conftest.$ac_ext >&5
5712   rm -rf conftest*
5713   eval "ac_cv_header_$ac_safe=no"
5714 fi
5715 rm -f conftest*
5716 fi
5717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5718   echo "$ac_t""yes" 1>&6
5719     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5720   cat >> confdefs.h <<EOF
5721 #define $ac_tr_hdr 1
5722 EOF
5723  ac_has_wctype_h=yes
5724 else
5725   echo "$ac_t""no" 1>&6
5726 ac_has_wctype_h=no
5727 fi
5728 done
5729
5730   
5731     if test x"$ac_has_wchar_h" = xyes &&
5732      test x"$ac_has_wctype_h" = xyes &&
5733      test x"$enable_c_mbchar" != xno; then
5734       
5735             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5736 echo "configure:5737: checking for WCHAR_MIN and WCHAR_MAX" >&5
5737     cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5740 #include <wchar.h>
5741 int main() {
5742 int i = WCHAR_MIN; int j = WCHAR_MAX;
5743 ; return 0; }
5744 EOF
5745 if { (eval echo configure:5746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5746   rm -rf conftest*
5747   has_wchar_minmax=yes
5748 else
5749   echo "configure: failed program was:" >&5
5750   cat conftest.$ac_ext >&5
5751   rm -rf conftest*
5752   has_wchar_minmax=no
5753 fi
5754 rm -f conftest*
5755     echo "$ac_t""$has_wchar_minmax" 1>&6
5756     
5757             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5758 echo "configure:5759: checking for WEOF" >&5
5759     cat > conftest.$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5762
5763       #include <wchar.h>
5764       #include <stddef.h>
5765 int main() {
5766 wint_t i = WEOF;
5767 ; return 0; }
5768 EOF
5769 if { (eval echo configure:5770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5770   rm -rf conftest*
5771   has_weof=yes
5772 else
5773   echo "configure: failed program was:" >&5
5774   cat conftest.$ac_ext >&5
5775   rm -rf conftest*
5776   has_weof=no
5777 fi
5778 rm -f conftest*
5779     echo "$ac_t""$has_weof" 1>&6
5780   
5781         ac_wfuncs=yes
5782     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5783 do
5784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5785 echo "configure:5786: checking for $ac_func" >&5
5786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5787   echo $ac_n "(cached) $ac_c" 1>&6
5788 else
5789   cat > conftest.$ac_ext <<EOF
5790 #line 5791 "configure"
5791 #include "confdefs.h"
5792 /* System header to define __stub macros and hopefully few prototypes,
5793     which can conflict with char $ac_func(); below.  */
5794 #include <assert.h>
5795 /* Override any gcc2 internal prototype to avoid an error.  */
5796 /* We use char because int might match the return type of a gcc2
5797     builtin and then its argument prototype would still apply.  */
5798 char $ac_func();
5799
5800 int main() {
5801
5802 /* The GNU C library defines this for functions which it implements
5803     to always fail with ENOSYS.  Some functions are actually named
5804     something starting with __ and the normal name is an alias.  */
5805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5806 choke me
5807 #else
5808 $ac_func();
5809 #endif
5810
5811 ; return 0; }
5812 EOF
5813 if { (eval echo configure:5814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5814   rm -rf conftest*
5815   eval "ac_cv_func_$ac_func=yes"
5816 else
5817   echo "configure: failed program was:" >&5
5818   cat conftest.$ac_ext >&5
5819   rm -rf conftest*
5820   eval "ac_cv_func_$ac_func=no"
5821 fi
5822 rm -f conftest*
5823 fi
5824
5825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5826   echo "$ac_t""yes" 1>&6
5827     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5828   cat >> confdefs.h <<EOF
5829 #define $ac_tr_func 1
5830 EOF
5831  
5832 else
5833   echo "$ac_t""no" 1>&6
5834 \
5835     ac_wfuncs=no
5836 fi
5837 done
5838
5839   
5840         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5841     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5842     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5843     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5844     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5845     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5846 do
5847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5848 echo "configure:5849: checking for $ac_func" >&5
5849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5850   echo $ac_n "(cached) $ac_c" 1>&6
5851 else
5852   cat > conftest.$ac_ext <<EOF
5853 #line 5854 "configure"
5854 #include "confdefs.h"
5855 /* System header to define __stub macros and hopefully few prototypes,
5856     which can conflict with char $ac_func(); below.  */
5857 #include <assert.h>
5858 /* Override any gcc2 internal prototype to avoid an error.  */
5859 /* We use char because int might match the return type of a gcc2
5860     builtin and then its argument prototype would still apply.  */
5861 char $ac_func();
5862
5863 int main() {
5864
5865 /* The GNU C library defines this for functions which it implements
5866     to always fail with ENOSYS.  Some functions are actually named
5867     something starting with __ and the normal name is an alias.  */
5868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5869 choke me
5870 #else
5871 $ac_func();
5872 #endif
5873
5874 ; return 0; }
5875 EOF
5876 if { (eval echo configure:5877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5877   rm -rf conftest*
5878   eval "ac_cv_func_$ac_func=yes"
5879 else
5880   echo "configure: failed program was:" >&5
5881   cat conftest.$ac_ext >&5
5882   rm -rf conftest*
5883   eval "ac_cv_func_$ac_func=no"
5884 fi
5885 rm -f conftest*
5886 fi
5887
5888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5889   echo "$ac_t""yes" 1>&6
5890     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5891   cat >> confdefs.h <<EOF
5892 #define $ac_tr_func 1
5893 EOF
5894  
5895 else
5896   echo "$ac_t""no" 1>&6
5897 \
5898     ac_wfuncs=no
5899 fi
5900 done
5901
5902
5903     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5904 echo "configure:5905: checking for ISO C99 wchar_t support" >&5
5905     if test x"$has_weof" = xyes &&
5906        test x"$has_wchar_minmax" = xyes &&
5907        test x"$ac_wfuncs" = xyes; then
5908       ac_isoC99_wchar_t=yes
5909     else
5910       ac_isoC99_wchar_t=no
5911     fi
5912     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5913   
5914             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5915 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5916 echo "configure:5917: checking for iconv.h" >&5
5917 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5918   echo $ac_n "(cached) $ac_c" 1>&6
5919 else
5920   cat > conftest.$ac_ext <<EOF
5921 #line 5922 "configure"
5922 #include "confdefs.h"
5923 #include <iconv.h>
5924 EOF
5925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5926 { (eval echo configure:5927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5928 if test -z "$ac_err"; then
5929   rm -rf conftest*
5930   eval "ac_cv_header_$ac_safe=yes"
5931 else
5932   echo "$ac_err" >&5
5933   echo "configure: failed program was:" >&5
5934   cat conftest.$ac_ext >&5
5935   rm -rf conftest*
5936   eval "ac_cv_header_$ac_safe=no"
5937 fi
5938 rm -f conftest*
5939 fi
5940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5941   echo "$ac_t""yes" 1>&6
5942   ac_has_iconv_h=yes
5943 else
5944   echo "$ac_t""no" 1>&6
5945 ac_has_iconv_h=no
5946 fi
5947
5948     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5949 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5950 echo "configure:5951: checking for langinfo.h" >&5
5951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5952   echo $ac_n "(cached) $ac_c" 1>&6
5953 else
5954   cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure"
5956 #include "confdefs.h"
5957 #include <langinfo.h>
5958 EOF
5959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5960 { (eval echo configure:5961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5962 if test -z "$ac_err"; then
5963   rm -rf conftest*
5964   eval "ac_cv_header_$ac_safe=yes"
5965 else
5966   echo "$ac_err" >&5
5967   echo "configure: failed program was:" >&5
5968   cat conftest.$ac_ext >&5
5969   rm -rf conftest*
5970   eval "ac_cv_header_$ac_safe=no"
5971 fi
5972 rm -f conftest*
5973 fi
5974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5975   echo "$ac_t""yes" 1>&6
5976   ac_has_langinfo_h=yes
5977 else
5978   echo "$ac_t""no" 1>&6
5979 ac_has_langinfo_h=no
5980 fi
5981
5982
5983         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5984 echo "configure:5985: checking for iconv in -liconv" >&5
5985 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5986 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5987   echo $ac_n "(cached) $ac_c" 1>&6
5988 else
5989   ac_save_LIBS="$LIBS"
5990 LIBS="-liconv  $LIBS"
5991 cat > conftest.$ac_ext <<EOF
5992 #line 5993 "configure"
5993 #include "confdefs.h"
5994 /* Override any gcc2 internal prototype to avoid an error.  */
5995 /* We use char because int might match the return type of a gcc2
5996     builtin and then its argument prototype would still apply.  */
5997 char iconv();
5998
5999 int main() {
6000 iconv()
6001 ; return 0; }
6002 EOF
6003 if { (eval echo configure:6004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6004   rm -rf conftest*
6005   eval "ac_cv_lib_$ac_lib_var=yes"
6006 else
6007   echo "configure: failed program was:" >&5
6008   cat conftest.$ac_ext >&5
6009   rm -rf conftest*
6010   eval "ac_cv_lib_$ac_lib_var=no"
6011 fi
6012 rm -f conftest*
6013 LIBS="$ac_save_LIBS"
6014
6015 fi
6016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6017   echo "$ac_t""yes" 1>&6
6018   libiconv="-liconv"
6019 else
6020   echo "$ac_t""no" 1>&6
6021 fi
6022
6023     ac_save_LIBS="$LIBS"
6024     LIBS="$LIBS $libiconv"
6025
6026     for ac_func in iconv_open iconv_close iconv nl_langinfo
6027 do
6028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6029 echo "configure:6030: checking for $ac_func" >&5
6030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6031   echo $ac_n "(cached) $ac_c" 1>&6
6032 else
6033   cat > conftest.$ac_ext <<EOF
6034 #line 6035 "configure"
6035 #include "confdefs.h"
6036 /* System header to define __stub macros and hopefully few prototypes,
6037     which can conflict with char $ac_func(); below.  */
6038 #include <assert.h>
6039 /* Override any gcc2 internal prototype to avoid an error.  */
6040 /* We use char because int might match the return type of a gcc2
6041     builtin and then its argument prototype would still apply.  */
6042 char $ac_func();
6043
6044 int main() {
6045
6046 /* The GNU C library defines this for functions which it implements
6047     to always fail with ENOSYS.  Some functions are actually named
6048     something starting with __ and the normal name is an alias.  */
6049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6050 choke me
6051 #else
6052 $ac_func();
6053 #endif
6054
6055 ; return 0; }
6056 EOF
6057 if { (eval echo configure:6058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6058   rm -rf conftest*
6059   eval "ac_cv_func_$ac_func=yes"
6060 else
6061   echo "configure: failed program was:" >&5
6062   cat conftest.$ac_ext >&5
6063   rm -rf conftest*
6064   eval "ac_cv_func_$ac_func=no"
6065 fi
6066 rm -f conftest*
6067 fi
6068
6069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6070   echo "$ac_t""yes" 1>&6
6071     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6072   cat >> confdefs.h <<EOF
6073 #define $ac_tr_func 1
6074 EOF
6075  \
6076     ac_XPG2funcs=yes
6077 else
6078   echo "$ac_t""no" 1>&6
6079 ac_XPG2funcs=no
6080 fi
6081 done
6082
6083   
6084     LIBS="$ac_save_LIBS"
6085
6086     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6087 echo "configure:6088: checking for XPG2 wchar_t support" >&5
6088     if test x"$ac_has_iconv_h" = xyes &&
6089        test x"$ac_has_langinfo_h" = xyes &&
6090        test x"$ac_XPG2funcs" = xyes; then
6091       ac_XPG2_wchar_t=yes
6092     else
6093       ac_XPG2_wchar_t=no
6094     fi
6095     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6096   
6097             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6098 echo "configure:6099: checking for enabled wchar_t specializations" >&5
6099     if test x"$ac_isoC99_wchar_t" = xyes &&
6100        test x"$ac_XPG2_wchar_t" = xyes; then
6101       cat >> confdefs.h <<\EOF
6102 #define _GLIBCPP_USE_WCHAR_T 1
6103 EOF
6104
6105       echo "$ac_t"""yes"" 1>&6
6106     else
6107       echo "$ac_t"""no"" 1>&6
6108     fi
6109   else
6110         echo "configure: warning: wchar_t support disabled." 1>&2
6111   fi
6112
6113       os_include_dir="os/hpux"
6114       cat >> confdefs.h <<\EOF
6115 #define HAVE_COPYSIGN 1
6116 EOF
6117
6118       cat >> confdefs.h <<\EOF
6119 #define HAVE_COPYSIGNF 1
6120 EOF
6121
6122       cat >> confdefs.h <<\EOF
6123 #define HAVE_FREXPF 1
6124 EOF
6125
6126       cat >> confdefs.h <<\EOF
6127 #define HAVE_HYPOT 1
6128 EOF
6129
6130       case "$target" in
6131         *-hpux10*)
6132           cat >> confdefs.h <<\EOF
6133 #define HAVE_FINITE 1
6134 EOF
6135
6136           cat >> confdefs.h <<\EOF
6137 #define HAVE_FINITEF 1
6138 EOF
6139
6140           cat >> confdefs.h <<\EOF
6141 #define HAVE_ISINF 1
6142 EOF
6143
6144           cat >> confdefs.h <<\EOF
6145 #define HAVE_ISINFF 1
6146 EOF
6147
6148           cat >> confdefs.h <<\EOF
6149 #define HAVE_ISNAN 1
6150 EOF
6151
6152           cat >> confdefs.h <<\EOF
6153 #define HAVE_ISNANF 1
6154 EOF
6155
6156           ;;
6157       esac
6158
6159       ;;
6160     *-netbsd*)
6161       # Check for available headers.
6162       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6163         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6164         fp.h locale.h float.h inttypes.h
6165 do
6166 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6167 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6168 echo "configure:6169: checking for $ac_hdr" >&5
6169 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6170   echo $ac_n "(cached) $ac_c" 1>&6
6171 else
6172   cat > conftest.$ac_ext <<EOF
6173 #line 6174 "configure"
6174 #include "confdefs.h"
6175 #include <$ac_hdr>
6176 EOF
6177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6178 { (eval echo configure:6179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6180 if test -z "$ac_err"; then
6181   rm -rf conftest*
6182   eval "ac_cv_header_$ac_safe=yes"
6183 else
6184   echo "$ac_err" >&5
6185   echo "configure: failed program was:" >&5
6186   cat conftest.$ac_ext >&5
6187   rm -rf conftest*
6188   eval "ac_cv_header_$ac_safe=no"
6189 fi
6190 rm -f conftest*
6191 fi
6192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6193   echo "$ac_t""yes" 1>&6
6194     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6195   cat >> confdefs.h <<EOF
6196 #define $ac_tr_hdr 1
6197 EOF
6198  
6199 else
6200   echo "$ac_t""no" 1>&6
6201 fi
6202 done
6203
6204       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6205        
6206       
6207   # If we're not using GNU ld, then there's no point in even trying these
6208   # tests.  Check for that first.  We should have already tested for gld
6209   # by now (in libtool), but require it now just to be safe...
6210   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6211   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6212   
6213
6214   # The name set by libtool depends on the version of libtool.  Shame on us
6215   # for depending on an impl detail, but c'est la vie.  Older versions used
6216   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6217   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6218   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6219   # set (hence we're using an older libtool), then set it.
6220   if test x${with_gnu_ld+set} != xset; then
6221     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6222       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6223       with_gnu_ld=no
6224     else
6225       with_gnu_ld=$ac_cv_prog_gnu_ld
6226     fi
6227   fi
6228
6229   # Start by getting the version number.  I think the libtool test already
6230   # does some of this, but throws away the result.
6231   
6232   ldver=`$LD --version 2>/dev/null | head -1 | \
6233          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6234   
6235   glibcpp_gnu_ld_version=`echo $ldver | \
6236          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6237
6238   # Set --gc-sections.
6239   if test "$with_gnu_ld" = "notbroken"; then
6240     # GNU ld it is!  Joy and bunny rabbits!
6241
6242     # All these tests are for C++; save the language and the compiler flags.
6243     # Need to do this so that g++ won't try to link in libstdc++
6244     ac_test_CFLAGS="${CFLAGS+set}"
6245     ac_save_CFLAGS="$CFLAGS"
6246     CFLAGS='-x c++  -Wl,--gc-sections'
6247
6248     # Check for -Wl,--gc-sections
6249     # XXX This test is broken at the moment, as symbols required for
6250     # linking are now in libsupc++ (not built yet.....). In addition, 
6251     # this test has cored on solaris in the past. In addition,
6252     # --gc-sections doesn't really work at the moment (keeps on discarding
6253     # used sections, first .eh_frame and now some of the glibc sections for
6254     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6255     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6256 echo "configure:6257: checking for ld that supports -Wl,--gc-sections" >&5
6257     if test "$cross_compiling" = yes; then
6258   ac_sectionLDflags=yes
6259 else
6260   cat > conftest.$ac_ext <<EOF
6261 #line 6262 "configure"
6262 #include "confdefs.h"
6263
6264      int main(void) 
6265      {
6266        try { throw 1; }
6267        catch (...) { };
6268        return 0;
6269      }
6270     
6271 EOF
6272 if { (eval echo configure:6273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6273 then
6274   ac_sectionLDflags=yes
6275 else
6276   echo "configure: failed program was:" >&5
6277   cat conftest.$ac_ext >&5
6278   rm -fr conftest*
6279   ac_sectionLDflags=no
6280 fi
6281 rm -fr conftest*
6282 fi
6283
6284     if test "$ac_test_CFLAGS" = set; then
6285       CFLAGS="$ac_save_CFLAGS"
6286     else
6287       # this is the suspicious part
6288       CFLAGS=''
6289     fi
6290     if test "$ac_sectionLDflags" = "yes"; then
6291       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6292     fi
6293     echo "$ac_t""$ac_sectionLDflags" 1>&6
6294   fi
6295
6296   # Set linker optimization flags.
6297   if test x"$with_gnu_ld" = x"yes"; then
6298     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6299   fi
6300
6301   
6302   
6303
6304       
6305     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6306 echo "configure:6307: checking for main in -lm" >&5
6307 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6309   echo $ac_n "(cached) $ac_c" 1>&6
6310 else
6311   ac_save_LIBS="$LIBS"
6312 LIBS="-lm  $LIBS"
6313 cat > conftest.$ac_ext <<EOF
6314 #line 6315 "configure"
6315 #include "confdefs.h"
6316
6317 int main() {
6318 main()
6319 ; return 0; }
6320 EOF
6321 if { (eval echo configure:6322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6322   rm -rf conftest*
6323   eval "ac_cv_lib_$ac_lib_var=yes"
6324 else
6325   echo "configure: failed program was:" >&5
6326   cat conftest.$ac_ext >&5
6327   rm -rf conftest*
6328   eval "ac_cv_lib_$ac_lib_var=no"
6329 fi
6330 rm -f conftest*
6331 LIBS="$ac_save_LIBS"
6332
6333 fi
6334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6335   echo "$ac_t""yes" 1>&6
6336     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6337     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6338   cat >> confdefs.h <<EOF
6339 #define $ac_tr_lib 1
6340 EOF
6341
6342   LIBS="-lm $LIBS"
6343
6344 else
6345   echo "$ac_t""no" 1>&6
6346 fi
6347
6348   for ac_func in nan copysignf
6349 do
6350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6351 echo "configure:6352: checking for $ac_func" >&5
6352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6353   echo $ac_n "(cached) $ac_c" 1>&6
6354 else
6355   cat > conftest.$ac_ext <<EOF
6356 #line 6357 "configure"
6357 #include "confdefs.h"
6358 /* System header to define __stub macros and hopefully few prototypes,
6359     which can conflict with char $ac_func(); below.  */
6360 #include <assert.h>
6361 /* Override any gcc2 internal prototype to avoid an error.  */
6362 /* We use char because int might match the return type of a gcc2
6363     builtin and then its argument prototype would still apply.  */
6364 char $ac_func();
6365
6366 int main() {
6367
6368 /* The GNU C library defines this for functions which it implements
6369     to always fail with ENOSYS.  Some functions are actually named
6370     something starting with __ and the normal name is an alias.  */
6371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6372 choke me
6373 #else
6374 $ac_func();
6375 #endif
6376
6377 ; return 0; }
6378 EOF
6379 if { (eval echo configure:6380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6380   rm -rf conftest*
6381   eval "ac_cv_func_$ac_func=yes"
6382 else
6383   echo "configure: failed program was:" >&5
6384   cat conftest.$ac_ext >&5
6385   rm -rf conftest*
6386   eval "ac_cv_func_$ac_func=no"
6387 fi
6388 rm -f conftest*
6389 fi
6390
6391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6392   echo "$ac_t""yes" 1>&6
6393     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6394   cat >> confdefs.h <<EOF
6395 #define $ac_tr_func 1
6396 EOF
6397  
6398 else
6399   echo "$ac_t""no" 1>&6
6400 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6401 fi
6402 done
6403
6404
6405     for ac_func in __signbit
6406 do
6407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6408 echo "configure:6409: checking for $ac_func" >&5
6409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6410   echo $ac_n "(cached) $ac_c" 1>&6
6411 else
6412   cat > conftest.$ac_ext <<EOF
6413 #line 6414 "configure"
6414 #include "confdefs.h"
6415 /* System header to define __stub macros and hopefully few prototypes,
6416     which can conflict with char $ac_func(); below.  */
6417 #include <assert.h>
6418 /* Override any gcc2 internal prototype to avoid an error.  */
6419 /* We use char because int might match the return type of a gcc2
6420     builtin and then its argument prototype would still apply.  */
6421 char $ac_func();
6422
6423 int main() {
6424
6425 /* The GNU C library defines this for functions which it implements
6426     to always fail with ENOSYS.  Some functions are actually named
6427     something starting with __ and the normal name is an alias.  */
6428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6429 choke me
6430 #else
6431 $ac_func();
6432 #endif
6433
6434 ; return 0; }
6435 EOF
6436 if { (eval echo configure:6437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6437   rm -rf conftest*
6438   eval "ac_cv_func_$ac_func=yes"
6439 else
6440   echo "configure: failed program was:" >&5
6441   cat conftest.$ac_ext >&5
6442   rm -rf conftest*
6443   eval "ac_cv_func_$ac_func=no"
6444 fi
6445 rm -f conftest*
6446 fi
6447
6448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6449   echo "$ac_t""yes" 1>&6
6450     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6451   cat >> confdefs.h <<EOF
6452 #define $ac_tr_func 1
6453 EOF
6454  
6455 else
6456   echo "$ac_t""no" 1>&6
6457 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6458 fi
6459 done
6460
6461   for ac_func in __signbitf
6462 do
6463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6464 echo "configure:6465: checking for $ac_func" >&5
6465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6466   echo $ac_n "(cached) $ac_c" 1>&6
6467 else
6468   cat > conftest.$ac_ext <<EOF
6469 #line 6470 "configure"
6470 #include "confdefs.h"
6471 /* System header to define __stub macros and hopefully few prototypes,
6472     which can conflict with char $ac_func(); below.  */
6473 #include <assert.h>
6474 /* Override any gcc2 internal prototype to avoid an error.  */
6475 /* We use char because int might match the return type of a gcc2
6476     builtin and then its argument prototype would still apply.  */
6477 char $ac_func();
6478
6479 int main() {
6480
6481 /* The GNU C library defines this for functions which it implements
6482     to always fail with ENOSYS.  Some functions are actually named
6483     something starting with __ and the normal name is an alias.  */
6484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6485 choke me
6486 #else
6487 $ac_func();
6488 #endif
6489
6490 ; return 0; }
6491 EOF
6492 if { (eval echo configure:6493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6493   rm -rf conftest*
6494   eval "ac_cv_func_$ac_func=yes"
6495 else
6496   echo "configure: failed program was:" >&5
6497   cat conftest.$ac_ext >&5
6498   rm -rf conftest*
6499   eval "ac_cv_func_$ac_func=no"
6500 fi
6501 rm -f conftest*
6502 fi
6503
6504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6505   echo "$ac_t""yes" 1>&6
6506     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6507   cat >> confdefs.h <<EOF
6508 #define $ac_tr_func 1
6509 EOF
6510  
6511 else
6512   echo "$ac_t""no" 1>&6
6513 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6514 fi
6515 done
6516
6517
6518           if test x$ac_cv_func_copysignl = x"yes"; then
6519     for ac_func in __signbitl
6520 do
6521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6522 echo "configure:6523: checking for $ac_func" >&5
6523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6524   echo $ac_n "(cached) $ac_c" 1>&6
6525 else
6526   cat > conftest.$ac_ext <<EOF
6527 #line 6528 "configure"
6528 #include "confdefs.h"
6529 /* System header to define __stub macros and hopefully few prototypes,
6530     which can conflict with char $ac_func(); below.  */
6531 #include <assert.h>
6532 /* Override any gcc2 internal prototype to avoid an error.  */
6533 /* We use char because int might match the return type of a gcc2
6534     builtin and then its argument prototype would still apply.  */
6535 char $ac_func();
6536
6537 int main() {
6538
6539 /* The GNU C library defines this for functions which it implements
6540     to always fail with ENOSYS.  Some functions are actually named
6541     something starting with __ and the normal name is an alias.  */
6542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6543 choke me
6544 #else
6545 $ac_func();
6546 #endif
6547
6548 ; return 0; }
6549 EOF
6550 if { (eval echo configure:6551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6551   rm -rf conftest*
6552   eval "ac_cv_func_$ac_func=yes"
6553 else
6554   echo "configure: failed program was:" >&5
6555   cat conftest.$ac_ext >&5
6556   rm -rf conftest*
6557   eval "ac_cv_func_$ac_func=no"
6558 fi
6559 rm -f conftest*
6560 fi
6561
6562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6563   echo "$ac_t""yes" 1>&6
6564     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6565   cat >> confdefs.h <<EOF
6566 #define $ac_tr_func 1
6567 EOF
6568  
6569 else
6570   echo "$ac_t""no" 1>&6
6571 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6572 fi
6573 done
6574
6575   fi
6576
6577   if test -n "$LIBMATHOBJS"; then
6578     need_libmath=yes
6579   fi
6580   
6581   
6582
6583 if test "$need_libmath" = yes; then
6584   GLIBCPP_BUILD_LIBMATH_TRUE=
6585   GLIBCPP_BUILD_LIBMATH_FALSE='#'
6586 else
6587   GLIBCPP_BUILD_LIBMATH_TRUE='#'
6588   GLIBCPP_BUILD_LIBMATH_FALSE=
6589 fi
6590
6591       
6592
6593       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6594 echo "configure:6595: checking for mbstate_t" >&5
6595   cat > conftest.$ac_ext <<EOF
6596 #line 6597 "configure"
6597 #include "confdefs.h"
6598 #include <wchar.h>
6599 int main() {
6600 mbstate_t teststate;
6601 ; return 0; }
6602 EOF
6603 if { (eval echo configure:6604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6604   rm -rf conftest*
6605   have_mbstate_t=yes
6606 else
6607   echo "configure: failed program was:" >&5
6608   cat conftest.$ac_ext >&5
6609   rm -rf conftest*
6610   have_mbstate_t=no
6611 fi
6612 rm -f conftest*
6613   echo "$ac_t""$have_mbstate_t" 1>&6
6614   if test x"$have_mbstate_t" = xyes; then
6615     cat >> confdefs.h <<\EOF
6616 #define HAVE_MBSTATE_T 1
6617 EOF
6618
6619   fi
6620
6621     for ac_hdr in wchar.h
6622 do
6623 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6625 echo "configure:6626: checking for $ac_hdr" >&5
6626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6627   echo $ac_n "(cached) $ac_c" 1>&6
6628 else
6629   cat > conftest.$ac_ext <<EOF
6630 #line 6631 "configure"
6631 #include "confdefs.h"
6632 #include <$ac_hdr>
6633 EOF
6634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6635 { (eval echo configure:6636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6637 if test -z "$ac_err"; then
6638   rm -rf conftest*
6639   eval "ac_cv_header_$ac_safe=yes"
6640 else
6641   echo "$ac_err" >&5
6642   echo "configure: failed program was:" >&5
6643   cat conftest.$ac_ext >&5
6644   rm -rf conftest*
6645   eval "ac_cv_header_$ac_safe=no"
6646 fi
6647 rm -f conftest*
6648 fi
6649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6650   echo "$ac_t""yes" 1>&6
6651     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6652   cat >> confdefs.h <<EOF
6653 #define $ac_tr_hdr 1
6654 EOF
6655  ac_has_wchar_h=yes
6656 else
6657   echo "$ac_t""no" 1>&6
6658 ac_has_wchar_h=no
6659 fi
6660 done
6661
6662   for ac_hdr in wctype.h
6663 do
6664 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6665 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6666 echo "configure:6667: checking for $ac_hdr" >&5
6667 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6668   echo $ac_n "(cached) $ac_c" 1>&6
6669 else
6670   cat > conftest.$ac_ext <<EOF
6671 #line 6672 "configure"
6672 #include "confdefs.h"
6673 #include <$ac_hdr>
6674 EOF
6675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6676 { (eval echo configure:6677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6678 if test -z "$ac_err"; then
6679   rm -rf conftest*
6680   eval "ac_cv_header_$ac_safe=yes"
6681 else
6682   echo "$ac_err" >&5
6683   echo "configure: failed program was:" >&5
6684   cat conftest.$ac_ext >&5
6685   rm -rf conftest*
6686   eval "ac_cv_header_$ac_safe=no"
6687 fi
6688 rm -f conftest*
6689 fi
6690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6691   echo "$ac_t""yes" 1>&6
6692     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6693   cat >> confdefs.h <<EOF
6694 #define $ac_tr_hdr 1
6695 EOF
6696  ac_has_wctype_h=yes
6697 else
6698   echo "$ac_t""no" 1>&6
6699 ac_has_wctype_h=no
6700 fi
6701 done
6702
6703   
6704     if test x"$ac_has_wchar_h" = xyes &&
6705      test x"$ac_has_wctype_h" = xyes &&
6706      test x"$enable_c_mbchar" != xno; then
6707       
6708             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6709 echo "configure:6710: checking for WCHAR_MIN and WCHAR_MAX" >&5
6710     cat > conftest.$ac_ext <<EOF
6711 #line 6712 "configure"
6712 #include "confdefs.h"
6713 #include <wchar.h>
6714 int main() {
6715 int i = WCHAR_MIN; int j = WCHAR_MAX;
6716 ; return 0; }
6717 EOF
6718 if { (eval echo configure:6719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6719   rm -rf conftest*
6720   has_wchar_minmax=yes
6721 else
6722   echo "configure: failed program was:" >&5
6723   cat conftest.$ac_ext >&5
6724   rm -rf conftest*
6725   has_wchar_minmax=no
6726 fi
6727 rm -f conftest*
6728     echo "$ac_t""$has_wchar_minmax" 1>&6
6729     
6730             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6731 echo "configure:6732: checking for WEOF" >&5
6732     cat > conftest.$ac_ext <<EOF
6733 #line 6734 "configure"
6734 #include "confdefs.h"
6735
6736       #include <wchar.h>
6737       #include <stddef.h>
6738 int main() {
6739 wint_t i = WEOF;
6740 ; return 0; }
6741 EOF
6742 if { (eval echo configure:6743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6743   rm -rf conftest*
6744   has_weof=yes
6745 else
6746   echo "configure: failed program was:" >&5
6747   cat conftest.$ac_ext >&5
6748   rm -rf conftest*
6749   has_weof=no
6750 fi
6751 rm -f conftest*
6752     echo "$ac_t""$has_weof" 1>&6
6753   
6754         ac_wfuncs=yes
6755     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6756 do
6757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6758 echo "configure:6759: checking for $ac_func" >&5
6759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6760   echo $ac_n "(cached) $ac_c" 1>&6
6761 else
6762   cat > conftest.$ac_ext <<EOF
6763 #line 6764 "configure"
6764 #include "confdefs.h"
6765 /* System header to define __stub macros and hopefully few prototypes,
6766     which can conflict with char $ac_func(); below.  */
6767 #include <assert.h>
6768 /* Override any gcc2 internal prototype to avoid an error.  */
6769 /* We use char because int might match the return type of a gcc2
6770     builtin and then its argument prototype would still apply.  */
6771 char $ac_func();
6772
6773 int main() {
6774
6775 /* The GNU C library defines this for functions which it implements
6776     to always fail with ENOSYS.  Some functions are actually named
6777     something starting with __ and the normal name is an alias.  */
6778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6779 choke me
6780 #else
6781 $ac_func();
6782 #endif
6783
6784 ; return 0; }
6785 EOF
6786 if { (eval echo configure:6787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6787   rm -rf conftest*
6788   eval "ac_cv_func_$ac_func=yes"
6789 else
6790   echo "configure: failed program was:" >&5
6791   cat conftest.$ac_ext >&5
6792   rm -rf conftest*
6793   eval "ac_cv_func_$ac_func=no"
6794 fi
6795 rm -f conftest*
6796 fi
6797
6798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6799   echo "$ac_t""yes" 1>&6
6800     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6801   cat >> confdefs.h <<EOF
6802 #define $ac_tr_func 1
6803 EOF
6804  
6805 else
6806   echo "$ac_t""no" 1>&6
6807 \
6808     ac_wfuncs=no
6809 fi
6810 done
6811
6812   
6813         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6814     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6815     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6816     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6817     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6818     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6819 do
6820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6821 echo "configure:6822: checking for $ac_func" >&5
6822 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6823   echo $ac_n "(cached) $ac_c" 1>&6
6824 else
6825   cat > conftest.$ac_ext <<EOF
6826 #line 6827 "configure"
6827 #include "confdefs.h"
6828 /* System header to define __stub macros and hopefully few prototypes,
6829     which can conflict with char $ac_func(); below.  */
6830 #include <assert.h>
6831 /* Override any gcc2 internal prototype to avoid an error.  */
6832 /* We use char because int might match the return type of a gcc2
6833     builtin and then its argument prototype would still apply.  */
6834 char $ac_func();
6835
6836 int main() {
6837
6838 /* The GNU C library defines this for functions which it implements
6839     to always fail with ENOSYS.  Some functions are actually named
6840     something starting with __ and the normal name is an alias.  */
6841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6842 choke me
6843 #else
6844 $ac_func();
6845 #endif
6846
6847 ; return 0; }
6848 EOF
6849 if { (eval echo configure:6850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6850   rm -rf conftest*
6851   eval "ac_cv_func_$ac_func=yes"
6852 else
6853   echo "configure: failed program was:" >&5
6854   cat conftest.$ac_ext >&5
6855   rm -rf conftest*
6856   eval "ac_cv_func_$ac_func=no"
6857 fi
6858 rm -f conftest*
6859 fi
6860
6861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6862   echo "$ac_t""yes" 1>&6
6863     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6864   cat >> confdefs.h <<EOF
6865 #define $ac_tr_func 1
6866 EOF
6867  
6868 else
6869   echo "$ac_t""no" 1>&6
6870 \
6871     ac_wfuncs=no
6872 fi
6873 done
6874
6875
6876     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6877 echo "configure:6878: checking for ISO C99 wchar_t support" >&5
6878     if test x"$has_weof" = xyes &&
6879        test x"$has_wchar_minmax" = xyes &&
6880        test x"$ac_wfuncs" = xyes; then
6881       ac_isoC99_wchar_t=yes
6882     else
6883       ac_isoC99_wchar_t=no
6884     fi
6885     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6886   
6887             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6888 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6889 echo "configure:6890: checking for iconv.h" >&5
6890 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6891   echo $ac_n "(cached) $ac_c" 1>&6
6892 else
6893   cat > conftest.$ac_ext <<EOF
6894 #line 6895 "configure"
6895 #include "confdefs.h"
6896 #include <iconv.h>
6897 EOF
6898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6899 { (eval echo configure:6900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6901 if test -z "$ac_err"; then
6902   rm -rf conftest*
6903   eval "ac_cv_header_$ac_safe=yes"
6904 else
6905   echo "$ac_err" >&5
6906   echo "configure: failed program was:" >&5
6907   cat conftest.$ac_ext >&5
6908   rm -rf conftest*
6909   eval "ac_cv_header_$ac_safe=no"
6910 fi
6911 rm -f conftest*
6912 fi
6913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6914   echo "$ac_t""yes" 1>&6
6915   ac_has_iconv_h=yes
6916 else
6917   echo "$ac_t""no" 1>&6
6918 ac_has_iconv_h=no
6919 fi
6920
6921     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6922 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6923 echo "configure:6924: checking for langinfo.h" >&5
6924 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6925   echo $ac_n "(cached) $ac_c" 1>&6
6926 else
6927   cat > conftest.$ac_ext <<EOF
6928 #line 6929 "configure"
6929 #include "confdefs.h"
6930 #include <langinfo.h>
6931 EOF
6932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6933 { (eval echo configure:6934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6935 if test -z "$ac_err"; then
6936   rm -rf conftest*
6937   eval "ac_cv_header_$ac_safe=yes"
6938 else
6939   echo "$ac_err" >&5
6940   echo "configure: failed program was:" >&5
6941   cat conftest.$ac_ext >&5
6942   rm -rf conftest*
6943   eval "ac_cv_header_$ac_safe=no"
6944 fi
6945 rm -f conftest*
6946 fi
6947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6948   echo "$ac_t""yes" 1>&6
6949   ac_has_langinfo_h=yes
6950 else
6951   echo "$ac_t""no" 1>&6
6952 ac_has_langinfo_h=no
6953 fi
6954
6955
6956         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6957 echo "configure:6958: checking for iconv in -liconv" >&5
6958 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6960   echo $ac_n "(cached) $ac_c" 1>&6
6961 else
6962   ac_save_LIBS="$LIBS"
6963 LIBS="-liconv  $LIBS"
6964 cat > conftest.$ac_ext <<EOF
6965 #line 6966 "configure"
6966 #include "confdefs.h"
6967 /* Override any gcc2 internal prototype to avoid an error.  */
6968 /* We use char because int might match the return type of a gcc2
6969     builtin and then its argument prototype would still apply.  */
6970 char iconv();
6971
6972 int main() {
6973 iconv()
6974 ; return 0; }
6975 EOF
6976 if { (eval echo configure:6977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6977   rm -rf conftest*
6978   eval "ac_cv_lib_$ac_lib_var=yes"
6979 else
6980   echo "configure: failed program was:" >&5
6981   cat conftest.$ac_ext >&5
6982   rm -rf conftest*
6983   eval "ac_cv_lib_$ac_lib_var=no"
6984 fi
6985 rm -f conftest*
6986 LIBS="$ac_save_LIBS"
6987
6988 fi
6989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6990   echo "$ac_t""yes" 1>&6
6991   libiconv="-liconv"
6992 else
6993   echo "$ac_t""no" 1>&6
6994 fi
6995
6996     ac_save_LIBS="$LIBS"
6997     LIBS="$LIBS $libiconv"
6998
6999     for ac_func in iconv_open iconv_close iconv nl_langinfo
7000 do
7001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7002 echo "configure:7003: checking for $ac_func" >&5
7003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7004   echo $ac_n "(cached) $ac_c" 1>&6
7005 else
7006   cat > conftest.$ac_ext <<EOF
7007 #line 7008 "configure"
7008 #include "confdefs.h"
7009 /* System header to define __stub macros and hopefully few prototypes,
7010     which can conflict with char $ac_func(); below.  */
7011 #include <assert.h>
7012 /* Override any gcc2 internal prototype to avoid an error.  */
7013 /* We use char because int might match the return type of a gcc2
7014     builtin and then its argument prototype would still apply.  */
7015 char $ac_func();
7016
7017 int main() {
7018
7019 /* The GNU C library defines this for functions which it implements
7020     to always fail with ENOSYS.  Some functions are actually named
7021     something starting with __ and the normal name is an alias.  */
7022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7023 choke me
7024 #else
7025 $ac_func();
7026 #endif
7027
7028 ; return 0; }
7029 EOF
7030 if { (eval echo configure:7031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7031   rm -rf conftest*
7032   eval "ac_cv_func_$ac_func=yes"
7033 else
7034   echo "configure: failed program was:" >&5
7035   cat conftest.$ac_ext >&5
7036   rm -rf conftest*
7037   eval "ac_cv_func_$ac_func=no"
7038 fi
7039 rm -f conftest*
7040 fi
7041
7042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7043   echo "$ac_t""yes" 1>&6
7044     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7045   cat >> confdefs.h <<EOF
7046 #define $ac_tr_func 1
7047 EOF
7048  \
7049     ac_XPG2funcs=yes
7050 else
7051   echo "$ac_t""no" 1>&6
7052 ac_XPG2funcs=no
7053 fi
7054 done
7055
7056   
7057     LIBS="$ac_save_LIBS"
7058
7059     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7060 echo "configure:7061: checking for XPG2 wchar_t support" >&5
7061     if test x"$ac_has_iconv_h" = xyes &&
7062        test x"$ac_has_langinfo_h" = xyes &&
7063        test x"$ac_XPG2funcs" = xyes; then
7064       ac_XPG2_wchar_t=yes
7065     else
7066       ac_XPG2_wchar_t=no
7067     fi
7068     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7069   
7070             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7071 echo "configure:7072: checking for enabled wchar_t specializations" >&5
7072     if test x"$ac_isoC99_wchar_t" = xyes &&
7073        test x"$ac_XPG2_wchar_t" = xyes; then
7074       cat >> confdefs.h <<\EOF
7075 #define _GLIBCPP_USE_WCHAR_T 1
7076 EOF
7077
7078       echo "$ac_t"""yes"" 1>&6
7079     else
7080       echo "$ac_t"""no"" 1>&6
7081     fi
7082   else
7083         echo "configure: warning: wchar_t support disabled." 1>&2
7084   fi
7085
7086       os_include_dir="os/bsd/netbsd"
7087       cat >> confdefs.h <<\EOF
7088 #define HAVE_COPYSIGN 1
7089 EOF
7090
7091       cat >> confdefs.h <<\EOF
7092 #define HAVE_COPYSIGNF 1
7093 EOF
7094
7095       cat >> confdefs.h <<\EOF
7096 #define HAVE_FINITEF 1
7097 EOF
7098
7099       cat >> confdefs.h <<\EOF
7100 #define HAVE_FINITE 1
7101 EOF
7102
7103       cat >> confdefs.h <<\EOF
7104 #define HAVE_FREXPF 1
7105 EOF
7106
7107       cat >> confdefs.h <<\EOF
7108 #define HAVE_HYPOTF 1
7109 EOF
7110
7111       cat >> confdefs.h <<\EOF
7112 #define HAVE_ISINF 1
7113 EOF
7114
7115       cat >> confdefs.h <<\EOF
7116 #define HAVE_ISINFF 1
7117 EOF
7118
7119       cat >> confdefs.h <<\EOF
7120 #define HAVE_ISNAN 1
7121 EOF
7122
7123       cat >> confdefs.h <<\EOF
7124 #define HAVE_ISNANF 1
7125 EOF
7126
7127       if test x"long_double_math_on_this_cpu" = x"yes"; then
7128         cat >> confdefs.h <<\EOF
7129 #define HAVE_FINITEL 1
7130 EOF
7131
7132         cat >> confdefs.h <<\EOF
7133 #define HAVE_ISINFL 1
7134 EOF
7135
7136         cat >> confdefs.h <<\EOF
7137 #define HAVE_ISNANL 1
7138 EOF
7139
7140       fi
7141       ;;
7142     *-freebsd*)
7143       # Check for available headers.
7144       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
7145         machine/endian.h machine/param.h sys/machine.h sys/types.h \
7146         fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
7147         sys/time.h unistd.h
7148 do
7149 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7150 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7151 echo "configure:7152: checking for $ac_hdr" >&5
7152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7153   echo $ac_n "(cached) $ac_c" 1>&6
7154 else
7155   cat > conftest.$ac_ext <<EOF
7156 #line 7157 "configure"
7157 #include "confdefs.h"
7158 #include <$ac_hdr>
7159 EOF
7160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7161 { (eval echo configure:7162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7163 if test -z "$ac_err"; then
7164   rm -rf conftest*
7165   eval "ac_cv_header_$ac_safe=yes"
7166 else
7167   echo "$ac_err" >&5
7168   echo "configure: failed program was:" >&5
7169   cat conftest.$ac_ext >&5
7170   rm -rf conftest*
7171   eval "ac_cv_header_$ac_safe=no"
7172 fi
7173 rm -f conftest*
7174 fi
7175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7176   echo "$ac_t""yes" 1>&6
7177     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7178   cat >> confdefs.h <<EOF
7179 #define $ac_tr_hdr 1
7180 EOF
7181  
7182 else
7183   echo "$ac_t""no" 1>&6
7184 fi
7185 done
7186
7187       SECTION_FLAGS='-ffunction-sections -fdata-sections'
7188        
7189       
7190   # If we're not using GNU ld, then there's no point in even trying these
7191   # tests.  Check for that first.  We should have already tested for gld
7192   # by now (in libtool), but require it now just to be safe...
7193   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7194   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7195   
7196
7197   # The name set by libtool depends on the version of libtool.  Shame on us
7198   # for depending on an impl detail, but c'est la vie.  Older versions used
7199   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7200   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7201   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7202   # set (hence we're using an older libtool), then set it.
7203   if test x${with_gnu_ld+set} != xset; then
7204     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7205       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7206       with_gnu_ld=no
7207     else
7208       with_gnu_ld=$ac_cv_prog_gnu_ld
7209     fi
7210   fi
7211
7212   # Start by getting the version number.  I think the libtool test already
7213   # does some of this, but throws away the result.
7214   
7215   ldver=`$LD --version 2>/dev/null | head -1 | \
7216          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7217   
7218   glibcpp_gnu_ld_version=`echo $ldver | \
7219          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7220
7221   # Set --gc-sections.
7222   if test "$with_gnu_ld" = "notbroken"; then
7223     # GNU ld it is!  Joy and bunny rabbits!
7224
7225     # All these tests are for C++; save the language and the compiler flags.
7226     # Need to do this so that g++ won't try to link in libstdc++
7227     ac_test_CFLAGS="${CFLAGS+set}"
7228     ac_save_CFLAGS="$CFLAGS"
7229     CFLAGS='-x c++  -Wl,--gc-sections'
7230
7231     # Check for -Wl,--gc-sections
7232     # XXX This test is broken at the moment, as symbols required for
7233     # linking are now in libsupc++ (not built yet.....). In addition, 
7234     # this test has cored on solaris in the past. In addition,
7235     # --gc-sections doesn't really work at the moment (keeps on discarding
7236     # used sections, first .eh_frame and now some of the glibc sections for
7237     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7238     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7239 echo "configure:7240: checking for ld that supports -Wl,--gc-sections" >&5
7240     if test "$cross_compiling" = yes; then
7241   ac_sectionLDflags=yes
7242 else
7243   cat > conftest.$ac_ext <<EOF
7244 #line 7245 "configure"
7245 #include "confdefs.h"
7246
7247      int main(void) 
7248      {
7249        try { throw 1; }
7250        catch (...) { };
7251        return 0;
7252      }
7253     
7254 EOF
7255 if { (eval echo configure:7256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7256 then
7257   ac_sectionLDflags=yes
7258 else
7259   echo "configure: failed program was:" >&5
7260   cat conftest.$ac_ext >&5
7261   rm -fr conftest*
7262   ac_sectionLDflags=no
7263 fi
7264 rm -fr conftest*
7265 fi
7266
7267     if test "$ac_test_CFLAGS" = set; then
7268       CFLAGS="$ac_save_CFLAGS"
7269     else
7270       # this is the suspicious part
7271       CFLAGS=''
7272     fi
7273     if test "$ac_sectionLDflags" = "yes"; then
7274       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7275     fi
7276     echo "$ac_t""$ac_sectionLDflags" 1>&6
7277   fi
7278
7279   # Set linker optimization flags.
7280   if test x"$with_gnu_ld" = x"yes"; then
7281     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7282   fi
7283
7284   
7285   
7286
7287       
7288     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7289 echo "configure:7290: checking for main in -lm" >&5
7290 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7292   echo $ac_n "(cached) $ac_c" 1>&6
7293 else
7294   ac_save_LIBS="$LIBS"
7295 LIBS="-lm  $LIBS"
7296 cat > conftest.$ac_ext <<EOF
7297 #line 7298 "configure"
7298 #include "confdefs.h"
7299
7300 int main() {
7301 main()
7302 ; return 0; }
7303 EOF
7304 if { (eval echo configure:7305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7305   rm -rf conftest*
7306   eval "ac_cv_lib_$ac_lib_var=yes"
7307 else
7308   echo "configure: failed program was:" >&5
7309   cat conftest.$ac_ext >&5
7310   rm -rf conftest*
7311   eval "ac_cv_lib_$ac_lib_var=no"
7312 fi
7313 rm -f conftest*
7314 LIBS="$ac_save_LIBS"
7315
7316 fi
7317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7318   echo "$ac_t""yes" 1>&6
7319     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7320     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7321   cat >> confdefs.h <<EOF
7322 #define $ac_tr_lib 1
7323 EOF
7324
7325   LIBS="-lm $LIBS"
7326
7327 else
7328   echo "$ac_t""no" 1>&6
7329 fi
7330
7331   for ac_func in nan copysignf
7332 do
7333 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7334 echo "configure:7335: checking for $ac_func" >&5
7335 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7336   echo $ac_n "(cached) $ac_c" 1>&6
7337 else
7338   cat > conftest.$ac_ext <<EOF
7339 #line 7340 "configure"
7340 #include "confdefs.h"
7341 /* System header to define __stub macros and hopefully few prototypes,
7342     which can conflict with char $ac_func(); below.  */
7343 #include <assert.h>
7344 /* Override any gcc2 internal prototype to avoid an error.  */
7345 /* We use char because int might match the return type of a gcc2
7346     builtin and then its argument prototype would still apply.  */
7347 char $ac_func();
7348
7349 int main() {
7350
7351 /* The GNU C library defines this for functions which it implements
7352     to always fail with ENOSYS.  Some functions are actually named
7353     something starting with __ and the normal name is an alias.  */
7354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7355 choke me
7356 #else
7357 $ac_func();
7358 #endif
7359
7360 ; return 0; }
7361 EOF
7362 if { (eval echo configure:7363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7363   rm -rf conftest*
7364   eval "ac_cv_func_$ac_func=yes"
7365 else
7366   echo "configure: failed program was:" >&5
7367   cat conftest.$ac_ext >&5
7368   rm -rf conftest*
7369   eval "ac_cv_func_$ac_func=no"
7370 fi
7371 rm -f conftest*
7372 fi
7373
7374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7375   echo "$ac_t""yes" 1>&6
7376     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7377   cat >> confdefs.h <<EOF
7378 #define $ac_tr_func 1
7379 EOF
7380  
7381 else
7382   echo "$ac_t""no" 1>&6
7383 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7384 fi
7385 done
7386
7387
7388     for ac_func in __signbit
7389 do
7390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7391 echo "configure:7392: checking for $ac_func" >&5
7392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7393   echo $ac_n "(cached) $ac_c" 1>&6
7394 else
7395   cat > conftest.$ac_ext <<EOF
7396 #line 7397 "configure"
7397 #include "confdefs.h"
7398 /* System header to define __stub macros and hopefully few prototypes,
7399     which can conflict with char $ac_func(); below.  */
7400 #include <assert.h>
7401 /* Override any gcc2 internal prototype to avoid an error.  */
7402 /* We use char because int might match the return type of a gcc2
7403     builtin and then its argument prototype would still apply.  */
7404 char $ac_func();
7405
7406 int main() {
7407
7408 /* The GNU C library defines this for functions which it implements
7409     to always fail with ENOSYS.  Some functions are actually named
7410     something starting with __ and the normal name is an alias.  */
7411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7412 choke me
7413 #else
7414 $ac_func();
7415 #endif
7416
7417 ; return 0; }
7418 EOF
7419 if { (eval echo configure:7420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7420   rm -rf conftest*
7421   eval "ac_cv_func_$ac_func=yes"
7422 else
7423   echo "configure: failed program was:" >&5
7424   cat conftest.$ac_ext >&5
7425   rm -rf conftest*
7426   eval "ac_cv_func_$ac_func=no"
7427 fi
7428 rm -f conftest*
7429 fi
7430
7431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7432   echo "$ac_t""yes" 1>&6
7433     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7434   cat >> confdefs.h <<EOF
7435 #define $ac_tr_func 1
7436 EOF
7437  
7438 else
7439   echo "$ac_t""no" 1>&6
7440 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7441 fi
7442 done
7443
7444   for ac_func in __signbitf
7445 do
7446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7447 echo "configure:7448: checking for $ac_func" >&5
7448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7449   echo $ac_n "(cached) $ac_c" 1>&6
7450 else
7451   cat > conftest.$ac_ext <<EOF
7452 #line 7453 "configure"
7453 #include "confdefs.h"
7454 /* System header to define __stub macros and hopefully few prototypes,
7455     which can conflict with char $ac_func(); below.  */
7456 #include <assert.h>
7457 /* Override any gcc2 internal prototype to avoid an error.  */
7458 /* We use char because int might match the return type of a gcc2
7459     builtin and then its argument prototype would still apply.  */
7460 char $ac_func();
7461
7462 int main() {
7463
7464 /* The GNU C library defines this for functions which it implements
7465     to always fail with ENOSYS.  Some functions are actually named
7466     something starting with __ and the normal name is an alias.  */
7467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7468 choke me
7469 #else
7470 $ac_func();
7471 #endif
7472
7473 ; return 0; }
7474 EOF
7475 if { (eval echo configure:7476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7476   rm -rf conftest*
7477   eval "ac_cv_func_$ac_func=yes"
7478 else
7479   echo "configure: failed program was:" >&5
7480   cat conftest.$ac_ext >&5
7481   rm -rf conftest*
7482   eval "ac_cv_func_$ac_func=no"
7483 fi
7484 rm -f conftest*
7485 fi
7486
7487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7488   echo "$ac_t""yes" 1>&6
7489     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7490   cat >> confdefs.h <<EOF
7491 #define $ac_tr_func 1
7492 EOF
7493  
7494 else
7495   echo "$ac_t""no" 1>&6
7496 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7497 fi
7498 done
7499
7500
7501           if test x$ac_cv_func_copysignl = x"yes"; then
7502     for ac_func in __signbitl
7503 do
7504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7505 echo "configure:7506: checking for $ac_func" >&5
7506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7507   echo $ac_n "(cached) $ac_c" 1>&6
7508 else
7509   cat > conftest.$ac_ext <<EOF
7510 #line 7511 "configure"
7511 #include "confdefs.h"
7512 /* System header to define __stub macros and hopefully few prototypes,
7513     which can conflict with char $ac_func(); below.  */
7514 #include <assert.h>
7515 /* Override any gcc2 internal prototype to avoid an error.  */
7516 /* We use char because int might match the return type of a gcc2
7517     builtin and then its argument prototype would still apply.  */
7518 char $ac_func();
7519
7520 int main() {
7521
7522 /* The GNU C library defines this for functions which it implements
7523     to always fail with ENOSYS.  Some functions are actually named
7524     something starting with __ and the normal name is an alias.  */
7525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7526 choke me
7527 #else
7528 $ac_func();
7529 #endif
7530
7531 ; return 0; }
7532 EOF
7533 if { (eval echo configure:7534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7534   rm -rf conftest*
7535   eval "ac_cv_func_$ac_func=yes"
7536 else
7537   echo "configure: failed program was:" >&5
7538   cat conftest.$ac_ext >&5
7539   rm -rf conftest*
7540   eval "ac_cv_func_$ac_func=no"
7541 fi
7542 rm -f conftest*
7543 fi
7544
7545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7546   echo "$ac_t""yes" 1>&6
7547     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7548   cat >> confdefs.h <<EOF
7549 #define $ac_tr_func 1
7550 EOF
7551  
7552 else
7553   echo "$ac_t""no" 1>&6
7554 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7555 fi
7556 done
7557
7558   fi
7559
7560   if test -n "$LIBMATHOBJS"; then
7561     need_libmath=yes
7562   fi
7563   
7564   
7565
7566 if test "$need_libmath" = yes; then
7567   GLIBCPP_BUILD_LIBMATH_TRUE=
7568   GLIBCPP_BUILD_LIBMATH_FALSE='#'
7569 else
7570   GLIBCPP_BUILD_LIBMATH_TRUE='#'
7571   GLIBCPP_BUILD_LIBMATH_FALSE=
7572 fi
7573
7574       
7575
7576       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7577 echo "configure:7578: checking for mbstate_t" >&5
7578   cat > conftest.$ac_ext <<EOF
7579 #line 7580 "configure"
7580 #include "confdefs.h"
7581 #include <wchar.h>
7582 int main() {
7583 mbstate_t teststate;
7584 ; return 0; }
7585 EOF
7586 if { (eval echo configure:7587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7587   rm -rf conftest*
7588   have_mbstate_t=yes
7589 else
7590   echo "configure: failed program was:" >&5
7591   cat conftest.$ac_ext >&5
7592   rm -rf conftest*
7593   have_mbstate_t=no
7594 fi
7595 rm -f conftest*
7596   echo "$ac_t""$have_mbstate_t" 1>&6
7597   if test x"$have_mbstate_t" = xyes; then
7598     cat >> confdefs.h <<\EOF
7599 #define HAVE_MBSTATE_T 1
7600 EOF
7601
7602   fi
7603
7604     for ac_hdr in wchar.h
7605 do
7606 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7607 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7608 echo "configure:7609: checking for $ac_hdr" >&5
7609 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7610   echo $ac_n "(cached) $ac_c" 1>&6
7611 else
7612   cat > conftest.$ac_ext <<EOF
7613 #line 7614 "configure"
7614 #include "confdefs.h"
7615 #include <$ac_hdr>
7616 EOF
7617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7618 { (eval echo configure:7619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7620 if test -z "$ac_err"; then
7621   rm -rf conftest*
7622   eval "ac_cv_header_$ac_safe=yes"
7623 else
7624   echo "$ac_err" >&5
7625   echo "configure: failed program was:" >&5
7626   cat conftest.$ac_ext >&5
7627   rm -rf conftest*
7628   eval "ac_cv_header_$ac_safe=no"
7629 fi
7630 rm -f conftest*
7631 fi
7632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7633   echo "$ac_t""yes" 1>&6
7634     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7635   cat >> confdefs.h <<EOF
7636 #define $ac_tr_hdr 1
7637 EOF
7638  ac_has_wchar_h=yes
7639 else
7640   echo "$ac_t""no" 1>&6
7641 ac_has_wchar_h=no
7642 fi
7643 done
7644
7645   for ac_hdr in wctype.h
7646 do
7647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7649 echo "configure:7650: checking for $ac_hdr" >&5
7650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7651   echo $ac_n "(cached) $ac_c" 1>&6
7652 else
7653   cat > conftest.$ac_ext <<EOF
7654 #line 7655 "configure"
7655 #include "confdefs.h"
7656 #include <$ac_hdr>
7657 EOF
7658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7659 { (eval echo configure:7660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7661 if test -z "$ac_err"; then
7662   rm -rf conftest*
7663   eval "ac_cv_header_$ac_safe=yes"
7664 else
7665   echo "$ac_err" >&5
7666   echo "configure: failed program was:" >&5
7667   cat conftest.$ac_ext >&5
7668   rm -rf conftest*
7669   eval "ac_cv_header_$ac_safe=no"
7670 fi
7671 rm -f conftest*
7672 fi
7673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7674   echo "$ac_t""yes" 1>&6
7675     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7676   cat >> confdefs.h <<EOF
7677 #define $ac_tr_hdr 1
7678 EOF
7679  ac_has_wctype_h=yes
7680 else
7681   echo "$ac_t""no" 1>&6
7682 ac_has_wctype_h=no
7683 fi
7684 done
7685
7686   
7687     if test x"$ac_has_wchar_h" = xyes &&
7688      test x"$ac_has_wctype_h" = xyes &&
7689      test x"$enable_c_mbchar" != xno; then
7690       
7691             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7692 echo "configure:7693: checking for WCHAR_MIN and WCHAR_MAX" >&5
7693     cat > conftest.$ac_ext <<EOF
7694 #line 7695 "configure"
7695 #include "confdefs.h"
7696 #include <wchar.h>
7697 int main() {
7698 int i = WCHAR_MIN; int j = WCHAR_MAX;
7699 ; return 0; }
7700 EOF
7701 if { (eval echo configure:7702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7702   rm -rf conftest*
7703   has_wchar_minmax=yes
7704 else
7705   echo "configure: failed program was:" >&5
7706   cat conftest.$ac_ext >&5
7707   rm -rf conftest*
7708   has_wchar_minmax=no
7709 fi
7710 rm -f conftest*
7711     echo "$ac_t""$has_wchar_minmax" 1>&6
7712     
7713             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7714 echo "configure:7715: checking for WEOF" >&5
7715     cat > conftest.$ac_ext <<EOF
7716 #line 7717 "configure"
7717 #include "confdefs.h"
7718
7719       #include <wchar.h>
7720       #include <stddef.h>
7721 int main() {
7722 wint_t i = WEOF;
7723 ; return 0; }
7724 EOF
7725 if { (eval echo configure:7726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7726   rm -rf conftest*
7727   has_weof=yes
7728 else
7729   echo "configure: failed program was:" >&5
7730   cat conftest.$ac_ext >&5
7731   rm -rf conftest*
7732   has_weof=no
7733 fi
7734 rm -f conftest*
7735     echo "$ac_t""$has_weof" 1>&6
7736   
7737         ac_wfuncs=yes
7738     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7739 do
7740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7741 echo "configure:7742: checking for $ac_func" >&5
7742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7743   echo $ac_n "(cached) $ac_c" 1>&6
7744 else
7745   cat > conftest.$ac_ext <<EOF
7746 #line 7747 "configure"
7747 #include "confdefs.h"
7748 /* System header to define __stub macros and hopefully few prototypes,
7749     which can conflict with char $ac_func(); below.  */
7750 #include <assert.h>
7751 /* Override any gcc2 internal prototype to avoid an error.  */
7752 /* We use char because int might match the return type of a gcc2
7753     builtin and then its argument prototype would still apply.  */
7754 char $ac_func();
7755
7756 int main() {
7757
7758 /* The GNU C library defines this for functions which it implements
7759     to always fail with ENOSYS.  Some functions are actually named
7760     something starting with __ and the normal name is an alias.  */
7761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7762 choke me
7763 #else
7764 $ac_func();
7765 #endif
7766
7767 ; return 0; }
7768 EOF
7769 if { (eval echo configure:7770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7770   rm -rf conftest*
7771   eval "ac_cv_func_$ac_func=yes"
7772 else
7773   echo "configure: failed program was:" >&5
7774   cat conftest.$ac_ext >&5
7775   rm -rf conftest*
7776   eval "ac_cv_func_$ac_func=no"
7777 fi
7778 rm -f conftest*
7779 fi
7780
7781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7782   echo "$ac_t""yes" 1>&6
7783     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7784   cat >> confdefs.h <<EOF
7785 #define $ac_tr_func 1
7786 EOF
7787  
7788 else
7789   echo "$ac_t""no" 1>&6
7790 \
7791     ac_wfuncs=no
7792 fi
7793 done
7794
7795   
7796         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7797     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7798     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7799     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7800     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7801     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7802 do
7803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7804 echo "configure:7805: checking for $ac_func" >&5
7805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7806   echo $ac_n "(cached) $ac_c" 1>&6
7807 else
7808   cat > conftest.$ac_ext <<EOF
7809 #line 7810 "configure"
7810 #include "confdefs.h"
7811 /* System header to define __stub macros and hopefully few prototypes,
7812     which can conflict with char $ac_func(); below.  */
7813 #include <assert.h>
7814 /* Override any gcc2 internal prototype to avoid an error.  */
7815 /* We use char because int might match the return type of a gcc2
7816     builtin and then its argument prototype would still apply.  */
7817 char $ac_func();
7818
7819 int main() {
7820
7821 /* The GNU C library defines this for functions which it implements
7822     to always fail with ENOSYS.  Some functions are actually named
7823     something starting with __ and the normal name is an alias.  */
7824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7825 choke me
7826 #else
7827 $ac_func();
7828 #endif
7829
7830 ; return 0; }
7831 EOF
7832 if { (eval echo configure:7833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7833   rm -rf conftest*
7834   eval "ac_cv_func_$ac_func=yes"
7835 else
7836   echo "configure: failed program was:" >&5
7837   cat conftest.$ac_ext >&5
7838   rm -rf conftest*
7839   eval "ac_cv_func_$ac_func=no"
7840 fi
7841 rm -f conftest*
7842 fi
7843
7844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7845   echo "$ac_t""yes" 1>&6
7846     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7847   cat >> confdefs.h <<EOF
7848 #define $ac_tr_func 1
7849 EOF
7850  
7851 else
7852   echo "$ac_t""no" 1>&6
7853 \
7854     ac_wfuncs=no
7855 fi
7856 done
7857
7858
7859     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7860 echo "configure:7861: checking for ISO C99 wchar_t support" >&5
7861     if test x"$has_weof" = xyes &&
7862        test x"$has_wchar_minmax" = xyes &&
7863        test x"$ac_wfuncs" = xyes; then
7864       ac_isoC99_wchar_t=yes
7865     else
7866       ac_isoC99_wchar_t=no
7867     fi
7868     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7869   
7870             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7871 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7872 echo "configure:7873: checking for iconv.h" >&5
7873 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7874   echo $ac_n "(cached) $ac_c" 1>&6
7875 else
7876   cat > conftest.$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7879 #include <iconv.h>
7880 EOF
7881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7882 { (eval echo configure:7883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7884 if test -z "$ac_err"; then
7885   rm -rf conftest*
7886   eval "ac_cv_header_$ac_safe=yes"
7887 else
7888   echo "$ac_err" >&5
7889   echo "configure: failed program was:" >&5
7890   cat conftest.$ac_ext >&5
7891   rm -rf conftest*
7892   eval "ac_cv_header_$ac_safe=no"
7893 fi
7894 rm -f conftest*
7895 fi
7896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7897   echo "$ac_t""yes" 1>&6
7898   ac_has_iconv_h=yes
7899 else
7900   echo "$ac_t""no" 1>&6
7901 ac_has_iconv_h=no
7902 fi
7903
7904     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7905 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7906 echo "configure:7907: checking for langinfo.h" >&5
7907 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7908   echo $ac_n "(cached) $ac_c" 1>&6
7909 else
7910   cat > conftest.$ac_ext <<EOF
7911 #line 7912 "configure"
7912 #include "confdefs.h"
7913 #include <langinfo.h>
7914 EOF
7915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7916 { (eval echo configure:7917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7918 if test -z "$ac_err"; then
7919   rm -rf conftest*
7920   eval "ac_cv_header_$ac_safe=yes"
7921 else
7922   echo "$ac_err" >&5
7923   echo "configure: failed program was:" >&5
7924   cat conftest.$ac_ext >&5
7925   rm -rf conftest*
7926   eval "ac_cv_header_$ac_safe=no"
7927 fi
7928 rm -f conftest*
7929 fi
7930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7931   echo "$ac_t""yes" 1>&6
7932   ac_has_langinfo_h=yes
7933 else
7934   echo "$ac_t""no" 1>&6
7935 ac_has_langinfo_h=no
7936 fi
7937
7938
7939         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7940 echo "configure:7941: checking for iconv in -liconv" >&5
7941 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7943   echo $ac_n "(cached) $ac_c" 1>&6
7944 else
7945   ac_save_LIBS="$LIBS"
7946 LIBS="-liconv  $LIBS"
7947 cat > conftest.$ac_ext <<EOF
7948 #line 7949 "configure"
7949 #include "confdefs.h"
7950 /* Override any gcc2 internal prototype to avoid an error.  */
7951 /* We use char because int might match the return type of a gcc2
7952     builtin and then its argument prototype would still apply.  */
7953 char iconv();
7954
7955 int main() {
7956 iconv()
7957 ; return 0; }
7958 EOF
7959 if { (eval echo configure:7960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7960   rm -rf conftest*
7961   eval "ac_cv_lib_$ac_lib_var=yes"
7962 else
7963   echo "configure: failed program was:" >&5
7964   cat conftest.$ac_ext >&5
7965   rm -rf conftest*
7966   eval "ac_cv_lib_$ac_lib_var=no"
7967 fi
7968 rm -f conftest*
7969 LIBS="$ac_save_LIBS"
7970
7971 fi
7972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7973   echo "$ac_t""yes" 1>&6
7974   libiconv="-liconv"
7975 else
7976   echo "$ac_t""no" 1>&6
7977 fi
7978
7979     ac_save_LIBS="$LIBS"
7980     LIBS="$LIBS $libiconv"
7981
7982     for ac_func in iconv_open iconv_close iconv nl_langinfo
7983 do
7984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7985 echo "configure:7986: checking for $ac_func" >&5
7986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7987   echo $ac_n "(cached) $ac_c" 1>&6
7988 else
7989   cat > conftest.$ac_ext <<EOF
7990 #line 7991 "configure"
7991 #include "confdefs.h"
7992 /* System header to define __stub macros and hopefully few prototypes,
7993     which can conflict with char $ac_func(); below.  */
7994 #include <assert.h>
7995 /* Override any gcc2 internal prototype to avoid an error.  */
7996 /* We use char because int might match the return type of a gcc2
7997     builtin and then its argument prototype would still apply.  */
7998 char $ac_func();
7999
8000 int main() {
8001
8002 /* The GNU C library defines this for functions which it implements
8003     to always fail with ENOSYS.  Some functions are actually named
8004     something starting with __ and the normal name is an alias.  */
8005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8006 choke me
8007 #else
8008 $ac_func();
8009 #endif
8010
8011 ; return 0; }
8012 EOF
8013 if { (eval echo configure:8014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8014   rm -rf conftest*
8015   eval "ac_cv_func_$ac_func=yes"
8016 else
8017   echo "configure: failed program was:" >&5
8018   cat conftest.$ac_ext >&5
8019   rm -rf conftest*
8020   eval "ac_cv_func_$ac_func=no"
8021 fi
8022 rm -f conftest*
8023 fi
8024
8025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8026   echo "$ac_t""yes" 1>&6
8027     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8028   cat >> confdefs.h <<EOF
8029 #define $ac_tr_func 1
8030 EOF
8031  \
8032     ac_XPG2funcs=yes
8033 else
8034   echo "$ac_t""no" 1>&6
8035 ac_XPG2funcs=no
8036 fi
8037 done
8038
8039   
8040     LIBS="$ac_save_LIBS"
8041
8042     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8043 echo "configure:8044: checking for XPG2 wchar_t support" >&5
8044     if test x"$ac_has_iconv_h" = xyes &&
8045        test x"$ac_has_langinfo_h" = xyes &&
8046        test x"$ac_XPG2funcs" = xyes; then
8047       ac_XPG2_wchar_t=yes
8048     else
8049       ac_XPG2_wchar_t=no
8050     fi
8051     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8052   
8053             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8054 echo "configure:8055: checking for enabled wchar_t specializations" >&5
8055     if test x"$ac_isoC99_wchar_t" = xyes &&
8056        test x"$ac_XPG2_wchar_t" = xyes; then
8057       cat >> confdefs.h <<\EOF
8058 #define _GLIBCPP_USE_WCHAR_T 1
8059 EOF
8060
8061       echo "$ac_t"""yes"" 1>&6
8062     else
8063       echo "$ac_t"""no"" 1>&6
8064     fi
8065   else
8066         echo "configure: warning: wchar_t support disabled." 1>&2
8067   fi
8068
8069       os_include_dir="os/bsd/freebsd"
8070       cat >> confdefs.h <<\EOF
8071 #define HAVE_LC_MESSAGES 1
8072 EOF
8073
8074       cat >> confdefs.h <<\EOF
8075 #define HAVE_DRAND48 1
8076 EOF
8077
8078       cat >> confdefs.h <<\EOF
8079 #define HAVE_GETPAGESIZE 1
8080 EOF
8081
8082       cat >> confdefs.h <<\EOF
8083 #define HAVE_SETENV 1
8084 EOF
8085
8086       cat >> confdefs.h <<\EOF
8087 #define HAVE_SIGSETJMP 1
8088 EOF
8089
8090       cat >> confdefs.h <<\EOF
8091 #define HAVE_COPYSIGN 1
8092 EOF
8093
8094       cat >> confdefs.h <<\EOF
8095 #define HAVE_COPYSIGNF 1
8096 EOF
8097
8098       cat >> confdefs.h <<\EOF
8099 #define HAVE_FINITEF 1
8100 EOF
8101
8102       cat >> confdefs.h <<\EOF
8103 #define HAVE_FINITE 1
8104 EOF
8105
8106       cat >> confdefs.h <<\EOF
8107 #define HAVE_FREXPF 1
8108 EOF
8109
8110       cat >> confdefs.h <<\EOF
8111 #define HAVE_HYPOT 1
8112 EOF
8113
8114       cat >> confdefs.h <<\EOF
8115 #define HAVE_HYPOTF 1
8116 EOF
8117
8118       cat >> confdefs.h <<\EOF
8119 #define HAVE_ISINF 1
8120 EOF
8121
8122       cat >> confdefs.h <<\EOF
8123 #define HAVE_ISNAN 1
8124 EOF
8125
8126       cat >> confdefs.h <<\EOF
8127 #define HAVE_ISNANF 1
8128 EOF
8129
8130       if test x"long_double_math_on_this_cpu" = x"yes"; then
8131         cat >> confdefs.h <<\EOF
8132 #define HAVE_FINITEL 1
8133 EOF
8134
8135         cat >> confdefs.h <<\EOF
8136 #define HAVE_ISINFL 1
8137 EOF
8138
8139         cat >> confdefs.h <<\EOF
8140 #define HAVE_ISNANL 1
8141 EOF
8142
8143       fi
8144       ;;
8145     *-mingw32*)
8146       for ac_hdr in sys/types.h locale.h float.h
8147 do
8148 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8149 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8150 echo "configure:8151: checking for $ac_hdr" >&5
8151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8152   echo $ac_n "(cached) $ac_c" 1>&6
8153 else
8154   cat > conftest.$ac_ext <<EOF
8155 #line 8156 "configure"
8156 #include "confdefs.h"
8157 #include <$ac_hdr>
8158 EOF
8159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8160 { (eval echo configure:8161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8162 if test -z "$ac_err"; then
8163   rm -rf conftest*
8164   eval "ac_cv_header_$ac_safe=yes"
8165 else
8166   echo "$ac_err" >&5
8167   echo "configure: failed program was:" >&5
8168   cat conftest.$ac_ext >&5
8169   rm -rf conftest*
8170   eval "ac_cv_header_$ac_safe=no"
8171 fi
8172 rm -f conftest*
8173 fi
8174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8175   echo "$ac_t""yes" 1>&6
8176     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8177   cat >> confdefs.h <<EOF
8178 #define $ac_tr_hdr 1
8179 EOF
8180  
8181 else
8182   echo "$ac_t""no" 1>&6
8183 fi
8184 done
8185
8186       
8187   # If we're not using GNU ld, then there's no point in even trying these
8188   # tests.  Check for that first.  We should have already tested for gld
8189   # by now (in libtool), but require it now just to be safe...
8190   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8191   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8192   
8193
8194   # The name set by libtool depends on the version of libtool.  Shame on us
8195   # for depending on an impl detail, but c'est la vie.  Older versions used
8196   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8197   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8198   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8199   # set (hence we're using an older libtool), then set it.
8200   if test x${with_gnu_ld+set} != xset; then
8201     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8202       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8203       with_gnu_ld=no
8204     else
8205       with_gnu_ld=$ac_cv_prog_gnu_ld
8206     fi
8207   fi
8208
8209   # Start by getting the version number.  I think the libtool test already
8210   # does some of this, but throws away the result.
8211   
8212   ldver=`$LD --version 2>/dev/null | head -1 | \
8213          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8214   
8215   glibcpp_gnu_ld_version=`echo $ldver | \
8216          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8217
8218   # Set --gc-sections.
8219   if test "$with_gnu_ld" = "notbroken"; then
8220     # GNU ld it is!  Joy and bunny rabbits!
8221
8222     # All these tests are for C++; save the language and the compiler flags.
8223     # Need to do this so that g++ won't try to link in libstdc++
8224     ac_test_CFLAGS="${CFLAGS+set}"
8225     ac_save_CFLAGS="$CFLAGS"
8226     CFLAGS='-x c++  -Wl,--gc-sections'
8227
8228     # Check for -Wl,--gc-sections
8229     # XXX This test is broken at the moment, as symbols required for
8230     # linking are now in libsupc++ (not built yet.....). In addition, 
8231     # this test has cored on solaris in the past. In addition,
8232     # --gc-sections doesn't really work at the moment (keeps on discarding
8233     # used sections, first .eh_frame and now some of the glibc sections for
8234     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8235     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8236 echo "configure:8237: checking for ld that supports -Wl,--gc-sections" >&5
8237     if test "$cross_compiling" = yes; then
8238   ac_sectionLDflags=yes
8239 else
8240   cat > conftest.$ac_ext <<EOF
8241 #line 8242 "configure"
8242 #include "confdefs.h"
8243
8244      int main(void) 
8245      {
8246        try { throw 1; }
8247        catch (...) { };
8248        return 0;
8249      }
8250     
8251 EOF
8252 if { (eval echo configure:8253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8253 then
8254   ac_sectionLDflags=yes
8255 else
8256   echo "configure: failed program was:" >&5
8257   cat conftest.$ac_ext >&5
8258   rm -fr conftest*
8259   ac_sectionLDflags=no
8260 fi
8261 rm -fr conftest*
8262 fi
8263
8264     if test "$ac_test_CFLAGS" = set; then
8265       CFLAGS="$ac_save_CFLAGS"
8266     else
8267       # this is the suspicious part
8268       CFLAGS=''
8269     fi
8270     if test "$ac_sectionLDflags" = "yes"; then
8271       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8272     fi
8273     echo "$ac_t""$ac_sectionLDflags" 1>&6
8274   fi
8275
8276   # Set linker optimization flags.
8277   if test x"$with_gnu_ld" = x"yes"; then
8278     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8279   fi
8280
8281   
8282   
8283
8284       
8285     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8286 echo "configure:8287: checking for main in -lm" >&5
8287 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8289   echo $ac_n "(cached) $ac_c" 1>&6
8290 else
8291   ac_save_LIBS="$LIBS"
8292 LIBS="-lm  $LIBS"
8293 cat > conftest.$ac_ext <<EOF
8294 #line 8295 "configure"
8295 #include "confdefs.h"
8296
8297 int main() {
8298 main()
8299 ; return 0; }
8300 EOF
8301 if { (eval echo configure:8302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8302   rm -rf conftest*
8303   eval "ac_cv_lib_$ac_lib_var=yes"
8304 else
8305   echo "configure: failed program was:" >&5
8306   cat conftest.$ac_ext >&5
8307   rm -rf conftest*
8308   eval "ac_cv_lib_$ac_lib_var=no"
8309 fi
8310 rm -f conftest*
8311 LIBS="$ac_save_LIBS"
8312
8313 fi
8314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8315   echo "$ac_t""yes" 1>&6
8316     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8317     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8318   cat >> confdefs.h <<EOF
8319 #define $ac_tr_lib 1
8320 EOF
8321
8322   LIBS="-lm $LIBS"
8323
8324 else
8325   echo "$ac_t""no" 1>&6
8326 fi
8327
8328   for ac_func in nan copysignf
8329 do
8330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8331 echo "configure:8332: checking for $ac_func" >&5
8332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8333   echo $ac_n "(cached) $ac_c" 1>&6
8334 else
8335   cat > conftest.$ac_ext <<EOF
8336 #line 8337 "configure"
8337 #include "confdefs.h"
8338 /* System header to define __stub macros and hopefully few prototypes,
8339     which can conflict with char $ac_func(); below.  */
8340 #include <assert.h>
8341 /* Override any gcc2 internal prototype to avoid an error.  */
8342 /* We use char because int might match the return type of a gcc2
8343     builtin and then its argument prototype would still apply.  */
8344 char $ac_func();
8345
8346 int main() {
8347
8348 /* The GNU C library defines this for functions which it implements
8349     to always fail with ENOSYS.  Some functions are actually named
8350     something starting with __ and the normal name is an alias.  */
8351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8352 choke me
8353 #else
8354 $ac_func();
8355 #endif
8356
8357 ; return 0; }
8358 EOF
8359 if { (eval echo configure:8360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8360   rm -rf conftest*
8361   eval "ac_cv_func_$ac_func=yes"
8362 else
8363   echo "configure: failed program was:" >&5
8364   cat conftest.$ac_ext >&5
8365   rm -rf conftest*
8366   eval "ac_cv_func_$ac_func=no"
8367 fi
8368 rm -f conftest*
8369 fi
8370
8371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8372   echo "$ac_t""yes" 1>&6
8373     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8374   cat >> confdefs.h <<EOF
8375 #define $ac_tr_func 1
8376 EOF
8377  
8378 else
8379   echo "$ac_t""no" 1>&6
8380 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8381 fi
8382 done
8383
8384
8385     for ac_func in __signbit
8386 do
8387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8388 echo "configure:8389: checking for $ac_func" >&5
8389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8390   echo $ac_n "(cached) $ac_c" 1>&6
8391 else
8392   cat > conftest.$ac_ext <<EOF
8393 #line 8394 "configure"
8394 #include "confdefs.h"
8395 /* System header to define __stub macros and hopefully few prototypes,
8396     which can conflict with char $ac_func(); below.  */
8397 #include <assert.h>
8398 /* Override any gcc2 internal prototype to avoid an error.  */
8399 /* We use char because int might match the return type of a gcc2
8400     builtin and then its argument prototype would still apply.  */
8401 char $ac_func();
8402
8403 int main() {
8404
8405 /* The GNU C library defines this for functions which it implements
8406     to always fail with ENOSYS.  Some functions are actually named
8407     something starting with __ and the normal name is an alias.  */
8408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8409 choke me
8410 #else
8411 $ac_func();
8412 #endif
8413
8414 ; return 0; }
8415 EOF
8416 if { (eval echo configure:8417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8417   rm -rf conftest*
8418   eval "ac_cv_func_$ac_func=yes"
8419 else
8420   echo "configure: failed program was:" >&5
8421   cat conftest.$ac_ext >&5
8422   rm -rf conftest*
8423   eval "ac_cv_func_$ac_func=no"
8424 fi
8425 rm -f conftest*
8426 fi
8427
8428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8429   echo "$ac_t""yes" 1>&6
8430     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8431   cat >> confdefs.h <<EOF
8432 #define $ac_tr_func 1
8433 EOF
8434  
8435 else
8436   echo "$ac_t""no" 1>&6
8437 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8438 fi
8439 done
8440
8441   for ac_func in __signbitf
8442 do
8443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8444 echo "configure:8445: checking for $ac_func" >&5
8445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8446   echo $ac_n "(cached) $ac_c" 1>&6
8447 else
8448   cat > conftest.$ac_ext <<EOF
8449 #line 8450 "configure"
8450 #include "confdefs.h"
8451 /* System header to define __stub macros and hopefully few prototypes,
8452     which can conflict with char $ac_func(); below.  */
8453 #include <assert.h>
8454 /* Override any gcc2 internal prototype to avoid an error.  */
8455 /* We use char because int might match the return type of a gcc2
8456     builtin and then its argument prototype would still apply.  */
8457 char $ac_func();
8458
8459 int main() {
8460
8461 /* The GNU C library defines this for functions which it implements
8462     to always fail with ENOSYS.  Some functions are actually named
8463     something starting with __ and the normal name is an alias.  */
8464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8465 choke me
8466 #else
8467 $ac_func();
8468 #endif
8469
8470 ; return 0; }
8471 EOF
8472 if { (eval echo configure:8473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8473   rm -rf conftest*
8474   eval "ac_cv_func_$ac_func=yes"
8475 else
8476   echo "configure: failed program was:" >&5
8477   cat conftest.$ac_ext >&5
8478   rm -rf conftest*
8479   eval "ac_cv_func_$ac_func=no"
8480 fi
8481 rm -f conftest*
8482 fi
8483
8484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8485   echo "$ac_t""yes" 1>&6
8486     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8487   cat >> confdefs.h <<EOF
8488 #define $ac_tr_func 1
8489 EOF
8490  
8491 else
8492   echo "$ac_t""no" 1>&6
8493 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8494 fi
8495 done
8496
8497
8498           if test x$ac_cv_func_copysignl = x"yes"; then
8499     for ac_func in __signbitl
8500 do
8501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8502 echo "configure:8503: checking for $ac_func" >&5
8503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8504   echo $ac_n "(cached) $ac_c" 1>&6
8505 else
8506   cat > conftest.$ac_ext <<EOF
8507 #line 8508 "configure"
8508 #include "confdefs.h"
8509 /* System header to define __stub macros and hopefully few prototypes,
8510     which can conflict with char $ac_func(); below.  */
8511 #include <assert.h>
8512 /* Override any gcc2 internal prototype to avoid an error.  */
8513 /* We use char because int might match the return type of a gcc2
8514     builtin and then its argument prototype would still apply.  */
8515 char $ac_func();
8516
8517 int main() {
8518
8519 /* The GNU C library defines this for functions which it implements
8520     to always fail with ENOSYS.  Some functions are actually named
8521     something starting with __ and the normal name is an alias.  */
8522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8523 choke me
8524 #else
8525 $ac_func();
8526 #endif
8527
8528 ; return 0; }
8529 EOF
8530 if { (eval echo configure:8531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8531   rm -rf conftest*
8532   eval "ac_cv_func_$ac_func=yes"
8533 else
8534   echo "configure: failed program was:" >&5
8535   cat conftest.$ac_ext >&5
8536   rm -rf conftest*
8537   eval "ac_cv_func_$ac_func=no"
8538 fi
8539 rm -f conftest*
8540 fi
8541
8542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8543   echo "$ac_t""yes" 1>&6
8544     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8545   cat >> confdefs.h <<EOF
8546 #define $ac_tr_func 1
8547 EOF
8548  
8549 else
8550   echo "$ac_t""no" 1>&6
8551 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8552 fi
8553 done
8554
8555   fi
8556
8557   if test -n "$LIBMATHOBJS"; then
8558     need_libmath=yes
8559   fi
8560   
8561   
8562
8563 if test "$need_libmath" = yes; then
8564   GLIBCPP_BUILD_LIBMATH_TRUE=
8565   GLIBCPP_BUILD_LIBMATH_FALSE='#'
8566 else
8567   GLIBCPP_BUILD_LIBMATH_TRUE='#'
8568   GLIBCPP_BUILD_LIBMATH_FALSE=
8569 fi
8570
8571       
8572
8573       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8574 echo "configure:8575: checking for mbstate_t" >&5
8575   cat > conftest.$ac_ext <<EOF
8576 #line 8577 "configure"
8577 #include "confdefs.h"
8578 #include <wchar.h>
8579 int main() {
8580 mbstate_t teststate;
8581 ; return 0; }
8582 EOF
8583 if { (eval echo configure:8584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8584   rm -rf conftest*
8585   have_mbstate_t=yes
8586 else
8587   echo "configure: failed program was:" >&5
8588   cat conftest.$ac_ext >&5
8589   rm -rf conftest*
8590   have_mbstate_t=no
8591 fi
8592 rm -f conftest*
8593   echo "$ac_t""$have_mbstate_t" 1>&6
8594   if test x"$have_mbstate_t" = xyes; then
8595     cat >> confdefs.h <<\EOF
8596 #define HAVE_MBSTATE_T 1
8597 EOF
8598
8599   fi
8600
8601     for ac_hdr in wchar.h
8602 do
8603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8605 echo "configure:8606: checking for $ac_hdr" >&5
8606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8607   echo $ac_n "(cached) $ac_c" 1>&6
8608 else
8609   cat > conftest.$ac_ext <<EOF
8610 #line 8611 "configure"
8611 #include "confdefs.h"
8612 #include <$ac_hdr>
8613 EOF
8614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8615 { (eval echo configure:8616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8617 if test -z "$ac_err"; then
8618   rm -rf conftest*
8619   eval "ac_cv_header_$ac_safe=yes"
8620 else
8621   echo "$ac_err" >&5
8622   echo "configure: failed program was:" >&5
8623   cat conftest.$ac_ext >&5
8624   rm -rf conftest*
8625   eval "ac_cv_header_$ac_safe=no"
8626 fi
8627 rm -f conftest*
8628 fi
8629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8630   echo "$ac_t""yes" 1>&6
8631     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8632   cat >> confdefs.h <<EOF
8633 #define $ac_tr_hdr 1
8634 EOF
8635  ac_has_wchar_h=yes
8636 else
8637   echo "$ac_t""no" 1>&6
8638 ac_has_wchar_h=no
8639 fi
8640 done
8641
8642   for ac_hdr in wctype.h
8643 do
8644 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8645 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8646 echo "configure:8647: checking for $ac_hdr" >&5
8647 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8648   echo $ac_n "(cached) $ac_c" 1>&6
8649 else
8650   cat > conftest.$ac_ext <<EOF
8651 #line 8652 "configure"
8652 #include "confdefs.h"
8653 #include <$ac_hdr>
8654 EOF
8655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8656 { (eval echo configure:8657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8657 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8658 if test -z "$ac_err"; then
8659   rm -rf conftest*
8660   eval "ac_cv_header_$ac_safe=yes"
8661 else
8662   echo "$ac_err" >&5
8663   echo "configure: failed program was:" >&5
8664   cat conftest.$ac_ext >&5
8665   rm -rf conftest*
8666   eval "ac_cv_header_$ac_safe=no"
8667 fi
8668 rm -f conftest*
8669 fi
8670 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8671   echo "$ac_t""yes" 1>&6
8672     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8673   cat >> confdefs.h <<EOF
8674 #define $ac_tr_hdr 1
8675 EOF
8676  ac_has_wctype_h=yes
8677 else
8678   echo "$ac_t""no" 1>&6
8679 ac_has_wctype_h=no
8680 fi
8681 done
8682
8683   
8684     if test x"$ac_has_wchar_h" = xyes &&
8685      test x"$ac_has_wctype_h" = xyes &&
8686      test x"$enable_c_mbchar" != xno; then
8687       
8688             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8689 echo "configure:8690: checking for WCHAR_MIN and WCHAR_MAX" >&5
8690     cat > conftest.$ac_ext <<EOF
8691 #line 8692 "configure"
8692 #include "confdefs.h"
8693 #include <wchar.h>
8694 int main() {
8695 int i = WCHAR_MIN; int j = WCHAR_MAX;
8696 ; return 0; }
8697 EOF
8698 if { (eval echo configure:8699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8699   rm -rf conftest*
8700   has_wchar_minmax=yes
8701 else
8702   echo "configure: failed program was:" >&5
8703   cat conftest.$ac_ext >&5
8704   rm -rf conftest*
8705   has_wchar_minmax=no
8706 fi
8707 rm -f conftest*
8708     echo "$ac_t""$has_wchar_minmax" 1>&6
8709     
8710             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8711 echo "configure:8712: checking for WEOF" >&5
8712     cat > conftest.$ac_ext <<EOF
8713 #line 8714 "configure"
8714 #include "confdefs.h"
8715
8716       #include <wchar.h>
8717       #include <stddef.h>
8718 int main() {
8719 wint_t i = WEOF;
8720 ; return 0; }
8721 EOF
8722 if { (eval echo configure:8723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8723   rm -rf conftest*
8724   has_weof=yes
8725 else
8726   echo "configure: failed program was:" >&5
8727   cat conftest.$ac_ext >&5
8728   rm -rf conftest*
8729   has_weof=no
8730 fi
8731 rm -f conftest*
8732     echo "$ac_t""$has_weof" 1>&6
8733   
8734         ac_wfuncs=yes
8735     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8736 do
8737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8738 echo "configure:8739: checking for $ac_func" >&5
8739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8740   echo $ac_n "(cached) $ac_c" 1>&6
8741 else
8742   cat > conftest.$ac_ext <<EOF
8743 #line 8744 "configure"
8744 #include "confdefs.h"
8745 /* System header to define __stub macros and hopefully few prototypes,
8746     which can conflict with char $ac_func(); below.  */
8747 #include <assert.h>
8748 /* Override any gcc2 internal prototype to avoid an error.  */
8749 /* We use char because int might match the return type of a gcc2
8750     builtin and then its argument prototype would still apply.  */
8751 char $ac_func();
8752
8753 int main() {
8754
8755 /* The GNU C library defines this for functions which it implements
8756     to always fail with ENOSYS.  Some functions are actually named
8757     something starting with __ and the normal name is an alias.  */
8758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8759 choke me
8760 #else
8761 $ac_func();
8762 #endif
8763
8764 ; return 0; }
8765 EOF
8766 if { (eval echo configure:8767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8767   rm -rf conftest*
8768   eval "ac_cv_func_$ac_func=yes"
8769 else
8770   echo "configure: failed program was:" >&5
8771   cat conftest.$ac_ext >&5
8772   rm -rf conftest*
8773   eval "ac_cv_func_$ac_func=no"
8774 fi
8775 rm -f conftest*
8776 fi
8777
8778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8779   echo "$ac_t""yes" 1>&6
8780     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8781   cat >> confdefs.h <<EOF
8782 #define $ac_tr_func 1
8783 EOF
8784  
8785 else
8786   echo "$ac_t""no" 1>&6
8787 \
8788     ac_wfuncs=no
8789 fi
8790 done
8791
8792   
8793         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8794     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8795     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8796     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8797     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8798     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8799 do
8800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8801 echo "configure:8802: checking for $ac_func" >&5
8802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8803   echo $ac_n "(cached) $ac_c" 1>&6
8804 else
8805   cat > conftest.$ac_ext <<EOF
8806 #line 8807 "configure"
8807 #include "confdefs.h"
8808 /* System header to define __stub macros and hopefully few prototypes,
8809     which can conflict with char $ac_func(); below.  */
8810 #include <assert.h>
8811 /* Override any gcc2 internal prototype to avoid an error.  */
8812 /* We use char because int might match the return type of a gcc2
8813     builtin and then its argument prototype would still apply.  */
8814 char $ac_func();
8815
8816 int main() {
8817
8818 /* The GNU C library defines this for functions which it implements
8819     to always fail with ENOSYS.  Some functions are actually named
8820     something starting with __ and the normal name is an alias.  */
8821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8822 choke me
8823 #else
8824 $ac_func();
8825 #endif
8826
8827 ; return 0; }
8828 EOF
8829 if { (eval echo configure:8830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8830   rm -rf conftest*
8831   eval "ac_cv_func_$ac_func=yes"
8832 else
8833   echo "configure: failed program was:" >&5
8834   cat conftest.$ac_ext >&5
8835   rm -rf conftest*
8836   eval "ac_cv_func_$ac_func=no"
8837 fi
8838 rm -f conftest*
8839 fi
8840
8841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8842   echo "$ac_t""yes" 1>&6
8843     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8844   cat >> confdefs.h <<EOF
8845 #define $ac_tr_func 1
8846 EOF
8847  
8848 else
8849   echo "$ac_t""no" 1>&6
8850 \
8851     ac_wfuncs=no
8852 fi
8853 done
8854
8855
8856     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8857 echo "configure:8858: checking for ISO C99 wchar_t support" >&5
8858     if test x"$has_weof" = xyes &&
8859        test x"$has_wchar_minmax" = xyes &&
8860        test x"$ac_wfuncs" = xyes; then
8861       ac_isoC99_wchar_t=yes
8862     else
8863       ac_isoC99_wchar_t=no
8864     fi
8865     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8866   
8867             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8868 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8869 echo "configure:8870: checking for iconv.h" >&5
8870 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8871   echo $ac_n "(cached) $ac_c" 1>&6
8872 else
8873   cat > conftest.$ac_ext <<EOF
8874 #line 8875 "configure"
8875 #include "confdefs.h"
8876 #include <iconv.h>
8877 EOF
8878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8879 { (eval echo configure:8880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8881 if test -z "$ac_err"; then
8882   rm -rf conftest*
8883   eval "ac_cv_header_$ac_safe=yes"
8884 else
8885   echo "$ac_err" >&5
8886   echo "configure: failed program was:" >&5
8887   cat conftest.$ac_ext >&5
8888   rm -rf conftest*
8889   eval "ac_cv_header_$ac_safe=no"
8890 fi
8891 rm -f conftest*
8892 fi
8893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8894   echo "$ac_t""yes" 1>&6
8895   ac_has_iconv_h=yes
8896 else
8897   echo "$ac_t""no" 1>&6
8898 ac_has_iconv_h=no
8899 fi
8900
8901     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8902 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8903 echo "configure:8904: checking for langinfo.h" >&5
8904 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8905   echo $ac_n "(cached) $ac_c" 1>&6
8906 else
8907   cat > conftest.$ac_ext <<EOF
8908 #line 8909 "configure"
8909 #include "confdefs.h"
8910 #include <langinfo.h>
8911 EOF
8912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8913 { (eval echo configure:8914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8915 if test -z "$ac_err"; then
8916   rm -rf conftest*
8917   eval "ac_cv_header_$ac_safe=yes"
8918 else
8919   echo "$ac_err" >&5
8920   echo "configure: failed program was:" >&5
8921   cat conftest.$ac_ext >&5
8922   rm -rf conftest*
8923   eval "ac_cv_header_$ac_safe=no"
8924 fi
8925 rm -f conftest*
8926 fi
8927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8928   echo "$ac_t""yes" 1>&6
8929   ac_has_langinfo_h=yes
8930 else
8931   echo "$ac_t""no" 1>&6
8932 ac_has_langinfo_h=no
8933 fi
8934
8935
8936         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8937 echo "configure:8938: checking for iconv in -liconv" >&5
8938 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8939 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8940   echo $ac_n "(cached) $ac_c" 1>&6
8941 else
8942   ac_save_LIBS="$LIBS"
8943 LIBS="-liconv  $LIBS"
8944 cat > conftest.$ac_ext <<EOF
8945 #line 8946 "configure"
8946 #include "confdefs.h"
8947 /* Override any gcc2 internal prototype to avoid an error.  */
8948 /* We use char because int might match the return type of a gcc2
8949     builtin and then its argument prototype would still apply.  */
8950 char iconv();
8951
8952 int main() {
8953 iconv()
8954 ; return 0; }
8955 EOF
8956 if { (eval echo configure:8957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8957   rm -rf conftest*
8958   eval "ac_cv_lib_$ac_lib_var=yes"
8959 else
8960   echo "configure: failed program was:" >&5
8961   cat conftest.$ac_ext >&5
8962   rm -rf conftest*
8963   eval "ac_cv_lib_$ac_lib_var=no"
8964 fi
8965 rm -f conftest*
8966 LIBS="$ac_save_LIBS"
8967
8968 fi
8969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8970   echo "$ac_t""yes" 1>&6
8971   libiconv="-liconv"
8972 else
8973   echo "$ac_t""no" 1>&6
8974 fi
8975
8976     ac_save_LIBS="$LIBS"
8977     LIBS="$LIBS $libiconv"
8978
8979     for ac_func in iconv_open iconv_close iconv nl_langinfo
8980 do
8981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8982 echo "configure:8983: checking for $ac_func" >&5
8983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8984   echo $ac_n "(cached) $ac_c" 1>&6
8985 else
8986   cat > conftest.$ac_ext <<EOF
8987 #line 8988 "configure"
8988 #include "confdefs.h"
8989 /* System header to define __stub macros and hopefully few prototypes,
8990     which can conflict with char $ac_func(); below.  */
8991 #include <assert.h>
8992 /* Override any gcc2 internal prototype to avoid an error.  */
8993 /* We use char because int might match the return type of a gcc2
8994     builtin and then its argument prototype would still apply.  */
8995 char $ac_func();
8996
8997 int main() {
8998
8999 /* The GNU C library defines this for functions which it implements
9000     to always fail with ENOSYS.  Some functions are actually named
9001     something starting with __ and the normal name is an alias.  */
9002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9003 choke me
9004 #else
9005 $ac_func();
9006 #endif
9007
9008 ; return 0; }
9009 EOF
9010 if { (eval echo configure:9011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9011   rm -rf conftest*
9012   eval "ac_cv_func_$ac_func=yes"
9013 else
9014   echo "configure: failed program was:" >&5
9015   cat conftest.$ac_ext >&5
9016   rm -rf conftest*
9017   eval "ac_cv_func_$ac_func=no"
9018 fi
9019 rm -f conftest*
9020 fi
9021
9022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9023   echo "$ac_t""yes" 1>&6
9024     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9025   cat >> confdefs.h <<EOF
9026 #define $ac_tr_func 1
9027 EOF
9028  \
9029     ac_XPG2funcs=yes
9030 else
9031   echo "$ac_t""no" 1>&6
9032 ac_XPG2funcs=no
9033 fi
9034 done
9035
9036   
9037     LIBS="$ac_save_LIBS"
9038
9039     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9040 echo "configure:9041: checking for XPG2 wchar_t support" >&5
9041     if test x"$ac_has_iconv_h" = xyes &&
9042        test x"$ac_has_langinfo_h" = xyes &&
9043        test x"$ac_XPG2funcs" = xyes; then
9044       ac_XPG2_wchar_t=yes
9045     else
9046       ac_XPG2_wchar_t=no
9047     fi
9048     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9049   
9050             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9051 echo "configure:9052: checking for enabled wchar_t specializations" >&5
9052     if test x"$ac_isoC99_wchar_t" = xyes &&
9053        test x"$ac_XPG2_wchar_t" = xyes; then
9054       cat >> confdefs.h <<\EOF
9055 #define _GLIBCPP_USE_WCHAR_T 1
9056 EOF
9057
9058       echo "$ac_t"""yes"" 1>&6
9059     else
9060       echo "$ac_t"""no"" 1>&6
9061     fi
9062   else
9063         echo "configure: warning: wchar_t support disabled." 1>&2
9064   fi
9065
9066       os_include_dir="os/mingw32"
9067       ;;
9068     *-windiss*)
9069       os_include_dir="os/windiss"
9070       ;;
9071     *-qnx6.[12]*)
9072       SECTION_FLAGS='-ffunction-sections -fdata-sections'
9073        
9074       
9075   # If we're not using GNU ld, then there's no point in even trying these
9076   # tests.  Check for that first.  We should have already tested for gld
9077   # by now (in libtool), but require it now just to be safe...
9078   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9079   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9080   
9081
9082   # The name set by libtool depends on the version of libtool.  Shame on us
9083   # for depending on an impl detail, but c'est la vie.  Older versions used
9084   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9085   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9086   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9087   # set (hence we're using an older libtool), then set it.
9088   if test x${with_gnu_ld+set} != xset; then
9089     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9090       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9091       with_gnu_ld=no
9092     else
9093       with_gnu_ld=$ac_cv_prog_gnu_ld
9094     fi
9095   fi
9096
9097   # Start by getting the version number.  I think the libtool test already
9098   # does some of this, but throws away the result.
9099   
9100   ldver=`$LD --version 2>/dev/null | head -1 | \
9101          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9102   
9103   glibcpp_gnu_ld_version=`echo $ldver | \
9104          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9105
9106   # Set --gc-sections.
9107   if test "$with_gnu_ld" = "notbroken"; then
9108     # GNU ld it is!  Joy and bunny rabbits!
9109
9110     # All these tests are for C++; save the language and the compiler flags.
9111     # Need to do this so that g++ won't try to link in libstdc++
9112     ac_test_CFLAGS="${CFLAGS+set}"
9113     ac_save_CFLAGS="$CFLAGS"
9114     CFLAGS='-x c++  -Wl,--gc-sections'
9115
9116     # Check for -Wl,--gc-sections
9117     # XXX This test is broken at the moment, as symbols required for
9118     # linking are now in libsupc++ (not built yet.....). In addition, 
9119     # this test has cored on solaris in the past. In addition,
9120     # --gc-sections doesn't really work at the moment (keeps on discarding
9121     # used sections, first .eh_frame and now some of the glibc sections for
9122     # iconv). Bzzzzt. Thanks for playing, maybe next time.
9123     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9124 echo "configure:9125: checking for ld that supports -Wl,--gc-sections" >&5
9125     if test "$cross_compiling" = yes; then
9126   ac_sectionLDflags=yes
9127 else
9128   cat > conftest.$ac_ext <<EOF
9129 #line 9130 "configure"
9130 #include "confdefs.h"
9131
9132      int main(void) 
9133      {
9134        try { throw 1; }
9135        catch (...) { };
9136        return 0;
9137      }
9138     
9139 EOF
9140 if { (eval echo configure:9141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9141 then
9142   ac_sectionLDflags=yes
9143 else
9144   echo "configure: failed program was:" >&5
9145   cat conftest.$ac_ext >&5
9146   rm -fr conftest*
9147   ac_sectionLDflags=no
9148 fi
9149 rm -fr conftest*
9150 fi
9151
9152     if test "$ac_test_CFLAGS" = set; then
9153       CFLAGS="$ac_save_CFLAGS"
9154     else
9155       # this is the suspicious part
9156       CFLAGS=''
9157     fi
9158     if test "$ac_sectionLDflags" = "yes"; then
9159       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9160     fi
9161     echo "$ac_t""$ac_sectionLDflags" 1>&6
9162   fi
9163
9164   # Set linker optimization flags.
9165   if test x"$with_gnu_ld" = x"yes"; then
9166     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9167   fi
9168
9169   
9170   
9171
9172       
9173     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9174 echo "configure:9175: checking for main in -lm" >&5
9175 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9177   echo $ac_n "(cached) $ac_c" 1>&6
9178 else
9179   ac_save_LIBS="$LIBS"
9180 LIBS="-lm  $LIBS"
9181 cat > conftest.$ac_ext <<EOF
9182 #line 9183 "configure"
9183 #include "confdefs.h"
9184
9185 int main() {
9186 main()
9187 ; return 0; }
9188 EOF
9189 if { (eval echo configure:9190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9190   rm -rf conftest*
9191   eval "ac_cv_lib_$ac_lib_var=yes"
9192 else
9193   echo "configure: failed program was:" >&5
9194   cat conftest.$ac_ext >&5
9195   rm -rf conftest*
9196   eval "ac_cv_lib_$ac_lib_var=no"
9197 fi
9198 rm -f conftest*
9199 LIBS="$ac_save_LIBS"
9200
9201 fi
9202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9203   echo "$ac_t""yes" 1>&6
9204     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9205     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9206   cat >> confdefs.h <<EOF
9207 #define $ac_tr_lib 1
9208 EOF
9209
9210   LIBS="-lm $LIBS"
9211
9212 else
9213   echo "$ac_t""no" 1>&6
9214 fi
9215
9216   for ac_func in nan copysignf
9217 do
9218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9219 echo "configure:9220: checking for $ac_func" >&5
9220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9221   echo $ac_n "(cached) $ac_c" 1>&6
9222 else
9223   cat > conftest.$ac_ext <<EOF
9224 #line 9225 "configure"
9225 #include "confdefs.h"
9226 /* System header to define __stub macros and hopefully few prototypes,
9227     which can conflict with char $ac_func(); below.  */
9228 #include <assert.h>
9229 /* Override any gcc2 internal prototype to avoid an error.  */
9230 /* We use char because int might match the return type of a gcc2
9231     builtin and then its argument prototype would still apply.  */
9232 char $ac_func();
9233
9234 int main() {
9235
9236 /* The GNU C library defines this for functions which it implements
9237     to always fail with ENOSYS.  Some functions are actually named
9238     something starting with __ and the normal name is an alias.  */
9239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9240 choke me
9241 #else
9242 $ac_func();
9243 #endif
9244
9245 ; return 0; }
9246 EOF
9247 if { (eval echo configure:9248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9248   rm -rf conftest*
9249   eval "ac_cv_func_$ac_func=yes"
9250 else
9251   echo "configure: failed program was:" >&5
9252   cat conftest.$ac_ext >&5
9253   rm -rf conftest*
9254   eval "ac_cv_func_$ac_func=no"
9255 fi
9256 rm -f conftest*
9257 fi
9258
9259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9260   echo "$ac_t""yes" 1>&6
9261     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9262   cat >> confdefs.h <<EOF
9263 #define $ac_tr_func 1
9264 EOF
9265  
9266 else
9267   echo "$ac_t""no" 1>&6
9268 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9269 fi
9270 done
9271
9272
9273     for ac_func in __signbit
9274 do
9275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9276 echo "configure:9277: checking for $ac_func" >&5
9277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9278   echo $ac_n "(cached) $ac_c" 1>&6
9279 else
9280   cat > conftest.$ac_ext <<EOF
9281 #line 9282 "configure"
9282 #include "confdefs.h"
9283 /* System header to define __stub macros and hopefully few prototypes,
9284     which can conflict with char $ac_func(); below.  */
9285 #include <assert.h>
9286 /* Override any gcc2 internal prototype to avoid an error.  */
9287 /* We use char because int might match the return type of a gcc2
9288     builtin and then its argument prototype would still apply.  */
9289 char $ac_func();
9290
9291 int main() {
9292
9293 /* The GNU C library defines this for functions which it implements
9294     to always fail with ENOSYS.  Some functions are actually named
9295     something starting with __ and the normal name is an alias.  */
9296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9297 choke me
9298 #else
9299 $ac_func();
9300 #endif
9301
9302 ; return 0; }
9303 EOF
9304 if { (eval echo configure:9305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9305   rm -rf conftest*
9306   eval "ac_cv_func_$ac_func=yes"
9307 else
9308   echo "configure: failed program was:" >&5
9309   cat conftest.$ac_ext >&5
9310   rm -rf conftest*
9311   eval "ac_cv_func_$ac_func=no"
9312 fi
9313 rm -f conftest*
9314 fi
9315
9316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9317   echo "$ac_t""yes" 1>&6
9318     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9319   cat >> confdefs.h <<EOF
9320 #define $ac_tr_func 1
9321 EOF
9322  
9323 else
9324   echo "$ac_t""no" 1>&6
9325 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9326 fi
9327 done
9328
9329   for ac_func in __signbitf
9330 do
9331 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9332 echo "configure:9333: checking for $ac_func" >&5
9333 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9334   echo $ac_n "(cached) $ac_c" 1>&6
9335 else
9336   cat > conftest.$ac_ext <<EOF
9337 #line 9338 "configure"
9338 #include "confdefs.h"
9339 /* System header to define __stub macros and hopefully few prototypes,
9340     which can conflict with char $ac_func(); below.  */
9341 #include <assert.h>
9342 /* Override any gcc2 internal prototype to avoid an error.  */
9343 /* We use char because int might match the return type of a gcc2
9344     builtin and then its argument prototype would still apply.  */
9345 char $ac_func();
9346
9347 int main() {
9348
9349 /* The GNU C library defines this for functions which it implements
9350     to always fail with ENOSYS.  Some functions are actually named
9351     something starting with __ and the normal name is an alias.  */
9352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9353 choke me
9354 #else
9355 $ac_func();
9356 #endif
9357
9358 ; return 0; }
9359 EOF
9360 if { (eval echo configure:9361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9361   rm -rf conftest*
9362   eval "ac_cv_func_$ac_func=yes"
9363 else
9364   echo "configure: failed program was:" >&5
9365   cat conftest.$ac_ext >&5
9366   rm -rf conftest*
9367   eval "ac_cv_func_$ac_func=no"
9368 fi
9369 rm -f conftest*
9370 fi
9371
9372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9373   echo "$ac_t""yes" 1>&6
9374     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9375   cat >> confdefs.h <<EOF
9376 #define $ac_tr_func 1
9377 EOF
9378  
9379 else
9380   echo "$ac_t""no" 1>&6
9381 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9382 fi
9383 done
9384
9385
9386           if test x$ac_cv_func_copysignl = x"yes"; then
9387     for ac_func in __signbitl
9388 do
9389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9390 echo "configure:9391: checking for $ac_func" >&5
9391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9392   echo $ac_n "(cached) $ac_c" 1>&6
9393 else
9394   cat > conftest.$ac_ext <<EOF
9395 #line 9396 "configure"
9396 #include "confdefs.h"
9397 /* System header to define __stub macros and hopefully few prototypes,
9398     which can conflict with char $ac_func(); below.  */
9399 #include <assert.h>
9400 /* Override any gcc2 internal prototype to avoid an error.  */
9401 /* We use char because int might match the return type of a gcc2
9402     builtin and then its argument prototype would still apply.  */
9403 char $ac_func();
9404
9405 int main() {
9406
9407 /* The GNU C library defines this for functions which it implements
9408     to always fail with ENOSYS.  Some functions are actually named
9409     something starting with __ and the normal name is an alias.  */
9410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9411 choke me
9412 #else
9413 $ac_func();
9414 #endif
9415
9416 ; return 0; }
9417 EOF
9418 if { (eval echo configure:9419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9419   rm -rf conftest*
9420   eval "ac_cv_func_$ac_func=yes"
9421 else
9422   echo "configure: failed program was:" >&5
9423   cat conftest.$ac_ext >&5
9424   rm -rf conftest*
9425   eval "ac_cv_func_$ac_func=no"
9426 fi
9427 rm -f conftest*
9428 fi
9429
9430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9431   echo "$ac_t""yes" 1>&6
9432     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9433   cat >> confdefs.h <<EOF
9434 #define $ac_tr_func 1
9435 EOF
9436  
9437 else
9438   echo "$ac_t""no" 1>&6
9439 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9440 fi
9441 done
9442
9443   fi
9444
9445   if test -n "$LIBMATHOBJS"; then
9446     need_libmath=yes
9447   fi
9448   
9449   
9450
9451 if test "$need_libmath" = yes; then
9452   GLIBCPP_BUILD_LIBMATH_TRUE=
9453   GLIBCPP_BUILD_LIBMATH_FALSE='#'
9454 else
9455   GLIBCPP_BUILD_LIBMATH_TRUE='#'
9456   GLIBCPP_BUILD_LIBMATH_FALSE=
9457 fi
9458
9459       
9460
9461       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9462 echo "configure:9463: checking for mbstate_t" >&5
9463   cat > conftest.$ac_ext <<EOF
9464 #line 9465 "configure"
9465 #include "confdefs.h"
9466 #include <wchar.h>
9467 int main() {
9468 mbstate_t teststate;
9469 ; return 0; }
9470 EOF
9471 if { (eval echo configure:9472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9472   rm -rf conftest*
9473   have_mbstate_t=yes
9474 else
9475   echo "configure: failed program was:" >&5
9476   cat conftest.$ac_ext >&5
9477   rm -rf conftest*
9478   have_mbstate_t=no
9479 fi
9480 rm -f conftest*
9481   echo "$ac_t""$have_mbstate_t" 1>&6
9482   if test x"$have_mbstate_t" = xyes; then
9483     cat >> confdefs.h <<\EOF
9484 #define HAVE_MBSTATE_T 1
9485 EOF
9486
9487   fi
9488
9489     for ac_hdr in wchar.h
9490 do
9491 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9492 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9493 echo "configure:9494: checking for $ac_hdr" >&5
9494 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9495   echo $ac_n "(cached) $ac_c" 1>&6
9496 else
9497   cat > conftest.$ac_ext <<EOF
9498 #line 9499 "configure"
9499 #include "confdefs.h"
9500 #include <$ac_hdr>
9501 EOF
9502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9503 { (eval echo configure:9504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9505 if test -z "$ac_err"; then
9506   rm -rf conftest*
9507   eval "ac_cv_header_$ac_safe=yes"
9508 else
9509   echo "$ac_err" >&5
9510   echo "configure: failed program was:" >&5
9511   cat conftest.$ac_ext >&5
9512   rm -rf conftest*
9513   eval "ac_cv_header_$ac_safe=no"
9514 fi
9515 rm -f conftest*
9516 fi
9517 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9518   echo "$ac_t""yes" 1>&6
9519     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9520   cat >> confdefs.h <<EOF
9521 #define $ac_tr_hdr 1
9522 EOF
9523  ac_has_wchar_h=yes
9524 else
9525   echo "$ac_t""no" 1>&6
9526 ac_has_wchar_h=no
9527 fi
9528 done
9529
9530   for ac_hdr in wctype.h
9531 do
9532 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9534 echo "configure:9535: checking for $ac_hdr" >&5
9535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9536   echo $ac_n "(cached) $ac_c" 1>&6
9537 else
9538   cat > conftest.$ac_ext <<EOF
9539 #line 9540 "configure"
9540 #include "confdefs.h"
9541 #include <$ac_hdr>
9542 EOF
9543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9544 { (eval echo configure:9545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9546 if test -z "$ac_err"; then
9547   rm -rf conftest*
9548   eval "ac_cv_header_$ac_safe=yes"
9549 else
9550   echo "$ac_err" >&5
9551   echo "configure: failed program was:" >&5
9552   cat conftest.$ac_ext >&5
9553   rm -rf conftest*
9554   eval "ac_cv_header_$ac_safe=no"
9555 fi
9556 rm -f conftest*
9557 fi
9558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9559   echo "$ac_t""yes" 1>&6
9560     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9561   cat >> confdefs.h <<EOF
9562 #define $ac_tr_hdr 1
9563 EOF
9564  ac_has_wctype_h=yes
9565 else
9566   echo "$ac_t""no" 1>&6
9567 ac_has_wctype_h=no
9568 fi
9569 done
9570
9571   
9572     if test x"$ac_has_wchar_h" = xyes &&
9573      test x"$ac_has_wctype_h" = xyes &&
9574      test x"$enable_c_mbchar" != xno; then
9575       
9576             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9577 echo "configure:9578: checking for WCHAR_MIN and WCHAR_MAX" >&5
9578     cat > conftest.$ac_ext <<EOF
9579 #line 9580 "configure"
9580 #include "confdefs.h"
9581 #include <wchar.h>
9582 int main() {
9583 int i = WCHAR_MIN; int j = WCHAR_MAX;
9584 ; return 0; }
9585 EOF
9586 if { (eval echo configure:9587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9587   rm -rf conftest*
9588   has_wchar_minmax=yes
9589 else
9590   echo "configure: failed program was:" >&5
9591   cat conftest.$ac_ext >&5
9592   rm -rf conftest*
9593   has_wchar_minmax=no
9594 fi
9595 rm -f conftest*
9596     echo "$ac_t""$has_wchar_minmax" 1>&6
9597     
9598             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9599 echo "configure:9600: checking for WEOF" >&5
9600     cat > conftest.$ac_ext <<EOF
9601 #line 9602 "configure"
9602 #include "confdefs.h"
9603
9604       #include <wchar.h>
9605       #include <stddef.h>
9606 int main() {
9607 wint_t i = WEOF;
9608 ; return 0; }
9609 EOF
9610 if { (eval echo configure:9611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9611   rm -rf conftest*
9612   has_weof=yes
9613 else
9614   echo "configure: failed program was:" >&5
9615   cat conftest.$ac_ext >&5
9616   rm -rf conftest*
9617   has_weof=no
9618 fi
9619 rm -f conftest*
9620     echo "$ac_t""$has_weof" 1>&6
9621   
9622         ac_wfuncs=yes
9623     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9624 do
9625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9626 echo "configure:9627: checking for $ac_func" >&5
9627 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9628   echo $ac_n "(cached) $ac_c" 1>&6
9629 else
9630   cat > conftest.$ac_ext <<EOF
9631 #line 9632 "configure"
9632 #include "confdefs.h"
9633 /* System header to define __stub macros and hopefully few prototypes,
9634     which can conflict with char $ac_func(); below.  */
9635 #include <assert.h>
9636 /* Override any gcc2 internal prototype to avoid an error.  */
9637 /* We use char because int might match the return type of a gcc2
9638     builtin and then its argument prototype would still apply.  */
9639 char $ac_func();
9640
9641 int main() {
9642
9643 /* The GNU C library defines this for functions which it implements
9644     to always fail with ENOSYS.  Some functions are actually named
9645     something starting with __ and the normal name is an alias.  */
9646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9647 choke me
9648 #else
9649 $ac_func();
9650 #endif
9651
9652 ; return 0; }
9653 EOF
9654 if { (eval echo configure:9655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9655   rm -rf conftest*
9656   eval "ac_cv_func_$ac_func=yes"
9657 else
9658   echo "configure: failed program was:" >&5
9659   cat conftest.$ac_ext >&5
9660   rm -rf conftest*
9661   eval "ac_cv_func_$ac_func=no"
9662 fi
9663 rm -f conftest*
9664 fi
9665
9666 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9667   echo "$ac_t""yes" 1>&6
9668     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9669   cat >> confdefs.h <<EOF
9670 #define $ac_tr_func 1
9671 EOF
9672  
9673 else
9674   echo "$ac_t""no" 1>&6
9675 \
9676     ac_wfuncs=no
9677 fi
9678 done
9679
9680   
9681         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
9682     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9683     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9684     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9685     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9686     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9687 do
9688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9689 echo "configure:9690: checking for $ac_func" >&5
9690 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9691   echo $ac_n "(cached) $ac_c" 1>&6
9692 else
9693   cat > conftest.$ac_ext <<EOF
9694 #line 9695 "configure"
9695 #include "confdefs.h"
9696 /* System header to define __stub macros and hopefully few prototypes,
9697     which can conflict with char $ac_func(); below.  */
9698 #include <assert.h>
9699 /* Override any gcc2 internal prototype to avoid an error.  */
9700 /* We use char because int might match the return type of a gcc2
9701     builtin and then its argument prototype would still apply.  */
9702 char $ac_func();
9703
9704 int main() {
9705
9706 /* The GNU C library defines this for functions which it implements
9707     to always fail with ENOSYS.  Some functions are actually named
9708     something starting with __ and the normal name is an alias.  */
9709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9710 choke me
9711 #else
9712 $ac_func();
9713 #endif
9714
9715 ; return 0; }
9716 EOF
9717 if { (eval echo configure:9718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9718   rm -rf conftest*
9719   eval "ac_cv_func_$ac_func=yes"
9720 else
9721   echo "configure: failed program was:" >&5
9722   cat conftest.$ac_ext >&5
9723   rm -rf conftest*
9724   eval "ac_cv_func_$ac_func=no"
9725 fi
9726 rm -f conftest*
9727 fi
9728
9729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9730   echo "$ac_t""yes" 1>&6
9731     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9732   cat >> confdefs.h <<EOF
9733 #define $ac_tr_func 1
9734 EOF
9735  
9736 else
9737   echo "$ac_t""no" 1>&6
9738 \
9739     ac_wfuncs=no
9740 fi
9741 done
9742
9743
9744     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9745 echo "configure:9746: checking for ISO C99 wchar_t support" >&5
9746     if test x"$has_weof" = xyes &&
9747        test x"$has_wchar_minmax" = xyes &&
9748        test x"$ac_wfuncs" = xyes; then
9749       ac_isoC99_wchar_t=yes
9750     else
9751       ac_isoC99_wchar_t=no
9752     fi
9753     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9754   
9755             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9756 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9757 echo "configure:9758: checking for iconv.h" >&5
9758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9759   echo $ac_n "(cached) $ac_c" 1>&6
9760 else
9761   cat > conftest.$ac_ext <<EOF
9762 #line 9763 "configure"
9763 #include "confdefs.h"
9764 #include <iconv.h>
9765 EOF
9766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9767 { (eval echo configure:9768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9769 if test -z "$ac_err"; then
9770   rm -rf conftest*
9771   eval "ac_cv_header_$ac_safe=yes"
9772 else
9773   echo "$ac_err" >&5
9774   echo "configure: failed program was:" >&5
9775   cat conftest.$ac_ext >&5
9776   rm -rf conftest*
9777   eval "ac_cv_header_$ac_safe=no"
9778 fi
9779 rm -f conftest*
9780 fi
9781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9782   echo "$ac_t""yes" 1>&6
9783   ac_has_iconv_h=yes
9784 else
9785   echo "$ac_t""no" 1>&6
9786 ac_has_iconv_h=no
9787 fi
9788
9789     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9790 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9791 echo "configure:9792: checking for langinfo.h" >&5
9792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9793   echo $ac_n "(cached) $ac_c" 1>&6
9794 else
9795   cat > conftest.$ac_ext <<EOF
9796 #line 9797 "configure"
9797 #include "confdefs.h"
9798 #include <langinfo.h>
9799 EOF
9800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9801 { (eval echo configure:9802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9803 if test -z "$ac_err"; then
9804   rm -rf conftest*
9805   eval "ac_cv_header_$ac_safe=yes"
9806 else
9807   echo "$ac_err" >&5
9808   echo "configure: failed program was:" >&5
9809   cat conftest.$ac_ext >&5
9810   rm -rf conftest*
9811   eval "ac_cv_header_$ac_safe=no"
9812 fi
9813 rm -f conftest*
9814 fi
9815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9816   echo "$ac_t""yes" 1>&6
9817   ac_has_langinfo_h=yes
9818 else
9819   echo "$ac_t""no" 1>&6
9820 ac_has_langinfo_h=no
9821 fi
9822
9823
9824         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9825 echo "configure:9826: checking for iconv in -liconv" >&5
9826 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9828   echo $ac_n "(cached) $ac_c" 1>&6
9829 else
9830   ac_save_LIBS="$LIBS"
9831 LIBS="-liconv  $LIBS"
9832 cat > conftest.$ac_ext <<EOF
9833 #line 9834 "configure"
9834 #include "confdefs.h"
9835 /* Override any gcc2 internal prototype to avoid an error.  */
9836 /* We use char because int might match the return type of a gcc2
9837     builtin and then its argument prototype would still apply.  */
9838 char iconv();
9839
9840 int main() {
9841 iconv()
9842 ; return 0; }
9843 EOF
9844 if { (eval echo configure:9845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9845   rm -rf conftest*
9846   eval "ac_cv_lib_$ac_lib_var=yes"
9847 else
9848   echo "configure: failed program was:" >&5
9849   cat conftest.$ac_ext >&5
9850   rm -rf conftest*
9851   eval "ac_cv_lib_$ac_lib_var=no"
9852 fi
9853 rm -f conftest*
9854 LIBS="$ac_save_LIBS"
9855
9856 fi
9857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9858   echo "$ac_t""yes" 1>&6
9859   libiconv="-liconv"
9860 else
9861   echo "$ac_t""no" 1>&6
9862 fi
9863
9864     ac_save_LIBS="$LIBS"
9865     LIBS="$LIBS $libiconv"
9866
9867     for ac_func in iconv_open iconv_close iconv nl_langinfo
9868 do
9869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9870 echo "configure:9871: checking for $ac_func" >&5
9871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9872   echo $ac_n "(cached) $ac_c" 1>&6
9873 else
9874   cat > conftest.$ac_ext <<EOF
9875 #line 9876 "configure"
9876 #include "confdefs.h"
9877 /* System header to define __stub macros and hopefully few prototypes,
9878     which can conflict with char $ac_func(); below.  */
9879 #include <assert.h>
9880 /* Override any gcc2 internal prototype to avoid an error.  */
9881 /* We use char because int might match the return type of a gcc2
9882     builtin and then its argument prototype would still apply.  */
9883 char $ac_func();
9884
9885 int main() {
9886
9887 /* The GNU C library defines this for functions which it implements
9888     to always fail with ENOSYS.  Some functions are actually named
9889     something starting with __ and the normal name is an alias.  */
9890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9891 choke me
9892 #else
9893 $ac_func();
9894 #endif
9895
9896 ; return 0; }
9897 EOF
9898 if { (eval echo configure:9899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9899   rm -rf conftest*
9900   eval "ac_cv_func_$ac_func=yes"
9901 else
9902   echo "configure: failed program was:" >&5
9903   cat conftest.$ac_ext >&5
9904   rm -rf conftest*
9905   eval "ac_cv_func_$ac_func=no"
9906 fi
9907 rm -f conftest*
9908 fi
9909
9910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9911   echo "$ac_t""yes" 1>&6
9912     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9913   cat >> confdefs.h <<EOF
9914 #define $ac_tr_func 1
9915 EOF
9916  \
9917     ac_XPG2funcs=yes
9918 else
9919   echo "$ac_t""no" 1>&6
9920 ac_XPG2funcs=no
9921 fi
9922 done
9923
9924   
9925     LIBS="$ac_save_LIBS"
9926
9927     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9928 echo "configure:9929: checking for XPG2 wchar_t support" >&5
9929     if test x"$ac_has_iconv_h" = xyes &&
9930        test x"$ac_has_langinfo_h" = xyes &&
9931        test x"$ac_XPG2funcs" = xyes; then
9932       ac_XPG2_wchar_t=yes
9933     else
9934       ac_XPG2_wchar_t=no
9935     fi
9936     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9937   
9938             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9939 echo "configure:9940: checking for enabled wchar_t specializations" >&5
9940     if test x"$ac_isoC99_wchar_t" = xyes &&
9941        test x"$ac_XPG2_wchar_t" = xyes; then
9942       cat >> confdefs.h <<\EOF
9943 #define _GLIBCPP_USE_WCHAR_T 1
9944 EOF
9945
9946       echo "$ac_t"""yes"" 1>&6
9947     else
9948       echo "$ac_t"""no"" 1>&6
9949     fi
9950   else
9951         echo "configure: warning: wchar_t support disabled." 1>&2
9952   fi
9953
9954       os_include_dir="os/qnx/qnx6.1"
9955       cat >> confdefs.h <<\EOF
9956 #define HAVE_COSF 1
9957 EOF
9958
9959       cat >> confdefs.h <<\EOF
9960 #define HAVE_COSL 1
9961 EOF
9962
9963       cat >> confdefs.h <<\EOF
9964 #define HAVE_COSHF 1
9965 EOF
9966
9967       cat >> confdefs.h <<\EOF
9968 #define HAVE_COSHL 1
9969 EOF
9970
9971       cat >> confdefs.h <<\EOF
9972 #define HAVE_LOGF 1
9973 EOF
9974
9975       cat >> confdefs.h <<\EOF
9976 #define HAVE_LOGL 1
9977 EOF
9978
9979       cat >> confdefs.h <<\EOF
9980 #define HAVE_LOG10F 1
9981 EOF
9982
9983       cat >> confdefs.h <<\EOF
9984 #define HAVE_LOG10L 1
9985 EOF
9986
9987       cat >> confdefs.h <<\EOF
9988 #define HAVE_SINF 1
9989 EOF
9990
9991       cat >> confdefs.h <<\EOF
9992 #define HAVE_SINL 1
9993 EOF
9994
9995       cat >> confdefs.h <<\EOF
9996 #define HAVE_SINHF 1
9997 EOF
9998
9999       cat >> confdefs.h <<\EOF
10000 #define HAVE_SINHL 1
10001 EOF
10002
10003       ;;
10004     *)
10005       os_include_dir="os/newlib"
10006       cat >> confdefs.h <<\EOF
10007 #define HAVE_HYPOT 1
10008 EOF
10009
10010       ;;
10011   esac
10012
10013   case "$target" in
10014     *-mingw32*)
10015       ;;
10016     *-windiss*)
10017       cat >> confdefs.h <<\EOF
10018 #define HAVE_ACOSF 1
10019 EOF
10020
10021       cat >> confdefs.h <<\EOF
10022 #define HAVE_ASINF 1
10023 EOF
10024
10025       cat >> confdefs.h <<\EOF
10026 #define HAVE_ATAN2F 1
10027 EOF
10028
10029       cat >> confdefs.h <<\EOF
10030 #define HAVE_ATANF 1
10031 EOF
10032
10033       cat >> confdefs.h <<\EOF
10034 #define HAVE_CEILF 1
10035 EOF
10036
10037       cat >> confdefs.h <<\EOF
10038 #define HAVE_COPYSIGN 1
10039 EOF
10040
10041       cat >> confdefs.h <<\EOF
10042 #define HAVE_COPYSIGNF 1
10043 EOF
10044
10045       cat >> confdefs.h <<\EOF
10046 #define HAVE_COSF 1
10047 EOF
10048
10049       cat >> confdefs.h <<\EOF
10050 #define HAVE_COSHF 1
10051 EOF
10052
10053       cat >> confdefs.h <<\EOF
10054 #define HAVE_EXPF 1
10055 EOF
10056
10057       cat >> confdefs.h <<\EOF
10058 #define HAVE_FABSF 1
10059 EOF
10060
10061       cat >> confdefs.h <<\EOF
10062 #define HAVE_FLOORF 1
10063 EOF
10064
10065       cat >> confdefs.h <<\EOF
10066 #define HAVE_FMODF 1
10067 EOF
10068
10069       cat >> confdefs.h <<\EOF
10070 #define HAVE_FREXPF 1
10071 EOF
10072
10073       cat >> confdefs.h <<\EOF
10074 #define HAVE_LDEXPF 1
10075 EOF
10076
10077       cat >> confdefs.h <<\EOF
10078 #define HAVE_LOG10F 1
10079 EOF
10080
10081       cat >> confdefs.h <<\EOF
10082 #define HAVE_LOGF 1
10083 EOF
10084
10085       cat >> confdefs.h <<\EOF
10086 #define HAVE_MODFF 1
10087 EOF
10088
10089       cat >> confdefs.h <<\EOF
10090 #define HAVE_POWF 1
10091 EOF
10092
10093       cat >> confdefs.h <<\EOF
10094 #define HAVE_SINF 1
10095 EOF
10096
10097       cat >> confdefs.h <<\EOF
10098 #define HAVE_SINHF 1
10099 EOF
10100
10101       cat >> confdefs.h <<\EOF
10102 #define HAVE_SQRTF 1
10103 EOF
10104
10105       cat >> confdefs.h <<\EOF
10106 #define HAVE_TANF 1
10107 EOF
10108
10109       cat >> confdefs.h <<\EOF
10110 #define HAVE_TANHF 1
10111 EOF
10112
10113       ;;
10114     *-freebsd*)
10115       # Must replicate generic section since we don't have strtof or strtold.
10116       cat >> confdefs.h <<\EOF
10117 #define HAVE_MMAP 1
10118 EOF
10119
10120       cat >> confdefs.h <<\EOF
10121 #define HAVE_ACOSF 1
10122 EOF
10123
10124       cat >> confdefs.h <<\EOF
10125 #define HAVE_ASINF 1
10126 EOF
10127
10128       cat >> confdefs.h <<\EOF
10129 #define HAVE_ATAN2F 1
10130 EOF
10131
10132       cat >> confdefs.h <<\EOF
10133 #define HAVE_ATANF 1
10134 EOF
10135
10136       cat >> confdefs.h <<\EOF
10137 #define HAVE_CEILF 1
10138 EOF
10139
10140       cat >> confdefs.h <<\EOF
10141 #define HAVE_COPYSIGN 1
10142 EOF
10143
10144       cat >> confdefs.h <<\EOF
10145 #define HAVE_COPYSIGNF 1
10146 EOF
10147
10148       cat >> confdefs.h <<\EOF
10149 #define HAVE_COSF 1
10150 EOF
10151
10152       cat >> confdefs.h <<\EOF
10153 #define HAVE_COSHF 1
10154 EOF
10155
10156       cat >> confdefs.h <<\EOF
10157 #define HAVE_EXPF 1
10158 EOF
10159
10160       cat >> confdefs.h <<\EOF
10161 #define HAVE_FABSF 1
10162 EOF
10163
10164       cat >> confdefs.h <<\EOF
10165 #define HAVE_FLOORF 1
10166 EOF
10167
10168       cat >> confdefs.h <<\EOF
10169 #define HAVE_FMODF 1
10170 EOF
10171
10172       cat >> confdefs.h <<\EOF
10173 #define HAVE_FREXPF 1
10174 EOF
10175
10176       cat >> confdefs.h <<\EOF
10177 #define HAVE_LDEXPF 1
10178 EOF
10179
10180       cat >> confdefs.h <<\EOF
10181 #define HAVE_LOG10F 1
10182 EOF
10183
10184       cat >> confdefs.h <<\EOF
10185 #define HAVE_LOGF 1
10186 EOF
10187
10188       cat >> confdefs.h <<\EOF
10189 #define HAVE_MODFF 1
10190 EOF
10191
10192       cat >> confdefs.h <<\EOF
10193 #define HAVE_POWF 1
10194 EOF
10195
10196       cat >> confdefs.h <<\EOF
10197 #define HAVE_SINF 1
10198 EOF
10199
10200       cat >> confdefs.h <<\EOF
10201 #define HAVE_SINHF 1
10202 EOF
10203
10204       cat >> confdefs.h <<\EOF
10205 #define HAVE_SQRTF 1
10206 EOF
10207
10208       cat >> confdefs.h <<\EOF
10209 #define HAVE_TANF 1
10210 EOF
10211
10212       cat >> confdefs.h <<\EOF
10213 #define HAVE_TANHF 1
10214 EOF
10215
10216       ;;
10217     *)
10218       # GLIBCPP_CHECK_STDLIB_SUPPORT
10219       cat >> confdefs.h <<\EOF
10220 #define HAVE_STRTOF 1
10221 EOF
10222         
10223       cat >> confdefs.h <<\EOF
10224 #define HAVE_STRTOLD 1
10225 EOF
10226         
10227       # AC_FUNC_MMAP
10228       cat >> confdefs.h <<\EOF
10229 #define HAVE_MMAP 1
10230 EOF
10231
10232
10233       cat >> confdefs.h <<\EOF
10234 #define HAVE_ACOSF 1
10235 EOF
10236
10237       cat >> confdefs.h <<\EOF
10238 #define HAVE_ASINF 1
10239 EOF
10240
10241       cat >> confdefs.h <<\EOF
10242 #define HAVE_ATAN2F 1
10243 EOF
10244
10245       cat >> confdefs.h <<\EOF
10246 #define HAVE_ATANF 1
10247 EOF
10248
10249       cat >> confdefs.h <<\EOF
10250 #define HAVE_CEILF 1
10251 EOF
10252
10253       cat >> confdefs.h <<\EOF
10254 #define HAVE_COPYSIGN 1
10255 EOF
10256
10257       cat >> confdefs.h <<\EOF
10258 #define HAVE_COPYSIGNF 1
10259 EOF
10260
10261       cat >> confdefs.h <<\EOF
10262 #define HAVE_COSF 1
10263 EOF
10264
10265       cat >> confdefs.h <<\EOF
10266 #define HAVE_COSHF 1
10267 EOF
10268
10269       cat >> confdefs.h <<\EOF
10270 #define HAVE_EXPF 1
10271 EOF
10272
10273       cat >> confdefs.h <<\EOF
10274 #define HAVE_FABSF 1
10275 EOF
10276
10277       cat >> confdefs.h <<\EOF
10278 #define HAVE_FLOORF 1
10279 EOF
10280
10281       cat >> confdefs.h <<\EOF
10282 #define HAVE_FMODF 1
10283 EOF
10284
10285       cat >> confdefs.h <<\EOF
10286 #define HAVE_FREXPF 1
10287 EOF
10288
10289       cat >> confdefs.h <<\EOF
10290 #define HAVE_LDEXPF 1
10291 EOF
10292
10293       cat >> confdefs.h <<\EOF
10294 #define HAVE_LOG10F 1
10295 EOF
10296
10297       cat >> confdefs.h <<\EOF
10298 #define HAVE_LOGF 1
10299 EOF
10300
10301       cat >> confdefs.h <<\EOF
10302 #define HAVE_MODFF 1
10303 EOF
10304
10305       cat >> confdefs.h <<\EOF
10306 #define HAVE_POWF 1
10307 EOF
10308
10309       cat >> confdefs.h <<\EOF
10310 #define HAVE_SINF 1
10311 EOF
10312
10313       cat >> confdefs.h <<\EOF
10314 #define HAVE_SINHF 1
10315 EOF
10316
10317       cat >> confdefs.h <<\EOF
10318 #define HAVE_SQRTF 1
10319 EOF
10320
10321       cat >> confdefs.h <<\EOF
10322 #define HAVE_TANF 1
10323 EOF
10324
10325       cat >> confdefs.h <<\EOF
10326 #define HAVE_TANHF 1
10327 EOF
10328
10329       ;;
10330   esac
10331
10332   # At some point, we should differentiate between architectures
10333   # like x86, which have long double versions, and alpha/powerpc/etc.,
10334   # which don't. For the time being, punt.
10335   if test x"long_double_math_on_this_cpu" = x"yes"; then
10336     cat >> confdefs.h <<\EOF
10337 #define HAVE_ACOSL 1
10338 EOF
10339
10340     cat >> confdefs.h <<\EOF
10341 #define HAVE_ASINL 1
10342 EOF
10343
10344     cat >> confdefs.h <<\EOF
10345 #define HAVE_ATAN2L 1
10346 EOF
10347
10348     cat >> confdefs.h <<\EOF
10349 #define HAVE_ATANL 1
10350 EOF
10351
10352     cat >> confdefs.h <<\EOF
10353 #define HAVE_CEILL 1
10354 EOF
10355
10356     cat >> confdefs.h <<\EOF
10357 #define HAVE_COPYSIGNL 1
10358 EOF
10359
10360     cat >> confdefs.h <<\EOF
10361 #define HAVE_COSL 1
10362 EOF
10363
10364     cat >> confdefs.h <<\EOF
10365 #define HAVE_COSHL 1
10366 EOF
10367
10368     cat >> confdefs.h <<\EOF
10369 #define HAVE_EXPL 1
10370 EOF
10371
10372     cat >> confdefs.h <<\EOF
10373 #define HAVE_FABSL 1
10374 EOF
10375
10376     cat >> confdefs.h <<\EOF
10377 #define HAVE_FLOORL 1
10378 EOF
10379
10380     cat >> confdefs.h <<\EOF
10381 #define HAVE_FMODL 1
10382 EOF
10383
10384     cat >> confdefs.h <<\EOF
10385 #define HAVE_FREXPL 1
10386 EOF
10387
10388     cat >> confdefs.h <<\EOF
10389 #define HAVE_LDEXPL 1
10390 EOF
10391
10392     cat >> confdefs.h <<\EOF
10393 #define HAVE_LOG10L 1
10394 EOF
10395
10396     cat >> confdefs.h <<\EOF
10397 #define HAVE_LOGL 1
10398 EOF
10399
10400     cat >> confdefs.h <<\EOF
10401 #define HAVE_MODFL 1
10402 EOF
10403
10404     cat >> confdefs.h <<\EOF
10405 #define HAVE_POWL 1
10406 EOF
10407
10408     cat >> confdefs.h <<\EOF
10409 #define HAVE_SINCOSL 1
10410 EOF
10411
10412     cat >> confdefs.h <<\EOF
10413 #define HAVE_SINL 1
10414 EOF
10415
10416     cat >> confdefs.h <<\EOF
10417 #define HAVE_SINHL 1
10418 EOF
10419
10420     cat >> confdefs.h <<\EOF
10421 #define HAVE_SQRTL 1
10422 EOF
10423
10424     cat >> confdefs.h <<\EOF
10425 #define HAVE_TANL 1
10426 EOF
10427
10428     cat >> confdefs.h <<\EOF
10429 #define HAVE_TANHL 1
10430 EOF
10431
10432   fi
10433
10434 else
10435
10436   # We are being configured natively. We can do more elaborate tests
10437   # that include AC_TRY_COMPILE now, as the linker is assumed to be
10438   # working.
10439   GLIBCPP_IS_CROSS_COMPILING=0
10440   CANADIAN=no
10441
10442   # Check for available headers.
10443   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10444   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
10445 do
10446 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10447 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10448 echo "configure:10449: checking for $ac_hdr" >&5
10449 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10450   echo $ac_n "(cached) $ac_c" 1>&6
10451 else
10452   cat > conftest.$ac_ext <<EOF
10453 #line 10454 "configure"
10454 #include "confdefs.h"
10455 #include <$ac_hdr>
10456 EOF
10457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10458 { (eval echo configure:10459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10460 if test -z "$ac_err"; then
10461   rm -rf conftest*
10462   eval "ac_cv_header_$ac_safe=yes"
10463 else
10464   echo "$ac_err" >&5
10465   echo "configure: failed program was:" >&5
10466   cat conftest.$ac_ext >&5
10467   rm -rf conftest*
10468   eval "ac_cv_header_$ac_safe=no"
10469 fi
10470 rm -f conftest*
10471 fi
10472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10473   echo "$ac_t""yes" 1>&6
10474     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10475   cat >> confdefs.h <<EOF
10476 #define $ac_tr_hdr 1
10477 EOF
10478  
10479 else
10480   echo "$ac_t""no" 1>&6
10481 fi
10482 done
10483
10484
10485   
10486   # All these tests are for C++; save the language and the compiler flags.
10487   # The CXXFLAGS thing is suspicious, but based on similar bits previously
10488   # found in GLIBCPP_CONFIGURE.
10489   
10490   ac_ext=C
10491 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10492 ac_cpp='$CXXCPP $CPPFLAGS'
10493 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10494 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10495 cross_compiling=$ac_cv_prog_cxx_cross
10496
10497   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10498   ac_save_CXXFLAGS="$CXXFLAGS"
10499
10500   # Check for maintainer-mode bits.
10501   if test x"$USE_MAINTAINER_MODE" = xno; then
10502     WERROR=''
10503   else
10504     WERROR='-Werror'
10505   fi
10506
10507   # Check for -ffunction-sections -fdata-sections
10508   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10509 echo "configure:10510: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10510   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10511   cat > conftest.$ac_ext <<EOF
10512 #line 10513 "configure"
10513 #include "confdefs.h"
10514
10515 int main() {
10516 int foo;
10517   
10518 ; return 0; }
10519 EOF
10520 if { (eval echo configure:10521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10521   rm -rf conftest*
10522   ac_fdsections=yes
10523 else
10524   echo "configure: failed program was:" >&5
10525   cat conftest.$ac_ext >&5
10526   rm -rf conftest*
10527   ac_fdsections=no
10528 fi
10529 rm -f conftest*
10530   if test "$ac_test_CXXFLAGS" = set; then
10531     CXXFLAGS="$ac_save_CXXFLAGS"
10532   else
10533     # this is the suspicious part
10534     CXXFLAGS=''
10535   fi
10536   if test x"$ac_fdsections" = x"yes"; then
10537     SECTION_FLAGS='-ffunction-sections -fdata-sections'
10538   fi
10539   echo "$ac_t""$ac_fdsections" 1>&6
10540
10541   ac_ext=c
10542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10543 ac_cpp='$CPP $CPPFLAGS'
10544 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10545 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10546 cross_compiling=$ac_cv_prog_cc_cross
10547
10548   
10549   
10550
10551   
10552   # If we're not using GNU ld, then there's no point in even trying these
10553   # tests.  Check for that first.  We should have already tested for gld
10554   # by now (in libtool), but require it now just to be safe...
10555   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10556   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10557   
10558
10559   # The name set by libtool depends on the version of libtool.  Shame on us
10560   # for depending on an impl detail, but c'est la vie.  Older versions used
10561   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10562   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10563   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
10564   # set (hence we're using an older libtool), then set it.
10565   if test x${with_gnu_ld+set} != xset; then
10566     if test x${ac_cv_prog_gnu_ld+set} != xset; then
10567       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
10568       with_gnu_ld=no
10569     else
10570       with_gnu_ld=$ac_cv_prog_gnu_ld
10571     fi
10572   fi
10573
10574   # Start by getting the version number.  I think the libtool test already
10575   # does some of this, but throws away the result.
10576   
10577   ldver=`$LD --version 2>/dev/null | head -1 | \
10578          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10579   
10580   glibcpp_gnu_ld_version=`echo $ldver | \
10581          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10582
10583   # Set --gc-sections.
10584   if test "$with_gnu_ld" = "notbroken"; then
10585     # GNU ld it is!  Joy and bunny rabbits!
10586
10587     # All these tests are for C++; save the language and the compiler flags.
10588     # Need to do this so that g++ won't try to link in libstdc++
10589     ac_test_CFLAGS="${CFLAGS+set}"
10590     ac_save_CFLAGS="$CFLAGS"
10591     CFLAGS='-x c++  -Wl,--gc-sections'
10592
10593     # Check for -Wl,--gc-sections
10594     # XXX This test is broken at the moment, as symbols required for
10595     # linking are now in libsupc++ (not built yet.....). In addition, 
10596     # this test has cored on solaris in the past. In addition,
10597     # --gc-sections doesn't really work at the moment (keeps on discarding
10598     # used sections, first .eh_frame and now some of the glibc sections for
10599     # iconv). Bzzzzt. Thanks for playing, maybe next time.
10600     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10601 echo "configure:10602: checking for ld that supports -Wl,--gc-sections" >&5
10602     if test "$cross_compiling" = yes; then
10603   ac_sectionLDflags=yes
10604 else
10605   cat > conftest.$ac_ext <<EOF
10606 #line 10607 "configure"
10607 #include "confdefs.h"
10608
10609      int main(void) 
10610      {
10611        try { throw 1; }
10612        catch (...) { };
10613        return 0;
10614      }
10615     
10616 EOF
10617 if { (eval echo configure:10618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10618 then
10619   ac_sectionLDflags=yes
10620 else
10621   echo "configure: failed program was:" >&5
10622   cat conftest.$ac_ext >&5
10623   rm -fr conftest*
10624   ac_sectionLDflags=no
10625 fi
10626 rm -fr conftest*
10627 fi
10628
10629     if test "$ac_test_CFLAGS" = set; then
10630       CFLAGS="$ac_save_CFLAGS"
10631     else
10632       # this is the suspicious part
10633       CFLAGS=''
10634     fi
10635     if test "$ac_sectionLDflags" = "yes"; then
10636       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10637     fi
10638     echo "$ac_t""$ac_sectionLDflags" 1>&6
10639   fi
10640
10641   # Set linker optimization flags.
10642   if test x"$with_gnu_ld" = x"yes"; then
10643     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10644   fi
10645
10646   
10647   
10648
10649   
10650       
10651   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
10652 echo "configure:10653: checking for __builtin_abs declaration" >&5
10653   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
10654     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
10655   echo $ac_n "(cached) $ac_c" 1>&6
10656 else
10657   
10658       
10659       ac_ext=C
10660 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10661 ac_cpp='$CXXCPP $CPPFLAGS'
10662 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10663 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10664 cross_compiling=$ac_cv_prog_cxx_cross
10665
10666       cat > conftest.$ac_ext <<EOF
10667 #line 10668 "configure"
10668 #include "confdefs.h"
10669 #include <math.h>
10670 int main() {
10671  __builtin_abs(0);
10672 ; return 0; }
10673 EOF
10674 if { (eval echo configure:10675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10675   rm -rf conftest*
10676   glibcpp_cv_func___builtin_abs_use=yes
10677 else
10678   echo "configure: failed program was:" >&5
10679   cat conftest.$ac_ext >&5
10680   rm -rf conftest*
10681   glibcpp_cv_func___builtin_abs_use=no
10682 fi
10683 rm -f conftest*
10684       ac_ext=c
10685 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10686 ac_cpp='$CPP $CPPFLAGS'
10687 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10688 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10689 cross_compiling=$ac_cv_prog_cc_cross
10690
10691     
10692 fi
10693
10694   fi
10695   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
10696   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
10697     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
10698 echo "configure:10699: checking for __builtin_abs linkage" >&5
10699     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
10700       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
10701   echo $ac_n "(cached) $ac_c" 1>&6
10702 else
10703   
10704         cat > conftest.$ac_ext <<EOF
10705 #line 10706 "configure"
10706 #include "confdefs.h"
10707 #include <math.h>
10708 int main() {
10709  __builtin_abs(0);
10710 ; return 0; }
10711 EOF
10712 if { (eval echo configure:10713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10713   rm -rf conftest*
10714   glibcpp_cv_func___builtin_abs_link=yes
10715 else
10716   echo "configure: failed program was:" >&5
10717   cat conftest.$ac_ext >&5
10718   rm -rf conftest*
10719   glibcpp_cv_func___builtin_abs_link=no
10720 fi
10721 rm -f conftest*
10722       
10723 fi
10724
10725     fi
10726     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
10727     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
10728       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10729       cat >> confdefs.h <<EOF
10730 #define ${ac_tr_func} 1
10731 EOF
10732
10733     fi
10734   fi
10735
10736   
10737   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
10738 echo "configure:10739: checking for __builtin_fabsf declaration" >&5
10739   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
10740     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
10741   echo $ac_n "(cached) $ac_c" 1>&6
10742 else
10743   
10744       
10745       ac_ext=C
10746 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10747 ac_cpp='$CXXCPP $CPPFLAGS'
10748 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10749 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10750 cross_compiling=$ac_cv_prog_cxx_cross
10751
10752       cat > conftest.$ac_ext <<EOF
10753 #line 10754 "configure"
10754 #include "confdefs.h"
10755 #include <math.h>
10756 int main() {
10757  __builtin_fabsf(0);
10758 ; return 0; }
10759 EOF
10760 if { (eval echo configure:10761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10761   rm -rf conftest*
10762   glibcpp_cv_func___builtin_fabsf_use=yes
10763 else
10764   echo "configure: failed program was:" >&5
10765   cat conftest.$ac_ext >&5
10766   rm -rf conftest*
10767   glibcpp_cv_func___builtin_fabsf_use=no
10768 fi
10769 rm -f conftest*
10770       ac_ext=c
10771 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10772 ac_cpp='$CPP $CPPFLAGS'
10773 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10774 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10775 cross_compiling=$ac_cv_prog_cc_cross
10776
10777     
10778 fi
10779
10780   fi
10781   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
10782   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
10783     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
10784 echo "configure:10785: checking for __builtin_fabsf linkage" >&5
10785     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
10786       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
10787   echo $ac_n "(cached) $ac_c" 1>&6
10788 else
10789   
10790         cat > conftest.$ac_ext <<EOF
10791 #line 10792 "configure"
10792 #include "confdefs.h"
10793 #include <math.h>
10794 int main() {
10795  __builtin_fabsf(0);
10796 ; return 0; }
10797 EOF
10798 if { (eval echo configure:10799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10799   rm -rf conftest*
10800   glibcpp_cv_func___builtin_fabsf_link=yes
10801 else
10802   echo "configure: failed program was:" >&5
10803   cat conftest.$ac_ext >&5
10804   rm -rf conftest*
10805   glibcpp_cv_func___builtin_fabsf_link=no
10806 fi
10807 rm -f conftest*
10808       
10809 fi
10810
10811     fi
10812     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
10813     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
10814       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10815       cat >> confdefs.h <<EOF
10816 #define ${ac_tr_func} 1
10817 EOF
10818
10819     fi
10820   fi
10821
10822   
10823   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
10824 echo "configure:10825: checking for __builtin_fabs declaration" >&5
10825   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
10826     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
10827   echo $ac_n "(cached) $ac_c" 1>&6
10828 else
10829   
10830       
10831       ac_ext=C
10832 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10833 ac_cpp='$CXXCPP $CPPFLAGS'
10834 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10835 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10836 cross_compiling=$ac_cv_prog_cxx_cross
10837
10838       cat > conftest.$ac_ext <<EOF
10839 #line 10840 "configure"
10840 #include "confdefs.h"
10841 #include <math.h>
10842 int main() {
10843  __builtin_fabs(0);
10844 ; return 0; }
10845 EOF
10846 if { (eval echo configure:10847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10847   rm -rf conftest*
10848   glibcpp_cv_func___builtin_fabs_use=yes
10849 else
10850   echo "configure: failed program was:" >&5
10851   cat conftest.$ac_ext >&5
10852   rm -rf conftest*
10853   glibcpp_cv_func___builtin_fabs_use=no
10854 fi
10855 rm -f conftest*
10856       ac_ext=c
10857 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10858 ac_cpp='$CPP $CPPFLAGS'
10859 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10860 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10861 cross_compiling=$ac_cv_prog_cc_cross
10862
10863     
10864 fi
10865
10866   fi
10867   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
10868   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
10869     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
10870 echo "configure:10871: checking for __builtin_fabs linkage" >&5
10871     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
10872       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
10873   echo $ac_n "(cached) $ac_c" 1>&6
10874 else
10875   
10876         cat > conftest.$ac_ext <<EOF
10877 #line 10878 "configure"
10878 #include "confdefs.h"
10879 #include <math.h>
10880 int main() {
10881  __builtin_fabs(0);
10882 ; return 0; }
10883 EOF
10884 if { (eval echo configure:10885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10885   rm -rf conftest*
10886   glibcpp_cv_func___builtin_fabs_link=yes
10887 else
10888   echo "configure: failed program was:" >&5
10889   cat conftest.$ac_ext >&5
10890   rm -rf conftest*
10891   glibcpp_cv_func___builtin_fabs_link=no
10892 fi
10893 rm -f conftest*
10894       
10895 fi
10896
10897     fi
10898     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
10899     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
10900       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10901       cat >> confdefs.h <<EOF
10902 #define ${ac_tr_func} 1
10903 EOF
10904
10905     fi
10906   fi
10907
10908   
10909   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
10910 echo "configure:10911: checking for __builtin_fabsl declaration" >&5
10911   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
10912     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
10913   echo $ac_n "(cached) $ac_c" 1>&6
10914 else
10915   
10916       
10917       ac_ext=C
10918 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10919 ac_cpp='$CXXCPP $CPPFLAGS'
10920 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10921 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10922 cross_compiling=$ac_cv_prog_cxx_cross
10923
10924       cat > conftest.$ac_ext <<EOF
10925 #line 10926 "configure"
10926 #include "confdefs.h"
10927 #include <math.h>
10928 int main() {
10929  __builtin_fabsl(0);
10930 ; return 0; }
10931 EOF
10932 if { (eval echo configure:10933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10933   rm -rf conftest*
10934   glibcpp_cv_func___builtin_fabsl_use=yes
10935 else
10936   echo "configure: failed program was:" >&5
10937   cat conftest.$ac_ext >&5
10938   rm -rf conftest*
10939   glibcpp_cv_func___builtin_fabsl_use=no
10940 fi
10941 rm -f conftest*
10942       ac_ext=c
10943 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10944 ac_cpp='$CPP $CPPFLAGS'
10945 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10946 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10947 cross_compiling=$ac_cv_prog_cc_cross
10948
10949     
10950 fi
10951
10952   fi
10953   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
10954   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
10955     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
10956 echo "configure:10957: checking for __builtin_fabsl linkage" >&5
10957     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
10958       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
10959   echo $ac_n "(cached) $ac_c" 1>&6
10960 else
10961   
10962         cat > conftest.$ac_ext <<EOF
10963 #line 10964 "configure"
10964 #include "confdefs.h"
10965 #include <math.h>
10966 int main() {
10967  __builtin_fabsl(0);
10968 ; return 0; }
10969 EOF
10970 if { (eval echo configure:10971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10971   rm -rf conftest*
10972   glibcpp_cv_func___builtin_fabsl_link=yes
10973 else
10974   echo "configure: failed program was:" >&5
10975   cat conftest.$ac_ext >&5
10976   rm -rf conftest*
10977   glibcpp_cv_func___builtin_fabsl_link=no
10978 fi
10979 rm -f conftest*
10980       
10981 fi
10982
10983     fi
10984     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
10985     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
10986       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10987       cat >> confdefs.h <<EOF
10988 #define ${ac_tr_func} 1
10989 EOF
10990
10991     fi
10992   fi
10993
10994   
10995   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
10996 echo "configure:10997: checking for __builtin_labs declaration" >&5
10997   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
10998     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
10999   echo $ac_n "(cached) $ac_c" 1>&6
11000 else
11001   
11002       
11003       ac_ext=C
11004 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11005 ac_cpp='$CXXCPP $CPPFLAGS'
11006 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11007 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11008 cross_compiling=$ac_cv_prog_cxx_cross
11009
11010       cat > conftest.$ac_ext <<EOF
11011 #line 11012 "configure"
11012 #include "confdefs.h"
11013 #include <math.h>
11014 int main() {
11015  __builtin_labs(0);
11016 ; return 0; }
11017 EOF
11018 if { (eval echo configure:11019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11019   rm -rf conftest*
11020   glibcpp_cv_func___builtin_labs_use=yes
11021 else
11022   echo "configure: failed program was:" >&5
11023   cat conftest.$ac_ext >&5
11024   rm -rf conftest*
11025   glibcpp_cv_func___builtin_labs_use=no
11026 fi
11027 rm -f conftest*
11028       ac_ext=c
11029 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11030 ac_cpp='$CPP $CPPFLAGS'
11031 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11032 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11033 cross_compiling=$ac_cv_prog_cc_cross
11034
11035     
11036 fi
11037
11038   fi
11039   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
11040   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
11041     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
11042 echo "configure:11043: checking for __builtin_labs linkage" >&5
11043     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
11044       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
11045   echo $ac_n "(cached) $ac_c" 1>&6
11046 else
11047   
11048         cat > conftest.$ac_ext <<EOF
11049 #line 11050 "configure"
11050 #include "confdefs.h"
11051 #include <math.h>
11052 int main() {
11053  __builtin_labs(0);
11054 ; return 0; }
11055 EOF
11056 if { (eval echo configure:11057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11057   rm -rf conftest*
11058   glibcpp_cv_func___builtin_labs_link=yes
11059 else
11060   echo "configure: failed program was:" >&5
11061   cat conftest.$ac_ext >&5
11062   rm -rf conftest*
11063   glibcpp_cv_func___builtin_labs_link=no
11064 fi
11065 rm -f conftest*
11066       
11067 fi
11068
11069     fi
11070     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
11071     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
11072       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11073       cat >> confdefs.h <<EOF
11074 #define ${ac_tr_func} 1
11075 EOF
11076
11077     fi
11078   fi
11079
11080
11081   
11082   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
11083 echo "configure:11084: checking for __builtin_sqrtf declaration" >&5
11084   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
11085     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
11086   echo $ac_n "(cached) $ac_c" 1>&6
11087 else
11088   
11089       
11090       ac_ext=C
11091 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11092 ac_cpp='$CXXCPP $CPPFLAGS'
11093 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11094 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11095 cross_compiling=$ac_cv_prog_cxx_cross
11096
11097       cat > conftest.$ac_ext <<EOF
11098 #line 11099 "configure"
11099 #include "confdefs.h"
11100 #include <math.h>
11101 int main() {
11102  __builtin_sqrtf(0);
11103 ; return 0; }
11104 EOF
11105 if { (eval echo configure:11106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11106   rm -rf conftest*
11107   glibcpp_cv_func___builtin_sqrtf_use=yes
11108 else
11109   echo "configure: failed program was:" >&5
11110   cat conftest.$ac_ext >&5
11111   rm -rf conftest*
11112   glibcpp_cv_func___builtin_sqrtf_use=no
11113 fi
11114 rm -f conftest*
11115       ac_ext=c
11116 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11117 ac_cpp='$CPP $CPPFLAGS'
11118 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11119 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11120 cross_compiling=$ac_cv_prog_cc_cross
11121
11122     
11123 fi
11124
11125   fi
11126   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
11127   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
11128     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
11129 echo "configure:11130: checking for __builtin_sqrtf linkage" >&5
11130     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
11131       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
11132   echo $ac_n "(cached) $ac_c" 1>&6
11133 else
11134   
11135         cat > conftest.$ac_ext <<EOF
11136 #line 11137 "configure"
11137 #include "confdefs.h"
11138 #include <math.h>
11139 int main() {
11140  __builtin_sqrtf(0);
11141 ; return 0; }
11142 EOF
11143 if { (eval echo configure:11144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11144   rm -rf conftest*
11145   glibcpp_cv_func___builtin_sqrtf_link=yes
11146 else
11147   echo "configure: failed program was:" >&5
11148   cat conftest.$ac_ext >&5
11149   rm -rf conftest*
11150   glibcpp_cv_func___builtin_sqrtf_link=no
11151 fi
11152 rm -f conftest*
11153       
11154 fi
11155
11156     fi
11157     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
11158     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
11159       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11160       cat >> confdefs.h <<EOF
11161 #define ${ac_tr_func} 1
11162 EOF
11163
11164     fi
11165   fi
11166
11167   
11168   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
11169 echo "configure:11170: checking for __builtin_sqrt declaration" >&5
11170   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
11171     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
11172   echo $ac_n "(cached) $ac_c" 1>&6
11173 else
11174   
11175       
11176       ac_ext=C
11177 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11178 ac_cpp='$CXXCPP $CPPFLAGS'
11179 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11180 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11181 cross_compiling=$ac_cv_prog_cxx_cross
11182
11183       cat > conftest.$ac_ext <<EOF
11184 #line 11185 "configure"
11185 #include "confdefs.h"
11186 #include <math.h>
11187 int main() {
11188  __builtin_sqrt(0);
11189 ; return 0; }
11190 EOF
11191 if { (eval echo configure:11192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11192   rm -rf conftest*
11193   glibcpp_cv_func___builtin_sqrt_use=yes
11194 else
11195   echo "configure: failed program was:" >&5
11196   cat conftest.$ac_ext >&5
11197   rm -rf conftest*
11198   glibcpp_cv_func___builtin_sqrt_use=no
11199 fi
11200 rm -f conftest*
11201       ac_ext=c
11202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11203 ac_cpp='$CPP $CPPFLAGS'
11204 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11205 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11206 cross_compiling=$ac_cv_prog_cc_cross
11207
11208     
11209 fi
11210
11211   fi
11212   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
11213   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
11214     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
11215 echo "configure:11216: checking for __builtin_sqrt linkage" >&5
11216     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
11217       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
11218   echo $ac_n "(cached) $ac_c" 1>&6
11219 else
11220   
11221         cat > conftest.$ac_ext <<EOF
11222 #line 11223 "configure"
11223 #include "confdefs.h"
11224 #include <math.h>
11225 int main() {
11226  __builtin_sqrt(0);
11227 ; return 0; }
11228 EOF
11229 if { (eval echo configure:11230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11230   rm -rf conftest*
11231   glibcpp_cv_func___builtin_sqrt_link=yes
11232 else
11233   echo "configure: failed program was:" >&5
11234   cat conftest.$ac_ext >&5
11235   rm -rf conftest*
11236   glibcpp_cv_func___builtin_sqrt_link=no
11237 fi
11238 rm -f conftest*
11239       
11240 fi
11241
11242     fi
11243     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
11244     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
11245       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11246       cat >> confdefs.h <<EOF
11247 #define ${ac_tr_func} 1
11248 EOF
11249
11250     fi
11251   fi
11252
11253   
11254   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
11255 echo "configure:11256: checking for __builtin_sqrtl declaration" >&5
11256   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
11257     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
11258   echo $ac_n "(cached) $ac_c" 1>&6
11259 else
11260   
11261       
11262       ac_ext=C
11263 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11264 ac_cpp='$CXXCPP $CPPFLAGS'
11265 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11266 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11267 cross_compiling=$ac_cv_prog_cxx_cross
11268
11269       cat > conftest.$ac_ext <<EOF
11270 #line 11271 "configure"
11271 #include "confdefs.h"
11272 #include <math.h>
11273 int main() {
11274  __builtin_sqrtl(0);
11275 ; return 0; }
11276 EOF
11277 if { (eval echo configure:11278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11278   rm -rf conftest*
11279   glibcpp_cv_func___builtin_sqrtl_use=yes
11280 else
11281   echo "configure: failed program was:" >&5
11282   cat conftest.$ac_ext >&5
11283   rm -rf conftest*
11284   glibcpp_cv_func___builtin_sqrtl_use=no
11285 fi
11286 rm -f conftest*
11287       ac_ext=c
11288 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11289 ac_cpp='$CPP $CPPFLAGS'
11290 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11291 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11292 cross_compiling=$ac_cv_prog_cc_cross
11293
11294     
11295 fi
11296
11297   fi
11298   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
11299   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
11300     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
11301 echo "configure:11302: checking for __builtin_sqrtl linkage" >&5
11302     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
11303       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
11304   echo $ac_n "(cached) $ac_c" 1>&6
11305 else
11306   
11307         cat > conftest.$ac_ext <<EOF
11308 #line 11309 "configure"
11309 #include "confdefs.h"
11310 #include <math.h>
11311 int main() {
11312  __builtin_sqrtl(0);
11313 ; return 0; }
11314 EOF
11315 if { (eval echo configure:11316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11316   rm -rf conftest*
11317   glibcpp_cv_func___builtin_sqrtl_link=yes
11318 else
11319   echo "configure: failed program was:" >&5
11320   cat conftest.$ac_ext >&5
11321   rm -rf conftest*
11322   glibcpp_cv_func___builtin_sqrtl_link=no
11323 fi
11324 rm -f conftest*
11325       
11326 fi
11327
11328     fi
11329     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
11330     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
11331       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11332       cat >> confdefs.h <<EOF
11333 #define ${ac_tr_func} 1
11334 EOF
11335
11336     fi
11337   fi
11338
11339
11340   
11341   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
11342 echo "configure:11343: checking for __builtin_sinf declaration" >&5
11343   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
11344     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
11345   echo $ac_n "(cached) $ac_c" 1>&6
11346 else
11347   
11348       
11349       ac_ext=C
11350 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11351 ac_cpp='$CXXCPP $CPPFLAGS'
11352 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11353 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11354 cross_compiling=$ac_cv_prog_cxx_cross
11355
11356       cat > conftest.$ac_ext <<EOF
11357 #line 11358 "configure"
11358 #include "confdefs.h"
11359 #include <math.h>
11360 int main() {
11361  __builtin_sinf(0);
11362 ; return 0; }
11363 EOF
11364 if { (eval echo configure:11365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11365   rm -rf conftest*
11366   glibcpp_cv_func___builtin_sinf_use=yes
11367 else
11368   echo "configure: failed program was:" >&5
11369   cat conftest.$ac_ext >&5
11370   rm -rf conftest*
11371   glibcpp_cv_func___builtin_sinf_use=no
11372 fi
11373 rm -f conftest*
11374       ac_ext=c
11375 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11376 ac_cpp='$CPP $CPPFLAGS'
11377 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11378 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11379 cross_compiling=$ac_cv_prog_cc_cross
11380
11381     
11382 fi
11383
11384   fi
11385   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
11386   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
11387     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
11388 echo "configure:11389: checking for __builtin_sinf linkage" >&5
11389     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
11390       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
11391   echo $ac_n "(cached) $ac_c" 1>&6
11392 else
11393   
11394         cat > conftest.$ac_ext <<EOF
11395 #line 11396 "configure"
11396 #include "confdefs.h"
11397 #include <math.h>
11398 int main() {
11399  __builtin_sinf(0);
11400 ; return 0; }
11401 EOF
11402 if { (eval echo configure:11403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11403   rm -rf conftest*
11404   glibcpp_cv_func___builtin_sinf_link=yes
11405 else
11406   echo "configure: failed program was:" >&5
11407   cat conftest.$ac_ext >&5
11408   rm -rf conftest*
11409   glibcpp_cv_func___builtin_sinf_link=no
11410 fi
11411 rm -f conftest*
11412       
11413 fi
11414
11415     fi
11416     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
11417     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
11418       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11419       cat >> confdefs.h <<EOF
11420 #define ${ac_tr_func} 1
11421 EOF
11422
11423     fi
11424   fi
11425
11426   
11427   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
11428 echo "configure:11429: checking for __builtin_sin declaration" >&5
11429   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
11430     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
11431   echo $ac_n "(cached) $ac_c" 1>&6
11432 else
11433   
11434       
11435       ac_ext=C
11436 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11437 ac_cpp='$CXXCPP $CPPFLAGS'
11438 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11439 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11440 cross_compiling=$ac_cv_prog_cxx_cross
11441
11442       cat > conftest.$ac_ext <<EOF
11443 #line 11444 "configure"
11444 #include "confdefs.h"
11445 #include <math.h>
11446 int main() {
11447  __builtin_sin(0);
11448 ; return 0; }
11449 EOF
11450 if { (eval echo configure:11451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11451   rm -rf conftest*
11452   glibcpp_cv_func___builtin_sin_use=yes
11453 else
11454   echo "configure: failed program was:" >&5
11455   cat conftest.$ac_ext >&5
11456   rm -rf conftest*
11457   glibcpp_cv_func___builtin_sin_use=no
11458 fi
11459 rm -f conftest*
11460       ac_ext=c
11461 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11462 ac_cpp='$CPP $CPPFLAGS'
11463 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11464 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11465 cross_compiling=$ac_cv_prog_cc_cross
11466
11467     
11468 fi
11469
11470   fi
11471   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
11472   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
11473     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
11474 echo "configure:11475: checking for __builtin_sin linkage" >&5
11475     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
11476       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
11477   echo $ac_n "(cached) $ac_c" 1>&6
11478 else
11479   
11480         cat > conftest.$ac_ext <<EOF
11481 #line 11482 "configure"
11482 #include "confdefs.h"
11483 #include <math.h>
11484 int main() {
11485  __builtin_sin(0);
11486 ; return 0; }
11487 EOF
11488 if { (eval echo configure:11489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11489   rm -rf conftest*
11490   glibcpp_cv_func___builtin_sin_link=yes
11491 else
11492   echo "configure: failed program was:" >&5
11493   cat conftest.$ac_ext >&5
11494   rm -rf conftest*
11495   glibcpp_cv_func___builtin_sin_link=no
11496 fi
11497 rm -f conftest*
11498       
11499 fi
11500
11501     fi
11502     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
11503     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
11504       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11505       cat >> confdefs.h <<EOF
11506 #define ${ac_tr_func} 1
11507 EOF
11508
11509     fi
11510   fi
11511
11512   
11513   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
11514 echo "configure:11515: checking for __builtin_sinl declaration" >&5
11515   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
11516     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
11517   echo $ac_n "(cached) $ac_c" 1>&6
11518 else
11519   
11520       
11521       ac_ext=C
11522 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11523 ac_cpp='$CXXCPP $CPPFLAGS'
11524 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11525 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11526 cross_compiling=$ac_cv_prog_cxx_cross
11527
11528       cat > conftest.$ac_ext <<EOF
11529 #line 11530 "configure"
11530 #include "confdefs.h"
11531 #include <math.h>
11532 int main() {
11533  __builtin_sinl(0);
11534 ; return 0; }
11535 EOF
11536 if { (eval echo configure:11537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11537   rm -rf conftest*
11538   glibcpp_cv_func___builtin_sinl_use=yes
11539 else
11540   echo "configure: failed program was:" >&5
11541   cat conftest.$ac_ext >&5
11542   rm -rf conftest*
11543   glibcpp_cv_func___builtin_sinl_use=no
11544 fi
11545 rm -f conftest*
11546       ac_ext=c
11547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11548 ac_cpp='$CPP $CPPFLAGS'
11549 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11550 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11551 cross_compiling=$ac_cv_prog_cc_cross
11552
11553     
11554 fi
11555
11556   fi
11557   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
11558   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
11559     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
11560 echo "configure:11561: checking for __builtin_sinl linkage" >&5
11561     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
11562       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
11563   echo $ac_n "(cached) $ac_c" 1>&6
11564 else
11565   
11566         cat > conftest.$ac_ext <<EOF
11567 #line 11568 "configure"
11568 #include "confdefs.h"
11569 #include <math.h>
11570 int main() {
11571  __builtin_sinl(0);
11572 ; return 0; }
11573 EOF
11574 if { (eval echo configure:11575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11575   rm -rf conftest*
11576   glibcpp_cv_func___builtin_sinl_link=yes
11577 else
11578   echo "configure: failed program was:" >&5
11579   cat conftest.$ac_ext >&5
11580   rm -rf conftest*
11581   glibcpp_cv_func___builtin_sinl_link=no
11582 fi
11583 rm -f conftest*
11584       
11585 fi
11586
11587     fi
11588     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
11589     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
11590       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11591       cat >> confdefs.h <<EOF
11592 #define ${ac_tr_func} 1
11593 EOF
11594
11595     fi
11596   fi
11597
11598
11599   
11600   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
11601 echo "configure:11602: checking for __builtin_cosf declaration" >&5
11602   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
11603     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
11604   echo $ac_n "(cached) $ac_c" 1>&6
11605 else
11606   
11607       
11608       ac_ext=C
11609 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11610 ac_cpp='$CXXCPP $CPPFLAGS'
11611 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11612 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11613 cross_compiling=$ac_cv_prog_cxx_cross
11614
11615       cat > conftest.$ac_ext <<EOF
11616 #line 11617 "configure"
11617 #include "confdefs.h"
11618 #include <math.h>
11619 int main() {
11620  __builtin_cosf(0);
11621 ; return 0; }
11622 EOF
11623 if { (eval echo configure:11624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11624   rm -rf conftest*
11625   glibcpp_cv_func___builtin_cosf_use=yes
11626 else
11627   echo "configure: failed program was:" >&5
11628   cat conftest.$ac_ext >&5
11629   rm -rf conftest*
11630   glibcpp_cv_func___builtin_cosf_use=no
11631 fi
11632 rm -f conftest*
11633       ac_ext=c
11634 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11635 ac_cpp='$CPP $CPPFLAGS'
11636 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11637 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11638 cross_compiling=$ac_cv_prog_cc_cross
11639
11640     
11641 fi
11642
11643   fi
11644   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
11645   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
11646     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
11647 echo "configure:11648: checking for __builtin_cosf linkage" >&5
11648     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
11649       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
11650   echo $ac_n "(cached) $ac_c" 1>&6
11651 else
11652   
11653         cat > conftest.$ac_ext <<EOF
11654 #line 11655 "configure"
11655 #include "confdefs.h"
11656 #include <math.h>
11657 int main() {
11658  __builtin_cosf(0);
11659 ; return 0; }
11660 EOF
11661 if { (eval echo configure:11662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11662   rm -rf conftest*
11663   glibcpp_cv_func___builtin_cosf_link=yes
11664 else
11665   echo "configure: failed program was:" >&5
11666   cat conftest.$ac_ext >&5
11667   rm -rf conftest*
11668   glibcpp_cv_func___builtin_cosf_link=no
11669 fi
11670 rm -f conftest*
11671       
11672 fi
11673
11674     fi
11675     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
11676     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
11677       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11678       cat >> confdefs.h <<EOF
11679 #define ${ac_tr_func} 1
11680 EOF
11681
11682     fi
11683   fi
11684
11685   
11686   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
11687 echo "configure:11688: checking for __builtin_cos declaration" >&5
11688   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
11689     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
11690   echo $ac_n "(cached) $ac_c" 1>&6
11691 else
11692   
11693       
11694       ac_ext=C
11695 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11696 ac_cpp='$CXXCPP $CPPFLAGS'
11697 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11698 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11699 cross_compiling=$ac_cv_prog_cxx_cross
11700
11701       cat > conftest.$ac_ext <<EOF
11702 #line 11703 "configure"
11703 #include "confdefs.h"
11704 #include <math.h>
11705 int main() {
11706  __builtin_cos(0);
11707 ; return 0; }
11708 EOF
11709 if { (eval echo configure:11710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11710   rm -rf conftest*
11711   glibcpp_cv_func___builtin_cos_use=yes
11712 else
11713   echo "configure: failed program was:" >&5
11714   cat conftest.$ac_ext >&5
11715   rm -rf conftest*
11716   glibcpp_cv_func___builtin_cos_use=no
11717 fi
11718 rm -f conftest*
11719       ac_ext=c
11720 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11721 ac_cpp='$CPP $CPPFLAGS'
11722 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11723 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11724 cross_compiling=$ac_cv_prog_cc_cross
11725
11726     
11727 fi
11728
11729   fi
11730   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
11731   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
11732     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
11733 echo "configure:11734: checking for __builtin_cos linkage" >&5
11734     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
11735       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
11736   echo $ac_n "(cached) $ac_c" 1>&6
11737 else
11738   
11739         cat > conftest.$ac_ext <<EOF
11740 #line 11741 "configure"
11741 #include "confdefs.h"
11742 #include <math.h>
11743 int main() {
11744  __builtin_cos(0);
11745 ; return 0; }
11746 EOF
11747 if { (eval echo configure:11748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11748   rm -rf conftest*
11749   glibcpp_cv_func___builtin_cos_link=yes
11750 else
11751   echo "configure: failed program was:" >&5
11752   cat conftest.$ac_ext >&5
11753   rm -rf conftest*
11754   glibcpp_cv_func___builtin_cos_link=no
11755 fi
11756 rm -f conftest*
11757       
11758 fi
11759
11760     fi
11761     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
11762     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
11763       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11764       cat >> confdefs.h <<EOF
11765 #define ${ac_tr_func} 1
11766 EOF
11767
11768     fi
11769   fi
11770
11771   
11772   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
11773 echo "configure:11774: checking for __builtin_cosl declaration" >&5
11774   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
11775     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
11776   echo $ac_n "(cached) $ac_c" 1>&6
11777 else
11778   
11779       
11780       ac_ext=C
11781 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11782 ac_cpp='$CXXCPP $CPPFLAGS'
11783 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11784 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11785 cross_compiling=$ac_cv_prog_cxx_cross
11786
11787       cat > conftest.$ac_ext <<EOF
11788 #line 11789 "configure"
11789 #include "confdefs.h"
11790 #include <math.h>
11791 int main() {
11792  __builtin_cosl(0);
11793 ; return 0; }
11794 EOF
11795 if { (eval echo configure:11796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11796   rm -rf conftest*
11797   glibcpp_cv_func___builtin_cosl_use=yes
11798 else
11799   echo "configure: failed program was:" >&5
11800   cat conftest.$ac_ext >&5
11801   rm -rf conftest*
11802   glibcpp_cv_func___builtin_cosl_use=no
11803 fi
11804 rm -f conftest*
11805       ac_ext=c
11806 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11807 ac_cpp='$CPP $CPPFLAGS'
11808 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11809 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11810 cross_compiling=$ac_cv_prog_cc_cross
11811
11812     
11813 fi
11814
11815   fi
11816   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
11817   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
11818     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
11819 echo "configure:11820: checking for __builtin_cosl linkage" >&5
11820     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
11821       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
11822   echo $ac_n "(cached) $ac_c" 1>&6
11823 else
11824   
11825         cat > conftest.$ac_ext <<EOF
11826 #line 11827 "configure"
11827 #include "confdefs.h"
11828 #include <math.h>
11829 int main() {
11830  __builtin_cosl(0);
11831 ; return 0; }
11832 EOF
11833 if { (eval echo configure:11834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11834   rm -rf conftest*
11835   glibcpp_cv_func___builtin_cosl_link=yes
11836 else
11837   echo "configure: failed program was:" >&5
11838   cat conftest.$ac_ext >&5
11839   rm -rf conftest*
11840   glibcpp_cv_func___builtin_cosl_link=no
11841 fi
11842 rm -f conftest*
11843       
11844 fi
11845
11846     fi
11847     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
11848     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
11849       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11850       cat >> confdefs.h <<EOF
11851 #define ${ac_tr_func} 1
11852 EOF
11853
11854     fi
11855   fi
11856
11857
11858               dummyvar=no
11859   if test x$dummyvar = x"yes"; then
11860     cat >> confdefs.h <<\EOF
11861 #define HAVE___BUILTIN_ABS 1
11862 EOF
11863
11864     cat >> confdefs.h <<\EOF
11865 #define HAVE___BUILTIN_LABS 1
11866 EOF
11867
11868     cat >> confdefs.h <<\EOF
11869 #define HAVE___BUILTIN_COS 1
11870 EOF
11871
11872     cat >> confdefs.h <<\EOF
11873 #define HAVE___BUILTIN_COSF 1
11874 EOF
11875
11876     cat >> confdefs.h <<\EOF
11877 #define HAVE___BUILTIN_COSL 1
11878 EOF
11879
11880     cat >> confdefs.h <<\EOF
11881 #define HAVE___BUILTIN_FABS 1
11882 EOF
11883
11884     cat >> confdefs.h <<\EOF
11885 #define HAVE___BUILTIN_FABSF 1
11886 EOF
11887
11888     cat >> confdefs.h <<\EOF
11889 #define HAVE___BUILTIN_FABSL 1
11890 EOF
11891
11892     cat >> confdefs.h <<\EOF
11893 #define HAVE___BUILTIN_SIN 1
11894 EOF
11895
11896     cat >> confdefs.h <<\EOF
11897 #define HAVE___BUILTIN_SINF 1
11898 EOF
11899
11900     cat >> confdefs.h <<\EOF
11901 #define HAVE___BUILTIN_SINL 1
11902 EOF
11903
11904     cat >> confdefs.h <<\EOF
11905 #define HAVE___BUILTIN_SQRT 1
11906 EOF
11907
11908     cat >> confdefs.h <<\EOF
11909 #define HAVE___BUILTIN_SQRTF 1
11910 EOF
11911
11912     cat >> confdefs.h <<\EOF
11913 #define HAVE___BUILTIN_SQRTL 1
11914 EOF
11915
11916   fi
11917
11918   
11919   ac_test_CXXFLAGS="${CXXFLAGS+set}"
11920   ac_save_CXXFLAGS="$CXXFLAGS"
11921   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
11922
11923     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
11924 echo "configure:11925: checking for sin in -lm" >&5
11925 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
11926 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11927   echo $ac_n "(cached) $ac_c" 1>&6
11928 else
11929   ac_save_LIBS="$LIBS"
11930 LIBS="-lm  $LIBS"
11931 cat > conftest.$ac_ext <<EOF
11932 #line 11933 "configure"
11933 #include "confdefs.h"
11934 /* Override any gcc2 internal prototype to avoid an error.  */
11935 /* We use char because int might match the return type of a gcc2
11936     builtin and then its argument prototype would still apply.  */
11937 char sin();
11938
11939 int main() {
11940 sin()
11941 ; return 0; }
11942 EOF
11943 if { (eval echo configure:11944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11944   rm -rf conftest*
11945   eval "ac_cv_lib_$ac_lib_var=yes"
11946 else
11947   echo "configure: failed program was:" >&5
11948   cat conftest.$ac_ext >&5
11949   rm -rf conftest*
11950   eval "ac_cv_lib_$ac_lib_var=no"
11951 fi
11952 rm -f conftest*
11953 LIBS="$ac_save_LIBS"
11954
11955 fi
11956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11957   echo "$ac_t""yes" 1>&6
11958   libm="-lm"
11959 else
11960   echo "$ac_t""no" 1>&6
11961 fi
11962
11963   ac_save_LIBS="$LIBS"
11964   LIBS="$LIBS $libm"
11965
11966     
11967   
11968   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
11969 echo "configure:11970: checking for isinf declaration" >&5
11970   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
11971     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
11972   echo $ac_n "(cached) $ac_c" 1>&6
11973 else
11974   
11975       
11976       ac_ext=C
11977 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11978 ac_cpp='$CXXCPP $CPPFLAGS'
11979 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11980 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11981 cross_compiling=$ac_cv_prog_cxx_cross
11982
11983       cat > conftest.$ac_ext <<EOF
11984 #line 11985 "configure"
11985 #include "confdefs.h"
11986 #include <math.h>
11987                       #ifdef HAVE_IEEEFP_H
11988                       #include <ieeefp.h>
11989                       #endif
11990                      
11991 int main() {
11992  isinf(0);
11993 ; return 0; }
11994 EOF
11995 if { (eval echo configure:11996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11996   rm -rf conftest*
11997   glibcpp_cv_func_isinf_use=yes
11998 else
11999   echo "configure: failed program was:" >&5
12000   cat conftest.$ac_ext >&5
12001   rm -rf conftest*
12002   glibcpp_cv_func_isinf_use=no
12003 fi
12004 rm -f conftest*
12005       ac_ext=c
12006 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12007 ac_cpp='$CPP $CPPFLAGS'
12008 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12009 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12010 cross_compiling=$ac_cv_prog_cc_cross
12011
12012     
12013 fi
12014
12015   fi
12016   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
12017
12018   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
12019     for ac_func in isinf
12020 do
12021 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12022 echo "configure:12023: checking for $ac_func" >&5
12023 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12024   echo $ac_n "(cached) $ac_c" 1>&6
12025 else
12026   cat > conftest.$ac_ext <<EOF
12027 #line 12028 "configure"
12028 #include "confdefs.h"
12029 /* System header to define __stub macros and hopefully few prototypes,
12030     which can conflict with char $ac_func(); below.  */
12031 #include <assert.h>
12032 /* Override any gcc2 internal prototype to avoid an error.  */
12033 /* We use char because int might match the return type of a gcc2
12034     builtin and then its argument prototype would still apply.  */
12035 char $ac_func();
12036
12037 int main() {
12038
12039 /* The GNU C library defines this for functions which it implements
12040     to always fail with ENOSYS.  Some functions are actually named
12041     something starting with __ and the normal name is an alias.  */
12042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12043 choke me
12044 #else
12045 $ac_func();
12046 #endif
12047
12048 ; return 0; }
12049 EOF
12050 if { (eval echo configure:12051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12051   rm -rf conftest*
12052   eval "ac_cv_func_$ac_func=yes"
12053 else
12054   echo "configure: failed program was:" >&5
12055   cat conftest.$ac_ext >&5
12056   rm -rf conftest*
12057   eval "ac_cv_func_$ac_func=no"
12058 fi
12059 rm -f conftest*
12060 fi
12061
12062 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12063   echo "$ac_t""yes" 1>&6
12064     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12065   cat >> confdefs.h <<EOF
12066 #define $ac_tr_func 1
12067 EOF
12068  
12069 else
12070   echo "$ac_t""no" 1>&6
12071 fi
12072 done
12073     
12074   else
12075     
12076   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
12077 echo "configure:12078: checking for _isinf declaration" >&5
12078   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
12079     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
12080   echo $ac_n "(cached) $ac_c" 1>&6
12081 else
12082   
12083       
12084       ac_ext=C
12085 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12086 ac_cpp='$CXXCPP $CPPFLAGS'
12087 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12088 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12089 cross_compiling=$ac_cv_prog_cxx_cross
12090
12091       cat > conftest.$ac_ext <<EOF
12092 #line 12093 "configure"
12093 #include "confdefs.h"
12094 #include <math.h>
12095                       #ifdef HAVE_IEEEFP_H
12096                       #include <ieeefp.h>
12097                       #endif
12098                      
12099 int main() {
12100  _isinf(0);
12101 ; return 0; }
12102 EOF
12103 if { (eval echo configure:12104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12104   rm -rf conftest*
12105   glibcpp_cv_func__isinf_use=yes
12106 else
12107   echo "configure: failed program was:" >&5
12108   cat conftest.$ac_ext >&5
12109   rm -rf conftest*
12110   glibcpp_cv_func__isinf_use=no
12111 fi
12112 rm -f conftest*
12113       ac_ext=c
12114 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12115 ac_cpp='$CPP $CPPFLAGS'
12116 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12117 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12118 cross_compiling=$ac_cv_prog_cc_cross
12119
12120     
12121 fi
12122
12123   fi
12124   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
12125
12126     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
12127       for ac_func in _isinf
12128 do
12129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12130 echo "configure:12131: checking for $ac_func" >&5
12131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12132   echo $ac_n "(cached) $ac_c" 1>&6
12133 else
12134   cat > conftest.$ac_ext <<EOF
12135 #line 12136 "configure"
12136 #include "confdefs.h"
12137 /* System header to define __stub macros and hopefully few prototypes,
12138     which can conflict with char $ac_func(); below.  */
12139 #include <assert.h>
12140 /* Override any gcc2 internal prototype to avoid an error.  */
12141 /* We use char because int might match the return type of a gcc2
12142     builtin and then its argument prototype would still apply.  */
12143 char $ac_func();
12144
12145 int main() {
12146
12147 /* The GNU C library defines this for functions which it implements
12148     to always fail with ENOSYS.  Some functions are actually named
12149     something starting with __ and the normal name is an alias.  */
12150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12151 choke me
12152 #else
12153 $ac_func();
12154 #endif
12155
12156 ; return 0; }
12157 EOF
12158 if { (eval echo configure:12159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12159   rm -rf conftest*
12160   eval "ac_cv_func_$ac_func=yes"
12161 else
12162   echo "configure: failed program was:" >&5
12163   cat conftest.$ac_ext >&5
12164   rm -rf conftest*
12165   eval "ac_cv_func_$ac_func=no"
12166 fi
12167 rm -f conftest*
12168 fi
12169
12170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12171   echo "$ac_t""yes" 1>&6
12172     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12173   cat >> confdefs.h <<EOF
12174 #define $ac_tr_func 1
12175 EOF
12176  
12177 else
12178   echo "$ac_t""no" 1>&6
12179 fi
12180 done
12181     
12182     fi
12183   fi
12184
12185   
12186   
12187   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
12188 echo "configure:12189: checking for isnan declaration" >&5
12189   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
12190     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
12191   echo $ac_n "(cached) $ac_c" 1>&6
12192 else
12193   
12194       
12195       ac_ext=C
12196 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12197 ac_cpp='$CXXCPP $CPPFLAGS'
12198 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12199 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12200 cross_compiling=$ac_cv_prog_cxx_cross
12201
12202       cat > conftest.$ac_ext <<EOF
12203 #line 12204 "configure"
12204 #include "confdefs.h"
12205 #include <math.h>
12206                       #ifdef HAVE_IEEEFP_H
12207                       #include <ieeefp.h>
12208                       #endif
12209                      
12210 int main() {
12211  isnan(0);
12212 ; return 0; }
12213 EOF
12214 if { (eval echo configure:12215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12215   rm -rf conftest*
12216   glibcpp_cv_func_isnan_use=yes
12217 else
12218   echo "configure: failed program was:" >&5
12219   cat conftest.$ac_ext >&5
12220   rm -rf conftest*
12221   glibcpp_cv_func_isnan_use=no
12222 fi
12223 rm -f conftest*
12224       ac_ext=c
12225 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12226 ac_cpp='$CPP $CPPFLAGS'
12227 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12228 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12229 cross_compiling=$ac_cv_prog_cc_cross
12230
12231     
12232 fi
12233
12234   fi
12235   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
12236
12237   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
12238     for ac_func in isnan
12239 do
12240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12241 echo "configure:12242: checking for $ac_func" >&5
12242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12243   echo $ac_n "(cached) $ac_c" 1>&6
12244 else
12245   cat > conftest.$ac_ext <<EOF
12246 #line 12247 "configure"
12247 #include "confdefs.h"
12248 /* System header to define __stub macros and hopefully few prototypes,
12249     which can conflict with char $ac_func(); below.  */
12250 #include <assert.h>
12251 /* Override any gcc2 internal prototype to avoid an error.  */
12252 /* We use char because int might match the return type of a gcc2
12253     builtin and then its argument prototype would still apply.  */
12254 char $ac_func();
12255
12256 int main() {
12257
12258 /* The GNU C library defines this for functions which it implements
12259     to always fail with ENOSYS.  Some functions are actually named
12260     something starting with __ and the normal name is an alias.  */
12261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12262 choke me
12263 #else
12264 $ac_func();
12265 #endif
12266
12267 ; return 0; }
12268 EOF
12269 if { (eval echo configure:12270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12270   rm -rf conftest*
12271   eval "ac_cv_func_$ac_func=yes"
12272 else
12273   echo "configure: failed program was:" >&5
12274   cat conftest.$ac_ext >&5
12275   rm -rf conftest*
12276   eval "ac_cv_func_$ac_func=no"
12277 fi
12278 rm -f conftest*
12279 fi
12280
12281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12282   echo "$ac_t""yes" 1>&6
12283     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12284   cat >> confdefs.h <<EOF
12285 #define $ac_tr_func 1
12286 EOF
12287  
12288 else
12289   echo "$ac_t""no" 1>&6
12290 fi
12291 done
12292     
12293   else
12294     
12295   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
12296 echo "configure:12297: checking for _isnan declaration" >&5
12297   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
12298     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
12299   echo $ac_n "(cached) $ac_c" 1>&6
12300 else
12301   
12302       
12303       ac_ext=C
12304 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12305 ac_cpp='$CXXCPP $CPPFLAGS'
12306 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12307 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12308 cross_compiling=$ac_cv_prog_cxx_cross
12309
12310       cat > conftest.$ac_ext <<EOF
12311 #line 12312 "configure"
12312 #include "confdefs.h"
12313 #include <math.h>
12314                       #ifdef HAVE_IEEEFP_H
12315                       #include <ieeefp.h>
12316                       #endif
12317                      
12318 int main() {
12319  _isnan(0);
12320 ; return 0; }
12321 EOF
12322 if { (eval echo configure:12323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12323   rm -rf conftest*
12324   glibcpp_cv_func__isnan_use=yes
12325 else
12326   echo "configure: failed program was:" >&5
12327   cat conftest.$ac_ext >&5
12328   rm -rf conftest*
12329   glibcpp_cv_func__isnan_use=no
12330 fi
12331 rm -f conftest*
12332       ac_ext=c
12333 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12334 ac_cpp='$CPP $CPPFLAGS'
12335 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12336 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12337 cross_compiling=$ac_cv_prog_cc_cross
12338
12339     
12340 fi
12341
12342   fi
12343   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
12344
12345     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
12346       for ac_func in _isnan
12347 do
12348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12349 echo "configure:12350: checking for $ac_func" >&5
12350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12351   echo $ac_n "(cached) $ac_c" 1>&6
12352 else
12353   cat > conftest.$ac_ext <<EOF
12354 #line 12355 "configure"
12355 #include "confdefs.h"
12356 /* System header to define __stub macros and hopefully few prototypes,
12357     which can conflict with char $ac_func(); below.  */
12358 #include <assert.h>
12359 /* Override any gcc2 internal prototype to avoid an error.  */
12360 /* We use char because int might match the return type of a gcc2
12361     builtin and then its argument prototype would still apply.  */
12362 char $ac_func();
12363
12364 int main() {
12365
12366 /* The GNU C library defines this for functions which it implements
12367     to always fail with ENOSYS.  Some functions are actually named
12368     something starting with __ and the normal name is an alias.  */
12369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12370 choke me
12371 #else
12372 $ac_func();
12373 #endif
12374
12375 ; return 0; }
12376 EOF
12377 if { (eval echo configure:12378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12378   rm -rf conftest*
12379   eval "ac_cv_func_$ac_func=yes"
12380 else
12381   echo "configure: failed program was:" >&5
12382   cat conftest.$ac_ext >&5
12383   rm -rf conftest*
12384   eval "ac_cv_func_$ac_func=no"
12385 fi
12386 rm -f conftest*
12387 fi
12388
12389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12390   echo "$ac_t""yes" 1>&6
12391     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12392   cat >> confdefs.h <<EOF
12393 #define $ac_tr_func 1
12394 EOF
12395  
12396 else
12397   echo "$ac_t""no" 1>&6
12398 fi
12399 done
12400     
12401     fi
12402   fi
12403
12404   
12405   
12406   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
12407 echo "configure:12408: checking for finite declaration" >&5
12408   if test x${glibcpp_cv_func_finite_use+set} != xset; then
12409     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
12410   echo $ac_n "(cached) $ac_c" 1>&6
12411 else
12412   
12413       
12414       ac_ext=C
12415 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12416 ac_cpp='$CXXCPP $CPPFLAGS'
12417 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12418 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12419 cross_compiling=$ac_cv_prog_cxx_cross
12420
12421       cat > conftest.$ac_ext <<EOF
12422 #line 12423 "configure"
12423 #include "confdefs.h"
12424 #include <math.h>
12425                       #ifdef HAVE_IEEEFP_H
12426                       #include <ieeefp.h>
12427                       #endif
12428                      
12429 int main() {
12430  finite(0);
12431 ; return 0; }
12432 EOF
12433 if { (eval echo configure:12434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12434   rm -rf conftest*
12435   glibcpp_cv_func_finite_use=yes
12436 else
12437   echo "configure: failed program was:" >&5
12438   cat conftest.$ac_ext >&5
12439   rm -rf conftest*
12440   glibcpp_cv_func_finite_use=no
12441 fi
12442 rm -f conftest*
12443       ac_ext=c
12444 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12445 ac_cpp='$CPP $CPPFLAGS'
12446 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12447 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12448 cross_compiling=$ac_cv_prog_cc_cross
12449
12450     
12451 fi
12452
12453   fi
12454   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
12455
12456   if test x$glibcpp_cv_func_finite_use = x"yes"; then
12457     for ac_func in finite
12458 do
12459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12460 echo "configure:12461: checking for $ac_func" >&5
12461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12462   echo $ac_n "(cached) $ac_c" 1>&6
12463 else
12464   cat > conftest.$ac_ext <<EOF
12465 #line 12466 "configure"
12466 #include "confdefs.h"
12467 /* System header to define __stub macros and hopefully few prototypes,
12468     which can conflict with char $ac_func(); below.  */
12469 #include <assert.h>
12470 /* Override any gcc2 internal prototype to avoid an error.  */
12471 /* We use char because int might match the return type of a gcc2
12472     builtin and then its argument prototype would still apply.  */
12473 char $ac_func();
12474
12475 int main() {
12476
12477 /* The GNU C library defines this for functions which it implements
12478     to always fail with ENOSYS.  Some functions are actually named
12479     something starting with __ and the normal name is an alias.  */
12480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12481 choke me
12482 #else
12483 $ac_func();
12484 #endif
12485
12486 ; return 0; }
12487 EOF
12488 if { (eval echo configure:12489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12489   rm -rf conftest*
12490   eval "ac_cv_func_$ac_func=yes"
12491 else
12492   echo "configure: failed program was:" >&5
12493   cat conftest.$ac_ext >&5
12494   rm -rf conftest*
12495   eval "ac_cv_func_$ac_func=no"
12496 fi
12497 rm -f conftest*
12498 fi
12499
12500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12501   echo "$ac_t""yes" 1>&6
12502     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12503   cat >> confdefs.h <<EOF
12504 #define $ac_tr_func 1
12505 EOF
12506  
12507 else
12508   echo "$ac_t""no" 1>&6
12509 fi
12510 done
12511     
12512   else
12513     
12514   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
12515 echo "configure:12516: checking for _finite declaration" >&5
12516   if test x${glibcpp_cv_func__finite_use+set} != xset; then
12517     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
12518   echo $ac_n "(cached) $ac_c" 1>&6
12519 else
12520   
12521       
12522       ac_ext=C
12523 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12524 ac_cpp='$CXXCPP $CPPFLAGS'
12525 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12526 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12527 cross_compiling=$ac_cv_prog_cxx_cross
12528
12529       cat > conftest.$ac_ext <<EOF
12530 #line 12531 "configure"
12531 #include "confdefs.h"
12532 #include <math.h>
12533                       #ifdef HAVE_IEEEFP_H
12534                       #include <ieeefp.h>
12535                       #endif
12536                      
12537 int main() {
12538  _finite(0);
12539 ; return 0; }
12540 EOF
12541 if { (eval echo configure:12542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12542   rm -rf conftest*
12543   glibcpp_cv_func__finite_use=yes
12544 else
12545   echo "configure: failed program was:" >&5
12546   cat conftest.$ac_ext >&5
12547   rm -rf conftest*
12548   glibcpp_cv_func__finite_use=no
12549 fi
12550 rm -f conftest*
12551       ac_ext=c
12552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12553 ac_cpp='$CPP $CPPFLAGS'
12554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12556 cross_compiling=$ac_cv_prog_cc_cross
12557
12558     
12559 fi
12560
12561   fi
12562   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
12563
12564     if test x$glibcpp_cv_func__finite_use = x"yes"; then
12565       for ac_func in _finite
12566 do
12567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12568 echo "configure:12569: checking for $ac_func" >&5
12569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12570   echo $ac_n "(cached) $ac_c" 1>&6
12571 else
12572   cat > conftest.$ac_ext <<EOF
12573 #line 12574 "configure"
12574 #include "confdefs.h"
12575 /* System header to define __stub macros and hopefully few prototypes,
12576     which can conflict with char $ac_func(); below.  */
12577 #include <assert.h>
12578 /* Override any gcc2 internal prototype to avoid an error.  */
12579 /* We use char because int might match the return type of a gcc2
12580     builtin and then its argument prototype would still apply.  */
12581 char $ac_func();
12582
12583 int main() {
12584
12585 /* The GNU C library defines this for functions which it implements
12586     to always fail with ENOSYS.  Some functions are actually named
12587     something starting with __ and the normal name is an alias.  */
12588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12589 choke me
12590 #else
12591 $ac_func();
12592 #endif
12593
12594 ; return 0; }
12595 EOF
12596 if { (eval echo configure:12597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12597   rm -rf conftest*
12598   eval "ac_cv_func_$ac_func=yes"
12599 else
12600   echo "configure: failed program was:" >&5
12601   cat conftest.$ac_ext >&5
12602   rm -rf conftest*
12603   eval "ac_cv_func_$ac_func=no"
12604 fi
12605 rm -f conftest*
12606 fi
12607
12608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12609   echo "$ac_t""yes" 1>&6
12610     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12611   cat >> confdefs.h <<EOF
12612 #define $ac_tr_func 1
12613 EOF
12614  
12615 else
12616   echo "$ac_t""no" 1>&6
12617 fi
12618 done
12619     
12620     fi
12621   fi
12622
12623   
12624   
12625   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
12626 echo "configure:12627: checking for copysign declaration" >&5
12627   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
12628     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
12629   echo $ac_n "(cached) $ac_c" 1>&6
12630 else
12631   
12632       
12633       ac_ext=C
12634 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12635 ac_cpp='$CXXCPP $CPPFLAGS'
12636 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12637 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12638 cross_compiling=$ac_cv_prog_cxx_cross
12639
12640       cat > conftest.$ac_ext <<EOF
12641 #line 12642 "configure"
12642 #include "confdefs.h"
12643 #include <math.h>
12644 int main() {
12645  copysign(0, 0);
12646 ; return 0; }
12647 EOF
12648 if { (eval echo configure:12649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12649   rm -rf conftest*
12650   glibcpp_cv_func_copysign_use=yes
12651 else
12652   echo "configure: failed program was:" >&5
12653   cat conftest.$ac_ext >&5
12654   rm -rf conftest*
12655   glibcpp_cv_func_copysign_use=no
12656 fi
12657 rm -f conftest*
12658       ac_ext=c
12659 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12660 ac_cpp='$CPP $CPPFLAGS'
12661 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12662 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12663 cross_compiling=$ac_cv_prog_cc_cross
12664
12665     
12666 fi
12667
12668   fi
12669   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
12670
12671   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
12672     for ac_func in copysign
12673 do
12674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12675 echo "configure:12676: checking for $ac_func" >&5
12676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12677   echo $ac_n "(cached) $ac_c" 1>&6
12678 else
12679   cat > conftest.$ac_ext <<EOF
12680 #line 12681 "configure"
12681 #include "confdefs.h"
12682 /* System header to define __stub macros and hopefully few prototypes,
12683     which can conflict with char $ac_func(); below.  */
12684 #include <assert.h>
12685 /* Override any gcc2 internal prototype to avoid an error.  */
12686 /* We use char because int might match the return type of a gcc2
12687     builtin and then its argument prototype would still apply.  */
12688 char $ac_func();
12689
12690 int main() {
12691
12692 /* The GNU C library defines this for functions which it implements
12693     to always fail with ENOSYS.  Some functions are actually named
12694     something starting with __ and the normal name is an alias.  */
12695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12696 choke me
12697 #else
12698 $ac_func();
12699 #endif
12700
12701 ; return 0; }
12702 EOF
12703 if { (eval echo configure:12704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12704   rm -rf conftest*
12705   eval "ac_cv_func_$ac_func=yes"
12706 else
12707   echo "configure: failed program was:" >&5
12708   cat conftest.$ac_ext >&5
12709   rm -rf conftest*
12710   eval "ac_cv_func_$ac_func=no"
12711 fi
12712 rm -f conftest*
12713 fi
12714
12715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12716   echo "$ac_t""yes" 1>&6
12717     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12718   cat >> confdefs.h <<EOF
12719 #define $ac_tr_func 1
12720 EOF
12721  
12722 else
12723   echo "$ac_t""no" 1>&6
12724 fi
12725 done
12726     
12727   else
12728     
12729   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
12730 echo "configure:12731: checking for _copysign declaration" >&5
12731   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
12732     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
12733   echo $ac_n "(cached) $ac_c" 1>&6
12734 else
12735   
12736       
12737       ac_ext=C
12738 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12739 ac_cpp='$CXXCPP $CPPFLAGS'
12740 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12741 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12742 cross_compiling=$ac_cv_prog_cxx_cross
12743
12744       cat > conftest.$ac_ext <<EOF
12745 #line 12746 "configure"
12746 #include "confdefs.h"
12747 #include <math.h>
12748 int main() {
12749  _copysign(0, 0);
12750 ; return 0; }
12751 EOF
12752 if { (eval echo configure:12753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12753   rm -rf conftest*
12754   glibcpp_cv_func__copysign_use=yes
12755 else
12756   echo "configure: failed program was:" >&5
12757   cat conftest.$ac_ext >&5
12758   rm -rf conftest*
12759   glibcpp_cv_func__copysign_use=no
12760 fi
12761 rm -f conftest*
12762       ac_ext=c
12763 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12764 ac_cpp='$CPP $CPPFLAGS'
12765 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12766 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12767 cross_compiling=$ac_cv_prog_cc_cross
12768
12769     
12770 fi
12771
12772   fi
12773   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
12774
12775     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
12776       for ac_func in _copysign
12777 do
12778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12779 echo "configure:12780: checking for $ac_func" >&5
12780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12781   echo $ac_n "(cached) $ac_c" 1>&6
12782 else
12783   cat > conftest.$ac_ext <<EOF
12784 #line 12785 "configure"
12785 #include "confdefs.h"
12786 /* System header to define __stub macros and hopefully few prototypes,
12787     which can conflict with char $ac_func(); below.  */
12788 #include <assert.h>
12789 /* Override any gcc2 internal prototype to avoid an error.  */
12790 /* We use char because int might match the return type of a gcc2
12791     builtin and then its argument prototype would still apply.  */
12792 char $ac_func();
12793
12794 int main() {
12795
12796 /* The GNU C library defines this for functions which it implements
12797     to always fail with ENOSYS.  Some functions are actually named
12798     something starting with __ and the normal name is an alias.  */
12799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12800 choke me
12801 #else
12802 $ac_func();
12803 #endif
12804
12805 ; return 0; }
12806 EOF
12807 if { (eval echo configure:12808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12808   rm -rf conftest*
12809   eval "ac_cv_func_$ac_func=yes"
12810 else
12811   echo "configure: failed program was:" >&5
12812   cat conftest.$ac_ext >&5
12813   rm -rf conftest*
12814   eval "ac_cv_func_$ac_func=no"
12815 fi
12816 rm -f conftest*
12817 fi
12818
12819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12820   echo "$ac_t""yes" 1>&6
12821     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12822   cat >> confdefs.h <<EOF
12823 #define $ac_tr_func 1
12824 EOF
12825  
12826 else
12827   echo "$ac_t""no" 1>&6
12828 fi
12829 done
12830     
12831     fi
12832   fi
12833
12834   
12835   
12836   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
12837 echo "configure:12838: checking for sincos declaration" >&5
12838   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
12839     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
12840   echo $ac_n "(cached) $ac_c" 1>&6
12841 else
12842   
12843       
12844       ac_ext=C
12845 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12846 ac_cpp='$CXXCPP $CPPFLAGS'
12847 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12848 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12849 cross_compiling=$ac_cv_prog_cxx_cross
12850
12851       cat > conftest.$ac_ext <<EOF
12852 #line 12853 "configure"
12853 #include "confdefs.h"
12854 #include <math.h>
12855 int main() {
12856  sincos(0, 0, 0);
12857 ; return 0; }
12858 EOF
12859 if { (eval echo configure:12860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12860   rm -rf conftest*
12861   glibcpp_cv_func_sincos_use=yes
12862 else
12863   echo "configure: failed program was:" >&5
12864   cat conftest.$ac_ext >&5
12865   rm -rf conftest*
12866   glibcpp_cv_func_sincos_use=no
12867 fi
12868 rm -f conftest*
12869       ac_ext=c
12870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12871 ac_cpp='$CPP $CPPFLAGS'
12872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12873 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12874 cross_compiling=$ac_cv_prog_cc_cross
12875
12876     
12877 fi
12878
12879   fi
12880   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
12881
12882   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
12883     for ac_func in sincos
12884 do
12885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12886 echo "configure:12887: checking for $ac_func" >&5
12887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12888   echo $ac_n "(cached) $ac_c" 1>&6
12889 else
12890   cat > conftest.$ac_ext <<EOF
12891 #line 12892 "configure"
12892 #include "confdefs.h"
12893 /* System header to define __stub macros and hopefully few prototypes,
12894     which can conflict with char $ac_func(); below.  */
12895 #include <assert.h>
12896 /* Override any gcc2 internal prototype to avoid an error.  */
12897 /* We use char because int might match the return type of a gcc2
12898     builtin and then its argument prototype would still apply.  */
12899 char $ac_func();
12900
12901 int main() {
12902
12903 /* The GNU C library defines this for functions which it implements
12904     to always fail with ENOSYS.  Some functions are actually named
12905     something starting with __ and the normal name is an alias.  */
12906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12907 choke me
12908 #else
12909 $ac_func();
12910 #endif
12911
12912 ; return 0; }
12913 EOF
12914 if { (eval echo configure:12915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12915   rm -rf conftest*
12916   eval "ac_cv_func_$ac_func=yes"
12917 else
12918   echo "configure: failed program was:" >&5
12919   cat conftest.$ac_ext >&5
12920   rm -rf conftest*
12921   eval "ac_cv_func_$ac_func=no"
12922 fi
12923 rm -f conftest*
12924 fi
12925
12926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12927   echo "$ac_t""yes" 1>&6
12928     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12929   cat >> confdefs.h <<EOF
12930 #define $ac_tr_func 1
12931 EOF
12932  
12933 else
12934   echo "$ac_t""no" 1>&6
12935 fi
12936 done
12937     
12938   else
12939     
12940   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
12941 echo "configure:12942: checking for _sincos declaration" >&5
12942   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
12943     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
12944   echo $ac_n "(cached) $ac_c" 1>&6
12945 else
12946   
12947       
12948       ac_ext=C
12949 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12950 ac_cpp='$CXXCPP $CPPFLAGS'
12951 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12952 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12953 cross_compiling=$ac_cv_prog_cxx_cross
12954
12955       cat > conftest.$ac_ext <<EOF
12956 #line 12957 "configure"
12957 #include "confdefs.h"
12958 #include <math.h>
12959 int main() {
12960  _sincos(0, 0, 0);
12961 ; return 0; }
12962 EOF
12963 if { (eval echo configure:12964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12964   rm -rf conftest*
12965   glibcpp_cv_func__sincos_use=yes
12966 else
12967   echo "configure: failed program was:" >&5
12968   cat conftest.$ac_ext >&5
12969   rm -rf conftest*
12970   glibcpp_cv_func__sincos_use=no
12971 fi
12972 rm -f conftest*
12973       ac_ext=c
12974 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12975 ac_cpp='$CPP $CPPFLAGS'
12976 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12977 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12978 cross_compiling=$ac_cv_prog_cc_cross
12979
12980     
12981 fi
12982
12983   fi
12984   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
12985
12986     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
12987       for ac_func in _sincos
12988 do
12989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12990 echo "configure:12991: checking for $ac_func" >&5
12991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12992   echo $ac_n "(cached) $ac_c" 1>&6
12993 else
12994   cat > conftest.$ac_ext <<EOF
12995 #line 12996 "configure"
12996 #include "confdefs.h"
12997 /* System header to define __stub macros and hopefully few prototypes,
12998     which can conflict with char $ac_func(); below.  */
12999 #include <assert.h>
13000 /* Override any gcc2 internal prototype to avoid an error.  */
13001 /* We use char because int might match the return type of a gcc2
13002     builtin and then its argument prototype would still apply.  */
13003 char $ac_func();
13004
13005 int main() {
13006
13007 /* The GNU C library defines this for functions which it implements
13008     to always fail with ENOSYS.  Some functions are actually named
13009     something starting with __ and the normal name is an alias.  */
13010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13011 choke me
13012 #else
13013 $ac_func();
13014 #endif
13015
13016 ; return 0; }
13017 EOF
13018 if { (eval echo configure:13019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13019   rm -rf conftest*
13020   eval "ac_cv_func_$ac_func=yes"
13021 else
13022   echo "configure: failed program was:" >&5
13023   cat conftest.$ac_ext >&5
13024   rm -rf conftest*
13025   eval "ac_cv_func_$ac_func=no"
13026 fi
13027 rm -f conftest*
13028 fi
13029
13030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13031   echo "$ac_t""yes" 1>&6
13032     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13033   cat >> confdefs.h <<EOF
13034 #define $ac_tr_func 1
13035 EOF
13036  
13037 else
13038   echo "$ac_t""no" 1>&6
13039 fi
13040 done
13041     
13042     fi
13043   fi
13044
13045   
13046   
13047   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
13048 echo "configure:13049: checking for fpclass declaration" >&5
13049   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
13050     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
13051   echo $ac_n "(cached) $ac_c" 1>&6
13052 else
13053   
13054       
13055       ac_ext=C
13056 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13057 ac_cpp='$CXXCPP $CPPFLAGS'
13058 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13059 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13060 cross_compiling=$ac_cv_prog_cxx_cross
13061
13062       cat > conftest.$ac_ext <<EOF
13063 #line 13064 "configure"
13064 #include "confdefs.h"
13065 #include <math.h>
13066                       #ifdef HAVE_IEEEFP_H
13067                       #include <ieeefp.h>
13068                       #endif
13069                      
13070 int main() {
13071  fpclass(0);
13072 ; return 0; }
13073 EOF
13074 if { (eval echo configure:13075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13075   rm -rf conftest*
13076   glibcpp_cv_func_fpclass_use=yes
13077 else
13078   echo "configure: failed program was:" >&5
13079   cat conftest.$ac_ext >&5
13080   rm -rf conftest*
13081   glibcpp_cv_func_fpclass_use=no
13082 fi
13083 rm -f conftest*
13084       ac_ext=c
13085 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13086 ac_cpp='$CPP $CPPFLAGS'
13087 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13088 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13089 cross_compiling=$ac_cv_prog_cc_cross
13090
13091     
13092 fi
13093
13094   fi
13095   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
13096
13097   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
13098     for ac_func in fpclass
13099 do
13100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13101 echo "configure:13102: checking for $ac_func" >&5
13102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13103   echo $ac_n "(cached) $ac_c" 1>&6
13104 else
13105   cat > conftest.$ac_ext <<EOF
13106 #line 13107 "configure"
13107 #include "confdefs.h"
13108 /* System header to define __stub macros and hopefully few prototypes,
13109     which can conflict with char $ac_func(); below.  */
13110 #include <assert.h>
13111 /* Override any gcc2 internal prototype to avoid an error.  */
13112 /* We use char because int might match the return type of a gcc2
13113     builtin and then its argument prototype would still apply.  */
13114 char $ac_func();
13115
13116 int main() {
13117
13118 /* The GNU C library defines this for functions which it implements
13119     to always fail with ENOSYS.  Some functions are actually named
13120     something starting with __ and the normal name is an alias.  */
13121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13122 choke me
13123 #else
13124 $ac_func();
13125 #endif
13126
13127 ; return 0; }
13128 EOF
13129 if { (eval echo configure:13130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13130   rm -rf conftest*
13131   eval "ac_cv_func_$ac_func=yes"
13132 else
13133   echo "configure: failed program was:" >&5
13134   cat conftest.$ac_ext >&5
13135   rm -rf conftest*
13136   eval "ac_cv_func_$ac_func=no"
13137 fi
13138 rm -f conftest*
13139 fi
13140
13141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13142   echo "$ac_t""yes" 1>&6
13143     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13144   cat >> confdefs.h <<EOF
13145 #define $ac_tr_func 1
13146 EOF
13147  
13148 else
13149   echo "$ac_t""no" 1>&6
13150 fi
13151 done
13152     
13153   else
13154     
13155   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
13156 echo "configure:13157: checking for _fpclass declaration" >&5
13157   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
13158     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
13159   echo $ac_n "(cached) $ac_c" 1>&6
13160 else
13161   
13162       
13163       ac_ext=C
13164 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13165 ac_cpp='$CXXCPP $CPPFLAGS'
13166 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13167 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13168 cross_compiling=$ac_cv_prog_cxx_cross
13169
13170       cat > conftest.$ac_ext <<EOF
13171 #line 13172 "configure"
13172 #include "confdefs.h"
13173 #include <math.h>
13174                       #ifdef HAVE_IEEEFP_H
13175                       #include <ieeefp.h>
13176                       #endif
13177                      
13178 int main() {
13179  _fpclass(0);
13180 ; return 0; }
13181 EOF
13182 if { (eval echo configure:13183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13183   rm -rf conftest*
13184   glibcpp_cv_func__fpclass_use=yes
13185 else
13186   echo "configure: failed program was:" >&5
13187   cat conftest.$ac_ext >&5
13188   rm -rf conftest*
13189   glibcpp_cv_func__fpclass_use=no
13190 fi
13191 rm -f conftest*
13192       ac_ext=c
13193 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13194 ac_cpp='$CPP $CPPFLAGS'
13195 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13196 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13197 cross_compiling=$ac_cv_prog_cc_cross
13198
13199     
13200 fi
13201
13202   fi
13203   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
13204
13205     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
13206       for ac_func in _fpclass
13207 do
13208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13209 echo "configure:13210: checking for $ac_func" >&5
13210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13211   echo $ac_n "(cached) $ac_c" 1>&6
13212 else
13213   cat > conftest.$ac_ext <<EOF
13214 #line 13215 "configure"
13215 #include "confdefs.h"
13216 /* System header to define __stub macros and hopefully few prototypes,
13217     which can conflict with char $ac_func(); below.  */
13218 #include <assert.h>
13219 /* Override any gcc2 internal prototype to avoid an error.  */
13220 /* We use char because int might match the return type of a gcc2
13221     builtin and then its argument prototype would still apply.  */
13222 char $ac_func();
13223
13224 int main() {
13225
13226 /* The GNU C library defines this for functions which it implements
13227     to always fail with ENOSYS.  Some functions are actually named
13228     something starting with __ and the normal name is an alias.  */
13229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13230 choke me
13231 #else
13232 $ac_func();
13233 #endif
13234
13235 ; return 0; }
13236 EOF
13237 if { (eval echo configure:13238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13238   rm -rf conftest*
13239   eval "ac_cv_func_$ac_func=yes"
13240 else
13241   echo "configure: failed program was:" >&5
13242   cat conftest.$ac_ext >&5
13243   rm -rf conftest*
13244   eval "ac_cv_func_$ac_func=no"
13245 fi
13246 rm -f conftest*
13247 fi
13248
13249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13250   echo "$ac_t""yes" 1>&6
13251     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13252   cat >> confdefs.h <<EOF
13253 #define $ac_tr_func 1
13254 EOF
13255  
13256 else
13257   echo "$ac_t""no" 1>&6
13258 fi
13259 done
13260     
13261     fi
13262   fi
13263
13264   
13265   
13266   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
13267 echo "configure:13268: checking for qfpclass declaration" >&5
13268   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
13269     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
13270   echo $ac_n "(cached) $ac_c" 1>&6
13271 else
13272   
13273       
13274       ac_ext=C
13275 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13276 ac_cpp='$CXXCPP $CPPFLAGS'
13277 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13278 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13279 cross_compiling=$ac_cv_prog_cxx_cross
13280
13281       cat > conftest.$ac_ext <<EOF
13282 #line 13283 "configure"
13283 #include "confdefs.h"
13284 #include <math.h>
13285                       #ifdef HAVE_IEEEFP_H
13286                       #include <ieeefp.h>
13287                       #endif
13288                      
13289 int main() {
13290  qfpclass(0);
13291 ; return 0; }
13292 EOF
13293 if { (eval echo configure:13294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13294   rm -rf conftest*
13295   glibcpp_cv_func_qfpclass_use=yes
13296 else
13297   echo "configure: failed program was:" >&5
13298   cat conftest.$ac_ext >&5
13299   rm -rf conftest*
13300   glibcpp_cv_func_qfpclass_use=no
13301 fi
13302 rm -f conftest*
13303       ac_ext=c
13304 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13305 ac_cpp='$CPP $CPPFLAGS'
13306 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13307 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13308 cross_compiling=$ac_cv_prog_cc_cross
13309
13310     
13311 fi
13312
13313   fi
13314   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
13315
13316   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
13317     for ac_func in qfpclass
13318 do
13319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13320 echo "configure:13321: checking for $ac_func" >&5
13321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13322   echo $ac_n "(cached) $ac_c" 1>&6
13323 else
13324   cat > conftest.$ac_ext <<EOF
13325 #line 13326 "configure"
13326 #include "confdefs.h"
13327 /* System header to define __stub macros and hopefully few prototypes,
13328     which can conflict with char $ac_func(); below.  */
13329 #include <assert.h>
13330 /* Override any gcc2 internal prototype to avoid an error.  */
13331 /* We use char because int might match the return type of a gcc2
13332     builtin and then its argument prototype would still apply.  */
13333 char $ac_func();
13334
13335 int main() {
13336
13337 /* The GNU C library defines this for functions which it implements
13338     to always fail with ENOSYS.  Some functions are actually named
13339     something starting with __ and the normal name is an alias.  */
13340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13341 choke me
13342 #else
13343 $ac_func();
13344 #endif
13345
13346 ; return 0; }
13347 EOF
13348 if { (eval echo configure:13349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13349   rm -rf conftest*
13350   eval "ac_cv_func_$ac_func=yes"
13351 else
13352   echo "configure: failed program was:" >&5
13353   cat conftest.$ac_ext >&5
13354   rm -rf conftest*
13355   eval "ac_cv_func_$ac_func=no"
13356 fi
13357 rm -f conftest*
13358 fi
13359
13360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13361   echo "$ac_t""yes" 1>&6
13362     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13363   cat >> confdefs.h <<EOF
13364 #define $ac_tr_func 1
13365 EOF
13366  
13367 else
13368   echo "$ac_t""no" 1>&6
13369 fi
13370 done
13371     
13372   else
13373     
13374   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
13375 echo "configure:13376: checking for _qfpclass declaration" >&5
13376   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
13377     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
13378   echo $ac_n "(cached) $ac_c" 1>&6
13379 else
13380   
13381       
13382       ac_ext=C
13383 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13384 ac_cpp='$CXXCPP $CPPFLAGS'
13385 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13386 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13387 cross_compiling=$ac_cv_prog_cxx_cross
13388
13389       cat > conftest.$ac_ext <<EOF
13390 #line 13391 "configure"
13391 #include "confdefs.h"
13392 #include <math.h>
13393                       #ifdef HAVE_IEEEFP_H
13394                       #include <ieeefp.h>
13395                       #endif
13396                      
13397 int main() {
13398  _qfpclass(0);
13399 ; return 0; }
13400 EOF
13401 if { (eval echo configure:13402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13402   rm -rf conftest*
13403   glibcpp_cv_func__qfpclass_use=yes
13404 else
13405   echo "configure: failed program was:" >&5
13406   cat conftest.$ac_ext >&5
13407   rm -rf conftest*
13408   glibcpp_cv_func__qfpclass_use=no
13409 fi
13410 rm -f conftest*
13411       ac_ext=c
13412 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13413 ac_cpp='$CPP $CPPFLAGS'
13414 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13415 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13416 cross_compiling=$ac_cv_prog_cc_cross
13417
13418     
13419 fi
13420
13421   fi
13422   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
13423
13424     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
13425       for ac_func in _qfpclass
13426 do
13427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13428 echo "configure:13429: checking for $ac_func" >&5
13429 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13430   echo $ac_n "(cached) $ac_c" 1>&6
13431 else
13432   cat > conftest.$ac_ext <<EOF
13433 #line 13434 "configure"
13434 #include "confdefs.h"
13435 /* System header to define __stub macros and hopefully few prototypes,
13436     which can conflict with char $ac_func(); below.  */
13437 #include <assert.h>
13438 /* Override any gcc2 internal prototype to avoid an error.  */
13439 /* We use char because int might match the return type of a gcc2
13440     builtin and then its argument prototype would still apply.  */
13441 char $ac_func();
13442
13443 int main() {
13444
13445 /* The GNU C library defines this for functions which it implements
13446     to always fail with ENOSYS.  Some functions are actually named
13447     something starting with __ and the normal name is an alias.  */
13448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13449 choke me
13450 #else
13451 $ac_func();
13452 #endif
13453
13454 ; return 0; }
13455 EOF
13456 if { (eval echo configure:13457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13457   rm -rf conftest*
13458   eval "ac_cv_func_$ac_func=yes"
13459 else
13460   echo "configure: failed program was:" >&5
13461   cat conftest.$ac_ext >&5
13462   rm -rf conftest*
13463   eval "ac_cv_func_$ac_func=no"
13464 fi
13465 rm -f conftest*
13466 fi
13467
13468 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13469   echo "$ac_t""yes" 1>&6
13470     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13471   cat >> confdefs.h <<EOF
13472 #define $ac_tr_func 1
13473 EOF
13474  
13475 else
13476   echo "$ac_t""no" 1>&6
13477 fi
13478 done
13479     
13480     fi
13481   fi
13482
13483   
13484   
13485   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
13486 echo "configure:13487: checking for hypot declaration" >&5
13487   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
13488     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
13489   echo $ac_n "(cached) $ac_c" 1>&6
13490 else
13491   
13492       
13493       ac_ext=C
13494 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13495 ac_cpp='$CXXCPP $CPPFLAGS'
13496 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13497 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13498 cross_compiling=$ac_cv_prog_cxx_cross
13499
13500       cat > conftest.$ac_ext <<EOF
13501 #line 13502 "configure"
13502 #include "confdefs.h"
13503 #include <math.h>
13504 int main() {
13505  hypot(0, 0);
13506 ; return 0; }
13507 EOF
13508 if { (eval echo configure:13509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13509   rm -rf conftest*
13510   glibcpp_cv_func_hypot_use=yes
13511 else
13512   echo "configure: failed program was:" >&5
13513   cat conftest.$ac_ext >&5
13514   rm -rf conftest*
13515   glibcpp_cv_func_hypot_use=no
13516 fi
13517 rm -f conftest*
13518       ac_ext=c
13519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13520 ac_cpp='$CPP $CPPFLAGS'
13521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13523 cross_compiling=$ac_cv_prog_cc_cross
13524
13525     
13526 fi
13527
13528   fi
13529   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
13530
13531   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
13532     for ac_func in hypot
13533 do
13534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13535 echo "configure:13536: checking for $ac_func" >&5
13536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13537   echo $ac_n "(cached) $ac_c" 1>&6
13538 else
13539   cat > conftest.$ac_ext <<EOF
13540 #line 13541 "configure"
13541 #include "confdefs.h"
13542 /* System header to define __stub macros and hopefully few prototypes,
13543     which can conflict with char $ac_func(); below.  */
13544 #include <assert.h>
13545 /* Override any gcc2 internal prototype to avoid an error.  */
13546 /* We use char because int might match the return type of a gcc2
13547     builtin and then its argument prototype would still apply.  */
13548 char $ac_func();
13549
13550 int main() {
13551
13552 /* The GNU C library defines this for functions which it implements
13553     to always fail with ENOSYS.  Some functions are actually named
13554     something starting with __ and the normal name is an alias.  */
13555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13556 choke me
13557 #else
13558 $ac_func();
13559 #endif
13560
13561 ; return 0; }
13562 EOF
13563 if { (eval echo configure:13564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13564   rm -rf conftest*
13565   eval "ac_cv_func_$ac_func=yes"
13566 else
13567   echo "configure: failed program was:" >&5
13568   cat conftest.$ac_ext >&5
13569   rm -rf conftest*
13570   eval "ac_cv_func_$ac_func=no"
13571 fi
13572 rm -f conftest*
13573 fi
13574
13575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13576   echo "$ac_t""yes" 1>&6
13577     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13578   cat >> confdefs.h <<EOF
13579 #define $ac_tr_func 1
13580 EOF
13581  
13582 else
13583   echo "$ac_t""no" 1>&6
13584 fi
13585 done
13586     
13587   else
13588     
13589   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
13590 echo "configure:13591: checking for _hypot declaration" >&5
13591   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
13592     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
13593   echo $ac_n "(cached) $ac_c" 1>&6
13594 else
13595   
13596       
13597       ac_ext=C
13598 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13599 ac_cpp='$CXXCPP $CPPFLAGS'
13600 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13601 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13602 cross_compiling=$ac_cv_prog_cxx_cross
13603
13604       cat > conftest.$ac_ext <<EOF
13605 #line 13606 "configure"
13606 #include "confdefs.h"
13607 #include <math.h>
13608 int main() {
13609  _hypot(0, 0);
13610 ; return 0; }
13611 EOF
13612 if { (eval echo configure:13613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13613   rm -rf conftest*
13614   glibcpp_cv_func__hypot_use=yes
13615 else
13616   echo "configure: failed program was:" >&5
13617   cat conftest.$ac_ext >&5
13618   rm -rf conftest*
13619   glibcpp_cv_func__hypot_use=no
13620 fi
13621 rm -f conftest*
13622       ac_ext=c
13623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13624 ac_cpp='$CPP $CPPFLAGS'
13625 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13626 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13627 cross_compiling=$ac_cv_prog_cc_cross
13628
13629     
13630 fi
13631
13632   fi
13633   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
13634
13635     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
13636       for ac_func in _hypot
13637 do
13638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13639 echo "configure:13640: checking for $ac_func" >&5
13640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13641   echo $ac_n "(cached) $ac_c" 1>&6
13642 else
13643   cat > conftest.$ac_ext <<EOF
13644 #line 13645 "configure"
13645 #include "confdefs.h"
13646 /* System header to define __stub macros and hopefully few prototypes,
13647     which can conflict with char $ac_func(); below.  */
13648 #include <assert.h>
13649 /* Override any gcc2 internal prototype to avoid an error.  */
13650 /* We use char because int might match the return type of a gcc2
13651     builtin and then its argument prototype would still apply.  */
13652 char $ac_func();
13653
13654 int main() {
13655
13656 /* The GNU C library defines this for functions which it implements
13657     to always fail with ENOSYS.  Some functions are actually named
13658     something starting with __ and the normal name is an alias.  */
13659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13660 choke me
13661 #else
13662 $ac_func();
13663 #endif
13664
13665 ; return 0; }
13666 EOF
13667 if { (eval echo configure:13668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13668   rm -rf conftest*
13669   eval "ac_cv_func_$ac_func=yes"
13670 else
13671   echo "configure: failed program was:" >&5
13672   cat conftest.$ac_ext >&5
13673   rm -rf conftest*
13674   eval "ac_cv_func_$ac_func=no"
13675 fi
13676 rm -f conftest*
13677 fi
13678
13679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13680   echo "$ac_t""yes" 1>&6
13681     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13682   cat >> confdefs.h <<EOF
13683 #define $ac_tr_func 1
13684 EOF
13685  
13686 else
13687   echo "$ac_t""no" 1>&6
13688 fi
13689 done
13690     
13691     fi
13692   fi
13693
13694
13695     
13696   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
13697 echo "configure:13698: checking for float trig functions" >&5
13698   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
13699   echo $ac_n "(cached) $ac_c" 1>&6
13700 else
13701   
13702     
13703     ac_ext=C
13704 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13705 ac_cpp='$CXXCPP $CPPFLAGS'
13706 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13707 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13708 cross_compiling=$ac_cv_prog_cxx_cross
13709
13710     cat > conftest.$ac_ext <<EOF
13711 #line 13712 "configure"
13712 #include "confdefs.h"
13713 #include <math.h>
13714 int main() {
13715  `for x in acosf asinf atanf \
13716                                           cosf sinf tanf \
13717                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
13718 ; return 0; }
13719 EOF
13720 if { (eval echo configure:13721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13721   rm -rf conftest*
13722   glibcpp_cv_func_float_trig_use=yes
13723 else
13724   echo "configure: failed program was:" >&5
13725   cat conftest.$ac_ext >&5
13726   rm -rf conftest*
13727   glibcpp_cv_func_float_trig_use=no
13728 fi
13729 rm -f conftest*
13730     ac_ext=c
13731 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13732 ac_cpp='$CPP $CPPFLAGS'
13733 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13734 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13735 cross_compiling=$ac_cv_prog_cc_cross
13736
13737 fi
13738
13739   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
13740   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
13741     for ac_func in acosf asinf atanf \
13742                                           cosf sinf tanf \
13743                                           coshf sinhf tanhf
13744 do
13745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13746 echo "configure:13747: checking for $ac_func" >&5
13747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13748   echo $ac_n "(cached) $ac_c" 1>&6
13749 else
13750   cat > conftest.$ac_ext <<EOF
13751 #line 13752 "configure"
13752 #include "confdefs.h"
13753 /* System header to define __stub macros and hopefully few prototypes,
13754     which can conflict with char $ac_func(); below.  */
13755 #include <assert.h>
13756 /* Override any gcc2 internal prototype to avoid an error.  */
13757 /* We use char because int might match the return type of a gcc2
13758     builtin and then its argument prototype would still apply.  */
13759 char $ac_func();
13760
13761 int main() {
13762
13763 /* The GNU C library defines this for functions which it implements
13764     to always fail with ENOSYS.  Some functions are actually named
13765     something starting with __ and the normal name is an alias.  */
13766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13767 choke me
13768 #else
13769 $ac_func();
13770 #endif
13771
13772 ; return 0; }
13773 EOF
13774 if { (eval echo configure:13775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13775   rm -rf conftest*
13776   eval "ac_cv_func_$ac_func=yes"
13777 else
13778   echo "configure: failed program was:" >&5
13779   cat conftest.$ac_ext >&5
13780   rm -rf conftest*
13781   eval "ac_cv_func_$ac_func=no"
13782 fi
13783 rm -f conftest*
13784 fi
13785
13786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13787   echo "$ac_t""yes" 1>&6
13788     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13789   cat >> confdefs.h <<EOF
13790 #define $ac_tr_func 1
13791 EOF
13792  
13793 else
13794   echo "$ac_t""no" 1>&6
13795 fi
13796 done
13797
13798   fi
13799
13800   
13801   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
13802 echo "configure:13803: checking for float round functions" >&5
13803   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
13804   echo $ac_n "(cached) $ac_c" 1>&6
13805 else
13806   
13807     
13808     ac_ext=C
13809 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13810 ac_cpp='$CXXCPP $CPPFLAGS'
13811 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13812 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13813 cross_compiling=$ac_cv_prog_cxx_cross
13814
13815     cat > conftest.$ac_ext <<EOF
13816 #line 13817 "configure"
13817 #include "confdefs.h"
13818 #include <math.h>
13819 int main() {
13820  `for x in ceilf floorf; do echo "$x (0);"; done` 
13821 ; return 0; }
13822 EOF
13823 if { (eval echo configure:13824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13824   rm -rf conftest*
13825   glibcpp_cv_func_float_round_use=yes
13826 else
13827   echo "configure: failed program was:" >&5
13828   cat conftest.$ac_ext >&5
13829   rm -rf conftest*
13830   glibcpp_cv_func_float_round_use=no
13831 fi
13832 rm -f conftest*
13833     ac_ext=c
13834 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13835 ac_cpp='$CPP $CPPFLAGS'
13836 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13837 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13838 cross_compiling=$ac_cv_prog_cc_cross
13839
13840 fi
13841
13842   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
13843   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
13844     for ac_func in ceilf floorf
13845 do
13846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13847 echo "configure:13848: checking for $ac_func" >&5
13848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13849   echo $ac_n "(cached) $ac_c" 1>&6
13850 else
13851   cat > conftest.$ac_ext <<EOF
13852 #line 13853 "configure"
13853 #include "confdefs.h"
13854 /* System header to define __stub macros and hopefully few prototypes,
13855     which can conflict with char $ac_func(); below.  */
13856 #include <assert.h>
13857 /* Override any gcc2 internal prototype to avoid an error.  */
13858 /* We use char because int might match the return type of a gcc2
13859     builtin and then its argument prototype would still apply.  */
13860 char $ac_func();
13861
13862 int main() {
13863
13864 /* The GNU C library defines this for functions which it implements
13865     to always fail with ENOSYS.  Some functions are actually named
13866     something starting with __ and the normal name is an alias.  */
13867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13868 choke me
13869 #else
13870 $ac_func();
13871 #endif
13872
13873 ; return 0; }
13874 EOF
13875 if { (eval echo configure:13876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13876   rm -rf conftest*
13877   eval "ac_cv_func_$ac_func=yes"
13878 else
13879   echo "configure: failed program was:" >&5
13880   cat conftest.$ac_ext >&5
13881   rm -rf conftest*
13882   eval "ac_cv_func_$ac_func=no"
13883 fi
13884 rm -f conftest*
13885 fi
13886
13887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13888   echo "$ac_t""yes" 1>&6
13889     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13890   cat >> confdefs.h <<EOF
13891 #define $ac_tr_func 1
13892 EOF
13893  
13894 else
13895   echo "$ac_t""no" 1>&6
13896 fi
13897 done
13898
13899   fi
13900
13901   
13902   
13903   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
13904 echo "configure:13905: checking for expf declaration" >&5
13905   if test x${glibcpp_cv_func_expf_use+set} != xset; then
13906     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
13907   echo $ac_n "(cached) $ac_c" 1>&6
13908 else
13909   
13910       
13911       ac_ext=C
13912 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13913 ac_cpp='$CXXCPP $CPPFLAGS'
13914 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13915 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13916 cross_compiling=$ac_cv_prog_cxx_cross
13917
13918       cat > conftest.$ac_ext <<EOF
13919 #line 13920 "configure"
13920 #include "confdefs.h"
13921 #include <math.h>
13922                       #ifdef HAVE_IEEEFP_H
13923                       #include <ieeefp.h>
13924                       #endif
13925                      
13926 int main() {
13927  expf(0);
13928 ; return 0; }
13929 EOF
13930 if { (eval echo configure:13931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13931   rm -rf conftest*
13932   glibcpp_cv_func_expf_use=yes
13933 else
13934   echo "configure: failed program was:" >&5
13935   cat conftest.$ac_ext >&5
13936   rm -rf conftest*
13937   glibcpp_cv_func_expf_use=no
13938 fi
13939 rm -f conftest*
13940       ac_ext=c
13941 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13942 ac_cpp='$CPP $CPPFLAGS'
13943 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13944 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13945 cross_compiling=$ac_cv_prog_cc_cross
13946
13947     
13948 fi
13949
13950   fi
13951   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
13952
13953   if test x$glibcpp_cv_func_expf_use = x"yes"; then
13954     for ac_func in expf
13955 do
13956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13957 echo "configure:13958: checking for $ac_func" >&5
13958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13959   echo $ac_n "(cached) $ac_c" 1>&6
13960 else
13961   cat > conftest.$ac_ext <<EOF
13962 #line 13963 "configure"
13963 #include "confdefs.h"
13964 /* System header to define __stub macros and hopefully few prototypes,
13965     which can conflict with char $ac_func(); below.  */
13966 #include <assert.h>
13967 /* Override any gcc2 internal prototype to avoid an error.  */
13968 /* We use char because int might match the return type of a gcc2
13969     builtin and then its argument prototype would still apply.  */
13970 char $ac_func();
13971
13972 int main() {
13973
13974 /* The GNU C library defines this for functions which it implements
13975     to always fail with ENOSYS.  Some functions are actually named
13976     something starting with __ and the normal name is an alias.  */
13977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13978 choke me
13979 #else
13980 $ac_func();
13981 #endif
13982
13983 ; return 0; }
13984 EOF
13985 if { (eval echo configure:13986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13986   rm -rf conftest*
13987   eval "ac_cv_func_$ac_func=yes"
13988 else
13989   echo "configure: failed program was:" >&5
13990   cat conftest.$ac_ext >&5
13991   rm -rf conftest*
13992   eval "ac_cv_func_$ac_func=no"
13993 fi
13994 rm -f conftest*
13995 fi
13996
13997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13998   echo "$ac_t""yes" 1>&6
13999     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14000   cat >> confdefs.h <<EOF
14001 #define $ac_tr_func 1
14002 EOF
14003  
14004 else
14005   echo "$ac_t""no" 1>&6
14006 fi
14007 done
14008     
14009   else
14010     
14011   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
14012 echo "configure:14013: checking for _expf declaration" >&5
14013   if test x${glibcpp_cv_func__expf_use+set} != xset; then
14014     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
14015   echo $ac_n "(cached) $ac_c" 1>&6
14016 else
14017   
14018       
14019       ac_ext=C
14020 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14021 ac_cpp='$CXXCPP $CPPFLAGS'
14022 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14023 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14024 cross_compiling=$ac_cv_prog_cxx_cross
14025
14026       cat > conftest.$ac_ext <<EOF
14027 #line 14028 "configure"
14028 #include "confdefs.h"
14029 #include <math.h>
14030                       #ifdef HAVE_IEEEFP_H
14031                       #include <ieeefp.h>
14032                       #endif
14033                      
14034 int main() {
14035  _expf(0);
14036 ; return 0; }
14037 EOF
14038 if { (eval echo configure:14039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14039   rm -rf conftest*
14040   glibcpp_cv_func__expf_use=yes
14041 else
14042   echo "configure: failed program was:" >&5
14043   cat conftest.$ac_ext >&5
14044   rm -rf conftest*
14045   glibcpp_cv_func__expf_use=no
14046 fi
14047 rm -f conftest*
14048       ac_ext=c
14049 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14050 ac_cpp='$CPP $CPPFLAGS'
14051 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14052 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14053 cross_compiling=$ac_cv_prog_cc_cross
14054
14055     
14056 fi
14057
14058   fi
14059   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
14060
14061     if test x$glibcpp_cv_func__expf_use = x"yes"; then
14062       for ac_func in _expf
14063 do
14064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14065 echo "configure:14066: checking for $ac_func" >&5
14066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14067   echo $ac_n "(cached) $ac_c" 1>&6
14068 else
14069   cat > conftest.$ac_ext <<EOF
14070 #line 14071 "configure"
14071 #include "confdefs.h"
14072 /* System header to define __stub macros and hopefully few prototypes,
14073     which can conflict with char $ac_func(); below.  */
14074 #include <assert.h>
14075 /* Override any gcc2 internal prototype to avoid an error.  */
14076 /* We use char because int might match the return type of a gcc2
14077     builtin and then its argument prototype would still apply.  */
14078 char $ac_func();
14079
14080 int main() {
14081
14082 /* The GNU C library defines this for functions which it implements
14083     to always fail with ENOSYS.  Some functions are actually named
14084     something starting with __ and the normal name is an alias.  */
14085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14086 choke me
14087 #else
14088 $ac_func();
14089 #endif
14090
14091 ; return 0; }
14092 EOF
14093 if { (eval echo configure:14094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14094   rm -rf conftest*
14095   eval "ac_cv_func_$ac_func=yes"
14096 else
14097   echo "configure: failed program was:" >&5
14098   cat conftest.$ac_ext >&5
14099   rm -rf conftest*
14100   eval "ac_cv_func_$ac_func=no"
14101 fi
14102 rm -f conftest*
14103 fi
14104
14105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14106   echo "$ac_t""yes" 1>&6
14107     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14108   cat >> confdefs.h <<EOF
14109 #define $ac_tr_func 1
14110 EOF
14111  
14112 else
14113   echo "$ac_t""no" 1>&6
14114 fi
14115 done
14116     
14117     fi
14118   fi
14119
14120   
14121   
14122   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
14123 echo "configure:14124: checking for isnanf declaration" >&5
14124   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
14125     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
14126   echo $ac_n "(cached) $ac_c" 1>&6
14127 else
14128   
14129       
14130       ac_ext=C
14131 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14132 ac_cpp='$CXXCPP $CPPFLAGS'
14133 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14134 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14135 cross_compiling=$ac_cv_prog_cxx_cross
14136
14137       cat > conftest.$ac_ext <<EOF
14138 #line 14139 "configure"
14139 #include "confdefs.h"
14140 #include <math.h>
14141                       #ifdef HAVE_IEEEFP_H
14142                       #include <ieeefp.h>
14143                       #endif
14144                      
14145 int main() {
14146  isnanf(0);
14147 ; return 0; }
14148 EOF
14149 if { (eval echo configure:14150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14150   rm -rf conftest*
14151   glibcpp_cv_func_isnanf_use=yes
14152 else
14153   echo "configure: failed program was:" >&5
14154   cat conftest.$ac_ext >&5
14155   rm -rf conftest*
14156   glibcpp_cv_func_isnanf_use=no
14157 fi
14158 rm -f conftest*
14159       ac_ext=c
14160 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14161 ac_cpp='$CPP $CPPFLAGS'
14162 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14163 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14164 cross_compiling=$ac_cv_prog_cc_cross
14165
14166     
14167 fi
14168
14169   fi
14170   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
14171
14172   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
14173     for ac_func in isnanf
14174 do
14175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14176 echo "configure:14177: checking for $ac_func" >&5
14177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14178   echo $ac_n "(cached) $ac_c" 1>&6
14179 else
14180   cat > conftest.$ac_ext <<EOF
14181 #line 14182 "configure"
14182 #include "confdefs.h"
14183 /* System header to define __stub macros and hopefully few prototypes,
14184     which can conflict with char $ac_func(); below.  */
14185 #include <assert.h>
14186 /* Override any gcc2 internal prototype to avoid an error.  */
14187 /* We use char because int might match the return type of a gcc2
14188     builtin and then its argument prototype would still apply.  */
14189 char $ac_func();
14190
14191 int main() {
14192
14193 /* The GNU C library defines this for functions which it implements
14194     to always fail with ENOSYS.  Some functions are actually named
14195     something starting with __ and the normal name is an alias.  */
14196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14197 choke me
14198 #else
14199 $ac_func();
14200 #endif
14201
14202 ; return 0; }
14203 EOF
14204 if { (eval echo configure:14205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14205   rm -rf conftest*
14206   eval "ac_cv_func_$ac_func=yes"
14207 else
14208   echo "configure: failed program was:" >&5
14209   cat conftest.$ac_ext >&5
14210   rm -rf conftest*
14211   eval "ac_cv_func_$ac_func=no"
14212 fi
14213 rm -f conftest*
14214 fi
14215
14216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14217   echo "$ac_t""yes" 1>&6
14218     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14219   cat >> confdefs.h <<EOF
14220 #define $ac_tr_func 1
14221 EOF
14222  
14223 else
14224   echo "$ac_t""no" 1>&6
14225 fi
14226 done
14227     
14228   else
14229     
14230   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
14231 echo "configure:14232: checking for _isnanf declaration" >&5
14232   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
14233     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
14234   echo $ac_n "(cached) $ac_c" 1>&6
14235 else
14236   
14237       
14238       ac_ext=C
14239 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14240 ac_cpp='$CXXCPP $CPPFLAGS'
14241 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14242 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14243 cross_compiling=$ac_cv_prog_cxx_cross
14244
14245       cat > conftest.$ac_ext <<EOF
14246 #line 14247 "configure"
14247 #include "confdefs.h"
14248 #include <math.h>
14249                       #ifdef HAVE_IEEEFP_H
14250                       #include <ieeefp.h>
14251                       #endif
14252                      
14253 int main() {
14254  _isnanf(0);
14255 ; return 0; }
14256 EOF
14257 if { (eval echo configure:14258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14258   rm -rf conftest*
14259   glibcpp_cv_func__isnanf_use=yes
14260 else
14261   echo "configure: failed program was:" >&5
14262   cat conftest.$ac_ext >&5
14263   rm -rf conftest*
14264   glibcpp_cv_func__isnanf_use=no
14265 fi
14266 rm -f conftest*
14267       ac_ext=c
14268 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14269 ac_cpp='$CPP $CPPFLAGS'
14270 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14271 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14272 cross_compiling=$ac_cv_prog_cc_cross
14273
14274     
14275 fi
14276
14277   fi
14278   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
14279
14280     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
14281       for ac_func in _isnanf
14282 do
14283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14284 echo "configure:14285: checking for $ac_func" >&5
14285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14286   echo $ac_n "(cached) $ac_c" 1>&6
14287 else
14288   cat > conftest.$ac_ext <<EOF
14289 #line 14290 "configure"
14290 #include "confdefs.h"
14291 /* System header to define __stub macros and hopefully few prototypes,
14292     which can conflict with char $ac_func(); below.  */
14293 #include <assert.h>
14294 /* Override any gcc2 internal prototype to avoid an error.  */
14295 /* We use char because int might match the return type of a gcc2
14296     builtin and then its argument prototype would still apply.  */
14297 char $ac_func();
14298
14299 int main() {
14300
14301 /* The GNU C library defines this for functions which it implements
14302     to always fail with ENOSYS.  Some functions are actually named
14303     something starting with __ and the normal name is an alias.  */
14304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14305 choke me
14306 #else
14307 $ac_func();
14308 #endif
14309
14310 ; return 0; }
14311 EOF
14312 if { (eval echo configure:14313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14313   rm -rf conftest*
14314   eval "ac_cv_func_$ac_func=yes"
14315 else
14316   echo "configure: failed program was:" >&5
14317   cat conftest.$ac_ext >&5
14318   rm -rf conftest*
14319   eval "ac_cv_func_$ac_func=no"
14320 fi
14321 rm -f conftest*
14322 fi
14323
14324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14325   echo "$ac_t""yes" 1>&6
14326     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14327   cat >> confdefs.h <<EOF
14328 #define $ac_tr_func 1
14329 EOF
14330  
14331 else
14332   echo "$ac_t""no" 1>&6
14333 fi
14334 done
14335     
14336     fi
14337   fi
14338
14339   
14340   
14341   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
14342 echo "configure:14343: checking for isinff declaration" >&5
14343   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
14344     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
14345   echo $ac_n "(cached) $ac_c" 1>&6
14346 else
14347   
14348       
14349       ac_ext=C
14350 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14351 ac_cpp='$CXXCPP $CPPFLAGS'
14352 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14353 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14354 cross_compiling=$ac_cv_prog_cxx_cross
14355
14356       cat > conftest.$ac_ext <<EOF
14357 #line 14358 "configure"
14358 #include "confdefs.h"
14359 #include <math.h>
14360                       #ifdef HAVE_IEEEFP_H
14361                       #include <ieeefp.h>
14362                       #endif
14363                      
14364 int main() {
14365  isinff(0);
14366 ; return 0; }
14367 EOF
14368 if { (eval echo configure:14369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14369   rm -rf conftest*
14370   glibcpp_cv_func_isinff_use=yes
14371 else
14372   echo "configure: failed program was:" >&5
14373   cat conftest.$ac_ext >&5
14374   rm -rf conftest*
14375   glibcpp_cv_func_isinff_use=no
14376 fi
14377 rm -f conftest*
14378       ac_ext=c
14379 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14380 ac_cpp='$CPP $CPPFLAGS'
14381 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14382 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14383 cross_compiling=$ac_cv_prog_cc_cross
14384
14385     
14386 fi
14387
14388   fi
14389   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
14390
14391   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
14392     for ac_func in isinff
14393 do
14394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14395 echo "configure:14396: checking for $ac_func" >&5
14396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14397   echo $ac_n "(cached) $ac_c" 1>&6
14398 else
14399   cat > conftest.$ac_ext <<EOF
14400 #line 14401 "configure"
14401 #include "confdefs.h"
14402 /* System header to define __stub macros and hopefully few prototypes,
14403     which can conflict with char $ac_func(); below.  */
14404 #include <assert.h>
14405 /* Override any gcc2 internal prototype to avoid an error.  */
14406 /* We use char because int might match the return type of a gcc2
14407     builtin and then its argument prototype would still apply.  */
14408 char $ac_func();
14409
14410 int main() {
14411
14412 /* The GNU C library defines this for functions which it implements
14413     to always fail with ENOSYS.  Some functions are actually named
14414     something starting with __ and the normal name is an alias.  */
14415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14416 choke me
14417 #else
14418 $ac_func();
14419 #endif
14420
14421 ; return 0; }
14422 EOF
14423 if { (eval echo configure:14424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14424   rm -rf conftest*
14425   eval "ac_cv_func_$ac_func=yes"
14426 else
14427   echo "configure: failed program was:" >&5
14428   cat conftest.$ac_ext >&5
14429   rm -rf conftest*
14430   eval "ac_cv_func_$ac_func=no"
14431 fi
14432 rm -f conftest*
14433 fi
14434
14435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14436   echo "$ac_t""yes" 1>&6
14437     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14438   cat >> confdefs.h <<EOF
14439 #define $ac_tr_func 1
14440 EOF
14441  
14442 else
14443   echo "$ac_t""no" 1>&6
14444 fi
14445 done
14446     
14447   else
14448     
14449   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
14450 echo "configure:14451: checking for _isinff declaration" >&5
14451   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
14452     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
14453   echo $ac_n "(cached) $ac_c" 1>&6
14454 else
14455   
14456       
14457       ac_ext=C
14458 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14459 ac_cpp='$CXXCPP $CPPFLAGS'
14460 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14461 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14462 cross_compiling=$ac_cv_prog_cxx_cross
14463
14464       cat > conftest.$ac_ext <<EOF
14465 #line 14466 "configure"
14466 #include "confdefs.h"
14467 #include <math.h>
14468                       #ifdef HAVE_IEEEFP_H
14469                       #include <ieeefp.h>
14470                       #endif
14471                      
14472 int main() {
14473  _isinff(0);
14474 ; return 0; }
14475 EOF
14476 if { (eval echo configure:14477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14477   rm -rf conftest*
14478   glibcpp_cv_func__isinff_use=yes
14479 else
14480   echo "configure: failed program was:" >&5
14481   cat conftest.$ac_ext >&5
14482   rm -rf conftest*
14483   glibcpp_cv_func__isinff_use=no
14484 fi
14485 rm -f conftest*
14486       ac_ext=c
14487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14488 ac_cpp='$CPP $CPPFLAGS'
14489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14491 cross_compiling=$ac_cv_prog_cc_cross
14492
14493     
14494 fi
14495
14496   fi
14497   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
14498
14499     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
14500       for ac_func in _isinff
14501 do
14502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14503 echo "configure:14504: checking for $ac_func" >&5
14504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14505   echo $ac_n "(cached) $ac_c" 1>&6
14506 else
14507   cat > conftest.$ac_ext <<EOF
14508 #line 14509 "configure"
14509 #include "confdefs.h"
14510 /* System header to define __stub macros and hopefully few prototypes,
14511     which can conflict with char $ac_func(); below.  */
14512 #include <assert.h>
14513 /* Override any gcc2 internal prototype to avoid an error.  */
14514 /* We use char because int might match the return type of a gcc2
14515     builtin and then its argument prototype would still apply.  */
14516 char $ac_func();
14517
14518 int main() {
14519
14520 /* The GNU C library defines this for functions which it implements
14521     to always fail with ENOSYS.  Some functions are actually named
14522     something starting with __ and the normal name is an alias.  */
14523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14524 choke me
14525 #else
14526 $ac_func();
14527 #endif
14528
14529 ; return 0; }
14530 EOF
14531 if { (eval echo configure:14532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14532   rm -rf conftest*
14533   eval "ac_cv_func_$ac_func=yes"
14534 else
14535   echo "configure: failed program was:" >&5
14536   cat conftest.$ac_ext >&5
14537   rm -rf conftest*
14538   eval "ac_cv_func_$ac_func=no"
14539 fi
14540 rm -f conftest*
14541 fi
14542
14543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14544   echo "$ac_t""yes" 1>&6
14545     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14546   cat >> confdefs.h <<EOF
14547 #define $ac_tr_func 1
14548 EOF
14549  
14550 else
14551   echo "$ac_t""no" 1>&6
14552 fi
14553 done
14554     
14555     fi
14556   fi
14557
14558   
14559   
14560   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
14561 echo "configure:14562: checking for atan2f declaration" >&5
14562   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
14563     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
14564   echo $ac_n "(cached) $ac_c" 1>&6
14565 else
14566   
14567       
14568       ac_ext=C
14569 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14570 ac_cpp='$CXXCPP $CPPFLAGS'
14571 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14572 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14573 cross_compiling=$ac_cv_prog_cxx_cross
14574
14575       cat > conftest.$ac_ext <<EOF
14576 #line 14577 "configure"
14577 #include "confdefs.h"
14578 #include <math.h>
14579 int main() {
14580  atan2f(0, 0);
14581 ; return 0; }
14582 EOF
14583 if { (eval echo configure:14584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14584   rm -rf conftest*
14585   glibcpp_cv_func_atan2f_use=yes
14586 else
14587   echo "configure: failed program was:" >&5
14588   cat conftest.$ac_ext >&5
14589   rm -rf conftest*
14590   glibcpp_cv_func_atan2f_use=no
14591 fi
14592 rm -f conftest*
14593       ac_ext=c
14594 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14595 ac_cpp='$CPP $CPPFLAGS'
14596 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14597 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14598 cross_compiling=$ac_cv_prog_cc_cross
14599
14600     
14601 fi
14602
14603   fi
14604   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
14605
14606   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
14607     for ac_func in atan2f
14608 do
14609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14610 echo "configure:14611: checking for $ac_func" >&5
14611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14612   echo $ac_n "(cached) $ac_c" 1>&6
14613 else
14614   cat > conftest.$ac_ext <<EOF
14615 #line 14616 "configure"
14616 #include "confdefs.h"
14617 /* System header to define __stub macros and hopefully few prototypes,
14618     which can conflict with char $ac_func(); below.  */
14619 #include <assert.h>
14620 /* Override any gcc2 internal prototype to avoid an error.  */
14621 /* We use char because int might match the return type of a gcc2
14622     builtin and then its argument prototype would still apply.  */
14623 char $ac_func();
14624
14625 int main() {
14626
14627 /* The GNU C library defines this for functions which it implements
14628     to always fail with ENOSYS.  Some functions are actually named
14629     something starting with __ and the normal name is an alias.  */
14630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14631 choke me
14632 #else
14633 $ac_func();
14634 #endif
14635
14636 ; return 0; }
14637 EOF
14638 if { (eval echo configure:14639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14639   rm -rf conftest*
14640   eval "ac_cv_func_$ac_func=yes"
14641 else
14642   echo "configure: failed program was:" >&5
14643   cat conftest.$ac_ext >&5
14644   rm -rf conftest*
14645   eval "ac_cv_func_$ac_func=no"
14646 fi
14647 rm -f conftest*
14648 fi
14649
14650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14651   echo "$ac_t""yes" 1>&6
14652     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14653   cat >> confdefs.h <<EOF
14654 #define $ac_tr_func 1
14655 EOF
14656  
14657 else
14658   echo "$ac_t""no" 1>&6
14659 fi
14660 done
14661     
14662   else
14663     
14664   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
14665 echo "configure:14666: checking for _atan2f declaration" >&5
14666   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
14667     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
14668   echo $ac_n "(cached) $ac_c" 1>&6
14669 else
14670   
14671       
14672       ac_ext=C
14673 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14674 ac_cpp='$CXXCPP $CPPFLAGS'
14675 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14676 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14677 cross_compiling=$ac_cv_prog_cxx_cross
14678
14679       cat > conftest.$ac_ext <<EOF
14680 #line 14681 "configure"
14681 #include "confdefs.h"
14682 #include <math.h>
14683 int main() {
14684  _atan2f(0, 0);
14685 ; return 0; }
14686 EOF
14687 if { (eval echo configure:14688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14688   rm -rf conftest*
14689   glibcpp_cv_func__atan2f_use=yes
14690 else
14691   echo "configure: failed program was:" >&5
14692   cat conftest.$ac_ext >&5
14693   rm -rf conftest*
14694   glibcpp_cv_func__atan2f_use=no
14695 fi
14696 rm -f conftest*
14697       ac_ext=c
14698 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14699 ac_cpp='$CPP $CPPFLAGS'
14700 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14701 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14702 cross_compiling=$ac_cv_prog_cc_cross
14703
14704     
14705 fi
14706
14707   fi
14708   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
14709
14710     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
14711       for ac_func in _atan2f
14712 do
14713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14714 echo "configure:14715: checking for $ac_func" >&5
14715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14716   echo $ac_n "(cached) $ac_c" 1>&6
14717 else
14718   cat > conftest.$ac_ext <<EOF
14719 #line 14720 "configure"
14720 #include "confdefs.h"
14721 /* System header to define __stub macros and hopefully few prototypes,
14722     which can conflict with char $ac_func(); below.  */
14723 #include <assert.h>
14724 /* Override any gcc2 internal prototype to avoid an error.  */
14725 /* We use char because int might match the return type of a gcc2
14726     builtin and then its argument prototype would still apply.  */
14727 char $ac_func();
14728
14729 int main() {
14730
14731 /* The GNU C library defines this for functions which it implements
14732     to always fail with ENOSYS.  Some functions are actually named
14733     something starting with __ and the normal name is an alias.  */
14734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14735 choke me
14736 #else
14737 $ac_func();
14738 #endif
14739
14740 ; return 0; }
14741 EOF
14742 if { (eval echo configure:14743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14743   rm -rf conftest*
14744   eval "ac_cv_func_$ac_func=yes"
14745 else
14746   echo "configure: failed program was:" >&5
14747   cat conftest.$ac_ext >&5
14748   rm -rf conftest*
14749   eval "ac_cv_func_$ac_func=no"
14750 fi
14751 rm -f conftest*
14752 fi
14753
14754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14755   echo "$ac_t""yes" 1>&6
14756     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14757   cat >> confdefs.h <<EOF
14758 #define $ac_tr_func 1
14759 EOF
14760  
14761 else
14762   echo "$ac_t""no" 1>&6
14763 fi
14764 done
14765     
14766     fi
14767   fi
14768
14769   
14770   
14771   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
14772 echo "configure:14773: checking for fabsf declaration" >&5
14773   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
14774     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
14775   echo $ac_n "(cached) $ac_c" 1>&6
14776 else
14777   
14778       
14779       ac_ext=C
14780 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14781 ac_cpp='$CXXCPP $CPPFLAGS'
14782 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14783 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14784 cross_compiling=$ac_cv_prog_cxx_cross
14785
14786       cat > conftest.$ac_ext <<EOF
14787 #line 14788 "configure"
14788 #include "confdefs.h"
14789 #include <math.h>
14790                       #ifdef HAVE_IEEEFP_H
14791                       #include <ieeefp.h>
14792                       #endif
14793                      
14794 int main() {
14795  fabsf(0);
14796 ; return 0; }
14797 EOF
14798 if { (eval echo configure:14799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14799   rm -rf conftest*
14800   glibcpp_cv_func_fabsf_use=yes
14801 else
14802   echo "configure: failed program was:" >&5
14803   cat conftest.$ac_ext >&5
14804   rm -rf conftest*
14805   glibcpp_cv_func_fabsf_use=no
14806 fi
14807 rm -f conftest*
14808       ac_ext=c
14809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14810 ac_cpp='$CPP $CPPFLAGS'
14811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14813 cross_compiling=$ac_cv_prog_cc_cross
14814
14815     
14816 fi
14817
14818   fi
14819   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
14820
14821   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
14822     for ac_func in fabsf
14823 do
14824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14825 echo "configure:14826: checking for $ac_func" >&5
14826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14827   echo $ac_n "(cached) $ac_c" 1>&6
14828 else
14829   cat > conftest.$ac_ext <<EOF
14830 #line 14831 "configure"
14831 #include "confdefs.h"
14832 /* System header to define __stub macros and hopefully few prototypes,
14833     which can conflict with char $ac_func(); below.  */
14834 #include <assert.h>
14835 /* Override any gcc2 internal prototype to avoid an error.  */
14836 /* We use char because int might match the return type of a gcc2
14837     builtin and then its argument prototype would still apply.  */
14838 char $ac_func();
14839
14840 int main() {
14841
14842 /* The GNU C library defines this for functions which it implements
14843     to always fail with ENOSYS.  Some functions are actually named
14844     something starting with __ and the normal name is an alias.  */
14845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14846 choke me
14847 #else
14848 $ac_func();
14849 #endif
14850
14851 ; return 0; }
14852 EOF
14853 if { (eval echo configure:14854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14854   rm -rf conftest*
14855   eval "ac_cv_func_$ac_func=yes"
14856 else
14857   echo "configure: failed program was:" >&5
14858   cat conftest.$ac_ext >&5
14859   rm -rf conftest*
14860   eval "ac_cv_func_$ac_func=no"
14861 fi
14862 rm -f conftest*
14863 fi
14864
14865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14866   echo "$ac_t""yes" 1>&6
14867     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14868   cat >> confdefs.h <<EOF
14869 #define $ac_tr_func 1
14870 EOF
14871  
14872 else
14873   echo "$ac_t""no" 1>&6
14874 fi
14875 done
14876     
14877   else
14878     
14879   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
14880 echo "configure:14881: checking for _fabsf declaration" >&5
14881   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
14882     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
14883   echo $ac_n "(cached) $ac_c" 1>&6
14884 else
14885   
14886       
14887       ac_ext=C
14888 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14889 ac_cpp='$CXXCPP $CPPFLAGS'
14890 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14891 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14892 cross_compiling=$ac_cv_prog_cxx_cross
14893
14894       cat > conftest.$ac_ext <<EOF
14895 #line 14896 "configure"
14896 #include "confdefs.h"
14897 #include <math.h>
14898                       #ifdef HAVE_IEEEFP_H
14899                       #include <ieeefp.h>
14900                       #endif
14901                      
14902 int main() {
14903  _fabsf(0);
14904 ; return 0; }
14905 EOF
14906 if { (eval echo configure:14907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14907   rm -rf conftest*
14908   glibcpp_cv_func__fabsf_use=yes
14909 else
14910   echo "configure: failed program was:" >&5
14911   cat conftest.$ac_ext >&5
14912   rm -rf conftest*
14913   glibcpp_cv_func__fabsf_use=no
14914 fi
14915 rm -f conftest*
14916       ac_ext=c
14917 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14918 ac_cpp='$CPP $CPPFLAGS'
14919 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14920 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14921 cross_compiling=$ac_cv_prog_cc_cross
14922
14923     
14924 fi
14925
14926   fi
14927   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
14928
14929     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
14930       for ac_func in _fabsf
14931 do
14932 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14933 echo "configure:14934: checking for $ac_func" >&5
14934 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14935   echo $ac_n "(cached) $ac_c" 1>&6
14936 else
14937   cat > conftest.$ac_ext <<EOF
14938 #line 14939 "configure"
14939 #include "confdefs.h"
14940 /* System header to define __stub macros and hopefully few prototypes,
14941     which can conflict with char $ac_func(); below.  */
14942 #include <assert.h>
14943 /* Override any gcc2 internal prototype to avoid an error.  */
14944 /* We use char because int might match the return type of a gcc2
14945     builtin and then its argument prototype would still apply.  */
14946 char $ac_func();
14947
14948 int main() {
14949
14950 /* The GNU C library defines this for functions which it implements
14951     to always fail with ENOSYS.  Some functions are actually named
14952     something starting with __ and the normal name is an alias.  */
14953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14954 choke me
14955 #else
14956 $ac_func();
14957 #endif
14958
14959 ; return 0; }
14960 EOF
14961 if { (eval echo configure:14962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14962   rm -rf conftest*
14963   eval "ac_cv_func_$ac_func=yes"
14964 else
14965   echo "configure: failed program was:" >&5
14966   cat conftest.$ac_ext >&5
14967   rm -rf conftest*
14968   eval "ac_cv_func_$ac_func=no"
14969 fi
14970 rm -f conftest*
14971 fi
14972
14973 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14974   echo "$ac_t""yes" 1>&6
14975     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14976   cat >> confdefs.h <<EOF
14977 #define $ac_tr_func 1
14978 EOF
14979  
14980 else
14981   echo "$ac_t""no" 1>&6
14982 fi
14983 done
14984     
14985     fi
14986   fi
14987
14988   
14989   
14990   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
14991 echo "configure:14992: checking for fmodf declaration" >&5
14992   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
14993     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
14994   echo $ac_n "(cached) $ac_c" 1>&6
14995 else
14996   
14997       
14998       ac_ext=C
14999 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15000 ac_cpp='$CXXCPP $CPPFLAGS'
15001 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15002 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15003 cross_compiling=$ac_cv_prog_cxx_cross
15004
15005       cat > conftest.$ac_ext <<EOF
15006 #line 15007 "configure"
15007 #include "confdefs.h"
15008 #include <math.h>
15009 int main() {
15010  fmodf(0, 0);
15011 ; return 0; }
15012 EOF
15013 if { (eval echo configure:15014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15014   rm -rf conftest*
15015   glibcpp_cv_func_fmodf_use=yes
15016 else
15017   echo "configure: failed program was:" >&5
15018   cat conftest.$ac_ext >&5
15019   rm -rf conftest*
15020   glibcpp_cv_func_fmodf_use=no
15021 fi
15022 rm -f conftest*
15023       ac_ext=c
15024 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15025 ac_cpp='$CPP $CPPFLAGS'
15026 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15027 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15028 cross_compiling=$ac_cv_prog_cc_cross
15029
15030     
15031 fi
15032
15033   fi
15034   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
15035
15036   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
15037     for ac_func in fmodf
15038 do
15039 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15040 echo "configure:15041: checking for $ac_func" >&5
15041 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15042   echo $ac_n "(cached) $ac_c" 1>&6
15043 else
15044   cat > conftest.$ac_ext <<EOF
15045 #line 15046 "configure"
15046 #include "confdefs.h"
15047 /* System header to define __stub macros and hopefully few prototypes,
15048     which can conflict with char $ac_func(); below.  */
15049 #include <assert.h>
15050 /* Override any gcc2 internal prototype to avoid an error.  */
15051 /* We use char because int might match the return type of a gcc2
15052     builtin and then its argument prototype would still apply.  */
15053 char $ac_func();
15054
15055 int main() {
15056
15057 /* The GNU C library defines this for functions which it implements
15058     to always fail with ENOSYS.  Some functions are actually named
15059     something starting with __ and the normal name is an alias.  */
15060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15061 choke me
15062 #else
15063 $ac_func();
15064 #endif
15065
15066 ; return 0; }
15067 EOF
15068 if { (eval echo configure:15069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15069   rm -rf conftest*
15070   eval "ac_cv_func_$ac_func=yes"
15071 else
15072   echo "configure: failed program was:" >&5
15073   cat conftest.$ac_ext >&5
15074   rm -rf conftest*
15075   eval "ac_cv_func_$ac_func=no"
15076 fi
15077 rm -f conftest*
15078 fi
15079
15080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15081   echo "$ac_t""yes" 1>&6
15082     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15083   cat >> confdefs.h <<EOF
15084 #define $ac_tr_func 1
15085 EOF
15086  
15087 else
15088   echo "$ac_t""no" 1>&6
15089 fi
15090 done
15091     
15092   else
15093     
15094   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
15095 echo "configure:15096: checking for _fmodf declaration" >&5
15096   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
15097     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
15098   echo $ac_n "(cached) $ac_c" 1>&6
15099 else
15100   
15101       
15102       ac_ext=C
15103 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15104 ac_cpp='$CXXCPP $CPPFLAGS'
15105 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15106 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15107 cross_compiling=$ac_cv_prog_cxx_cross
15108
15109       cat > conftest.$ac_ext <<EOF
15110 #line 15111 "configure"
15111 #include "confdefs.h"
15112 #include <math.h>
15113 int main() {
15114  _fmodf(0, 0);
15115 ; return 0; }
15116 EOF
15117 if { (eval echo configure:15118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15118   rm -rf conftest*
15119   glibcpp_cv_func__fmodf_use=yes
15120 else
15121   echo "configure: failed program was:" >&5
15122   cat conftest.$ac_ext >&5
15123   rm -rf conftest*
15124   glibcpp_cv_func__fmodf_use=no
15125 fi
15126 rm -f conftest*
15127       ac_ext=c
15128 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15129 ac_cpp='$CPP $CPPFLAGS'
15130 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15131 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15132 cross_compiling=$ac_cv_prog_cc_cross
15133
15134     
15135 fi
15136
15137   fi
15138   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
15139
15140     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
15141       for ac_func in _fmodf
15142 do
15143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15144 echo "configure:15145: checking for $ac_func" >&5
15145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15146   echo $ac_n "(cached) $ac_c" 1>&6
15147 else
15148   cat > conftest.$ac_ext <<EOF
15149 #line 15150 "configure"
15150 #include "confdefs.h"
15151 /* System header to define __stub macros and hopefully few prototypes,
15152     which can conflict with char $ac_func(); below.  */
15153 #include <assert.h>
15154 /* Override any gcc2 internal prototype to avoid an error.  */
15155 /* We use char because int might match the return type of a gcc2
15156     builtin and then its argument prototype would still apply.  */
15157 char $ac_func();
15158
15159 int main() {
15160
15161 /* The GNU C library defines this for functions which it implements
15162     to always fail with ENOSYS.  Some functions are actually named
15163     something starting with __ and the normal name is an alias.  */
15164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15165 choke me
15166 #else
15167 $ac_func();
15168 #endif
15169
15170 ; return 0; }
15171 EOF
15172 if { (eval echo configure:15173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15173   rm -rf conftest*
15174   eval "ac_cv_func_$ac_func=yes"
15175 else
15176   echo "configure: failed program was:" >&5
15177   cat conftest.$ac_ext >&5
15178   rm -rf conftest*
15179   eval "ac_cv_func_$ac_func=no"
15180 fi
15181 rm -f conftest*
15182 fi
15183
15184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15185   echo "$ac_t""yes" 1>&6
15186     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15187   cat >> confdefs.h <<EOF
15188 #define $ac_tr_func 1
15189 EOF
15190  
15191 else
15192   echo "$ac_t""no" 1>&6
15193 fi
15194 done
15195     
15196     fi
15197   fi
15198
15199   
15200   
15201   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
15202 echo "configure:15203: checking for frexpf declaration" >&5
15203   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
15204     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
15205   echo $ac_n "(cached) $ac_c" 1>&6
15206 else
15207   
15208       
15209       ac_ext=C
15210 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15211 ac_cpp='$CXXCPP $CPPFLAGS'
15212 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15213 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15214 cross_compiling=$ac_cv_prog_cxx_cross
15215
15216       cat > conftest.$ac_ext <<EOF
15217 #line 15218 "configure"
15218 #include "confdefs.h"
15219 #include <math.h>
15220 int main() {
15221  frexpf(0, 0);
15222 ; return 0; }
15223 EOF
15224 if { (eval echo configure:15225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15225   rm -rf conftest*
15226   glibcpp_cv_func_frexpf_use=yes
15227 else
15228   echo "configure: failed program was:" >&5
15229   cat conftest.$ac_ext >&5
15230   rm -rf conftest*
15231   glibcpp_cv_func_frexpf_use=no
15232 fi
15233 rm -f conftest*
15234       ac_ext=c
15235 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15236 ac_cpp='$CPP $CPPFLAGS'
15237 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15238 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15239 cross_compiling=$ac_cv_prog_cc_cross
15240
15241     
15242 fi
15243
15244   fi
15245   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
15246
15247   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
15248     for ac_func in frexpf
15249 do
15250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15251 echo "configure:15252: checking for $ac_func" >&5
15252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15253   echo $ac_n "(cached) $ac_c" 1>&6
15254 else
15255   cat > conftest.$ac_ext <<EOF
15256 #line 15257 "configure"
15257 #include "confdefs.h"
15258 /* System header to define __stub macros and hopefully few prototypes,
15259     which can conflict with char $ac_func(); below.  */
15260 #include <assert.h>
15261 /* Override any gcc2 internal prototype to avoid an error.  */
15262 /* We use char because int might match the return type of a gcc2
15263     builtin and then its argument prototype would still apply.  */
15264 char $ac_func();
15265
15266 int main() {
15267
15268 /* The GNU C library defines this for functions which it implements
15269     to always fail with ENOSYS.  Some functions are actually named
15270     something starting with __ and the normal name is an alias.  */
15271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15272 choke me
15273 #else
15274 $ac_func();
15275 #endif
15276
15277 ; return 0; }
15278 EOF
15279 if { (eval echo configure:15280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15280   rm -rf conftest*
15281   eval "ac_cv_func_$ac_func=yes"
15282 else
15283   echo "configure: failed program was:" >&5
15284   cat conftest.$ac_ext >&5
15285   rm -rf conftest*
15286   eval "ac_cv_func_$ac_func=no"
15287 fi
15288 rm -f conftest*
15289 fi
15290
15291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15292   echo "$ac_t""yes" 1>&6
15293     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15294   cat >> confdefs.h <<EOF
15295 #define $ac_tr_func 1
15296 EOF
15297  
15298 else
15299   echo "$ac_t""no" 1>&6
15300 fi
15301 done
15302     
15303   else
15304     
15305   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
15306 echo "configure:15307: checking for _frexpf declaration" >&5
15307   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
15308     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
15309   echo $ac_n "(cached) $ac_c" 1>&6
15310 else
15311   
15312       
15313       ac_ext=C
15314 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15315 ac_cpp='$CXXCPP $CPPFLAGS'
15316 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15317 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15318 cross_compiling=$ac_cv_prog_cxx_cross
15319
15320       cat > conftest.$ac_ext <<EOF
15321 #line 15322 "configure"
15322 #include "confdefs.h"
15323 #include <math.h>
15324 int main() {
15325  _frexpf(0, 0);
15326 ; return 0; }
15327 EOF
15328 if { (eval echo configure:15329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15329   rm -rf conftest*
15330   glibcpp_cv_func__frexpf_use=yes
15331 else
15332   echo "configure: failed program was:" >&5
15333   cat conftest.$ac_ext >&5
15334   rm -rf conftest*
15335   glibcpp_cv_func__frexpf_use=no
15336 fi
15337 rm -f conftest*
15338       ac_ext=c
15339 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15340 ac_cpp='$CPP $CPPFLAGS'
15341 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15342 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15343 cross_compiling=$ac_cv_prog_cc_cross
15344
15345     
15346 fi
15347
15348   fi
15349   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
15350
15351     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
15352       for ac_func in _frexpf
15353 do
15354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15355 echo "configure:15356: checking for $ac_func" >&5
15356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15357   echo $ac_n "(cached) $ac_c" 1>&6
15358 else
15359   cat > conftest.$ac_ext <<EOF
15360 #line 15361 "configure"
15361 #include "confdefs.h"
15362 /* System header to define __stub macros and hopefully few prototypes,
15363     which can conflict with char $ac_func(); below.  */
15364 #include <assert.h>
15365 /* Override any gcc2 internal prototype to avoid an error.  */
15366 /* We use char because int might match the return type of a gcc2
15367     builtin and then its argument prototype would still apply.  */
15368 char $ac_func();
15369
15370 int main() {
15371
15372 /* The GNU C library defines this for functions which it implements
15373     to always fail with ENOSYS.  Some functions are actually named
15374     something starting with __ and the normal name is an alias.  */
15375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15376 choke me
15377 #else
15378 $ac_func();
15379 #endif
15380
15381 ; return 0; }
15382 EOF
15383 if { (eval echo configure:15384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15384   rm -rf conftest*
15385   eval "ac_cv_func_$ac_func=yes"
15386 else
15387   echo "configure: failed program was:" >&5
15388   cat conftest.$ac_ext >&5
15389   rm -rf conftest*
15390   eval "ac_cv_func_$ac_func=no"
15391 fi
15392 rm -f conftest*
15393 fi
15394
15395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15396   echo "$ac_t""yes" 1>&6
15397     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15398   cat >> confdefs.h <<EOF
15399 #define $ac_tr_func 1
15400 EOF
15401  
15402 else
15403   echo "$ac_t""no" 1>&6
15404 fi
15405 done
15406     
15407     fi
15408   fi
15409
15410   
15411   
15412   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
15413 echo "configure:15414: checking for hypotf declaration" >&5
15414   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
15415     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
15416   echo $ac_n "(cached) $ac_c" 1>&6
15417 else
15418   
15419       
15420       ac_ext=C
15421 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15422 ac_cpp='$CXXCPP $CPPFLAGS'
15423 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15424 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15425 cross_compiling=$ac_cv_prog_cxx_cross
15426
15427       cat > conftest.$ac_ext <<EOF
15428 #line 15429 "configure"
15429 #include "confdefs.h"
15430 #include <math.h>
15431 int main() {
15432  hypotf(0, 0);
15433 ; return 0; }
15434 EOF
15435 if { (eval echo configure:15436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15436   rm -rf conftest*
15437   glibcpp_cv_func_hypotf_use=yes
15438 else
15439   echo "configure: failed program was:" >&5
15440   cat conftest.$ac_ext >&5
15441   rm -rf conftest*
15442   glibcpp_cv_func_hypotf_use=no
15443 fi
15444 rm -f conftest*
15445       ac_ext=c
15446 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15447 ac_cpp='$CPP $CPPFLAGS'
15448 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15449 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15450 cross_compiling=$ac_cv_prog_cc_cross
15451
15452     
15453 fi
15454
15455   fi
15456   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
15457
15458   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
15459     for ac_func in hypotf
15460 do
15461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15462 echo "configure:15463: checking for $ac_func" >&5
15463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15464   echo $ac_n "(cached) $ac_c" 1>&6
15465 else
15466   cat > conftest.$ac_ext <<EOF
15467 #line 15468 "configure"
15468 #include "confdefs.h"
15469 /* System header to define __stub macros and hopefully few prototypes,
15470     which can conflict with char $ac_func(); below.  */
15471 #include <assert.h>
15472 /* Override any gcc2 internal prototype to avoid an error.  */
15473 /* We use char because int might match the return type of a gcc2
15474     builtin and then its argument prototype would still apply.  */
15475 char $ac_func();
15476
15477 int main() {
15478
15479 /* The GNU C library defines this for functions which it implements
15480     to always fail with ENOSYS.  Some functions are actually named
15481     something starting with __ and the normal name is an alias.  */
15482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15483 choke me
15484 #else
15485 $ac_func();
15486 #endif
15487
15488 ; return 0; }
15489 EOF
15490 if { (eval echo configure:15491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15491   rm -rf conftest*
15492   eval "ac_cv_func_$ac_func=yes"
15493 else
15494   echo "configure: failed program was:" >&5
15495   cat conftest.$ac_ext >&5
15496   rm -rf conftest*
15497   eval "ac_cv_func_$ac_func=no"
15498 fi
15499 rm -f conftest*
15500 fi
15501
15502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15503   echo "$ac_t""yes" 1>&6
15504     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15505   cat >> confdefs.h <<EOF
15506 #define $ac_tr_func 1
15507 EOF
15508  
15509 else
15510   echo "$ac_t""no" 1>&6
15511 fi
15512 done
15513     
15514   else
15515     
15516   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
15517 echo "configure:15518: checking for _hypotf declaration" >&5
15518   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
15519     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
15520   echo $ac_n "(cached) $ac_c" 1>&6
15521 else
15522   
15523       
15524       ac_ext=C
15525 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15526 ac_cpp='$CXXCPP $CPPFLAGS'
15527 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15528 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15529 cross_compiling=$ac_cv_prog_cxx_cross
15530
15531       cat > conftest.$ac_ext <<EOF
15532 #line 15533 "configure"
15533 #include "confdefs.h"
15534 #include <math.h>
15535 int main() {
15536  _hypotf(0, 0);
15537 ; return 0; }
15538 EOF
15539 if { (eval echo configure:15540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15540   rm -rf conftest*
15541   glibcpp_cv_func__hypotf_use=yes
15542 else
15543   echo "configure: failed program was:" >&5
15544   cat conftest.$ac_ext >&5
15545   rm -rf conftest*
15546   glibcpp_cv_func__hypotf_use=no
15547 fi
15548 rm -f conftest*
15549       ac_ext=c
15550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15551 ac_cpp='$CPP $CPPFLAGS'
15552 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15553 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15554 cross_compiling=$ac_cv_prog_cc_cross
15555
15556     
15557 fi
15558
15559   fi
15560   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
15561
15562     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
15563       for ac_func in _hypotf
15564 do
15565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15566 echo "configure:15567: checking for $ac_func" >&5
15567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15568   echo $ac_n "(cached) $ac_c" 1>&6
15569 else
15570   cat > conftest.$ac_ext <<EOF
15571 #line 15572 "configure"
15572 #include "confdefs.h"
15573 /* System header to define __stub macros and hopefully few prototypes,
15574     which can conflict with char $ac_func(); below.  */
15575 #include <assert.h>
15576 /* Override any gcc2 internal prototype to avoid an error.  */
15577 /* We use char because int might match the return type of a gcc2
15578     builtin and then its argument prototype would still apply.  */
15579 char $ac_func();
15580
15581 int main() {
15582
15583 /* The GNU C library defines this for functions which it implements
15584     to always fail with ENOSYS.  Some functions are actually named
15585     something starting with __ and the normal name is an alias.  */
15586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15587 choke me
15588 #else
15589 $ac_func();
15590 #endif
15591
15592 ; return 0; }
15593 EOF
15594 if { (eval echo configure:15595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15595   rm -rf conftest*
15596   eval "ac_cv_func_$ac_func=yes"
15597 else
15598   echo "configure: failed program was:" >&5
15599   cat conftest.$ac_ext >&5
15600   rm -rf conftest*
15601   eval "ac_cv_func_$ac_func=no"
15602 fi
15603 rm -f conftest*
15604 fi
15605
15606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15607   echo "$ac_t""yes" 1>&6
15608     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15609   cat >> confdefs.h <<EOF
15610 #define $ac_tr_func 1
15611 EOF
15612  
15613 else
15614   echo "$ac_t""no" 1>&6
15615 fi
15616 done
15617     
15618     fi
15619   fi
15620
15621   
15622   
15623   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
15624 echo "configure:15625: checking for ldexpf declaration" >&5
15625   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
15626     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
15627   echo $ac_n "(cached) $ac_c" 1>&6
15628 else
15629   
15630       
15631       ac_ext=C
15632 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15633 ac_cpp='$CXXCPP $CPPFLAGS'
15634 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15635 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15636 cross_compiling=$ac_cv_prog_cxx_cross
15637
15638       cat > conftest.$ac_ext <<EOF
15639 #line 15640 "configure"
15640 #include "confdefs.h"
15641 #include <math.h>
15642 int main() {
15643  ldexpf(0, 0);
15644 ; return 0; }
15645 EOF
15646 if { (eval echo configure:15647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15647   rm -rf conftest*
15648   glibcpp_cv_func_ldexpf_use=yes
15649 else
15650   echo "configure: failed program was:" >&5
15651   cat conftest.$ac_ext >&5
15652   rm -rf conftest*
15653   glibcpp_cv_func_ldexpf_use=no
15654 fi
15655 rm -f conftest*
15656       ac_ext=c
15657 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15658 ac_cpp='$CPP $CPPFLAGS'
15659 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15660 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15661 cross_compiling=$ac_cv_prog_cc_cross
15662
15663     
15664 fi
15665
15666   fi
15667   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
15668
15669   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
15670     for ac_func in ldexpf
15671 do
15672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15673 echo "configure:15674: checking for $ac_func" >&5
15674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15675   echo $ac_n "(cached) $ac_c" 1>&6
15676 else
15677   cat > conftest.$ac_ext <<EOF
15678 #line 15679 "configure"
15679 #include "confdefs.h"
15680 /* System header to define __stub macros and hopefully few prototypes,
15681     which can conflict with char $ac_func(); below.  */
15682 #include <assert.h>
15683 /* Override any gcc2 internal prototype to avoid an error.  */
15684 /* We use char because int might match the return type of a gcc2
15685     builtin and then its argument prototype would still apply.  */
15686 char $ac_func();
15687
15688 int main() {
15689
15690 /* The GNU C library defines this for functions which it implements
15691     to always fail with ENOSYS.  Some functions are actually named
15692     something starting with __ and the normal name is an alias.  */
15693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15694 choke me
15695 #else
15696 $ac_func();
15697 #endif
15698
15699 ; return 0; }
15700 EOF
15701 if { (eval echo configure:15702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15702   rm -rf conftest*
15703   eval "ac_cv_func_$ac_func=yes"
15704 else
15705   echo "configure: failed program was:" >&5
15706   cat conftest.$ac_ext >&5
15707   rm -rf conftest*
15708   eval "ac_cv_func_$ac_func=no"
15709 fi
15710 rm -f conftest*
15711 fi
15712
15713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15714   echo "$ac_t""yes" 1>&6
15715     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15716   cat >> confdefs.h <<EOF
15717 #define $ac_tr_func 1
15718 EOF
15719  
15720 else
15721   echo "$ac_t""no" 1>&6
15722 fi
15723 done
15724     
15725   else
15726     
15727   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
15728 echo "configure:15729: checking for _ldexpf declaration" >&5
15729   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
15730     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
15731   echo $ac_n "(cached) $ac_c" 1>&6
15732 else
15733   
15734       
15735       ac_ext=C
15736 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15737 ac_cpp='$CXXCPP $CPPFLAGS'
15738 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15739 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15740 cross_compiling=$ac_cv_prog_cxx_cross
15741
15742       cat > conftest.$ac_ext <<EOF
15743 #line 15744 "configure"
15744 #include "confdefs.h"
15745 #include <math.h>
15746 int main() {
15747  _ldexpf(0, 0);
15748 ; return 0; }
15749 EOF
15750 if { (eval echo configure:15751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15751   rm -rf conftest*
15752   glibcpp_cv_func__ldexpf_use=yes
15753 else
15754   echo "configure: failed program was:" >&5
15755   cat conftest.$ac_ext >&5
15756   rm -rf conftest*
15757   glibcpp_cv_func__ldexpf_use=no
15758 fi
15759 rm -f conftest*
15760       ac_ext=c
15761 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15762 ac_cpp='$CPP $CPPFLAGS'
15763 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15764 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15765 cross_compiling=$ac_cv_prog_cc_cross
15766
15767     
15768 fi
15769
15770   fi
15771   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
15772
15773     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
15774       for ac_func in _ldexpf
15775 do
15776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15777 echo "configure:15778: checking for $ac_func" >&5
15778 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15779   echo $ac_n "(cached) $ac_c" 1>&6
15780 else
15781   cat > conftest.$ac_ext <<EOF
15782 #line 15783 "configure"
15783 #include "confdefs.h"
15784 /* System header to define __stub macros and hopefully few prototypes,
15785     which can conflict with char $ac_func(); below.  */
15786 #include <assert.h>
15787 /* Override any gcc2 internal prototype to avoid an error.  */
15788 /* We use char because int might match the return type of a gcc2
15789     builtin and then its argument prototype would still apply.  */
15790 char $ac_func();
15791
15792 int main() {
15793
15794 /* The GNU C library defines this for functions which it implements
15795     to always fail with ENOSYS.  Some functions are actually named
15796     something starting with __ and the normal name is an alias.  */
15797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15798 choke me
15799 #else
15800 $ac_func();
15801 #endif
15802
15803 ; return 0; }
15804 EOF
15805 if { (eval echo configure:15806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15806   rm -rf conftest*
15807   eval "ac_cv_func_$ac_func=yes"
15808 else
15809   echo "configure: failed program was:" >&5
15810   cat conftest.$ac_ext >&5
15811   rm -rf conftest*
15812   eval "ac_cv_func_$ac_func=no"
15813 fi
15814 rm -f conftest*
15815 fi
15816
15817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15818   echo "$ac_t""yes" 1>&6
15819     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15820   cat >> confdefs.h <<EOF
15821 #define $ac_tr_func 1
15822 EOF
15823  
15824 else
15825   echo "$ac_t""no" 1>&6
15826 fi
15827 done
15828     
15829     fi
15830   fi
15831
15832   
15833   
15834   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
15835 echo "configure:15836: checking for logf declaration" >&5
15836   if test x${glibcpp_cv_func_logf_use+set} != xset; then
15837     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
15838   echo $ac_n "(cached) $ac_c" 1>&6
15839 else
15840   
15841       
15842       ac_ext=C
15843 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15844 ac_cpp='$CXXCPP $CPPFLAGS'
15845 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15846 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15847 cross_compiling=$ac_cv_prog_cxx_cross
15848
15849       cat > conftest.$ac_ext <<EOF
15850 #line 15851 "configure"
15851 #include "confdefs.h"
15852 #include <math.h>
15853                       #ifdef HAVE_IEEEFP_H
15854                       #include <ieeefp.h>
15855                       #endif
15856                      
15857 int main() {
15858  logf(0);
15859 ; return 0; }
15860 EOF
15861 if { (eval echo configure:15862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15862   rm -rf conftest*
15863   glibcpp_cv_func_logf_use=yes
15864 else
15865   echo "configure: failed program was:" >&5
15866   cat conftest.$ac_ext >&5
15867   rm -rf conftest*
15868   glibcpp_cv_func_logf_use=no
15869 fi
15870 rm -f conftest*
15871       ac_ext=c
15872 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15873 ac_cpp='$CPP $CPPFLAGS'
15874 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15875 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15876 cross_compiling=$ac_cv_prog_cc_cross
15877
15878     
15879 fi
15880
15881   fi
15882   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
15883
15884   if test x$glibcpp_cv_func_logf_use = x"yes"; then
15885     for ac_func in logf
15886 do
15887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15888 echo "configure:15889: checking for $ac_func" >&5
15889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15890   echo $ac_n "(cached) $ac_c" 1>&6
15891 else
15892   cat > conftest.$ac_ext <<EOF
15893 #line 15894 "configure"
15894 #include "confdefs.h"
15895 /* System header to define __stub macros and hopefully few prototypes,
15896     which can conflict with char $ac_func(); below.  */
15897 #include <assert.h>
15898 /* Override any gcc2 internal prototype to avoid an error.  */
15899 /* We use char because int might match the return type of a gcc2
15900     builtin and then its argument prototype would still apply.  */
15901 char $ac_func();
15902
15903 int main() {
15904
15905 /* The GNU C library defines this for functions which it implements
15906     to always fail with ENOSYS.  Some functions are actually named
15907     something starting with __ and the normal name is an alias.  */
15908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15909 choke me
15910 #else
15911 $ac_func();
15912 #endif
15913
15914 ; return 0; }
15915 EOF
15916 if { (eval echo configure:15917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15917   rm -rf conftest*
15918   eval "ac_cv_func_$ac_func=yes"
15919 else
15920   echo "configure: failed program was:" >&5
15921   cat conftest.$ac_ext >&5
15922   rm -rf conftest*
15923   eval "ac_cv_func_$ac_func=no"
15924 fi
15925 rm -f conftest*
15926 fi
15927
15928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15929   echo "$ac_t""yes" 1>&6
15930     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15931   cat >> confdefs.h <<EOF
15932 #define $ac_tr_func 1
15933 EOF
15934  
15935 else
15936   echo "$ac_t""no" 1>&6
15937 fi
15938 done
15939     
15940   else
15941     
15942   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
15943 echo "configure:15944: checking for _logf declaration" >&5
15944   if test x${glibcpp_cv_func__logf_use+set} != xset; then
15945     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
15946   echo $ac_n "(cached) $ac_c" 1>&6
15947 else
15948   
15949       
15950       ac_ext=C
15951 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15952 ac_cpp='$CXXCPP $CPPFLAGS'
15953 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15954 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15955 cross_compiling=$ac_cv_prog_cxx_cross
15956
15957       cat > conftest.$ac_ext <<EOF
15958 #line 15959 "configure"
15959 #include "confdefs.h"
15960 #include <math.h>
15961                       #ifdef HAVE_IEEEFP_H
15962                       #include <ieeefp.h>
15963                       #endif
15964                      
15965 int main() {
15966  _logf(0);
15967 ; return 0; }
15968 EOF
15969 if { (eval echo configure:15970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15970   rm -rf conftest*
15971   glibcpp_cv_func__logf_use=yes
15972 else
15973   echo "configure: failed program was:" >&5
15974   cat conftest.$ac_ext >&5
15975   rm -rf conftest*
15976   glibcpp_cv_func__logf_use=no
15977 fi
15978 rm -f conftest*
15979       ac_ext=c
15980 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15981 ac_cpp='$CPP $CPPFLAGS'
15982 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15983 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15984 cross_compiling=$ac_cv_prog_cc_cross
15985
15986     
15987 fi
15988
15989   fi
15990   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
15991
15992     if test x$glibcpp_cv_func__logf_use = x"yes"; then
15993       for ac_func in _logf
15994 do
15995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15996 echo "configure:15997: checking for $ac_func" >&5
15997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15998   echo $ac_n "(cached) $ac_c" 1>&6
15999 else
16000   cat > conftest.$ac_ext <<EOF
16001 #line 16002 "configure"
16002 #include "confdefs.h"
16003 /* System header to define __stub macros and hopefully few prototypes,
16004     which can conflict with char $ac_func(); below.  */
16005 #include <assert.h>
16006 /* Override any gcc2 internal prototype to avoid an error.  */
16007 /* We use char because int might match the return type of a gcc2
16008     builtin and then its argument prototype would still apply.  */
16009 char $ac_func();
16010
16011 int main() {
16012
16013 /* The GNU C library defines this for functions which it implements
16014     to always fail with ENOSYS.  Some functions are actually named
16015     something starting with __ and the normal name is an alias.  */
16016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16017 choke me
16018 #else
16019 $ac_func();
16020 #endif
16021
16022 ; return 0; }
16023 EOF
16024 if { (eval echo configure:16025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16025   rm -rf conftest*
16026   eval "ac_cv_func_$ac_func=yes"
16027 else
16028   echo "configure: failed program was:" >&5
16029   cat conftest.$ac_ext >&5
16030   rm -rf conftest*
16031   eval "ac_cv_func_$ac_func=no"
16032 fi
16033 rm -f conftest*
16034 fi
16035
16036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16037   echo "$ac_t""yes" 1>&6
16038     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16039   cat >> confdefs.h <<EOF
16040 #define $ac_tr_func 1
16041 EOF
16042  
16043 else
16044   echo "$ac_t""no" 1>&6
16045 fi
16046 done
16047     
16048     fi
16049   fi
16050
16051   
16052   
16053   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
16054 echo "configure:16055: checking for log10f declaration" >&5
16055   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
16056     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
16057   echo $ac_n "(cached) $ac_c" 1>&6
16058 else
16059   
16060       
16061       ac_ext=C
16062 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16063 ac_cpp='$CXXCPP $CPPFLAGS'
16064 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16065 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16066 cross_compiling=$ac_cv_prog_cxx_cross
16067
16068       cat > conftest.$ac_ext <<EOF
16069 #line 16070 "configure"
16070 #include "confdefs.h"
16071 #include <math.h>
16072                       #ifdef HAVE_IEEEFP_H
16073                       #include <ieeefp.h>
16074                       #endif
16075                      
16076 int main() {
16077  log10f(0);
16078 ; return 0; }
16079 EOF
16080 if { (eval echo configure:16081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16081   rm -rf conftest*
16082   glibcpp_cv_func_log10f_use=yes
16083 else
16084   echo "configure: failed program was:" >&5
16085   cat conftest.$ac_ext >&5
16086   rm -rf conftest*
16087   glibcpp_cv_func_log10f_use=no
16088 fi
16089 rm -f conftest*
16090       ac_ext=c
16091 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16092 ac_cpp='$CPP $CPPFLAGS'
16093 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16094 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16095 cross_compiling=$ac_cv_prog_cc_cross
16096
16097     
16098 fi
16099
16100   fi
16101   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
16102
16103   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
16104     for ac_func in log10f
16105 do
16106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16107 echo "configure:16108: checking for $ac_func" >&5
16108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16109   echo $ac_n "(cached) $ac_c" 1>&6
16110 else
16111   cat > conftest.$ac_ext <<EOF
16112 #line 16113 "configure"
16113 #include "confdefs.h"
16114 /* System header to define __stub macros and hopefully few prototypes,
16115     which can conflict with char $ac_func(); below.  */
16116 #include <assert.h>
16117 /* Override any gcc2 internal prototype to avoid an error.  */
16118 /* We use char because int might match the return type of a gcc2
16119     builtin and then its argument prototype would still apply.  */
16120 char $ac_func();
16121
16122 int main() {
16123
16124 /* The GNU C library defines this for functions which it implements
16125     to always fail with ENOSYS.  Some functions are actually named
16126     something starting with __ and the normal name is an alias.  */
16127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16128 choke me
16129 #else
16130 $ac_func();
16131 #endif
16132
16133 ; return 0; }
16134 EOF
16135 if { (eval echo configure:16136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16136   rm -rf conftest*
16137   eval "ac_cv_func_$ac_func=yes"
16138 else
16139   echo "configure: failed program was:" >&5
16140   cat conftest.$ac_ext >&5
16141   rm -rf conftest*
16142   eval "ac_cv_func_$ac_func=no"
16143 fi
16144 rm -f conftest*
16145 fi
16146
16147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16148   echo "$ac_t""yes" 1>&6
16149     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16150   cat >> confdefs.h <<EOF
16151 #define $ac_tr_func 1
16152 EOF
16153  
16154 else
16155   echo "$ac_t""no" 1>&6
16156 fi
16157 done
16158     
16159   else
16160     
16161   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
16162 echo "configure:16163: checking for _log10f declaration" >&5
16163   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
16164     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
16165   echo $ac_n "(cached) $ac_c" 1>&6
16166 else
16167   
16168       
16169       ac_ext=C
16170 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16171 ac_cpp='$CXXCPP $CPPFLAGS'
16172 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16173 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16174 cross_compiling=$ac_cv_prog_cxx_cross
16175
16176       cat > conftest.$ac_ext <<EOF
16177 #line 16178 "configure"
16178 #include "confdefs.h"
16179 #include <math.h>
16180                       #ifdef HAVE_IEEEFP_H
16181                       #include <ieeefp.h>
16182                       #endif
16183                      
16184 int main() {
16185  _log10f(0);
16186 ; return 0; }
16187 EOF
16188 if { (eval echo configure:16189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16189   rm -rf conftest*
16190   glibcpp_cv_func__log10f_use=yes
16191 else
16192   echo "configure: failed program was:" >&5
16193   cat conftest.$ac_ext >&5
16194   rm -rf conftest*
16195   glibcpp_cv_func__log10f_use=no
16196 fi
16197 rm -f conftest*
16198       ac_ext=c
16199 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16200 ac_cpp='$CPP $CPPFLAGS'
16201 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16202 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16203 cross_compiling=$ac_cv_prog_cc_cross
16204
16205     
16206 fi
16207
16208   fi
16209   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
16210
16211     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
16212       for ac_func in _log10f
16213 do
16214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16215 echo "configure:16216: checking for $ac_func" >&5
16216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16217   echo $ac_n "(cached) $ac_c" 1>&6
16218 else
16219   cat > conftest.$ac_ext <<EOF
16220 #line 16221 "configure"
16221 #include "confdefs.h"
16222 /* System header to define __stub macros and hopefully few prototypes,
16223     which can conflict with char $ac_func(); below.  */
16224 #include <assert.h>
16225 /* Override any gcc2 internal prototype to avoid an error.  */
16226 /* We use char because int might match the return type of a gcc2
16227     builtin and then its argument prototype would still apply.  */
16228 char $ac_func();
16229
16230 int main() {
16231
16232 /* The GNU C library defines this for functions which it implements
16233     to always fail with ENOSYS.  Some functions are actually named
16234     something starting with __ and the normal name is an alias.  */
16235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16236 choke me
16237 #else
16238 $ac_func();
16239 #endif
16240
16241 ; return 0; }
16242 EOF
16243 if { (eval echo configure:16244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16244   rm -rf conftest*
16245   eval "ac_cv_func_$ac_func=yes"
16246 else
16247   echo "configure: failed program was:" >&5
16248   cat conftest.$ac_ext >&5
16249   rm -rf conftest*
16250   eval "ac_cv_func_$ac_func=no"
16251 fi
16252 rm -f conftest*
16253 fi
16254
16255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16256   echo "$ac_t""yes" 1>&6
16257     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16258   cat >> confdefs.h <<EOF
16259 #define $ac_tr_func 1
16260 EOF
16261  
16262 else
16263   echo "$ac_t""no" 1>&6
16264 fi
16265 done
16266     
16267     fi
16268   fi
16269
16270   
16271   
16272   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
16273 echo "configure:16274: checking for modff declaration" >&5
16274   if test x${glibcpp_cv_func_modff_use+set} != xset; then
16275     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
16276   echo $ac_n "(cached) $ac_c" 1>&6
16277 else
16278   
16279       
16280       ac_ext=C
16281 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16282 ac_cpp='$CXXCPP $CPPFLAGS'
16283 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16284 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16285 cross_compiling=$ac_cv_prog_cxx_cross
16286
16287       cat > conftest.$ac_ext <<EOF
16288 #line 16289 "configure"
16289 #include "confdefs.h"
16290 #include <math.h>
16291 int main() {
16292  modff(0, 0);
16293 ; return 0; }
16294 EOF
16295 if { (eval echo configure:16296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16296   rm -rf conftest*
16297   glibcpp_cv_func_modff_use=yes
16298 else
16299   echo "configure: failed program was:" >&5
16300   cat conftest.$ac_ext >&5
16301   rm -rf conftest*
16302   glibcpp_cv_func_modff_use=no
16303 fi
16304 rm -f conftest*
16305       ac_ext=c
16306 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16307 ac_cpp='$CPP $CPPFLAGS'
16308 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16309 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16310 cross_compiling=$ac_cv_prog_cc_cross
16311
16312     
16313 fi
16314
16315   fi
16316   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
16317
16318   if test x$glibcpp_cv_func_modff_use = x"yes"; then
16319     for ac_func in modff
16320 do
16321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16322 echo "configure:16323: checking for $ac_func" >&5
16323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16324   echo $ac_n "(cached) $ac_c" 1>&6
16325 else
16326   cat > conftest.$ac_ext <<EOF
16327 #line 16328 "configure"
16328 #include "confdefs.h"
16329 /* System header to define __stub macros and hopefully few prototypes,
16330     which can conflict with char $ac_func(); below.  */
16331 #include <assert.h>
16332 /* Override any gcc2 internal prototype to avoid an error.  */
16333 /* We use char because int might match the return type of a gcc2
16334     builtin and then its argument prototype would still apply.  */
16335 char $ac_func();
16336
16337 int main() {
16338
16339 /* The GNU C library defines this for functions which it implements
16340     to always fail with ENOSYS.  Some functions are actually named
16341     something starting with __ and the normal name is an alias.  */
16342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16343 choke me
16344 #else
16345 $ac_func();
16346 #endif
16347
16348 ; return 0; }
16349 EOF
16350 if { (eval echo configure:16351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16351   rm -rf conftest*
16352   eval "ac_cv_func_$ac_func=yes"
16353 else
16354   echo "configure: failed program was:" >&5
16355   cat conftest.$ac_ext >&5
16356   rm -rf conftest*
16357   eval "ac_cv_func_$ac_func=no"
16358 fi
16359 rm -f conftest*
16360 fi
16361
16362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16363   echo "$ac_t""yes" 1>&6
16364     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16365   cat >> confdefs.h <<EOF
16366 #define $ac_tr_func 1
16367 EOF
16368  
16369 else
16370   echo "$ac_t""no" 1>&6
16371 fi
16372 done
16373     
16374   else
16375     
16376   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
16377 echo "configure:16378: checking for _modff declaration" >&5
16378   if test x${glibcpp_cv_func__modff_use+set} != xset; then
16379     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
16380   echo $ac_n "(cached) $ac_c" 1>&6
16381 else
16382   
16383       
16384       ac_ext=C
16385 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16386 ac_cpp='$CXXCPP $CPPFLAGS'
16387 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16388 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16389 cross_compiling=$ac_cv_prog_cxx_cross
16390
16391       cat > conftest.$ac_ext <<EOF
16392 #line 16393 "configure"
16393 #include "confdefs.h"
16394 #include <math.h>
16395 int main() {
16396  _modff(0, 0);
16397 ; return 0; }
16398 EOF
16399 if { (eval echo configure:16400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16400   rm -rf conftest*
16401   glibcpp_cv_func__modff_use=yes
16402 else
16403   echo "configure: failed program was:" >&5
16404   cat conftest.$ac_ext >&5
16405   rm -rf conftest*
16406   glibcpp_cv_func__modff_use=no
16407 fi
16408 rm -f conftest*
16409       ac_ext=c
16410 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16411 ac_cpp='$CPP $CPPFLAGS'
16412 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16413 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16414 cross_compiling=$ac_cv_prog_cc_cross
16415
16416     
16417 fi
16418
16419   fi
16420   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
16421
16422     if test x$glibcpp_cv_func__modff_use = x"yes"; then
16423       for ac_func in _modff
16424 do
16425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16426 echo "configure:16427: checking for $ac_func" >&5
16427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16428   echo $ac_n "(cached) $ac_c" 1>&6
16429 else
16430   cat > conftest.$ac_ext <<EOF
16431 #line 16432 "configure"
16432 #include "confdefs.h"
16433 /* System header to define __stub macros and hopefully few prototypes,
16434     which can conflict with char $ac_func(); below.  */
16435 #include <assert.h>
16436 /* Override any gcc2 internal prototype to avoid an error.  */
16437 /* We use char because int might match the return type of a gcc2
16438     builtin and then its argument prototype would still apply.  */
16439 char $ac_func();
16440
16441 int main() {
16442
16443 /* The GNU C library defines this for functions which it implements
16444     to always fail with ENOSYS.  Some functions are actually named
16445     something starting with __ and the normal name is an alias.  */
16446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16447 choke me
16448 #else
16449 $ac_func();
16450 #endif
16451
16452 ; return 0; }
16453 EOF
16454 if { (eval echo configure:16455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16455   rm -rf conftest*
16456   eval "ac_cv_func_$ac_func=yes"
16457 else
16458   echo "configure: failed program was:" >&5
16459   cat conftest.$ac_ext >&5
16460   rm -rf conftest*
16461   eval "ac_cv_func_$ac_func=no"
16462 fi
16463 rm -f conftest*
16464 fi
16465
16466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16467   echo "$ac_t""yes" 1>&6
16468     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16469   cat >> confdefs.h <<EOF
16470 #define $ac_tr_func 1
16471 EOF
16472  
16473 else
16474   echo "$ac_t""no" 1>&6
16475 fi
16476 done
16477     
16478     fi
16479   fi
16480
16481   
16482   
16483   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
16484 echo "configure:16485: checking for powf declaration" >&5
16485   if test x${glibcpp_cv_func_powf_use+set} != xset; then
16486     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
16487   echo $ac_n "(cached) $ac_c" 1>&6
16488 else
16489   
16490       
16491       ac_ext=C
16492 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16493 ac_cpp='$CXXCPP $CPPFLAGS'
16494 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16495 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16496 cross_compiling=$ac_cv_prog_cxx_cross
16497
16498       cat > conftest.$ac_ext <<EOF
16499 #line 16500 "configure"
16500 #include "confdefs.h"
16501 #include <math.h>
16502 int main() {
16503  powf(0, 0);
16504 ; return 0; }
16505 EOF
16506 if { (eval echo configure:16507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16507   rm -rf conftest*
16508   glibcpp_cv_func_powf_use=yes
16509 else
16510   echo "configure: failed program was:" >&5
16511   cat conftest.$ac_ext >&5
16512   rm -rf conftest*
16513   glibcpp_cv_func_powf_use=no
16514 fi
16515 rm -f conftest*
16516       ac_ext=c
16517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16518 ac_cpp='$CPP $CPPFLAGS'
16519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16520 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16521 cross_compiling=$ac_cv_prog_cc_cross
16522
16523     
16524 fi
16525
16526   fi
16527   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
16528
16529   if test x$glibcpp_cv_func_powf_use = x"yes"; then
16530     for ac_func in powf
16531 do
16532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16533 echo "configure:16534: checking for $ac_func" >&5
16534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16535   echo $ac_n "(cached) $ac_c" 1>&6
16536 else
16537   cat > conftest.$ac_ext <<EOF
16538 #line 16539 "configure"
16539 #include "confdefs.h"
16540 /* System header to define __stub macros and hopefully few prototypes,
16541     which can conflict with char $ac_func(); below.  */
16542 #include <assert.h>
16543 /* Override any gcc2 internal prototype to avoid an error.  */
16544 /* We use char because int might match the return type of a gcc2
16545     builtin and then its argument prototype would still apply.  */
16546 char $ac_func();
16547
16548 int main() {
16549
16550 /* The GNU C library defines this for functions which it implements
16551     to always fail with ENOSYS.  Some functions are actually named
16552     something starting with __ and the normal name is an alias.  */
16553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16554 choke me
16555 #else
16556 $ac_func();
16557 #endif
16558
16559 ; return 0; }
16560 EOF
16561 if { (eval echo configure:16562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16562   rm -rf conftest*
16563   eval "ac_cv_func_$ac_func=yes"
16564 else
16565   echo "configure: failed program was:" >&5
16566   cat conftest.$ac_ext >&5
16567   rm -rf conftest*
16568   eval "ac_cv_func_$ac_func=no"
16569 fi
16570 rm -f conftest*
16571 fi
16572
16573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16574   echo "$ac_t""yes" 1>&6
16575     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16576   cat >> confdefs.h <<EOF
16577 #define $ac_tr_func 1
16578 EOF
16579  
16580 else
16581   echo "$ac_t""no" 1>&6
16582 fi
16583 done
16584     
16585   else
16586     
16587   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
16588 echo "configure:16589: checking for _powf declaration" >&5
16589   if test x${glibcpp_cv_func__powf_use+set} != xset; then
16590     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
16591   echo $ac_n "(cached) $ac_c" 1>&6
16592 else
16593   
16594       
16595       ac_ext=C
16596 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16597 ac_cpp='$CXXCPP $CPPFLAGS'
16598 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16599 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16600 cross_compiling=$ac_cv_prog_cxx_cross
16601
16602       cat > conftest.$ac_ext <<EOF
16603 #line 16604 "configure"
16604 #include "confdefs.h"
16605 #include <math.h>
16606 int main() {
16607  _powf(0, 0);
16608 ; return 0; }
16609 EOF
16610 if { (eval echo configure:16611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16611   rm -rf conftest*
16612   glibcpp_cv_func__powf_use=yes
16613 else
16614   echo "configure: failed program was:" >&5
16615   cat conftest.$ac_ext >&5
16616   rm -rf conftest*
16617   glibcpp_cv_func__powf_use=no
16618 fi
16619 rm -f conftest*
16620       ac_ext=c
16621 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16622 ac_cpp='$CPP $CPPFLAGS'
16623 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16624 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16625 cross_compiling=$ac_cv_prog_cc_cross
16626
16627     
16628 fi
16629
16630   fi
16631   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
16632
16633     if test x$glibcpp_cv_func__powf_use = x"yes"; then
16634       for ac_func in _powf
16635 do
16636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16637 echo "configure:16638: checking for $ac_func" >&5
16638 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16639   echo $ac_n "(cached) $ac_c" 1>&6
16640 else
16641   cat > conftest.$ac_ext <<EOF
16642 #line 16643 "configure"
16643 #include "confdefs.h"
16644 /* System header to define __stub macros and hopefully few prototypes,
16645     which can conflict with char $ac_func(); below.  */
16646 #include <assert.h>
16647 /* Override any gcc2 internal prototype to avoid an error.  */
16648 /* We use char because int might match the return type of a gcc2
16649     builtin and then its argument prototype would still apply.  */
16650 char $ac_func();
16651
16652 int main() {
16653
16654 /* The GNU C library defines this for functions which it implements
16655     to always fail with ENOSYS.  Some functions are actually named
16656     something starting with __ and the normal name is an alias.  */
16657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16658 choke me
16659 #else
16660 $ac_func();
16661 #endif
16662
16663 ; return 0; }
16664 EOF
16665 if { (eval echo configure:16666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16666   rm -rf conftest*
16667   eval "ac_cv_func_$ac_func=yes"
16668 else
16669   echo "configure: failed program was:" >&5
16670   cat conftest.$ac_ext >&5
16671   rm -rf conftest*
16672   eval "ac_cv_func_$ac_func=no"
16673 fi
16674 rm -f conftest*
16675 fi
16676
16677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16678   echo "$ac_t""yes" 1>&6
16679     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16680   cat >> confdefs.h <<EOF
16681 #define $ac_tr_func 1
16682 EOF
16683  
16684 else
16685   echo "$ac_t""no" 1>&6
16686 fi
16687 done
16688     
16689     fi
16690   fi
16691
16692   
16693   
16694   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
16695 echo "configure:16696: checking for sqrtf declaration" >&5
16696   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
16697     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
16698   echo $ac_n "(cached) $ac_c" 1>&6
16699 else
16700   
16701       
16702       ac_ext=C
16703 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16704 ac_cpp='$CXXCPP $CPPFLAGS'
16705 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16706 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16707 cross_compiling=$ac_cv_prog_cxx_cross
16708
16709       cat > conftest.$ac_ext <<EOF
16710 #line 16711 "configure"
16711 #include "confdefs.h"
16712 #include <math.h>
16713                       #ifdef HAVE_IEEEFP_H
16714                       #include <ieeefp.h>
16715                       #endif
16716                      
16717 int main() {
16718  sqrtf(0);
16719 ; return 0; }
16720 EOF
16721 if { (eval echo configure:16722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16722   rm -rf conftest*
16723   glibcpp_cv_func_sqrtf_use=yes
16724 else
16725   echo "configure: failed program was:" >&5
16726   cat conftest.$ac_ext >&5
16727   rm -rf conftest*
16728   glibcpp_cv_func_sqrtf_use=no
16729 fi
16730 rm -f conftest*
16731       ac_ext=c
16732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16733 ac_cpp='$CPP $CPPFLAGS'
16734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16736 cross_compiling=$ac_cv_prog_cc_cross
16737
16738     
16739 fi
16740
16741   fi
16742   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
16743
16744   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
16745     for ac_func in sqrtf
16746 do
16747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16748 echo "configure:16749: checking for $ac_func" >&5
16749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16750   echo $ac_n "(cached) $ac_c" 1>&6
16751 else
16752   cat > conftest.$ac_ext <<EOF
16753 #line 16754 "configure"
16754 #include "confdefs.h"
16755 /* System header to define __stub macros and hopefully few prototypes,
16756     which can conflict with char $ac_func(); below.  */
16757 #include <assert.h>
16758 /* Override any gcc2 internal prototype to avoid an error.  */
16759 /* We use char because int might match the return type of a gcc2
16760     builtin and then its argument prototype would still apply.  */
16761 char $ac_func();
16762
16763 int main() {
16764
16765 /* The GNU C library defines this for functions which it implements
16766     to always fail with ENOSYS.  Some functions are actually named
16767     something starting with __ and the normal name is an alias.  */
16768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16769 choke me
16770 #else
16771 $ac_func();
16772 #endif
16773
16774 ; return 0; }
16775 EOF
16776 if { (eval echo configure:16777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16777   rm -rf conftest*
16778   eval "ac_cv_func_$ac_func=yes"
16779 else
16780   echo "configure: failed program was:" >&5
16781   cat conftest.$ac_ext >&5
16782   rm -rf conftest*
16783   eval "ac_cv_func_$ac_func=no"
16784 fi
16785 rm -f conftest*
16786 fi
16787
16788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16789   echo "$ac_t""yes" 1>&6
16790     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16791   cat >> confdefs.h <<EOF
16792 #define $ac_tr_func 1
16793 EOF
16794  
16795 else
16796   echo "$ac_t""no" 1>&6
16797 fi
16798 done
16799     
16800   else
16801     
16802   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
16803 echo "configure:16804: checking for _sqrtf declaration" >&5
16804   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
16805     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
16806   echo $ac_n "(cached) $ac_c" 1>&6
16807 else
16808   
16809       
16810       ac_ext=C
16811 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16812 ac_cpp='$CXXCPP $CPPFLAGS'
16813 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16814 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16815 cross_compiling=$ac_cv_prog_cxx_cross
16816
16817       cat > conftest.$ac_ext <<EOF
16818 #line 16819 "configure"
16819 #include "confdefs.h"
16820 #include <math.h>
16821                       #ifdef HAVE_IEEEFP_H
16822                       #include <ieeefp.h>
16823                       #endif
16824                      
16825 int main() {
16826  _sqrtf(0);
16827 ; return 0; }
16828 EOF
16829 if { (eval echo configure:16830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16830   rm -rf conftest*
16831   glibcpp_cv_func__sqrtf_use=yes
16832 else
16833   echo "configure: failed program was:" >&5
16834   cat conftest.$ac_ext >&5
16835   rm -rf conftest*
16836   glibcpp_cv_func__sqrtf_use=no
16837 fi
16838 rm -f conftest*
16839       ac_ext=c
16840 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16841 ac_cpp='$CPP $CPPFLAGS'
16842 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16843 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16844 cross_compiling=$ac_cv_prog_cc_cross
16845
16846     
16847 fi
16848
16849   fi
16850   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
16851
16852     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
16853       for ac_func in _sqrtf
16854 do
16855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16856 echo "configure:16857: checking for $ac_func" >&5
16857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16858   echo $ac_n "(cached) $ac_c" 1>&6
16859 else
16860   cat > conftest.$ac_ext <<EOF
16861 #line 16862 "configure"
16862 #include "confdefs.h"
16863 /* System header to define __stub macros and hopefully few prototypes,
16864     which can conflict with char $ac_func(); below.  */
16865 #include <assert.h>
16866 /* Override any gcc2 internal prototype to avoid an error.  */
16867 /* We use char because int might match the return type of a gcc2
16868     builtin and then its argument prototype would still apply.  */
16869 char $ac_func();
16870
16871 int main() {
16872
16873 /* The GNU C library defines this for functions which it implements
16874     to always fail with ENOSYS.  Some functions are actually named
16875     something starting with __ and the normal name is an alias.  */
16876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16877 choke me
16878 #else
16879 $ac_func();
16880 #endif
16881
16882 ; return 0; }
16883 EOF
16884 if { (eval echo configure:16885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16885   rm -rf conftest*
16886   eval "ac_cv_func_$ac_func=yes"
16887 else
16888   echo "configure: failed program was:" >&5
16889   cat conftest.$ac_ext >&5
16890   rm -rf conftest*
16891   eval "ac_cv_func_$ac_func=no"
16892 fi
16893 rm -f conftest*
16894 fi
16895
16896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16897   echo "$ac_t""yes" 1>&6
16898     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16899   cat >> confdefs.h <<EOF
16900 #define $ac_tr_func 1
16901 EOF
16902  
16903 else
16904   echo "$ac_t""no" 1>&6
16905 fi
16906 done
16907     
16908     fi
16909   fi
16910
16911   
16912   
16913   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
16914 echo "configure:16915: checking for sincosf declaration" >&5
16915   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
16916     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
16917   echo $ac_n "(cached) $ac_c" 1>&6
16918 else
16919   
16920       
16921       ac_ext=C
16922 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16923 ac_cpp='$CXXCPP $CPPFLAGS'
16924 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16925 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16926 cross_compiling=$ac_cv_prog_cxx_cross
16927
16928       cat > conftest.$ac_ext <<EOF
16929 #line 16930 "configure"
16930 #include "confdefs.h"
16931 #include <math.h>
16932 int main() {
16933  sincosf(0, 0, 0);
16934 ; return 0; }
16935 EOF
16936 if { (eval echo configure:16937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16937   rm -rf conftest*
16938   glibcpp_cv_func_sincosf_use=yes
16939 else
16940   echo "configure: failed program was:" >&5
16941   cat conftest.$ac_ext >&5
16942   rm -rf conftest*
16943   glibcpp_cv_func_sincosf_use=no
16944 fi
16945 rm -f conftest*
16946       ac_ext=c
16947 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16948 ac_cpp='$CPP $CPPFLAGS'
16949 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16950 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16951 cross_compiling=$ac_cv_prog_cc_cross
16952
16953     
16954 fi
16955
16956   fi
16957   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
16958
16959   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
16960     for ac_func in sincosf
16961 do
16962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16963 echo "configure:16964: checking for $ac_func" >&5
16964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16965   echo $ac_n "(cached) $ac_c" 1>&6
16966 else
16967   cat > conftest.$ac_ext <<EOF
16968 #line 16969 "configure"
16969 #include "confdefs.h"
16970 /* System header to define __stub macros and hopefully few prototypes,
16971     which can conflict with char $ac_func(); below.  */
16972 #include <assert.h>
16973 /* Override any gcc2 internal prototype to avoid an error.  */
16974 /* We use char because int might match the return type of a gcc2
16975     builtin and then its argument prototype would still apply.  */
16976 char $ac_func();
16977
16978 int main() {
16979
16980 /* The GNU C library defines this for functions which it implements
16981     to always fail with ENOSYS.  Some functions are actually named
16982     something starting with __ and the normal name is an alias.  */
16983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16984 choke me
16985 #else
16986 $ac_func();
16987 #endif
16988
16989 ; return 0; }
16990 EOF
16991 if { (eval echo configure:16992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16992   rm -rf conftest*
16993   eval "ac_cv_func_$ac_func=yes"
16994 else
16995   echo "configure: failed program was:" >&5
16996   cat conftest.$ac_ext >&5
16997   rm -rf conftest*
16998   eval "ac_cv_func_$ac_func=no"
16999 fi
17000 rm -f conftest*
17001 fi
17002
17003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17004   echo "$ac_t""yes" 1>&6
17005     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17006   cat >> confdefs.h <<EOF
17007 #define $ac_tr_func 1
17008 EOF
17009  
17010 else
17011   echo "$ac_t""no" 1>&6
17012 fi
17013 done
17014     
17015   else
17016     
17017   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
17018 echo "configure:17019: checking for _sincosf declaration" >&5
17019   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
17020     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
17021   echo $ac_n "(cached) $ac_c" 1>&6
17022 else
17023   
17024       
17025       ac_ext=C
17026 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17027 ac_cpp='$CXXCPP $CPPFLAGS'
17028 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17029 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17030 cross_compiling=$ac_cv_prog_cxx_cross
17031
17032       cat > conftest.$ac_ext <<EOF
17033 #line 17034 "configure"
17034 #include "confdefs.h"
17035 #include <math.h>
17036 int main() {
17037  _sincosf(0, 0, 0);
17038 ; return 0; }
17039 EOF
17040 if { (eval echo configure:17041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17041   rm -rf conftest*
17042   glibcpp_cv_func__sincosf_use=yes
17043 else
17044   echo "configure: failed program was:" >&5
17045   cat conftest.$ac_ext >&5
17046   rm -rf conftest*
17047   glibcpp_cv_func__sincosf_use=no
17048 fi
17049 rm -f conftest*
17050       ac_ext=c
17051 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17052 ac_cpp='$CPP $CPPFLAGS'
17053 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17054 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17055 cross_compiling=$ac_cv_prog_cc_cross
17056
17057     
17058 fi
17059
17060   fi
17061   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
17062
17063     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
17064       for ac_func in _sincosf
17065 do
17066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17067 echo "configure:17068: checking for $ac_func" >&5
17068 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17069   echo $ac_n "(cached) $ac_c" 1>&6
17070 else
17071   cat > conftest.$ac_ext <<EOF
17072 #line 17073 "configure"
17073 #include "confdefs.h"
17074 /* System header to define __stub macros and hopefully few prototypes,
17075     which can conflict with char $ac_func(); below.  */
17076 #include <assert.h>
17077 /* Override any gcc2 internal prototype to avoid an error.  */
17078 /* We use char because int might match the return type of a gcc2
17079     builtin and then its argument prototype would still apply.  */
17080 char $ac_func();
17081
17082 int main() {
17083
17084 /* The GNU C library defines this for functions which it implements
17085     to always fail with ENOSYS.  Some functions are actually named
17086     something starting with __ and the normal name is an alias.  */
17087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17088 choke me
17089 #else
17090 $ac_func();
17091 #endif
17092
17093 ; return 0; }
17094 EOF
17095 if { (eval echo configure:17096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17096   rm -rf conftest*
17097   eval "ac_cv_func_$ac_func=yes"
17098 else
17099   echo "configure: failed program was:" >&5
17100   cat conftest.$ac_ext >&5
17101   rm -rf conftest*
17102   eval "ac_cv_func_$ac_func=no"
17103 fi
17104 rm -f conftest*
17105 fi
17106
17107 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17108   echo "$ac_t""yes" 1>&6
17109     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17110   cat >> confdefs.h <<EOF
17111 #define $ac_tr_func 1
17112 EOF
17113  
17114 else
17115   echo "$ac_t""no" 1>&6
17116 fi
17117 done
17118     
17119     fi
17120   fi
17121
17122   
17123   
17124   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
17125 echo "configure:17126: checking for finitef declaration" >&5
17126   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
17127     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
17128   echo $ac_n "(cached) $ac_c" 1>&6
17129 else
17130   
17131       
17132       ac_ext=C
17133 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17134 ac_cpp='$CXXCPP $CPPFLAGS'
17135 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17136 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17137 cross_compiling=$ac_cv_prog_cxx_cross
17138
17139       cat > conftest.$ac_ext <<EOF
17140 #line 17141 "configure"
17141 #include "confdefs.h"
17142 #include <math.h>
17143                       #ifdef HAVE_IEEEFP_H
17144                       #include <ieeefp.h>
17145                       #endif
17146                      
17147 int main() {
17148  finitef(0);
17149 ; return 0; }
17150 EOF
17151 if { (eval echo configure:17152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17152   rm -rf conftest*
17153   glibcpp_cv_func_finitef_use=yes
17154 else
17155   echo "configure: failed program was:" >&5
17156   cat conftest.$ac_ext >&5
17157   rm -rf conftest*
17158   glibcpp_cv_func_finitef_use=no
17159 fi
17160 rm -f conftest*
17161       ac_ext=c
17162 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17163 ac_cpp='$CPP $CPPFLAGS'
17164 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17165 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17166 cross_compiling=$ac_cv_prog_cc_cross
17167
17168     
17169 fi
17170
17171   fi
17172   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
17173
17174   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
17175     for ac_func in finitef
17176 do
17177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17178 echo "configure:17179: checking for $ac_func" >&5
17179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17180   echo $ac_n "(cached) $ac_c" 1>&6
17181 else
17182   cat > conftest.$ac_ext <<EOF
17183 #line 17184 "configure"
17184 #include "confdefs.h"
17185 /* System header to define __stub macros and hopefully few prototypes,
17186     which can conflict with char $ac_func(); below.  */
17187 #include <assert.h>
17188 /* Override any gcc2 internal prototype to avoid an error.  */
17189 /* We use char because int might match the return type of a gcc2
17190     builtin and then its argument prototype would still apply.  */
17191 char $ac_func();
17192
17193 int main() {
17194
17195 /* The GNU C library defines this for functions which it implements
17196     to always fail with ENOSYS.  Some functions are actually named
17197     something starting with __ and the normal name is an alias.  */
17198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17199 choke me
17200 #else
17201 $ac_func();
17202 #endif
17203
17204 ; return 0; }
17205 EOF
17206 if { (eval echo configure:17207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17207   rm -rf conftest*
17208   eval "ac_cv_func_$ac_func=yes"
17209 else
17210   echo "configure: failed program was:" >&5
17211   cat conftest.$ac_ext >&5
17212   rm -rf conftest*
17213   eval "ac_cv_func_$ac_func=no"
17214 fi
17215 rm -f conftest*
17216 fi
17217
17218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17219   echo "$ac_t""yes" 1>&6
17220     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17221   cat >> confdefs.h <<EOF
17222 #define $ac_tr_func 1
17223 EOF
17224  
17225 else
17226   echo "$ac_t""no" 1>&6
17227 fi
17228 done
17229     
17230   else
17231     
17232   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
17233 echo "configure:17234: checking for _finitef declaration" >&5
17234   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
17235     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
17236   echo $ac_n "(cached) $ac_c" 1>&6
17237 else
17238   
17239       
17240       ac_ext=C
17241 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17242 ac_cpp='$CXXCPP $CPPFLAGS'
17243 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17244 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17245 cross_compiling=$ac_cv_prog_cxx_cross
17246
17247       cat > conftest.$ac_ext <<EOF
17248 #line 17249 "configure"
17249 #include "confdefs.h"
17250 #include <math.h>
17251                       #ifdef HAVE_IEEEFP_H
17252                       #include <ieeefp.h>
17253                       #endif
17254                      
17255 int main() {
17256  _finitef(0);
17257 ; return 0; }
17258 EOF
17259 if { (eval echo configure:17260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17260   rm -rf conftest*
17261   glibcpp_cv_func__finitef_use=yes
17262 else
17263   echo "configure: failed program was:" >&5
17264   cat conftest.$ac_ext >&5
17265   rm -rf conftest*
17266   glibcpp_cv_func__finitef_use=no
17267 fi
17268 rm -f conftest*
17269       ac_ext=c
17270 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17271 ac_cpp='$CPP $CPPFLAGS'
17272 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17273 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17274 cross_compiling=$ac_cv_prog_cc_cross
17275
17276     
17277 fi
17278
17279   fi
17280   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
17281
17282     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
17283       for ac_func in _finitef
17284 do
17285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17286 echo "configure:17287: checking for $ac_func" >&5
17287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17288   echo $ac_n "(cached) $ac_c" 1>&6
17289 else
17290   cat > conftest.$ac_ext <<EOF
17291 #line 17292 "configure"
17292 #include "confdefs.h"
17293 /* System header to define __stub macros and hopefully few prototypes,
17294     which can conflict with char $ac_func(); below.  */
17295 #include <assert.h>
17296 /* Override any gcc2 internal prototype to avoid an error.  */
17297 /* We use char because int might match the return type of a gcc2
17298     builtin and then its argument prototype would still apply.  */
17299 char $ac_func();
17300
17301 int main() {
17302
17303 /* The GNU C library defines this for functions which it implements
17304     to always fail with ENOSYS.  Some functions are actually named
17305     something starting with __ and the normal name is an alias.  */
17306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17307 choke me
17308 #else
17309 $ac_func();
17310 #endif
17311
17312 ; return 0; }
17313 EOF
17314 if { (eval echo configure:17315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17315   rm -rf conftest*
17316   eval "ac_cv_func_$ac_func=yes"
17317 else
17318   echo "configure: failed program was:" >&5
17319   cat conftest.$ac_ext >&5
17320   rm -rf conftest*
17321   eval "ac_cv_func_$ac_func=no"
17322 fi
17323 rm -f conftest*
17324 fi
17325
17326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17327   echo "$ac_t""yes" 1>&6
17328     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17329   cat >> confdefs.h <<EOF
17330 #define $ac_tr_func 1
17331 EOF
17332  
17333 else
17334   echo "$ac_t""no" 1>&6
17335 fi
17336 done
17337     
17338     fi
17339   fi
17340
17341
17342     
17343   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
17344 echo "configure:17345: checking for long double trig functions" >&5
17345   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
17346   echo $ac_n "(cached) $ac_c" 1>&6
17347 else
17348   
17349     
17350     ac_ext=C
17351 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17352 ac_cpp='$CXXCPP $CPPFLAGS'
17353 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17354 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17355 cross_compiling=$ac_cv_prog_cxx_cross
17356
17357     cat > conftest.$ac_ext <<EOF
17358 #line 17359 "configure"
17359 #include "confdefs.h"
17360 #include <math.h>
17361 int main() {
17362  `for x in acosl asinl atanl \
17363                                           cosl sinl tanl \
17364                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
17365 ; return 0; }
17366 EOF
17367 if { (eval echo configure:17368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17368   rm -rf conftest*
17369   glibcpp_cv_func_long_double_trig_use=yes
17370 else
17371   echo "configure: failed program was:" >&5
17372   cat conftest.$ac_ext >&5
17373   rm -rf conftest*
17374   glibcpp_cv_func_long_double_trig_use=no
17375 fi
17376 rm -f conftest*
17377     ac_ext=c
17378 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17379 ac_cpp='$CPP $CPPFLAGS'
17380 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17381 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17382 cross_compiling=$ac_cv_prog_cc_cross
17383
17384 fi
17385
17386   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
17387   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
17388     for ac_func in acosl asinl atanl \
17389                                           cosl sinl tanl \
17390                                           coshl sinhl tanhl
17391 do
17392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17393 echo "configure:17394: checking for $ac_func" >&5
17394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17395   echo $ac_n "(cached) $ac_c" 1>&6
17396 else
17397   cat > conftest.$ac_ext <<EOF
17398 #line 17399 "configure"
17399 #include "confdefs.h"
17400 /* System header to define __stub macros and hopefully few prototypes,
17401     which can conflict with char $ac_func(); below.  */
17402 #include <assert.h>
17403 /* Override any gcc2 internal prototype to avoid an error.  */
17404 /* We use char because int might match the return type of a gcc2
17405     builtin and then its argument prototype would still apply.  */
17406 char $ac_func();
17407
17408 int main() {
17409
17410 /* The GNU C library defines this for functions which it implements
17411     to always fail with ENOSYS.  Some functions are actually named
17412     something starting with __ and the normal name is an alias.  */
17413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17414 choke me
17415 #else
17416 $ac_func();
17417 #endif
17418
17419 ; return 0; }
17420 EOF
17421 if { (eval echo configure:17422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17422   rm -rf conftest*
17423   eval "ac_cv_func_$ac_func=yes"
17424 else
17425   echo "configure: failed program was:" >&5
17426   cat conftest.$ac_ext >&5
17427   rm -rf conftest*
17428   eval "ac_cv_func_$ac_func=no"
17429 fi
17430 rm -f conftest*
17431 fi
17432
17433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17434   echo "$ac_t""yes" 1>&6
17435     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17436   cat >> confdefs.h <<EOF
17437 #define $ac_tr_func 1
17438 EOF
17439  
17440 else
17441   echo "$ac_t""no" 1>&6
17442 fi
17443 done
17444
17445   fi
17446
17447   
17448   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
17449 echo "configure:17450: checking for long double round functions" >&5
17450   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
17451   echo $ac_n "(cached) $ac_c" 1>&6
17452 else
17453   
17454     
17455     ac_ext=C
17456 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17457 ac_cpp='$CXXCPP $CPPFLAGS'
17458 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17459 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17460 cross_compiling=$ac_cv_prog_cxx_cross
17461
17462     cat > conftest.$ac_ext <<EOF
17463 #line 17464 "configure"
17464 #include "confdefs.h"
17465 #include <math.h>
17466 int main() {
17467  `for x in ceill floorl; do echo "$x (0);"; done` 
17468 ; return 0; }
17469 EOF
17470 if { (eval echo configure:17471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17471   rm -rf conftest*
17472   glibcpp_cv_func_long_double_round_use=yes
17473 else
17474   echo "configure: failed program was:" >&5
17475   cat conftest.$ac_ext >&5
17476   rm -rf conftest*
17477   glibcpp_cv_func_long_double_round_use=no
17478 fi
17479 rm -f conftest*
17480     ac_ext=c
17481 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17482 ac_cpp='$CPP $CPPFLAGS'
17483 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17484 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17485 cross_compiling=$ac_cv_prog_cc_cross
17486
17487 fi
17488
17489   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
17490   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
17491     for ac_func in ceill floorl
17492 do
17493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17494 echo "configure:17495: checking for $ac_func" >&5
17495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17496   echo $ac_n "(cached) $ac_c" 1>&6
17497 else
17498   cat > conftest.$ac_ext <<EOF
17499 #line 17500 "configure"
17500 #include "confdefs.h"
17501 /* System header to define __stub macros and hopefully few prototypes,
17502     which can conflict with char $ac_func(); below.  */
17503 #include <assert.h>
17504 /* Override any gcc2 internal prototype to avoid an error.  */
17505 /* We use char because int might match the return type of a gcc2
17506     builtin and then its argument prototype would still apply.  */
17507 char $ac_func();
17508
17509 int main() {
17510
17511 /* The GNU C library defines this for functions which it implements
17512     to always fail with ENOSYS.  Some functions are actually named
17513     something starting with __ and the normal name is an alias.  */
17514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17515 choke me
17516 #else
17517 $ac_func();
17518 #endif
17519
17520 ; return 0; }
17521 EOF
17522 if { (eval echo configure:17523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17523   rm -rf conftest*
17524   eval "ac_cv_func_$ac_func=yes"
17525 else
17526   echo "configure: failed program was:" >&5
17527   cat conftest.$ac_ext >&5
17528   rm -rf conftest*
17529   eval "ac_cv_func_$ac_func=no"
17530 fi
17531 rm -f conftest*
17532 fi
17533
17534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17535   echo "$ac_t""yes" 1>&6
17536     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17537   cat >> confdefs.h <<EOF
17538 #define $ac_tr_func 1
17539 EOF
17540  
17541 else
17542   echo "$ac_t""no" 1>&6
17543 fi
17544 done
17545
17546   fi
17547
17548   
17549   
17550   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
17551 echo "configure:17552: checking for isnanl declaration" >&5
17552   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
17553     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
17554   echo $ac_n "(cached) $ac_c" 1>&6
17555 else
17556   
17557       
17558       ac_ext=C
17559 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17560 ac_cpp='$CXXCPP $CPPFLAGS'
17561 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17562 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17563 cross_compiling=$ac_cv_prog_cxx_cross
17564
17565       cat > conftest.$ac_ext <<EOF
17566 #line 17567 "configure"
17567 #include "confdefs.h"
17568 #include <math.h>
17569                       #ifdef HAVE_IEEEFP_H
17570                       #include <ieeefp.h>
17571                       #endif
17572                      
17573 int main() {
17574  isnanl(0);
17575 ; return 0; }
17576 EOF
17577 if { (eval echo configure:17578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17578   rm -rf conftest*
17579   glibcpp_cv_func_isnanl_use=yes
17580 else
17581   echo "configure: failed program was:" >&5
17582   cat conftest.$ac_ext >&5
17583   rm -rf conftest*
17584   glibcpp_cv_func_isnanl_use=no
17585 fi
17586 rm -f conftest*
17587       ac_ext=c
17588 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17589 ac_cpp='$CPP $CPPFLAGS'
17590 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17591 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17592 cross_compiling=$ac_cv_prog_cc_cross
17593
17594     
17595 fi
17596
17597   fi
17598   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
17599
17600   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
17601     for ac_func in isnanl
17602 do
17603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17604 echo "configure:17605: checking for $ac_func" >&5
17605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17606   echo $ac_n "(cached) $ac_c" 1>&6
17607 else
17608   cat > conftest.$ac_ext <<EOF
17609 #line 17610 "configure"
17610 #include "confdefs.h"
17611 /* System header to define __stub macros and hopefully few prototypes,
17612     which can conflict with char $ac_func(); below.  */
17613 #include <assert.h>
17614 /* Override any gcc2 internal prototype to avoid an error.  */
17615 /* We use char because int might match the return type of a gcc2
17616     builtin and then its argument prototype would still apply.  */
17617 char $ac_func();
17618
17619 int main() {
17620
17621 /* The GNU C library defines this for functions which it implements
17622     to always fail with ENOSYS.  Some functions are actually named
17623     something starting with __ and the normal name is an alias.  */
17624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17625 choke me
17626 #else
17627 $ac_func();
17628 #endif
17629
17630 ; return 0; }
17631 EOF
17632 if { (eval echo configure:17633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17633   rm -rf conftest*
17634   eval "ac_cv_func_$ac_func=yes"
17635 else
17636   echo "configure: failed program was:" >&5
17637   cat conftest.$ac_ext >&5
17638   rm -rf conftest*
17639   eval "ac_cv_func_$ac_func=no"
17640 fi
17641 rm -f conftest*
17642 fi
17643
17644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17645   echo "$ac_t""yes" 1>&6
17646     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17647   cat >> confdefs.h <<EOF
17648 #define $ac_tr_func 1
17649 EOF
17650  
17651 else
17652   echo "$ac_t""no" 1>&6
17653 fi
17654 done
17655     
17656   else
17657     
17658   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
17659 echo "configure:17660: checking for _isnanl declaration" >&5
17660   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
17661     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
17662   echo $ac_n "(cached) $ac_c" 1>&6
17663 else
17664   
17665       
17666       ac_ext=C
17667 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17668 ac_cpp='$CXXCPP $CPPFLAGS'
17669 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17670 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17671 cross_compiling=$ac_cv_prog_cxx_cross
17672
17673       cat > conftest.$ac_ext <<EOF
17674 #line 17675 "configure"
17675 #include "confdefs.h"
17676 #include <math.h>
17677                       #ifdef HAVE_IEEEFP_H
17678                       #include <ieeefp.h>
17679                       #endif
17680                      
17681 int main() {
17682  _isnanl(0);
17683 ; return 0; }
17684 EOF
17685 if { (eval echo configure:17686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17686   rm -rf conftest*
17687   glibcpp_cv_func__isnanl_use=yes
17688 else
17689   echo "configure: failed program was:" >&5
17690   cat conftest.$ac_ext >&5
17691   rm -rf conftest*
17692   glibcpp_cv_func__isnanl_use=no
17693 fi
17694 rm -f conftest*
17695       ac_ext=c
17696 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17697 ac_cpp='$CPP $CPPFLAGS'
17698 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17699 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17700 cross_compiling=$ac_cv_prog_cc_cross
17701
17702     
17703 fi
17704
17705   fi
17706   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
17707
17708     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
17709       for ac_func in _isnanl
17710 do
17711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17712 echo "configure:17713: checking for $ac_func" >&5
17713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17714   echo $ac_n "(cached) $ac_c" 1>&6
17715 else
17716   cat > conftest.$ac_ext <<EOF
17717 #line 17718 "configure"
17718 #include "confdefs.h"
17719 /* System header to define __stub macros and hopefully few prototypes,
17720     which can conflict with char $ac_func(); below.  */
17721 #include <assert.h>
17722 /* Override any gcc2 internal prototype to avoid an error.  */
17723 /* We use char because int might match the return type of a gcc2
17724     builtin and then its argument prototype would still apply.  */
17725 char $ac_func();
17726
17727 int main() {
17728
17729 /* The GNU C library defines this for functions which it implements
17730     to always fail with ENOSYS.  Some functions are actually named
17731     something starting with __ and the normal name is an alias.  */
17732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17733 choke me
17734 #else
17735 $ac_func();
17736 #endif
17737
17738 ; return 0; }
17739 EOF
17740 if { (eval echo configure:17741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17741   rm -rf conftest*
17742   eval "ac_cv_func_$ac_func=yes"
17743 else
17744   echo "configure: failed program was:" >&5
17745   cat conftest.$ac_ext >&5
17746   rm -rf conftest*
17747   eval "ac_cv_func_$ac_func=no"
17748 fi
17749 rm -f conftest*
17750 fi
17751
17752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17753   echo "$ac_t""yes" 1>&6
17754     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17755   cat >> confdefs.h <<EOF
17756 #define $ac_tr_func 1
17757 EOF
17758  
17759 else
17760   echo "$ac_t""no" 1>&6
17761 fi
17762 done
17763     
17764     fi
17765   fi
17766
17767   
17768   
17769   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
17770 echo "configure:17771: checking for isinfl declaration" >&5
17771   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
17772     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
17773   echo $ac_n "(cached) $ac_c" 1>&6
17774 else
17775   
17776       
17777       ac_ext=C
17778 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17779 ac_cpp='$CXXCPP $CPPFLAGS'
17780 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17781 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17782 cross_compiling=$ac_cv_prog_cxx_cross
17783
17784       cat > conftest.$ac_ext <<EOF
17785 #line 17786 "configure"
17786 #include "confdefs.h"
17787 #include <math.h>
17788                       #ifdef HAVE_IEEEFP_H
17789                       #include <ieeefp.h>
17790                       #endif
17791                      
17792 int main() {
17793  isinfl(0);
17794 ; return 0; }
17795 EOF
17796 if { (eval echo configure:17797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17797   rm -rf conftest*
17798   glibcpp_cv_func_isinfl_use=yes
17799 else
17800   echo "configure: failed program was:" >&5
17801   cat conftest.$ac_ext >&5
17802   rm -rf conftest*
17803   glibcpp_cv_func_isinfl_use=no
17804 fi
17805 rm -f conftest*
17806       ac_ext=c
17807 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17808 ac_cpp='$CPP $CPPFLAGS'
17809 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17810 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17811 cross_compiling=$ac_cv_prog_cc_cross
17812
17813     
17814 fi
17815
17816   fi
17817   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
17818
17819   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
17820     for ac_func in isinfl
17821 do
17822 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17823 echo "configure:17824: checking for $ac_func" >&5
17824 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17825   echo $ac_n "(cached) $ac_c" 1>&6
17826 else
17827   cat > conftest.$ac_ext <<EOF
17828 #line 17829 "configure"
17829 #include "confdefs.h"
17830 /* System header to define __stub macros and hopefully few prototypes,
17831     which can conflict with char $ac_func(); below.  */
17832 #include <assert.h>
17833 /* Override any gcc2 internal prototype to avoid an error.  */
17834 /* We use char because int might match the return type of a gcc2
17835     builtin and then its argument prototype would still apply.  */
17836 char $ac_func();
17837
17838 int main() {
17839
17840 /* The GNU C library defines this for functions which it implements
17841     to always fail with ENOSYS.  Some functions are actually named
17842     something starting with __ and the normal name is an alias.  */
17843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17844 choke me
17845 #else
17846 $ac_func();
17847 #endif
17848
17849 ; return 0; }
17850 EOF
17851 if { (eval echo configure:17852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17852   rm -rf conftest*
17853   eval "ac_cv_func_$ac_func=yes"
17854 else
17855   echo "configure: failed program was:" >&5
17856   cat conftest.$ac_ext >&5
17857   rm -rf conftest*
17858   eval "ac_cv_func_$ac_func=no"
17859 fi
17860 rm -f conftest*
17861 fi
17862
17863 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17864   echo "$ac_t""yes" 1>&6
17865     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17866   cat >> confdefs.h <<EOF
17867 #define $ac_tr_func 1
17868 EOF
17869  
17870 else
17871   echo "$ac_t""no" 1>&6
17872 fi
17873 done
17874     
17875   else
17876     
17877   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
17878 echo "configure:17879: checking for _isinfl declaration" >&5
17879   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
17880     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
17881   echo $ac_n "(cached) $ac_c" 1>&6
17882 else
17883   
17884       
17885       ac_ext=C
17886 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17887 ac_cpp='$CXXCPP $CPPFLAGS'
17888 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17889 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17890 cross_compiling=$ac_cv_prog_cxx_cross
17891
17892       cat > conftest.$ac_ext <<EOF
17893 #line 17894 "configure"
17894 #include "confdefs.h"
17895 #include <math.h>
17896                       #ifdef HAVE_IEEEFP_H
17897                       #include <ieeefp.h>
17898                       #endif
17899                      
17900 int main() {
17901  _isinfl(0);
17902 ; return 0; }
17903 EOF
17904 if { (eval echo configure:17905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17905   rm -rf conftest*
17906   glibcpp_cv_func__isinfl_use=yes
17907 else
17908   echo "configure: failed program was:" >&5
17909   cat conftest.$ac_ext >&5
17910   rm -rf conftest*
17911   glibcpp_cv_func__isinfl_use=no
17912 fi
17913 rm -f conftest*
17914       ac_ext=c
17915 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17916 ac_cpp='$CPP $CPPFLAGS'
17917 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17918 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17919 cross_compiling=$ac_cv_prog_cc_cross
17920
17921     
17922 fi
17923
17924   fi
17925   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
17926
17927     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
17928       for ac_func in _isinfl
17929 do
17930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17931 echo "configure:17932: checking for $ac_func" >&5
17932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17933   echo $ac_n "(cached) $ac_c" 1>&6
17934 else
17935   cat > conftest.$ac_ext <<EOF
17936 #line 17937 "configure"
17937 #include "confdefs.h"
17938 /* System header to define __stub macros and hopefully few prototypes,
17939     which can conflict with char $ac_func(); below.  */
17940 #include <assert.h>
17941 /* Override any gcc2 internal prototype to avoid an error.  */
17942 /* We use char because int might match the return type of a gcc2
17943     builtin and then its argument prototype would still apply.  */
17944 char $ac_func();
17945
17946 int main() {
17947
17948 /* The GNU C library defines this for functions which it implements
17949     to always fail with ENOSYS.  Some functions are actually named
17950     something starting with __ and the normal name is an alias.  */
17951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17952 choke me
17953 #else
17954 $ac_func();
17955 #endif
17956
17957 ; return 0; }
17958 EOF
17959 if { (eval echo configure:17960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17960   rm -rf conftest*
17961   eval "ac_cv_func_$ac_func=yes"
17962 else
17963   echo "configure: failed program was:" >&5
17964   cat conftest.$ac_ext >&5
17965   rm -rf conftest*
17966   eval "ac_cv_func_$ac_func=no"
17967 fi
17968 rm -f conftest*
17969 fi
17970
17971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17972   echo "$ac_t""yes" 1>&6
17973     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17974   cat >> confdefs.h <<EOF
17975 #define $ac_tr_func 1
17976 EOF
17977  
17978 else
17979   echo "$ac_t""no" 1>&6
17980 fi
17981 done
17982     
17983     fi
17984   fi
17985
17986   
17987   
17988   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
17989 echo "configure:17990: checking for copysignl declaration" >&5
17990   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
17991     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
17992   echo $ac_n "(cached) $ac_c" 1>&6
17993 else
17994   
17995       
17996       ac_ext=C
17997 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17998 ac_cpp='$CXXCPP $CPPFLAGS'
17999 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18000 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18001 cross_compiling=$ac_cv_prog_cxx_cross
18002
18003       cat > conftest.$ac_ext <<EOF
18004 #line 18005 "configure"
18005 #include "confdefs.h"
18006 #include <math.h>
18007 int main() {
18008  copysignl(0, 0);
18009 ; return 0; }
18010 EOF
18011 if { (eval echo configure:18012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18012   rm -rf conftest*
18013   glibcpp_cv_func_copysignl_use=yes
18014 else
18015   echo "configure: failed program was:" >&5
18016   cat conftest.$ac_ext >&5
18017   rm -rf conftest*
18018   glibcpp_cv_func_copysignl_use=no
18019 fi
18020 rm -f conftest*
18021       ac_ext=c
18022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18023 ac_cpp='$CPP $CPPFLAGS'
18024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18026 cross_compiling=$ac_cv_prog_cc_cross
18027
18028     
18029 fi
18030
18031   fi
18032   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
18033
18034   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
18035     for ac_func in copysignl
18036 do
18037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18038 echo "configure:18039: checking for $ac_func" >&5
18039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18040   echo $ac_n "(cached) $ac_c" 1>&6
18041 else
18042   cat > conftest.$ac_ext <<EOF
18043 #line 18044 "configure"
18044 #include "confdefs.h"
18045 /* System header to define __stub macros and hopefully few prototypes,
18046     which can conflict with char $ac_func(); below.  */
18047 #include <assert.h>
18048 /* Override any gcc2 internal prototype to avoid an error.  */
18049 /* We use char because int might match the return type of a gcc2
18050     builtin and then its argument prototype would still apply.  */
18051 char $ac_func();
18052
18053 int main() {
18054
18055 /* The GNU C library defines this for functions which it implements
18056     to always fail with ENOSYS.  Some functions are actually named
18057     something starting with __ and the normal name is an alias.  */
18058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18059 choke me
18060 #else
18061 $ac_func();
18062 #endif
18063
18064 ; return 0; }
18065 EOF
18066 if { (eval echo configure:18067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18067   rm -rf conftest*
18068   eval "ac_cv_func_$ac_func=yes"
18069 else
18070   echo "configure: failed program was:" >&5
18071   cat conftest.$ac_ext >&5
18072   rm -rf conftest*
18073   eval "ac_cv_func_$ac_func=no"
18074 fi
18075 rm -f conftest*
18076 fi
18077
18078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18079   echo "$ac_t""yes" 1>&6
18080     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18081   cat >> confdefs.h <<EOF
18082 #define $ac_tr_func 1
18083 EOF
18084  
18085 else
18086   echo "$ac_t""no" 1>&6
18087 fi
18088 done
18089     
18090   else
18091     
18092   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
18093 echo "configure:18094: checking for _copysignl declaration" >&5
18094   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
18095     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
18096   echo $ac_n "(cached) $ac_c" 1>&6
18097 else
18098   
18099       
18100       ac_ext=C
18101 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18102 ac_cpp='$CXXCPP $CPPFLAGS'
18103 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18104 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18105 cross_compiling=$ac_cv_prog_cxx_cross
18106
18107       cat > conftest.$ac_ext <<EOF
18108 #line 18109 "configure"
18109 #include "confdefs.h"
18110 #include <math.h>
18111 int main() {
18112  _copysignl(0, 0);
18113 ; return 0; }
18114 EOF
18115 if { (eval echo configure:18116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18116   rm -rf conftest*
18117   glibcpp_cv_func__copysignl_use=yes
18118 else
18119   echo "configure: failed program was:" >&5
18120   cat conftest.$ac_ext >&5
18121   rm -rf conftest*
18122   glibcpp_cv_func__copysignl_use=no
18123 fi
18124 rm -f conftest*
18125       ac_ext=c
18126 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18127 ac_cpp='$CPP $CPPFLAGS'
18128 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18129 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18130 cross_compiling=$ac_cv_prog_cc_cross
18131
18132     
18133 fi
18134
18135   fi
18136   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
18137
18138     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
18139       for ac_func in _copysignl
18140 do
18141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18142 echo "configure:18143: checking for $ac_func" >&5
18143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18144   echo $ac_n "(cached) $ac_c" 1>&6
18145 else
18146   cat > conftest.$ac_ext <<EOF
18147 #line 18148 "configure"
18148 #include "confdefs.h"
18149 /* System header to define __stub macros and hopefully few prototypes,
18150     which can conflict with char $ac_func(); below.  */
18151 #include <assert.h>
18152 /* Override any gcc2 internal prototype to avoid an error.  */
18153 /* We use char because int might match the return type of a gcc2
18154     builtin and then its argument prototype would still apply.  */
18155 char $ac_func();
18156
18157 int main() {
18158
18159 /* The GNU C library defines this for functions which it implements
18160     to always fail with ENOSYS.  Some functions are actually named
18161     something starting with __ and the normal name is an alias.  */
18162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18163 choke me
18164 #else
18165 $ac_func();
18166 #endif
18167
18168 ; return 0; }
18169 EOF
18170 if { (eval echo configure:18171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18171   rm -rf conftest*
18172   eval "ac_cv_func_$ac_func=yes"
18173 else
18174   echo "configure: failed program was:" >&5
18175   cat conftest.$ac_ext >&5
18176   rm -rf conftest*
18177   eval "ac_cv_func_$ac_func=no"
18178 fi
18179 rm -f conftest*
18180 fi
18181
18182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18183   echo "$ac_t""yes" 1>&6
18184     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18185   cat >> confdefs.h <<EOF
18186 #define $ac_tr_func 1
18187 EOF
18188  
18189 else
18190   echo "$ac_t""no" 1>&6
18191 fi
18192 done
18193     
18194     fi
18195   fi
18196
18197   
18198   
18199   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
18200 echo "configure:18201: checking for atan2l declaration" >&5
18201   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
18202     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
18203   echo $ac_n "(cached) $ac_c" 1>&6
18204 else
18205   
18206       
18207       ac_ext=C
18208 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18209 ac_cpp='$CXXCPP $CPPFLAGS'
18210 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18211 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18212 cross_compiling=$ac_cv_prog_cxx_cross
18213
18214       cat > conftest.$ac_ext <<EOF
18215 #line 18216 "configure"
18216 #include "confdefs.h"
18217 #include <math.h>
18218 int main() {
18219  atan2l(0, 0);
18220 ; return 0; }
18221 EOF
18222 if { (eval echo configure:18223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18223   rm -rf conftest*
18224   glibcpp_cv_func_atan2l_use=yes
18225 else
18226   echo "configure: failed program was:" >&5
18227   cat conftest.$ac_ext >&5
18228   rm -rf conftest*
18229   glibcpp_cv_func_atan2l_use=no
18230 fi
18231 rm -f conftest*
18232       ac_ext=c
18233 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18234 ac_cpp='$CPP $CPPFLAGS'
18235 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18236 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18237 cross_compiling=$ac_cv_prog_cc_cross
18238
18239     
18240 fi
18241
18242   fi
18243   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
18244
18245   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
18246     for ac_func in atan2l
18247 do
18248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18249 echo "configure:18250: checking for $ac_func" >&5
18250 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18251   echo $ac_n "(cached) $ac_c" 1>&6
18252 else
18253   cat > conftest.$ac_ext <<EOF
18254 #line 18255 "configure"
18255 #include "confdefs.h"
18256 /* System header to define __stub macros and hopefully few prototypes,
18257     which can conflict with char $ac_func(); below.  */
18258 #include <assert.h>
18259 /* Override any gcc2 internal prototype to avoid an error.  */
18260 /* We use char because int might match the return type of a gcc2
18261     builtin and then its argument prototype would still apply.  */
18262 char $ac_func();
18263
18264 int main() {
18265
18266 /* The GNU C library defines this for functions which it implements
18267     to always fail with ENOSYS.  Some functions are actually named
18268     something starting with __ and the normal name is an alias.  */
18269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18270 choke me
18271 #else
18272 $ac_func();
18273 #endif
18274
18275 ; return 0; }
18276 EOF
18277 if { (eval echo configure:18278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18278   rm -rf conftest*
18279   eval "ac_cv_func_$ac_func=yes"
18280 else
18281   echo "configure: failed program was:" >&5
18282   cat conftest.$ac_ext >&5
18283   rm -rf conftest*
18284   eval "ac_cv_func_$ac_func=no"
18285 fi
18286 rm -f conftest*
18287 fi
18288
18289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18290   echo "$ac_t""yes" 1>&6
18291     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18292   cat >> confdefs.h <<EOF
18293 #define $ac_tr_func 1
18294 EOF
18295  
18296 else
18297   echo "$ac_t""no" 1>&6
18298 fi
18299 done
18300     
18301   else
18302     
18303   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
18304 echo "configure:18305: checking for _atan2l declaration" >&5
18305   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
18306     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
18307   echo $ac_n "(cached) $ac_c" 1>&6
18308 else
18309   
18310       
18311       ac_ext=C
18312 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18313 ac_cpp='$CXXCPP $CPPFLAGS'
18314 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18315 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18316 cross_compiling=$ac_cv_prog_cxx_cross
18317
18318       cat > conftest.$ac_ext <<EOF
18319 #line 18320 "configure"
18320 #include "confdefs.h"
18321 #include <math.h>
18322 int main() {
18323  _atan2l(0, 0);
18324 ; return 0; }
18325 EOF
18326 if { (eval echo configure:18327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18327   rm -rf conftest*
18328   glibcpp_cv_func__atan2l_use=yes
18329 else
18330   echo "configure: failed program was:" >&5
18331   cat conftest.$ac_ext >&5
18332   rm -rf conftest*
18333   glibcpp_cv_func__atan2l_use=no
18334 fi
18335 rm -f conftest*
18336       ac_ext=c
18337 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18338 ac_cpp='$CPP $CPPFLAGS'
18339 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18340 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18341 cross_compiling=$ac_cv_prog_cc_cross
18342
18343     
18344 fi
18345
18346   fi
18347   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
18348
18349     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
18350       for ac_func in _atan2l
18351 do
18352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18353 echo "configure:18354: checking for $ac_func" >&5
18354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18355   echo $ac_n "(cached) $ac_c" 1>&6
18356 else
18357   cat > conftest.$ac_ext <<EOF
18358 #line 18359 "configure"
18359 #include "confdefs.h"
18360 /* System header to define __stub macros and hopefully few prototypes,
18361     which can conflict with char $ac_func(); below.  */
18362 #include <assert.h>
18363 /* Override any gcc2 internal prototype to avoid an error.  */
18364 /* We use char because int might match the return type of a gcc2
18365     builtin and then its argument prototype would still apply.  */
18366 char $ac_func();
18367
18368 int main() {
18369
18370 /* The GNU C library defines this for functions which it implements
18371     to always fail with ENOSYS.  Some functions are actually named
18372     something starting with __ and the normal name is an alias.  */
18373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18374 choke me
18375 #else
18376 $ac_func();
18377 #endif
18378
18379 ; return 0; }
18380 EOF
18381 if { (eval echo configure:18382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18382   rm -rf conftest*
18383   eval "ac_cv_func_$ac_func=yes"
18384 else
18385   echo "configure: failed program was:" >&5
18386   cat conftest.$ac_ext >&5
18387   rm -rf conftest*
18388   eval "ac_cv_func_$ac_func=no"
18389 fi
18390 rm -f conftest*
18391 fi
18392
18393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18394   echo "$ac_t""yes" 1>&6
18395     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18396   cat >> confdefs.h <<EOF
18397 #define $ac_tr_func 1
18398 EOF
18399  
18400 else
18401   echo "$ac_t""no" 1>&6
18402 fi
18403 done
18404     
18405     fi
18406   fi
18407
18408   
18409   
18410   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
18411 echo "configure:18412: checking for expl declaration" >&5
18412   if test x${glibcpp_cv_func_expl_use+set} != xset; then
18413     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
18414   echo $ac_n "(cached) $ac_c" 1>&6
18415 else
18416   
18417       
18418       ac_ext=C
18419 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18420 ac_cpp='$CXXCPP $CPPFLAGS'
18421 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18422 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18423 cross_compiling=$ac_cv_prog_cxx_cross
18424
18425       cat > conftest.$ac_ext <<EOF
18426 #line 18427 "configure"
18427 #include "confdefs.h"
18428 #include <math.h>
18429                       #ifdef HAVE_IEEEFP_H
18430                       #include <ieeefp.h>
18431                       #endif
18432                      
18433 int main() {
18434  expl(0);
18435 ; return 0; }
18436 EOF
18437 if { (eval echo configure:18438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18438   rm -rf conftest*
18439   glibcpp_cv_func_expl_use=yes
18440 else
18441   echo "configure: failed program was:" >&5
18442   cat conftest.$ac_ext >&5
18443   rm -rf conftest*
18444   glibcpp_cv_func_expl_use=no
18445 fi
18446 rm -f conftest*
18447       ac_ext=c
18448 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18449 ac_cpp='$CPP $CPPFLAGS'
18450 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18451 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18452 cross_compiling=$ac_cv_prog_cc_cross
18453
18454     
18455 fi
18456
18457   fi
18458   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
18459
18460   if test x$glibcpp_cv_func_expl_use = x"yes"; then
18461     for ac_func in expl
18462 do
18463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18464 echo "configure:18465: checking for $ac_func" >&5
18465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18466   echo $ac_n "(cached) $ac_c" 1>&6
18467 else
18468   cat > conftest.$ac_ext <<EOF
18469 #line 18470 "configure"
18470 #include "confdefs.h"
18471 /* System header to define __stub macros and hopefully few prototypes,
18472     which can conflict with char $ac_func(); below.  */
18473 #include <assert.h>
18474 /* Override any gcc2 internal prototype to avoid an error.  */
18475 /* We use char because int might match the return type of a gcc2
18476     builtin and then its argument prototype would still apply.  */
18477 char $ac_func();
18478
18479 int main() {
18480
18481 /* The GNU C library defines this for functions which it implements
18482     to always fail with ENOSYS.  Some functions are actually named
18483     something starting with __ and the normal name is an alias.  */
18484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18485 choke me
18486 #else
18487 $ac_func();
18488 #endif
18489
18490 ; return 0; }
18491 EOF
18492 if { (eval echo configure:18493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18493   rm -rf conftest*
18494   eval "ac_cv_func_$ac_func=yes"
18495 else
18496   echo "configure: failed program was:" >&5
18497   cat conftest.$ac_ext >&5
18498   rm -rf conftest*
18499   eval "ac_cv_func_$ac_func=no"
18500 fi
18501 rm -f conftest*
18502 fi
18503
18504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18505   echo "$ac_t""yes" 1>&6
18506     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18507   cat >> confdefs.h <<EOF
18508 #define $ac_tr_func 1
18509 EOF
18510  
18511 else
18512   echo "$ac_t""no" 1>&6
18513 fi
18514 done
18515     
18516   else
18517     
18518   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
18519 echo "configure:18520: checking for _expl declaration" >&5
18520   if test x${glibcpp_cv_func__expl_use+set} != xset; then
18521     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
18522   echo $ac_n "(cached) $ac_c" 1>&6
18523 else
18524   
18525       
18526       ac_ext=C
18527 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18528 ac_cpp='$CXXCPP $CPPFLAGS'
18529 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18530 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18531 cross_compiling=$ac_cv_prog_cxx_cross
18532
18533       cat > conftest.$ac_ext <<EOF
18534 #line 18535 "configure"
18535 #include "confdefs.h"
18536 #include <math.h>
18537                       #ifdef HAVE_IEEEFP_H
18538                       #include <ieeefp.h>
18539                       #endif
18540                      
18541 int main() {
18542  _expl(0);
18543 ; return 0; }
18544 EOF
18545 if { (eval echo configure:18546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18546   rm -rf conftest*
18547   glibcpp_cv_func__expl_use=yes
18548 else
18549   echo "configure: failed program was:" >&5
18550   cat conftest.$ac_ext >&5
18551   rm -rf conftest*
18552   glibcpp_cv_func__expl_use=no
18553 fi
18554 rm -f conftest*
18555       ac_ext=c
18556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18557 ac_cpp='$CPP $CPPFLAGS'
18558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18560 cross_compiling=$ac_cv_prog_cc_cross
18561
18562     
18563 fi
18564
18565   fi
18566   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
18567
18568     if test x$glibcpp_cv_func__expl_use = x"yes"; then
18569       for ac_func in _expl
18570 do
18571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18572 echo "configure:18573: checking for $ac_func" >&5
18573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18574   echo $ac_n "(cached) $ac_c" 1>&6
18575 else
18576   cat > conftest.$ac_ext <<EOF
18577 #line 18578 "configure"
18578 #include "confdefs.h"
18579 /* System header to define __stub macros and hopefully few prototypes,
18580     which can conflict with char $ac_func(); below.  */
18581 #include <assert.h>
18582 /* Override any gcc2 internal prototype to avoid an error.  */
18583 /* We use char because int might match the return type of a gcc2
18584     builtin and then its argument prototype would still apply.  */
18585 char $ac_func();
18586
18587 int main() {
18588
18589 /* The GNU C library defines this for functions which it implements
18590     to always fail with ENOSYS.  Some functions are actually named
18591     something starting with __ and the normal name is an alias.  */
18592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18593 choke me
18594 #else
18595 $ac_func();
18596 #endif
18597
18598 ; return 0; }
18599 EOF
18600 if { (eval echo configure:18601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18601   rm -rf conftest*
18602   eval "ac_cv_func_$ac_func=yes"
18603 else
18604   echo "configure: failed program was:" >&5
18605   cat conftest.$ac_ext >&5
18606   rm -rf conftest*
18607   eval "ac_cv_func_$ac_func=no"
18608 fi
18609 rm -f conftest*
18610 fi
18611
18612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18613   echo "$ac_t""yes" 1>&6
18614     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18615   cat >> confdefs.h <<EOF
18616 #define $ac_tr_func 1
18617 EOF
18618  
18619 else
18620   echo "$ac_t""no" 1>&6
18621 fi
18622 done
18623     
18624     fi
18625   fi
18626
18627   
18628   
18629   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
18630 echo "configure:18631: checking for fabsl declaration" >&5
18631   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
18632     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
18633   echo $ac_n "(cached) $ac_c" 1>&6
18634 else
18635   
18636       
18637       ac_ext=C
18638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18639 ac_cpp='$CXXCPP $CPPFLAGS'
18640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18642 cross_compiling=$ac_cv_prog_cxx_cross
18643
18644       cat > conftest.$ac_ext <<EOF
18645 #line 18646 "configure"
18646 #include "confdefs.h"
18647 #include <math.h>
18648                       #ifdef HAVE_IEEEFP_H
18649                       #include <ieeefp.h>
18650                       #endif
18651                      
18652 int main() {
18653  fabsl(0);
18654 ; return 0; }
18655 EOF
18656 if { (eval echo configure:18657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18657   rm -rf conftest*
18658   glibcpp_cv_func_fabsl_use=yes
18659 else
18660   echo "configure: failed program was:" >&5
18661   cat conftest.$ac_ext >&5
18662   rm -rf conftest*
18663   glibcpp_cv_func_fabsl_use=no
18664 fi
18665 rm -f conftest*
18666       ac_ext=c
18667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18668 ac_cpp='$CPP $CPPFLAGS'
18669 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18670 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18671 cross_compiling=$ac_cv_prog_cc_cross
18672
18673     
18674 fi
18675
18676   fi
18677   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
18678
18679   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
18680     for ac_func in fabsl
18681 do
18682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18683 echo "configure:18684: checking for $ac_func" >&5
18684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18685   echo $ac_n "(cached) $ac_c" 1>&6
18686 else
18687   cat > conftest.$ac_ext <<EOF
18688 #line 18689 "configure"
18689 #include "confdefs.h"
18690 /* System header to define __stub macros and hopefully few prototypes,
18691     which can conflict with char $ac_func(); below.  */
18692 #include <assert.h>
18693 /* Override any gcc2 internal prototype to avoid an error.  */
18694 /* We use char because int might match the return type of a gcc2
18695     builtin and then its argument prototype would still apply.  */
18696 char $ac_func();
18697
18698 int main() {
18699
18700 /* The GNU C library defines this for functions which it implements
18701     to always fail with ENOSYS.  Some functions are actually named
18702     something starting with __ and the normal name is an alias.  */
18703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18704 choke me
18705 #else
18706 $ac_func();
18707 #endif
18708
18709 ; return 0; }
18710 EOF
18711 if { (eval echo configure:18712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18712   rm -rf conftest*
18713   eval "ac_cv_func_$ac_func=yes"
18714 else
18715   echo "configure: failed program was:" >&5
18716   cat conftest.$ac_ext >&5
18717   rm -rf conftest*
18718   eval "ac_cv_func_$ac_func=no"
18719 fi
18720 rm -f conftest*
18721 fi
18722
18723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18724   echo "$ac_t""yes" 1>&6
18725     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18726   cat >> confdefs.h <<EOF
18727 #define $ac_tr_func 1
18728 EOF
18729  
18730 else
18731   echo "$ac_t""no" 1>&6
18732 fi
18733 done
18734     
18735   else
18736     
18737   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
18738 echo "configure:18739: checking for _fabsl declaration" >&5
18739   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
18740     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
18741   echo $ac_n "(cached) $ac_c" 1>&6
18742 else
18743   
18744       
18745       ac_ext=C
18746 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18747 ac_cpp='$CXXCPP $CPPFLAGS'
18748 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18749 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18750 cross_compiling=$ac_cv_prog_cxx_cross
18751
18752       cat > conftest.$ac_ext <<EOF
18753 #line 18754 "configure"
18754 #include "confdefs.h"
18755 #include <math.h>
18756                       #ifdef HAVE_IEEEFP_H
18757                       #include <ieeefp.h>
18758                       #endif
18759                      
18760 int main() {
18761  _fabsl(0);
18762 ; return 0; }
18763 EOF
18764 if { (eval echo configure:18765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18765   rm -rf conftest*
18766   glibcpp_cv_func__fabsl_use=yes
18767 else
18768   echo "configure: failed program was:" >&5
18769   cat conftest.$ac_ext >&5
18770   rm -rf conftest*
18771   glibcpp_cv_func__fabsl_use=no
18772 fi
18773 rm -f conftest*
18774       ac_ext=c
18775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18776 ac_cpp='$CPP $CPPFLAGS'
18777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18778 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18779 cross_compiling=$ac_cv_prog_cc_cross
18780
18781     
18782 fi
18783
18784   fi
18785   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
18786
18787     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
18788       for ac_func in _fabsl
18789 do
18790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18791 echo "configure:18792: checking for $ac_func" >&5
18792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18793   echo $ac_n "(cached) $ac_c" 1>&6
18794 else
18795   cat > conftest.$ac_ext <<EOF
18796 #line 18797 "configure"
18797 #include "confdefs.h"
18798 /* System header to define __stub macros and hopefully few prototypes,
18799     which can conflict with char $ac_func(); below.  */
18800 #include <assert.h>
18801 /* Override any gcc2 internal prototype to avoid an error.  */
18802 /* We use char because int might match the return type of a gcc2
18803     builtin and then its argument prototype would still apply.  */
18804 char $ac_func();
18805
18806 int main() {
18807
18808 /* The GNU C library defines this for functions which it implements
18809     to always fail with ENOSYS.  Some functions are actually named
18810     something starting with __ and the normal name is an alias.  */
18811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18812 choke me
18813 #else
18814 $ac_func();
18815 #endif
18816
18817 ; return 0; }
18818 EOF
18819 if { (eval echo configure:18820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18820   rm -rf conftest*
18821   eval "ac_cv_func_$ac_func=yes"
18822 else
18823   echo "configure: failed program was:" >&5
18824   cat conftest.$ac_ext >&5
18825   rm -rf conftest*
18826   eval "ac_cv_func_$ac_func=no"
18827 fi
18828 rm -f conftest*
18829 fi
18830
18831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18832   echo "$ac_t""yes" 1>&6
18833     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18834   cat >> confdefs.h <<EOF
18835 #define $ac_tr_func 1
18836 EOF
18837  
18838 else
18839   echo "$ac_t""no" 1>&6
18840 fi
18841 done
18842     
18843     fi
18844   fi
18845
18846   
18847   
18848   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
18849 echo "configure:18850: checking for fmodl declaration" >&5
18850   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
18851     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
18852   echo $ac_n "(cached) $ac_c" 1>&6
18853 else
18854   
18855       
18856       ac_ext=C
18857 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18858 ac_cpp='$CXXCPP $CPPFLAGS'
18859 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18860 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18861 cross_compiling=$ac_cv_prog_cxx_cross
18862
18863       cat > conftest.$ac_ext <<EOF
18864 #line 18865 "configure"
18865 #include "confdefs.h"
18866 #include <math.h>
18867 int main() {
18868  fmodl(0, 0);
18869 ; return 0; }
18870 EOF
18871 if { (eval echo configure:18872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18872   rm -rf conftest*
18873   glibcpp_cv_func_fmodl_use=yes
18874 else
18875   echo "configure: failed program was:" >&5
18876   cat conftest.$ac_ext >&5
18877   rm -rf conftest*
18878   glibcpp_cv_func_fmodl_use=no
18879 fi
18880 rm -f conftest*
18881       ac_ext=c
18882 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18883 ac_cpp='$CPP $CPPFLAGS'
18884 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18885 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18886 cross_compiling=$ac_cv_prog_cc_cross
18887
18888     
18889 fi
18890
18891   fi
18892   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
18893
18894   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
18895     for ac_func in fmodl
18896 do
18897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18898 echo "configure:18899: checking for $ac_func" >&5
18899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18900   echo $ac_n "(cached) $ac_c" 1>&6
18901 else
18902   cat > conftest.$ac_ext <<EOF
18903 #line 18904 "configure"
18904 #include "confdefs.h"
18905 /* System header to define __stub macros and hopefully few prototypes,
18906     which can conflict with char $ac_func(); below.  */
18907 #include <assert.h>
18908 /* Override any gcc2 internal prototype to avoid an error.  */
18909 /* We use char because int might match the return type of a gcc2
18910     builtin and then its argument prototype would still apply.  */
18911 char $ac_func();
18912
18913 int main() {
18914
18915 /* The GNU C library defines this for functions which it implements
18916     to always fail with ENOSYS.  Some functions are actually named
18917     something starting with __ and the normal name is an alias.  */
18918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18919 choke me
18920 #else
18921 $ac_func();
18922 #endif
18923
18924 ; return 0; }
18925 EOF
18926 if { (eval echo configure:18927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18927   rm -rf conftest*
18928   eval "ac_cv_func_$ac_func=yes"
18929 else
18930   echo "configure: failed program was:" >&5
18931   cat conftest.$ac_ext >&5
18932   rm -rf conftest*
18933   eval "ac_cv_func_$ac_func=no"
18934 fi
18935 rm -f conftest*
18936 fi
18937
18938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18939   echo "$ac_t""yes" 1>&6
18940     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18941   cat >> confdefs.h <<EOF
18942 #define $ac_tr_func 1
18943 EOF
18944  
18945 else
18946   echo "$ac_t""no" 1>&6
18947 fi
18948 done
18949     
18950   else
18951     
18952   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
18953 echo "configure:18954: checking for _fmodl declaration" >&5
18954   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
18955     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
18956   echo $ac_n "(cached) $ac_c" 1>&6
18957 else
18958   
18959       
18960       ac_ext=C
18961 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18962 ac_cpp='$CXXCPP $CPPFLAGS'
18963 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18964 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18965 cross_compiling=$ac_cv_prog_cxx_cross
18966
18967       cat > conftest.$ac_ext <<EOF
18968 #line 18969 "configure"
18969 #include "confdefs.h"
18970 #include <math.h>
18971 int main() {
18972  _fmodl(0, 0);
18973 ; return 0; }
18974 EOF
18975 if { (eval echo configure:18976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18976   rm -rf conftest*
18977   glibcpp_cv_func__fmodl_use=yes
18978 else
18979   echo "configure: failed program was:" >&5
18980   cat conftest.$ac_ext >&5
18981   rm -rf conftest*
18982   glibcpp_cv_func__fmodl_use=no
18983 fi
18984 rm -f conftest*
18985       ac_ext=c
18986 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18987 ac_cpp='$CPP $CPPFLAGS'
18988 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18989 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18990 cross_compiling=$ac_cv_prog_cc_cross
18991
18992     
18993 fi
18994
18995   fi
18996   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
18997
18998     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
18999       for ac_func in _fmodl
19000 do
19001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19002 echo "configure:19003: checking for $ac_func" >&5
19003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19004   echo $ac_n "(cached) $ac_c" 1>&6
19005 else
19006   cat > conftest.$ac_ext <<EOF
19007 #line 19008 "configure"
19008 #include "confdefs.h"
19009 /* System header to define __stub macros and hopefully few prototypes,
19010     which can conflict with char $ac_func(); below.  */
19011 #include <assert.h>
19012 /* Override any gcc2 internal prototype to avoid an error.  */
19013 /* We use char because int might match the return type of a gcc2
19014     builtin and then its argument prototype would still apply.  */
19015 char $ac_func();
19016
19017 int main() {
19018
19019 /* The GNU C library defines this for functions which it implements
19020     to always fail with ENOSYS.  Some functions are actually named
19021     something starting with __ and the normal name is an alias.  */
19022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19023 choke me
19024 #else
19025 $ac_func();
19026 #endif
19027
19028 ; return 0; }
19029 EOF
19030 if { (eval echo configure:19031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19031   rm -rf conftest*
19032   eval "ac_cv_func_$ac_func=yes"
19033 else
19034   echo "configure: failed program was:" >&5
19035   cat conftest.$ac_ext >&5
19036   rm -rf conftest*
19037   eval "ac_cv_func_$ac_func=no"
19038 fi
19039 rm -f conftest*
19040 fi
19041
19042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19043   echo "$ac_t""yes" 1>&6
19044     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19045   cat >> confdefs.h <<EOF
19046 #define $ac_tr_func 1
19047 EOF
19048  
19049 else
19050   echo "$ac_t""no" 1>&6
19051 fi
19052 done
19053     
19054     fi
19055   fi
19056
19057   
19058   
19059   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
19060 echo "configure:19061: checking for frexpl declaration" >&5
19061   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
19062     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
19063   echo $ac_n "(cached) $ac_c" 1>&6
19064 else
19065   
19066       
19067       ac_ext=C
19068 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19069 ac_cpp='$CXXCPP $CPPFLAGS'
19070 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19071 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19072 cross_compiling=$ac_cv_prog_cxx_cross
19073
19074       cat > conftest.$ac_ext <<EOF
19075 #line 19076 "configure"
19076 #include "confdefs.h"
19077 #include <math.h>
19078 int main() {
19079  frexpl(0, 0);
19080 ; return 0; }
19081 EOF
19082 if { (eval echo configure:19083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19083   rm -rf conftest*
19084   glibcpp_cv_func_frexpl_use=yes
19085 else
19086   echo "configure: failed program was:" >&5
19087   cat conftest.$ac_ext >&5
19088   rm -rf conftest*
19089   glibcpp_cv_func_frexpl_use=no
19090 fi
19091 rm -f conftest*
19092       ac_ext=c
19093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19094 ac_cpp='$CPP $CPPFLAGS'
19095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19097 cross_compiling=$ac_cv_prog_cc_cross
19098
19099     
19100 fi
19101
19102   fi
19103   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
19104
19105   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
19106     for ac_func in frexpl
19107 do
19108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19109 echo "configure:19110: checking for $ac_func" >&5
19110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19111   echo $ac_n "(cached) $ac_c" 1>&6
19112 else
19113   cat > conftest.$ac_ext <<EOF
19114 #line 19115 "configure"
19115 #include "confdefs.h"
19116 /* System header to define __stub macros and hopefully few prototypes,
19117     which can conflict with char $ac_func(); below.  */
19118 #include <assert.h>
19119 /* Override any gcc2 internal prototype to avoid an error.  */
19120 /* We use char because int might match the return type of a gcc2
19121     builtin and then its argument prototype would still apply.  */
19122 char $ac_func();
19123
19124 int main() {
19125
19126 /* The GNU C library defines this for functions which it implements
19127     to always fail with ENOSYS.  Some functions are actually named
19128     something starting with __ and the normal name is an alias.  */
19129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19130 choke me
19131 #else
19132 $ac_func();
19133 #endif
19134
19135 ; return 0; }
19136 EOF
19137 if { (eval echo configure:19138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19138   rm -rf conftest*
19139   eval "ac_cv_func_$ac_func=yes"
19140 else
19141   echo "configure: failed program was:" >&5
19142   cat conftest.$ac_ext >&5
19143   rm -rf conftest*
19144   eval "ac_cv_func_$ac_func=no"
19145 fi
19146 rm -f conftest*
19147 fi
19148
19149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19150   echo "$ac_t""yes" 1>&6
19151     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19152   cat >> confdefs.h <<EOF
19153 #define $ac_tr_func 1
19154 EOF
19155  
19156 else
19157   echo "$ac_t""no" 1>&6
19158 fi
19159 done
19160     
19161   else
19162     
19163   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
19164 echo "configure:19165: checking for _frexpl declaration" >&5
19165   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
19166     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
19167   echo $ac_n "(cached) $ac_c" 1>&6
19168 else
19169   
19170       
19171       ac_ext=C
19172 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19173 ac_cpp='$CXXCPP $CPPFLAGS'
19174 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19175 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19176 cross_compiling=$ac_cv_prog_cxx_cross
19177
19178       cat > conftest.$ac_ext <<EOF
19179 #line 19180 "configure"
19180 #include "confdefs.h"
19181 #include <math.h>
19182 int main() {
19183  _frexpl(0, 0);
19184 ; return 0; }
19185 EOF
19186 if { (eval echo configure:19187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19187   rm -rf conftest*
19188   glibcpp_cv_func__frexpl_use=yes
19189 else
19190   echo "configure: failed program was:" >&5
19191   cat conftest.$ac_ext >&5
19192   rm -rf conftest*
19193   glibcpp_cv_func__frexpl_use=no
19194 fi
19195 rm -f conftest*
19196       ac_ext=c
19197 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19198 ac_cpp='$CPP $CPPFLAGS'
19199 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19200 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19201 cross_compiling=$ac_cv_prog_cc_cross
19202
19203     
19204 fi
19205
19206   fi
19207   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
19208
19209     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
19210       for ac_func in _frexpl
19211 do
19212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19213 echo "configure:19214: checking for $ac_func" >&5
19214 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19215   echo $ac_n "(cached) $ac_c" 1>&6
19216 else
19217   cat > conftest.$ac_ext <<EOF
19218 #line 19219 "configure"
19219 #include "confdefs.h"
19220 /* System header to define __stub macros and hopefully few prototypes,
19221     which can conflict with char $ac_func(); below.  */
19222 #include <assert.h>
19223 /* Override any gcc2 internal prototype to avoid an error.  */
19224 /* We use char because int might match the return type of a gcc2
19225     builtin and then its argument prototype would still apply.  */
19226 char $ac_func();
19227
19228 int main() {
19229
19230 /* The GNU C library defines this for functions which it implements
19231     to always fail with ENOSYS.  Some functions are actually named
19232     something starting with __ and the normal name is an alias.  */
19233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19234 choke me
19235 #else
19236 $ac_func();
19237 #endif
19238
19239 ; return 0; }
19240 EOF
19241 if { (eval echo configure:19242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19242   rm -rf conftest*
19243   eval "ac_cv_func_$ac_func=yes"
19244 else
19245   echo "configure: failed program was:" >&5
19246   cat conftest.$ac_ext >&5
19247   rm -rf conftest*
19248   eval "ac_cv_func_$ac_func=no"
19249 fi
19250 rm -f conftest*
19251 fi
19252
19253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19254   echo "$ac_t""yes" 1>&6
19255     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19256   cat >> confdefs.h <<EOF
19257 #define $ac_tr_func 1
19258 EOF
19259  
19260 else
19261   echo "$ac_t""no" 1>&6
19262 fi
19263 done
19264     
19265     fi
19266   fi
19267
19268   
19269   
19270   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
19271 echo "configure:19272: checking for hypotl declaration" >&5
19272   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
19273     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
19274   echo $ac_n "(cached) $ac_c" 1>&6
19275 else
19276   
19277       
19278       ac_ext=C
19279 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19280 ac_cpp='$CXXCPP $CPPFLAGS'
19281 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19282 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19283 cross_compiling=$ac_cv_prog_cxx_cross
19284
19285       cat > conftest.$ac_ext <<EOF
19286 #line 19287 "configure"
19287 #include "confdefs.h"
19288 #include <math.h>
19289 int main() {
19290  hypotl(0, 0);
19291 ; return 0; }
19292 EOF
19293 if { (eval echo configure:19294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19294   rm -rf conftest*
19295   glibcpp_cv_func_hypotl_use=yes
19296 else
19297   echo "configure: failed program was:" >&5
19298   cat conftest.$ac_ext >&5
19299   rm -rf conftest*
19300   glibcpp_cv_func_hypotl_use=no
19301 fi
19302 rm -f conftest*
19303       ac_ext=c
19304 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19305 ac_cpp='$CPP $CPPFLAGS'
19306 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19307 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19308 cross_compiling=$ac_cv_prog_cc_cross
19309
19310     
19311 fi
19312
19313   fi
19314   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
19315
19316   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
19317     for ac_func in hypotl
19318 do
19319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19320 echo "configure:19321: checking for $ac_func" >&5
19321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19322   echo $ac_n "(cached) $ac_c" 1>&6
19323 else
19324   cat > conftest.$ac_ext <<EOF
19325 #line 19326 "configure"
19326 #include "confdefs.h"
19327 /* System header to define __stub macros and hopefully few prototypes,
19328     which can conflict with char $ac_func(); below.  */
19329 #include <assert.h>
19330 /* Override any gcc2 internal prototype to avoid an error.  */
19331 /* We use char because int might match the return type of a gcc2
19332     builtin and then its argument prototype would still apply.  */
19333 char $ac_func();
19334
19335 int main() {
19336
19337 /* The GNU C library defines this for functions which it implements
19338     to always fail with ENOSYS.  Some functions are actually named
19339     something starting with __ and the normal name is an alias.  */
19340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19341 choke me
19342 #else
19343 $ac_func();
19344 #endif
19345
19346 ; return 0; }
19347 EOF
19348 if { (eval echo configure:19349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19349   rm -rf conftest*
19350   eval "ac_cv_func_$ac_func=yes"
19351 else
19352   echo "configure: failed program was:" >&5
19353   cat conftest.$ac_ext >&5
19354   rm -rf conftest*
19355   eval "ac_cv_func_$ac_func=no"
19356 fi
19357 rm -f conftest*
19358 fi
19359
19360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19361   echo "$ac_t""yes" 1>&6
19362     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19363   cat >> confdefs.h <<EOF
19364 #define $ac_tr_func 1
19365 EOF
19366  
19367 else
19368   echo "$ac_t""no" 1>&6
19369 fi
19370 done
19371     
19372   else
19373     
19374   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
19375 echo "configure:19376: checking for _hypotl declaration" >&5
19376   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
19377     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
19378   echo $ac_n "(cached) $ac_c" 1>&6
19379 else
19380   
19381       
19382       ac_ext=C
19383 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19384 ac_cpp='$CXXCPP $CPPFLAGS'
19385 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19386 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19387 cross_compiling=$ac_cv_prog_cxx_cross
19388
19389       cat > conftest.$ac_ext <<EOF
19390 #line 19391 "configure"
19391 #include "confdefs.h"
19392 #include <math.h>
19393 int main() {
19394  _hypotl(0, 0);
19395 ; return 0; }
19396 EOF
19397 if { (eval echo configure:19398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19398   rm -rf conftest*
19399   glibcpp_cv_func__hypotl_use=yes
19400 else
19401   echo "configure: failed program was:" >&5
19402   cat conftest.$ac_ext >&5
19403   rm -rf conftest*
19404   glibcpp_cv_func__hypotl_use=no
19405 fi
19406 rm -f conftest*
19407       ac_ext=c
19408 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19409 ac_cpp='$CPP $CPPFLAGS'
19410 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19411 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19412 cross_compiling=$ac_cv_prog_cc_cross
19413
19414     
19415 fi
19416
19417   fi
19418   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
19419
19420     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
19421       for ac_func in _hypotl
19422 do
19423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19424 echo "configure:19425: checking for $ac_func" >&5
19425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19426   echo $ac_n "(cached) $ac_c" 1>&6
19427 else
19428   cat > conftest.$ac_ext <<EOF
19429 #line 19430 "configure"
19430 #include "confdefs.h"
19431 /* System header to define __stub macros and hopefully few prototypes,
19432     which can conflict with char $ac_func(); below.  */
19433 #include <assert.h>
19434 /* Override any gcc2 internal prototype to avoid an error.  */
19435 /* We use char because int might match the return type of a gcc2
19436     builtin and then its argument prototype would still apply.  */
19437 char $ac_func();
19438
19439 int main() {
19440
19441 /* The GNU C library defines this for functions which it implements
19442     to always fail with ENOSYS.  Some functions are actually named
19443     something starting with __ and the normal name is an alias.  */
19444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19445 choke me
19446 #else
19447 $ac_func();
19448 #endif
19449
19450 ; return 0; }
19451 EOF
19452 if { (eval echo configure:19453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19453   rm -rf conftest*
19454   eval "ac_cv_func_$ac_func=yes"
19455 else
19456   echo "configure: failed program was:" >&5
19457   cat conftest.$ac_ext >&5
19458   rm -rf conftest*
19459   eval "ac_cv_func_$ac_func=no"
19460 fi
19461 rm -f conftest*
19462 fi
19463
19464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19465   echo "$ac_t""yes" 1>&6
19466     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19467   cat >> confdefs.h <<EOF
19468 #define $ac_tr_func 1
19469 EOF
19470  
19471 else
19472   echo "$ac_t""no" 1>&6
19473 fi
19474 done
19475     
19476     fi
19477   fi
19478
19479   
19480   
19481   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
19482 echo "configure:19483: checking for ldexpl declaration" >&5
19483   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
19484     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
19485   echo $ac_n "(cached) $ac_c" 1>&6
19486 else
19487   
19488       
19489       ac_ext=C
19490 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19491 ac_cpp='$CXXCPP $CPPFLAGS'
19492 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19493 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19494 cross_compiling=$ac_cv_prog_cxx_cross
19495
19496       cat > conftest.$ac_ext <<EOF
19497 #line 19498 "configure"
19498 #include "confdefs.h"
19499 #include <math.h>
19500 int main() {
19501  ldexpl(0, 0);
19502 ; return 0; }
19503 EOF
19504 if { (eval echo configure:19505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19505   rm -rf conftest*
19506   glibcpp_cv_func_ldexpl_use=yes
19507 else
19508   echo "configure: failed program was:" >&5
19509   cat conftest.$ac_ext >&5
19510   rm -rf conftest*
19511   glibcpp_cv_func_ldexpl_use=no
19512 fi
19513 rm -f conftest*
19514       ac_ext=c
19515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19516 ac_cpp='$CPP $CPPFLAGS'
19517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19519 cross_compiling=$ac_cv_prog_cc_cross
19520
19521     
19522 fi
19523
19524   fi
19525   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
19526
19527   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
19528     for ac_func in ldexpl
19529 do
19530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19531 echo "configure:19532: checking for $ac_func" >&5
19532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19533   echo $ac_n "(cached) $ac_c" 1>&6
19534 else
19535   cat > conftest.$ac_ext <<EOF
19536 #line 19537 "configure"
19537 #include "confdefs.h"
19538 /* System header to define __stub macros and hopefully few prototypes,
19539     which can conflict with char $ac_func(); below.  */
19540 #include <assert.h>
19541 /* Override any gcc2 internal prototype to avoid an error.  */
19542 /* We use char because int might match the return type of a gcc2
19543     builtin and then its argument prototype would still apply.  */
19544 char $ac_func();
19545
19546 int main() {
19547
19548 /* The GNU C library defines this for functions which it implements
19549     to always fail with ENOSYS.  Some functions are actually named
19550     something starting with __ and the normal name is an alias.  */
19551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19552 choke me
19553 #else
19554 $ac_func();
19555 #endif
19556
19557 ; return 0; }
19558 EOF
19559 if { (eval echo configure:19560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19560   rm -rf conftest*
19561   eval "ac_cv_func_$ac_func=yes"
19562 else
19563   echo "configure: failed program was:" >&5
19564   cat conftest.$ac_ext >&5
19565   rm -rf conftest*
19566   eval "ac_cv_func_$ac_func=no"
19567 fi
19568 rm -f conftest*
19569 fi
19570
19571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19572   echo "$ac_t""yes" 1>&6
19573     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19574   cat >> confdefs.h <<EOF
19575 #define $ac_tr_func 1
19576 EOF
19577  
19578 else
19579   echo "$ac_t""no" 1>&6
19580 fi
19581 done
19582     
19583   else
19584     
19585   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
19586 echo "configure:19587: checking for _ldexpl declaration" >&5
19587   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
19588     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
19589   echo $ac_n "(cached) $ac_c" 1>&6
19590 else
19591   
19592       
19593       ac_ext=C
19594 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19595 ac_cpp='$CXXCPP $CPPFLAGS'
19596 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19597 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19598 cross_compiling=$ac_cv_prog_cxx_cross
19599
19600       cat > conftest.$ac_ext <<EOF
19601 #line 19602 "configure"
19602 #include "confdefs.h"
19603 #include <math.h>
19604 int main() {
19605  _ldexpl(0, 0);
19606 ; return 0; }
19607 EOF
19608 if { (eval echo configure:19609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19609   rm -rf conftest*
19610   glibcpp_cv_func__ldexpl_use=yes
19611 else
19612   echo "configure: failed program was:" >&5
19613   cat conftest.$ac_ext >&5
19614   rm -rf conftest*
19615   glibcpp_cv_func__ldexpl_use=no
19616 fi
19617 rm -f conftest*
19618       ac_ext=c
19619 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19620 ac_cpp='$CPP $CPPFLAGS'
19621 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19622 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19623 cross_compiling=$ac_cv_prog_cc_cross
19624
19625     
19626 fi
19627
19628   fi
19629   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
19630
19631     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
19632       for ac_func in _ldexpl
19633 do
19634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19635 echo "configure:19636: checking for $ac_func" >&5
19636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19637   echo $ac_n "(cached) $ac_c" 1>&6
19638 else
19639   cat > conftest.$ac_ext <<EOF
19640 #line 19641 "configure"
19641 #include "confdefs.h"
19642 /* System header to define __stub macros and hopefully few prototypes,
19643     which can conflict with char $ac_func(); below.  */
19644 #include <assert.h>
19645 /* Override any gcc2 internal prototype to avoid an error.  */
19646 /* We use char because int might match the return type of a gcc2
19647     builtin and then its argument prototype would still apply.  */
19648 char $ac_func();
19649
19650 int main() {
19651
19652 /* The GNU C library defines this for functions which it implements
19653     to always fail with ENOSYS.  Some functions are actually named
19654     something starting with __ and the normal name is an alias.  */
19655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19656 choke me
19657 #else
19658 $ac_func();
19659 #endif
19660
19661 ; return 0; }
19662 EOF
19663 if { (eval echo configure:19664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19664   rm -rf conftest*
19665   eval "ac_cv_func_$ac_func=yes"
19666 else
19667   echo "configure: failed program was:" >&5
19668   cat conftest.$ac_ext >&5
19669   rm -rf conftest*
19670   eval "ac_cv_func_$ac_func=no"
19671 fi
19672 rm -f conftest*
19673 fi
19674
19675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19676   echo "$ac_t""yes" 1>&6
19677     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19678   cat >> confdefs.h <<EOF
19679 #define $ac_tr_func 1
19680 EOF
19681  
19682 else
19683   echo "$ac_t""no" 1>&6
19684 fi
19685 done
19686     
19687     fi
19688   fi
19689
19690   
19691   
19692   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
19693 echo "configure:19694: checking for logl declaration" >&5
19694   if test x${glibcpp_cv_func_logl_use+set} != xset; then
19695     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
19696   echo $ac_n "(cached) $ac_c" 1>&6
19697 else
19698   
19699       
19700       ac_ext=C
19701 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19702 ac_cpp='$CXXCPP $CPPFLAGS'
19703 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19704 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19705 cross_compiling=$ac_cv_prog_cxx_cross
19706
19707       cat > conftest.$ac_ext <<EOF
19708 #line 19709 "configure"
19709 #include "confdefs.h"
19710 #include <math.h>
19711                       #ifdef HAVE_IEEEFP_H
19712                       #include <ieeefp.h>
19713                       #endif
19714                      
19715 int main() {
19716  logl(0);
19717 ; return 0; }
19718 EOF
19719 if { (eval echo configure:19720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19720   rm -rf conftest*
19721   glibcpp_cv_func_logl_use=yes
19722 else
19723   echo "configure: failed program was:" >&5
19724   cat conftest.$ac_ext >&5
19725   rm -rf conftest*
19726   glibcpp_cv_func_logl_use=no
19727 fi
19728 rm -f conftest*
19729       ac_ext=c
19730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19731 ac_cpp='$CPP $CPPFLAGS'
19732 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19733 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19734 cross_compiling=$ac_cv_prog_cc_cross
19735
19736     
19737 fi
19738
19739   fi
19740   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
19741
19742   if test x$glibcpp_cv_func_logl_use = x"yes"; then
19743     for ac_func in logl
19744 do
19745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19746 echo "configure:19747: checking for $ac_func" >&5
19747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19748   echo $ac_n "(cached) $ac_c" 1>&6
19749 else
19750   cat > conftest.$ac_ext <<EOF
19751 #line 19752 "configure"
19752 #include "confdefs.h"
19753 /* System header to define __stub macros and hopefully few prototypes,
19754     which can conflict with char $ac_func(); below.  */
19755 #include <assert.h>
19756 /* Override any gcc2 internal prototype to avoid an error.  */
19757 /* We use char because int might match the return type of a gcc2
19758     builtin and then its argument prototype would still apply.  */
19759 char $ac_func();
19760
19761 int main() {
19762
19763 /* The GNU C library defines this for functions which it implements
19764     to always fail with ENOSYS.  Some functions are actually named
19765     something starting with __ and the normal name is an alias.  */
19766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19767 choke me
19768 #else
19769 $ac_func();
19770 #endif
19771
19772 ; return 0; }
19773 EOF
19774 if { (eval echo configure:19775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19775   rm -rf conftest*
19776   eval "ac_cv_func_$ac_func=yes"
19777 else
19778   echo "configure: failed program was:" >&5
19779   cat conftest.$ac_ext >&5
19780   rm -rf conftest*
19781   eval "ac_cv_func_$ac_func=no"
19782 fi
19783 rm -f conftest*
19784 fi
19785
19786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19787   echo "$ac_t""yes" 1>&6
19788     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19789   cat >> confdefs.h <<EOF
19790 #define $ac_tr_func 1
19791 EOF
19792  
19793 else
19794   echo "$ac_t""no" 1>&6
19795 fi
19796 done
19797     
19798   else
19799     
19800   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
19801 echo "configure:19802: checking for _logl declaration" >&5
19802   if test x${glibcpp_cv_func__logl_use+set} != xset; then
19803     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
19804   echo $ac_n "(cached) $ac_c" 1>&6
19805 else
19806   
19807       
19808       ac_ext=C
19809 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19810 ac_cpp='$CXXCPP $CPPFLAGS'
19811 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19812 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19813 cross_compiling=$ac_cv_prog_cxx_cross
19814
19815       cat > conftest.$ac_ext <<EOF
19816 #line 19817 "configure"
19817 #include "confdefs.h"
19818 #include <math.h>
19819                       #ifdef HAVE_IEEEFP_H
19820                       #include <ieeefp.h>
19821                       #endif
19822                      
19823 int main() {
19824  _logl(0);
19825 ; return 0; }
19826 EOF
19827 if { (eval echo configure:19828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19828   rm -rf conftest*
19829   glibcpp_cv_func__logl_use=yes
19830 else
19831   echo "configure: failed program was:" >&5
19832   cat conftest.$ac_ext >&5
19833   rm -rf conftest*
19834   glibcpp_cv_func__logl_use=no
19835 fi
19836 rm -f conftest*
19837       ac_ext=c
19838 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19839 ac_cpp='$CPP $CPPFLAGS'
19840 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19841 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19842 cross_compiling=$ac_cv_prog_cc_cross
19843
19844     
19845 fi
19846
19847   fi
19848   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
19849
19850     if test x$glibcpp_cv_func__logl_use = x"yes"; then
19851       for ac_func in _logl
19852 do
19853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19854 echo "configure:19855: checking for $ac_func" >&5
19855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19856   echo $ac_n "(cached) $ac_c" 1>&6
19857 else
19858   cat > conftest.$ac_ext <<EOF
19859 #line 19860 "configure"
19860 #include "confdefs.h"
19861 /* System header to define __stub macros and hopefully few prototypes,
19862     which can conflict with char $ac_func(); below.  */
19863 #include <assert.h>
19864 /* Override any gcc2 internal prototype to avoid an error.  */
19865 /* We use char because int might match the return type of a gcc2
19866     builtin and then its argument prototype would still apply.  */
19867 char $ac_func();
19868
19869 int main() {
19870
19871 /* The GNU C library defines this for functions which it implements
19872     to always fail with ENOSYS.  Some functions are actually named
19873     something starting with __ and the normal name is an alias.  */
19874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19875 choke me
19876 #else
19877 $ac_func();
19878 #endif
19879
19880 ; return 0; }
19881 EOF
19882 if { (eval echo configure:19883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19883   rm -rf conftest*
19884   eval "ac_cv_func_$ac_func=yes"
19885 else
19886   echo "configure: failed program was:" >&5
19887   cat conftest.$ac_ext >&5
19888   rm -rf conftest*
19889   eval "ac_cv_func_$ac_func=no"
19890 fi
19891 rm -f conftest*
19892 fi
19893
19894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19895   echo "$ac_t""yes" 1>&6
19896     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19897   cat >> confdefs.h <<EOF
19898 #define $ac_tr_func 1
19899 EOF
19900  
19901 else
19902   echo "$ac_t""no" 1>&6
19903 fi
19904 done
19905     
19906     fi
19907   fi
19908
19909   
19910   
19911   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
19912 echo "configure:19913: checking for log10l declaration" >&5
19913   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
19914     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
19915   echo $ac_n "(cached) $ac_c" 1>&6
19916 else
19917   
19918       
19919       ac_ext=C
19920 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19921 ac_cpp='$CXXCPP $CPPFLAGS'
19922 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19923 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19924 cross_compiling=$ac_cv_prog_cxx_cross
19925
19926       cat > conftest.$ac_ext <<EOF
19927 #line 19928 "configure"
19928 #include "confdefs.h"
19929 #include <math.h>
19930                       #ifdef HAVE_IEEEFP_H
19931                       #include <ieeefp.h>
19932                       #endif
19933                      
19934 int main() {
19935  log10l(0);
19936 ; return 0; }
19937 EOF
19938 if { (eval echo configure:19939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19939   rm -rf conftest*
19940   glibcpp_cv_func_log10l_use=yes
19941 else
19942   echo "configure: failed program was:" >&5
19943   cat conftest.$ac_ext >&5
19944   rm -rf conftest*
19945   glibcpp_cv_func_log10l_use=no
19946 fi
19947 rm -f conftest*
19948       ac_ext=c
19949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19950 ac_cpp='$CPP $CPPFLAGS'
19951 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19952 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19953 cross_compiling=$ac_cv_prog_cc_cross
19954
19955     
19956 fi
19957
19958   fi
19959   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
19960
19961   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
19962     for ac_func in log10l
19963 do
19964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19965 echo "configure:19966: checking for $ac_func" >&5
19966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19967   echo $ac_n "(cached) $ac_c" 1>&6
19968 else
19969   cat > conftest.$ac_ext <<EOF
19970 #line 19971 "configure"
19971 #include "confdefs.h"
19972 /* System header to define __stub macros and hopefully few prototypes,
19973     which can conflict with char $ac_func(); below.  */
19974 #include <assert.h>
19975 /* Override any gcc2 internal prototype to avoid an error.  */
19976 /* We use char because int might match the return type of a gcc2
19977     builtin and then its argument prototype would still apply.  */
19978 char $ac_func();
19979
19980 int main() {
19981
19982 /* The GNU C library defines this for functions which it implements
19983     to always fail with ENOSYS.  Some functions are actually named
19984     something starting with __ and the normal name is an alias.  */
19985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19986 choke me
19987 #else
19988 $ac_func();
19989 #endif
19990
19991 ; return 0; }
19992 EOF
19993 if { (eval echo configure:19994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19994   rm -rf conftest*
19995   eval "ac_cv_func_$ac_func=yes"
19996 else
19997   echo "configure: failed program was:" >&5
19998   cat conftest.$ac_ext >&5
19999   rm -rf conftest*
20000   eval "ac_cv_func_$ac_func=no"
20001 fi
20002 rm -f conftest*
20003 fi
20004
20005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20006   echo "$ac_t""yes" 1>&6
20007     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20008   cat >> confdefs.h <<EOF
20009 #define $ac_tr_func 1
20010 EOF
20011  
20012 else
20013   echo "$ac_t""no" 1>&6
20014 fi
20015 done
20016     
20017   else
20018     
20019   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
20020 echo "configure:20021: checking for _log10l declaration" >&5
20021   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
20022     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
20023   echo $ac_n "(cached) $ac_c" 1>&6
20024 else
20025   
20026       
20027       ac_ext=C
20028 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20029 ac_cpp='$CXXCPP $CPPFLAGS'
20030 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20031 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20032 cross_compiling=$ac_cv_prog_cxx_cross
20033
20034       cat > conftest.$ac_ext <<EOF
20035 #line 20036 "configure"
20036 #include "confdefs.h"
20037 #include <math.h>
20038                       #ifdef HAVE_IEEEFP_H
20039                       #include <ieeefp.h>
20040                       #endif
20041                      
20042 int main() {
20043  _log10l(0);
20044 ; return 0; }
20045 EOF
20046 if { (eval echo configure:20047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20047   rm -rf conftest*
20048   glibcpp_cv_func__log10l_use=yes
20049 else
20050   echo "configure: failed program was:" >&5
20051   cat conftest.$ac_ext >&5
20052   rm -rf conftest*
20053   glibcpp_cv_func__log10l_use=no
20054 fi
20055 rm -f conftest*
20056       ac_ext=c
20057 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20058 ac_cpp='$CPP $CPPFLAGS'
20059 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20060 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20061 cross_compiling=$ac_cv_prog_cc_cross
20062
20063     
20064 fi
20065
20066   fi
20067   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
20068
20069     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
20070       for ac_func in _log10l
20071 do
20072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20073 echo "configure:20074: checking for $ac_func" >&5
20074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20075   echo $ac_n "(cached) $ac_c" 1>&6
20076 else
20077   cat > conftest.$ac_ext <<EOF
20078 #line 20079 "configure"
20079 #include "confdefs.h"
20080 /* System header to define __stub macros and hopefully few prototypes,
20081     which can conflict with char $ac_func(); below.  */
20082 #include <assert.h>
20083 /* Override any gcc2 internal prototype to avoid an error.  */
20084 /* We use char because int might match the return type of a gcc2
20085     builtin and then its argument prototype would still apply.  */
20086 char $ac_func();
20087
20088 int main() {
20089
20090 /* The GNU C library defines this for functions which it implements
20091     to always fail with ENOSYS.  Some functions are actually named
20092     something starting with __ and the normal name is an alias.  */
20093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20094 choke me
20095 #else
20096 $ac_func();
20097 #endif
20098
20099 ; return 0; }
20100 EOF
20101 if { (eval echo configure:20102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20102   rm -rf conftest*
20103   eval "ac_cv_func_$ac_func=yes"
20104 else
20105   echo "configure: failed program was:" >&5
20106   cat conftest.$ac_ext >&5
20107   rm -rf conftest*
20108   eval "ac_cv_func_$ac_func=no"
20109 fi
20110 rm -f conftest*
20111 fi
20112
20113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20114   echo "$ac_t""yes" 1>&6
20115     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20116   cat >> confdefs.h <<EOF
20117 #define $ac_tr_func 1
20118 EOF
20119  
20120 else
20121   echo "$ac_t""no" 1>&6
20122 fi
20123 done
20124     
20125     fi
20126   fi
20127
20128   
20129   
20130   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
20131 echo "configure:20132: checking for modfl declaration" >&5
20132   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
20133     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
20134   echo $ac_n "(cached) $ac_c" 1>&6
20135 else
20136   
20137       
20138       ac_ext=C
20139 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20140 ac_cpp='$CXXCPP $CPPFLAGS'
20141 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20142 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20143 cross_compiling=$ac_cv_prog_cxx_cross
20144
20145       cat > conftest.$ac_ext <<EOF
20146 #line 20147 "configure"
20147 #include "confdefs.h"
20148 #include <math.h>
20149 int main() {
20150  modfl(0, 0);
20151 ; return 0; }
20152 EOF
20153 if { (eval echo configure:20154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20154   rm -rf conftest*
20155   glibcpp_cv_func_modfl_use=yes
20156 else
20157   echo "configure: failed program was:" >&5
20158   cat conftest.$ac_ext >&5
20159   rm -rf conftest*
20160   glibcpp_cv_func_modfl_use=no
20161 fi
20162 rm -f conftest*
20163       ac_ext=c
20164 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20165 ac_cpp='$CPP $CPPFLAGS'
20166 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20167 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20168 cross_compiling=$ac_cv_prog_cc_cross
20169
20170     
20171 fi
20172
20173   fi
20174   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
20175
20176   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
20177     for ac_func in modfl
20178 do
20179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20180 echo "configure:20181: checking for $ac_func" >&5
20181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20182   echo $ac_n "(cached) $ac_c" 1>&6
20183 else
20184   cat > conftest.$ac_ext <<EOF
20185 #line 20186 "configure"
20186 #include "confdefs.h"
20187 /* System header to define __stub macros and hopefully few prototypes,
20188     which can conflict with char $ac_func(); below.  */
20189 #include <assert.h>
20190 /* Override any gcc2 internal prototype to avoid an error.  */
20191 /* We use char because int might match the return type of a gcc2
20192     builtin and then its argument prototype would still apply.  */
20193 char $ac_func();
20194
20195 int main() {
20196
20197 /* The GNU C library defines this for functions which it implements
20198     to always fail with ENOSYS.  Some functions are actually named
20199     something starting with __ and the normal name is an alias.  */
20200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20201 choke me
20202 #else
20203 $ac_func();
20204 #endif
20205
20206 ; return 0; }
20207 EOF
20208 if { (eval echo configure:20209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20209   rm -rf conftest*
20210   eval "ac_cv_func_$ac_func=yes"
20211 else
20212   echo "configure: failed program was:" >&5
20213   cat conftest.$ac_ext >&5
20214   rm -rf conftest*
20215   eval "ac_cv_func_$ac_func=no"
20216 fi
20217 rm -f conftest*
20218 fi
20219
20220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20221   echo "$ac_t""yes" 1>&6
20222     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20223   cat >> confdefs.h <<EOF
20224 #define $ac_tr_func 1
20225 EOF
20226  
20227 else
20228   echo "$ac_t""no" 1>&6
20229 fi
20230 done
20231     
20232   else
20233     
20234   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
20235 echo "configure:20236: checking for _modfl declaration" >&5
20236   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
20237     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
20238   echo $ac_n "(cached) $ac_c" 1>&6
20239 else
20240   
20241       
20242       ac_ext=C
20243 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20244 ac_cpp='$CXXCPP $CPPFLAGS'
20245 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20246 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20247 cross_compiling=$ac_cv_prog_cxx_cross
20248
20249       cat > conftest.$ac_ext <<EOF
20250 #line 20251 "configure"
20251 #include "confdefs.h"
20252 #include <math.h>
20253 int main() {
20254  _modfl(0, 0);
20255 ; return 0; }
20256 EOF
20257 if { (eval echo configure:20258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20258   rm -rf conftest*
20259   glibcpp_cv_func__modfl_use=yes
20260 else
20261   echo "configure: failed program was:" >&5
20262   cat conftest.$ac_ext >&5
20263   rm -rf conftest*
20264   glibcpp_cv_func__modfl_use=no
20265 fi
20266 rm -f conftest*
20267       ac_ext=c
20268 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20269 ac_cpp='$CPP $CPPFLAGS'
20270 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20271 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20272 cross_compiling=$ac_cv_prog_cc_cross
20273
20274     
20275 fi
20276
20277   fi
20278   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
20279
20280     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
20281       for ac_func in _modfl
20282 do
20283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20284 echo "configure:20285: checking for $ac_func" >&5
20285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20286   echo $ac_n "(cached) $ac_c" 1>&6
20287 else
20288   cat > conftest.$ac_ext <<EOF
20289 #line 20290 "configure"
20290 #include "confdefs.h"
20291 /* System header to define __stub macros and hopefully few prototypes,
20292     which can conflict with char $ac_func(); below.  */
20293 #include <assert.h>
20294 /* Override any gcc2 internal prototype to avoid an error.  */
20295 /* We use char because int might match the return type of a gcc2
20296     builtin and then its argument prototype would still apply.  */
20297 char $ac_func();
20298
20299 int main() {
20300
20301 /* The GNU C library defines this for functions which it implements
20302     to always fail with ENOSYS.  Some functions are actually named
20303     something starting with __ and the normal name is an alias.  */
20304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20305 choke me
20306 #else
20307 $ac_func();
20308 #endif
20309
20310 ; return 0; }
20311 EOF
20312 if { (eval echo configure:20313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20313   rm -rf conftest*
20314   eval "ac_cv_func_$ac_func=yes"
20315 else
20316   echo "configure: failed program was:" >&5
20317   cat conftest.$ac_ext >&5
20318   rm -rf conftest*
20319   eval "ac_cv_func_$ac_func=no"
20320 fi
20321 rm -f conftest*
20322 fi
20323
20324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20325   echo "$ac_t""yes" 1>&6
20326     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20327   cat >> confdefs.h <<EOF
20328 #define $ac_tr_func 1
20329 EOF
20330  
20331 else
20332   echo "$ac_t""no" 1>&6
20333 fi
20334 done
20335     
20336     fi
20337   fi
20338
20339   
20340   
20341   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
20342 echo "configure:20343: checking for powl declaration" >&5
20343   if test x${glibcpp_cv_func_powl_use+set} != xset; then
20344     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
20345   echo $ac_n "(cached) $ac_c" 1>&6
20346 else
20347   
20348       
20349       ac_ext=C
20350 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20351 ac_cpp='$CXXCPP $CPPFLAGS'
20352 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20353 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20354 cross_compiling=$ac_cv_prog_cxx_cross
20355
20356       cat > conftest.$ac_ext <<EOF
20357 #line 20358 "configure"
20358 #include "confdefs.h"
20359 #include <math.h>
20360 int main() {
20361  powl(0, 0);
20362 ; return 0; }
20363 EOF
20364 if { (eval echo configure:20365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20365   rm -rf conftest*
20366   glibcpp_cv_func_powl_use=yes
20367 else
20368   echo "configure: failed program was:" >&5
20369   cat conftest.$ac_ext >&5
20370   rm -rf conftest*
20371   glibcpp_cv_func_powl_use=no
20372 fi
20373 rm -f conftest*
20374       ac_ext=c
20375 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20376 ac_cpp='$CPP $CPPFLAGS'
20377 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20378 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20379 cross_compiling=$ac_cv_prog_cc_cross
20380
20381     
20382 fi
20383
20384   fi
20385   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
20386
20387   if test x$glibcpp_cv_func_powl_use = x"yes"; then
20388     for ac_func in powl
20389 do
20390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20391 echo "configure:20392: checking for $ac_func" >&5
20392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20393   echo $ac_n "(cached) $ac_c" 1>&6
20394 else
20395   cat > conftest.$ac_ext <<EOF
20396 #line 20397 "configure"
20397 #include "confdefs.h"
20398 /* System header to define __stub macros and hopefully few prototypes,
20399     which can conflict with char $ac_func(); below.  */
20400 #include <assert.h>
20401 /* Override any gcc2 internal prototype to avoid an error.  */
20402 /* We use char because int might match the return type of a gcc2
20403     builtin and then its argument prototype would still apply.  */
20404 char $ac_func();
20405
20406 int main() {
20407
20408 /* The GNU C library defines this for functions which it implements
20409     to always fail with ENOSYS.  Some functions are actually named
20410     something starting with __ and the normal name is an alias.  */
20411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20412 choke me
20413 #else
20414 $ac_func();
20415 #endif
20416
20417 ; return 0; }
20418 EOF
20419 if { (eval echo configure:20420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20420   rm -rf conftest*
20421   eval "ac_cv_func_$ac_func=yes"
20422 else
20423   echo "configure: failed program was:" >&5
20424   cat conftest.$ac_ext >&5
20425   rm -rf conftest*
20426   eval "ac_cv_func_$ac_func=no"
20427 fi
20428 rm -f conftest*
20429 fi
20430
20431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20432   echo "$ac_t""yes" 1>&6
20433     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20434   cat >> confdefs.h <<EOF
20435 #define $ac_tr_func 1
20436 EOF
20437  
20438 else
20439   echo "$ac_t""no" 1>&6
20440 fi
20441 done
20442     
20443   else
20444     
20445   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
20446 echo "configure:20447: checking for _powl declaration" >&5
20447   if test x${glibcpp_cv_func__powl_use+set} != xset; then
20448     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
20449   echo $ac_n "(cached) $ac_c" 1>&6
20450 else
20451   
20452       
20453       ac_ext=C
20454 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20455 ac_cpp='$CXXCPP $CPPFLAGS'
20456 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20457 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20458 cross_compiling=$ac_cv_prog_cxx_cross
20459
20460       cat > conftest.$ac_ext <<EOF
20461 #line 20462 "configure"
20462 #include "confdefs.h"
20463 #include <math.h>
20464 int main() {
20465  _powl(0, 0);
20466 ; return 0; }
20467 EOF
20468 if { (eval echo configure:20469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20469   rm -rf conftest*
20470   glibcpp_cv_func__powl_use=yes
20471 else
20472   echo "configure: failed program was:" >&5
20473   cat conftest.$ac_ext >&5
20474   rm -rf conftest*
20475   glibcpp_cv_func__powl_use=no
20476 fi
20477 rm -f conftest*
20478       ac_ext=c
20479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20480 ac_cpp='$CPP $CPPFLAGS'
20481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20483 cross_compiling=$ac_cv_prog_cc_cross
20484
20485     
20486 fi
20487
20488   fi
20489   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
20490
20491     if test x$glibcpp_cv_func__powl_use = x"yes"; then
20492       for ac_func in _powl
20493 do
20494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20495 echo "configure:20496: checking for $ac_func" >&5
20496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20497   echo $ac_n "(cached) $ac_c" 1>&6
20498 else
20499   cat > conftest.$ac_ext <<EOF
20500 #line 20501 "configure"
20501 #include "confdefs.h"
20502 /* System header to define __stub macros and hopefully few prototypes,
20503     which can conflict with char $ac_func(); below.  */
20504 #include <assert.h>
20505 /* Override any gcc2 internal prototype to avoid an error.  */
20506 /* We use char because int might match the return type of a gcc2
20507     builtin and then its argument prototype would still apply.  */
20508 char $ac_func();
20509
20510 int main() {
20511
20512 /* The GNU C library defines this for functions which it implements
20513     to always fail with ENOSYS.  Some functions are actually named
20514     something starting with __ and the normal name is an alias.  */
20515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20516 choke me
20517 #else
20518 $ac_func();
20519 #endif
20520
20521 ; return 0; }
20522 EOF
20523 if { (eval echo configure:20524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20524   rm -rf conftest*
20525   eval "ac_cv_func_$ac_func=yes"
20526 else
20527   echo "configure: failed program was:" >&5
20528   cat conftest.$ac_ext >&5
20529   rm -rf conftest*
20530   eval "ac_cv_func_$ac_func=no"
20531 fi
20532 rm -f conftest*
20533 fi
20534
20535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20536   echo "$ac_t""yes" 1>&6
20537     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20538   cat >> confdefs.h <<EOF
20539 #define $ac_tr_func 1
20540 EOF
20541  
20542 else
20543   echo "$ac_t""no" 1>&6
20544 fi
20545 done
20546     
20547     fi
20548   fi
20549
20550   
20551   
20552   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
20553 echo "configure:20554: checking for sqrtl declaration" >&5
20554   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
20555     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
20556   echo $ac_n "(cached) $ac_c" 1>&6
20557 else
20558   
20559       
20560       ac_ext=C
20561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20562 ac_cpp='$CXXCPP $CPPFLAGS'
20563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20565 cross_compiling=$ac_cv_prog_cxx_cross
20566
20567       cat > conftest.$ac_ext <<EOF
20568 #line 20569 "configure"
20569 #include "confdefs.h"
20570 #include <math.h>
20571                       #ifdef HAVE_IEEEFP_H
20572                       #include <ieeefp.h>
20573                       #endif
20574                      
20575 int main() {
20576  sqrtl(0);
20577 ; return 0; }
20578 EOF
20579 if { (eval echo configure:20580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20580   rm -rf conftest*
20581   glibcpp_cv_func_sqrtl_use=yes
20582 else
20583   echo "configure: failed program was:" >&5
20584   cat conftest.$ac_ext >&5
20585   rm -rf conftest*
20586   glibcpp_cv_func_sqrtl_use=no
20587 fi
20588 rm -f conftest*
20589       ac_ext=c
20590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20591 ac_cpp='$CPP $CPPFLAGS'
20592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20594 cross_compiling=$ac_cv_prog_cc_cross
20595
20596     
20597 fi
20598
20599   fi
20600   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
20601
20602   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
20603     for ac_func in sqrtl
20604 do
20605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20606 echo "configure:20607: checking for $ac_func" >&5
20607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20608   echo $ac_n "(cached) $ac_c" 1>&6
20609 else
20610   cat > conftest.$ac_ext <<EOF
20611 #line 20612 "configure"
20612 #include "confdefs.h"
20613 /* System header to define __stub macros and hopefully few prototypes,
20614     which can conflict with char $ac_func(); below.  */
20615 #include <assert.h>
20616 /* Override any gcc2 internal prototype to avoid an error.  */
20617 /* We use char because int might match the return type of a gcc2
20618     builtin and then its argument prototype would still apply.  */
20619 char $ac_func();
20620
20621 int main() {
20622
20623 /* The GNU C library defines this for functions which it implements
20624     to always fail with ENOSYS.  Some functions are actually named
20625     something starting with __ and the normal name is an alias.  */
20626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20627 choke me
20628 #else
20629 $ac_func();
20630 #endif
20631
20632 ; return 0; }
20633 EOF
20634 if { (eval echo configure:20635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20635   rm -rf conftest*
20636   eval "ac_cv_func_$ac_func=yes"
20637 else
20638   echo "configure: failed program was:" >&5
20639   cat conftest.$ac_ext >&5
20640   rm -rf conftest*
20641   eval "ac_cv_func_$ac_func=no"
20642 fi
20643 rm -f conftest*
20644 fi
20645
20646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20647   echo "$ac_t""yes" 1>&6
20648     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20649   cat >> confdefs.h <<EOF
20650 #define $ac_tr_func 1
20651 EOF
20652  
20653 else
20654   echo "$ac_t""no" 1>&6
20655 fi
20656 done
20657     
20658   else
20659     
20660   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
20661 echo "configure:20662: checking for _sqrtl declaration" >&5
20662   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
20663     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
20664   echo $ac_n "(cached) $ac_c" 1>&6
20665 else
20666   
20667       
20668       ac_ext=C
20669 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20670 ac_cpp='$CXXCPP $CPPFLAGS'
20671 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20672 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20673 cross_compiling=$ac_cv_prog_cxx_cross
20674
20675       cat > conftest.$ac_ext <<EOF
20676 #line 20677 "configure"
20677 #include "confdefs.h"
20678 #include <math.h>
20679                       #ifdef HAVE_IEEEFP_H
20680                       #include <ieeefp.h>
20681                       #endif
20682                      
20683 int main() {
20684  _sqrtl(0);
20685 ; return 0; }
20686 EOF
20687 if { (eval echo configure:20688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20688   rm -rf conftest*
20689   glibcpp_cv_func__sqrtl_use=yes
20690 else
20691   echo "configure: failed program was:" >&5
20692   cat conftest.$ac_ext >&5
20693   rm -rf conftest*
20694   glibcpp_cv_func__sqrtl_use=no
20695 fi
20696 rm -f conftest*
20697       ac_ext=c
20698 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20699 ac_cpp='$CPP $CPPFLAGS'
20700 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20701 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20702 cross_compiling=$ac_cv_prog_cc_cross
20703
20704     
20705 fi
20706
20707   fi
20708   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
20709
20710     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
20711       for ac_func in _sqrtl
20712 do
20713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20714 echo "configure:20715: checking for $ac_func" >&5
20715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20716   echo $ac_n "(cached) $ac_c" 1>&6
20717 else
20718   cat > conftest.$ac_ext <<EOF
20719 #line 20720 "configure"
20720 #include "confdefs.h"
20721 /* System header to define __stub macros and hopefully few prototypes,
20722     which can conflict with char $ac_func(); below.  */
20723 #include <assert.h>
20724 /* Override any gcc2 internal prototype to avoid an error.  */
20725 /* We use char because int might match the return type of a gcc2
20726     builtin and then its argument prototype would still apply.  */
20727 char $ac_func();
20728
20729 int main() {
20730
20731 /* The GNU C library defines this for functions which it implements
20732     to always fail with ENOSYS.  Some functions are actually named
20733     something starting with __ and the normal name is an alias.  */
20734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20735 choke me
20736 #else
20737 $ac_func();
20738 #endif
20739
20740 ; return 0; }
20741 EOF
20742 if { (eval echo configure:20743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20743   rm -rf conftest*
20744   eval "ac_cv_func_$ac_func=yes"
20745 else
20746   echo "configure: failed program was:" >&5
20747   cat conftest.$ac_ext >&5
20748   rm -rf conftest*
20749   eval "ac_cv_func_$ac_func=no"
20750 fi
20751 rm -f conftest*
20752 fi
20753
20754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20755   echo "$ac_t""yes" 1>&6
20756     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20757   cat >> confdefs.h <<EOF
20758 #define $ac_tr_func 1
20759 EOF
20760  
20761 else
20762   echo "$ac_t""no" 1>&6
20763 fi
20764 done
20765     
20766     fi
20767   fi
20768
20769   
20770   
20771   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
20772 echo "configure:20773: checking for sincosl declaration" >&5
20773   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
20774     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
20775   echo $ac_n "(cached) $ac_c" 1>&6
20776 else
20777   
20778       
20779       ac_ext=C
20780 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20781 ac_cpp='$CXXCPP $CPPFLAGS'
20782 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20783 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20784 cross_compiling=$ac_cv_prog_cxx_cross
20785
20786       cat > conftest.$ac_ext <<EOF
20787 #line 20788 "configure"
20788 #include "confdefs.h"
20789 #include <math.h>
20790 int main() {
20791  sincosl(0, 0, 0);
20792 ; return 0; }
20793 EOF
20794 if { (eval echo configure:20795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20795   rm -rf conftest*
20796   glibcpp_cv_func_sincosl_use=yes
20797 else
20798   echo "configure: failed program was:" >&5
20799   cat conftest.$ac_ext >&5
20800   rm -rf conftest*
20801   glibcpp_cv_func_sincosl_use=no
20802 fi
20803 rm -f conftest*
20804       ac_ext=c
20805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20806 ac_cpp='$CPP $CPPFLAGS'
20807 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20808 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20809 cross_compiling=$ac_cv_prog_cc_cross
20810
20811     
20812 fi
20813
20814   fi
20815   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
20816
20817   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
20818     for ac_func in sincosl
20819 do
20820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20821 echo "configure:20822: checking for $ac_func" >&5
20822 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20823   echo $ac_n "(cached) $ac_c" 1>&6
20824 else
20825   cat > conftest.$ac_ext <<EOF
20826 #line 20827 "configure"
20827 #include "confdefs.h"
20828 /* System header to define __stub macros and hopefully few prototypes,
20829     which can conflict with char $ac_func(); below.  */
20830 #include <assert.h>
20831 /* Override any gcc2 internal prototype to avoid an error.  */
20832 /* We use char because int might match the return type of a gcc2
20833     builtin and then its argument prototype would still apply.  */
20834 char $ac_func();
20835
20836 int main() {
20837
20838 /* The GNU C library defines this for functions which it implements
20839     to always fail with ENOSYS.  Some functions are actually named
20840     something starting with __ and the normal name is an alias.  */
20841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20842 choke me
20843 #else
20844 $ac_func();
20845 #endif
20846
20847 ; return 0; }
20848 EOF
20849 if { (eval echo configure:20850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20850   rm -rf conftest*
20851   eval "ac_cv_func_$ac_func=yes"
20852 else
20853   echo "configure: failed program was:" >&5
20854   cat conftest.$ac_ext >&5
20855   rm -rf conftest*
20856   eval "ac_cv_func_$ac_func=no"
20857 fi
20858 rm -f conftest*
20859 fi
20860
20861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20862   echo "$ac_t""yes" 1>&6
20863     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20864   cat >> confdefs.h <<EOF
20865 #define $ac_tr_func 1
20866 EOF
20867  
20868 else
20869   echo "$ac_t""no" 1>&6
20870 fi
20871 done
20872     
20873   else
20874     
20875   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
20876 echo "configure:20877: checking for _sincosl declaration" >&5
20877   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
20878     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
20879   echo $ac_n "(cached) $ac_c" 1>&6
20880 else
20881   
20882       
20883       ac_ext=C
20884 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20885 ac_cpp='$CXXCPP $CPPFLAGS'
20886 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20887 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20888 cross_compiling=$ac_cv_prog_cxx_cross
20889
20890       cat > conftest.$ac_ext <<EOF
20891 #line 20892 "configure"
20892 #include "confdefs.h"
20893 #include <math.h>
20894 int main() {
20895  _sincosl(0, 0, 0);
20896 ; return 0; }
20897 EOF
20898 if { (eval echo configure:20899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20899   rm -rf conftest*
20900   glibcpp_cv_func__sincosl_use=yes
20901 else
20902   echo "configure: failed program was:" >&5
20903   cat conftest.$ac_ext >&5
20904   rm -rf conftest*
20905   glibcpp_cv_func__sincosl_use=no
20906 fi
20907 rm -f conftest*
20908       ac_ext=c
20909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20910 ac_cpp='$CPP $CPPFLAGS'
20911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20913 cross_compiling=$ac_cv_prog_cc_cross
20914
20915     
20916 fi
20917
20918   fi
20919   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
20920
20921     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
20922       for ac_func in _sincosl
20923 do
20924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20925 echo "configure:20926: checking for $ac_func" >&5
20926 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20927   echo $ac_n "(cached) $ac_c" 1>&6
20928 else
20929   cat > conftest.$ac_ext <<EOF
20930 #line 20931 "configure"
20931 #include "confdefs.h"
20932 /* System header to define __stub macros and hopefully few prototypes,
20933     which can conflict with char $ac_func(); below.  */
20934 #include <assert.h>
20935 /* Override any gcc2 internal prototype to avoid an error.  */
20936 /* We use char because int might match the return type of a gcc2
20937     builtin and then its argument prototype would still apply.  */
20938 char $ac_func();
20939
20940 int main() {
20941
20942 /* The GNU C library defines this for functions which it implements
20943     to always fail with ENOSYS.  Some functions are actually named
20944     something starting with __ and the normal name is an alias.  */
20945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20946 choke me
20947 #else
20948 $ac_func();
20949 #endif
20950
20951 ; return 0; }
20952 EOF
20953 if { (eval echo configure:20954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20954   rm -rf conftest*
20955   eval "ac_cv_func_$ac_func=yes"
20956 else
20957   echo "configure: failed program was:" >&5
20958   cat conftest.$ac_ext >&5
20959   rm -rf conftest*
20960   eval "ac_cv_func_$ac_func=no"
20961 fi
20962 rm -f conftest*
20963 fi
20964
20965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20966   echo "$ac_t""yes" 1>&6
20967     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20968   cat >> confdefs.h <<EOF
20969 #define $ac_tr_func 1
20970 EOF
20971  
20972 else
20973   echo "$ac_t""no" 1>&6
20974 fi
20975 done
20976     
20977     fi
20978   fi
20979
20980   
20981   
20982   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
20983 echo "configure:20984: checking for finitel declaration" >&5
20984   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
20985     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
20986   echo $ac_n "(cached) $ac_c" 1>&6
20987 else
20988   
20989       
20990       ac_ext=C
20991 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20992 ac_cpp='$CXXCPP $CPPFLAGS'
20993 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20994 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20995 cross_compiling=$ac_cv_prog_cxx_cross
20996
20997       cat > conftest.$ac_ext <<EOF
20998 #line 20999 "configure"
20999 #include "confdefs.h"
21000 #include <math.h>
21001                       #ifdef HAVE_IEEEFP_H
21002                       #include <ieeefp.h>
21003                       #endif
21004                      
21005 int main() {
21006  finitel(0);
21007 ; return 0; }
21008 EOF
21009 if { (eval echo configure:21010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21010   rm -rf conftest*
21011   glibcpp_cv_func_finitel_use=yes
21012 else
21013   echo "configure: failed program was:" >&5
21014   cat conftest.$ac_ext >&5
21015   rm -rf conftest*
21016   glibcpp_cv_func_finitel_use=no
21017 fi
21018 rm -f conftest*
21019       ac_ext=c
21020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21021 ac_cpp='$CPP $CPPFLAGS'
21022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21024 cross_compiling=$ac_cv_prog_cc_cross
21025
21026     
21027 fi
21028
21029   fi
21030   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
21031
21032   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
21033     for ac_func in finitel
21034 do
21035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21036 echo "configure:21037: checking for $ac_func" >&5
21037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21038   echo $ac_n "(cached) $ac_c" 1>&6
21039 else
21040   cat > conftest.$ac_ext <<EOF
21041 #line 21042 "configure"
21042 #include "confdefs.h"
21043 /* System header to define __stub macros and hopefully few prototypes,
21044     which can conflict with char $ac_func(); below.  */
21045 #include <assert.h>
21046 /* Override any gcc2 internal prototype to avoid an error.  */
21047 /* We use char because int might match the return type of a gcc2
21048     builtin and then its argument prototype would still apply.  */
21049 char $ac_func();
21050
21051 int main() {
21052
21053 /* The GNU C library defines this for functions which it implements
21054     to always fail with ENOSYS.  Some functions are actually named
21055     something starting with __ and the normal name is an alias.  */
21056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21057 choke me
21058 #else
21059 $ac_func();
21060 #endif
21061
21062 ; return 0; }
21063 EOF
21064 if { (eval echo configure:21065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21065   rm -rf conftest*
21066   eval "ac_cv_func_$ac_func=yes"
21067 else
21068   echo "configure: failed program was:" >&5
21069   cat conftest.$ac_ext >&5
21070   rm -rf conftest*
21071   eval "ac_cv_func_$ac_func=no"
21072 fi
21073 rm -f conftest*
21074 fi
21075
21076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21077   echo "$ac_t""yes" 1>&6
21078     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21079   cat >> confdefs.h <<EOF
21080 #define $ac_tr_func 1
21081 EOF
21082  
21083 else
21084   echo "$ac_t""no" 1>&6
21085 fi
21086 done
21087     
21088   else
21089     
21090   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
21091 echo "configure:21092: checking for _finitel declaration" >&5
21092   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
21093     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
21094   echo $ac_n "(cached) $ac_c" 1>&6
21095 else
21096   
21097       
21098       ac_ext=C
21099 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21100 ac_cpp='$CXXCPP $CPPFLAGS'
21101 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21102 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21103 cross_compiling=$ac_cv_prog_cxx_cross
21104
21105       cat > conftest.$ac_ext <<EOF
21106 #line 21107 "configure"
21107 #include "confdefs.h"
21108 #include <math.h>
21109                       #ifdef HAVE_IEEEFP_H
21110                       #include <ieeefp.h>
21111                       #endif
21112                      
21113 int main() {
21114  _finitel(0);
21115 ; return 0; }
21116 EOF
21117 if { (eval echo configure:21118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21118   rm -rf conftest*
21119   glibcpp_cv_func__finitel_use=yes
21120 else
21121   echo "configure: failed program was:" >&5
21122   cat conftest.$ac_ext >&5
21123   rm -rf conftest*
21124   glibcpp_cv_func__finitel_use=no
21125 fi
21126 rm -f conftest*
21127       ac_ext=c
21128 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21129 ac_cpp='$CPP $CPPFLAGS'
21130 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21131 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21132 cross_compiling=$ac_cv_prog_cc_cross
21133
21134     
21135 fi
21136
21137   fi
21138   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
21139
21140     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
21141       for ac_func in _finitel
21142 do
21143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21144 echo "configure:21145: checking for $ac_func" >&5
21145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21146   echo $ac_n "(cached) $ac_c" 1>&6
21147 else
21148   cat > conftest.$ac_ext <<EOF
21149 #line 21150 "configure"
21150 #include "confdefs.h"
21151 /* System header to define __stub macros and hopefully few prototypes,
21152     which can conflict with char $ac_func(); below.  */
21153 #include <assert.h>
21154 /* Override any gcc2 internal prototype to avoid an error.  */
21155 /* We use char because int might match the return type of a gcc2
21156     builtin and then its argument prototype would still apply.  */
21157 char $ac_func();
21158
21159 int main() {
21160
21161 /* The GNU C library defines this for functions which it implements
21162     to always fail with ENOSYS.  Some functions are actually named
21163     something starting with __ and the normal name is an alias.  */
21164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21165 choke me
21166 #else
21167 $ac_func();
21168 #endif
21169
21170 ; return 0; }
21171 EOF
21172 if { (eval echo configure:21173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21173   rm -rf conftest*
21174   eval "ac_cv_func_$ac_func=yes"
21175 else
21176   echo "configure: failed program was:" >&5
21177   cat conftest.$ac_ext >&5
21178   rm -rf conftest*
21179   eval "ac_cv_func_$ac_func=no"
21180 fi
21181 rm -f conftest*
21182 fi
21183
21184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21185   echo "$ac_t""yes" 1>&6
21186     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21187   cat >> confdefs.h <<EOF
21188 #define $ac_tr_func 1
21189 EOF
21190  
21191 else
21192   echo "$ac_t""no" 1>&6
21193 fi
21194 done
21195     
21196     fi
21197   fi
21198
21199
21200         
21201     
21202   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
21203 echo "configure:21204: checking for _float trig functions" >&5
21204   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
21205   echo $ac_n "(cached) $ac_c" 1>&6
21206 else
21207   
21208     
21209     ac_ext=C
21210 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21211 ac_cpp='$CXXCPP $CPPFLAGS'
21212 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21213 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21214 cross_compiling=$ac_cv_prog_cxx_cross
21215
21216     cat > conftest.$ac_ext <<EOF
21217 #line 21218 "configure"
21218 #include "confdefs.h"
21219 #include <math.h>
21220 int main() {
21221  `for x in _acosf _asinf _atanf \
21222                                           _cosf _sinf _tanf \
21223                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
21224 ; return 0; }
21225 EOF
21226 if { (eval echo configure:21227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21227   rm -rf conftest*
21228   glibcpp_cv_func__float_trig_use=yes
21229 else
21230   echo "configure: failed program was:" >&5
21231   cat conftest.$ac_ext >&5
21232   rm -rf conftest*
21233   glibcpp_cv_func__float_trig_use=no
21234 fi
21235 rm -f conftest*
21236     ac_ext=c
21237 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21238 ac_cpp='$CPP $CPPFLAGS'
21239 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21240 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21241 cross_compiling=$ac_cv_prog_cc_cross
21242
21243 fi
21244
21245   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
21246   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
21247     for ac_func in _acosf _asinf _atanf \
21248                                           _cosf _sinf _tanf \
21249                                           _coshf _sinhf _tanhf
21250 do
21251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21252 echo "configure:21253: checking for $ac_func" >&5
21253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21254   echo $ac_n "(cached) $ac_c" 1>&6
21255 else
21256   cat > conftest.$ac_ext <<EOF
21257 #line 21258 "configure"
21258 #include "confdefs.h"
21259 /* System header to define __stub macros and hopefully few prototypes,
21260     which can conflict with char $ac_func(); below.  */
21261 #include <assert.h>
21262 /* Override any gcc2 internal prototype to avoid an error.  */
21263 /* We use char because int might match the return type of a gcc2
21264     builtin and then its argument prototype would still apply.  */
21265 char $ac_func();
21266
21267 int main() {
21268
21269 /* The GNU C library defines this for functions which it implements
21270     to always fail with ENOSYS.  Some functions are actually named
21271     something starting with __ and the normal name is an alias.  */
21272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21273 choke me
21274 #else
21275 $ac_func();
21276 #endif
21277
21278 ; return 0; }
21279 EOF
21280 if { (eval echo configure:21281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21281   rm -rf conftest*
21282   eval "ac_cv_func_$ac_func=yes"
21283 else
21284   echo "configure: failed program was:" >&5
21285   cat conftest.$ac_ext >&5
21286   rm -rf conftest*
21287   eval "ac_cv_func_$ac_func=no"
21288 fi
21289 rm -f conftest*
21290 fi
21291
21292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21293   echo "$ac_t""yes" 1>&6
21294     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21295   cat >> confdefs.h <<EOF
21296 #define $ac_tr_func 1
21297 EOF
21298  
21299 else
21300   echo "$ac_t""no" 1>&6
21301 fi
21302 done
21303
21304   fi
21305
21306   
21307   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
21308 echo "configure:21309: checking for _float round functions" >&5
21309   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
21310   echo $ac_n "(cached) $ac_c" 1>&6
21311 else
21312   
21313     
21314     ac_ext=C
21315 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21316 ac_cpp='$CXXCPP $CPPFLAGS'
21317 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21318 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21319 cross_compiling=$ac_cv_prog_cxx_cross
21320
21321     cat > conftest.$ac_ext <<EOF
21322 #line 21323 "configure"
21323 #include "confdefs.h"
21324 #include <math.h>
21325 int main() {
21326  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
21327 ; return 0; }
21328 EOF
21329 if { (eval echo configure:21330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21330   rm -rf conftest*
21331   glibcpp_cv_func__float_round_use=yes
21332 else
21333   echo "configure: failed program was:" >&5
21334   cat conftest.$ac_ext >&5
21335   rm -rf conftest*
21336   glibcpp_cv_func__float_round_use=no
21337 fi
21338 rm -f conftest*
21339     ac_ext=c
21340 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21341 ac_cpp='$CPP $CPPFLAGS'
21342 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21343 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21344 cross_compiling=$ac_cv_prog_cc_cross
21345
21346 fi
21347
21348   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
21349   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
21350     for ac_func in _ceilf _floorf
21351 do
21352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21353 echo "configure:21354: checking for $ac_func" >&5
21354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21355   echo $ac_n "(cached) $ac_c" 1>&6
21356 else
21357   cat > conftest.$ac_ext <<EOF
21358 #line 21359 "configure"
21359 #include "confdefs.h"
21360 /* System header to define __stub macros and hopefully few prototypes,
21361     which can conflict with char $ac_func(); below.  */
21362 #include <assert.h>
21363 /* Override any gcc2 internal prototype to avoid an error.  */
21364 /* We use char because int might match the return type of a gcc2
21365     builtin and then its argument prototype would still apply.  */
21366 char $ac_func();
21367
21368 int main() {
21369
21370 /* The GNU C library defines this for functions which it implements
21371     to always fail with ENOSYS.  Some functions are actually named
21372     something starting with __ and the normal name is an alias.  */
21373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21374 choke me
21375 #else
21376 $ac_func();
21377 #endif
21378
21379 ; return 0; }
21380 EOF
21381 if { (eval echo configure:21382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21382   rm -rf conftest*
21383   eval "ac_cv_func_$ac_func=yes"
21384 else
21385   echo "configure: failed program was:" >&5
21386   cat conftest.$ac_ext >&5
21387   rm -rf conftest*
21388   eval "ac_cv_func_$ac_func=no"
21389 fi
21390 rm -f conftest*
21391 fi
21392
21393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21394   echo "$ac_t""yes" 1>&6
21395     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21396   cat >> confdefs.h <<EOF
21397 #define $ac_tr_func 1
21398 EOF
21399  
21400 else
21401   echo "$ac_t""no" 1>&6
21402 fi
21403 done
21404
21405   fi
21406
21407
21408     
21409   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
21410 echo "configure:21411: checking for _long double trig functions" >&5
21411   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
21412   echo $ac_n "(cached) $ac_c" 1>&6
21413 else
21414   
21415     
21416     ac_ext=C
21417 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21418 ac_cpp='$CXXCPP $CPPFLAGS'
21419 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21420 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21421 cross_compiling=$ac_cv_prog_cxx_cross
21422
21423     cat > conftest.$ac_ext <<EOF
21424 #line 21425 "configure"
21425 #include "confdefs.h"
21426 #include <math.h>
21427 int main() {
21428  `for x in _acosl _asinl _atanl \
21429                                           _cosl _sinl _tanl \
21430                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
21431 ; return 0; }
21432 EOF
21433 if { (eval echo configure:21434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21434   rm -rf conftest*
21435   glibcpp_cv_func__long_double_trig_use=yes
21436 else
21437   echo "configure: failed program was:" >&5
21438   cat conftest.$ac_ext >&5
21439   rm -rf conftest*
21440   glibcpp_cv_func__long_double_trig_use=no
21441 fi
21442 rm -f conftest*
21443     ac_ext=c
21444 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21445 ac_cpp='$CPP $CPPFLAGS'
21446 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21447 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21448 cross_compiling=$ac_cv_prog_cc_cross
21449
21450 fi
21451
21452   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
21453   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
21454     for ac_func in _acosl _asinl _atanl \
21455                                           _cosl _sinl _tanl \
21456                                           _coshl _sinhl _tanhl
21457 do
21458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21459 echo "configure:21460: checking for $ac_func" >&5
21460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21461   echo $ac_n "(cached) $ac_c" 1>&6
21462 else
21463   cat > conftest.$ac_ext <<EOF
21464 #line 21465 "configure"
21465 #include "confdefs.h"
21466 /* System header to define __stub macros and hopefully few prototypes,
21467     which can conflict with char $ac_func(); below.  */
21468 #include <assert.h>
21469 /* Override any gcc2 internal prototype to avoid an error.  */
21470 /* We use char because int might match the return type of a gcc2
21471     builtin and then its argument prototype would still apply.  */
21472 char $ac_func();
21473
21474 int main() {
21475
21476 /* The GNU C library defines this for functions which it implements
21477     to always fail with ENOSYS.  Some functions are actually named
21478     something starting with __ and the normal name is an alias.  */
21479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21480 choke me
21481 #else
21482 $ac_func();
21483 #endif
21484
21485 ; return 0; }
21486 EOF
21487 if { (eval echo configure:21488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21488   rm -rf conftest*
21489   eval "ac_cv_func_$ac_func=yes"
21490 else
21491   echo "configure: failed program was:" >&5
21492   cat conftest.$ac_ext >&5
21493   rm -rf conftest*
21494   eval "ac_cv_func_$ac_func=no"
21495 fi
21496 rm -f conftest*
21497 fi
21498
21499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21500   echo "$ac_t""yes" 1>&6
21501     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21502   cat >> confdefs.h <<EOF
21503 #define $ac_tr_func 1
21504 EOF
21505  
21506 else
21507   echo "$ac_t""no" 1>&6
21508 fi
21509 done
21510
21511   fi
21512
21513   
21514   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
21515 echo "configure:21516: checking for _long double round functions" >&5
21516   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
21517   echo $ac_n "(cached) $ac_c" 1>&6
21518 else
21519   
21520     
21521     ac_ext=C
21522 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21523 ac_cpp='$CXXCPP $CPPFLAGS'
21524 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21525 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21526 cross_compiling=$ac_cv_prog_cxx_cross
21527
21528     cat > conftest.$ac_ext <<EOF
21529 #line 21530 "configure"
21530 #include "confdefs.h"
21531 #include <math.h>
21532 int main() {
21533  `for x in _ceill _floorl; do echo "$x (0);"; done` 
21534 ; return 0; }
21535 EOF
21536 if { (eval echo configure:21537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21537   rm -rf conftest*
21538   glibcpp_cv_func__long_double_round_use=yes
21539 else
21540   echo "configure: failed program was:" >&5
21541   cat conftest.$ac_ext >&5
21542   rm -rf conftest*
21543   glibcpp_cv_func__long_double_round_use=no
21544 fi
21545 rm -f conftest*
21546     ac_ext=c
21547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21548 ac_cpp='$CPP $CPPFLAGS'
21549 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21550 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21551 cross_compiling=$ac_cv_prog_cc_cross
21552
21553 fi
21554
21555   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
21556   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
21557     for ac_func in _ceill _floorl
21558 do
21559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21560 echo "configure:21561: checking for $ac_func" >&5
21561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21562   echo $ac_n "(cached) $ac_c" 1>&6
21563 else
21564   cat > conftest.$ac_ext <<EOF
21565 #line 21566 "configure"
21566 #include "confdefs.h"
21567 /* System header to define __stub macros and hopefully few prototypes,
21568     which can conflict with char $ac_func(); below.  */
21569 #include <assert.h>
21570 /* Override any gcc2 internal prototype to avoid an error.  */
21571 /* We use char because int might match the return type of a gcc2
21572     builtin and then its argument prototype would still apply.  */
21573 char $ac_func();
21574
21575 int main() {
21576
21577 /* The GNU C library defines this for functions which it implements
21578     to always fail with ENOSYS.  Some functions are actually named
21579     something starting with __ and the normal name is an alias.  */
21580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21581 choke me
21582 #else
21583 $ac_func();
21584 #endif
21585
21586 ; return 0; }
21587 EOF
21588 if { (eval echo configure:21589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21589   rm -rf conftest*
21590   eval "ac_cv_func_$ac_func=yes"
21591 else
21592   echo "configure: failed program was:" >&5
21593   cat conftest.$ac_ext >&5
21594   rm -rf conftest*
21595   eval "ac_cv_func_$ac_func=no"
21596 fi
21597 rm -f conftest*
21598 fi
21599
21600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21601   echo "$ac_t""yes" 1>&6
21602     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21603   cat >> confdefs.h <<EOF
21604 #define $ac_tr_func 1
21605 EOF
21606  
21607 else
21608   echo "$ac_t""no" 1>&6
21609 fi
21610 done
21611
21612   fi
21613
21614
21615   LIBS="$ac_save_LIBS"
21616   CXXFLAGS="$ac_save_CXXFLAGS"
21617
21618   
21619     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21620 echo "configure:21621: checking for main in -lm" >&5
21621 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21623   echo $ac_n "(cached) $ac_c" 1>&6
21624 else
21625   ac_save_LIBS="$LIBS"
21626 LIBS="-lm  $LIBS"
21627 cat > conftest.$ac_ext <<EOF
21628 #line 21629 "configure"
21629 #include "confdefs.h"
21630
21631 int main() {
21632 main()
21633 ; return 0; }
21634 EOF
21635 if { (eval echo configure:21636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21636   rm -rf conftest*
21637   eval "ac_cv_lib_$ac_lib_var=yes"
21638 else
21639   echo "configure: failed program was:" >&5
21640   cat conftest.$ac_ext >&5
21641   rm -rf conftest*
21642   eval "ac_cv_lib_$ac_lib_var=no"
21643 fi
21644 rm -f conftest*
21645 LIBS="$ac_save_LIBS"
21646
21647 fi
21648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21649   echo "$ac_t""yes" 1>&6
21650     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21651     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21652   cat >> confdefs.h <<EOF
21653 #define $ac_tr_lib 1
21654 EOF
21655
21656   LIBS="-lm $LIBS"
21657
21658 else
21659   echo "$ac_t""no" 1>&6
21660 fi
21661
21662   for ac_func in nan copysignf
21663 do
21664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21665 echo "configure:21666: checking for $ac_func" >&5
21666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21667   echo $ac_n "(cached) $ac_c" 1>&6
21668 else
21669   cat > conftest.$ac_ext <<EOF
21670 #line 21671 "configure"
21671 #include "confdefs.h"
21672 /* System header to define __stub macros and hopefully few prototypes,
21673     which can conflict with char $ac_func(); below.  */
21674 #include <assert.h>
21675 /* Override any gcc2 internal prototype to avoid an error.  */
21676 /* We use char because int might match the return type of a gcc2
21677     builtin and then its argument prototype would still apply.  */
21678 char $ac_func();
21679
21680 int main() {
21681
21682 /* The GNU C library defines this for functions which it implements
21683     to always fail with ENOSYS.  Some functions are actually named
21684     something starting with __ and the normal name is an alias.  */
21685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21686 choke me
21687 #else
21688 $ac_func();
21689 #endif
21690
21691 ; return 0; }
21692 EOF
21693 if { (eval echo configure:21694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21694   rm -rf conftest*
21695   eval "ac_cv_func_$ac_func=yes"
21696 else
21697   echo "configure: failed program was:" >&5
21698   cat conftest.$ac_ext >&5
21699   rm -rf conftest*
21700   eval "ac_cv_func_$ac_func=no"
21701 fi
21702 rm -f conftest*
21703 fi
21704
21705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21706   echo "$ac_t""yes" 1>&6
21707     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21708   cat >> confdefs.h <<EOF
21709 #define $ac_tr_func 1
21710 EOF
21711  
21712 else
21713   echo "$ac_t""no" 1>&6
21714 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21715 fi
21716 done
21717
21718
21719     for ac_func in __signbit
21720 do
21721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21722 echo "configure:21723: checking for $ac_func" >&5
21723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21724   echo $ac_n "(cached) $ac_c" 1>&6
21725 else
21726   cat > conftest.$ac_ext <<EOF
21727 #line 21728 "configure"
21728 #include "confdefs.h"
21729 /* System header to define __stub macros and hopefully few prototypes,
21730     which can conflict with char $ac_func(); below.  */
21731 #include <assert.h>
21732 /* Override any gcc2 internal prototype to avoid an error.  */
21733 /* We use char because int might match the return type of a gcc2
21734     builtin and then its argument prototype would still apply.  */
21735 char $ac_func();
21736
21737 int main() {
21738
21739 /* The GNU C library defines this for functions which it implements
21740     to always fail with ENOSYS.  Some functions are actually named
21741     something starting with __ and the normal name is an alias.  */
21742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21743 choke me
21744 #else
21745 $ac_func();
21746 #endif
21747
21748 ; return 0; }
21749 EOF
21750 if { (eval echo configure:21751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21751   rm -rf conftest*
21752   eval "ac_cv_func_$ac_func=yes"
21753 else
21754   echo "configure: failed program was:" >&5
21755   cat conftest.$ac_ext >&5
21756   rm -rf conftest*
21757   eval "ac_cv_func_$ac_func=no"
21758 fi
21759 rm -f conftest*
21760 fi
21761
21762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21763   echo "$ac_t""yes" 1>&6
21764     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21765   cat >> confdefs.h <<EOF
21766 #define $ac_tr_func 1
21767 EOF
21768  
21769 else
21770   echo "$ac_t""no" 1>&6
21771 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21772 fi
21773 done
21774
21775   for ac_func in __signbitf
21776 do
21777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21778 echo "configure:21779: checking for $ac_func" >&5
21779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21780   echo $ac_n "(cached) $ac_c" 1>&6
21781 else
21782   cat > conftest.$ac_ext <<EOF
21783 #line 21784 "configure"
21784 #include "confdefs.h"
21785 /* System header to define __stub macros and hopefully few prototypes,
21786     which can conflict with char $ac_func(); below.  */
21787 #include <assert.h>
21788 /* Override any gcc2 internal prototype to avoid an error.  */
21789 /* We use char because int might match the return type of a gcc2
21790     builtin and then its argument prototype would still apply.  */
21791 char $ac_func();
21792
21793 int main() {
21794
21795 /* The GNU C library defines this for functions which it implements
21796     to always fail with ENOSYS.  Some functions are actually named
21797     something starting with __ and the normal name is an alias.  */
21798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21799 choke me
21800 #else
21801 $ac_func();
21802 #endif
21803
21804 ; return 0; }
21805 EOF
21806 if { (eval echo configure:21807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21807   rm -rf conftest*
21808   eval "ac_cv_func_$ac_func=yes"
21809 else
21810   echo "configure: failed program was:" >&5
21811   cat conftest.$ac_ext >&5
21812   rm -rf conftest*
21813   eval "ac_cv_func_$ac_func=no"
21814 fi
21815 rm -f conftest*
21816 fi
21817
21818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21819   echo "$ac_t""yes" 1>&6
21820     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21821   cat >> confdefs.h <<EOF
21822 #define $ac_tr_func 1
21823 EOF
21824  
21825 else
21826   echo "$ac_t""no" 1>&6
21827 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21828 fi
21829 done
21830
21831
21832           if test x$ac_cv_func_copysignl = x"yes"; then
21833     for ac_func in __signbitl
21834 do
21835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21836 echo "configure:21837: checking for $ac_func" >&5
21837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21838   echo $ac_n "(cached) $ac_c" 1>&6
21839 else
21840   cat > conftest.$ac_ext <<EOF
21841 #line 21842 "configure"
21842 #include "confdefs.h"
21843 /* System header to define __stub macros and hopefully few prototypes,
21844     which can conflict with char $ac_func(); below.  */
21845 #include <assert.h>
21846 /* Override any gcc2 internal prototype to avoid an error.  */
21847 /* We use char because int might match the return type of a gcc2
21848     builtin and then its argument prototype would still apply.  */
21849 char $ac_func();
21850
21851 int main() {
21852
21853 /* The GNU C library defines this for functions which it implements
21854     to always fail with ENOSYS.  Some functions are actually named
21855     something starting with __ and the normal name is an alias.  */
21856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21857 choke me
21858 #else
21859 $ac_func();
21860 #endif
21861
21862 ; return 0; }
21863 EOF
21864 if { (eval echo configure:21865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21865   rm -rf conftest*
21866   eval "ac_cv_func_$ac_func=yes"
21867 else
21868   echo "configure: failed program was:" >&5
21869   cat conftest.$ac_ext >&5
21870   rm -rf conftest*
21871   eval "ac_cv_func_$ac_func=no"
21872 fi
21873 rm -f conftest*
21874 fi
21875
21876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21877   echo "$ac_t""yes" 1>&6
21878     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21879   cat >> confdefs.h <<EOF
21880 #define $ac_tr_func 1
21881 EOF
21882  
21883 else
21884   echo "$ac_t""no" 1>&6
21885 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
21886 fi
21887 done
21888
21889   fi
21890
21891   if test -n "$LIBMATHOBJS"; then
21892     need_libmath=yes
21893   fi
21894   
21895   
21896
21897 if test "$need_libmath" = yes; then
21898   GLIBCPP_BUILD_LIBMATH_TRUE=
21899   GLIBCPP_BUILD_LIBMATH_FALSE='#'
21900 else
21901   GLIBCPP_BUILD_LIBMATH_TRUE='#'
21902   GLIBCPP_BUILD_LIBMATH_FALSE=
21903 fi
21904
21905   
21906
21907       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
21908 echo "configure:21909: checking for mbstate_t" >&5
21909   cat > conftest.$ac_ext <<EOF
21910 #line 21911 "configure"
21911 #include "confdefs.h"
21912 #include <wchar.h>
21913 int main() {
21914 mbstate_t teststate;
21915 ; return 0; }
21916 EOF
21917 if { (eval echo configure:21918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21918   rm -rf conftest*
21919   have_mbstate_t=yes
21920 else
21921   echo "configure: failed program was:" >&5
21922   cat conftest.$ac_ext >&5
21923   rm -rf conftest*
21924   have_mbstate_t=no
21925 fi
21926 rm -f conftest*
21927   echo "$ac_t""$have_mbstate_t" 1>&6
21928   if test x"$have_mbstate_t" = xyes; then
21929     cat >> confdefs.h <<\EOF
21930 #define HAVE_MBSTATE_T 1
21931 EOF
21932
21933   fi
21934
21935     for ac_hdr in wchar.h
21936 do
21937 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21939 echo "configure:21940: checking for $ac_hdr" >&5
21940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21941   echo $ac_n "(cached) $ac_c" 1>&6
21942 else
21943   cat > conftest.$ac_ext <<EOF
21944 #line 21945 "configure"
21945 #include "confdefs.h"
21946 #include <$ac_hdr>
21947 EOF
21948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21949 { (eval echo configure:21950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21951 if test -z "$ac_err"; then
21952   rm -rf conftest*
21953   eval "ac_cv_header_$ac_safe=yes"
21954 else
21955   echo "$ac_err" >&5
21956   echo "configure: failed program was:" >&5
21957   cat conftest.$ac_ext >&5
21958   rm -rf conftest*
21959   eval "ac_cv_header_$ac_safe=no"
21960 fi
21961 rm -f conftest*
21962 fi
21963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21964   echo "$ac_t""yes" 1>&6
21965     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21966   cat >> confdefs.h <<EOF
21967 #define $ac_tr_hdr 1
21968 EOF
21969  ac_has_wchar_h=yes
21970 else
21971   echo "$ac_t""no" 1>&6
21972 ac_has_wchar_h=no
21973 fi
21974 done
21975
21976   for ac_hdr in wctype.h
21977 do
21978 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21979 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21980 echo "configure:21981: checking for $ac_hdr" >&5
21981 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21982   echo $ac_n "(cached) $ac_c" 1>&6
21983 else
21984   cat > conftest.$ac_ext <<EOF
21985 #line 21986 "configure"
21986 #include "confdefs.h"
21987 #include <$ac_hdr>
21988 EOF
21989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21990 { (eval echo configure:21991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21992 if test -z "$ac_err"; then
21993   rm -rf conftest*
21994   eval "ac_cv_header_$ac_safe=yes"
21995 else
21996   echo "$ac_err" >&5
21997   echo "configure: failed program was:" >&5
21998   cat conftest.$ac_ext >&5
21999   rm -rf conftest*
22000   eval "ac_cv_header_$ac_safe=no"
22001 fi
22002 rm -f conftest*
22003 fi
22004 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22005   echo "$ac_t""yes" 1>&6
22006     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22007   cat >> confdefs.h <<EOF
22008 #define $ac_tr_hdr 1
22009 EOF
22010  ac_has_wctype_h=yes
22011 else
22012   echo "$ac_t""no" 1>&6
22013 ac_has_wctype_h=no
22014 fi
22015 done
22016
22017   
22018     if test x"$ac_has_wchar_h" = xyes &&
22019      test x"$ac_has_wctype_h" = xyes &&
22020      test x"$enable_c_mbchar" != xno; then
22021       
22022             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22023 echo "configure:22024: checking for WCHAR_MIN and WCHAR_MAX" >&5
22024     cat > conftest.$ac_ext <<EOF
22025 #line 22026 "configure"
22026 #include "confdefs.h"
22027 #include <wchar.h>
22028 int main() {
22029 int i = WCHAR_MIN; int j = WCHAR_MAX;
22030 ; return 0; }
22031 EOF
22032 if { (eval echo configure:22033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22033   rm -rf conftest*
22034   has_wchar_minmax=yes
22035 else
22036   echo "configure: failed program was:" >&5
22037   cat conftest.$ac_ext >&5
22038   rm -rf conftest*
22039   has_wchar_minmax=no
22040 fi
22041 rm -f conftest*
22042     echo "$ac_t""$has_wchar_minmax" 1>&6
22043     
22044             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22045 echo "configure:22046: checking for WEOF" >&5
22046     cat > conftest.$ac_ext <<EOF
22047 #line 22048 "configure"
22048 #include "confdefs.h"
22049
22050       #include <wchar.h>
22051       #include <stddef.h>
22052 int main() {
22053 wint_t i = WEOF;
22054 ; return 0; }
22055 EOF
22056 if { (eval echo configure:22057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22057   rm -rf conftest*
22058   has_weof=yes
22059 else
22060   echo "configure: failed program was:" >&5
22061   cat conftest.$ac_ext >&5
22062   rm -rf conftest*
22063   has_weof=no
22064 fi
22065 rm -f conftest*
22066     echo "$ac_t""$has_weof" 1>&6
22067   
22068         ac_wfuncs=yes
22069     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22070 do
22071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22072 echo "configure:22073: checking for $ac_func" >&5
22073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22074   echo $ac_n "(cached) $ac_c" 1>&6
22075 else
22076   cat > conftest.$ac_ext <<EOF
22077 #line 22078 "configure"
22078 #include "confdefs.h"
22079 /* System header to define __stub macros and hopefully few prototypes,
22080     which can conflict with char $ac_func(); below.  */
22081 #include <assert.h>
22082 /* Override any gcc2 internal prototype to avoid an error.  */
22083 /* We use char because int might match the return type of a gcc2
22084     builtin and then its argument prototype would still apply.  */
22085 char $ac_func();
22086
22087 int main() {
22088
22089 /* The GNU C library defines this for functions which it implements
22090     to always fail with ENOSYS.  Some functions are actually named
22091     something starting with __ and the normal name is an alias.  */
22092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22093 choke me
22094 #else
22095 $ac_func();
22096 #endif
22097
22098 ; return 0; }
22099 EOF
22100 if { (eval echo configure:22101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22101   rm -rf conftest*
22102   eval "ac_cv_func_$ac_func=yes"
22103 else
22104   echo "configure: failed program was:" >&5
22105   cat conftest.$ac_ext >&5
22106   rm -rf conftest*
22107   eval "ac_cv_func_$ac_func=no"
22108 fi
22109 rm -f conftest*
22110 fi
22111
22112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22113   echo "$ac_t""yes" 1>&6
22114     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22115   cat >> confdefs.h <<EOF
22116 #define $ac_tr_func 1
22117 EOF
22118  
22119 else
22120   echo "$ac_t""no" 1>&6
22121 \
22122     ac_wfuncs=no
22123 fi
22124 done
22125
22126   
22127         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
22128     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22129     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22130     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22131     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22132     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22133 do
22134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22135 echo "configure:22136: checking for $ac_func" >&5
22136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22137   echo $ac_n "(cached) $ac_c" 1>&6
22138 else
22139   cat > conftest.$ac_ext <<EOF
22140 #line 22141 "configure"
22141 #include "confdefs.h"
22142 /* System header to define __stub macros and hopefully few prototypes,
22143     which can conflict with char $ac_func(); below.  */
22144 #include <assert.h>
22145 /* Override any gcc2 internal prototype to avoid an error.  */
22146 /* We use char because int might match the return type of a gcc2
22147     builtin and then its argument prototype would still apply.  */
22148 char $ac_func();
22149
22150 int main() {
22151
22152 /* The GNU C library defines this for functions which it implements
22153     to always fail with ENOSYS.  Some functions are actually named
22154     something starting with __ and the normal name is an alias.  */
22155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22156 choke me
22157 #else
22158 $ac_func();
22159 #endif
22160
22161 ; return 0; }
22162 EOF
22163 if { (eval echo configure:22164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22164   rm -rf conftest*
22165   eval "ac_cv_func_$ac_func=yes"
22166 else
22167   echo "configure: failed program was:" >&5
22168   cat conftest.$ac_ext >&5
22169   rm -rf conftest*
22170   eval "ac_cv_func_$ac_func=no"
22171 fi
22172 rm -f conftest*
22173 fi
22174
22175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22176   echo "$ac_t""yes" 1>&6
22177     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22178   cat >> confdefs.h <<EOF
22179 #define $ac_tr_func 1
22180 EOF
22181  
22182 else
22183   echo "$ac_t""no" 1>&6
22184 \
22185     ac_wfuncs=no
22186 fi
22187 done
22188
22189
22190     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22191 echo "configure:22192: checking for ISO C99 wchar_t support" >&5
22192     if test x"$has_weof" = xyes &&
22193        test x"$has_wchar_minmax" = xyes &&
22194        test x"$ac_wfuncs" = xyes; then
22195       ac_isoC99_wchar_t=yes
22196     else
22197       ac_isoC99_wchar_t=no
22198     fi
22199     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22200   
22201             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22202 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22203 echo "configure:22204: checking for iconv.h" >&5
22204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22205   echo $ac_n "(cached) $ac_c" 1>&6
22206 else
22207   cat > conftest.$ac_ext <<EOF
22208 #line 22209 "configure"
22209 #include "confdefs.h"
22210 #include <iconv.h>
22211 EOF
22212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22213 { (eval echo configure:22214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22215 if test -z "$ac_err"; then
22216   rm -rf conftest*
22217   eval "ac_cv_header_$ac_safe=yes"
22218 else
22219   echo "$ac_err" >&5
22220   echo "configure: failed program was:" >&5
22221   cat conftest.$ac_ext >&5
22222   rm -rf conftest*
22223   eval "ac_cv_header_$ac_safe=no"
22224 fi
22225 rm -f conftest*
22226 fi
22227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22228   echo "$ac_t""yes" 1>&6
22229   ac_has_iconv_h=yes
22230 else
22231   echo "$ac_t""no" 1>&6
22232 ac_has_iconv_h=no
22233 fi
22234
22235     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22236 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22237 echo "configure:22238: checking for langinfo.h" >&5
22238 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22239   echo $ac_n "(cached) $ac_c" 1>&6
22240 else
22241   cat > conftest.$ac_ext <<EOF
22242 #line 22243 "configure"
22243 #include "confdefs.h"
22244 #include <langinfo.h>
22245 EOF
22246 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22247 { (eval echo configure:22248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22248 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22249 if test -z "$ac_err"; then
22250   rm -rf conftest*
22251   eval "ac_cv_header_$ac_safe=yes"
22252 else
22253   echo "$ac_err" >&5
22254   echo "configure: failed program was:" >&5
22255   cat conftest.$ac_ext >&5
22256   rm -rf conftest*
22257   eval "ac_cv_header_$ac_safe=no"
22258 fi
22259 rm -f conftest*
22260 fi
22261 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22262   echo "$ac_t""yes" 1>&6
22263   ac_has_langinfo_h=yes
22264 else
22265   echo "$ac_t""no" 1>&6
22266 ac_has_langinfo_h=no
22267 fi
22268
22269
22270         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22271 echo "configure:22272: checking for iconv in -liconv" >&5
22272 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22274   echo $ac_n "(cached) $ac_c" 1>&6
22275 else
22276   ac_save_LIBS="$LIBS"
22277 LIBS="-liconv  $LIBS"
22278 cat > conftest.$ac_ext <<EOF
22279 #line 22280 "configure"
22280 #include "confdefs.h"
22281 /* Override any gcc2 internal prototype to avoid an error.  */
22282 /* We use char because int might match the return type of a gcc2
22283     builtin and then its argument prototype would still apply.  */
22284 char iconv();
22285
22286 int main() {
22287 iconv()
22288 ; return 0; }
22289 EOF
22290 if { (eval echo configure:22291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22291   rm -rf conftest*
22292   eval "ac_cv_lib_$ac_lib_var=yes"
22293 else
22294   echo "configure: failed program was:" >&5
22295   cat conftest.$ac_ext >&5
22296   rm -rf conftest*
22297   eval "ac_cv_lib_$ac_lib_var=no"
22298 fi
22299 rm -f conftest*
22300 LIBS="$ac_save_LIBS"
22301
22302 fi
22303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22304   echo "$ac_t""yes" 1>&6
22305   libiconv="-liconv"
22306 else
22307   echo "$ac_t""no" 1>&6
22308 fi
22309
22310     ac_save_LIBS="$LIBS"
22311     LIBS="$LIBS $libiconv"
22312
22313     for ac_func in iconv_open iconv_close iconv nl_langinfo
22314 do
22315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22316 echo "configure:22317: checking for $ac_func" >&5
22317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22318   echo $ac_n "(cached) $ac_c" 1>&6
22319 else
22320   cat > conftest.$ac_ext <<EOF
22321 #line 22322 "configure"
22322 #include "confdefs.h"
22323 /* System header to define __stub macros and hopefully few prototypes,
22324     which can conflict with char $ac_func(); below.  */
22325 #include <assert.h>
22326 /* Override any gcc2 internal prototype to avoid an error.  */
22327 /* We use char because int might match the return type of a gcc2
22328     builtin and then its argument prototype would still apply.  */
22329 char $ac_func();
22330
22331 int main() {
22332
22333 /* The GNU C library defines this for functions which it implements
22334     to always fail with ENOSYS.  Some functions are actually named
22335     something starting with __ and the normal name is an alias.  */
22336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22337 choke me
22338 #else
22339 $ac_func();
22340 #endif
22341
22342 ; return 0; }
22343 EOF
22344 if { (eval echo configure:22345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22345   rm -rf conftest*
22346   eval "ac_cv_func_$ac_func=yes"
22347 else
22348   echo "configure: failed program was:" >&5
22349   cat conftest.$ac_ext >&5
22350   rm -rf conftest*
22351   eval "ac_cv_func_$ac_func=no"
22352 fi
22353 rm -f conftest*
22354 fi
22355
22356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22357   echo "$ac_t""yes" 1>&6
22358     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22359   cat >> confdefs.h <<EOF
22360 #define $ac_tr_func 1
22361 EOF
22362  \
22363     ac_XPG2funcs=yes
22364 else
22365   echo "$ac_t""no" 1>&6
22366 ac_XPG2funcs=no
22367 fi
22368 done
22369
22370   
22371     LIBS="$ac_save_LIBS"
22372
22373     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22374 echo "configure:22375: checking for XPG2 wchar_t support" >&5
22375     if test x"$ac_has_iconv_h" = xyes &&
22376        test x"$ac_has_langinfo_h" = xyes &&
22377        test x"$ac_XPG2funcs" = xyes; then
22378       ac_XPG2_wchar_t=yes
22379     else
22380       ac_XPG2_wchar_t=no
22381     fi
22382     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22383   
22384             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22385 echo "configure:22386: checking for enabled wchar_t specializations" >&5
22386     if test x"$ac_isoC99_wchar_t" = xyes &&
22387        test x"$ac_XPG2_wchar_t" = xyes; then
22388       cat >> confdefs.h <<\EOF
22389 #define _GLIBCPP_USE_WCHAR_T 1
22390 EOF
22391
22392       echo "$ac_t"""yes"" 1>&6
22393     else
22394       echo "$ac_t"""no"" 1>&6
22395     fi
22396   else
22397         echo "configure: warning: wchar_t support disabled." 1>&2
22398   fi
22399
22400   
22401   ac_test_CXXFLAGS="${CXXFLAGS+set}"
22402   ac_save_CXXFLAGS="$CXXFLAGS"
22403   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22404
22405   
22406   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22407 echo "configure:22408: checking for strtold declaration" >&5
22408   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22409     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22410   echo $ac_n "(cached) $ac_c" 1>&6
22411 else
22412   
22413       
22414       ac_ext=C
22415 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22416 ac_cpp='$CXXCPP $CPPFLAGS'
22417 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22418 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22419 cross_compiling=$ac_cv_prog_cxx_cross
22420
22421       cat > conftest.$ac_ext <<EOF
22422 #line 22423 "configure"
22423 #include "confdefs.h"
22424 #include <stdlib.h>
22425 int main() {
22426  strtold(0, 0);
22427 ; return 0; }
22428 EOF
22429 if { (eval echo configure:22430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22430   rm -rf conftest*
22431   glibcpp_cv_func_strtold_use=yes
22432 else
22433   echo "configure: failed program was:" >&5
22434   cat conftest.$ac_ext >&5
22435   rm -rf conftest*
22436   glibcpp_cv_func_strtold_use=no
22437 fi
22438 rm -f conftest*
22439       ac_ext=c
22440 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22441 ac_cpp='$CPP $CPPFLAGS'
22442 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22443 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22444 cross_compiling=$ac_cv_prog_cc_cross
22445
22446     
22447 fi
22448
22449   fi
22450   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22451   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22452     for ac_func in strtold
22453 do
22454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22455 echo "configure:22456: checking for $ac_func" >&5
22456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22457   echo $ac_n "(cached) $ac_c" 1>&6
22458 else
22459   cat > conftest.$ac_ext <<EOF
22460 #line 22461 "configure"
22461 #include "confdefs.h"
22462 /* System header to define __stub macros and hopefully few prototypes,
22463     which can conflict with char $ac_func(); below.  */
22464 #include <assert.h>
22465 /* Override any gcc2 internal prototype to avoid an error.  */
22466 /* We use char because int might match the return type of a gcc2
22467     builtin and then its argument prototype would still apply.  */
22468 char $ac_func();
22469
22470 int main() {
22471
22472 /* The GNU C library defines this for functions which it implements
22473     to always fail with ENOSYS.  Some functions are actually named
22474     something starting with __ and the normal name is an alias.  */
22475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22476 choke me
22477 #else
22478 $ac_func();
22479 #endif
22480
22481 ; return 0; }
22482 EOF
22483 if { (eval echo configure:22484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22484   rm -rf conftest*
22485   eval "ac_cv_func_$ac_func=yes"
22486 else
22487   echo "configure: failed program was:" >&5
22488   cat conftest.$ac_ext >&5
22489   rm -rf conftest*
22490   eval "ac_cv_func_$ac_func=no"
22491 fi
22492 rm -f conftest*
22493 fi
22494
22495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22496   echo "$ac_t""yes" 1>&6
22497     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22498   cat >> confdefs.h <<EOF
22499 #define $ac_tr_func 1
22500 EOF
22501  
22502 else
22503   echo "$ac_t""no" 1>&6
22504 fi
22505 done
22506     
22507   fi
22508
22509   
22510   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22511 echo "configure:22512: checking for strtof declaration" >&5
22512   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22513     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22514   echo $ac_n "(cached) $ac_c" 1>&6
22515 else
22516   
22517       
22518       ac_ext=C
22519 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22520 ac_cpp='$CXXCPP $CPPFLAGS'
22521 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22522 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22523 cross_compiling=$ac_cv_prog_cxx_cross
22524
22525       cat > conftest.$ac_ext <<EOF
22526 #line 22527 "configure"
22527 #include "confdefs.h"
22528 #include <stdlib.h>
22529 int main() {
22530  strtof(0, 0);
22531 ; return 0; }
22532 EOF
22533 if { (eval echo configure:22534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22534   rm -rf conftest*
22535   glibcpp_cv_func_strtof_use=yes
22536 else
22537   echo "configure: failed program was:" >&5
22538   cat conftest.$ac_ext >&5
22539   rm -rf conftest*
22540   glibcpp_cv_func_strtof_use=no
22541 fi
22542 rm -f conftest*
22543       ac_ext=c
22544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22545 ac_cpp='$CPP $CPPFLAGS'
22546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22548 cross_compiling=$ac_cv_prog_cc_cross
22549
22550     
22551 fi
22552
22553   fi
22554   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22555   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22556     for ac_func in strtof
22557 do
22558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22559 echo "configure:22560: checking for $ac_func" >&5
22560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22561   echo $ac_n "(cached) $ac_c" 1>&6
22562 else
22563   cat > conftest.$ac_ext <<EOF
22564 #line 22565 "configure"
22565 #include "confdefs.h"
22566 /* System header to define __stub macros and hopefully few prototypes,
22567     which can conflict with char $ac_func(); below.  */
22568 #include <assert.h>
22569 /* Override any gcc2 internal prototype to avoid an error.  */
22570 /* We use char because int might match the return type of a gcc2
22571     builtin and then its argument prototype would still apply.  */
22572 char $ac_func();
22573
22574 int main() {
22575
22576 /* The GNU C library defines this for functions which it implements
22577     to always fail with ENOSYS.  Some functions are actually named
22578     something starting with __ and the normal name is an alias.  */
22579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22580 choke me
22581 #else
22582 $ac_func();
22583 #endif
22584
22585 ; return 0; }
22586 EOF
22587 if { (eval echo configure:22588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22588   rm -rf conftest*
22589   eval "ac_cv_func_$ac_func=yes"
22590 else
22591   echo "configure: failed program was:" >&5
22592   cat conftest.$ac_ext >&5
22593   rm -rf conftest*
22594   eval "ac_cv_func_$ac_func=no"
22595 fi
22596 rm -f conftest*
22597 fi
22598
22599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22600   echo "$ac_t""yes" 1>&6
22601     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22602   cat >> confdefs.h <<EOF
22603 #define $ac_tr_func 1
22604 EOF
22605  
22606 else
22607   echo "$ac_t""no" 1>&6
22608 fi
22609 done
22610     
22611   fi
22612
22613   for ac_func in drand48
22614 do
22615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22616 echo "configure:22617: checking for $ac_func" >&5
22617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22618   echo $ac_n "(cached) $ac_c" 1>&6
22619 else
22620   cat > conftest.$ac_ext <<EOF
22621 #line 22622 "configure"
22622 #include "confdefs.h"
22623 /* System header to define __stub macros and hopefully few prototypes,
22624     which can conflict with char $ac_func(); below.  */
22625 #include <assert.h>
22626 /* Override any gcc2 internal prototype to avoid an error.  */
22627 /* We use char because int might match the return type of a gcc2
22628     builtin and then its argument prototype would still apply.  */
22629 char $ac_func();
22630
22631 int main() {
22632
22633 /* The GNU C library defines this for functions which it implements
22634     to always fail with ENOSYS.  Some functions are actually named
22635     something starting with __ and the normal name is an alias.  */
22636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22637 choke me
22638 #else
22639 $ac_func();
22640 #endif
22641
22642 ; return 0; }
22643 EOF
22644 if { (eval echo configure:22645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22645   rm -rf conftest*
22646   eval "ac_cv_func_$ac_func=yes"
22647 else
22648   echo "configure: failed program was:" >&5
22649   cat conftest.$ac_ext >&5
22650   rm -rf conftest*
22651   eval "ac_cv_func_$ac_func=no"
22652 fi
22653 rm -f conftest*
22654 fi
22655
22656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22657   echo "$ac_t""yes" 1>&6
22658     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22659   cat >> confdefs.h <<EOF
22660 #define $ac_tr_func 1
22661 EOF
22662  
22663 else
22664   echo "$ac_t""no" 1>&6
22665 fi
22666 done
22667
22668
22669   CXXFLAGS="$ac_save_CXXFLAGS"
22670
22671   
22672   ac_test_CXXFLAGS="${CXXFLAGS+set}"
22673   ac_save_CXXFLAGS="$CXXFLAGS"
22674   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22675
22676   
22677   echo $ac_n "checking for isatty declaration""... $ac_c" 1>&6
22678 echo "configure:22679: checking for isatty declaration" >&5
22679   if test x${glibcpp_cv_func_isatty_use+set} != xset; then
22680     if eval "test \"`echo '$''{'glibcpp_cv_func_isatty_use'+set}'`\" = set"; then
22681   echo $ac_n "(cached) $ac_c" 1>&6
22682 else
22683   
22684       
22685       ac_ext=C
22686 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22687 ac_cpp='$CXXCPP $CPPFLAGS'
22688 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22689 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22690 cross_compiling=$ac_cv_prog_cxx_cross
22691
22692       cat > conftest.$ac_ext <<EOF
22693 #line 22694 "configure"
22694 #include "confdefs.h"
22695 #include <unistd.h>
22696 int main() {
22697  isatty(0);
22698 ; return 0; }
22699 EOF
22700 if { (eval echo configure:22701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22701   rm -rf conftest*
22702   glibcpp_cv_func_isatty_use=yes
22703 else
22704   echo "configure: failed program was:" >&5
22705   cat conftest.$ac_ext >&5
22706   rm -rf conftest*
22707   glibcpp_cv_func_isatty_use=no
22708 fi
22709 rm -f conftest*
22710       ac_ext=c
22711 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22712 ac_cpp='$CPP $CPPFLAGS'
22713 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22714 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22715 cross_compiling=$ac_cv_prog_cc_cross
22716
22717     
22718 fi
22719
22720   fi
22721   echo "$ac_t""$glibcpp_cv_func_isatty_use" 1>&6
22722   if test x$glibcpp_cv_func_isatty_use = x"yes"; then
22723     for ac_func in isatty
22724 do
22725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22726 echo "configure:22727: checking for $ac_func" >&5
22727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22728   echo $ac_n "(cached) $ac_c" 1>&6
22729 else
22730   cat > conftest.$ac_ext <<EOF
22731 #line 22732 "configure"
22732 #include "confdefs.h"
22733 /* System header to define __stub macros and hopefully few prototypes,
22734     which can conflict with char $ac_func(); below.  */
22735 #include <assert.h>
22736 /* Override any gcc2 internal prototype to avoid an error.  */
22737 /* We use char because int might match the return type of a gcc2
22738     builtin and then its argument prototype would still apply.  */
22739 char $ac_func();
22740
22741 int main() {
22742
22743 /* The GNU C library defines this for functions which it implements
22744     to always fail with ENOSYS.  Some functions are actually named
22745     something starting with __ and the normal name is an alias.  */
22746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22747 choke me
22748 #else
22749 $ac_func();
22750 #endif
22751
22752 ; return 0; }
22753 EOF
22754 if { (eval echo configure:22755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22755   rm -rf conftest*
22756   eval "ac_cv_func_$ac_func=yes"
22757 else
22758   echo "configure: failed program was:" >&5
22759   cat conftest.$ac_ext >&5
22760   rm -rf conftest*
22761   eval "ac_cv_func_$ac_func=no"
22762 fi
22763 rm -f conftest*
22764 fi
22765
22766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22767   echo "$ac_t""yes" 1>&6
22768     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22769   cat >> confdefs.h <<EOF
22770 #define $ac_tr_func 1
22771 EOF
22772  
22773 else
22774   echo "$ac_t""no" 1>&6
22775 fi
22776 done
22777     
22778   fi
22779
22780   
22781   CXXFLAGS="$ac_save_CXXFLAGS"
22782
22783   
22784   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22785 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22786 echo "configure:22787: checking for locale.h" >&5
22787 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22788   echo $ac_n "(cached) $ac_c" 1>&6
22789 else
22790   cat > conftest.$ac_ext <<EOF
22791 #line 22792 "configure"
22792 #include "confdefs.h"
22793 #include <locale.h>
22794 EOF
22795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22796 { (eval echo configure:22797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22798 if test -z "$ac_err"; then
22799   rm -rf conftest*
22800   eval "ac_cv_header_$ac_safe=yes"
22801 else
22802   echo "$ac_err" >&5
22803   echo "configure: failed program was:" >&5
22804   cat conftest.$ac_ext >&5
22805   rm -rf conftest*
22806   eval "ac_cv_header_$ac_safe=no"
22807 fi
22808 rm -f conftest*
22809 fi
22810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22811   echo "$ac_t""yes" 1>&6
22812   
22813     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
22814 echo "configure:22815: checking for LC_MESSAGES" >&5
22815 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
22816   echo $ac_n "(cached) $ac_c" 1>&6
22817 else
22818   cat > conftest.$ac_ext <<EOF
22819 #line 22820 "configure"
22820 #include "confdefs.h"
22821 #include <locale.h>
22822 int main() {
22823 return LC_MESSAGES
22824 ; return 0; }
22825 EOF
22826 if { (eval echo configure:22827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22827   rm -rf conftest*
22828   ac_cv_val_LC_MESSAGES=yes
22829 else
22830   echo "configure: failed program was:" >&5
22831   cat conftest.$ac_ext >&5
22832   rm -rf conftest*
22833   ac_cv_val_LC_MESSAGES=no
22834 fi
22835 rm -f conftest*
22836 fi
22837
22838 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
22839     if test $ac_cv_val_LC_MESSAGES = yes; then
22840       cat >> confdefs.h <<\EOF
22841 #define HAVE_LC_MESSAGES 1
22842 EOF
22843
22844     fi
22845   
22846 else
22847   echo "$ac_t""no" 1>&6
22848 fi
22849
22850
22851
22852   cat > conftest.$ac_ext <<EOF
22853 #line 22854 "configure"
22854 #include "confdefs.h"
22855
22856   #include <setjmp.h>
22857   
22858 int main() {
22859 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
22860 ; return 0; }
22861 EOF
22862 if { (eval echo configure:22863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22863   rm -rf conftest*
22864   cat >> confdefs.h <<\EOF
22865 #define HAVE_SIGSETJMP 1
22866 EOF
22867
22868   
22869 else
22870   echo "configure: failed program was:" >&5
22871   cat conftest.$ac_ext >&5
22872 fi
22873 rm -f conftest*
22874
22875   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
22876 do
22877 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22878 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22879 echo "configure:22880: checking for $ac_hdr" >&5
22880 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22881   echo $ac_n "(cached) $ac_c" 1>&6
22882 else
22883   cat > conftest.$ac_ext <<EOF
22884 #line 22885 "configure"
22885 #include "confdefs.h"
22886 #include <$ac_hdr>
22887 EOF
22888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22889 { (eval echo configure:22890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22891 if test -z "$ac_err"; then
22892   rm -rf conftest*
22893   eval "ac_cv_header_$ac_safe=yes"
22894 else
22895   echo "$ac_err" >&5
22896   echo "configure: failed program was:" >&5
22897   cat conftest.$ac_ext >&5
22898   rm -rf conftest*
22899   eval "ac_cv_header_$ac_safe=no"
22900 fi
22901 rm -f conftest*
22902 fi
22903 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22904   echo "$ac_t""yes" 1>&6
22905     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22906   cat >> confdefs.h <<EOF
22907 #define $ac_tr_hdr 1
22908 EOF
22909  
22910 else
22911   echo "$ac_t""no" 1>&6
22912 fi
22913 done
22914
22915 for ac_func in getpagesize
22916 do
22917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22918 echo "configure:22919: checking for $ac_func" >&5
22919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22920   echo $ac_n "(cached) $ac_c" 1>&6
22921 else
22922   cat > conftest.$ac_ext <<EOF
22923 #line 22924 "configure"
22924 #include "confdefs.h"
22925 /* System header to define __stub macros and hopefully few prototypes,
22926     which can conflict with char $ac_func(); below.  */
22927 #include <assert.h>
22928 /* Override any gcc2 internal prototype to avoid an error.  */
22929 /* We use char because int might match the return type of a gcc2
22930     builtin and then its argument prototype would still apply.  */
22931 char $ac_func();
22932
22933 int main() {
22934
22935 /* The GNU C library defines this for functions which it implements
22936     to always fail with ENOSYS.  Some functions are actually named
22937     something starting with __ and the normal name is an alias.  */
22938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22939 choke me
22940 #else
22941 $ac_func();
22942 #endif
22943
22944 ; return 0; }
22945 EOF
22946 if { (eval echo configure:22947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22947   rm -rf conftest*
22948   eval "ac_cv_func_$ac_func=yes"
22949 else
22950   echo "configure: failed program was:" >&5
22951   cat conftest.$ac_ext >&5
22952   rm -rf conftest*
22953   eval "ac_cv_func_$ac_func=no"
22954 fi
22955 rm -f conftest*
22956 fi
22957
22958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22959   echo "$ac_t""yes" 1>&6
22960     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22961   cat >> confdefs.h <<EOF
22962 #define $ac_tr_func 1
22963 EOF
22964  
22965 else
22966   echo "$ac_t""no" 1>&6
22967 fi
22968 done
22969
22970 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
22971 echo "configure:22972: checking for working mmap" >&5
22972 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
22973   echo $ac_n "(cached) $ac_c" 1>&6
22974 else
22975   if test "$cross_compiling" = yes; then
22976   ac_cv_func_mmap_fixed_mapped=no
22977 else
22978   cat > conftest.$ac_ext <<EOF
22979 #line 22980 "configure"
22980 #include "confdefs.h"
22981
22982 /* Thanks to Mike Haertel and Jim Avera for this test.
22983    Here is a matrix of mmap possibilities:
22984         mmap private not fixed
22985         mmap private fixed at somewhere currently unmapped
22986         mmap private fixed at somewhere already mapped
22987         mmap shared not fixed
22988         mmap shared fixed at somewhere currently unmapped
22989         mmap shared fixed at somewhere already mapped
22990    For private mappings, we should verify that changes cannot be read()
22991    back from the file, nor mmap's back from the file at a different
22992    address.  (There have been systems where private was not correctly
22993    implemented like the infamous i386 svr4.0, and systems where the
22994    VM page cache was not coherent with the filesystem buffer cache
22995    like early versions of FreeBSD and possibly contemporary NetBSD.)
22996    For shared mappings, we should conversely verify that changes get
22997    propogated back to all the places they're supposed to be.
22998
22999    Grep wants private fixed already mapped.
23000    The main things grep needs to know about mmap are:
23001    * does it exist and is it safe to write into the mmap'd area
23002    * how to use it (BSD variants)  */
23003 #include <sys/types.h>
23004 #include <fcntl.h>
23005 #include <sys/mman.h>
23006
23007 #if HAVE_SYS_TYPES_H
23008 # include <sys/types.h>
23009 #endif
23010
23011 #if HAVE_STDLIB_H
23012 # include <stdlib.h>
23013 #endif
23014
23015 #if HAVE_SYS_STAT_H
23016 # include <sys/stat.h>
23017 #endif
23018
23019 #if HAVE_UNISTD_H
23020 # include <unistd.h>
23021 #endif
23022
23023 /* This mess was copied from the GNU getpagesize.h.  */
23024 #ifndef HAVE_GETPAGESIZE
23025
23026 /* Assume that all systems that can run configure have sys/param.h.  */
23027 # ifndef HAVE_SYS_PARAM_H
23028 #  define HAVE_SYS_PARAM_H 1
23029 # endif
23030
23031 # ifdef _SC_PAGESIZE
23032 #  define getpagesize() sysconf(_SC_PAGESIZE)
23033 # else /* no _SC_PAGESIZE */
23034 #  ifdef HAVE_SYS_PARAM_H
23035 #   include <sys/param.h>
23036 #   ifdef EXEC_PAGESIZE
23037 #    define getpagesize() EXEC_PAGESIZE
23038 #   else /* no EXEC_PAGESIZE */
23039 #    ifdef NBPG
23040 #     define getpagesize() NBPG * CLSIZE
23041 #     ifndef CLSIZE
23042 #      define CLSIZE 1
23043 #     endif /* no CLSIZE */
23044 #    else /* no NBPG */
23045 #     ifdef NBPC
23046 #      define getpagesize() NBPC
23047 #     else /* no NBPC */
23048 #      ifdef PAGESIZE
23049 #       define getpagesize() PAGESIZE
23050 #      endif /* PAGESIZE */
23051 #     endif /* no NBPC */
23052 #    endif /* no NBPG */
23053 #   endif /* no EXEC_PAGESIZE */
23054 #  else /* no HAVE_SYS_PARAM_H */
23055 #   define getpagesize() 8192   /* punt totally */
23056 #  endif /* no HAVE_SYS_PARAM_H */
23057 # endif /* no _SC_PAGESIZE */
23058
23059 #endif /* no HAVE_GETPAGESIZE */
23060
23061 #ifdef __cplusplus
23062 extern "C" { void *malloc(unsigned); }
23063 #else
23064 char *malloc();
23065 #endif
23066
23067 int
23068 main()
23069 {
23070         char *data, *data2, *data3;
23071         int i, pagesize;
23072         int fd;
23073
23074         pagesize = getpagesize();
23075
23076         /*
23077          * First, make a file with some known garbage in it.
23078          */
23079         data = malloc(pagesize);
23080         if (!data)
23081                 exit(1);
23082         for (i = 0; i < pagesize; ++i)
23083                 *(data + i) = rand();
23084         umask(0);
23085         fd = creat("conftestmmap", 0600);
23086         if (fd < 0)
23087                 exit(1);
23088         if (write(fd, data, pagesize) != pagesize)
23089                 exit(1);
23090         close(fd);
23091
23092         /*
23093          * Next, try to mmap the file at a fixed address which
23094          * already has something else allocated at it.  If we can,
23095          * also make sure that we see the same garbage.
23096          */
23097         fd = open("conftestmmap", O_RDWR);
23098         if (fd < 0)
23099                 exit(1);
23100         data2 = malloc(2 * pagesize);
23101         if (!data2)
23102                 exit(1);
23103         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23104         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23105             MAP_PRIVATE | MAP_FIXED, fd, 0L))
23106                 exit(1);
23107         for (i = 0; i < pagesize; ++i)
23108                 if (*(data + i) != *(data2 + i))
23109                         exit(1);
23110
23111         /*
23112          * Finally, make sure that changes to the mapped area
23113          * do not percolate back to the file as seen by read().
23114          * (This is a bug on some variants of i386 svr4.0.)
23115          */
23116         for (i = 0; i < pagesize; ++i)
23117                 *(data2 + i) = *(data2 + i) + 1;
23118         data3 = malloc(pagesize);
23119         if (!data3)
23120                 exit(1);
23121         if (read(fd, data3, pagesize) != pagesize)
23122                 exit(1);
23123         for (i = 0; i < pagesize; ++i)
23124                 if (*(data + i) != *(data3 + i))
23125                         exit(1);
23126         close(fd);
23127         unlink("conftestmmap");
23128         exit(0);
23129 }
23130
23131 EOF
23132 if { (eval echo configure:23133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23133 then
23134   ac_cv_func_mmap_fixed_mapped=yes
23135 else
23136   echo "configure: failed program was:" >&5
23137   cat conftest.$ac_ext >&5
23138   rm -fr conftest*
23139   ac_cv_func_mmap_fixed_mapped=no
23140 fi
23141 rm -fr conftest*
23142 fi
23143
23144 fi
23145
23146 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23147 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23148   cat >> confdefs.h <<\EOF
23149 #define HAVE_MMAP 1
23150 EOF
23151
23152 fi
23153
23154
23155   # Establish limits on memory usage during 'make check'
23156   
23157   
23158   setrlimit_have_headers=yes
23159   for ac_hdr in unistd.h sys/time.h sys/resource.h
23160 do
23161 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23163 echo "configure:23164: checking for $ac_hdr" >&5
23164 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23165   echo $ac_n "(cached) $ac_c" 1>&6
23166 else
23167   cat > conftest.$ac_ext <<EOF
23168 #line 23169 "configure"
23169 #include "confdefs.h"
23170 #include <$ac_hdr>
23171 EOF
23172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23173 { (eval echo configure:23174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23175 if test -z "$ac_err"; then
23176   rm -rf conftest*
23177   eval "ac_cv_header_$ac_safe=yes"
23178 else
23179   echo "$ac_err" >&5
23180   echo "configure: failed program was:" >&5
23181   cat conftest.$ac_ext >&5
23182   rm -rf conftest*
23183   eval "ac_cv_header_$ac_safe=no"
23184 fi
23185 rm -f conftest*
23186 fi
23187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23188   echo "$ac_t""yes" 1>&6
23189     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23190   cat >> confdefs.h <<EOF
23191 #define $ac_tr_hdr 1
23192 EOF
23193  
23194 else
23195   echo "$ac_t""no" 1>&6
23196 setrlimit_have_headers=no
23197 fi
23198 done
23199
23200   # If don't have the headers, then we can't run the tests now, and we
23201   # won't be seeing any of these during testsuite compilation.
23202   if test $setrlimit_have_headers = yes; then
23203     # Can't do these in a loop, else the resulting syntax is wrong.
23204     
23205   cat > conftest.$ac_ext <<EOF
23206 #line 23207 "configure"
23207 #include "confdefs.h"
23208 #include <unistd.h>
23209                   #include <sys/time.h>
23210                   #include <sys/resource.h>
23211                  
23212 int main() {
23213  int f = RLIMIT_DATA ; 
23214 ; return 0; }
23215 EOF
23216 if { (eval echo configure:23217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23217   rm -rf conftest*
23218   glibcpp_mresult=1
23219 else
23220   echo "configure: failed program was:" >&5
23221   cat conftest.$ac_ext >&5
23222   rm -rf conftest*
23223   glibcpp_mresult=0
23224 fi
23225 rm -f conftest*
23226   cat >> confdefs.h <<EOF
23227 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23228 EOF
23229
23230
23231     
23232   cat > conftest.$ac_ext <<EOF
23233 #line 23234 "configure"
23234 #include "confdefs.h"
23235 #include <unistd.h>
23236                   #include <sys/time.h>
23237                   #include <sys/resource.h>
23238                  
23239 int main() {
23240  int f = RLIMIT_RSS ; 
23241 ; return 0; }
23242 EOF
23243 if { (eval echo configure:23244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23244   rm -rf conftest*
23245   glibcpp_mresult=1
23246 else
23247   echo "configure: failed program was:" >&5
23248   cat conftest.$ac_ext >&5
23249   rm -rf conftest*
23250   glibcpp_mresult=0
23251 fi
23252 rm -f conftest*
23253   cat >> confdefs.h <<EOF
23254 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23255 EOF
23256
23257
23258     
23259   cat > conftest.$ac_ext <<EOF
23260 #line 23261 "configure"
23261 #include "confdefs.h"
23262 #include <unistd.h>
23263                   #include <sys/time.h>
23264                   #include <sys/resource.h>
23265                  
23266 int main() {
23267  int f = RLIMIT_VMEM ; 
23268 ; return 0; }
23269 EOF
23270 if { (eval echo configure:23271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23271   rm -rf conftest*
23272   glibcpp_mresult=1
23273 else
23274   echo "configure: failed program was:" >&5
23275   cat conftest.$ac_ext >&5
23276   rm -rf conftest*
23277   glibcpp_mresult=0
23278 fi
23279 rm -f conftest*
23280   cat >> confdefs.h <<EOF
23281 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23282 EOF
23283
23284
23285     
23286   cat > conftest.$ac_ext <<EOF
23287 #line 23288 "configure"
23288 #include "confdefs.h"
23289 #include <unistd.h>
23290                   #include <sys/time.h>
23291                   #include <sys/resource.h>
23292                  
23293 int main() {
23294  int f = RLIMIT_AS ; 
23295 ; return 0; }
23296 EOF
23297 if { (eval echo configure:23298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23298   rm -rf conftest*
23299   glibcpp_mresult=1
23300 else
23301   echo "configure: failed program was:" >&5
23302   cat conftest.$ac_ext >&5
23303   rm -rf conftest*
23304   glibcpp_mresult=0
23305 fi
23306 rm -f conftest*
23307   cat >> confdefs.h <<EOF
23308 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23309 EOF
23310
23311
23312
23313     # Check for rlimit, setrlimit.
23314     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23315   echo $ac_n "(cached) $ac_c" 1>&6
23316 else
23317   
23318       cat > conftest.$ac_ext <<EOF
23319 #line 23320 "configure"
23320 #include "confdefs.h"
23321 #include <unistd.h>
23322                   #include <sys/time.h>
23323                   #include <sys/resource.h>
23324                      
23325 int main() {
23326  struct rlimit r; setrlimit(0, &r);
23327 ; return 0; }
23328 EOF
23329 if { (eval echo configure:23330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23330   rm -rf conftest*
23331   ac_setrlimit=yes
23332 else
23333   echo "configure: failed program was:" >&5
23334   cat conftest.$ac_ext >&5
23335   rm -rf conftest*
23336   ac_setrlimit=no
23337 fi
23338 rm -f conftest*
23339     
23340 fi
23341
23342   fi
23343
23344   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23345 echo "configure:23346: checking for testsuite memory limit support" >&5
23346   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23347     ac_mem_limits=yes
23348     cat >> confdefs.h <<\EOF
23349 #define _GLIBCPP_MEM_LIMITS 1
23350 EOF
23351
23352   else
23353     ac_mem_limits=no
23354   fi
23355   echo "$ac_t""$ac_mem_limits" 1>&6
23356
23357
23358   # Look for setenv, so that extended locale tests can be performed.
23359   
23360   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23361 echo "configure:23362: checking for setenv declaration" >&5
23362   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23363     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23364   echo $ac_n "(cached) $ac_c" 1>&6
23365 else
23366   
23367       
23368       ac_ext=C
23369 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23370 ac_cpp='$CXXCPP $CPPFLAGS'
23371 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23372 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23373 cross_compiling=$ac_cv_prog_cxx_cross
23374
23375       cat > conftest.$ac_ext <<EOF
23376 #line 23377 "configure"
23377 #include "confdefs.h"
23378 #include <stdlib.h>
23379 int main() {
23380  setenv(0, 0, 0);
23381 ; return 0; }
23382 EOF
23383 if { (eval echo configure:23384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23384   rm -rf conftest*
23385   glibcpp_cv_func_setenv_use=yes
23386 else
23387   echo "configure: failed program was:" >&5
23388   cat conftest.$ac_ext >&5
23389   rm -rf conftest*
23390   glibcpp_cv_func_setenv_use=no
23391 fi
23392 rm -f conftest*
23393       ac_ext=c
23394 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23395 ac_cpp='$CPP $CPPFLAGS'
23396 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23397 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23398 cross_compiling=$ac_cv_prog_cc_cross
23399
23400     
23401 fi
23402
23403   fi
23404   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23405   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23406     for ac_func in setenv
23407 do
23408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23409 echo "configure:23410: checking for $ac_func" >&5
23410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23411   echo $ac_n "(cached) $ac_c" 1>&6
23412 else
23413   cat > conftest.$ac_ext <<EOF
23414 #line 23415 "configure"
23415 #include "confdefs.h"
23416 /* System header to define __stub macros and hopefully few prototypes,
23417     which can conflict with char $ac_func(); below.  */
23418 #include <assert.h>
23419 /* Override any gcc2 internal prototype to avoid an error.  */
23420 /* We use char because int might match the return type of a gcc2
23421     builtin and then its argument prototype would still apply.  */
23422 char $ac_func();
23423
23424 int main() {
23425
23426 /* The GNU C library defines this for functions which it implements
23427     to always fail with ENOSYS.  Some functions are actually named
23428     something starting with __ and the normal name is an alias.  */
23429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23430 choke me
23431 #else
23432 $ac_func();
23433 #endif
23434
23435 ; return 0; }
23436 EOF
23437 if { (eval echo configure:23438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23438   rm -rf conftest*
23439   eval "ac_cv_func_$ac_func=yes"
23440 else
23441   echo "configure: failed program was:" >&5
23442   cat conftest.$ac_ext >&5
23443   rm -rf conftest*
23444   eval "ac_cv_func_$ac_func=no"
23445 fi
23446 rm -f conftest*
23447 fi
23448
23449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23450   echo "$ac_t""yes" 1>&6
23451     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23452   cat >> confdefs.h <<EOF
23453 #define $ac_tr_func 1
23454 EOF
23455  
23456 else
23457   echo "$ac_t""no" 1>&6
23458 fi
23459 done
23460     
23461   fi
23462
23463
23464   # Export file names for ABI checking.
23465   baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
23466   
23467
23468   # Don't do ABI checking unless native.
23469   
23470
23471 if test x"$build" = x"$host" && test -z "$with_cross_host"; then
23472   GLIBCPP_BUILD_ABI_CHECK_TRUE=
23473   GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
23474 else
23475   GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
23476   GLIBCPP_BUILD_ABI_CHECK_FALSE=
23477 fi
23478
23479 fi
23480
23481 # This depends on the possibly-skipped linker test above.
23482 # Check whether --enable-symvers or --disable-symvers was given.
23483 if test "${enable_symvers+set}" = set; then
23484   enableval="$enable_symvers"
23485   case "$enableval" in
23486  yes) enable_symvers=yes ;;
23487  no)  enable_symvers=no ;;
23488  # other names here, just as sanity checks
23489  #gnu|sun|etcetera) enable_symvers=$enableval ;;
23490  gnu) enable_symvers=$enableval ;;
23491  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23492  esac
23493 else
23494   enable_symvers=yes
23495 fi
23496
23497 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23498 # don't know enough about $LD to do tricks... 
23499 if test x$enable_shared = xno || 
23500         test "x$LD" = x || 
23501         test x$glibcpp_gnu_ld_version = x; then
23502   enable_symvers=no
23503 fi
23504
23505 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23506 if test $enable_symvers != no; then
23507   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23508 echo "configure:23509: checking for shared libgcc" >&5
23509   ac_save_CFLAGS="$CFLAGS"
23510   CFLAGS=' -lgcc_s'
23511   cat > conftest.$ac_ext <<EOF
23512 #line 23513 "configure"
23513 #include "confdefs.h"
23514
23515 int main() {
23516 return 0
23517 ; return 0; }
23518 EOF
23519 if { (eval echo configure:23520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23520   rm -rf conftest*
23521   glibcpp_shared_libgcc=yes
23522 else
23523   echo "configure: failed program was:" >&5
23524   cat conftest.$ac_ext >&5
23525   rm -rf conftest*
23526   glibcpp_shared_libgcc=no
23527 fi
23528 rm -f conftest*
23529   CFLAGS="$ac_save_CFLAGS"
23530   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23531 fi
23532
23533 # For GNU ld, we need at least this version.  It's 2.12 in the same format
23534 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
23535 glibcpp_min_gnu_ld_version=21200
23536
23537 # Check to see if unspecified "yes" value can win, given results
23538 # above.  
23539 if test $enable_symvers = yes ; then
23540   if test $with_gnu_ld = yes &&
23541     test $glibcpp_shared_libgcc = yes ;
23542   then
23543     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23544         enable_symvers=gnu
23545     else
23546       ac_test_CFLAGS="${CFLAGS+set}"
23547       ac_save_CFLAGS="$CFLAGS"
23548       CFLAGS='-shared -Wl,--version-script,conftest.map'
23549       enable_symvers=no
23550       
23551       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23552       
23553       cat > conftest.$ac_ext <<EOF
23554 #line 23555 "configure"
23555 #include "confdefs.h"
23556 int foo;
23557 int main() {
23558
23559 ; return 0; }
23560 EOF
23561 if { (eval echo configure:23562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23562   rm -rf conftest*
23563   enable_symvers=gnu
23564 else
23565   echo "configure: failed program was:" >&5
23566   cat conftest.$ac_ext >&5
23567 fi
23568 rm -f conftest*
23569       if test "$ac_test_CFLAGS" = set; then
23570         CFLAGS="$ac_save_CFLAGS"
23571       else
23572         # this is the suspicious part
23573         CFLAGS=''
23574       fi
23575       rm -f conftest.map
23576     fi
23577   else
23578     # just fail for now
23579     enable_symvers=no
23580   fi
23581 fi
23582
23583 case $enable_symvers in
23584   no)
23585       SYMVER_MAP=config/linker-map.dummy
23586       ;;
23587   gnu)
23588       SYMVER_MAP=config/linker-map.gnu
23589       cat >> confdefs.h <<\EOF
23590 #define _GLIBCPP_SYMVER 1
23591 EOF
23592         
23593       ;;
23594 esac
23595
23596
23597
23598
23599 if test $enable_symvers != no; then
23600   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23601   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23602 else
23603   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23604   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23605 fi
23606 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23607 echo "configure:23608: checking versioning on shared library symbols" >&5
23608 echo "$ac_t""$enable_symvers" 1>&6
23609
23610
23611 # Propagate the target-specific source directories through the build chain.
23612 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH 
23613 # uses it, and it only gets used in this file.)
23614 OS_INC_SRCDIR=config/${os_include_dir}
23615 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23616
23617
23618
23619 # Set up cross-compile flags
23620   
23621
23622 if test "$CANADIAN" = yes; then
23623   CANADIAN_TRUE=
23624   CANADIAN_FALSE='#'
23625 else
23626   CANADIAN_TRUE='#'
23627   CANADIAN_FALSE=
23628 fi
23629  
23630 cat > confcache <<\EOF
23631 # This file is a shell script that caches the results of configure
23632 # tests run on this system so they can be shared between configure
23633 # scripts and configure runs.  It is not useful on other systems.
23634 # If it contains results you don't want to keep, you may remove or edit it.
23635 #
23636 # By default, configure uses ./config.cache as the cache file,
23637 # creating it if it does not exist already.  You can give configure
23638 # the --cache-file=FILE option to use a different cache file; that is
23639 # what configure does when it calls configure scripts in
23640 # subdirectories, so they share the cache.
23641 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23642 # config.status only pays attention to the cache file if you give it the
23643 # --recheck option to rerun configure.
23644 #
23645 EOF
23646 # The following way of writing the cache mishandles newlines in values,
23647 # but we know of no workaround that is simple, portable, and efficient.
23648 # So, don't put newlines in cache variables' values.
23649 # Ultrix sh set writes to stderr and can't be redirected directly,
23650 # and sets the high bit in the cache file unless we assign to the vars.
23651 (set) 2>&1 |
23652   case `(ac_space=' '; set | grep ac_space) 2>&1` in
23653   *ac_space=\ *)
23654     # `set' does not quote correctly, so add quotes (double-quote substitution
23655     # turns \\\\ into \\, and sed turns \\ into \).
23656     sed -n \
23657       -e "s/'/'\\\\''/g" \
23658       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23659     ;;
23660   *)
23661     # `set' quotes correctly as required by POSIX, so do not add quotes.
23662     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23663     ;;
23664   esac >> confcache
23665 if cmp -s $cache_file confcache; then
23666   :
23667 else
23668   if test -w $cache_file; then
23669     echo "updating cache $cache_file"
23670     cat confcache > $cache_file
23671   else
23672     echo "not updating unwritable cache $cache_file"
23673   fi
23674 fi
23675 rm -f confcache
23676
23677
23678 if test "${multilib}" = "yes"; then
23679   multilib_arg="--enable-multilib"
23680 else
23681   multilib_arg=
23682 fi
23683
23684 # Export all the install information
23685
23686 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23687 # exported correctly in GLIBCPP_CONFIGURE.
23688 glibcpp_toolexecdir=no
23689 glibcpp_toolexeclibdir=no
23690 glibcpp_prefixdir=${prefix}
23691
23692 # Process the option --with-gxx-include-dir=<path to include-files directory>
23693 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23694 echo "configure:23695: checking for --with-gxx-include-dir" >&5
23695 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23696 if test "${with_gxx_include_dir+set}" = set; then
23697   withval="$with_gxx_include_dir"
23698   case "${withval}" in
23699   yes)
23700     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23701     gxx_include_dir=no
23702     ;;
23703   no)
23704     gxx_include_dir=no
23705     ;;
23706   *)
23707     gxx_include_dir=${withval}
23708     ;;
23709 esac
23710 else
23711   gxx_include_dir=no
23712 fi
23713
23714 echo "$ac_t""$gxx_include_dir" 1>&6
23715
23716 # Process the option "--enable-version-specific-runtime-libs"
23717 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23718 echo "configure:23719: checking for --enable-version-specific-runtime-libs" >&5
23719 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23720 if test "${enable_version_specific_runtime_libs+set}" = set; then
23721   enableval="$enable_version_specific_runtime_libs"
23722   case "$enableval" in
23723  yes) version_specific_libs=yes ;;
23724  no)  version_specific_libs=no ;;
23725  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23726  esac
23727 else
23728   version_specific_libs=no
23729 fi
23730 # Option set, now we can test it.
23731 echo "$ac_t""$version_specific_libs" 1>&6
23732
23733 # Default case for install directory for include files.
23734 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23735   gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23736 fi
23737
23738 # Version-specific runtime libs processing.
23739 if test $version_specific_libs = yes; then
23740   # Need the gcc compiler version to know where to install libraries
23741   # and header files if --enable-version-specific-runtime-libs option
23742   # is selected.
23743   if test x"$gxx_include_dir" = x"no"; then
23744     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23745   fi
23746   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23747   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23748 fi
23749
23750 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
23751 # Install a library built with a cross compiler in tooldir, not libdir.
23752 if test x"$glibcpp_toolexecdir" = x"no"; then 
23753   if test -n "$with_cross_host" &&
23754      test x"$with_cross_host" != x"no"; then
23755     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
23756     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
23757   else
23758     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23759     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
23760   fi
23761 fi
23762
23763 echo $ac_n "checking for install location""... $ac_c" 1>&6
23764 echo "configure:23765: checking for install location" >&5
23765 echo "$ac_t""$gxx_include_dir" 1>&6
23766
23767
23768
23769
23770
23771
23772
23773 # Export all the include and flag information to Makefiles.
23774
23775   # Root level of the build directory include sources.
23776   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
23777
23778   # Passed down for canadian crosses.
23779   if test x"$CANADIAN" = xyes; then
23780     TOPLEVEL_INCLUDES='-I$(includedir)'
23781   fi
23782
23783   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23784
23785   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23786
23787   if test x"$need_libio" = xyes; then
23788     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
23789     
23790   fi
23791
23792   # Now, export this to all the little Makefiles....
23793   
23794   
23795   
23796   
23797
23798
23799   # Optimization flags that are probably a good idea for thrill-seekers. Just
23800   # uncomment the lines below and make, everything else is ready to go... 
23801   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc 
23802   OPTIMIZE_CXXFLAGS=
23803   
23804
23805   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
23806   
23807
23808
23809 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23810    grep "enable shared" > /dev/null; then
23811   LIBSUPCXX_PICFLAGS=-prefer-pic
23812 else
23813   LIBSUPCXX_PICFLAGS=
23814 fi
23815
23816
23817 # Generate the various Makefiles, include files, and scripts.
23818 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
23819 # and libsupc++/Makefile.am so that multilib installs will end up
23820 # installed in the correct place. To work around this not being passed
23821 # down from config-ml.in -> top_srcdir/Makefile.am ->
23822 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
23823 trap '' 1 2 15
23824 cat > confcache <<\EOF
23825 # This file is a shell script that caches the results of configure
23826 # tests run on this system so they can be shared between configure
23827 # scripts and configure runs.  It is not useful on other systems.
23828 # If it contains results you don't want to keep, you may remove or edit it.
23829 #
23830 # By default, configure uses ./config.cache as the cache file,
23831 # creating it if it does not exist already.  You can give configure
23832 # the --cache-file=FILE option to use a different cache file; that is
23833 # what configure does when it calls configure scripts in
23834 # subdirectories, so they share the cache.
23835 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23836 # config.status only pays attention to the cache file if you give it the
23837 # --recheck option to rerun configure.
23838 #
23839 EOF
23840 # The following way of writing the cache mishandles newlines in values,
23841 # but we know of no workaround that is simple, portable, and efficient.
23842 # So, don't put newlines in cache variables' values.
23843 # Ultrix sh set writes to stderr and can't be redirected directly,
23844 # and sets the high bit in the cache file unless we assign to the vars.
23845 (set) 2>&1 |
23846   case `(ac_space=' '; set | grep ac_space) 2>&1` in
23847   *ac_space=\ *)
23848     # `set' does not quote correctly, so add quotes (double-quote substitution
23849     # turns \\\\ into \\, and sed turns \\ into \).
23850     sed -n \
23851       -e "s/'/'\\\\''/g" \
23852       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23853     ;;
23854   *)
23855     # `set' quotes correctly as required by POSIX, so do not add quotes.
23856     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23857     ;;
23858   esac >> confcache
23859 if cmp -s $cache_file confcache; then
23860   :
23861 else
23862   if test -w $cache_file; then
23863     echo "updating cache $cache_file"
23864     cat confcache > $cache_file
23865   else
23866     echo "not updating unwritable cache $cache_file"
23867   fi
23868 fi
23869 rm -f confcache
23870
23871 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23872
23873 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23874 # Let make expand exec_prefix.
23875 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23876
23877 # Any assignment to VPATH causes Sun make to only execute
23878 # the first set of double-colon rules, so remove it if not needed.
23879 # If there is a colon in the path, we need to keep it.
23880 if test "x$srcdir" = x.; then
23881   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
23882 fi
23883
23884 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23885
23886 DEFS=-DHAVE_CONFIG_H
23887
23888 # Without the "./", some shells look in PATH for config.status.
23889 : ${CONFIG_STATUS=./config.status}
23890
23891 echo creating $CONFIG_STATUS
23892 rm -f $CONFIG_STATUS
23893 cat > $CONFIG_STATUS <<EOF
23894 #! /bin/sh
23895 # Generated automatically by configure.
23896 # Run this file to recreate the current configuration.
23897 # This directory was configured as follows,
23898 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23899 #
23900 # $0 $ac_configure_args
23901 #
23902 # Compiler output produced by configure, useful for debugging
23903 # configure, is in ./config.log if it exists.
23904
23905 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23906 for ac_option
23907 do
23908   case "\$ac_option" in
23909   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23910     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23911     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23912   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23913     echo "$CONFIG_STATUS generated by autoconf version 2.13"
23914     exit 0 ;;
23915   -help | --help | --hel | --he | --h)
23916     echo "\$ac_cs_usage"; exit 0 ;;
23917   *) echo "\$ac_cs_usage"; exit 1 ;;
23918   esac
23919 done
23920
23921 ac_given_srcdir=$srcdir
23922 ac_given_INSTALL="$INSTALL"
23923
23924 trap 'rm -fr `echo "Makefile \
23925     include/Makefile src/Makefile \
23926     libmath/Makefile libio/Makefile libsupc++/Makefile \
23927     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23928 EOF
23929 cat >> $CONFIG_STATUS <<EOF
23930
23931 # Protect against being on the right side of a sed subst in config.status.
23932 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23933  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23934 $ac_vpsub
23935 $extrasub
23936 s%@SHELL@%$SHELL%g
23937 s%@CFLAGS@%$CFLAGS%g
23938 s%@CPPFLAGS@%$CPPFLAGS%g
23939 s%@CXXFLAGS@%$CXXFLAGS%g
23940 s%@FFLAGS@%$FFLAGS%g
23941 s%@DEFS@%$DEFS%g
23942 s%@LDFLAGS@%$LDFLAGS%g
23943 s%@LIBS@%$LIBS%g
23944 s%@exec_prefix@%$exec_prefix%g
23945 s%@prefix@%$prefix%g
23946 s%@program_transform_name@%$program_transform_name%g
23947 s%@bindir@%$bindir%g
23948 s%@sbindir@%$sbindir%g
23949 s%@libexecdir@%$libexecdir%g
23950 s%@datadir@%$datadir%g
23951 s%@sysconfdir@%$sysconfdir%g
23952 s%@sharedstatedir@%$sharedstatedir%g
23953 s%@localstatedir@%$localstatedir%g
23954 s%@libdir@%$libdir%g
23955 s%@includedir@%$includedir%g
23956 s%@oldincludedir@%$oldincludedir%g
23957 s%@infodir@%$infodir%g
23958 s%@mandir@%$mandir%g
23959 s%@PACKAGE@%$PACKAGE%g
23960 s%@libtool_VERSION@%$libtool_VERSION%g
23961 s%@toplevel_srcdir@%$toplevel_srcdir%g
23962 s%@host@%$host%g
23963 s%@host_alias@%$host_alias%g
23964 s%@host_cpu@%$host_cpu%g
23965 s%@host_vendor@%$host_vendor%g
23966 s%@host_os@%$host_os%g
23967 s%@target@%$target%g
23968 s%@target_alias@%$target_alias%g
23969 s%@target_cpu@%$target_cpu%g
23970 s%@target_vendor@%$target_vendor%g
23971 s%@target_os@%$target_os%g
23972 s%@build@%$build%g
23973 s%@build_alias@%$build_alias%g
23974 s%@build_cpu@%$build_cpu%g
23975 s%@build_vendor@%$build_vendor%g
23976 s%@build_os@%$build_os%g
23977 s%@glibcpp_builddir@%$glibcpp_builddir%g
23978 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
23979 s%@AWK@%$AWK%g
23980 s%@LN_S@%$LN_S%g
23981 s%@glibcpp_basedir@%$glibcpp_basedir%g
23982 s%@CC@%$CC%g
23983 s%@glibcpp_CXX@%$glibcpp_CXX%g
23984 s%@AS@%$AS%g
23985 s%@AR@%$AR%g
23986 s%@RANLIB@%$RANLIB%g
23987 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23988 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23989 s%@INSTALL_DATA@%$INSTALL_DATA%g
23990 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
23991 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
23992 s%@MAINT@%$MAINT%g
23993 s%@EXEEXT@%$EXEEXT%g
23994 s%@VERSION@%$VERSION%g
23995 s%@ACLOCAL@%$ACLOCAL%g
23996 s%@AUTOCONF@%$AUTOCONF%g
23997 s%@AUTOMAKE@%$AUTOMAKE%g
23998 s%@AUTOHEADER@%$AUTOHEADER%g
23999 s%@MAKEINFO@%$MAKEINFO%g
24000 s%@SET_MAKE@%$SET_MAKE%g
24001 s%@OBJEXT@%$OBJEXT%g
24002 s%@STRIP@%$STRIP%g
24003 s%@LIBTOOL@%$LIBTOOL%g
24004 s%@CXXCPP@%$CXXCPP%g
24005 s%@enable_shared@%$enable_shared%g
24006 s%@enable_static@%$enable_static%g
24007 s%@ifGNUmake@%$ifGNUmake%g
24008 s%@CPP@%$CPP%g
24009 s%@CSTDIO_H@%$CSTDIO_H%g
24010 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24011 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24012 s%@CCODECVT_C@%$CCODECVT_C%g
24013 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
24014 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
24015 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
24016 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
24017 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
24018 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
24019 s%@libio_la@%$libio_la%g
24020 s%@check_msgfmt@%$check_msgfmt%g
24021 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24022 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24023 s%@glibcpp_localedir@%$glibcpp_localedir%g
24024 s%@USE_NLS@%$USE_NLS%g
24025 s%@CLOCALE_H@%$CLOCALE_H%g
24026 s%@CCODECVT_H@%$CCODECVT_H%g
24027 s%@CMESSAGES_H@%$CMESSAGES_H%g
24028 s%@CCODECVT_CC@%$CCODECVT_CC%g
24029 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24030 s%@CCTYPE_CC@%$CCTYPE_CC%g
24031 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24032 s%@CMONEY_CC@%$CMONEY_CC%g
24033 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24034 s%@CTIME_CC@%$CTIME_CC%g
24035 s%@CLOCALE_CC@%$CLOCALE_CC%g
24036 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24037 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24038 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24039 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24040 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24041 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24042 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24043 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24044 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24045 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24046 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24047 s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24048 s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24049 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24050 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24051 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24052 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24053 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24054 s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24055 s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24056 s%@WERROR@%$WERROR%g
24057 s%@baseline_file@%$baseline_file%g
24058 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
24059 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
24060 s%@SYMVER_MAP@%$SYMVER_MAP%g
24061 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24062 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24063 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24064 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24065 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24066 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24067 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24068 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24069 s%@gxx_include_dir@%$gxx_include_dir%g
24070 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24071 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24072 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
24073 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24074 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24075 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24076 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24077 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24078 s%@WARN_FLAGS@%$WARN_FLAGS%g
24079 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24080
24081 CEOF
24082 EOF
24083
24084 cat >> $CONFIG_STATUS <<\EOF
24085
24086 # Split the substitutions into bite-sized pieces for seds with
24087 # small command number limits, like on Digital OSF/1 and HP-UX.
24088 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24089 ac_file=1 # Number of current file.
24090 ac_beg=1 # First line for current file.
24091 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24092 ac_more_lines=:
24093 ac_sed_cmds=""
24094 while $ac_more_lines; do
24095   if test $ac_beg -gt 1; then
24096     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24097   else
24098     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24099   fi
24100   if test ! -s conftest.s$ac_file; then
24101     ac_more_lines=false
24102     rm -f conftest.s$ac_file
24103   else
24104     if test -z "$ac_sed_cmds"; then
24105       ac_sed_cmds="sed -f conftest.s$ac_file"
24106     else
24107       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24108     fi
24109     ac_file=`expr $ac_file + 1`
24110     ac_beg=$ac_end
24111     ac_end=`expr $ac_end + $ac_max_sed_cmds`
24112   fi
24113 done
24114 if test -z "$ac_sed_cmds"; then
24115   ac_sed_cmds=cat
24116 fi
24117 EOF
24118
24119 cat >> $CONFIG_STATUS <<EOF
24120
24121 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24122     include/Makefile src/Makefile \
24123     libmath/Makefile libio/Makefile libsupc++/Makefile \
24124     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
24125 EOF
24126 cat >> $CONFIG_STATUS <<\EOF
24127 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24128   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24129   case "$ac_file" in
24130   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24131        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24132   *) ac_file_in="${ac_file}.in" ;;
24133   esac
24134
24135   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24136
24137   # Remove last slash and all that follows it.  Not all systems have dirname.
24138   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24139   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24140     # The file is in a subdirectory.
24141     test ! -d "$ac_dir" && mkdir "$ac_dir"
24142     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24143     # A "../" for each directory in $ac_dir_suffix.
24144     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24145   else
24146     ac_dir_suffix= ac_dots=
24147   fi
24148
24149   case "$ac_given_srcdir" in
24150   .)  srcdir=.
24151       if test -z "$ac_dots"; then top_srcdir=.
24152       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24153   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24154   *) # Relative path.
24155     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24156     top_srcdir="$ac_dots$ac_given_srcdir" ;;
24157   esac
24158
24159   case "$ac_given_INSTALL" in
24160   [/$]*) INSTALL="$ac_given_INSTALL" ;;
24161   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24162   esac
24163
24164   echo creating "$ac_file"
24165   rm -f "$ac_file"
24166   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24167   case "$ac_file" in
24168   *Makefile*) ac_comsub="1i\\
24169 # $configure_input" ;;
24170   *) ac_comsub= ;;
24171   esac
24172
24173   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24174   sed -e "$ac_comsub
24175 s%@configure_input@%$configure_input%g
24176 s%@srcdir@%$srcdir%g
24177 s%@top_srcdir@%$top_srcdir%g
24178 s%@INSTALL@%$INSTALL%g
24179 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24180 fi; done
24181 rm -f conftest.s*
24182
24183 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24184 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24185 #
24186 # ac_d sets the value in "#define NAME VALUE" lines.
24187 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24188 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
24189 ac_dC='\3'
24190 ac_dD='%g'
24191 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24192 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24193 ac_uB='\([      ]\)%\1#\2define\3'
24194 ac_uC=' '
24195 ac_uD='\4%g'
24196 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24197 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24198 ac_eB='$%\1#\2define\3'
24199 ac_eC=' '
24200 ac_eD='%g'
24201
24202 if test "${CONFIG_HEADERS+set}" != set; then
24203 EOF
24204 cat >> $CONFIG_STATUS <<EOF
24205   CONFIG_HEADERS="config.h"
24206 EOF
24207 cat >> $CONFIG_STATUS <<\EOF
24208 fi
24209 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24210   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24211   case "$ac_file" in
24212   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24213        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24214   *) ac_file_in="${ac_file}.in" ;;
24215   esac
24216
24217   echo creating $ac_file
24218
24219   rm -f conftest.frag conftest.in conftest.out
24220   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24221   cat $ac_file_inputs > conftest.in
24222
24223 EOF
24224
24225 # Transform confdefs.h into a sed script conftest.vals that substitutes
24226 # the proper values into config.h.in to produce config.h.  And first:
24227 # Protect against being on the right side of a sed subst in config.status.
24228 # Protect against being in an unquoted here document in config.status.
24229 rm -f conftest.vals
24230 cat > conftest.hdr <<\EOF
24231 s/[\\&%]/\\&/g
24232 s%[\\$`]%\\&%g
24233 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24234 s%ac_d%ac_u%gp
24235 s%ac_u%ac_e%gp
24236 EOF
24237 sed -n -f conftest.hdr confdefs.h > conftest.vals
24238 rm -f conftest.hdr
24239
24240 # This sed command replaces #undef with comments.  This is necessary, for
24241 # example, in the case of _POSIX_SOURCE, which is predefined and required
24242 # on some systems where configure will not decide to define it.
24243 cat >> conftest.vals <<\EOF
24244 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24245 EOF
24246
24247 # Break up conftest.vals because some shells have a limit on
24248 # the size of here documents, and old seds have small limits too.
24249
24250 rm -f conftest.tail
24251 while :
24252 do
24253   ac_lines=`grep -c . conftest.vals`
24254   # grep -c gives empty output for an empty file on some AIX systems.
24255   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24256   # Write a limited-size here document to conftest.frag.
24257   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24258   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24259   echo 'CEOF
24260   sed -f conftest.frag conftest.in > conftest.out
24261   rm -f conftest.in
24262   mv conftest.out conftest.in
24263 ' >> $CONFIG_STATUS
24264   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24265   rm -f conftest.vals
24266   mv conftest.tail conftest.vals
24267 done
24268 rm -f conftest.vals
24269
24270 cat >> $CONFIG_STATUS <<\EOF
24271   rm -f conftest.frag conftest.h
24272   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
24273   cat conftest.in >> conftest.h
24274   rm -f conftest.in
24275   if cmp -s $ac_file conftest.h 2>/dev/null; then
24276     echo "$ac_file is unchanged"
24277     rm -f conftest.h
24278   else
24279     # Remove last slash and all that follows it.  Not all systems have dirname.
24280       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24281       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24282       # The file is in a subdirectory.
24283       test ! -d "$ac_dir" && mkdir "$ac_dir"
24284     fi
24285     rm -f $ac_file
24286     mv conftest.h $ac_file
24287   fi
24288 fi; done
24289
24290 EOF
24291 cat >> $CONFIG_STATUS <<EOF
24292
24293 srcdir=${srcdir}
24294 host=${host}
24295 target=${target}
24296 with_target_subdir=${with_target_subdir}
24297 with_build_subdir=${with_build_subdir}
24298 with_multisubdir=${with_multisubdir}
24299 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24300 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24301 glibcpp_basedir=${glibcpp_basedir}
24302 CC="${CC}"
24303 CXX="${CXX}"
24304
24305 EOF
24306 cat >> $CONFIG_STATUS <<\EOF
24307 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24308 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24309 if test -n "$CONFIG_FILES"; then
24310  if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24311     LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24312     ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24313     grep '^MULTISUBDIR =' Makefile >> src/Makefile
24314     grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24315   fi
24316 fi
24317 chmod +x mkcheck
24318 chmod +x testsuite_flags
24319
24320 exit 0
24321 EOF
24322 chmod +x $CONFIG_STATUS
24323 rm -fr confdefs* $ac_clean_files
24324 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24325
24326
24327
24328 # Sanity checking & User-visible messages.
24329 # Checks down here, otherwise they get scrolled off before
24330 # the user will notice.
24331
24332 # Trying to get more people to read documentation.  Possibly remove
24333 # check and warn all the time. There is no "informational" AC_MSG_
24334 # macro, so these are going to be printed even when --quiet/--silent
24335 # is given.
24336 if test ! -f stamp-sanity-warned; then
24337   touch stamp-sanity-warned
24338   echo ""
24339   echo "Please make certain that you read the installation information here:"
24340   echo "  faster => ${srcdir}/docs/html/install.html"
24341   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24342   echo ""
24343   echo "and the configuration information here:"
24344   echo "  faster => ${srcdir}/docs/html/configopts.html"
24345   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24346   echo ""
24347   echo "before proceeding with ${_cv_gnu_make_command}."
24348   echo ""
24349 fi