OSDN Git Service

eadc4be2b613a5fb5f08855bf4317ef2f9ce965f
[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=]"
63 ac_help="$ac_help
64   --enable-debug          build extra debug library [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=6:0: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 am__api_version="1.4"
1505 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1506 echo "configure:1507: checking whether build environment is sane" >&5
1507 # Just in case
1508 sleep 1
1509 echo timestamp > conftestfile
1510 # Do `set' in a subshell so we don't clobber the current shell's
1511 # arguments.  Must try -L first in case configure is actually a
1512 # symlink; some systems play weird games with the mod time of symlinks
1513 # (eg FreeBSD returns the mod time of the symlink's containing
1514 # directory).
1515 if (
1516    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1517    if test "$*" = "X"; then
1518       # -L didn't work.
1519       set X `ls -t $srcdir/configure conftestfile`
1520    fi
1521    if test "$*" != "X $srcdir/configure conftestfile" \
1522       && test "$*" != "X conftestfile $srcdir/configure"; then
1523
1524       # If neither matched, then we have a broken ls.  This can happen
1525       # if, for instance, CONFIG_SHELL is bash and it inherits a
1526       # broken ls alias from the environment.  This has actually
1527       # happened.  Such a system could not be considered "sane".
1528       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1529 alias in your environment" 1>&2; exit 1; }
1530    fi
1531
1532    test "$2" = conftestfile
1533    )
1534 then
1535    # Ok.
1536    :
1537 else
1538    { echo "configure: error: newly created file is older than distributed files!
1539 Check your system clock" 1>&2; exit 1; }
1540 fi
1541 rm -f conftest*
1542 echo "$ac_t""yes" 1>&6
1543 if test "$program_transform_name" = s,x,x,; then
1544   program_transform_name=
1545 else
1546   # Double any \ or $.  echo might interpret backslashes.
1547   cat <<\EOF_SED > conftestsed
1548 s,\\,\\\\,g; s,\$,$$,g
1549 EOF_SED
1550   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1551   rm -f conftestsed
1552 fi
1553 test "$program_prefix" != NONE &&
1554   program_transform_name="s,^,${program_prefix},; $program_transform_name"
1555 # Use a double $ so make ignores it.
1556 test "$program_suffix" != NONE &&
1557   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1558
1559 # sed with no file args requires a program.
1560 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1561
1562 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1563 echo "configure:1564: checking whether ${MAKE-make} sets \${MAKE}" >&5
1564 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1565 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1566   echo $ac_n "(cached) $ac_c" 1>&6
1567 else
1568   cat > conftestmake <<\EOF
1569 all:
1570         @echo 'ac_maketemp="${MAKE}"'
1571 EOF
1572 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1573 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1574 if test -n "$ac_maketemp"; then
1575   eval ac_cv_prog_make_${ac_make}_set=yes
1576 else
1577   eval ac_cv_prog_make_${ac_make}_set=no
1578 fi
1579 rm -f conftestmake
1580 fi
1581 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1582   echo "$ac_t""yes" 1>&6
1583   SET_MAKE=
1584 else
1585   echo "$ac_t""no" 1>&6
1586   SET_MAKE="MAKE=${MAKE-make}"
1587 fi
1588
1589
1590 PACKAGE=$PACKAGE
1591
1592 VERSION=$gcc_version
1593
1594 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1595   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1596 fi
1597 cat >> confdefs.h <<EOF
1598 #define PACKAGE "$PACKAGE"
1599 EOF
1600
1601 cat >> confdefs.h <<EOF
1602 #define VERSION "$VERSION"
1603 EOF
1604
1605
1606
1607 missing_dir=`cd $ac_aux_dir && pwd`
1608 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1609 echo "configure:1610: checking for working aclocal-${am__api_version}" >&5
1610 # Run test in a subshell; some versions of sh will print an error if
1611 # an executable is not found, even if stderr is redirected.
1612 # Redirect stdin to placate older versions of autoconf.  Sigh.
1613 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1614    ACLOCAL=aclocal-${am__api_version}
1615    echo "$ac_t""found" 1>&6
1616 else
1617    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1618    echo "$ac_t""missing" 1>&6
1619 fi
1620
1621 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1622 echo "configure:1623: checking for working autoconf" >&5
1623 # Run test in a subshell; some versions of sh will print an error if
1624 # an executable is not found, even if stderr is redirected.
1625 # Redirect stdin to placate older versions of autoconf.  Sigh.
1626 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1627    AUTOCONF=autoconf
1628    echo "$ac_t""found" 1>&6
1629 else
1630    AUTOCONF="$missing_dir/missing autoconf"
1631    echo "$ac_t""missing" 1>&6
1632 fi
1633
1634 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1635 echo "configure:1636: checking for working automake-${am__api_version}" >&5
1636 # Run test in a subshell; some versions of sh will print an error if
1637 # an executable is not found, even if stderr is redirected.
1638 # Redirect stdin to placate older versions of autoconf.  Sigh.
1639 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1640    AUTOMAKE=automake-${am__api_version}
1641    echo "$ac_t""found" 1>&6
1642 else
1643    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1644    echo "$ac_t""missing" 1>&6
1645 fi
1646
1647 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1648 echo "configure:1649: checking for working autoheader" >&5
1649 # Run test in a subshell; some versions of sh will print an error if
1650 # an executable is not found, even if stderr is redirected.
1651 # Redirect stdin to placate older versions of autoconf.  Sigh.
1652 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1653    AUTOHEADER=autoheader
1654    echo "$ac_t""found" 1>&6
1655 else
1656    AUTOHEADER="$missing_dir/missing autoheader"
1657    echo "$ac_t""missing" 1>&6
1658 fi
1659
1660 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1661 echo "configure:1662: checking for working makeinfo" >&5
1662 # Run test in a subshell; some versions of sh will print an error if
1663 # an executable is not found, even if stderr is redirected.
1664 # Redirect stdin to placate older versions of autoconf.  Sigh.
1665 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1666    MAKEINFO=makeinfo
1667    echo "$ac_t""found" 1>&6
1668 else
1669    MAKEINFO="$missing_dir/missing makeinfo"
1670    echo "$ac_t""missing" 1>&6
1671 fi
1672
1673
1674
1675
1676
1677
1678
1679 # Check whether --enable-shared or --disable-shared was given.
1680 if test "${enable_shared+set}" = set; then
1681   enableval="$enable_shared"
1682   p=${PACKAGE-default}
1683 case $enableval in
1684 yes) enable_shared=yes ;;
1685 no) enable_shared=no ;;
1686 *)
1687   enable_shared=no
1688   # Look at the argument we got.  We use all the common list separators.
1689   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1690   for pkg in $enableval; do
1691     if test "X$pkg" = "X$p"; then
1692       enable_shared=yes
1693     fi
1694   done
1695   IFS="$ac_save_ifs"
1696   ;;
1697 esac
1698 else
1699   enable_shared=yes
1700 fi
1701
1702 # Check whether --enable-static or --disable-static was given.
1703 if test "${enable_static+set}" = set; then
1704   enableval="$enable_static"
1705   p=${PACKAGE-default}
1706 case $enableval in
1707 yes) enable_static=yes ;;
1708 no) enable_static=no ;;
1709 *)
1710   enable_static=no
1711   # Look at the argument we got.  We use all the common list separators.
1712   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1713   for pkg in $enableval; do
1714     if test "X$pkg" = "X$p"; then
1715       enable_static=yes
1716     fi
1717   done
1718   IFS="$ac_save_ifs"
1719   ;;
1720 esac
1721 else
1722   enable_static=yes
1723 fi
1724
1725 # Check whether --enable-fast-install or --disable-fast-install was given.
1726 if test "${enable_fast_install+set}" = set; then
1727   enableval="$enable_fast_install"
1728   p=${PACKAGE-default}
1729 case $enableval in
1730 yes) enable_fast_install=yes ;;
1731 no) enable_fast_install=no ;;
1732 *)
1733   enable_fast_install=no
1734   # Look at the argument we got.  We use all the common list separators.
1735   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1736   for pkg in $enableval; do
1737     if test "X$pkg" = "X$p"; then
1738       enable_fast_install=yes
1739     fi
1740   done
1741   IFS="$ac_save_ifs"
1742   ;;
1743 esac
1744 else
1745   enable_fast_install=yes
1746 fi
1747
1748 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1749 if test "${with_gnu_ld+set}" = set; then
1750   withval="$with_gnu_ld"
1751   test "$withval" = no || with_gnu_ld=yes
1752 else
1753   with_gnu_ld=no
1754 fi
1755
1756 ac_prog=ld
1757 if test "$GCC" = yes; then
1758   # Check if gcc -print-prog-name=ld gives a path.
1759   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1760 echo "configure:1761: checking for ld used by GCC" >&5
1761   case $host in
1762   *-*-mingw*)
1763     # gcc leaves a trailing carriage return which upsets mingw
1764     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1765   *)
1766     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1767   esac
1768   case $ac_prog in
1769     # Accept absolute paths.
1770     [\\/]* | [A-Za-z]:[\\/]*)
1771       re_direlt='/[^/][^/]*/\.\./'
1772       # Canonicalize the path of ld
1773       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1774       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1775         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1776       done
1777       test -z "$LD" && LD="$ac_prog"
1778       ;;
1779   "")
1780     # If it fails, then pretend we aren't using GCC.
1781     ac_prog=ld
1782     ;;
1783   *)
1784     # If it is relative, then search for the first ld in PATH.
1785     with_gnu_ld=unknown
1786     ;;
1787   esac
1788 elif test "$with_gnu_ld" = yes; then
1789   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1790 echo "configure:1791: checking for GNU ld" >&5
1791 else
1792   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1793 echo "configure:1794: checking for non-GNU ld" >&5
1794 fi
1795 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1796   echo $ac_n "(cached) $ac_c" 1>&6
1797 else
1798   if test -z "$LD"; then
1799   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1800   for ac_dir in $PATH; do
1801     test -z "$ac_dir" && ac_dir=.
1802     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1803       lt_cv_path_LD="$ac_dir/$ac_prog"
1804       # Check to see if the program is GNU ld.  I'd rather use --version,
1805       # but apparently some GNU ld's only accept -v.
1806       # Break only if it was the GNU/non-GNU ld that we prefer.
1807       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1808         test "$with_gnu_ld" != no && break
1809       else
1810         test "$with_gnu_ld" != yes && break
1811       fi
1812     fi
1813   done
1814   IFS="$ac_save_ifs"
1815 else
1816   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1817 fi
1818 fi
1819
1820 LD="$lt_cv_path_LD"
1821 if test -n "$LD"; then
1822   echo "$ac_t""$LD" 1>&6
1823 else
1824   echo "$ac_t""no" 1>&6
1825 fi
1826 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1827 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1828 echo "configure:1829: checking if the linker ($LD) is GNU ld" >&5
1829 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1830   echo $ac_n "(cached) $ac_c" 1>&6
1831 else
1832   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1833 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1834   lt_cv_prog_gnu_ld=yes
1835 else
1836   lt_cv_prog_gnu_ld=no
1837 fi
1838 fi
1839
1840 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1841 with_gnu_ld=$lt_cv_prog_gnu_ld
1842
1843
1844 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $LD option to reload object files" >&5
1846 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1847   echo $ac_n "(cached) $ac_c" 1>&6
1848 else
1849   lt_cv_ld_reload_flag='-r'
1850 fi
1851
1852 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1853 reload_flag=$lt_cv_ld_reload_flag
1854 test -n "$reload_flag" && reload_flag=" $reload_flag"
1855
1856 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1857 echo "configure:1858: checking for BSD-compatible nm" >&5
1858 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1859   echo $ac_n "(cached) $ac_c" 1>&6
1860 else
1861   if test -n "$NM"; then
1862   # Let the user override the test.
1863   lt_cv_path_NM="$NM"
1864 else
1865   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1866   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1867     test -z "$ac_dir" && ac_dir=.
1868     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1869     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1870       # Check to see if the nm accepts a BSD-compat flag.
1871       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1872       #   nm: unknown option "B" ignored
1873       # Tru64's nm complains that /dev/null is an invalid object file
1874       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1875         lt_cv_path_NM="$tmp_nm -B"
1876         break
1877       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1878         lt_cv_path_NM="$tmp_nm -p"
1879         break
1880       else
1881         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1882         continue # so that we can try to find one that supports BSD flags
1883       fi
1884     fi
1885   done
1886   IFS="$ac_save_ifs"
1887   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1888 fi
1889 fi
1890
1891 NM="$lt_cv_path_NM"
1892 echo "$ac_t""$NM" 1>&6
1893
1894 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1895 echo "configure:1896: checking how to recognise dependant libraries" >&5
1896 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1897   echo $ac_n "(cached) $ac_c" 1>&6
1898 else
1899   lt_cv_file_magic_cmd='$MAGIC_CMD'
1900 lt_cv_file_magic_test_file=
1901 lt_cv_deplibs_check_method='unknown'
1902 # Need to set the preceding variable on all platforms that support
1903 # interlibrary dependencies.
1904 # 'none' -- dependencies not supported.
1905 # `unknown' -- same as none, but documents that we really don't know.
1906 # 'pass_all' -- all dependencies passed with no checks.
1907 # 'test_compile' -- check by making test program.
1908 # 'file_magic [regex]' -- check by looking for files in library path
1909 # which responds to the $file_magic_cmd with a given egrep regex.
1910 # If you have `file' or equivalent on your system and you're not sure
1911 # whether `pass_all' will *always* work, you probably want this one.
1912
1913 case $host_os in
1914 aix*)
1915   lt_cv_deplibs_check_method=pass_all
1916   ;;
1917
1918 beos*)
1919   lt_cv_deplibs_check_method=pass_all
1920   ;;
1921
1922 bsdi4*)
1923   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1924   lt_cv_file_magic_cmd='/usr/bin/file -L'
1925   lt_cv_file_magic_test_file=/shlib/libc.so
1926   ;;
1927
1928 cygwin* | mingw* |pw32*)
1929   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1930   lt_cv_file_magic_cmd='$OBJDUMP -f'
1931   ;;
1932
1933 darwin* | rhapsody*)
1934   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1935   lt_cv_file_magic_cmd='/usr/bin/file -L'
1936   case "$host_os" in
1937   rhapsody* | darwin1.012)
1938     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1939     ;;
1940   *) # Darwin 1.3 on
1941     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1942     ;;
1943   esac
1944   ;;
1945
1946 freebsd* )
1947   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1948     case $host_cpu in
1949     i*86 )
1950       # Not sure whether the presence of OpenBSD here was a mistake.
1951       # Let's accept both of them until this is cleared up.
1952       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1953       lt_cv_file_magic_cmd=/usr/bin/file
1954       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1955       ;;
1956     esac
1957   else
1958     lt_cv_deplibs_check_method=pass_all
1959   fi
1960   ;;
1961
1962 gnu*)
1963   lt_cv_deplibs_check_method=pass_all
1964   ;;
1965
1966 hpux10.20*|hpux11*)
1967   case $host_cpu in
1968   hppa*)
1969     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1970     lt_cv_file_magic_cmd=/usr/bin/file
1971     lt_cv_file_magic_test_file=/usr/lib/libc.sl
1972     ;;
1973   ia64*)
1974     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1975     lt_cv_file_magic_cmd=/usr/bin/file
1976     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1977     ;;
1978   esac
1979   ;;
1980
1981 irix5* | irix6*)
1982   case $host_os in
1983   irix5*)
1984     # this will be overridden with pass_all, but let us keep it just in case
1985     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1986     ;;
1987   *)
1988     case $LD in
1989     *-32|*"-32 ") libmagic=32-bit;;
1990     *-n32|*"-n32 ") libmagic=N32;;
1991     *-64|*"-64 ") libmagic=64-bit;;
1992     *) libmagic=never-match;;
1993     esac
1994     # this will be overridden with pass_all, but let us keep it just in case
1995     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1996     ;;
1997   esac
1998   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1999   lt_cv_deplibs_check_method=pass_all
2000   ;;
2001
2002 # This must be Linux ELF.
2003 linux-gnu*)
2004   case $host_cpu in
2005   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2006     lt_cv_deplibs_check_method=pass_all ;;
2007   *)
2008     # glibc up to 2.1.1 does not perform some relocations on ARM
2009     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2010   esac
2011   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2012   ;;
2013
2014 netbsd*)
2015   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2016     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2017   else
2018     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2019   fi
2020   ;;
2021
2022 newsos6)
2023   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2024   lt_cv_file_magic_cmd=/usr/bin/file
2025   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2026   ;;
2027
2028 osf3* | osf4* | osf5*)
2029   # this will be overridden with pass_all, but let us keep it just in case
2030   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2031   lt_cv_file_magic_test_file=/shlib/libc.so
2032   lt_cv_deplibs_check_method=pass_all
2033   ;;
2034
2035 sco3.2v5*)
2036   lt_cv_deplibs_check_method=pass_all
2037   ;;
2038
2039 solaris*)
2040   lt_cv_deplibs_check_method=pass_all
2041   lt_cv_file_magic_test_file=/lib/libc.so
2042   ;;
2043
2044 sysv5uw[78]* | sysv4*uw2*)
2045   lt_cv_deplibs_check_method=pass_all
2046   ;;
2047
2048 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2049   case $host_vendor in
2050   ncr)
2051     lt_cv_deplibs_check_method=pass_all
2052     ;;
2053   motorola)
2054     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]'
2055     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2056     ;;
2057   esac
2058   ;;
2059 esac
2060
2061 fi
2062
2063 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2064 file_magic_cmd=$lt_cv_file_magic_cmd
2065 deplibs_check_method=$lt_cv_deplibs_check_method
2066
2067 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2068 echo "configure:2069: checking for object suffix" >&5
2069 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2070   echo $ac_n "(cached) $ac_c" 1>&6
2071 else
2072   rm -f conftest*
2073 echo 'int i = 1;' > conftest.$ac_ext
2074 if { (eval echo configure:2075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2075   for ac_file in conftest.*; do
2076     case $ac_file in
2077     *.c) ;;
2078     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2079     esac
2080   done
2081 else
2082   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2083 fi
2084 rm -f conftest*
2085 fi
2086
2087 echo "$ac_t""$ac_cv_objext" 1>&6
2088 OBJEXT=$ac_cv_objext
2089 ac_objext=$ac_cv_objext
2090
2091 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2092
2093 # Only perform the check for file, if the check method requires it
2094 case $deplibs_check_method in
2095 file_magic*)
2096   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2097     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2098 echo "configure:2099: checking for ${ac_tool_prefix}file" >&5
2099 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2100   echo $ac_n "(cached) $ac_c" 1>&6
2101 else
2102   case $MAGIC_CMD in
2103   /*)
2104   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2105   ;;
2106   ?:/*)
2107   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2108   ;;
2109   *)
2110   ac_save_MAGIC_CMD="$MAGIC_CMD"
2111   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2112   ac_dummy="/usr/bin:$PATH"
2113   for ac_dir in $ac_dummy; do
2114     test -z "$ac_dir" && ac_dir=.
2115     if test -f $ac_dir/${ac_tool_prefix}file; then
2116       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2117       if test -n "$file_magic_test_file"; then
2118         case $deplibs_check_method in
2119         "file_magic "*)
2120           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2121           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2122           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2123             egrep "$file_magic_regex" > /dev/null; then
2124             :
2125           else
2126             cat <<EOF 1>&2
2127
2128 *** Warning: the command libtool uses to detect shared libraries,
2129 *** $file_magic_cmd, produces output that libtool cannot recognize.
2130 *** The result is that libtool may fail to recognize shared libraries
2131 *** as such.  This will affect the creation of libtool libraries that
2132 *** depend on shared libraries, but programs linked with such libtool
2133 *** libraries will work regardless of this problem.  Nevertheless, you
2134 *** may want to report the problem to your system manager and/or to
2135 *** bug-libtool@gnu.org
2136
2137 EOF
2138           fi ;;
2139         esac
2140       fi
2141       break
2142     fi
2143   done
2144   IFS="$ac_save_ifs"
2145   MAGIC_CMD="$ac_save_MAGIC_CMD"
2146   ;;
2147 esac
2148 fi
2149
2150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2151 if test -n "$MAGIC_CMD"; then
2152   echo "$ac_t""$MAGIC_CMD" 1>&6
2153 else
2154   echo "$ac_t""no" 1>&6
2155 fi
2156
2157 if test -z "$lt_cv_path_MAGIC_CMD"; then
2158   if test -n "$ac_tool_prefix"; then
2159     echo $ac_n "checking for file""... $ac_c" 1>&6
2160 echo "configure:2161: checking for file" >&5
2161 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2162   echo $ac_n "(cached) $ac_c" 1>&6
2163 else
2164   case $MAGIC_CMD in
2165   /*)
2166   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2167   ;;
2168   ?:/*)
2169   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2170   ;;
2171   *)
2172   ac_save_MAGIC_CMD="$MAGIC_CMD"
2173   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2174   ac_dummy="/usr/bin:$PATH"
2175   for ac_dir in $ac_dummy; do
2176     test -z "$ac_dir" && ac_dir=.
2177     if test -f $ac_dir/file; then
2178       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2179       if test -n "$file_magic_test_file"; then
2180         case $deplibs_check_method in
2181         "file_magic "*)
2182           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2183           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2184           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2185             egrep "$file_magic_regex" > /dev/null; then
2186             :
2187           else
2188             cat <<EOF 1>&2
2189
2190 *** Warning: the command libtool uses to detect shared libraries,
2191 *** $file_magic_cmd, produces output that libtool cannot recognize.
2192 *** The result is that libtool may fail to recognize shared libraries
2193 *** as such.  This will affect the creation of libtool libraries that
2194 *** depend on shared libraries, but programs linked with such libtool
2195 *** libraries will work regardless of this problem.  Nevertheless, you
2196 *** may want to report the problem to your system manager and/or to
2197 *** bug-libtool@gnu.org
2198
2199 EOF
2200           fi ;;
2201         esac
2202       fi
2203       break
2204     fi
2205   done
2206   IFS="$ac_save_ifs"
2207   MAGIC_CMD="$ac_save_MAGIC_CMD"
2208   ;;
2209 esac
2210 fi
2211
2212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2213 if test -n "$MAGIC_CMD"; then
2214   echo "$ac_t""$MAGIC_CMD" 1>&6
2215 else
2216   echo "$ac_t""no" 1>&6
2217 fi
2218
2219   else
2220     MAGIC_CMD=:
2221   fi
2222 fi
2223
2224   fi
2225   ;;
2226 esac
2227
2228 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2229 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2231 echo "configure:2232: checking for $ac_word" >&5
2232 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2233   echo $ac_n "(cached) $ac_c" 1>&6
2234 else
2235   if test -n "$RANLIB"; then
2236   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2237 else
2238   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2239   ac_dummy="$PATH"
2240   for ac_dir in $ac_dummy; do
2241     test -z "$ac_dir" && ac_dir=.
2242     if test -f $ac_dir/$ac_word; then
2243       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2244       break
2245     fi
2246   done
2247   IFS="$ac_save_ifs"
2248 fi
2249 fi
2250 RANLIB="$ac_cv_prog_RANLIB"
2251 if test -n "$RANLIB"; then
2252   echo "$ac_t""$RANLIB" 1>&6
2253 else
2254   echo "$ac_t""no" 1>&6
2255 fi
2256
2257
2258 if test -z "$ac_cv_prog_RANLIB"; then
2259 if test -n "$ac_tool_prefix"; then
2260   # Extract the first word of "ranlib", so it can be a program name with args.
2261 set dummy ranlib; ac_word=$2
2262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_word" >&5
2264 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2265   echo $ac_n "(cached) $ac_c" 1>&6
2266 else
2267   if test -n "$RANLIB"; then
2268   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2269 else
2270   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2271   ac_dummy="$PATH"
2272   for ac_dir in $ac_dummy; do
2273     test -z "$ac_dir" && ac_dir=.
2274     if test -f $ac_dir/$ac_word; then
2275       ac_cv_prog_RANLIB="ranlib"
2276       break
2277     fi
2278   done
2279   IFS="$ac_save_ifs"
2280   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2281 fi
2282 fi
2283 RANLIB="$ac_cv_prog_RANLIB"
2284 if test -n "$RANLIB"; then
2285   echo "$ac_t""$RANLIB" 1>&6
2286 else
2287   echo "$ac_t""no" 1>&6
2288 fi
2289
2290 else
2291   RANLIB=":"
2292 fi
2293 fi
2294
2295 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2296 set dummy ${ac_tool_prefix}strip; ac_word=$2
2297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2298 echo "configure:2299: checking for $ac_word" >&5
2299 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2300   echo $ac_n "(cached) $ac_c" 1>&6
2301 else
2302   if test -n "$STRIP"; then
2303   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2304 else
2305   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2306   ac_dummy="$PATH"
2307   for ac_dir in $ac_dummy; do
2308     test -z "$ac_dir" && ac_dir=.
2309     if test -f $ac_dir/$ac_word; then
2310       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2311       break
2312     fi
2313   done
2314   IFS="$ac_save_ifs"
2315 fi
2316 fi
2317 STRIP="$ac_cv_prog_STRIP"
2318 if test -n "$STRIP"; then
2319   echo "$ac_t""$STRIP" 1>&6
2320 else
2321   echo "$ac_t""no" 1>&6
2322 fi
2323
2324
2325 if test -z "$ac_cv_prog_STRIP"; then
2326 if test -n "$ac_tool_prefix"; then
2327   # Extract the first word of "strip", so it can be a program name with args.
2328 set dummy strip; ac_word=$2
2329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_word" >&5
2331 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2332   echo $ac_n "(cached) $ac_c" 1>&6
2333 else
2334   if test -n "$STRIP"; then
2335   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2336 else
2337   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2338   ac_dummy="$PATH"
2339   for ac_dir in $ac_dummy; do
2340     test -z "$ac_dir" && ac_dir=.
2341     if test -f $ac_dir/$ac_word; then
2342       ac_cv_prog_STRIP="strip"
2343       break
2344     fi
2345   done
2346   IFS="$ac_save_ifs"
2347   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2348 fi
2349 fi
2350 STRIP="$ac_cv_prog_STRIP"
2351 if test -n "$STRIP"; then
2352   echo "$ac_t""$STRIP" 1>&6
2353 else
2354   echo "$ac_t""no" 1>&6
2355 fi
2356
2357 else
2358   STRIP=":"
2359 fi
2360 fi
2361
2362
2363 # Check for any special flags to pass to ltconfig.
2364 libtool_flags="--cache-file=$cache_file"
2365 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2366 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2367 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2368 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2369 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2370 libtool_flags="$libtool_flags --enable-dlopen"
2371
2372 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2373 if test "${enable_libtool_lock+set}" = set; then
2374   enableval="$enable_libtool_lock"
2375   :
2376 fi
2377
2378 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2379 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2380
2381 # Check whether --with-pic or --without-pic was given.
2382 if test "${with_pic+set}" = set; then
2383   withval="$with_pic"
2384   pic_mode="$withval"
2385 else
2386   pic_mode=default
2387 fi
2388
2389 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2390 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2391
2392 # Some flags need to be propagated to the compiler or linker for good
2393 # libtool support.
2394 case $host in
2395 *-*-irix6*)
2396   # Find out which ABI we are using.
2397   echo '#line 2398 "configure"' > conftest.$ac_ext
2398   if { (eval echo configure:2399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2399     case `/usr/bin/file conftest.$ac_objext` in
2400     *32-bit*)
2401       LD="${LD-ld} -32"
2402       ;;
2403     *N32*)
2404       LD="${LD-ld} -n32"
2405       ;;
2406     *64-bit*)
2407       LD="${LD-ld} -64"
2408       ;;
2409     esac
2410   fi
2411   rm -rf conftest*
2412   ;;
2413
2414 ia64-*-hpux*)
2415   # Find out which ABI we are using.
2416   echo 'int i;' > conftest.$ac_ext
2417   if { (eval echo configure:2418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2418     case "`/usr/bin/file conftest.o`" in
2419     *ELF-32*)
2420       HPUX_IA64_MODE="32"
2421       ;;
2422     *ELF-64*)
2423       HPUX_IA64_MODE="64"
2424       ;;
2425     esac
2426   fi
2427   rm -rf conftest*
2428   ;;
2429
2430 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2431   # Find out which ABI we are using.
2432   echo 'int i;' > conftest.$ac_ext
2433   if { (eval echo configure:2434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2434     case "`/usr/bin/file conftest.o`" in
2435     *32-bit*)
2436       case $host in
2437         x86_64-*linux*)
2438           LD="${LD-ld} -m elf_i386"
2439           ;;
2440         ppc64-*linux*)
2441           LD="${LD-ld} -m elf32ppclinux"
2442           ;;
2443         s390x-*linux*)
2444           LD="${LD-ld} -m elf_s390"
2445           ;;
2446         sparc64-*linux*)
2447           LD="${LD-ld} -m elf32_sparc"
2448           ;;
2449       esac
2450       ;;
2451     *64-bit*)
2452       case $host in
2453         x86_64-*linux*)
2454           LD="${LD-ld} -m elf_x86_64"
2455           ;;
2456         ppc*-*linux*|powerpc*-*linux*)
2457           LD="${LD-ld} -m elf64ppc"
2458           ;;
2459         s390*-*linux*)
2460           LD="${LD-ld} -m elf64_s390"
2461           ;;
2462         sparc*-*linux*)
2463           LD="${LD-ld} -m elf64_sparc"
2464           ;;
2465       esac
2466       ;;
2467     esac
2468   fi
2469   rm -rf conftest*
2470   ;;
2471
2472 *-*-sco3.2v5*)
2473   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2474   SAVE_CFLAGS="$CFLAGS"
2475   CFLAGS="$CFLAGS -belf"
2476   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2477 echo "configure:2478: checking whether the C compiler needs -belf" >&5
2478 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2479   echo $ac_n "(cached) $ac_c" 1>&6
2480 else
2481   
2482      ac_ext=c
2483 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2484 ac_cpp='$CPP $CPPFLAGS'
2485 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2486 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2487 cross_compiling=$ac_cv_prog_cc_cross
2488
2489      cat > conftest.$ac_ext <<EOF
2490 #line 2491 "configure"
2491 #include "confdefs.h"
2492
2493 int main() {
2494
2495 ; return 0; }
2496 EOF
2497 if { (eval echo configure:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2498   rm -rf conftest*
2499   lt_cv_cc_needs_belf=yes
2500 else
2501   echo "configure: failed program was:" >&5
2502   cat conftest.$ac_ext >&5
2503   rm -rf conftest*
2504   lt_cv_cc_needs_belf=no
2505 fi
2506 rm -f conftest*
2507      ac_ext=c
2508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2509 ac_cpp='$CPP $CPPFLAGS'
2510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2511 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2512 cross_compiling=$ac_cv_prog_cc_cross
2513
2514 fi
2515
2516 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2517   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2518     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2519     CFLAGS="$SAVE_CFLAGS"
2520   fi
2521   ;;
2522
2523
2524 esac
2525
2526 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2527 echo "configure:2528: checking how to run the C++ preprocessor" >&5
2528 if test -z "$CXXCPP"; then
2529 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2530   echo $ac_n "(cached) $ac_c" 1>&6
2531 else
2532   ac_ext=C
2533 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2534 ac_cpp='$CXXCPP $CPPFLAGS'
2535 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2536 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2537 cross_compiling=$ac_cv_prog_cxx_cross
2538   CXXCPP="${CXX-g++} -E"
2539   cat > conftest.$ac_ext <<EOF
2540 #line 2541 "configure"
2541 #include "confdefs.h"
2542 #include <stdlib.h>
2543 EOF
2544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2545 { (eval echo configure:2546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2547 if test -z "$ac_err"; then
2548   :
2549 else
2550   echo "$ac_err" >&5
2551   echo "configure: failed program was:" >&5
2552   cat conftest.$ac_ext >&5
2553   rm -rf conftest*
2554   CXXCPP=/lib/cpp
2555 fi
2556 rm -f conftest*
2557   ac_cv_prog_CXXCPP="$CXXCPP"
2558 ac_ext=c
2559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2560 ac_cpp='$CPP $CPPFLAGS'
2561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2563 cross_compiling=$ac_cv_prog_cc_cross
2564 fi
2565 fi
2566 CXXCPP="$ac_cv_prog_CXXCPP"
2567 echo "$ac_t""$CXXCPP" 1>&6
2568
2569
2570 # Save cache, so that ltconfig can load it
2571 cat > confcache <<\EOF
2572 # This file is a shell script that caches the results of configure
2573 # tests run on this system so they can be shared between configure
2574 # scripts and configure runs.  It is not useful on other systems.
2575 # If it contains results you don't want to keep, you may remove or edit it.
2576 #
2577 # By default, configure uses ./config.cache as the cache file,
2578 # creating it if it does not exist already.  You can give configure
2579 # the --cache-file=FILE option to use a different cache file; that is
2580 # what configure does when it calls configure scripts in
2581 # subdirectories, so they share the cache.
2582 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2583 # config.status only pays attention to the cache file if you give it the
2584 # --recheck option to rerun configure.
2585 #
2586 EOF
2587 # The following way of writing the cache mishandles newlines in values,
2588 # but we know of no workaround that is simple, portable, and efficient.
2589 # So, don't put newlines in cache variables' values.
2590 # Ultrix sh set writes to stderr and can't be redirected directly,
2591 # and sets the high bit in the cache file unless we assign to the vars.
2592 (set) 2>&1 |
2593   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2594   *ac_space=\ *)
2595     # `set' does not quote correctly, so add quotes (double-quote substitution
2596     # turns \\\\ into \\, and sed turns \\ into \).
2597     sed -n \
2598       -e "s/'/'\\\\''/g" \
2599       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2600     ;;
2601   *)
2602     # `set' quotes correctly as required by POSIX, so do not add quotes.
2603     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2604     ;;
2605   esac >> confcache
2606 if cmp -s $cache_file confcache; then
2607   :
2608 else
2609   if test -w $cache_file; then
2610     echo "updating cache $cache_file"
2611     cat confcache > $cache_file
2612   else
2613     echo "not updating unwritable cache $cache_file"
2614   fi
2615 fi
2616 rm -f confcache
2617
2618
2619 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2620 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2621 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2622 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2623 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2624 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2625 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2626 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2627 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2628 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2629
2630 # Reload cache, that may have been modified by ltconfig
2631 if test -r "$cache_file"; then
2632   echo "loading cache $cache_file"
2633   . $cache_file
2634 else
2635   echo "creating cache $cache_file"
2636   > $cache_file
2637 fi
2638
2639
2640 # This can be used to rebuild libtool when needed
2641 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2642
2643 # Always use our own libtool.
2644 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2645
2646 # Redirect the config.log output again, so that the ltconfig log is not
2647 # clobbered by the next message.
2648 exec 5>>./config.log
2649
2650
2651
2652 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2653 lt_save_CC="$CC"
2654 lt_save_CFLAGS="$CFLAGS"
2655 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2656 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2657 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2658 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2659 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2660 deplibs_check_method="$deplibs_check_method" \
2661 file_magic_cmd="$file_magic_cmd" \
2662 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2663 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2664 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2665 CC="$lt_save_CC"
2666 CFLAGS="$lt_save_CFLAGS"
2667
2668 # Redirect the config.log output again, so that the ltconfig log is not
2669 # clobbered by the next message.
2670 exec 5>>./config.log
2671
2672   
2673
2674   
2675          
2676          
2677
2678
2679
2680 # Check for c++ or library specific bits that don't require linking.
2681 #GLIBCPP_CHECK_COMPILER_VERSION
2682 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2683 echo "configure:2684: checking for GNU make" >&5
2684 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2685   echo $ac_n "(cached) $ac_c" 1>&6
2686 else
2687   _cv_gnu_make_command='' ;
2688           for a in "${MAKE-make}" make gmake gnumake ; do
2689                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2690                   then
2691                           _cv_gnu_make_command=$a ;
2692                           break;
2693                   fi
2694           done ;
2695   
2696 fi
2697
2698 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2699   if test  "x$_cv_gnu_make_command" != "x"  ; then
2700           ifGNUmake='' ;
2701   else
2702           ifGNUmake='#' ;
2703   fi
2704   
2705
2706
2707 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2708 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2709 echo "configure:2710: checking how to run the C preprocessor" >&5
2710 # On Suns, sometimes $CPP names a directory.
2711 if test -n "$CPP" && test -d "$CPP"; then
2712   CPP=
2713 fi
2714 if test -z "$CPP"; then
2715 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2716   echo $ac_n "(cached) $ac_c" 1>&6
2717 else
2718     # This must be in double quotes, not single quotes, because CPP may get
2719   # substituted into the Makefile and "${CC-cc}" will confuse make.
2720   CPP="${CC-cc} -E"
2721   # On the NeXT, cc -E runs the code through the compiler's parser,
2722   # not just through cpp.
2723   cat > conftest.$ac_ext <<EOF
2724 #line 2725 "configure"
2725 #include "confdefs.h"
2726 #include <assert.h>
2727 Syntax Error
2728 EOF
2729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2730 { (eval echo configure:2731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2732 if test -z "$ac_err"; then
2733   :
2734 else
2735   echo "$ac_err" >&5
2736   echo "configure: failed program was:" >&5
2737   cat conftest.$ac_ext >&5
2738   rm -rf conftest*
2739   CPP="${CC-cc} -E -traditional-cpp"
2740   cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2743 #include <assert.h>
2744 Syntax Error
2745 EOF
2746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2747 { (eval echo configure:2748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2749 if test -z "$ac_err"; then
2750   :
2751 else
2752   echo "$ac_err" >&5
2753   echo "configure: failed program was:" >&5
2754   cat conftest.$ac_ext >&5
2755   rm -rf conftest*
2756   CPP="${CC-cc} -nologo -E"
2757   cat > conftest.$ac_ext <<EOF
2758 #line 2759 "configure"
2759 #include "confdefs.h"
2760 #include <assert.h>
2761 Syntax Error
2762 EOF
2763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2764 { (eval echo configure:2765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2766 if test -z "$ac_err"; then
2767   :
2768 else
2769   echo "$ac_err" >&5
2770   echo "configure: failed program was:" >&5
2771   cat conftest.$ac_ext >&5
2772   rm -rf conftest*
2773   CPP=/lib/cpp
2774 fi
2775 rm -f conftest*
2776 fi
2777 rm -f conftest*
2778 fi
2779 rm -f conftest*
2780   ac_cv_prog_CPP="$CPP"
2781 fi
2782   CPP="$ac_cv_prog_CPP"
2783 else
2784   ac_cv_prog_CPP="$CPP"
2785 fi
2786 echo "$ac_t""$CPP" 1>&6
2787
2788
2789   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2790 echo "configure:2791: checking for cstdio to use" >&5
2791   # Check whether --enable-cstdio or --disable-cstdio was given.
2792 if test "${enable_cstdio+set}" = set; then
2793   enableval="$enable_cstdio"
2794   if test x$enable_cstdio = xno; then
2795      enable_cstdio=stdio
2796   fi
2797 else
2798   enable_cstdio=stdio
2799 fi
2800
2801
2802   enable_cstdio_flag=$enable_cstdio
2803
2804     case x${enable_cstdio_flag} in
2805     xlibio)
2806       CSTDIO_H=config/io/c_io_libio.h
2807       BASIC_FILE_H=config/io/basic_file_libio.h
2808       BASIC_FILE_CC=config/io/basic_file_libio.cc
2809       echo "$ac_t""libio" 1>&6
2810
2811       # see if we are on a system with libio native (ie, linux)
2812       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2813 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2814 echo "configure:2815: checking for libio.h" >&5
2815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2816   echo $ac_n "(cached) $ac_c" 1>&6
2817 else
2818   cat > conftest.$ac_ext <<EOF
2819 #line 2820 "configure"
2820 #include "confdefs.h"
2821 #include <libio.h>
2822 EOF
2823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2824 { (eval echo configure:2825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2826 if test -z "$ac_err"; then
2827   rm -rf conftest*
2828   eval "ac_cv_header_$ac_safe=yes"
2829 else
2830   echo "$ac_err" >&5
2831   echo "configure: failed program was:" >&5
2832   cat conftest.$ac_ext >&5
2833   rm -rf conftest*
2834   eval "ac_cv_header_$ac_safe=no"
2835 fi
2836 rm -f conftest*
2837 fi
2838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2839   echo "$ac_t""yes" 1>&6
2840   has_libio=yes
2841 else
2842   echo "$ac_t""no" 1>&6
2843 has_libio=no
2844 fi
2845
2846
2847       # Need to check and see what version of glibc is being used. If
2848       # it's not glibc-2.2 or higher, then we'll need to go ahead and
2849       # compile most of libio for linux systems.
2850       if test x$has_libio = x"yes"; then
2851         case "$target" in
2852           *-*-linux*)
2853               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2854 echo "configure:2855: checking for glibc version >= 2.2" >&5
2855               cat > conftest.$ac_ext <<EOF
2856 #line 2857 "configure"
2857 #include "confdefs.h"
2858
2859             #include <features.h>
2860               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2861                     ok
2862               #endif
2863               
2864 EOF
2865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2866   egrep "ok" >/dev/null 2>&1; then
2867   rm -rf conftest*
2868   glibc_satisfactory=yes
2869 else
2870   rm -rf conftest*
2871   glibc_satisfactory=no
2872 fi
2873 rm -f conftest*
2874
2875               echo "$ac_t""$glibc_satisfactory" 1>&6
2876             ;;
2877         esac
2878
2879         # XXX at the moment, admit defeat and force the recompilation
2880         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2881         glibc_satisfactory=no
2882
2883         if test x$glibc_satisfactory = x"yes"; then
2884            need_libio=no
2885            need_wlibio=no
2886         else
2887            need_libio=yes
2888            # bkoz XXX need to add checks to enable this
2889            # pme XXX here's a first pass at such a check
2890            if test x$enable_c_mbchar != xno; then
2891               need_wlibio=yes
2892            else
2893               need_wlibio=no
2894            fi
2895         fi
2896
2897       else
2898          # Using libio, but <libio.h> doesn't exist on the target system. . .
2899          need_libio=yes
2900          # bkoz XXX need to add checks to enable this
2901          # pme XXX here's a first pass at such a check
2902          if test x$enable_c_mbchar != xno; then
2903              need_wlibio=yes
2904          else
2905              need_wlibio=no
2906          fi
2907       fi
2908       ;;
2909     xstdio | x | xno | xnone | xyes)
2910       # default
2911       CSTDIO_H=config/io/c_io_stdio.h
2912       BASIC_FILE_H=config/io/basic_file_stdio.h
2913       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2914       echo "$ac_t""stdio" 1>&6
2915
2916       # We're not using stdio.
2917       need_libio=no
2918       need_wlibio=no
2919       ;;
2920     *)
2921       echo "$enable_cstdio is an unknown io package" 1>&2
2922       exit 1
2923       ;;
2924   esac
2925   
2926   
2927   
2928
2929   # 2000-08-04 bkoz hack
2930   CCODECVT_C=config/io/c_io_libio_codecvt.c
2931   
2932   # 2000-08-04 bkoz hack
2933
2934   
2935
2936 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2937   GLIBCPP_BUILD_LIBIO_TRUE=
2938   GLIBCPP_BUILD_LIBIO_FALSE='#'
2939 else
2940   GLIBCPP_BUILD_LIBIO_TRUE='#'
2941   GLIBCPP_BUILD_LIBIO_FALSE=
2942 fi
2943   
2944
2945 if test "$need_libio" = yes; then
2946   GLIBCPP_NEED_LIBIO_TRUE=
2947   GLIBCPP_NEED_LIBIO_FALSE='#'
2948 else
2949   GLIBCPP_NEED_LIBIO_TRUE='#'
2950   GLIBCPP_NEED_LIBIO_FALSE=
2951 fi
2952   
2953
2954 if test "$need_wlibio" = yes; then
2955   GLIBCPP_NEED_WLIBIO_TRUE=
2956   GLIBCPP_NEED_WLIBIO_FALSE='#'
2957 else
2958   GLIBCPP_NEED_WLIBIO_TRUE='#'
2959   GLIBCPP_NEED_WLIBIO_FALSE=
2960 fi
2961   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2962     libio_la=../libio/libio.la
2963   else
2964     libio_la=
2965   fi
2966   
2967
2968
2969   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2970 echo "configure:2971: checking for clocale to use" >&5
2971   # Check whether --enable-clocale or --disable-clocale was given.
2972 if test "${enable_clocale+set}" = set; then
2973   enableval="$enable_clocale"
2974   if test x$enable_clocale = xno; then
2975      enable_clocale=no
2976   fi
2977 else
2978   enable_clocale=no
2979 fi
2980
2981
2982   enable_clocale_flag=$enable_clocale
2983
2984       if test x$enable_clocale_flag = xno; then
2985     case x${target_os} in
2986       xlinux* | xgnu*)
2987         cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2990
2991         #include <features.h>
2992         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2993           _GLIBCPP_ok
2994         #endif
2995         
2996 EOF
2997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2998   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2999   rm -rf conftest*
3000   enable_clocale_flag=gnu
3001 else
3002   rm -rf conftest*
3003   enable_clocale_flag=generic
3004 fi
3005 rm -f conftest*
3006
3007
3008         # Test for bugs early in glibc-2.2.x series
3009         if test x$enable_clocale_flag = xgnu; then
3010           if test "$cross_compiling" = yes; then
3011   enable_clocale_flag=generic
3012 else
3013   cat > conftest.$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3016
3017           #define _GNU_SOURCE 1
3018           #include <locale.h>
3019           #include <string.h>
3020           #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3021           extern __typeof(newlocale) __newlocale;
3022           extern __typeof(duplocale) __duplocale;
3023           extern __typeof(strcoll_l) __strcoll_l;
3024           #endif
3025           int main()
3026           {
3027             const char __one[] = "Äuglein Augmen";
3028             const char __two[] = "Äuglein";
3029             int i;
3030             int j;
3031             __locale_t  loc;
3032             __locale_t  loc_dup;
3033             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3034             loc_dup = __duplocale(loc);
3035             i = __strcoll_l(__one, __two, loc);
3036             j = __strcoll_l(__one, __two, loc_dup);
3037             return 0;
3038           }
3039           
3040 EOF
3041 if { (eval echo configure:3042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3042 then
3043   enable_clocale_flag=gnu
3044 else
3045   echo "configure: failed program was:" >&5
3046   cat conftest.$ac_ext >&5
3047   rm -fr conftest*
3048   enable_clocale_flag=generic
3049 fi
3050 rm -fr conftest*
3051 fi
3052
3053         fi
3054
3055         # ... at some point put __strxfrm_l tests in as well.
3056         ;;
3057       *)
3058         enable_clocale_flag=generic
3059         ;;
3060     esac
3061   fi
3062
3063     # Check whether --enable-nls or --disable-nls was given.
3064 if test "${enable_nls+set}" = set; then
3065   enableval="$enable_nls"
3066   :
3067 else
3068   enable_nls=yes
3069 fi
3070
3071   USE_NLS=no
3072
3073     case x${enable_clocale_flag} in
3074     xgeneric)
3075       echo "$ac_t""generic" 1>&6
3076
3077       CLOCALE_H=config/locale/generic/c_locale.h
3078       CLOCALE_CC=config/locale/generic/c_locale.cc
3079       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3080       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3081       CCOLLATE_CC=config/locale/generic/collate_members.cc
3082       CCTYPE_CC=config/locale/generic/ctype_members.cc
3083       CMESSAGES_H=config/locale/generic/messages_members.h
3084       CMESSAGES_CC=config/locale/generic/messages_members.cc
3085       CMONEY_CC=config/locale/generic/monetary_members.cc
3086       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3087       CTIME_H=config/locale/generic/time_members.h
3088       CTIME_CC=config/locale/generic/time_members.cc
3089       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3090       ;;
3091     xgnu)
3092       echo "$ac_t""gnu" 1>&6
3093
3094       # Declare intention to use gettext, and add support for specific
3095       # languages.
3096       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3097       ALL_LINGUAS="de fr"
3098
3099       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3100       # Extract the first word of "msgfmt", so it can be a program name with args.
3101 set dummy msgfmt; ac_word=$2
3102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3103 echo "configure:3104: checking for $ac_word" >&5
3104 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3105   echo $ac_n "(cached) $ac_c" 1>&6
3106 else
3107   if test -n "$check_msgfmt"; then
3108   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3109 else
3110   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3111   ac_dummy="$PATH"
3112   for ac_dir in $ac_dummy; do
3113     test -z "$ac_dir" && ac_dir=.
3114     if test -f $ac_dir/$ac_word; then
3115       ac_cv_prog_check_msgfmt="yes"
3116       break
3117     fi
3118   done
3119   IFS="$ac_save_ifs"
3120   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3121 fi
3122 fi
3123 check_msgfmt="$ac_cv_prog_check_msgfmt"
3124 if test -n "$check_msgfmt"; then
3125   echo "$ac_t""$check_msgfmt" 1>&6
3126 else
3127   echo "$ac_t""no" 1>&6
3128 fi
3129
3130       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3131         USE_NLS=yes
3132       fi
3133       # Export the build objects.
3134       for ling in $ALL_LINGUAS; do \
3135         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3136         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3137       done
3138       
3139       
3140
3141       CLOCALE_H=config/locale/gnu/c_locale.h
3142       CLOCALE_CC=config/locale/gnu/c_locale.cc
3143       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3144       CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3145       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3146       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3147       CMESSAGES_H=config/locale/gnu/messages_members.h
3148       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3149       CMONEY_CC=config/locale/gnu/monetary_members.cc
3150       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3151       CTIME_H=config/locale/gnu/time_members.h
3152       CTIME_CC=config/locale/gnu/time_members.cc
3153       CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3154       ;;
3155     xieee_1003.1-2001)
3156       echo "$ac_t""generic" 1>&6
3157
3158       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3159       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3160       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3161       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3162       CCOLLATE_CC=config/locale/generic/collate_members.cc
3163       CCTYPE_CC=config/locale/generic/ctype_members.cc
3164       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3165       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3166       CMONEY_CC=config/locale/generic/monetary_members.cc
3167       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3168       CTIME_H=config/locale/generic/time_members.h
3169       CTIME_CC=config/locale/generic/time_members.cc
3170       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3171       ;;
3172     *)
3173       echo "$enable_clocale is an unknown locale package" 1>&2
3174       exit 1
3175       ;;
3176   esac
3177
3178   # This is where the testsuite looks for locale catalogs, using the
3179   # -DLOCALEDIR define during testsuite compilation.
3180   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3181   
3182
3183   
3184   
3185   
3186   
3187   
3188   
3189   
3190   
3191   
3192   
3193   
3194   
3195   
3196   
3197
3198 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3199 echo "configure:3200: checking for c header strategy to use" >&5
3200 # Check whether --enable-cheaders or --disable-cheaders was given.
3201 if test "${enable_cheaders+set}" = set; then
3202   enableval="$enable_cheaders"
3203   
3204   case "$enableval" in
3205    c)
3206         enable_cheaders=c
3207         ;;
3208    c_std)
3209         enable_cheaders=c_std
3210         ;;
3211    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3212         ;;
3213   esac
3214 else
3215   enable_cheaders=c_std
3216 fi
3217
3218   echo "$ac_t""$enable_cheaders" 1>&6
3219
3220     case "$enable_cheaders" in
3221     c_std)
3222         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3223         ;;
3224     c)
3225         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3226         ;;
3227   esac
3228
3229   
3230   
3231
3232 if test "$enable_cheaders" = c; then
3233   GLIBCPP_C_HEADERS_C_TRUE=
3234   GLIBCPP_C_HEADERS_C_FALSE='#'
3235 else
3236   GLIBCPP_C_HEADERS_C_TRUE='#'
3237   GLIBCPP_C_HEADERS_C_FALSE=
3238 fi
3239   
3240
3241 if test "$enable_cheaders" = c_std; then
3242   GLIBCPP_C_HEADERS_C_STD_TRUE=
3243   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3244 else
3245   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3246   GLIBCPP_C_HEADERS_C_STD_FALSE=
3247 fi
3248   
3249
3250 if test "$c_compatibility" = yes; then
3251   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3252   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3253 else
3254   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3255   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3256 fi
3257
3258 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3259 if test "${enable_c_mbchar+set}" = set; then
3260   enableval="$enable_c_mbchar"
3261   case "$enableval" in
3262  yes) enable_c_mbchar=yes ;;
3263  no)  enable_c_mbchar=no ;;
3264  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3265  esac
3266 else
3267   enable_c_mbchar=yes
3268 fi
3269
3270   
3271   # Check whether --enable-c99 or --disable-c99 was given.
3272 if test "${enable_c99+set}" = set; then
3273   enableval="$enable_c99"
3274     case "$enableval" in
3275    yes) enable_c99=yes ;;
3276    no)  enable_c99=no ;;
3277    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3278    esac
3279 else
3280   enable_c99=yes
3281 fi
3282
3283   
3284   ac_ext=C
3285 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3286 ac_cpp='$CXXCPP $CPPFLAGS'
3287 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3288 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3289 cross_compiling=$ac_cv_prog_cxx_cross
3290
3291
3292   # Check for the existence of <math.h> functions used if C99 is enabled.
3293   ac_c99_math=yes;
3294   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3295 echo "configure:3296: checking for ISO C99 support in <math.h>" >&5
3296   cat > conftest.$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3299 #include <math.h>
3300 int main() {
3301 fpclassify(0.0);
3302 ; return 0; }
3303 EOF
3304 if { (eval echo configure:3305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3305   :
3306 else
3307   echo "configure: failed program was:" >&5
3308   cat conftest.$ac_ext >&5
3309   rm -rf conftest*
3310   ac_c99_math=no
3311 fi
3312 rm -f conftest*
3313   cat > conftest.$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 #include <math.h>
3317 int main() {
3318 isfinite(0.0);
3319 ; return 0; }
3320 EOF
3321 if { (eval echo configure:3322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3322   :
3323 else
3324   echo "configure: failed program was:" >&5
3325   cat conftest.$ac_ext >&5
3326   rm -rf conftest*
3327   ac_c99_math=no
3328 fi
3329 rm -f conftest*
3330   cat > conftest.$ac_ext <<EOF
3331 #line 3332 "configure"
3332 #include "confdefs.h"
3333 #include <math.h>
3334 int main() {
3335 isinf(0.0);
3336 ; return 0; }
3337 EOF
3338 if { (eval echo configure:3339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3339   :
3340 else
3341   echo "configure: failed program was:" >&5
3342   cat conftest.$ac_ext >&5
3343   rm -rf conftest*
3344   ac_c99_math=no
3345 fi
3346 rm -f conftest*
3347   cat > conftest.$ac_ext <<EOF
3348 #line 3349 "configure"
3349 #include "confdefs.h"
3350 #include <math.h>
3351 int main() {
3352 isnan(0.0);
3353 ; return 0; }
3354 EOF
3355 if { (eval echo configure:3356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3356   :
3357 else
3358   echo "configure: failed program was:" >&5
3359   cat conftest.$ac_ext >&5
3360   rm -rf conftest*
3361   ac_c99_math=no
3362 fi
3363 rm -f conftest*
3364   cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 #include <math.h>
3368 int main() {
3369 isnormal(0.0);
3370 ; return 0; }
3371 EOF
3372 if { (eval echo configure:3373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3373   :
3374 else
3375   echo "configure: failed program was:" >&5
3376   cat conftest.$ac_ext >&5
3377   rm -rf conftest*
3378   ac_c99_math=no
3379 fi
3380 rm -f conftest*
3381   cat > conftest.$ac_ext <<EOF
3382 #line 3383 "configure"
3383 #include "confdefs.h"
3384 #include <math.h>
3385 int main() {
3386 signbit(0.0);
3387 ; return 0; }
3388 EOF
3389 if { (eval echo configure:3390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3390   :
3391 else
3392   echo "configure: failed program was:" >&5
3393   cat conftest.$ac_ext >&5
3394   rm -rf conftest*
3395   ac_c99_math=no
3396 fi
3397 rm -f conftest*
3398   cat > conftest.$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3401 #include <math.h>
3402 int main() {
3403 isgreater(0.0,0.0);
3404 ; return 0; }
3405 EOF
3406 if { (eval echo configure:3407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3407   :
3408 else
3409   echo "configure: failed program was:" >&5
3410   cat conftest.$ac_ext >&5
3411   rm -rf conftest*
3412   ac_c99_math=no
3413 fi
3414 rm -f conftest*
3415   cat > conftest.$ac_ext <<EOF
3416 #line 3417 "configure"
3417 #include "confdefs.h"
3418 #include <math.h>
3419 int main() {
3420 isgreaterequal(0.0,0.0);
3421 ; return 0; }
3422 EOF
3423 if { (eval echo configure:3424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3424   :
3425 else
3426   echo "configure: failed program was:" >&5
3427   cat conftest.$ac_ext >&5
3428   rm -rf conftest*
3429   ac_c99_math=no
3430 fi
3431 rm -f conftest*
3432   cat > conftest.$ac_ext <<EOF
3433 #line 3434 "configure"
3434 #include "confdefs.h"
3435 #include <math.h>
3436 int main() {
3437 isless(0.0,0.0);
3438 ; return 0; }
3439 EOF
3440 if { (eval echo configure:3441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3441   :
3442 else
3443   echo "configure: failed program was:" >&5
3444   cat conftest.$ac_ext >&5
3445   rm -rf conftest*
3446   ac_c99_math=no
3447 fi
3448 rm -f conftest*
3449   cat > conftest.$ac_ext <<EOF
3450 #line 3451 "configure"
3451 #include "confdefs.h"
3452 #include <math.h>
3453 int main() {
3454 islessequal(0.0,0.0);
3455 ; return 0; }
3456 EOF
3457 if { (eval echo configure:3458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3458   :
3459 else
3460   echo "configure: failed program was:" >&5
3461   cat conftest.$ac_ext >&5
3462   rm -rf conftest*
3463   ac_c99_math=no
3464 fi
3465 rm -f conftest*
3466   cat > conftest.$ac_ext <<EOF
3467 #line 3468 "configure"
3468 #include "confdefs.h"
3469 #include <math.h>
3470 int main() {
3471 islessgreater(0.0,0.0);
3472 ; return 0; }
3473 EOF
3474 if { (eval echo configure:3475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3475   :
3476 else
3477   echo "configure: failed program was:" >&5
3478   cat conftest.$ac_ext >&5
3479   rm -rf conftest*
3480   ac_c99_math=no
3481 fi
3482 rm -f conftest*
3483   cat > conftest.$ac_ext <<EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3486 #include <math.h>
3487 int main() {
3488 isunordered(0.0,0.0);
3489 ; return 0; }
3490 EOF
3491 if { (eval echo configure:3492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3492   :
3493 else
3494   echo "configure: failed program was:" >&5
3495   cat conftest.$ac_ext >&5
3496   rm -rf conftest*
3497   ac_c99_math=no
3498 fi
3499 rm -f conftest*
3500   echo "$ac_t""$ac_c99_math" 1>&6
3501
3502   # Check for the existence in <stdio.h> of vscanf, et. al.
3503   ac_c99_stdio=yes;
3504   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3505 echo "configure:3506: checking for ISO C99 support in <stdio.h>" >&5
3506   cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3509 #include <stdio.h>
3510 int main() {
3511 snprintf("12", 0, "%i");
3512 ; return 0; }
3513 EOF
3514 if { (eval echo configure:3515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3515   :
3516 else
3517   echo "configure: failed program was:" >&5
3518   cat conftest.$ac_ext >&5
3519   rm -rf conftest*
3520   ac_c99_stdio=no
3521 fi
3522 rm -f conftest*
3523   cat > conftest.$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3526 #include <stdio.h>
3527                   #include <stdarg.h>
3528                   void foo(char* fmt, ...)
3529                   {va_list args; va_start(args, fmt);
3530                   vfscanf(stderr, "%i", args);}
3531 int main() {
3532
3533 ; return 0; }
3534 EOF
3535 if { (eval echo configure:3536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3536   :
3537 else
3538   echo "configure: failed program was:" >&5
3539   cat conftest.$ac_ext >&5
3540   rm -rf conftest*
3541   ac_c99_stdio=no
3542 fi
3543 rm -f conftest*
3544   cat > conftest.$ac_ext <<EOF
3545 #line 3546 "configure"
3546 #include "confdefs.h"
3547 #include <stdio.h>
3548                   #include <stdarg.h>
3549                   void foo(char* fmt, ...)
3550                   {va_list args; va_start(args, fmt);
3551                   vscanf("%i", args);}
3552 int main() {
3553
3554 ; return 0; }
3555 EOF
3556 if { (eval echo configure:3557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3557   :
3558 else
3559   echo "configure: failed program was:" >&5
3560   cat conftest.$ac_ext >&5
3561   rm -rf conftest*
3562   ac_c99_stdio=no
3563 fi
3564 rm -f conftest*
3565   cat > conftest.$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3568 #include <stdio.h>
3569                   #include <stdarg.h>
3570                   void foo(char* fmt, ...)
3571                   {va_list args; va_start(args, fmt);
3572                   vsnprintf(fmt, 0, "%i", args);}
3573 int main() {
3574
3575 ; return 0; }
3576 EOF
3577 if { (eval echo configure:3578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3578   :
3579 else
3580   echo "configure: failed program was:" >&5
3581   cat conftest.$ac_ext >&5
3582   rm -rf conftest*
3583   ac_c99_stdio=no
3584 fi
3585 rm -f conftest*
3586   cat > conftest.$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3589 #include <stdio.h>
3590                   #include <stdarg.h>
3591                   void foo(char* fmt, ...)
3592                   {va_list args; va_start(args, fmt);
3593                   vsscanf(fmt, "%i", args);}
3594 int main() {
3595
3596 ; return 0; }
3597 EOF
3598 if { (eval echo configure:3599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3599   :
3600 else
3601   echo "configure: failed program was:" >&5
3602   cat conftest.$ac_ext >&5
3603   rm -rf conftest*
3604   ac_c99_stdio=no
3605 fi
3606 rm -f conftest*
3607   echo "$ac_t""$ac_c99_stdio" 1>&6
3608
3609   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3610   ac_c99_stdlib=yes;
3611   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3612 echo "configure:3613: checking for lldiv_t declaration" >&5
3613   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3614   echo $ac_n "(cached) $ac_c" 1>&6
3615 else
3616   
3617   cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3620 #include <stdlib.h>
3621 int main() {
3622  lldiv_t mydivt;
3623 ; return 0; }
3624 EOF
3625 if { (eval echo configure:3626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3626   rm -rf conftest*
3627   ac_c99_lldiv_t=yes
3628 else
3629   echo "configure: failed program was:" >&5
3630   cat conftest.$ac_ext >&5
3631   rm -rf conftest*
3632   ac_c99_lldiv_t=no
3633 fi
3634 rm -f conftest*
3635   
3636 fi
3637
3638   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3639
3640   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3641 echo "configure:3642: checking for ISO C99 support in <stdlib.h>" >&5
3642   cat > conftest.$ac_ext <<EOF
3643 #line 3644 "configure"
3644 #include "confdefs.h"
3645 #include <stdlib.h>
3646 int main() {
3647 char* tmp; strtof("gnu", &tmp);
3648 ; return 0; }
3649 EOF
3650 if { (eval echo configure:3651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3651   :
3652 else
3653   echo "configure: failed program was:" >&5
3654   cat conftest.$ac_ext >&5
3655   rm -rf conftest*
3656   ac_c99_stdlib=no
3657 fi
3658 rm -f conftest*
3659   cat > conftest.$ac_ext <<EOF
3660 #line 3661 "configure"
3661 #include "confdefs.h"
3662 #include <stdlib.h>
3663 int main() {
3664 char* tmp; strtold("gnu", &tmp);
3665 ; return 0; }
3666 EOF
3667 if { (eval echo configure:3668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3668   :
3669 else
3670   echo "configure: failed program was:" >&5
3671   cat conftest.$ac_ext >&5
3672   rm -rf conftest*
3673   ac_c99_stdlib=no
3674 fi
3675 rm -f conftest*
3676   cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3679 #include <stdlib.h>
3680 int main() {
3681 llabs(10);
3682 ; return 0; }
3683 EOF
3684 if { (eval echo configure:3685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3685   :
3686 else
3687   echo "configure: failed program was:" >&5
3688   cat conftest.$ac_ext >&5
3689   rm -rf conftest*
3690   ac_c99_stdlib=no
3691 fi
3692 rm -f conftest*
3693   cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3696 #include <stdlib.h>
3697 int main() {
3698 lldiv(10,1);
3699 ; return 0; }
3700 EOF
3701 if { (eval echo configure:3702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3702   :
3703 else
3704   echo "configure: failed program was:" >&5
3705   cat conftest.$ac_ext >&5
3706   rm -rf conftest*
3707   ac_c99_stdlib=no
3708 fi
3709 rm -f conftest*
3710   cat > conftest.$ac_ext <<EOF
3711 #line 3712 "configure"
3712 #include "confdefs.h"
3713 #include <stdlib.h>
3714 int main() {
3715 atoll("10");
3716 ; return 0; }
3717 EOF
3718 if { (eval echo configure:3719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3719   :
3720 else
3721   echo "configure: failed program was:" >&5
3722   cat conftest.$ac_ext >&5
3723   rm -rf conftest*
3724   ac_c99_stdlib=no
3725 fi
3726 rm -f conftest*
3727   cat > conftest.$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 #include <stdlib.h>
3731 int main() {
3732 _Exit(0);
3733 ; return 0; }
3734 EOF
3735 if { (eval echo configure:3736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3736   :
3737 else
3738   echo "configure: failed program was:" >&5
3739   cat conftest.$ac_ext >&5
3740   rm -rf conftest*
3741   ac_c99_stdlib=no
3742 fi
3743 rm -f conftest*
3744   if test x"$ac_c99_lldiv_t" = x"no"; then
3745     ac_c99_stdlib=no;
3746   fi;
3747   echo "$ac_t""$ac_c99_stdlib" 1>&6
3748
3749   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3750   # XXX the wchar.h checks should be rolled into the general C99 bits.
3751   ac_c99_wchar=yes;
3752   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3753 echo "configure:3754: checking for additional ISO C99 support in <wchar.h>" >&5
3754   cat > conftest.$ac_ext <<EOF
3755 #line 3756 "configure"
3756 #include "confdefs.h"
3757 #include <wchar.h>
3758 int main() {
3759 wcstold(L"10.0", NULL);
3760 ; return 0; }
3761 EOF
3762 if { (eval echo configure:3763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3763   :
3764 else
3765   echo "configure: failed program was:" >&5
3766   cat conftest.$ac_ext >&5
3767   rm -rf conftest*
3768   ac_c99_wchar=no
3769 fi
3770 rm -f conftest*
3771   cat > conftest.$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3774 #include <wchar.h>
3775 int main() {
3776 wcstoll(L"10", NULL, 10);
3777 ; return 0; }
3778 EOF
3779 if { (eval echo configure:3780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3780   :
3781 else
3782   echo "configure: failed program was:" >&5
3783   cat conftest.$ac_ext >&5
3784   rm -rf conftest*
3785   ac_c99_wchar=no
3786 fi
3787 rm -f conftest*
3788   cat > conftest.$ac_ext <<EOF
3789 #line 3790 "configure"
3790 #include "confdefs.h"
3791 #include <wchar.h>
3792 int main() {
3793 wcstoull(L"10", NULL, 10);
3794 ; return 0; }
3795 EOF
3796 if { (eval echo configure:3797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3797   :
3798 else
3799   echo "configure: failed program was:" >&5
3800   cat conftest.$ac_ext >&5
3801   rm -rf conftest*
3802   ac_c99_wchar=no
3803 fi
3804 rm -f conftest*
3805   echo "$ac_t""$ac_c99_wchar" 1>&6
3806
3807   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3808 echo "configure:3809: checking for enabled ISO C99 support" >&5
3809   if test x"$ac_c99_math" = x"no" ||
3810      test x"$ac_c99_stdio" = x"no" ||
3811      test x"$ac_c99_stdlib" = x"no" ||
3812      test x"$ac_c99_wchar" = x"no"; then
3813     enable_c99=no;
3814   fi;
3815   echo "$ac_t""$enable_c99" 1>&6
3816
3817   # Option parsed, now set things appropriately
3818   if test x"$enable_c99" = x"yes"; then
3819     cat >> confdefs.h <<\EOF
3820 #define _GLIBCPP_USE_C99 1
3821 EOF
3822
3823   fi
3824
3825   ac_ext=c
3826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3827 ac_cpp='$CPP $CPPFLAGS'
3828 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3829 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3830 cross_compiling=$ac_cv_prog_cc_cross
3831
3832
3833   
3834   # Check whether --enable-long-long or --disable-long-long was given.
3835 if test "${enable_long_long+set}" = set; then
3836   enableval="$enable_long_long"
3837     case "$enableval" in
3838    yes) enable_long_long=yes ;;
3839    no)  enable_long_long=no ;;
3840    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3841    esac
3842 else
3843   enable_long_long=yes
3844 fi
3845
3846   
3847   ac_ext=C
3848 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3849 ac_cpp='$CXXCPP $CPPFLAGS'
3850 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3851 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3852 cross_compiling=$ac_cv_prog_cxx_cross
3853
3854
3855   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3856 echo "configure:3857: checking for enabled long long I/O support" >&5
3857   # iostreams require strtoll, strtoull to compile
3858   cat > conftest.$ac_ext <<EOF
3859 #line 3860 "configure"
3860 #include "confdefs.h"
3861 #include <stdlib.h>
3862 int main() {
3863 char* tmp; strtoll("gnu", &tmp, 10);
3864 ; return 0; }
3865 EOF
3866 if { (eval echo configure:3867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3867   :
3868 else
3869   echo "configure: failed program was:" >&5
3870   cat conftest.$ac_ext >&5
3871   rm -rf conftest*
3872   enable_long_long=no
3873 fi
3874 rm -f conftest*
3875   cat > conftest.$ac_ext <<EOF
3876 #line 3877 "configure"
3877 #include "confdefs.h"
3878 #include <stdlib.h>
3879 int main() {
3880 char* tmp; strtoull("gnu", &tmp, 10);
3881 ; return 0; }
3882 EOF
3883 if { (eval echo configure:3884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3884   :
3885 else
3886   echo "configure: failed program was:" >&5
3887   cat conftest.$ac_ext >&5
3888   rm -rf conftest*
3889   enable_long_long=no
3890 fi
3891 rm -f conftest*
3892
3893   # Option parsed, now set things appropriately
3894   if test x"$enable_long_long" = xyes; then
3895     cat >> confdefs.h <<\EOF
3896 #define _GLIBCPP_USE_LONG_LONG 1
3897 EOF
3898
3899   fi
3900   echo "$ac_t""$enable_long_long" 1>&6
3901
3902   ac_ext=c
3903 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3904 ac_cpp='$CPP $CPPFLAGS'
3905 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3906 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3907 cross_compiling=$ac_cv_prog_cc_cross
3908
3909
3910
3911   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3912 echo "configure:3913: checking for thread model used by GCC" >&5
3913   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3914   echo "$ac_t""$target_thread_file" 1>&6
3915
3916   if test $target_thread_file != single; then
3917     cat >> confdefs.h <<\EOF
3918 #define HAVE_GTHR_DEFAULT 1
3919 EOF
3920
3921     cat >> confdefs.h <<\EOF
3922 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3923 EOF
3924
3925   fi
3926
3927   glibcpp_thread_h=gthr-$target_thread_file.h
3928   
3929
3930
3931   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3932 echo "configure:3933: checking for exception model to use" >&5
3933   
3934   ac_ext=C
3935 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3936 ac_cpp='$CXXCPP $CPPFLAGS'
3937 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3938 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3939 cross_compiling=$ac_cv_prog_cxx_cross
3940
3941   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3942 if test "${enable_sjlj_exceptions+set}" = set; then
3943   enableval="$enable_sjlj_exceptions"
3944   :
3945 else
3946                        cat > conftest.$ac_ext << EOF
3947 #line 3948 "configure"
3948 struct S { ~S(); };
3949 void bar();
3950 void foo()
3951 {
3952   S s;
3953   bar();
3954 }
3955 EOF
3956    old_CXXFLAGS="$CXXFLAGS"
3957    CXXFLAGS=-S
3958    if { (eval echo configure:3959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3959      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3960        enable_sjlj_exceptions=yes
3961      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3962        enable_sjlj_exceptions=no
3963      fi
3964    fi
3965    CXXFLAGS="$old_CXXFLAGS"
3966    rm -f conftest*
3967 fi
3968
3969    if test x$enable_sjlj_exceptions = xyes; then
3970      cat >> confdefs.h <<\EOF
3971 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3972 EOF
3973
3974      ac_exception_model_name=sjlj
3975    elif test x$enable_sjlj_exceptions = xno; then
3976      ac_exception_model_name="call frame"
3977    else
3978      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3979    fi
3980    ac_ext=c
3981 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3984 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3985 cross_compiling=$ac_cv_prog_cc_cross
3986
3987    echo "$ac_t""$ac_exception_model_name" 1>&6
3988
3989
3990   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
3991 echo "configure:3992: checking for use of libunwind" >&5
3992   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
3993 if test "${enable_libunwind_exceptions+set}" = set; then
3994   enableval="$enable_libunwind_exceptions"
3995   use_libunwind_exceptions=$enableval
3996 else
3997   use_libunwind_exceptions=no
3998 fi
3999
4000   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4001     if test x"$use_libunwind_exceptions" = xyes; then
4002     LIBUNWIND_FLAG="-lunwind"
4003   else
4004     LIBUNWIND_FLAG=""
4005   fi
4006   
4007
4008 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4009 if test "${enable_concept_checks+set}" = set; then
4010   enableval="$enable_concept_checks"
4011   case "$enableval" in
4012  yes) enable_concept_checks=yes ;;
4013  no)  enable_concept_checks=no ;;
4014  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4015  esac
4016 else
4017   enable_concept_checks=no
4018 fi
4019 if test x"$enable_concept_checks" = xyes; then
4020   cat >> confdefs.h <<\EOF
4021 #define _GLIBCPP_CONCEPT_CHECKS 1
4022 EOF
4023
4024 fi
4025
4026 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4027 echo "configure:4028: checking for extra compiler flags for building" >&5
4028 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4029 if test "${enable_cxx_flags+set}" = set; then
4030   enableval="$enable_cxx_flags"
4031   case "x$enable_cxx_flags" in
4032   xyes)
4033     { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4034   xno | xnone | x)
4035     enable_cxx_flags='' ;;
4036   *)
4037     enable_cxx_flags="$enableval" ;;
4038 esac
4039 else
4040   enable_cxx_flags=
4041 fi
4042
4043
4044 if test -n "$enable_cxx_flags"; then
4045   for f in $enable_cxx_flags; do
4046     case "$f" in
4047       -fhonor-std)  ;;
4048       -*)  ;;
4049       *)   # and we're trying to pass /what/ exactly?
4050            { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4051     esac
4052   done
4053 fi
4054 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4055 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4056
4057
4058 # Check whether --enable-debug or --disable-debug was given.
4059 if test "${enable_debug+set}" = set; then
4060   enableval="$enable_debug"
4061   case "${enableval}" in
4062  yes) enable_debug=yes ;;
4063  no)  enable_debug=no ;;
4064  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4065  esac
4066 else
4067   enable_debug=no
4068 fi
4069 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4070 echo "configure:4071: checking for additional debug build" >&5
4071 echo "$ac_t""$enable_debug" 1>&6
4072
4073
4074 if test "$enable_debug" = yes; then
4075   GLIBCPP_BUILD_DEBUG_TRUE=
4076   GLIBCPP_BUILD_DEBUG_FALSE='#'
4077 else
4078   GLIBCPP_BUILD_DEBUG_TRUE='#'
4079   GLIBCPP_BUILD_DEBUG_FALSE=
4080 fi
4081
4082 # Check whether --enable-debug_flags or --disable-debug_flags was given.
4083 if test "${enable_debug_flags+set}" = set; then
4084   enableval="$enable_debug_flags"
4085   case "${enableval}" in
4086  none)  ;;
4087  -*) enable_debug_flags="${enableval}" ;;
4088  *)   { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4089  esac
4090 else
4091   enable_debug_flags=none
4092 fi
4093
4094 case x"$enable_debug" in
4095     xyes)
4096         case "$enable_debug_flags" in
4097           none)
4098             DEBUG_FLAGS="-g3 -O0";;
4099           -*) #valid input
4100             DEBUG_FLAGS="${enableval}"
4101         esac
4102         ;;
4103     xno)
4104         DEBUG_FLAGS=""
4105         ;;
4106 esac
4107
4108
4109 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4110 echo "configure:4111: checking for debug build flags" >&5
4111 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4112
4113
4114 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4115 for ac_hdr in string.h stdlib.h
4116 do
4117 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4119 echo "configure:4120: checking for $ac_hdr" >&5
4120 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4121   echo $ac_n "(cached) $ac_c" 1>&6
4122 else
4123   cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126 #include <$ac_hdr>
4127 EOF
4128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4129 { (eval echo configure:4130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4131 if test -z "$ac_err"; then
4132   rm -rf conftest*
4133   eval "ac_cv_header_$ac_safe=yes"
4134 else
4135   echo "$ac_err" >&5
4136   echo "configure: failed program was:" >&5
4137   cat conftest.$ac_ext >&5
4138   rm -rf conftest*
4139   eval "ac_cv_header_$ac_safe=no"
4140 fi
4141 rm -f conftest*
4142 fi
4143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4144   echo "$ac_t""yes" 1>&6
4145     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4146   cat >> confdefs.h <<EOF
4147 #define $ac_tr_hdr 1
4148 EOF
4149  
4150 else
4151   echo "$ac_t""no" 1>&6
4152 fi
4153 done
4154
4155
4156 # No surprises, no surprises...
4157 if test $ATOMICITYH = cpu/generic ; then
4158   echo "configure: warning: No native atomic operations are provided yet for this platform." 1>&2
4159   if test $target_thread_file = single; then
4160     echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4161     echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4162   else
4163     echo "configure: warning: They will be faked using a mutex." 1>&2
4164     echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4165   fi
4166 fi
4167
4168
4169 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4170
4171   # We are being configured with some form of cross compiler.
4172   GLIBCPP_IS_CROSS_COMPILING=1
4173
4174   # This lets us hard-code the functionality we know we'll have in the cross
4175   # target environment.  "Let" is a sugar-coated word placed on an especially
4176   # dull and tedious hack, actually.
4177   #
4178   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4179   # that involve linking, can't be used:
4180   #    "cannot open sim-crt0.o"
4181   #    "cannot open crt0.o"
4182   # etc.  All this is because there currently exists no unified, consistent
4183   # way for top level CC information to be passed down to target directories:
4184   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4185   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4186   # crosses can be removed.
4187
4188   # If Canadian cross, then don't pick up tools from the build directory.
4189   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4190   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4191     CANADIAN=yes
4192   else
4193     CANADIAN=no
4194   fi
4195
4196   # Construct crosses by hand, eliminating bits that need ld...
4197   # GLIBCPP_CHECK_COMPILER_FEATURES
4198   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4199   # GLIBCPP_CHECK_MATH_SUPPORT
4200
4201   case "$target" in
4202     *-linux*)
4203       os_include_dir="os/gnu-linux"
4204       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4205         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4206         fp.h locale.h float.h inttypes.h
4207 do
4208 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4209 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4210 echo "configure:4211: checking for $ac_hdr" >&5
4211 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4212   echo $ac_n "(cached) $ac_c" 1>&6
4213 else
4214   cat > conftest.$ac_ext <<EOF
4215 #line 4216 "configure"
4216 #include "confdefs.h"
4217 #include <$ac_hdr>
4218 EOF
4219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4220 { (eval echo configure:4221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4222 if test -z "$ac_err"; then
4223   rm -rf conftest*
4224   eval "ac_cv_header_$ac_safe=yes"
4225 else
4226   echo "$ac_err" >&5
4227   echo "configure: failed program was:" >&5
4228   cat conftest.$ac_ext >&5
4229   rm -rf conftest*
4230   eval "ac_cv_header_$ac_safe=no"
4231 fi
4232 rm -f conftest*
4233 fi
4234 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4235   echo "$ac_t""yes" 1>&6
4236     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4237   cat >> confdefs.h <<EOF
4238 #define $ac_tr_hdr 1
4239 EOF
4240  
4241 else
4242   echo "$ac_t""no" 1>&6
4243 fi
4244 done
4245
4246       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4247       
4248       
4249   # If we're not using GNU ld, then there's no point in even trying these
4250   # tests.  Check for that first.  We should have already tested for gld
4251   # by now (in libtool), but require it now just to be safe...
4252   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4253   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4254   
4255
4256   # The name set by libtool depends on the version of libtool.  Shame on us
4257   # for depending on an impl detail, but c'est la vie.  Older versions used
4258   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4259   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4260   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4261   # set (hence we're using an older libtool), then set it.
4262   if test x${with_gnu_ld+set} != xset; then
4263     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4264       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4265       with_gnu_ld=no
4266     else
4267       with_gnu_ld=$ac_cv_prog_gnu_ld
4268     fi
4269   fi
4270
4271   # Start by getting the version number.  I think the libtool test already
4272   # does some of this, but throws away the result.
4273   
4274   ldver=`$LD --version 2>/dev/null | head -1 | \
4275          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4276   
4277   glibcpp_gnu_ld_version=`echo $ldver | \
4278          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4279
4280   # Set --gc-sections.
4281   if test "$with_gnu_ld" = "notbroken"; then
4282     # GNU ld it is!  Joy and bunny rabbits!
4283
4284     # All these tests are for C++; save the language and the compiler flags.
4285     # Need to do this so that g++ won't try to link in libstdc++
4286     ac_test_CFLAGS="${CFLAGS+set}"
4287     ac_save_CFLAGS="$CFLAGS"
4288     CFLAGS='-x c++  -Wl,--gc-sections'
4289
4290     # Check for -Wl,--gc-sections
4291     # XXX This test is broken at the moment, as symbols required for
4292     # linking are now in libsupc++ (not built yet.....). In addition,
4293     # this test has cored on solaris in the past. In addition,
4294     # --gc-sections doesn't really work at the moment (keeps on discarding
4295     # used sections, first .eh_frame and now some of the glibc sections for
4296     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4297     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4298 echo "configure:4299: checking for ld that supports -Wl,--gc-sections" >&5
4299     if test "$cross_compiling" = yes; then
4300   ac_sectionLDflags=yes
4301 else
4302   cat > conftest.$ac_ext <<EOF
4303 #line 4304 "configure"
4304 #include "confdefs.h"
4305
4306      int main(void)
4307      {
4308        try { throw 1; }
4309        catch (...) { };
4310        return 0;
4311      }
4312     
4313 EOF
4314 if { (eval echo configure:4315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4315 then
4316   ac_sectionLDflags=yes
4317 else
4318   echo "configure: failed program was:" >&5
4319   cat conftest.$ac_ext >&5
4320   rm -fr conftest*
4321   ac_sectionLDflags=no
4322 fi
4323 rm -fr conftest*
4324 fi
4325
4326     if test "$ac_test_CFLAGS" = set; then
4327       CFLAGS="$ac_save_CFLAGS"
4328     else
4329       # this is the suspicious part
4330       CFLAGS=''
4331     fi
4332     if test "$ac_sectionLDflags" = "yes"; then
4333       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4334     fi
4335     echo "$ac_t""$ac_sectionLDflags" 1>&6
4336   fi
4337
4338   # Set linker optimization flags.
4339   if test x"$with_gnu_ld" = x"yes"; then
4340     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4341   fi
4342
4343   
4344   
4345
4346       
4347     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4348 echo "configure:4349: checking for main in -lm" >&5
4349 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4351   echo $ac_n "(cached) $ac_c" 1>&6
4352 else
4353   ac_save_LIBS="$LIBS"
4354 LIBS="-lm  $LIBS"
4355 cat > conftest.$ac_ext <<EOF
4356 #line 4357 "configure"
4357 #include "confdefs.h"
4358
4359 int main() {
4360 main()
4361 ; return 0; }
4362 EOF
4363 if { (eval echo configure:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4364   rm -rf conftest*
4365   eval "ac_cv_lib_$ac_lib_var=yes"
4366 else
4367   echo "configure: failed program was:" >&5
4368   cat conftest.$ac_ext >&5
4369   rm -rf conftest*
4370   eval "ac_cv_lib_$ac_lib_var=no"
4371 fi
4372 rm -f conftest*
4373 LIBS="$ac_save_LIBS"
4374
4375 fi
4376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4377   echo "$ac_t""yes" 1>&6
4378     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4379     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4380   cat >> confdefs.h <<EOF
4381 #define $ac_tr_lib 1
4382 EOF
4383
4384   LIBS="-lm $LIBS"
4385
4386 else
4387   echo "$ac_t""no" 1>&6
4388 fi
4389
4390   for ac_func in nan copysignf
4391 do
4392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4393 echo "configure:4394: checking for $ac_func" >&5
4394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4395   echo $ac_n "(cached) $ac_c" 1>&6
4396 else
4397   cat > conftest.$ac_ext <<EOF
4398 #line 4399 "configure"
4399 #include "confdefs.h"
4400 /* System header to define __stub macros and hopefully few prototypes,
4401     which can conflict with char $ac_func(); below.  */
4402 #include <assert.h>
4403 /* Override any gcc2 internal prototype to avoid an error.  */
4404 /* We use char because int might match the return type of a gcc2
4405     builtin and then its argument prototype would still apply.  */
4406 char $ac_func();
4407
4408 int main() {
4409
4410 /* The GNU C library defines this for functions which it implements
4411     to always fail with ENOSYS.  Some functions are actually named
4412     something starting with __ and the normal name is an alias.  */
4413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4414 choke me
4415 #else
4416 $ac_func();
4417 #endif
4418
4419 ; return 0; }
4420 EOF
4421 if { (eval echo configure:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4422   rm -rf conftest*
4423   eval "ac_cv_func_$ac_func=yes"
4424 else
4425   echo "configure: failed program was:" >&5
4426   cat conftest.$ac_ext >&5
4427   rm -rf conftest*
4428   eval "ac_cv_func_$ac_func=no"
4429 fi
4430 rm -f conftest*
4431 fi
4432
4433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4434   echo "$ac_t""yes" 1>&6
4435     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4436   cat >> confdefs.h <<EOF
4437 #define $ac_tr_func 1
4438 EOF
4439  
4440 else
4441   echo "$ac_t""no" 1>&6
4442 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4443 fi
4444 done
4445
4446
4447     for ac_func in __signbit
4448 do
4449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4450 echo "configure:4451: checking for $ac_func" >&5
4451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4452   echo $ac_n "(cached) $ac_c" 1>&6
4453 else
4454   cat > conftest.$ac_ext <<EOF
4455 #line 4456 "configure"
4456 #include "confdefs.h"
4457 /* System header to define __stub macros and hopefully few prototypes,
4458     which can conflict with char $ac_func(); below.  */
4459 #include <assert.h>
4460 /* Override any gcc2 internal prototype to avoid an error.  */
4461 /* We use char because int might match the return type of a gcc2
4462     builtin and then its argument prototype would still apply.  */
4463 char $ac_func();
4464
4465 int main() {
4466
4467 /* The GNU C library defines this for functions which it implements
4468     to always fail with ENOSYS.  Some functions are actually named
4469     something starting with __ and the normal name is an alias.  */
4470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4471 choke me
4472 #else
4473 $ac_func();
4474 #endif
4475
4476 ; return 0; }
4477 EOF
4478 if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4479   rm -rf conftest*
4480   eval "ac_cv_func_$ac_func=yes"
4481 else
4482   echo "configure: failed program was:" >&5
4483   cat conftest.$ac_ext >&5
4484   rm -rf conftest*
4485   eval "ac_cv_func_$ac_func=no"
4486 fi
4487 rm -f conftest*
4488 fi
4489
4490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4491   echo "$ac_t""yes" 1>&6
4492     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4493   cat >> confdefs.h <<EOF
4494 #define $ac_tr_func 1
4495 EOF
4496  
4497 else
4498   echo "$ac_t""no" 1>&6
4499 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4500 fi
4501 done
4502
4503   for ac_func in __signbitf
4504 do
4505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4506 echo "configure:4507: checking for $ac_func" >&5
4507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4508   echo $ac_n "(cached) $ac_c" 1>&6
4509 else
4510   cat > conftest.$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4513 /* System header to define __stub macros and hopefully few prototypes,
4514     which can conflict with char $ac_func(); below.  */
4515 #include <assert.h>
4516 /* Override any gcc2 internal prototype to avoid an error.  */
4517 /* We use char because int might match the return type of a gcc2
4518     builtin and then its argument prototype would still apply.  */
4519 char $ac_func();
4520
4521 int main() {
4522
4523 /* The GNU C library defines this for functions which it implements
4524     to always fail with ENOSYS.  Some functions are actually named
4525     something starting with __ and the normal name is an alias.  */
4526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4527 choke me
4528 #else
4529 $ac_func();
4530 #endif
4531
4532 ; return 0; }
4533 EOF
4534 if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4535   rm -rf conftest*
4536   eval "ac_cv_func_$ac_func=yes"
4537 else
4538   echo "configure: failed program was:" >&5
4539   cat conftest.$ac_ext >&5
4540   rm -rf conftest*
4541   eval "ac_cv_func_$ac_func=no"
4542 fi
4543 rm -f conftest*
4544 fi
4545
4546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4547   echo "$ac_t""yes" 1>&6
4548     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4549   cat >> confdefs.h <<EOF
4550 #define $ac_tr_func 1
4551 EOF
4552  
4553 else
4554   echo "$ac_t""no" 1>&6
4555 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4556 fi
4557 done
4558
4559
4560           if test x$ac_cv_func_copysignl = x"yes"; then
4561     for ac_func in __signbitl
4562 do
4563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4564 echo "configure:4565: checking for $ac_func" >&5
4565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4566   echo $ac_n "(cached) $ac_c" 1>&6
4567 else
4568   cat > conftest.$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4571 /* System header to define __stub macros and hopefully few prototypes,
4572     which can conflict with char $ac_func(); below.  */
4573 #include <assert.h>
4574 /* Override any gcc2 internal prototype to avoid an error.  */
4575 /* We use char because int might match the return type of a gcc2
4576     builtin and then its argument prototype would still apply.  */
4577 char $ac_func();
4578
4579 int main() {
4580
4581 /* The GNU C library defines this for functions which it implements
4582     to always fail with ENOSYS.  Some functions are actually named
4583     something starting with __ and the normal name is an alias.  */
4584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4585 choke me
4586 #else
4587 $ac_func();
4588 #endif
4589
4590 ; return 0; }
4591 EOF
4592 if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4593   rm -rf conftest*
4594   eval "ac_cv_func_$ac_func=yes"
4595 else
4596   echo "configure: failed program was:" >&5
4597   cat conftest.$ac_ext >&5
4598   rm -rf conftest*
4599   eval "ac_cv_func_$ac_func=no"
4600 fi
4601 rm -f conftest*
4602 fi
4603
4604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4605   echo "$ac_t""yes" 1>&6
4606     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4607   cat >> confdefs.h <<EOF
4608 #define $ac_tr_func 1
4609 EOF
4610  
4611 else
4612   echo "$ac_t""no" 1>&6
4613 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4614 fi
4615 done
4616
4617   fi
4618
4619   if test -n "$LIBMATHOBJS"; then
4620     need_libmath=yes
4621   fi
4622   
4623   
4624
4625 if test "$need_libmath" = yes; then
4626   GLIBCPP_BUILD_LIBMATH_TRUE=
4627   GLIBCPP_BUILD_LIBMATH_FALSE='#'
4628 else
4629   GLIBCPP_BUILD_LIBMATH_TRUE='#'
4630   GLIBCPP_BUILD_LIBMATH_FALSE=
4631 fi
4632
4633       
4634     enable_wchar_t=no
4635
4636       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4637 echo "configure:4638: checking for mbstate_t" >&5
4638   cat > conftest.$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4641 #include <wchar.h>
4642 int main() {
4643 mbstate_t teststate;
4644 ; return 0; }
4645 EOF
4646 if { (eval echo configure:4647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4647   rm -rf conftest*
4648   have_mbstate_t=yes
4649 else
4650   echo "configure: failed program was:" >&5
4651   cat conftest.$ac_ext >&5
4652   rm -rf conftest*
4653   have_mbstate_t=no
4654 fi
4655 rm -f conftest*
4656   echo "$ac_t""$have_mbstate_t" 1>&6
4657   if test x"$have_mbstate_t" = xyes; then
4658     cat >> confdefs.h <<\EOF
4659 #define HAVE_MBSTATE_T 1
4660 EOF
4661
4662   fi
4663
4664     for ac_hdr in wchar.h
4665 do
4666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4668 echo "configure:4669: checking for $ac_hdr" >&5
4669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4670   echo $ac_n "(cached) $ac_c" 1>&6
4671 else
4672   cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 #include <$ac_hdr>
4676 EOF
4677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4678 { (eval echo configure:4679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4680 if test -z "$ac_err"; then
4681   rm -rf conftest*
4682   eval "ac_cv_header_$ac_safe=yes"
4683 else
4684   echo "$ac_err" >&5
4685   echo "configure: failed program was:" >&5
4686   cat conftest.$ac_ext >&5
4687   rm -rf conftest*
4688   eval "ac_cv_header_$ac_safe=no"
4689 fi
4690 rm -f conftest*
4691 fi
4692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4693   echo "$ac_t""yes" 1>&6
4694     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4695   cat >> confdefs.h <<EOF
4696 #define $ac_tr_hdr 1
4697 EOF
4698  ac_has_wchar_h=yes
4699 else
4700   echo "$ac_t""no" 1>&6
4701 ac_has_wchar_h=no
4702 fi
4703 done
4704
4705   for ac_hdr in wctype.h
4706 do
4707 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4708 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4709 echo "configure:4710: checking for $ac_hdr" >&5
4710 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4711   echo $ac_n "(cached) $ac_c" 1>&6
4712 else
4713   cat > conftest.$ac_ext <<EOF
4714 #line 4715 "configure"
4715 #include "confdefs.h"
4716 #include <$ac_hdr>
4717 EOF
4718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4719 { (eval echo configure:4720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4721 if test -z "$ac_err"; then
4722   rm -rf conftest*
4723   eval "ac_cv_header_$ac_safe=yes"
4724 else
4725   echo "$ac_err" >&5
4726   echo "configure: failed program was:" >&5
4727   cat conftest.$ac_ext >&5
4728   rm -rf conftest*
4729   eval "ac_cv_header_$ac_safe=no"
4730 fi
4731 rm -f conftest*
4732 fi
4733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4734   echo "$ac_t""yes" 1>&6
4735     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4736   cat >> confdefs.h <<EOF
4737 #define $ac_tr_hdr 1
4738 EOF
4739  ac_has_wctype_h=yes
4740 else
4741   echo "$ac_t""no" 1>&6
4742 ac_has_wctype_h=no
4743 fi
4744 done
4745
4746
4747     if test x"$ac_has_wchar_h" = xyes &&
4748      test x"$ac_has_wctype_h" = xyes &&
4749      test x"$enable_c_mbchar" != xno; then
4750
4751             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4752 echo "configure:4753: checking for WCHAR_MIN and WCHAR_MAX" >&5
4753     cat > conftest.$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4756 #include <wchar.h>
4757 int main() {
4758 int i = WCHAR_MIN; int j = WCHAR_MAX;
4759 ; return 0; }
4760 EOF
4761 if { (eval echo configure:4762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4762   rm -rf conftest*
4763   has_wchar_minmax=yes
4764 else
4765   echo "configure: failed program was:" >&5
4766   cat conftest.$ac_ext >&5
4767   rm -rf conftest*
4768   has_wchar_minmax=no
4769 fi
4770 rm -f conftest*
4771     echo "$ac_t""$has_wchar_minmax" 1>&6
4772
4773             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4774 echo "configure:4775: checking for WEOF" >&5
4775     cat > conftest.$ac_ext <<EOF
4776 #line 4777 "configure"
4777 #include "confdefs.h"
4778
4779       #include <wchar.h>
4780       #include <stddef.h>
4781 int main() {
4782 wint_t i = WEOF;
4783 ; return 0; }
4784 EOF
4785 if { (eval echo configure:4786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4786   rm -rf conftest*
4787   has_weof=yes
4788 else
4789   echo "configure: failed program was:" >&5
4790   cat conftest.$ac_ext >&5
4791   rm -rf conftest*
4792   has_weof=no
4793 fi
4794 rm -f conftest*
4795     echo "$ac_t""$has_weof" 1>&6
4796
4797         ac_wfuncs=yes
4798     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4799 do
4800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4801 echo "configure:4802: checking for $ac_func" >&5
4802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4803   echo $ac_n "(cached) $ac_c" 1>&6
4804 else
4805   cat > conftest.$ac_ext <<EOF
4806 #line 4807 "configure"
4807 #include "confdefs.h"
4808 /* System header to define __stub macros and hopefully few prototypes,
4809     which can conflict with char $ac_func(); below.  */
4810 #include <assert.h>
4811 /* Override any gcc2 internal prototype to avoid an error.  */
4812 /* We use char because int might match the return type of a gcc2
4813     builtin and then its argument prototype would still apply.  */
4814 char $ac_func();
4815
4816 int main() {
4817
4818 /* The GNU C library defines this for functions which it implements
4819     to always fail with ENOSYS.  Some functions are actually named
4820     something starting with __ and the normal name is an alias.  */
4821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4822 choke me
4823 #else
4824 $ac_func();
4825 #endif
4826
4827 ; return 0; }
4828 EOF
4829 if { (eval echo configure:4830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4830   rm -rf conftest*
4831   eval "ac_cv_func_$ac_func=yes"
4832 else
4833   echo "configure: failed program was:" >&5
4834   cat conftest.$ac_ext >&5
4835   rm -rf conftest*
4836   eval "ac_cv_func_$ac_func=no"
4837 fi
4838 rm -f conftest*
4839 fi
4840
4841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4842   echo "$ac_t""yes" 1>&6
4843     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4844   cat >> confdefs.h <<EOF
4845 #define $ac_tr_func 1
4846 EOF
4847  
4848 else
4849   echo "$ac_t""no" 1>&6
4850 \
4851     ac_wfuncs=no
4852 fi
4853 done
4854
4855
4856         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
4857     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4858     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4859     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4860     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4861     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4862 do
4863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4864 echo "configure:4865: checking for $ac_func" >&5
4865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4866   echo $ac_n "(cached) $ac_c" 1>&6
4867 else
4868   cat > conftest.$ac_ext <<EOF
4869 #line 4870 "configure"
4870 #include "confdefs.h"
4871 /* System header to define __stub macros and hopefully few prototypes,
4872     which can conflict with char $ac_func(); below.  */
4873 #include <assert.h>
4874 /* Override any gcc2 internal prototype to avoid an error.  */
4875 /* We use char because int might match the return type of a gcc2
4876     builtin and then its argument prototype would still apply.  */
4877 char $ac_func();
4878
4879 int main() {
4880
4881 /* The GNU C library defines this for functions which it implements
4882     to always fail with ENOSYS.  Some functions are actually named
4883     something starting with __ and the normal name is an alias.  */
4884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4885 choke me
4886 #else
4887 $ac_func();
4888 #endif
4889
4890 ; return 0; }
4891 EOF
4892 if { (eval echo configure:4893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4893   rm -rf conftest*
4894   eval "ac_cv_func_$ac_func=yes"
4895 else
4896   echo "configure: failed program was:" >&5
4897   cat conftest.$ac_ext >&5
4898   rm -rf conftest*
4899   eval "ac_cv_func_$ac_func=no"
4900 fi
4901 rm -f conftest*
4902 fi
4903
4904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4905   echo "$ac_t""yes" 1>&6
4906     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4907   cat >> confdefs.h <<EOF
4908 #define $ac_tr_func 1
4909 EOF
4910  
4911 else
4912   echo "$ac_t""no" 1>&6
4913 \
4914     ac_wfuncs=no
4915 fi
4916 done
4917
4918
4919     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4920 echo "configure:4921: checking for ISO C99 wchar_t support" >&5
4921     if test x"$has_weof" = xyes &&
4922        test x"$has_wchar_minmax" = xyes &&
4923        test x"$ac_wfuncs" = xyes; then
4924       ac_isoC99_wchar_t=yes
4925     else
4926       ac_isoC99_wchar_t=no
4927     fi
4928     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4929
4930             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4931 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4932 echo "configure:4933: checking for iconv.h" >&5
4933 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4934   echo $ac_n "(cached) $ac_c" 1>&6
4935 else
4936   cat > conftest.$ac_ext <<EOF
4937 #line 4938 "configure"
4938 #include "confdefs.h"
4939 #include <iconv.h>
4940 EOF
4941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4942 { (eval echo configure:4943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4944 if test -z "$ac_err"; then
4945   rm -rf conftest*
4946   eval "ac_cv_header_$ac_safe=yes"
4947 else
4948   echo "$ac_err" >&5
4949   echo "configure: failed program was:" >&5
4950   cat conftest.$ac_ext >&5
4951   rm -rf conftest*
4952   eval "ac_cv_header_$ac_safe=no"
4953 fi
4954 rm -f conftest*
4955 fi
4956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4957   echo "$ac_t""yes" 1>&6
4958   ac_has_iconv_h=yes
4959 else
4960   echo "$ac_t""no" 1>&6
4961 ac_has_iconv_h=no
4962 fi
4963
4964     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4965 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4966 echo "configure:4967: checking for langinfo.h" >&5
4967 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4968   echo $ac_n "(cached) $ac_c" 1>&6
4969 else
4970   cat > conftest.$ac_ext <<EOF
4971 #line 4972 "configure"
4972 #include "confdefs.h"
4973 #include <langinfo.h>
4974 EOF
4975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4976 { (eval echo configure:4977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4978 if test -z "$ac_err"; then
4979   rm -rf conftest*
4980   eval "ac_cv_header_$ac_safe=yes"
4981 else
4982   echo "$ac_err" >&5
4983   echo "configure: failed program was:" >&5
4984   cat conftest.$ac_ext >&5
4985   rm -rf conftest*
4986   eval "ac_cv_header_$ac_safe=no"
4987 fi
4988 rm -f conftest*
4989 fi
4990 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4991   echo "$ac_t""yes" 1>&6
4992   ac_has_langinfo_h=yes
4993 else
4994   echo "$ac_t""no" 1>&6
4995 ac_has_langinfo_h=no
4996 fi
4997
4998
4999         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5000 echo "configure:5001: checking for iconv in -liconv" >&5
5001 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5003   echo $ac_n "(cached) $ac_c" 1>&6
5004 else
5005   ac_save_LIBS="$LIBS"
5006 LIBS="-liconv  $LIBS"
5007 cat > conftest.$ac_ext <<EOF
5008 #line 5009 "configure"
5009 #include "confdefs.h"
5010 /* Override any gcc2 internal prototype to avoid an error.  */
5011 /* We use char because int might match the return type of a gcc2
5012     builtin and then its argument prototype would still apply.  */
5013 char iconv();
5014
5015 int main() {
5016 iconv()
5017 ; return 0; }
5018 EOF
5019 if { (eval echo configure:5020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5020   rm -rf conftest*
5021   eval "ac_cv_lib_$ac_lib_var=yes"
5022 else
5023   echo "configure: failed program was:" >&5
5024   cat conftest.$ac_ext >&5
5025   rm -rf conftest*
5026   eval "ac_cv_lib_$ac_lib_var=no"
5027 fi
5028 rm -f conftest*
5029 LIBS="$ac_save_LIBS"
5030
5031 fi
5032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5033   echo "$ac_t""yes" 1>&6
5034   libiconv="-liconv"
5035 else
5036   echo "$ac_t""no" 1>&6
5037 fi
5038
5039     ac_save_LIBS="$LIBS"
5040     LIBS="$LIBS $libiconv"
5041
5042     for ac_func in iconv_open iconv_close iconv nl_langinfo
5043 do
5044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5045 echo "configure:5046: checking for $ac_func" >&5
5046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5047   echo $ac_n "(cached) $ac_c" 1>&6
5048 else
5049   cat > conftest.$ac_ext <<EOF
5050 #line 5051 "configure"
5051 #include "confdefs.h"
5052 /* System header to define __stub macros and hopefully few prototypes,
5053     which can conflict with char $ac_func(); below.  */
5054 #include <assert.h>
5055 /* Override any gcc2 internal prototype to avoid an error.  */
5056 /* We use char because int might match the return type of a gcc2
5057     builtin and then its argument prototype would still apply.  */
5058 char $ac_func();
5059
5060 int main() {
5061
5062 /* The GNU C library defines this for functions which it implements
5063     to always fail with ENOSYS.  Some functions are actually named
5064     something starting with __ and the normal name is an alias.  */
5065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5066 choke me
5067 #else
5068 $ac_func();
5069 #endif
5070
5071 ; return 0; }
5072 EOF
5073 if { (eval echo configure:5074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5074   rm -rf conftest*
5075   eval "ac_cv_func_$ac_func=yes"
5076 else
5077   echo "configure: failed program was:" >&5
5078   cat conftest.$ac_ext >&5
5079   rm -rf conftest*
5080   eval "ac_cv_func_$ac_func=no"
5081 fi
5082 rm -f conftest*
5083 fi
5084
5085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5086   echo "$ac_t""yes" 1>&6
5087     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5088   cat >> confdefs.h <<EOF
5089 #define $ac_tr_func 1
5090 EOF
5091  \
5092     ac_XPG2funcs=yes
5093 else
5094   echo "$ac_t""no" 1>&6
5095 ac_XPG2funcs=no
5096 fi
5097 done
5098
5099
5100     LIBS="$ac_save_LIBS"
5101
5102     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5103 echo "configure:5104: checking for XPG2 wchar_t support" >&5
5104     if test x"$ac_has_iconv_h" = xyes &&
5105        test x"$ac_has_langinfo_h" = xyes &&
5106        test x"$ac_XPG2funcs" = xyes; then
5107       ac_XPG2_wchar_t=yes
5108     else
5109       ac_XPG2_wchar_t=no
5110     fi
5111     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5112
5113             if test x"$ac_isoC99_wchar_t" = xyes && 
5114         test x"$ac_XPG2_wchar_t" = xyes; then
5115       cat >> confdefs.h <<\EOF
5116 #define _GLIBCPP_USE_WCHAR_T 1
5117 EOF
5118
5119       enable_wchar_t=yes
5120     fi
5121   fi
5122   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5123 echo "configure:5124: checking for enabled wchar_t specializations" >&5
5124   echo "$ac_t""$enable_wchar_t" 1>&6    
5125   
5126
5127 if test "$enable_wchar_t" = yes; then
5128   GLIBCPP_TEST_WCHAR_T_TRUE=
5129   GLIBCPP_TEST_WCHAR_T_FALSE='#'
5130 else
5131   GLIBCPP_TEST_WCHAR_T_TRUE='#'
5132   GLIBCPP_TEST_WCHAR_T_FALSE=
5133 fi      
5134
5135       cat >> confdefs.h <<\EOF
5136 #define HAVE_COPYSIGN 1
5137 EOF
5138
5139       cat >> confdefs.h <<\EOF
5140 #define HAVE_COPYSIGNF 1
5141 EOF
5142
5143       cat >> confdefs.h <<\EOF
5144 #define HAVE_FINITE 1
5145 EOF
5146
5147       cat >> confdefs.h <<\EOF
5148 #define HAVE_FINITEF 1
5149 EOF
5150
5151       cat >> confdefs.h <<\EOF
5152 #define HAVE_FREXPF 1
5153 EOF
5154
5155       cat >> confdefs.h <<\EOF
5156 #define HAVE_HYPOTF 1
5157 EOF
5158
5159       cat >> confdefs.h <<\EOF
5160 #define HAVE_ISINF 1
5161 EOF
5162
5163       cat >> confdefs.h <<\EOF
5164 #define HAVE_ISINFF 1
5165 EOF
5166
5167       cat >> confdefs.h <<\EOF
5168 #define HAVE_ISNAN 1
5169 EOF
5170
5171       cat >> confdefs.h <<\EOF
5172 #define HAVE_ISNANF 1
5173 EOF
5174
5175       cat >> confdefs.h <<\EOF
5176 #define HAVE_SINCOS 1
5177 EOF
5178
5179       cat >> confdefs.h <<\EOF
5180 #define HAVE_SINCOSF 1
5181 EOF
5182
5183       if test x"long_double_math_on_this_cpu" = x"yes"; then
5184         cat >> confdefs.h <<\EOF
5185 #define HAVE_FINITEL 1
5186 EOF
5187
5188         cat >> confdefs.h <<\EOF
5189 #define HAVE_HYPOTL 1
5190 EOF
5191
5192         cat >> confdefs.h <<\EOF
5193 #define HAVE_ISINFL 1
5194 EOF
5195
5196         cat >> confdefs.h <<\EOF
5197 #define HAVE_ISNANL 1
5198 EOF
5199
5200       fi
5201       ;;
5202     *-hpux*)
5203       # Check for available headers.
5204       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5205         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5206         fp.h locale.h float.h inttypes.h
5207 do
5208 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5209 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5210 echo "configure:5211: checking for $ac_hdr" >&5
5211 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5212   echo $ac_n "(cached) $ac_c" 1>&6
5213 else
5214   cat > conftest.$ac_ext <<EOF
5215 #line 5216 "configure"
5216 #include "confdefs.h"
5217 #include <$ac_hdr>
5218 EOF
5219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5220 { (eval echo configure:5221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5222 if test -z "$ac_err"; then
5223   rm -rf conftest*
5224   eval "ac_cv_header_$ac_safe=yes"
5225 else
5226   echo "$ac_err" >&5
5227   echo "configure: failed program was:" >&5
5228   cat conftest.$ac_ext >&5
5229   rm -rf conftest*
5230   eval "ac_cv_header_$ac_safe=no"
5231 fi
5232 rm -f conftest*
5233 fi
5234 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5235   echo "$ac_t""yes" 1>&6
5236     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5237   cat >> confdefs.h <<EOF
5238 #define $ac_tr_hdr 1
5239 EOF
5240  
5241 else
5242   echo "$ac_t""no" 1>&6
5243 fi
5244 done
5245
5246       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5247       
5248       
5249   # If we're not using GNU ld, then there's no point in even trying these
5250   # tests.  Check for that first.  We should have already tested for gld
5251   # by now (in libtool), but require it now just to be safe...
5252   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5253   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5254   
5255
5256   # The name set by libtool depends on the version of libtool.  Shame on us
5257   # for depending on an impl detail, but c'est la vie.  Older versions used
5258   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5259   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5260   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5261   # set (hence we're using an older libtool), then set it.
5262   if test x${with_gnu_ld+set} != xset; then
5263     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5264       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5265       with_gnu_ld=no
5266     else
5267       with_gnu_ld=$ac_cv_prog_gnu_ld
5268     fi
5269   fi
5270
5271   # Start by getting the version number.  I think the libtool test already
5272   # does some of this, but throws away the result.
5273   
5274   ldver=`$LD --version 2>/dev/null | head -1 | \
5275          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5276   
5277   glibcpp_gnu_ld_version=`echo $ldver | \
5278          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5279
5280   # Set --gc-sections.
5281   if test "$with_gnu_ld" = "notbroken"; then
5282     # GNU ld it is!  Joy and bunny rabbits!
5283
5284     # All these tests are for C++; save the language and the compiler flags.
5285     # Need to do this so that g++ won't try to link in libstdc++
5286     ac_test_CFLAGS="${CFLAGS+set}"
5287     ac_save_CFLAGS="$CFLAGS"
5288     CFLAGS='-x c++  -Wl,--gc-sections'
5289
5290     # Check for -Wl,--gc-sections
5291     # XXX This test is broken at the moment, as symbols required for
5292     # linking are now in libsupc++ (not built yet.....). In addition,
5293     # this test has cored on solaris in the past. In addition,
5294     # --gc-sections doesn't really work at the moment (keeps on discarding
5295     # used sections, first .eh_frame and now some of the glibc sections for
5296     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5297     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5298 echo "configure:5299: checking for ld that supports -Wl,--gc-sections" >&5
5299     if test "$cross_compiling" = yes; then
5300   ac_sectionLDflags=yes
5301 else
5302   cat > conftest.$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5305
5306      int main(void)
5307      {
5308        try { throw 1; }
5309        catch (...) { };
5310        return 0;
5311      }
5312     
5313 EOF
5314 if { (eval echo configure:5315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5315 then
5316   ac_sectionLDflags=yes
5317 else
5318   echo "configure: failed program was:" >&5
5319   cat conftest.$ac_ext >&5
5320   rm -fr conftest*
5321   ac_sectionLDflags=no
5322 fi
5323 rm -fr conftest*
5324 fi
5325
5326     if test "$ac_test_CFLAGS" = set; then
5327       CFLAGS="$ac_save_CFLAGS"
5328     else
5329       # this is the suspicious part
5330       CFLAGS=''
5331     fi
5332     if test "$ac_sectionLDflags" = "yes"; then
5333       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5334     fi
5335     echo "$ac_t""$ac_sectionLDflags" 1>&6
5336   fi
5337
5338   # Set linker optimization flags.
5339   if test x"$with_gnu_ld" = x"yes"; then
5340     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5341   fi
5342
5343   
5344   
5345
5346       
5347     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5348 echo "configure:5349: checking for main in -lm" >&5
5349 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5351   echo $ac_n "(cached) $ac_c" 1>&6
5352 else
5353   ac_save_LIBS="$LIBS"
5354 LIBS="-lm  $LIBS"
5355 cat > conftest.$ac_ext <<EOF
5356 #line 5357 "configure"
5357 #include "confdefs.h"
5358
5359 int main() {
5360 main()
5361 ; return 0; }
5362 EOF
5363 if { (eval echo configure:5364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5364   rm -rf conftest*
5365   eval "ac_cv_lib_$ac_lib_var=yes"
5366 else
5367   echo "configure: failed program was:" >&5
5368   cat conftest.$ac_ext >&5
5369   rm -rf conftest*
5370   eval "ac_cv_lib_$ac_lib_var=no"
5371 fi
5372 rm -f conftest*
5373 LIBS="$ac_save_LIBS"
5374
5375 fi
5376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5377   echo "$ac_t""yes" 1>&6
5378     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5379     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5380   cat >> confdefs.h <<EOF
5381 #define $ac_tr_lib 1
5382 EOF
5383
5384   LIBS="-lm $LIBS"
5385
5386 else
5387   echo "$ac_t""no" 1>&6
5388 fi
5389
5390   for ac_func in nan copysignf
5391 do
5392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5393 echo "configure:5394: checking for $ac_func" >&5
5394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5395   echo $ac_n "(cached) $ac_c" 1>&6
5396 else
5397   cat > conftest.$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5400 /* System header to define __stub macros and hopefully few prototypes,
5401     which can conflict with char $ac_func(); below.  */
5402 #include <assert.h>
5403 /* Override any gcc2 internal prototype to avoid an error.  */
5404 /* We use char because int might match the return type of a gcc2
5405     builtin and then its argument prototype would still apply.  */
5406 char $ac_func();
5407
5408 int main() {
5409
5410 /* The GNU C library defines this for functions which it implements
5411     to always fail with ENOSYS.  Some functions are actually named
5412     something starting with __ and the normal name is an alias.  */
5413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5414 choke me
5415 #else
5416 $ac_func();
5417 #endif
5418
5419 ; return 0; }
5420 EOF
5421 if { (eval echo configure:5422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5422   rm -rf conftest*
5423   eval "ac_cv_func_$ac_func=yes"
5424 else
5425   echo "configure: failed program was:" >&5
5426   cat conftest.$ac_ext >&5
5427   rm -rf conftest*
5428   eval "ac_cv_func_$ac_func=no"
5429 fi
5430 rm -f conftest*
5431 fi
5432
5433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5434   echo "$ac_t""yes" 1>&6
5435     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5436   cat >> confdefs.h <<EOF
5437 #define $ac_tr_func 1
5438 EOF
5439  
5440 else
5441   echo "$ac_t""no" 1>&6
5442 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5443 fi
5444 done
5445
5446
5447     for ac_func in __signbit
5448 do
5449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5450 echo "configure:5451: checking for $ac_func" >&5
5451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5452   echo $ac_n "(cached) $ac_c" 1>&6
5453 else
5454   cat > conftest.$ac_ext <<EOF
5455 #line 5456 "configure"
5456 #include "confdefs.h"
5457 /* System header to define __stub macros and hopefully few prototypes,
5458     which can conflict with char $ac_func(); below.  */
5459 #include <assert.h>
5460 /* Override any gcc2 internal prototype to avoid an error.  */
5461 /* We use char because int might match the return type of a gcc2
5462     builtin and then its argument prototype would still apply.  */
5463 char $ac_func();
5464
5465 int main() {
5466
5467 /* The GNU C library defines this for functions which it implements
5468     to always fail with ENOSYS.  Some functions are actually named
5469     something starting with __ and the normal name is an alias.  */
5470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5471 choke me
5472 #else
5473 $ac_func();
5474 #endif
5475
5476 ; return 0; }
5477 EOF
5478 if { (eval echo configure:5479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5479   rm -rf conftest*
5480   eval "ac_cv_func_$ac_func=yes"
5481 else
5482   echo "configure: failed program was:" >&5
5483   cat conftest.$ac_ext >&5
5484   rm -rf conftest*
5485   eval "ac_cv_func_$ac_func=no"
5486 fi
5487 rm -f conftest*
5488 fi
5489
5490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5491   echo "$ac_t""yes" 1>&6
5492     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5493   cat >> confdefs.h <<EOF
5494 #define $ac_tr_func 1
5495 EOF
5496  
5497 else
5498   echo "$ac_t""no" 1>&6
5499 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5500 fi
5501 done
5502
5503   for ac_func in __signbitf
5504 do
5505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5506 echo "configure:5507: checking for $ac_func" >&5
5507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5508   echo $ac_n "(cached) $ac_c" 1>&6
5509 else
5510   cat > conftest.$ac_ext <<EOF
5511 #line 5512 "configure"
5512 #include "confdefs.h"
5513 /* System header to define __stub macros and hopefully few prototypes,
5514     which can conflict with char $ac_func(); below.  */
5515 #include <assert.h>
5516 /* Override any gcc2 internal prototype to avoid an error.  */
5517 /* We use char because int might match the return type of a gcc2
5518     builtin and then its argument prototype would still apply.  */
5519 char $ac_func();
5520
5521 int main() {
5522
5523 /* The GNU C library defines this for functions which it implements
5524     to always fail with ENOSYS.  Some functions are actually named
5525     something starting with __ and the normal name is an alias.  */
5526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5527 choke me
5528 #else
5529 $ac_func();
5530 #endif
5531
5532 ; return 0; }
5533 EOF
5534 if { (eval echo configure:5535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5535   rm -rf conftest*
5536   eval "ac_cv_func_$ac_func=yes"
5537 else
5538   echo "configure: failed program was:" >&5
5539   cat conftest.$ac_ext >&5
5540   rm -rf conftest*
5541   eval "ac_cv_func_$ac_func=no"
5542 fi
5543 rm -f conftest*
5544 fi
5545
5546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5547   echo "$ac_t""yes" 1>&6
5548     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5549   cat >> confdefs.h <<EOF
5550 #define $ac_tr_func 1
5551 EOF
5552  
5553 else
5554   echo "$ac_t""no" 1>&6
5555 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5556 fi
5557 done
5558
5559
5560           if test x$ac_cv_func_copysignl = x"yes"; then
5561     for ac_func in __signbitl
5562 do
5563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5564 echo "configure:5565: checking for $ac_func" >&5
5565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5566   echo $ac_n "(cached) $ac_c" 1>&6
5567 else
5568   cat > conftest.$ac_ext <<EOF
5569 #line 5570 "configure"
5570 #include "confdefs.h"
5571 /* System header to define __stub macros and hopefully few prototypes,
5572     which can conflict with char $ac_func(); below.  */
5573 #include <assert.h>
5574 /* Override any gcc2 internal prototype to avoid an error.  */
5575 /* We use char because int might match the return type of a gcc2
5576     builtin and then its argument prototype would still apply.  */
5577 char $ac_func();
5578
5579 int main() {
5580
5581 /* The GNU C library defines this for functions which it implements
5582     to always fail with ENOSYS.  Some functions are actually named
5583     something starting with __ and the normal name is an alias.  */
5584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5585 choke me
5586 #else
5587 $ac_func();
5588 #endif
5589
5590 ; return 0; }
5591 EOF
5592 if { (eval echo configure:5593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5593   rm -rf conftest*
5594   eval "ac_cv_func_$ac_func=yes"
5595 else
5596   echo "configure: failed program was:" >&5
5597   cat conftest.$ac_ext >&5
5598   rm -rf conftest*
5599   eval "ac_cv_func_$ac_func=no"
5600 fi
5601 rm -f conftest*
5602 fi
5603
5604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5605   echo "$ac_t""yes" 1>&6
5606     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5607   cat >> confdefs.h <<EOF
5608 #define $ac_tr_func 1
5609 EOF
5610  
5611 else
5612   echo "$ac_t""no" 1>&6
5613 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5614 fi
5615 done
5616
5617   fi
5618
5619   if test -n "$LIBMATHOBJS"; then
5620     need_libmath=yes
5621   fi
5622   
5623   
5624
5625 if test "$need_libmath" = yes; then
5626   GLIBCPP_BUILD_LIBMATH_TRUE=
5627   GLIBCPP_BUILD_LIBMATH_FALSE='#'
5628 else
5629   GLIBCPP_BUILD_LIBMATH_TRUE='#'
5630   GLIBCPP_BUILD_LIBMATH_FALSE=
5631 fi
5632
5633       
5634     enable_wchar_t=no
5635
5636       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5637 echo "configure:5638: checking for mbstate_t" >&5
5638   cat > conftest.$ac_ext <<EOF
5639 #line 5640 "configure"
5640 #include "confdefs.h"
5641 #include <wchar.h>
5642 int main() {
5643 mbstate_t teststate;
5644 ; return 0; }
5645 EOF
5646 if { (eval echo configure:5647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5647   rm -rf conftest*
5648   have_mbstate_t=yes
5649 else
5650   echo "configure: failed program was:" >&5
5651   cat conftest.$ac_ext >&5
5652   rm -rf conftest*
5653   have_mbstate_t=no
5654 fi
5655 rm -f conftest*
5656   echo "$ac_t""$have_mbstate_t" 1>&6
5657   if test x"$have_mbstate_t" = xyes; then
5658     cat >> confdefs.h <<\EOF
5659 #define HAVE_MBSTATE_T 1
5660 EOF
5661
5662   fi
5663
5664     for ac_hdr in wchar.h
5665 do
5666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5668 echo "configure:5669: checking for $ac_hdr" >&5
5669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5670   echo $ac_n "(cached) $ac_c" 1>&6
5671 else
5672   cat > conftest.$ac_ext <<EOF
5673 #line 5674 "configure"
5674 #include "confdefs.h"
5675 #include <$ac_hdr>
5676 EOF
5677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5678 { (eval echo configure:5679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5680 if test -z "$ac_err"; then
5681   rm -rf conftest*
5682   eval "ac_cv_header_$ac_safe=yes"
5683 else
5684   echo "$ac_err" >&5
5685   echo "configure: failed program was:" >&5
5686   cat conftest.$ac_ext >&5
5687   rm -rf conftest*
5688   eval "ac_cv_header_$ac_safe=no"
5689 fi
5690 rm -f conftest*
5691 fi
5692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5693   echo "$ac_t""yes" 1>&6
5694     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5695   cat >> confdefs.h <<EOF
5696 #define $ac_tr_hdr 1
5697 EOF
5698  ac_has_wchar_h=yes
5699 else
5700   echo "$ac_t""no" 1>&6
5701 ac_has_wchar_h=no
5702 fi
5703 done
5704
5705   for ac_hdr in wctype.h
5706 do
5707 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5708 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5709 echo "configure:5710: checking for $ac_hdr" >&5
5710 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5711   echo $ac_n "(cached) $ac_c" 1>&6
5712 else
5713   cat > conftest.$ac_ext <<EOF
5714 #line 5715 "configure"
5715 #include "confdefs.h"
5716 #include <$ac_hdr>
5717 EOF
5718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5719 { (eval echo configure:5720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5721 if test -z "$ac_err"; then
5722   rm -rf conftest*
5723   eval "ac_cv_header_$ac_safe=yes"
5724 else
5725   echo "$ac_err" >&5
5726   echo "configure: failed program was:" >&5
5727   cat conftest.$ac_ext >&5
5728   rm -rf conftest*
5729   eval "ac_cv_header_$ac_safe=no"
5730 fi
5731 rm -f conftest*
5732 fi
5733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5734   echo "$ac_t""yes" 1>&6
5735     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5736   cat >> confdefs.h <<EOF
5737 #define $ac_tr_hdr 1
5738 EOF
5739  ac_has_wctype_h=yes
5740 else
5741   echo "$ac_t""no" 1>&6
5742 ac_has_wctype_h=no
5743 fi
5744 done
5745
5746
5747     if test x"$ac_has_wchar_h" = xyes &&
5748      test x"$ac_has_wctype_h" = xyes &&
5749      test x"$enable_c_mbchar" != xno; then
5750
5751             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5752 echo "configure:5753: checking for WCHAR_MIN and WCHAR_MAX" >&5
5753     cat > conftest.$ac_ext <<EOF
5754 #line 5755 "configure"
5755 #include "confdefs.h"
5756 #include <wchar.h>
5757 int main() {
5758 int i = WCHAR_MIN; int j = WCHAR_MAX;
5759 ; return 0; }
5760 EOF
5761 if { (eval echo configure:5762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5762   rm -rf conftest*
5763   has_wchar_minmax=yes
5764 else
5765   echo "configure: failed program was:" >&5
5766   cat conftest.$ac_ext >&5
5767   rm -rf conftest*
5768   has_wchar_minmax=no
5769 fi
5770 rm -f conftest*
5771     echo "$ac_t""$has_wchar_minmax" 1>&6
5772
5773             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5774 echo "configure:5775: checking for WEOF" >&5
5775     cat > conftest.$ac_ext <<EOF
5776 #line 5777 "configure"
5777 #include "confdefs.h"
5778
5779       #include <wchar.h>
5780       #include <stddef.h>
5781 int main() {
5782 wint_t i = WEOF;
5783 ; return 0; }
5784 EOF
5785 if { (eval echo configure:5786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5786   rm -rf conftest*
5787   has_weof=yes
5788 else
5789   echo "configure: failed program was:" >&5
5790   cat conftest.$ac_ext >&5
5791   rm -rf conftest*
5792   has_weof=no
5793 fi
5794 rm -f conftest*
5795     echo "$ac_t""$has_weof" 1>&6
5796
5797         ac_wfuncs=yes
5798     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5799 do
5800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5801 echo "configure:5802: checking for $ac_func" >&5
5802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5803   echo $ac_n "(cached) $ac_c" 1>&6
5804 else
5805   cat > conftest.$ac_ext <<EOF
5806 #line 5807 "configure"
5807 #include "confdefs.h"
5808 /* System header to define __stub macros and hopefully few prototypes,
5809     which can conflict with char $ac_func(); below.  */
5810 #include <assert.h>
5811 /* Override any gcc2 internal prototype to avoid an error.  */
5812 /* We use char because int might match the return type of a gcc2
5813     builtin and then its argument prototype would still apply.  */
5814 char $ac_func();
5815
5816 int main() {
5817
5818 /* The GNU C library defines this for functions which it implements
5819     to always fail with ENOSYS.  Some functions are actually named
5820     something starting with __ and the normal name is an alias.  */
5821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5822 choke me
5823 #else
5824 $ac_func();
5825 #endif
5826
5827 ; return 0; }
5828 EOF
5829 if { (eval echo configure:5830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5830   rm -rf conftest*
5831   eval "ac_cv_func_$ac_func=yes"
5832 else
5833   echo "configure: failed program was:" >&5
5834   cat conftest.$ac_ext >&5
5835   rm -rf conftest*
5836   eval "ac_cv_func_$ac_func=no"
5837 fi
5838 rm -f conftest*
5839 fi
5840
5841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5842   echo "$ac_t""yes" 1>&6
5843     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5844   cat >> confdefs.h <<EOF
5845 #define $ac_tr_func 1
5846 EOF
5847  
5848 else
5849   echo "$ac_t""no" 1>&6
5850 \
5851     ac_wfuncs=no
5852 fi
5853 done
5854
5855
5856         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
5857     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5858     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5859     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5860     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5861     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5862 do
5863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5864 echo "configure:5865: checking for $ac_func" >&5
5865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5866   echo $ac_n "(cached) $ac_c" 1>&6
5867 else
5868   cat > conftest.$ac_ext <<EOF
5869 #line 5870 "configure"
5870 #include "confdefs.h"
5871 /* System header to define __stub macros and hopefully few prototypes,
5872     which can conflict with char $ac_func(); below.  */
5873 #include <assert.h>
5874 /* Override any gcc2 internal prototype to avoid an error.  */
5875 /* We use char because int might match the return type of a gcc2
5876     builtin and then its argument prototype would still apply.  */
5877 char $ac_func();
5878
5879 int main() {
5880
5881 /* The GNU C library defines this for functions which it implements
5882     to always fail with ENOSYS.  Some functions are actually named
5883     something starting with __ and the normal name is an alias.  */
5884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5885 choke me
5886 #else
5887 $ac_func();
5888 #endif
5889
5890 ; return 0; }
5891 EOF
5892 if { (eval echo configure:5893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5893   rm -rf conftest*
5894   eval "ac_cv_func_$ac_func=yes"
5895 else
5896   echo "configure: failed program was:" >&5
5897   cat conftest.$ac_ext >&5
5898   rm -rf conftest*
5899   eval "ac_cv_func_$ac_func=no"
5900 fi
5901 rm -f conftest*
5902 fi
5903
5904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5905   echo "$ac_t""yes" 1>&6
5906     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5907   cat >> confdefs.h <<EOF
5908 #define $ac_tr_func 1
5909 EOF
5910  
5911 else
5912   echo "$ac_t""no" 1>&6
5913 \
5914     ac_wfuncs=no
5915 fi
5916 done
5917
5918
5919     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5920 echo "configure:5921: checking for ISO C99 wchar_t support" >&5
5921     if test x"$has_weof" = xyes &&
5922        test x"$has_wchar_minmax" = xyes &&
5923        test x"$ac_wfuncs" = xyes; then
5924       ac_isoC99_wchar_t=yes
5925     else
5926       ac_isoC99_wchar_t=no
5927     fi
5928     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5929
5930             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5931 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5932 echo "configure:5933: checking for iconv.h" >&5
5933 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5934   echo $ac_n "(cached) $ac_c" 1>&6
5935 else
5936   cat > conftest.$ac_ext <<EOF
5937 #line 5938 "configure"
5938 #include "confdefs.h"
5939 #include <iconv.h>
5940 EOF
5941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5942 { (eval echo configure:5943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5944 if test -z "$ac_err"; then
5945   rm -rf conftest*
5946   eval "ac_cv_header_$ac_safe=yes"
5947 else
5948   echo "$ac_err" >&5
5949   echo "configure: failed program was:" >&5
5950   cat conftest.$ac_ext >&5
5951   rm -rf conftest*
5952   eval "ac_cv_header_$ac_safe=no"
5953 fi
5954 rm -f conftest*
5955 fi
5956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5957   echo "$ac_t""yes" 1>&6
5958   ac_has_iconv_h=yes
5959 else
5960   echo "$ac_t""no" 1>&6
5961 ac_has_iconv_h=no
5962 fi
5963
5964     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5965 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5966 echo "configure:5967: checking for langinfo.h" >&5
5967 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5968   echo $ac_n "(cached) $ac_c" 1>&6
5969 else
5970   cat > conftest.$ac_ext <<EOF
5971 #line 5972 "configure"
5972 #include "confdefs.h"
5973 #include <langinfo.h>
5974 EOF
5975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5976 { (eval echo configure:5977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5978 if test -z "$ac_err"; then
5979   rm -rf conftest*
5980   eval "ac_cv_header_$ac_safe=yes"
5981 else
5982   echo "$ac_err" >&5
5983   echo "configure: failed program was:" >&5
5984   cat conftest.$ac_ext >&5
5985   rm -rf conftest*
5986   eval "ac_cv_header_$ac_safe=no"
5987 fi
5988 rm -f conftest*
5989 fi
5990 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5991   echo "$ac_t""yes" 1>&6
5992   ac_has_langinfo_h=yes
5993 else
5994   echo "$ac_t""no" 1>&6
5995 ac_has_langinfo_h=no
5996 fi
5997
5998
5999         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6000 echo "configure:6001: checking for iconv in -liconv" >&5
6001 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6003   echo $ac_n "(cached) $ac_c" 1>&6
6004 else
6005   ac_save_LIBS="$LIBS"
6006 LIBS="-liconv  $LIBS"
6007 cat > conftest.$ac_ext <<EOF
6008 #line 6009 "configure"
6009 #include "confdefs.h"
6010 /* Override any gcc2 internal prototype to avoid an error.  */
6011 /* We use char because int might match the return type of a gcc2
6012     builtin and then its argument prototype would still apply.  */
6013 char iconv();
6014
6015 int main() {
6016 iconv()
6017 ; return 0; }
6018 EOF
6019 if { (eval echo configure:6020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6020   rm -rf conftest*
6021   eval "ac_cv_lib_$ac_lib_var=yes"
6022 else
6023   echo "configure: failed program was:" >&5
6024   cat conftest.$ac_ext >&5
6025   rm -rf conftest*
6026   eval "ac_cv_lib_$ac_lib_var=no"
6027 fi
6028 rm -f conftest*
6029 LIBS="$ac_save_LIBS"
6030
6031 fi
6032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6033   echo "$ac_t""yes" 1>&6
6034   libiconv="-liconv"
6035 else
6036   echo "$ac_t""no" 1>&6
6037 fi
6038
6039     ac_save_LIBS="$LIBS"
6040     LIBS="$LIBS $libiconv"
6041
6042     for ac_func in iconv_open iconv_close iconv nl_langinfo
6043 do
6044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6045 echo "configure:6046: checking for $ac_func" >&5
6046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6047   echo $ac_n "(cached) $ac_c" 1>&6
6048 else
6049   cat > conftest.$ac_ext <<EOF
6050 #line 6051 "configure"
6051 #include "confdefs.h"
6052 /* System header to define __stub macros and hopefully few prototypes,
6053     which can conflict with char $ac_func(); below.  */
6054 #include <assert.h>
6055 /* Override any gcc2 internal prototype to avoid an error.  */
6056 /* We use char because int might match the return type of a gcc2
6057     builtin and then its argument prototype would still apply.  */
6058 char $ac_func();
6059
6060 int main() {
6061
6062 /* The GNU C library defines this for functions which it implements
6063     to always fail with ENOSYS.  Some functions are actually named
6064     something starting with __ and the normal name is an alias.  */
6065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6066 choke me
6067 #else
6068 $ac_func();
6069 #endif
6070
6071 ; return 0; }
6072 EOF
6073 if { (eval echo configure:6074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6074   rm -rf conftest*
6075   eval "ac_cv_func_$ac_func=yes"
6076 else
6077   echo "configure: failed program was:" >&5
6078   cat conftest.$ac_ext >&5
6079   rm -rf conftest*
6080   eval "ac_cv_func_$ac_func=no"
6081 fi
6082 rm -f conftest*
6083 fi
6084
6085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6086   echo "$ac_t""yes" 1>&6
6087     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6088   cat >> confdefs.h <<EOF
6089 #define $ac_tr_func 1
6090 EOF
6091  \
6092     ac_XPG2funcs=yes
6093 else
6094   echo "$ac_t""no" 1>&6
6095 ac_XPG2funcs=no
6096 fi
6097 done
6098
6099
6100     LIBS="$ac_save_LIBS"
6101
6102     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6103 echo "configure:6104: checking for XPG2 wchar_t support" >&5
6104     if test x"$ac_has_iconv_h" = xyes &&
6105        test x"$ac_has_langinfo_h" = xyes &&
6106        test x"$ac_XPG2funcs" = xyes; then
6107       ac_XPG2_wchar_t=yes
6108     else
6109       ac_XPG2_wchar_t=no
6110     fi
6111     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6112
6113             if test x"$ac_isoC99_wchar_t" = xyes && 
6114         test x"$ac_XPG2_wchar_t" = xyes; then
6115       cat >> confdefs.h <<\EOF
6116 #define _GLIBCPP_USE_WCHAR_T 1
6117 EOF
6118
6119       enable_wchar_t=yes
6120     fi
6121   fi
6122   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6123 echo "configure:6124: checking for enabled wchar_t specializations" >&5
6124   echo "$ac_t""$enable_wchar_t" 1>&6    
6125   
6126
6127 if test "$enable_wchar_t" = yes; then
6128   GLIBCPP_TEST_WCHAR_T_TRUE=
6129   GLIBCPP_TEST_WCHAR_T_FALSE='#'
6130 else
6131   GLIBCPP_TEST_WCHAR_T_TRUE='#'
6132   GLIBCPP_TEST_WCHAR_T_FALSE=
6133 fi      
6134
6135       os_include_dir="os/hpux"
6136       cat >> confdefs.h <<\EOF
6137 #define HAVE_COPYSIGN 1
6138 EOF
6139
6140       cat >> confdefs.h <<\EOF
6141 #define HAVE_COPYSIGNF 1
6142 EOF
6143
6144       cat >> confdefs.h <<\EOF
6145 #define HAVE_FREXPF 1
6146 EOF
6147
6148       cat >> confdefs.h <<\EOF
6149 #define HAVE_HYPOT 1
6150 EOF
6151
6152       case "$target" in
6153         *-hpux10*)
6154           cat >> confdefs.h <<\EOF
6155 #define HAVE_FINITE 1
6156 EOF
6157
6158           cat >> confdefs.h <<\EOF
6159 #define HAVE_FINITEF 1
6160 EOF
6161
6162           cat >> confdefs.h <<\EOF
6163 #define HAVE_ISINF 1
6164 EOF
6165
6166           cat >> confdefs.h <<\EOF
6167 #define HAVE_ISINFF 1
6168 EOF
6169
6170           cat >> confdefs.h <<\EOF
6171 #define HAVE_ISNAN 1
6172 EOF
6173
6174           cat >> confdefs.h <<\EOF
6175 #define HAVE_ISNANF 1
6176 EOF
6177
6178           ;;
6179       esac
6180
6181       ;;
6182     *-netbsd*)
6183       # Check for available headers.
6184       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6185         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6186         fp.h locale.h float.h inttypes.h
6187 do
6188 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6190 echo "configure:6191: checking for $ac_hdr" >&5
6191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6192   echo $ac_n "(cached) $ac_c" 1>&6
6193 else
6194   cat > conftest.$ac_ext <<EOF
6195 #line 6196 "configure"
6196 #include "confdefs.h"
6197 #include <$ac_hdr>
6198 EOF
6199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6200 { (eval echo configure:6201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6202 if test -z "$ac_err"; then
6203   rm -rf conftest*
6204   eval "ac_cv_header_$ac_safe=yes"
6205 else
6206   echo "$ac_err" >&5
6207   echo "configure: failed program was:" >&5
6208   cat conftest.$ac_ext >&5
6209   rm -rf conftest*
6210   eval "ac_cv_header_$ac_safe=no"
6211 fi
6212 rm -f conftest*
6213 fi
6214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6215   echo "$ac_t""yes" 1>&6
6216     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6217   cat >> confdefs.h <<EOF
6218 #define $ac_tr_hdr 1
6219 EOF
6220  
6221 else
6222   echo "$ac_t""no" 1>&6
6223 fi
6224 done
6225
6226       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6227        
6228       
6229   # If we're not using GNU ld, then there's no point in even trying these
6230   # tests.  Check for that first.  We should have already tested for gld
6231   # by now (in libtool), but require it now just to be safe...
6232   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6233   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6234   
6235
6236   # The name set by libtool depends on the version of libtool.  Shame on us
6237   # for depending on an impl detail, but c'est la vie.  Older versions used
6238   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6239   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6240   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6241   # set (hence we're using an older libtool), then set it.
6242   if test x${with_gnu_ld+set} != xset; then
6243     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6244       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6245       with_gnu_ld=no
6246     else
6247       with_gnu_ld=$ac_cv_prog_gnu_ld
6248     fi
6249   fi
6250
6251   # Start by getting the version number.  I think the libtool test already
6252   # does some of this, but throws away the result.
6253   
6254   ldver=`$LD --version 2>/dev/null | head -1 | \
6255          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6256   
6257   glibcpp_gnu_ld_version=`echo $ldver | \
6258          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6259
6260   # Set --gc-sections.
6261   if test "$with_gnu_ld" = "notbroken"; then
6262     # GNU ld it is!  Joy and bunny rabbits!
6263
6264     # All these tests are for C++; save the language and the compiler flags.
6265     # Need to do this so that g++ won't try to link in libstdc++
6266     ac_test_CFLAGS="${CFLAGS+set}"
6267     ac_save_CFLAGS="$CFLAGS"
6268     CFLAGS='-x c++  -Wl,--gc-sections'
6269
6270     # Check for -Wl,--gc-sections
6271     # XXX This test is broken at the moment, as symbols required for
6272     # linking are now in libsupc++ (not built yet.....). In addition,
6273     # this test has cored on solaris in the past. In addition,
6274     # --gc-sections doesn't really work at the moment (keeps on discarding
6275     # used sections, first .eh_frame and now some of the glibc sections for
6276     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6277     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6278 echo "configure:6279: checking for ld that supports -Wl,--gc-sections" >&5
6279     if test "$cross_compiling" = yes; then
6280   ac_sectionLDflags=yes
6281 else
6282   cat > conftest.$ac_ext <<EOF
6283 #line 6284 "configure"
6284 #include "confdefs.h"
6285
6286      int main(void)
6287      {
6288        try { throw 1; }
6289        catch (...) { };
6290        return 0;
6291      }
6292     
6293 EOF
6294 if { (eval echo configure:6295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6295 then
6296   ac_sectionLDflags=yes
6297 else
6298   echo "configure: failed program was:" >&5
6299   cat conftest.$ac_ext >&5
6300   rm -fr conftest*
6301   ac_sectionLDflags=no
6302 fi
6303 rm -fr conftest*
6304 fi
6305
6306     if test "$ac_test_CFLAGS" = set; then
6307       CFLAGS="$ac_save_CFLAGS"
6308     else
6309       # this is the suspicious part
6310       CFLAGS=''
6311     fi
6312     if test "$ac_sectionLDflags" = "yes"; then
6313       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6314     fi
6315     echo "$ac_t""$ac_sectionLDflags" 1>&6
6316   fi
6317
6318   # Set linker optimization flags.
6319   if test x"$with_gnu_ld" = x"yes"; then
6320     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6321   fi
6322
6323   
6324   
6325
6326       
6327     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6328 echo "configure:6329: checking for main in -lm" >&5
6329 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6331   echo $ac_n "(cached) $ac_c" 1>&6
6332 else
6333   ac_save_LIBS="$LIBS"
6334 LIBS="-lm  $LIBS"
6335 cat > conftest.$ac_ext <<EOF
6336 #line 6337 "configure"
6337 #include "confdefs.h"
6338
6339 int main() {
6340 main()
6341 ; return 0; }
6342 EOF
6343 if { (eval echo configure:6344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6344   rm -rf conftest*
6345   eval "ac_cv_lib_$ac_lib_var=yes"
6346 else
6347   echo "configure: failed program was:" >&5
6348   cat conftest.$ac_ext >&5
6349   rm -rf conftest*
6350   eval "ac_cv_lib_$ac_lib_var=no"
6351 fi
6352 rm -f conftest*
6353 LIBS="$ac_save_LIBS"
6354
6355 fi
6356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6357   echo "$ac_t""yes" 1>&6
6358     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6359     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6360   cat >> confdefs.h <<EOF
6361 #define $ac_tr_lib 1
6362 EOF
6363
6364   LIBS="-lm $LIBS"
6365
6366 else
6367   echo "$ac_t""no" 1>&6
6368 fi
6369
6370   for ac_func in nan copysignf
6371 do
6372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6373 echo "configure:6374: checking for $ac_func" >&5
6374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6375   echo $ac_n "(cached) $ac_c" 1>&6
6376 else
6377   cat > conftest.$ac_ext <<EOF
6378 #line 6379 "configure"
6379 #include "confdefs.h"
6380 /* System header to define __stub macros and hopefully few prototypes,
6381     which can conflict with char $ac_func(); below.  */
6382 #include <assert.h>
6383 /* Override any gcc2 internal prototype to avoid an error.  */
6384 /* We use char because int might match the return type of a gcc2
6385     builtin and then its argument prototype would still apply.  */
6386 char $ac_func();
6387
6388 int main() {
6389
6390 /* The GNU C library defines this for functions which it implements
6391     to always fail with ENOSYS.  Some functions are actually named
6392     something starting with __ and the normal name is an alias.  */
6393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6394 choke me
6395 #else
6396 $ac_func();
6397 #endif
6398
6399 ; return 0; }
6400 EOF
6401 if { (eval echo configure:6402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6402   rm -rf conftest*
6403   eval "ac_cv_func_$ac_func=yes"
6404 else
6405   echo "configure: failed program was:" >&5
6406   cat conftest.$ac_ext >&5
6407   rm -rf conftest*
6408   eval "ac_cv_func_$ac_func=no"
6409 fi
6410 rm -f conftest*
6411 fi
6412
6413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6414   echo "$ac_t""yes" 1>&6
6415     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6416   cat >> confdefs.h <<EOF
6417 #define $ac_tr_func 1
6418 EOF
6419  
6420 else
6421   echo "$ac_t""no" 1>&6
6422 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6423 fi
6424 done
6425
6426
6427     for ac_func in __signbit
6428 do
6429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6430 echo "configure:6431: checking for $ac_func" >&5
6431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6432   echo $ac_n "(cached) $ac_c" 1>&6
6433 else
6434   cat > conftest.$ac_ext <<EOF
6435 #line 6436 "configure"
6436 #include "confdefs.h"
6437 /* System header to define __stub macros and hopefully few prototypes,
6438     which can conflict with char $ac_func(); below.  */
6439 #include <assert.h>
6440 /* Override any gcc2 internal prototype to avoid an error.  */
6441 /* We use char because int might match the return type of a gcc2
6442     builtin and then its argument prototype would still apply.  */
6443 char $ac_func();
6444
6445 int main() {
6446
6447 /* The GNU C library defines this for functions which it implements
6448     to always fail with ENOSYS.  Some functions are actually named
6449     something starting with __ and the normal name is an alias.  */
6450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6451 choke me
6452 #else
6453 $ac_func();
6454 #endif
6455
6456 ; return 0; }
6457 EOF
6458 if { (eval echo configure:6459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6459   rm -rf conftest*
6460   eval "ac_cv_func_$ac_func=yes"
6461 else
6462   echo "configure: failed program was:" >&5
6463   cat conftest.$ac_ext >&5
6464   rm -rf conftest*
6465   eval "ac_cv_func_$ac_func=no"
6466 fi
6467 rm -f conftest*
6468 fi
6469
6470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6471   echo "$ac_t""yes" 1>&6
6472     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6473   cat >> confdefs.h <<EOF
6474 #define $ac_tr_func 1
6475 EOF
6476  
6477 else
6478   echo "$ac_t""no" 1>&6
6479 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6480 fi
6481 done
6482
6483   for ac_func in __signbitf
6484 do
6485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6486 echo "configure:6487: checking for $ac_func" >&5
6487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6488   echo $ac_n "(cached) $ac_c" 1>&6
6489 else
6490   cat > conftest.$ac_ext <<EOF
6491 #line 6492 "configure"
6492 #include "confdefs.h"
6493 /* System header to define __stub macros and hopefully few prototypes,
6494     which can conflict with char $ac_func(); below.  */
6495 #include <assert.h>
6496 /* Override any gcc2 internal prototype to avoid an error.  */
6497 /* We use char because int might match the return type of a gcc2
6498     builtin and then its argument prototype would still apply.  */
6499 char $ac_func();
6500
6501 int main() {
6502
6503 /* The GNU C library defines this for functions which it implements
6504     to always fail with ENOSYS.  Some functions are actually named
6505     something starting with __ and the normal name is an alias.  */
6506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6507 choke me
6508 #else
6509 $ac_func();
6510 #endif
6511
6512 ; return 0; }
6513 EOF
6514 if { (eval echo configure:6515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6515   rm -rf conftest*
6516   eval "ac_cv_func_$ac_func=yes"
6517 else
6518   echo "configure: failed program was:" >&5
6519   cat conftest.$ac_ext >&5
6520   rm -rf conftest*
6521   eval "ac_cv_func_$ac_func=no"
6522 fi
6523 rm -f conftest*
6524 fi
6525
6526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6527   echo "$ac_t""yes" 1>&6
6528     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6529   cat >> confdefs.h <<EOF
6530 #define $ac_tr_func 1
6531 EOF
6532  
6533 else
6534   echo "$ac_t""no" 1>&6
6535 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6536 fi
6537 done
6538
6539
6540           if test x$ac_cv_func_copysignl = x"yes"; then
6541     for ac_func in __signbitl
6542 do
6543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6544 echo "configure:6545: checking for $ac_func" >&5
6545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6546   echo $ac_n "(cached) $ac_c" 1>&6
6547 else
6548   cat > conftest.$ac_ext <<EOF
6549 #line 6550 "configure"
6550 #include "confdefs.h"
6551 /* System header to define __stub macros and hopefully few prototypes,
6552     which can conflict with char $ac_func(); below.  */
6553 #include <assert.h>
6554 /* Override any gcc2 internal prototype to avoid an error.  */
6555 /* We use char because int might match the return type of a gcc2
6556     builtin and then its argument prototype would still apply.  */
6557 char $ac_func();
6558
6559 int main() {
6560
6561 /* The GNU C library defines this for functions which it implements
6562     to always fail with ENOSYS.  Some functions are actually named
6563     something starting with __ and the normal name is an alias.  */
6564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6565 choke me
6566 #else
6567 $ac_func();
6568 #endif
6569
6570 ; return 0; }
6571 EOF
6572 if { (eval echo configure:6573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6573   rm -rf conftest*
6574   eval "ac_cv_func_$ac_func=yes"
6575 else
6576   echo "configure: failed program was:" >&5
6577   cat conftest.$ac_ext >&5
6578   rm -rf conftest*
6579   eval "ac_cv_func_$ac_func=no"
6580 fi
6581 rm -f conftest*
6582 fi
6583
6584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6585   echo "$ac_t""yes" 1>&6
6586     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6587   cat >> confdefs.h <<EOF
6588 #define $ac_tr_func 1
6589 EOF
6590  
6591 else
6592   echo "$ac_t""no" 1>&6
6593 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6594 fi
6595 done
6596
6597   fi
6598
6599   if test -n "$LIBMATHOBJS"; then
6600     need_libmath=yes
6601   fi
6602   
6603   
6604
6605 if test "$need_libmath" = yes; then
6606   GLIBCPP_BUILD_LIBMATH_TRUE=
6607   GLIBCPP_BUILD_LIBMATH_FALSE='#'
6608 else
6609   GLIBCPP_BUILD_LIBMATH_TRUE='#'
6610   GLIBCPP_BUILD_LIBMATH_FALSE=
6611 fi
6612
6613       
6614     enable_wchar_t=no
6615
6616       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6617 echo "configure:6618: checking for mbstate_t" >&5
6618   cat > conftest.$ac_ext <<EOF
6619 #line 6620 "configure"
6620 #include "confdefs.h"
6621 #include <wchar.h>
6622 int main() {
6623 mbstate_t teststate;
6624 ; return 0; }
6625 EOF
6626 if { (eval echo configure:6627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6627   rm -rf conftest*
6628   have_mbstate_t=yes
6629 else
6630   echo "configure: failed program was:" >&5
6631   cat conftest.$ac_ext >&5
6632   rm -rf conftest*
6633   have_mbstate_t=no
6634 fi
6635 rm -f conftest*
6636   echo "$ac_t""$have_mbstate_t" 1>&6
6637   if test x"$have_mbstate_t" = xyes; then
6638     cat >> confdefs.h <<\EOF
6639 #define HAVE_MBSTATE_T 1
6640 EOF
6641
6642   fi
6643
6644     for ac_hdr in wchar.h
6645 do
6646 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6647 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6648 echo "configure:6649: checking for $ac_hdr" >&5
6649 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6650   echo $ac_n "(cached) $ac_c" 1>&6
6651 else
6652   cat > conftest.$ac_ext <<EOF
6653 #line 6654 "configure"
6654 #include "confdefs.h"
6655 #include <$ac_hdr>
6656 EOF
6657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6658 { (eval echo configure:6659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6660 if test -z "$ac_err"; then
6661   rm -rf conftest*
6662   eval "ac_cv_header_$ac_safe=yes"
6663 else
6664   echo "$ac_err" >&5
6665   echo "configure: failed program was:" >&5
6666   cat conftest.$ac_ext >&5
6667   rm -rf conftest*
6668   eval "ac_cv_header_$ac_safe=no"
6669 fi
6670 rm -f conftest*
6671 fi
6672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6673   echo "$ac_t""yes" 1>&6
6674     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6675   cat >> confdefs.h <<EOF
6676 #define $ac_tr_hdr 1
6677 EOF
6678  ac_has_wchar_h=yes
6679 else
6680   echo "$ac_t""no" 1>&6
6681 ac_has_wchar_h=no
6682 fi
6683 done
6684
6685   for ac_hdr in wctype.h
6686 do
6687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6689 echo "configure:6690: checking for $ac_hdr" >&5
6690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6691   echo $ac_n "(cached) $ac_c" 1>&6
6692 else
6693   cat > conftest.$ac_ext <<EOF
6694 #line 6695 "configure"
6695 #include "confdefs.h"
6696 #include <$ac_hdr>
6697 EOF
6698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6699 { (eval echo configure:6700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6701 if test -z "$ac_err"; then
6702   rm -rf conftest*
6703   eval "ac_cv_header_$ac_safe=yes"
6704 else
6705   echo "$ac_err" >&5
6706   echo "configure: failed program was:" >&5
6707   cat conftest.$ac_ext >&5
6708   rm -rf conftest*
6709   eval "ac_cv_header_$ac_safe=no"
6710 fi
6711 rm -f conftest*
6712 fi
6713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6714   echo "$ac_t""yes" 1>&6
6715     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6716   cat >> confdefs.h <<EOF
6717 #define $ac_tr_hdr 1
6718 EOF
6719  ac_has_wctype_h=yes
6720 else
6721   echo "$ac_t""no" 1>&6
6722 ac_has_wctype_h=no
6723 fi
6724 done
6725
6726
6727     if test x"$ac_has_wchar_h" = xyes &&
6728      test x"$ac_has_wctype_h" = xyes &&
6729      test x"$enable_c_mbchar" != xno; then
6730
6731             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6732 echo "configure:6733: checking for WCHAR_MIN and WCHAR_MAX" >&5
6733     cat > conftest.$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6736 #include <wchar.h>
6737 int main() {
6738 int i = WCHAR_MIN; int j = WCHAR_MAX;
6739 ; return 0; }
6740 EOF
6741 if { (eval echo configure:6742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6742   rm -rf conftest*
6743   has_wchar_minmax=yes
6744 else
6745   echo "configure: failed program was:" >&5
6746   cat conftest.$ac_ext >&5
6747   rm -rf conftest*
6748   has_wchar_minmax=no
6749 fi
6750 rm -f conftest*
6751     echo "$ac_t""$has_wchar_minmax" 1>&6
6752
6753             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6754 echo "configure:6755: checking for WEOF" >&5
6755     cat > conftest.$ac_ext <<EOF
6756 #line 6757 "configure"
6757 #include "confdefs.h"
6758
6759       #include <wchar.h>
6760       #include <stddef.h>
6761 int main() {
6762 wint_t i = WEOF;
6763 ; return 0; }
6764 EOF
6765 if { (eval echo configure:6766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6766   rm -rf conftest*
6767   has_weof=yes
6768 else
6769   echo "configure: failed program was:" >&5
6770   cat conftest.$ac_ext >&5
6771   rm -rf conftest*
6772   has_weof=no
6773 fi
6774 rm -f conftest*
6775     echo "$ac_t""$has_weof" 1>&6
6776
6777         ac_wfuncs=yes
6778     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6779 do
6780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6781 echo "configure:6782: checking for $ac_func" >&5
6782 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6783   echo $ac_n "(cached) $ac_c" 1>&6
6784 else
6785   cat > conftest.$ac_ext <<EOF
6786 #line 6787 "configure"
6787 #include "confdefs.h"
6788 /* System header to define __stub macros and hopefully few prototypes,
6789     which can conflict with char $ac_func(); below.  */
6790 #include <assert.h>
6791 /* Override any gcc2 internal prototype to avoid an error.  */
6792 /* We use char because int might match the return type of a gcc2
6793     builtin and then its argument prototype would still apply.  */
6794 char $ac_func();
6795
6796 int main() {
6797
6798 /* The GNU C library defines this for functions which it implements
6799     to always fail with ENOSYS.  Some functions are actually named
6800     something starting with __ and the normal name is an alias.  */
6801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6802 choke me
6803 #else
6804 $ac_func();
6805 #endif
6806
6807 ; return 0; }
6808 EOF
6809 if { (eval echo configure:6810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6810   rm -rf conftest*
6811   eval "ac_cv_func_$ac_func=yes"
6812 else
6813   echo "configure: failed program was:" >&5
6814   cat conftest.$ac_ext >&5
6815   rm -rf conftest*
6816   eval "ac_cv_func_$ac_func=no"
6817 fi
6818 rm -f conftest*
6819 fi
6820
6821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6822   echo "$ac_t""yes" 1>&6
6823     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6824   cat >> confdefs.h <<EOF
6825 #define $ac_tr_func 1
6826 EOF
6827  
6828 else
6829   echo "$ac_t""no" 1>&6
6830 \
6831     ac_wfuncs=no
6832 fi
6833 done
6834
6835
6836         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6837     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6838     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6839     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6840     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6841     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6842 do
6843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6844 echo "configure:6845: checking for $ac_func" >&5
6845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6846   echo $ac_n "(cached) $ac_c" 1>&6
6847 else
6848   cat > conftest.$ac_ext <<EOF
6849 #line 6850 "configure"
6850 #include "confdefs.h"
6851 /* System header to define __stub macros and hopefully few prototypes,
6852     which can conflict with char $ac_func(); below.  */
6853 #include <assert.h>
6854 /* Override any gcc2 internal prototype to avoid an error.  */
6855 /* We use char because int might match the return type of a gcc2
6856     builtin and then its argument prototype would still apply.  */
6857 char $ac_func();
6858
6859 int main() {
6860
6861 /* The GNU C library defines this for functions which it implements
6862     to always fail with ENOSYS.  Some functions are actually named
6863     something starting with __ and the normal name is an alias.  */
6864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6865 choke me
6866 #else
6867 $ac_func();
6868 #endif
6869
6870 ; return 0; }
6871 EOF
6872 if { (eval echo configure:6873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6873   rm -rf conftest*
6874   eval "ac_cv_func_$ac_func=yes"
6875 else
6876   echo "configure: failed program was:" >&5
6877   cat conftest.$ac_ext >&5
6878   rm -rf conftest*
6879   eval "ac_cv_func_$ac_func=no"
6880 fi
6881 rm -f conftest*
6882 fi
6883
6884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6885   echo "$ac_t""yes" 1>&6
6886     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6887   cat >> confdefs.h <<EOF
6888 #define $ac_tr_func 1
6889 EOF
6890  
6891 else
6892   echo "$ac_t""no" 1>&6
6893 \
6894     ac_wfuncs=no
6895 fi
6896 done
6897
6898
6899     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6900 echo "configure:6901: checking for ISO C99 wchar_t support" >&5
6901     if test x"$has_weof" = xyes &&
6902        test x"$has_wchar_minmax" = xyes &&
6903        test x"$ac_wfuncs" = xyes; then
6904       ac_isoC99_wchar_t=yes
6905     else
6906       ac_isoC99_wchar_t=no
6907     fi
6908     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6909
6910             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6911 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6912 echo "configure:6913: checking for iconv.h" >&5
6913 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6914   echo $ac_n "(cached) $ac_c" 1>&6
6915 else
6916   cat > conftest.$ac_ext <<EOF
6917 #line 6918 "configure"
6918 #include "confdefs.h"
6919 #include <iconv.h>
6920 EOF
6921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6922 { (eval echo configure:6923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6924 if test -z "$ac_err"; then
6925   rm -rf conftest*
6926   eval "ac_cv_header_$ac_safe=yes"
6927 else
6928   echo "$ac_err" >&5
6929   echo "configure: failed program was:" >&5
6930   cat conftest.$ac_ext >&5
6931   rm -rf conftest*
6932   eval "ac_cv_header_$ac_safe=no"
6933 fi
6934 rm -f conftest*
6935 fi
6936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6937   echo "$ac_t""yes" 1>&6
6938   ac_has_iconv_h=yes
6939 else
6940   echo "$ac_t""no" 1>&6
6941 ac_has_iconv_h=no
6942 fi
6943
6944     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6945 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6946 echo "configure:6947: checking for langinfo.h" >&5
6947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6948   echo $ac_n "(cached) $ac_c" 1>&6
6949 else
6950   cat > conftest.$ac_ext <<EOF
6951 #line 6952 "configure"
6952 #include "confdefs.h"
6953 #include <langinfo.h>
6954 EOF
6955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6956 { (eval echo configure:6957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6958 if test -z "$ac_err"; then
6959   rm -rf conftest*
6960   eval "ac_cv_header_$ac_safe=yes"
6961 else
6962   echo "$ac_err" >&5
6963   echo "configure: failed program was:" >&5
6964   cat conftest.$ac_ext >&5
6965   rm -rf conftest*
6966   eval "ac_cv_header_$ac_safe=no"
6967 fi
6968 rm -f conftest*
6969 fi
6970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6971   echo "$ac_t""yes" 1>&6
6972   ac_has_langinfo_h=yes
6973 else
6974   echo "$ac_t""no" 1>&6
6975 ac_has_langinfo_h=no
6976 fi
6977
6978
6979         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6980 echo "configure:6981: checking for iconv in -liconv" >&5
6981 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6983   echo $ac_n "(cached) $ac_c" 1>&6
6984 else
6985   ac_save_LIBS="$LIBS"
6986 LIBS="-liconv  $LIBS"
6987 cat > conftest.$ac_ext <<EOF
6988 #line 6989 "configure"
6989 #include "confdefs.h"
6990 /* Override any gcc2 internal prototype to avoid an error.  */
6991 /* We use char because int might match the return type of a gcc2
6992     builtin and then its argument prototype would still apply.  */
6993 char iconv();
6994
6995 int main() {
6996 iconv()
6997 ; return 0; }
6998 EOF
6999 if { (eval echo configure:7000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7000   rm -rf conftest*
7001   eval "ac_cv_lib_$ac_lib_var=yes"
7002 else
7003   echo "configure: failed program was:" >&5
7004   cat conftest.$ac_ext >&5
7005   rm -rf conftest*
7006   eval "ac_cv_lib_$ac_lib_var=no"
7007 fi
7008 rm -f conftest*
7009 LIBS="$ac_save_LIBS"
7010
7011 fi
7012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7013   echo "$ac_t""yes" 1>&6
7014   libiconv="-liconv"
7015 else
7016   echo "$ac_t""no" 1>&6
7017 fi
7018
7019     ac_save_LIBS="$LIBS"
7020     LIBS="$LIBS $libiconv"
7021
7022     for ac_func in iconv_open iconv_close iconv nl_langinfo
7023 do
7024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7025 echo "configure:7026: checking for $ac_func" >&5
7026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7027   echo $ac_n "(cached) $ac_c" 1>&6
7028 else
7029   cat > conftest.$ac_ext <<EOF
7030 #line 7031 "configure"
7031 #include "confdefs.h"
7032 /* System header to define __stub macros and hopefully few prototypes,
7033     which can conflict with char $ac_func(); below.  */
7034 #include <assert.h>
7035 /* Override any gcc2 internal prototype to avoid an error.  */
7036 /* We use char because int might match the return type of a gcc2
7037     builtin and then its argument prototype would still apply.  */
7038 char $ac_func();
7039
7040 int main() {
7041
7042 /* The GNU C library defines this for functions which it implements
7043     to always fail with ENOSYS.  Some functions are actually named
7044     something starting with __ and the normal name is an alias.  */
7045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7046 choke me
7047 #else
7048 $ac_func();
7049 #endif
7050
7051 ; return 0; }
7052 EOF
7053 if { (eval echo configure:7054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7054   rm -rf conftest*
7055   eval "ac_cv_func_$ac_func=yes"
7056 else
7057   echo "configure: failed program was:" >&5
7058   cat conftest.$ac_ext >&5
7059   rm -rf conftest*
7060   eval "ac_cv_func_$ac_func=no"
7061 fi
7062 rm -f conftest*
7063 fi
7064
7065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7066   echo "$ac_t""yes" 1>&6
7067     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7068   cat >> confdefs.h <<EOF
7069 #define $ac_tr_func 1
7070 EOF
7071  \
7072     ac_XPG2funcs=yes
7073 else
7074   echo "$ac_t""no" 1>&6
7075 ac_XPG2funcs=no
7076 fi
7077 done
7078
7079
7080     LIBS="$ac_save_LIBS"
7081
7082     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7083 echo "configure:7084: checking for XPG2 wchar_t support" >&5
7084     if test x"$ac_has_iconv_h" = xyes &&
7085        test x"$ac_has_langinfo_h" = xyes &&
7086        test x"$ac_XPG2funcs" = xyes; then
7087       ac_XPG2_wchar_t=yes
7088     else
7089       ac_XPG2_wchar_t=no
7090     fi
7091     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7092
7093             if test x"$ac_isoC99_wchar_t" = xyes && 
7094         test x"$ac_XPG2_wchar_t" = xyes; then
7095       cat >> confdefs.h <<\EOF
7096 #define _GLIBCPP_USE_WCHAR_T 1
7097 EOF
7098
7099       enable_wchar_t=yes
7100     fi
7101   fi
7102   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7103 echo "configure:7104: checking for enabled wchar_t specializations" >&5
7104   echo "$ac_t""$enable_wchar_t" 1>&6    
7105   
7106
7107 if test "$enable_wchar_t" = yes; then
7108   GLIBCPP_TEST_WCHAR_T_TRUE=
7109   GLIBCPP_TEST_WCHAR_T_FALSE='#'
7110 else
7111   GLIBCPP_TEST_WCHAR_T_TRUE='#'
7112   GLIBCPP_TEST_WCHAR_T_FALSE=
7113 fi      
7114
7115       os_include_dir="os/bsd/netbsd"
7116       cat >> confdefs.h <<\EOF
7117 #define HAVE_COPYSIGN 1
7118 EOF
7119
7120       cat >> confdefs.h <<\EOF
7121 #define HAVE_COPYSIGNF 1
7122 EOF
7123
7124       cat >> confdefs.h <<\EOF
7125 #define HAVE_FINITEF 1
7126 EOF
7127
7128       cat >> confdefs.h <<\EOF
7129 #define HAVE_FINITE 1
7130 EOF
7131
7132       cat >> confdefs.h <<\EOF
7133 #define HAVE_FREXPF 1
7134 EOF
7135
7136       cat >> confdefs.h <<\EOF
7137 #define HAVE_HYPOTF 1
7138 EOF
7139
7140       cat >> confdefs.h <<\EOF
7141 #define HAVE_ISINF 1
7142 EOF
7143
7144       cat >> confdefs.h <<\EOF
7145 #define HAVE_ISINFF 1
7146 EOF
7147
7148       cat >> confdefs.h <<\EOF
7149 #define HAVE_ISNAN 1
7150 EOF
7151
7152       cat >> confdefs.h <<\EOF
7153 #define HAVE_ISNANF 1
7154 EOF
7155
7156       if test x"long_double_math_on_this_cpu" = x"yes"; then
7157         cat >> confdefs.h <<\EOF
7158 #define HAVE_FINITEL 1
7159 EOF
7160
7161         cat >> confdefs.h <<\EOF
7162 #define HAVE_ISINFL 1
7163 EOF
7164
7165         cat >> confdefs.h <<\EOF
7166 #define HAVE_ISNANL 1
7167 EOF
7168
7169       fi
7170       ;;
7171     *-freebsd*)
7172       # Check for available headers.
7173       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
7174         machine/endian.h machine/param.h sys/machine.h sys/types.h \
7175         fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
7176         sys/time.h unistd.h
7177 do
7178 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7179 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7180 echo "configure:7181: checking for $ac_hdr" >&5
7181 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7182   echo $ac_n "(cached) $ac_c" 1>&6
7183 else
7184   cat > conftest.$ac_ext <<EOF
7185 #line 7186 "configure"
7186 #include "confdefs.h"
7187 #include <$ac_hdr>
7188 EOF
7189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7190 { (eval echo configure:7191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7192 if test -z "$ac_err"; then
7193   rm -rf conftest*
7194   eval "ac_cv_header_$ac_safe=yes"
7195 else
7196   echo "$ac_err" >&5
7197   echo "configure: failed program was:" >&5
7198   cat conftest.$ac_ext >&5
7199   rm -rf conftest*
7200   eval "ac_cv_header_$ac_safe=no"
7201 fi
7202 rm -f conftest*
7203 fi
7204 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7205   echo "$ac_t""yes" 1>&6
7206     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7207   cat >> confdefs.h <<EOF
7208 #define $ac_tr_hdr 1
7209 EOF
7210  
7211 else
7212   echo "$ac_t""no" 1>&6
7213 fi
7214 done
7215
7216       SECTION_FLAGS='-ffunction-sections -fdata-sections'
7217        
7218       
7219   # If we're not using GNU ld, then there's no point in even trying these
7220   # tests.  Check for that first.  We should have already tested for gld
7221   # by now (in libtool), but require it now just to be safe...
7222   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7223   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7224   
7225
7226   # The name set by libtool depends on the version of libtool.  Shame on us
7227   # for depending on an impl detail, but c'est la vie.  Older versions used
7228   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7229   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7230   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7231   # set (hence we're using an older libtool), then set it.
7232   if test x${with_gnu_ld+set} != xset; then
7233     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7234       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7235       with_gnu_ld=no
7236     else
7237       with_gnu_ld=$ac_cv_prog_gnu_ld
7238     fi
7239   fi
7240
7241   # Start by getting the version number.  I think the libtool test already
7242   # does some of this, but throws away the result.
7243   
7244   ldver=`$LD --version 2>/dev/null | head -1 | \
7245          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7246   
7247   glibcpp_gnu_ld_version=`echo $ldver | \
7248          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7249
7250   # Set --gc-sections.
7251   if test "$with_gnu_ld" = "notbroken"; then
7252     # GNU ld it is!  Joy and bunny rabbits!
7253
7254     # All these tests are for C++; save the language and the compiler flags.
7255     # Need to do this so that g++ won't try to link in libstdc++
7256     ac_test_CFLAGS="${CFLAGS+set}"
7257     ac_save_CFLAGS="$CFLAGS"
7258     CFLAGS='-x c++  -Wl,--gc-sections'
7259
7260     # Check for -Wl,--gc-sections
7261     # XXX This test is broken at the moment, as symbols required for
7262     # linking are now in libsupc++ (not built yet.....). In addition,
7263     # this test has cored on solaris in the past. In addition,
7264     # --gc-sections doesn't really work at the moment (keeps on discarding
7265     # used sections, first .eh_frame and now some of the glibc sections for
7266     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7267     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7268 echo "configure:7269: checking for ld that supports -Wl,--gc-sections" >&5
7269     if test "$cross_compiling" = yes; then
7270   ac_sectionLDflags=yes
7271 else
7272   cat > conftest.$ac_ext <<EOF
7273 #line 7274 "configure"
7274 #include "confdefs.h"
7275
7276      int main(void)
7277      {
7278        try { throw 1; }
7279        catch (...) { };
7280        return 0;
7281      }
7282     
7283 EOF
7284 if { (eval echo configure:7285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7285 then
7286   ac_sectionLDflags=yes
7287 else
7288   echo "configure: failed program was:" >&5
7289   cat conftest.$ac_ext >&5
7290   rm -fr conftest*
7291   ac_sectionLDflags=no
7292 fi
7293 rm -fr conftest*
7294 fi
7295
7296     if test "$ac_test_CFLAGS" = set; then
7297       CFLAGS="$ac_save_CFLAGS"
7298     else
7299       # this is the suspicious part
7300       CFLAGS=''
7301     fi
7302     if test "$ac_sectionLDflags" = "yes"; then
7303       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7304     fi
7305     echo "$ac_t""$ac_sectionLDflags" 1>&6
7306   fi
7307
7308   # Set linker optimization flags.
7309   if test x"$with_gnu_ld" = x"yes"; then
7310     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7311   fi
7312
7313   
7314   
7315
7316       
7317     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7318 echo "configure:7319: checking for main in -lm" >&5
7319 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7321   echo $ac_n "(cached) $ac_c" 1>&6
7322 else
7323   ac_save_LIBS="$LIBS"
7324 LIBS="-lm  $LIBS"
7325 cat > conftest.$ac_ext <<EOF
7326 #line 7327 "configure"
7327 #include "confdefs.h"
7328
7329 int main() {
7330 main()
7331 ; return 0; }
7332 EOF
7333 if { (eval echo configure:7334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7334   rm -rf conftest*
7335   eval "ac_cv_lib_$ac_lib_var=yes"
7336 else
7337   echo "configure: failed program was:" >&5
7338   cat conftest.$ac_ext >&5
7339   rm -rf conftest*
7340   eval "ac_cv_lib_$ac_lib_var=no"
7341 fi
7342 rm -f conftest*
7343 LIBS="$ac_save_LIBS"
7344
7345 fi
7346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7347   echo "$ac_t""yes" 1>&6
7348     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7349     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7350   cat >> confdefs.h <<EOF
7351 #define $ac_tr_lib 1
7352 EOF
7353
7354   LIBS="-lm $LIBS"
7355
7356 else
7357   echo "$ac_t""no" 1>&6
7358 fi
7359
7360   for ac_func in nan copysignf
7361 do
7362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7363 echo "configure:7364: checking for $ac_func" >&5
7364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7365   echo $ac_n "(cached) $ac_c" 1>&6
7366 else
7367   cat > conftest.$ac_ext <<EOF
7368 #line 7369 "configure"
7369 #include "confdefs.h"
7370 /* System header to define __stub macros and hopefully few prototypes,
7371     which can conflict with char $ac_func(); below.  */
7372 #include <assert.h>
7373 /* Override any gcc2 internal prototype to avoid an error.  */
7374 /* We use char because int might match the return type of a gcc2
7375     builtin and then its argument prototype would still apply.  */
7376 char $ac_func();
7377
7378 int main() {
7379
7380 /* The GNU C library defines this for functions which it implements
7381     to always fail with ENOSYS.  Some functions are actually named
7382     something starting with __ and the normal name is an alias.  */
7383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7384 choke me
7385 #else
7386 $ac_func();
7387 #endif
7388
7389 ; return 0; }
7390 EOF
7391 if { (eval echo configure:7392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7392   rm -rf conftest*
7393   eval "ac_cv_func_$ac_func=yes"
7394 else
7395   echo "configure: failed program was:" >&5
7396   cat conftest.$ac_ext >&5
7397   rm -rf conftest*
7398   eval "ac_cv_func_$ac_func=no"
7399 fi
7400 rm -f conftest*
7401 fi
7402
7403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7404   echo "$ac_t""yes" 1>&6
7405     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7406   cat >> confdefs.h <<EOF
7407 #define $ac_tr_func 1
7408 EOF
7409  
7410 else
7411   echo "$ac_t""no" 1>&6
7412 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7413 fi
7414 done
7415
7416
7417     for ac_func in __signbit
7418 do
7419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7420 echo "configure:7421: checking for $ac_func" >&5
7421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7422   echo $ac_n "(cached) $ac_c" 1>&6
7423 else
7424   cat > conftest.$ac_ext <<EOF
7425 #line 7426 "configure"
7426 #include "confdefs.h"
7427 /* System header to define __stub macros and hopefully few prototypes,
7428     which can conflict with char $ac_func(); below.  */
7429 #include <assert.h>
7430 /* Override any gcc2 internal prototype to avoid an error.  */
7431 /* We use char because int might match the return type of a gcc2
7432     builtin and then its argument prototype would still apply.  */
7433 char $ac_func();
7434
7435 int main() {
7436
7437 /* The GNU C library defines this for functions which it implements
7438     to always fail with ENOSYS.  Some functions are actually named
7439     something starting with __ and the normal name is an alias.  */
7440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7441 choke me
7442 #else
7443 $ac_func();
7444 #endif
7445
7446 ; return 0; }
7447 EOF
7448 if { (eval echo configure:7449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7449   rm -rf conftest*
7450   eval "ac_cv_func_$ac_func=yes"
7451 else
7452   echo "configure: failed program was:" >&5
7453   cat conftest.$ac_ext >&5
7454   rm -rf conftest*
7455   eval "ac_cv_func_$ac_func=no"
7456 fi
7457 rm -f conftest*
7458 fi
7459
7460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7461   echo "$ac_t""yes" 1>&6
7462     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7463   cat >> confdefs.h <<EOF
7464 #define $ac_tr_func 1
7465 EOF
7466  
7467 else
7468   echo "$ac_t""no" 1>&6
7469 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7470 fi
7471 done
7472
7473   for ac_func in __signbitf
7474 do
7475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7476 echo "configure:7477: checking for $ac_func" >&5
7477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7478   echo $ac_n "(cached) $ac_c" 1>&6
7479 else
7480   cat > conftest.$ac_ext <<EOF
7481 #line 7482 "configure"
7482 #include "confdefs.h"
7483 /* System header to define __stub macros and hopefully few prototypes,
7484     which can conflict with char $ac_func(); below.  */
7485 #include <assert.h>
7486 /* Override any gcc2 internal prototype to avoid an error.  */
7487 /* We use char because int might match the return type of a gcc2
7488     builtin and then its argument prototype would still apply.  */
7489 char $ac_func();
7490
7491 int main() {
7492
7493 /* The GNU C library defines this for functions which it implements
7494     to always fail with ENOSYS.  Some functions are actually named
7495     something starting with __ and the normal name is an alias.  */
7496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7497 choke me
7498 #else
7499 $ac_func();
7500 #endif
7501
7502 ; return 0; }
7503 EOF
7504 if { (eval echo configure:7505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7505   rm -rf conftest*
7506   eval "ac_cv_func_$ac_func=yes"
7507 else
7508   echo "configure: failed program was:" >&5
7509   cat conftest.$ac_ext >&5
7510   rm -rf conftest*
7511   eval "ac_cv_func_$ac_func=no"
7512 fi
7513 rm -f conftest*
7514 fi
7515
7516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7517   echo "$ac_t""yes" 1>&6
7518     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7519   cat >> confdefs.h <<EOF
7520 #define $ac_tr_func 1
7521 EOF
7522  
7523 else
7524   echo "$ac_t""no" 1>&6
7525 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7526 fi
7527 done
7528
7529
7530           if test x$ac_cv_func_copysignl = x"yes"; then
7531     for ac_func in __signbitl
7532 do
7533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7534 echo "configure:7535: checking for $ac_func" >&5
7535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7536   echo $ac_n "(cached) $ac_c" 1>&6
7537 else
7538   cat > conftest.$ac_ext <<EOF
7539 #line 7540 "configure"
7540 #include "confdefs.h"
7541 /* System header to define __stub macros and hopefully few prototypes,
7542     which can conflict with char $ac_func(); below.  */
7543 #include <assert.h>
7544 /* Override any gcc2 internal prototype to avoid an error.  */
7545 /* We use char because int might match the return type of a gcc2
7546     builtin and then its argument prototype would still apply.  */
7547 char $ac_func();
7548
7549 int main() {
7550
7551 /* The GNU C library defines this for functions which it implements
7552     to always fail with ENOSYS.  Some functions are actually named
7553     something starting with __ and the normal name is an alias.  */
7554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7555 choke me
7556 #else
7557 $ac_func();
7558 #endif
7559
7560 ; return 0; }
7561 EOF
7562 if { (eval echo configure:7563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7563   rm -rf conftest*
7564   eval "ac_cv_func_$ac_func=yes"
7565 else
7566   echo "configure: failed program was:" >&5
7567   cat conftest.$ac_ext >&5
7568   rm -rf conftest*
7569   eval "ac_cv_func_$ac_func=no"
7570 fi
7571 rm -f conftest*
7572 fi
7573
7574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7575   echo "$ac_t""yes" 1>&6
7576     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7577   cat >> confdefs.h <<EOF
7578 #define $ac_tr_func 1
7579 EOF
7580  
7581 else
7582   echo "$ac_t""no" 1>&6
7583 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7584 fi
7585 done
7586
7587   fi
7588
7589   if test -n "$LIBMATHOBJS"; then
7590     need_libmath=yes
7591   fi
7592   
7593   
7594
7595 if test "$need_libmath" = yes; then
7596   GLIBCPP_BUILD_LIBMATH_TRUE=
7597   GLIBCPP_BUILD_LIBMATH_FALSE='#'
7598 else
7599   GLIBCPP_BUILD_LIBMATH_TRUE='#'
7600   GLIBCPP_BUILD_LIBMATH_FALSE=
7601 fi
7602
7603       
7604     enable_wchar_t=no
7605
7606       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7607 echo "configure:7608: checking for mbstate_t" >&5
7608   cat > conftest.$ac_ext <<EOF
7609 #line 7610 "configure"
7610 #include "confdefs.h"
7611 #include <wchar.h>
7612 int main() {
7613 mbstate_t teststate;
7614 ; return 0; }
7615 EOF
7616 if { (eval echo configure:7617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7617   rm -rf conftest*
7618   have_mbstate_t=yes
7619 else
7620   echo "configure: failed program was:" >&5
7621   cat conftest.$ac_ext >&5
7622   rm -rf conftest*
7623   have_mbstate_t=no
7624 fi
7625 rm -f conftest*
7626   echo "$ac_t""$have_mbstate_t" 1>&6
7627   if test x"$have_mbstate_t" = xyes; then
7628     cat >> confdefs.h <<\EOF
7629 #define HAVE_MBSTATE_T 1
7630 EOF
7631
7632   fi
7633
7634     for ac_hdr in wchar.h
7635 do
7636 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7637 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7638 echo "configure:7639: checking for $ac_hdr" >&5
7639 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7640   echo $ac_n "(cached) $ac_c" 1>&6
7641 else
7642   cat > conftest.$ac_ext <<EOF
7643 #line 7644 "configure"
7644 #include "confdefs.h"
7645 #include <$ac_hdr>
7646 EOF
7647 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7648 { (eval echo configure:7649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7649 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7650 if test -z "$ac_err"; then
7651   rm -rf conftest*
7652   eval "ac_cv_header_$ac_safe=yes"
7653 else
7654   echo "$ac_err" >&5
7655   echo "configure: failed program was:" >&5
7656   cat conftest.$ac_ext >&5
7657   rm -rf conftest*
7658   eval "ac_cv_header_$ac_safe=no"
7659 fi
7660 rm -f conftest*
7661 fi
7662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7663   echo "$ac_t""yes" 1>&6
7664     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7665   cat >> confdefs.h <<EOF
7666 #define $ac_tr_hdr 1
7667 EOF
7668  ac_has_wchar_h=yes
7669 else
7670   echo "$ac_t""no" 1>&6
7671 ac_has_wchar_h=no
7672 fi
7673 done
7674
7675   for ac_hdr in wctype.h
7676 do
7677 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7678 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7679 echo "configure:7680: checking for $ac_hdr" >&5
7680 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7681   echo $ac_n "(cached) $ac_c" 1>&6
7682 else
7683   cat > conftest.$ac_ext <<EOF
7684 #line 7685 "configure"
7685 #include "confdefs.h"
7686 #include <$ac_hdr>
7687 EOF
7688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7689 { (eval echo configure:7690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7691 if test -z "$ac_err"; then
7692   rm -rf conftest*
7693   eval "ac_cv_header_$ac_safe=yes"
7694 else
7695   echo "$ac_err" >&5
7696   echo "configure: failed program was:" >&5
7697   cat conftest.$ac_ext >&5
7698   rm -rf conftest*
7699   eval "ac_cv_header_$ac_safe=no"
7700 fi
7701 rm -f conftest*
7702 fi
7703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7704   echo "$ac_t""yes" 1>&6
7705     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7706   cat >> confdefs.h <<EOF
7707 #define $ac_tr_hdr 1
7708 EOF
7709  ac_has_wctype_h=yes
7710 else
7711   echo "$ac_t""no" 1>&6
7712 ac_has_wctype_h=no
7713 fi
7714 done
7715
7716
7717     if test x"$ac_has_wchar_h" = xyes &&
7718      test x"$ac_has_wctype_h" = xyes &&
7719      test x"$enable_c_mbchar" != xno; then
7720
7721             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7722 echo "configure:7723: checking for WCHAR_MIN and WCHAR_MAX" >&5
7723     cat > conftest.$ac_ext <<EOF
7724 #line 7725 "configure"
7725 #include "confdefs.h"
7726 #include <wchar.h>
7727 int main() {
7728 int i = WCHAR_MIN; int j = WCHAR_MAX;
7729 ; return 0; }
7730 EOF
7731 if { (eval echo configure:7732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7732   rm -rf conftest*
7733   has_wchar_minmax=yes
7734 else
7735   echo "configure: failed program was:" >&5
7736   cat conftest.$ac_ext >&5
7737   rm -rf conftest*
7738   has_wchar_minmax=no
7739 fi
7740 rm -f conftest*
7741     echo "$ac_t""$has_wchar_minmax" 1>&6
7742
7743             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7744 echo "configure:7745: checking for WEOF" >&5
7745     cat > conftest.$ac_ext <<EOF
7746 #line 7747 "configure"
7747 #include "confdefs.h"
7748
7749       #include <wchar.h>
7750       #include <stddef.h>
7751 int main() {
7752 wint_t i = WEOF;
7753 ; return 0; }
7754 EOF
7755 if { (eval echo configure:7756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7756   rm -rf conftest*
7757   has_weof=yes
7758 else
7759   echo "configure: failed program was:" >&5
7760   cat conftest.$ac_ext >&5
7761   rm -rf conftest*
7762   has_weof=no
7763 fi
7764 rm -f conftest*
7765     echo "$ac_t""$has_weof" 1>&6
7766
7767         ac_wfuncs=yes
7768     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7769 do
7770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7771 echo "configure:7772: checking for $ac_func" >&5
7772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7773   echo $ac_n "(cached) $ac_c" 1>&6
7774 else
7775   cat > conftest.$ac_ext <<EOF
7776 #line 7777 "configure"
7777 #include "confdefs.h"
7778 /* System header to define __stub macros and hopefully few prototypes,
7779     which can conflict with char $ac_func(); below.  */
7780 #include <assert.h>
7781 /* Override any gcc2 internal prototype to avoid an error.  */
7782 /* We use char because int might match the return type of a gcc2
7783     builtin and then its argument prototype would still apply.  */
7784 char $ac_func();
7785
7786 int main() {
7787
7788 /* The GNU C library defines this for functions which it implements
7789     to always fail with ENOSYS.  Some functions are actually named
7790     something starting with __ and the normal name is an alias.  */
7791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7792 choke me
7793 #else
7794 $ac_func();
7795 #endif
7796
7797 ; return 0; }
7798 EOF
7799 if { (eval echo configure:7800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7800   rm -rf conftest*
7801   eval "ac_cv_func_$ac_func=yes"
7802 else
7803   echo "configure: failed program was:" >&5
7804   cat conftest.$ac_ext >&5
7805   rm -rf conftest*
7806   eval "ac_cv_func_$ac_func=no"
7807 fi
7808 rm -f conftest*
7809 fi
7810
7811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7812   echo "$ac_t""yes" 1>&6
7813     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7814   cat >> confdefs.h <<EOF
7815 #define $ac_tr_func 1
7816 EOF
7817  
7818 else
7819   echo "$ac_t""no" 1>&6
7820 \
7821     ac_wfuncs=no
7822 fi
7823 done
7824
7825
7826         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7827     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7828     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7829     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7830     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7831     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7832 do
7833 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7834 echo "configure:7835: checking for $ac_func" >&5
7835 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7836   echo $ac_n "(cached) $ac_c" 1>&6
7837 else
7838   cat > conftest.$ac_ext <<EOF
7839 #line 7840 "configure"
7840 #include "confdefs.h"
7841 /* System header to define __stub macros and hopefully few prototypes,
7842     which can conflict with char $ac_func(); below.  */
7843 #include <assert.h>
7844 /* Override any gcc2 internal prototype to avoid an error.  */
7845 /* We use char because int might match the return type of a gcc2
7846     builtin and then its argument prototype would still apply.  */
7847 char $ac_func();
7848
7849 int main() {
7850
7851 /* The GNU C library defines this for functions which it implements
7852     to always fail with ENOSYS.  Some functions are actually named
7853     something starting with __ and the normal name is an alias.  */
7854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7855 choke me
7856 #else
7857 $ac_func();
7858 #endif
7859
7860 ; return 0; }
7861 EOF
7862 if { (eval echo configure:7863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7863   rm -rf conftest*
7864   eval "ac_cv_func_$ac_func=yes"
7865 else
7866   echo "configure: failed program was:" >&5
7867   cat conftest.$ac_ext >&5
7868   rm -rf conftest*
7869   eval "ac_cv_func_$ac_func=no"
7870 fi
7871 rm -f conftest*
7872 fi
7873
7874 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7875   echo "$ac_t""yes" 1>&6
7876     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7877   cat >> confdefs.h <<EOF
7878 #define $ac_tr_func 1
7879 EOF
7880  
7881 else
7882   echo "$ac_t""no" 1>&6
7883 \
7884     ac_wfuncs=no
7885 fi
7886 done
7887
7888
7889     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7890 echo "configure:7891: checking for ISO C99 wchar_t support" >&5
7891     if test x"$has_weof" = xyes &&
7892        test x"$has_wchar_minmax" = xyes &&
7893        test x"$ac_wfuncs" = xyes; then
7894       ac_isoC99_wchar_t=yes
7895     else
7896       ac_isoC99_wchar_t=no
7897     fi
7898     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7899
7900             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7901 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7902 echo "configure:7903: checking for iconv.h" >&5
7903 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7904   echo $ac_n "(cached) $ac_c" 1>&6
7905 else
7906   cat > conftest.$ac_ext <<EOF
7907 #line 7908 "configure"
7908 #include "confdefs.h"
7909 #include <iconv.h>
7910 EOF
7911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7912 { (eval echo configure:7913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7914 if test -z "$ac_err"; then
7915   rm -rf conftest*
7916   eval "ac_cv_header_$ac_safe=yes"
7917 else
7918   echo "$ac_err" >&5
7919   echo "configure: failed program was:" >&5
7920   cat conftest.$ac_ext >&5
7921   rm -rf conftest*
7922   eval "ac_cv_header_$ac_safe=no"
7923 fi
7924 rm -f conftest*
7925 fi
7926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7927   echo "$ac_t""yes" 1>&6
7928   ac_has_iconv_h=yes
7929 else
7930   echo "$ac_t""no" 1>&6
7931 ac_has_iconv_h=no
7932 fi
7933
7934     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7935 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7936 echo "configure:7937: checking for langinfo.h" >&5
7937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7938   echo $ac_n "(cached) $ac_c" 1>&6
7939 else
7940   cat > conftest.$ac_ext <<EOF
7941 #line 7942 "configure"
7942 #include "confdefs.h"
7943 #include <langinfo.h>
7944 EOF
7945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7946 { (eval echo configure:7947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7948 if test -z "$ac_err"; then
7949   rm -rf conftest*
7950   eval "ac_cv_header_$ac_safe=yes"
7951 else
7952   echo "$ac_err" >&5
7953   echo "configure: failed program was:" >&5
7954   cat conftest.$ac_ext >&5
7955   rm -rf conftest*
7956   eval "ac_cv_header_$ac_safe=no"
7957 fi
7958 rm -f conftest*
7959 fi
7960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7961   echo "$ac_t""yes" 1>&6
7962   ac_has_langinfo_h=yes
7963 else
7964   echo "$ac_t""no" 1>&6
7965 ac_has_langinfo_h=no
7966 fi
7967
7968
7969         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7970 echo "configure:7971: checking for iconv in -liconv" >&5
7971 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7973   echo $ac_n "(cached) $ac_c" 1>&6
7974 else
7975   ac_save_LIBS="$LIBS"
7976 LIBS="-liconv  $LIBS"
7977 cat > conftest.$ac_ext <<EOF
7978 #line 7979 "configure"
7979 #include "confdefs.h"
7980 /* Override any gcc2 internal prototype to avoid an error.  */
7981 /* We use char because int might match the return type of a gcc2
7982     builtin and then its argument prototype would still apply.  */
7983 char iconv();
7984
7985 int main() {
7986 iconv()
7987 ; return 0; }
7988 EOF
7989 if { (eval echo configure:7990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7990   rm -rf conftest*
7991   eval "ac_cv_lib_$ac_lib_var=yes"
7992 else
7993   echo "configure: failed program was:" >&5
7994   cat conftest.$ac_ext >&5
7995   rm -rf conftest*
7996   eval "ac_cv_lib_$ac_lib_var=no"
7997 fi
7998 rm -f conftest*
7999 LIBS="$ac_save_LIBS"
8000
8001 fi
8002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8003   echo "$ac_t""yes" 1>&6
8004   libiconv="-liconv"
8005 else
8006   echo "$ac_t""no" 1>&6
8007 fi
8008
8009     ac_save_LIBS="$LIBS"
8010     LIBS="$LIBS $libiconv"
8011
8012     for ac_func in iconv_open iconv_close iconv nl_langinfo
8013 do
8014 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8015 echo "configure:8016: checking for $ac_func" >&5
8016 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8017   echo $ac_n "(cached) $ac_c" 1>&6
8018 else
8019   cat > conftest.$ac_ext <<EOF
8020 #line 8021 "configure"
8021 #include "confdefs.h"
8022 /* System header to define __stub macros and hopefully few prototypes,
8023     which can conflict with char $ac_func(); below.  */
8024 #include <assert.h>
8025 /* Override any gcc2 internal prototype to avoid an error.  */
8026 /* We use char because int might match the return type of a gcc2
8027     builtin and then its argument prototype would still apply.  */
8028 char $ac_func();
8029
8030 int main() {
8031
8032 /* The GNU C library defines this for functions which it implements
8033     to always fail with ENOSYS.  Some functions are actually named
8034     something starting with __ and the normal name is an alias.  */
8035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8036 choke me
8037 #else
8038 $ac_func();
8039 #endif
8040
8041 ; return 0; }
8042 EOF
8043 if { (eval echo configure:8044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8044   rm -rf conftest*
8045   eval "ac_cv_func_$ac_func=yes"
8046 else
8047   echo "configure: failed program was:" >&5
8048   cat conftest.$ac_ext >&5
8049   rm -rf conftest*
8050   eval "ac_cv_func_$ac_func=no"
8051 fi
8052 rm -f conftest*
8053 fi
8054
8055 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8056   echo "$ac_t""yes" 1>&6
8057     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8058   cat >> confdefs.h <<EOF
8059 #define $ac_tr_func 1
8060 EOF
8061  \
8062     ac_XPG2funcs=yes
8063 else
8064   echo "$ac_t""no" 1>&6
8065 ac_XPG2funcs=no
8066 fi
8067 done
8068
8069
8070     LIBS="$ac_save_LIBS"
8071
8072     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8073 echo "configure:8074: checking for XPG2 wchar_t support" >&5
8074     if test x"$ac_has_iconv_h" = xyes &&
8075        test x"$ac_has_langinfo_h" = xyes &&
8076        test x"$ac_XPG2funcs" = xyes; then
8077       ac_XPG2_wchar_t=yes
8078     else
8079       ac_XPG2_wchar_t=no
8080     fi
8081     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8082
8083             if test x"$ac_isoC99_wchar_t" = xyes && 
8084         test x"$ac_XPG2_wchar_t" = xyes; then
8085       cat >> confdefs.h <<\EOF
8086 #define _GLIBCPP_USE_WCHAR_T 1
8087 EOF
8088
8089       enable_wchar_t=yes
8090     fi
8091   fi
8092   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8093 echo "configure:8094: checking for enabled wchar_t specializations" >&5
8094   echo "$ac_t""$enable_wchar_t" 1>&6    
8095   
8096
8097 if test "$enable_wchar_t" = yes; then
8098   GLIBCPP_TEST_WCHAR_T_TRUE=
8099   GLIBCPP_TEST_WCHAR_T_FALSE='#'
8100 else
8101   GLIBCPP_TEST_WCHAR_T_TRUE='#'
8102   GLIBCPP_TEST_WCHAR_T_FALSE=
8103 fi      
8104
8105       os_include_dir="os/bsd/freebsd"
8106       cat >> confdefs.h <<\EOF
8107 #define HAVE_LC_MESSAGES 1
8108 EOF
8109
8110       cat >> confdefs.h <<\EOF
8111 #define HAVE_DRAND48 1
8112 EOF
8113
8114       cat >> confdefs.h <<\EOF
8115 #define HAVE_GETPAGESIZE 1
8116 EOF
8117
8118       cat >> confdefs.h <<\EOF
8119 #define HAVE_SETENV 1
8120 EOF
8121
8122       cat >> confdefs.h <<\EOF
8123 #define HAVE_SIGSETJMP 1
8124 EOF
8125
8126       cat >> confdefs.h <<\EOF
8127 #define HAVE_COPYSIGN 1
8128 EOF
8129
8130       cat >> confdefs.h <<\EOF
8131 #define HAVE_COPYSIGNF 1
8132 EOF
8133
8134       cat >> confdefs.h <<\EOF
8135 #define HAVE_FINITEF 1
8136 EOF
8137
8138       cat >> confdefs.h <<\EOF
8139 #define HAVE_FINITE 1
8140 EOF
8141
8142       cat >> confdefs.h <<\EOF
8143 #define HAVE_FREXPF 1
8144 EOF
8145
8146       cat >> confdefs.h <<\EOF
8147 #define HAVE_HYPOT 1
8148 EOF
8149
8150       cat >> confdefs.h <<\EOF
8151 #define HAVE_HYPOTF 1
8152 EOF
8153
8154       cat >> confdefs.h <<\EOF
8155 #define HAVE_ISINF 1
8156 EOF
8157
8158       cat >> confdefs.h <<\EOF
8159 #define HAVE_ISNAN 1
8160 EOF
8161
8162       cat >> confdefs.h <<\EOF
8163 #define HAVE_ISNANF 1
8164 EOF
8165
8166       if test x"long_double_math_on_this_cpu" = x"yes"; then
8167         cat >> confdefs.h <<\EOF
8168 #define HAVE_FINITEL 1
8169 EOF
8170
8171         cat >> confdefs.h <<\EOF
8172 #define HAVE_ISINFL 1
8173 EOF
8174
8175         cat >> confdefs.h <<\EOF
8176 #define HAVE_ISNANL 1
8177 EOF
8178
8179       fi
8180       ;;
8181     *-mingw32*)
8182       for ac_hdr in sys/types.h locale.h float.h
8183 do
8184 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8185 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8186 echo "configure:8187: checking for $ac_hdr" >&5
8187 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8188   echo $ac_n "(cached) $ac_c" 1>&6
8189 else
8190   cat > conftest.$ac_ext <<EOF
8191 #line 8192 "configure"
8192 #include "confdefs.h"
8193 #include <$ac_hdr>
8194 EOF
8195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8196 { (eval echo configure:8197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8198 if test -z "$ac_err"; then
8199   rm -rf conftest*
8200   eval "ac_cv_header_$ac_safe=yes"
8201 else
8202   echo "$ac_err" >&5
8203   echo "configure: failed program was:" >&5
8204   cat conftest.$ac_ext >&5
8205   rm -rf conftest*
8206   eval "ac_cv_header_$ac_safe=no"
8207 fi
8208 rm -f conftest*
8209 fi
8210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8211   echo "$ac_t""yes" 1>&6
8212     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8213   cat >> confdefs.h <<EOF
8214 #define $ac_tr_hdr 1
8215 EOF
8216  
8217 else
8218   echo "$ac_t""no" 1>&6
8219 fi
8220 done
8221
8222       
8223   # If we're not using GNU ld, then there's no point in even trying these
8224   # tests.  Check for that first.  We should have already tested for gld
8225   # by now (in libtool), but require it now just to be safe...
8226   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8227   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8228   
8229
8230   # The name set by libtool depends on the version of libtool.  Shame on us
8231   # for depending on an impl detail, but c'est la vie.  Older versions used
8232   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8233   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8234   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8235   # set (hence we're using an older libtool), then set it.
8236   if test x${with_gnu_ld+set} != xset; then
8237     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8238       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8239       with_gnu_ld=no
8240     else
8241       with_gnu_ld=$ac_cv_prog_gnu_ld
8242     fi
8243   fi
8244
8245   # Start by getting the version number.  I think the libtool test already
8246   # does some of this, but throws away the result.
8247   
8248   ldver=`$LD --version 2>/dev/null | head -1 | \
8249          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8250   
8251   glibcpp_gnu_ld_version=`echo $ldver | \
8252          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8253
8254   # Set --gc-sections.
8255   if test "$with_gnu_ld" = "notbroken"; then
8256     # GNU ld it is!  Joy and bunny rabbits!
8257
8258     # All these tests are for C++; save the language and the compiler flags.
8259     # Need to do this so that g++ won't try to link in libstdc++
8260     ac_test_CFLAGS="${CFLAGS+set}"
8261     ac_save_CFLAGS="$CFLAGS"
8262     CFLAGS='-x c++  -Wl,--gc-sections'
8263
8264     # Check for -Wl,--gc-sections
8265     # XXX This test is broken at the moment, as symbols required for
8266     # linking are now in libsupc++ (not built yet.....). In addition,
8267     # this test has cored on solaris in the past. In addition,
8268     # --gc-sections doesn't really work at the moment (keeps on discarding
8269     # used sections, first .eh_frame and now some of the glibc sections for
8270     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8271     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8272 echo "configure:8273: checking for ld that supports -Wl,--gc-sections" >&5
8273     if test "$cross_compiling" = yes; then
8274   ac_sectionLDflags=yes
8275 else
8276   cat > conftest.$ac_ext <<EOF
8277 #line 8278 "configure"
8278 #include "confdefs.h"
8279
8280      int main(void)
8281      {
8282        try { throw 1; }
8283        catch (...) { };
8284        return 0;
8285      }
8286     
8287 EOF
8288 if { (eval echo configure:8289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8289 then
8290   ac_sectionLDflags=yes
8291 else
8292   echo "configure: failed program was:" >&5
8293   cat conftest.$ac_ext >&5
8294   rm -fr conftest*
8295   ac_sectionLDflags=no
8296 fi
8297 rm -fr conftest*
8298 fi
8299
8300     if test "$ac_test_CFLAGS" = set; then
8301       CFLAGS="$ac_save_CFLAGS"
8302     else
8303       # this is the suspicious part
8304       CFLAGS=''
8305     fi
8306     if test "$ac_sectionLDflags" = "yes"; then
8307       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8308     fi
8309     echo "$ac_t""$ac_sectionLDflags" 1>&6
8310   fi
8311
8312   # Set linker optimization flags.
8313   if test x"$with_gnu_ld" = x"yes"; then
8314     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8315   fi
8316
8317   
8318   
8319
8320       
8321     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8322 echo "configure:8323: checking for main in -lm" >&5
8323 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8325   echo $ac_n "(cached) $ac_c" 1>&6
8326 else
8327   ac_save_LIBS="$LIBS"
8328 LIBS="-lm  $LIBS"
8329 cat > conftest.$ac_ext <<EOF
8330 #line 8331 "configure"
8331 #include "confdefs.h"
8332
8333 int main() {
8334 main()
8335 ; return 0; }
8336 EOF
8337 if { (eval echo configure:8338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8338   rm -rf conftest*
8339   eval "ac_cv_lib_$ac_lib_var=yes"
8340 else
8341   echo "configure: failed program was:" >&5
8342   cat conftest.$ac_ext >&5
8343   rm -rf conftest*
8344   eval "ac_cv_lib_$ac_lib_var=no"
8345 fi
8346 rm -f conftest*
8347 LIBS="$ac_save_LIBS"
8348
8349 fi
8350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8351   echo "$ac_t""yes" 1>&6
8352     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8353     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8354   cat >> confdefs.h <<EOF
8355 #define $ac_tr_lib 1
8356 EOF
8357
8358   LIBS="-lm $LIBS"
8359
8360 else
8361   echo "$ac_t""no" 1>&6
8362 fi
8363
8364   for ac_func in nan copysignf
8365 do
8366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8367 echo "configure:8368: checking for $ac_func" >&5
8368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8369   echo $ac_n "(cached) $ac_c" 1>&6
8370 else
8371   cat > conftest.$ac_ext <<EOF
8372 #line 8373 "configure"
8373 #include "confdefs.h"
8374 /* System header to define __stub macros and hopefully few prototypes,
8375     which can conflict with char $ac_func(); below.  */
8376 #include <assert.h>
8377 /* Override any gcc2 internal prototype to avoid an error.  */
8378 /* We use char because int might match the return type of a gcc2
8379     builtin and then its argument prototype would still apply.  */
8380 char $ac_func();
8381
8382 int main() {
8383
8384 /* The GNU C library defines this for functions which it implements
8385     to always fail with ENOSYS.  Some functions are actually named
8386     something starting with __ and the normal name is an alias.  */
8387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8388 choke me
8389 #else
8390 $ac_func();
8391 #endif
8392
8393 ; return 0; }
8394 EOF
8395 if { (eval echo configure:8396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8396   rm -rf conftest*
8397   eval "ac_cv_func_$ac_func=yes"
8398 else
8399   echo "configure: failed program was:" >&5
8400   cat conftest.$ac_ext >&5
8401   rm -rf conftest*
8402   eval "ac_cv_func_$ac_func=no"
8403 fi
8404 rm -f conftest*
8405 fi
8406
8407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8408   echo "$ac_t""yes" 1>&6
8409     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8410   cat >> confdefs.h <<EOF
8411 #define $ac_tr_func 1
8412 EOF
8413  
8414 else
8415   echo "$ac_t""no" 1>&6
8416 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8417 fi
8418 done
8419
8420
8421     for ac_func in __signbit
8422 do
8423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8424 echo "configure:8425: checking for $ac_func" >&5
8425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8426   echo $ac_n "(cached) $ac_c" 1>&6
8427 else
8428   cat > conftest.$ac_ext <<EOF
8429 #line 8430 "configure"
8430 #include "confdefs.h"
8431 /* System header to define __stub macros and hopefully few prototypes,
8432     which can conflict with char $ac_func(); below.  */
8433 #include <assert.h>
8434 /* Override any gcc2 internal prototype to avoid an error.  */
8435 /* We use char because int might match the return type of a gcc2
8436     builtin and then its argument prototype would still apply.  */
8437 char $ac_func();
8438
8439 int main() {
8440
8441 /* The GNU C library defines this for functions which it implements
8442     to always fail with ENOSYS.  Some functions are actually named
8443     something starting with __ and the normal name is an alias.  */
8444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8445 choke me
8446 #else
8447 $ac_func();
8448 #endif
8449
8450 ; return 0; }
8451 EOF
8452 if { (eval echo configure:8453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8453   rm -rf conftest*
8454   eval "ac_cv_func_$ac_func=yes"
8455 else
8456   echo "configure: failed program was:" >&5
8457   cat conftest.$ac_ext >&5
8458   rm -rf conftest*
8459   eval "ac_cv_func_$ac_func=no"
8460 fi
8461 rm -f conftest*
8462 fi
8463
8464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8465   echo "$ac_t""yes" 1>&6
8466     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8467   cat >> confdefs.h <<EOF
8468 #define $ac_tr_func 1
8469 EOF
8470  
8471 else
8472   echo "$ac_t""no" 1>&6
8473 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8474 fi
8475 done
8476
8477   for ac_func in __signbitf
8478 do
8479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8480 echo "configure:8481: checking for $ac_func" >&5
8481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8482   echo $ac_n "(cached) $ac_c" 1>&6
8483 else
8484   cat > conftest.$ac_ext <<EOF
8485 #line 8486 "configure"
8486 #include "confdefs.h"
8487 /* System header to define __stub macros and hopefully few prototypes,
8488     which can conflict with char $ac_func(); below.  */
8489 #include <assert.h>
8490 /* Override any gcc2 internal prototype to avoid an error.  */
8491 /* We use char because int might match the return type of a gcc2
8492     builtin and then its argument prototype would still apply.  */
8493 char $ac_func();
8494
8495 int main() {
8496
8497 /* The GNU C library defines this for functions which it implements
8498     to always fail with ENOSYS.  Some functions are actually named
8499     something starting with __ and the normal name is an alias.  */
8500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8501 choke me
8502 #else
8503 $ac_func();
8504 #endif
8505
8506 ; return 0; }
8507 EOF
8508 if { (eval echo configure:8509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8509   rm -rf conftest*
8510   eval "ac_cv_func_$ac_func=yes"
8511 else
8512   echo "configure: failed program was:" >&5
8513   cat conftest.$ac_ext >&5
8514   rm -rf conftest*
8515   eval "ac_cv_func_$ac_func=no"
8516 fi
8517 rm -f conftest*
8518 fi
8519
8520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8521   echo "$ac_t""yes" 1>&6
8522     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8523   cat >> confdefs.h <<EOF
8524 #define $ac_tr_func 1
8525 EOF
8526  
8527 else
8528   echo "$ac_t""no" 1>&6
8529 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8530 fi
8531 done
8532
8533
8534           if test x$ac_cv_func_copysignl = x"yes"; then
8535     for ac_func in __signbitl
8536 do
8537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8538 echo "configure:8539: checking for $ac_func" >&5
8539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8540   echo $ac_n "(cached) $ac_c" 1>&6
8541 else
8542   cat > conftest.$ac_ext <<EOF
8543 #line 8544 "configure"
8544 #include "confdefs.h"
8545 /* System header to define __stub macros and hopefully few prototypes,
8546     which can conflict with char $ac_func(); below.  */
8547 #include <assert.h>
8548 /* Override any gcc2 internal prototype to avoid an error.  */
8549 /* We use char because int might match the return type of a gcc2
8550     builtin and then its argument prototype would still apply.  */
8551 char $ac_func();
8552
8553 int main() {
8554
8555 /* The GNU C library defines this for functions which it implements
8556     to always fail with ENOSYS.  Some functions are actually named
8557     something starting with __ and the normal name is an alias.  */
8558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8559 choke me
8560 #else
8561 $ac_func();
8562 #endif
8563
8564 ; return 0; }
8565 EOF
8566 if { (eval echo configure:8567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8567   rm -rf conftest*
8568   eval "ac_cv_func_$ac_func=yes"
8569 else
8570   echo "configure: failed program was:" >&5
8571   cat conftest.$ac_ext >&5
8572   rm -rf conftest*
8573   eval "ac_cv_func_$ac_func=no"
8574 fi
8575 rm -f conftest*
8576 fi
8577
8578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8579   echo "$ac_t""yes" 1>&6
8580     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8581   cat >> confdefs.h <<EOF
8582 #define $ac_tr_func 1
8583 EOF
8584  
8585 else
8586   echo "$ac_t""no" 1>&6
8587 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8588 fi
8589 done
8590
8591   fi
8592
8593   if test -n "$LIBMATHOBJS"; then
8594     need_libmath=yes
8595   fi
8596   
8597   
8598
8599 if test "$need_libmath" = yes; then
8600   GLIBCPP_BUILD_LIBMATH_TRUE=
8601   GLIBCPP_BUILD_LIBMATH_FALSE='#'
8602 else
8603   GLIBCPP_BUILD_LIBMATH_TRUE='#'
8604   GLIBCPP_BUILD_LIBMATH_FALSE=
8605 fi
8606
8607       
8608     enable_wchar_t=no
8609
8610       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8611 echo "configure:8612: checking for mbstate_t" >&5
8612   cat > conftest.$ac_ext <<EOF
8613 #line 8614 "configure"
8614 #include "confdefs.h"
8615 #include <wchar.h>
8616 int main() {
8617 mbstate_t teststate;
8618 ; return 0; }
8619 EOF
8620 if { (eval echo configure:8621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8621   rm -rf conftest*
8622   have_mbstate_t=yes
8623 else
8624   echo "configure: failed program was:" >&5
8625   cat conftest.$ac_ext >&5
8626   rm -rf conftest*
8627   have_mbstate_t=no
8628 fi
8629 rm -f conftest*
8630   echo "$ac_t""$have_mbstate_t" 1>&6
8631   if test x"$have_mbstate_t" = xyes; then
8632     cat >> confdefs.h <<\EOF
8633 #define HAVE_MBSTATE_T 1
8634 EOF
8635
8636   fi
8637
8638     for ac_hdr in wchar.h
8639 do
8640 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8641 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8642 echo "configure:8643: checking for $ac_hdr" >&5
8643 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8644   echo $ac_n "(cached) $ac_c" 1>&6
8645 else
8646   cat > conftest.$ac_ext <<EOF
8647 #line 8648 "configure"
8648 #include "confdefs.h"
8649 #include <$ac_hdr>
8650 EOF
8651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8652 { (eval echo configure:8653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8654 if test -z "$ac_err"; then
8655   rm -rf conftest*
8656   eval "ac_cv_header_$ac_safe=yes"
8657 else
8658   echo "$ac_err" >&5
8659   echo "configure: failed program was:" >&5
8660   cat conftest.$ac_ext >&5
8661   rm -rf conftest*
8662   eval "ac_cv_header_$ac_safe=no"
8663 fi
8664 rm -f conftest*
8665 fi
8666 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8667   echo "$ac_t""yes" 1>&6
8668     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8669   cat >> confdefs.h <<EOF
8670 #define $ac_tr_hdr 1
8671 EOF
8672  ac_has_wchar_h=yes
8673 else
8674   echo "$ac_t""no" 1>&6
8675 ac_has_wchar_h=no
8676 fi
8677 done
8678
8679   for ac_hdr in wctype.h
8680 do
8681 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8682 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8683 echo "configure:8684: checking for $ac_hdr" >&5
8684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8685   echo $ac_n "(cached) $ac_c" 1>&6
8686 else
8687   cat > conftest.$ac_ext <<EOF
8688 #line 8689 "configure"
8689 #include "confdefs.h"
8690 #include <$ac_hdr>
8691 EOF
8692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8693 { (eval echo configure:8694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8695 if test -z "$ac_err"; then
8696   rm -rf conftest*
8697   eval "ac_cv_header_$ac_safe=yes"
8698 else
8699   echo "$ac_err" >&5
8700   echo "configure: failed program was:" >&5
8701   cat conftest.$ac_ext >&5
8702   rm -rf conftest*
8703   eval "ac_cv_header_$ac_safe=no"
8704 fi
8705 rm -f conftest*
8706 fi
8707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8708   echo "$ac_t""yes" 1>&6
8709     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8710   cat >> confdefs.h <<EOF
8711 #define $ac_tr_hdr 1
8712 EOF
8713  ac_has_wctype_h=yes
8714 else
8715   echo "$ac_t""no" 1>&6
8716 ac_has_wctype_h=no
8717 fi
8718 done
8719
8720
8721     if test x"$ac_has_wchar_h" = xyes &&
8722      test x"$ac_has_wctype_h" = xyes &&
8723      test x"$enable_c_mbchar" != xno; then
8724
8725             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8726 echo "configure:8727: checking for WCHAR_MIN and WCHAR_MAX" >&5
8727     cat > conftest.$ac_ext <<EOF
8728 #line 8729 "configure"
8729 #include "confdefs.h"
8730 #include <wchar.h>
8731 int main() {
8732 int i = WCHAR_MIN; int j = WCHAR_MAX;
8733 ; return 0; }
8734 EOF
8735 if { (eval echo configure:8736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8736   rm -rf conftest*
8737   has_wchar_minmax=yes
8738 else
8739   echo "configure: failed program was:" >&5
8740   cat conftest.$ac_ext >&5
8741   rm -rf conftest*
8742   has_wchar_minmax=no
8743 fi
8744 rm -f conftest*
8745     echo "$ac_t""$has_wchar_minmax" 1>&6
8746
8747             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8748 echo "configure:8749: checking for WEOF" >&5
8749     cat > conftest.$ac_ext <<EOF
8750 #line 8751 "configure"
8751 #include "confdefs.h"
8752
8753       #include <wchar.h>
8754       #include <stddef.h>
8755 int main() {
8756 wint_t i = WEOF;
8757 ; return 0; }
8758 EOF
8759 if { (eval echo configure:8760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8760   rm -rf conftest*
8761   has_weof=yes
8762 else
8763   echo "configure: failed program was:" >&5
8764   cat conftest.$ac_ext >&5
8765   rm -rf conftest*
8766   has_weof=no
8767 fi
8768 rm -f conftest*
8769     echo "$ac_t""$has_weof" 1>&6
8770
8771         ac_wfuncs=yes
8772     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8773 do
8774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8775 echo "configure:8776: checking for $ac_func" >&5
8776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8777   echo $ac_n "(cached) $ac_c" 1>&6
8778 else
8779   cat > conftest.$ac_ext <<EOF
8780 #line 8781 "configure"
8781 #include "confdefs.h"
8782 /* System header to define __stub macros and hopefully few prototypes,
8783     which can conflict with char $ac_func(); below.  */
8784 #include <assert.h>
8785 /* Override any gcc2 internal prototype to avoid an error.  */
8786 /* We use char because int might match the return type of a gcc2
8787     builtin and then its argument prototype would still apply.  */
8788 char $ac_func();
8789
8790 int main() {
8791
8792 /* The GNU C library defines this for functions which it implements
8793     to always fail with ENOSYS.  Some functions are actually named
8794     something starting with __ and the normal name is an alias.  */
8795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8796 choke me
8797 #else
8798 $ac_func();
8799 #endif
8800
8801 ; return 0; }
8802 EOF
8803 if { (eval echo configure:8804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8804   rm -rf conftest*
8805   eval "ac_cv_func_$ac_func=yes"
8806 else
8807   echo "configure: failed program was:" >&5
8808   cat conftest.$ac_ext >&5
8809   rm -rf conftest*
8810   eval "ac_cv_func_$ac_func=no"
8811 fi
8812 rm -f conftest*
8813 fi
8814
8815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8816   echo "$ac_t""yes" 1>&6
8817     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8818   cat >> confdefs.h <<EOF
8819 #define $ac_tr_func 1
8820 EOF
8821  
8822 else
8823   echo "$ac_t""no" 1>&6
8824 \
8825     ac_wfuncs=no
8826 fi
8827 done
8828
8829
8830         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8831     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8832     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8833     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8834     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8835     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8836 do
8837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8838 echo "configure:8839: checking for $ac_func" >&5
8839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8840   echo $ac_n "(cached) $ac_c" 1>&6
8841 else
8842   cat > conftest.$ac_ext <<EOF
8843 #line 8844 "configure"
8844 #include "confdefs.h"
8845 /* System header to define __stub macros and hopefully few prototypes,
8846     which can conflict with char $ac_func(); below.  */
8847 #include <assert.h>
8848 /* Override any gcc2 internal prototype to avoid an error.  */
8849 /* We use char because int might match the return type of a gcc2
8850     builtin and then its argument prototype would still apply.  */
8851 char $ac_func();
8852
8853 int main() {
8854
8855 /* The GNU C library defines this for functions which it implements
8856     to always fail with ENOSYS.  Some functions are actually named
8857     something starting with __ and the normal name is an alias.  */
8858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8859 choke me
8860 #else
8861 $ac_func();
8862 #endif
8863
8864 ; return 0; }
8865 EOF
8866 if { (eval echo configure:8867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8867   rm -rf conftest*
8868   eval "ac_cv_func_$ac_func=yes"
8869 else
8870   echo "configure: failed program was:" >&5
8871   cat conftest.$ac_ext >&5
8872   rm -rf conftest*
8873   eval "ac_cv_func_$ac_func=no"
8874 fi
8875 rm -f conftest*
8876 fi
8877
8878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8879   echo "$ac_t""yes" 1>&6
8880     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8881   cat >> confdefs.h <<EOF
8882 #define $ac_tr_func 1
8883 EOF
8884  
8885 else
8886   echo "$ac_t""no" 1>&6
8887 \
8888     ac_wfuncs=no
8889 fi
8890 done
8891
8892
8893     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8894 echo "configure:8895: checking for ISO C99 wchar_t support" >&5
8895     if test x"$has_weof" = xyes &&
8896        test x"$has_wchar_minmax" = xyes &&
8897        test x"$ac_wfuncs" = xyes; then
8898       ac_isoC99_wchar_t=yes
8899     else
8900       ac_isoC99_wchar_t=no
8901     fi
8902     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8903
8904             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8905 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8906 echo "configure:8907: checking for iconv.h" >&5
8907 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8908   echo $ac_n "(cached) $ac_c" 1>&6
8909 else
8910   cat > conftest.$ac_ext <<EOF
8911 #line 8912 "configure"
8912 #include "confdefs.h"
8913 #include <iconv.h>
8914 EOF
8915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8916 { (eval echo configure:8917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8918 if test -z "$ac_err"; then
8919   rm -rf conftest*
8920   eval "ac_cv_header_$ac_safe=yes"
8921 else
8922   echo "$ac_err" >&5
8923   echo "configure: failed program was:" >&5
8924   cat conftest.$ac_ext >&5
8925   rm -rf conftest*
8926   eval "ac_cv_header_$ac_safe=no"
8927 fi
8928 rm -f conftest*
8929 fi
8930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8931   echo "$ac_t""yes" 1>&6
8932   ac_has_iconv_h=yes
8933 else
8934   echo "$ac_t""no" 1>&6
8935 ac_has_iconv_h=no
8936 fi
8937
8938     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8939 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8940 echo "configure:8941: checking for langinfo.h" >&5
8941 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8942   echo $ac_n "(cached) $ac_c" 1>&6
8943 else
8944   cat > conftest.$ac_ext <<EOF
8945 #line 8946 "configure"
8946 #include "confdefs.h"
8947 #include <langinfo.h>
8948 EOF
8949 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8950 { (eval echo configure:8951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8951 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8952 if test -z "$ac_err"; then
8953   rm -rf conftest*
8954   eval "ac_cv_header_$ac_safe=yes"
8955 else
8956   echo "$ac_err" >&5
8957   echo "configure: failed program was:" >&5
8958   cat conftest.$ac_ext >&5
8959   rm -rf conftest*
8960   eval "ac_cv_header_$ac_safe=no"
8961 fi
8962 rm -f conftest*
8963 fi
8964 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8965   echo "$ac_t""yes" 1>&6
8966   ac_has_langinfo_h=yes
8967 else
8968   echo "$ac_t""no" 1>&6
8969 ac_has_langinfo_h=no
8970 fi
8971
8972
8973         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8974 echo "configure:8975: checking for iconv in -liconv" >&5
8975 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8976 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8977   echo $ac_n "(cached) $ac_c" 1>&6
8978 else
8979   ac_save_LIBS="$LIBS"
8980 LIBS="-liconv  $LIBS"
8981 cat > conftest.$ac_ext <<EOF
8982 #line 8983 "configure"
8983 #include "confdefs.h"
8984 /* Override any gcc2 internal prototype to avoid an error.  */
8985 /* We use char because int might match the return type of a gcc2
8986     builtin and then its argument prototype would still apply.  */
8987 char iconv();
8988
8989 int main() {
8990 iconv()
8991 ; return 0; }
8992 EOF
8993 if { (eval echo configure:8994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8994   rm -rf conftest*
8995   eval "ac_cv_lib_$ac_lib_var=yes"
8996 else
8997   echo "configure: failed program was:" >&5
8998   cat conftest.$ac_ext >&5
8999   rm -rf conftest*
9000   eval "ac_cv_lib_$ac_lib_var=no"
9001 fi
9002 rm -f conftest*
9003 LIBS="$ac_save_LIBS"
9004
9005 fi
9006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9007   echo "$ac_t""yes" 1>&6
9008   libiconv="-liconv"
9009 else
9010   echo "$ac_t""no" 1>&6
9011 fi
9012
9013     ac_save_LIBS="$LIBS"
9014     LIBS="$LIBS $libiconv"
9015
9016     for ac_func in iconv_open iconv_close iconv nl_langinfo
9017 do
9018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9019 echo "configure:9020: checking for $ac_func" >&5
9020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9021   echo $ac_n "(cached) $ac_c" 1>&6
9022 else
9023   cat > conftest.$ac_ext <<EOF
9024 #line 9025 "configure"
9025 #include "confdefs.h"
9026 /* System header to define __stub macros and hopefully few prototypes,
9027     which can conflict with char $ac_func(); below.  */
9028 #include <assert.h>
9029 /* Override any gcc2 internal prototype to avoid an error.  */
9030 /* We use char because int might match the return type of a gcc2
9031     builtin and then its argument prototype would still apply.  */
9032 char $ac_func();
9033
9034 int main() {
9035
9036 /* The GNU C library defines this for functions which it implements
9037     to always fail with ENOSYS.  Some functions are actually named
9038     something starting with __ and the normal name is an alias.  */
9039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9040 choke me
9041 #else
9042 $ac_func();
9043 #endif
9044
9045 ; return 0; }
9046 EOF
9047 if { (eval echo configure:9048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9048   rm -rf conftest*
9049   eval "ac_cv_func_$ac_func=yes"
9050 else
9051   echo "configure: failed program was:" >&5
9052   cat conftest.$ac_ext >&5
9053   rm -rf conftest*
9054   eval "ac_cv_func_$ac_func=no"
9055 fi
9056 rm -f conftest*
9057 fi
9058
9059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9060   echo "$ac_t""yes" 1>&6
9061     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9062   cat >> confdefs.h <<EOF
9063 #define $ac_tr_func 1
9064 EOF
9065  \
9066     ac_XPG2funcs=yes
9067 else
9068   echo "$ac_t""no" 1>&6
9069 ac_XPG2funcs=no
9070 fi
9071 done
9072
9073
9074     LIBS="$ac_save_LIBS"
9075
9076     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9077 echo "configure:9078: checking for XPG2 wchar_t support" >&5
9078     if test x"$ac_has_iconv_h" = xyes &&
9079        test x"$ac_has_langinfo_h" = xyes &&
9080        test x"$ac_XPG2funcs" = xyes; then
9081       ac_XPG2_wchar_t=yes
9082     else
9083       ac_XPG2_wchar_t=no
9084     fi
9085     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9086
9087             if test x"$ac_isoC99_wchar_t" = xyes && 
9088         test x"$ac_XPG2_wchar_t" = xyes; then
9089       cat >> confdefs.h <<\EOF
9090 #define _GLIBCPP_USE_WCHAR_T 1
9091 EOF
9092
9093       enable_wchar_t=yes
9094     fi
9095   fi
9096   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9097 echo "configure:9098: checking for enabled wchar_t specializations" >&5
9098   echo "$ac_t""$enable_wchar_t" 1>&6    
9099   
9100
9101 if test "$enable_wchar_t" = yes; then
9102   GLIBCPP_TEST_WCHAR_T_TRUE=
9103   GLIBCPP_TEST_WCHAR_T_FALSE='#'
9104 else
9105   GLIBCPP_TEST_WCHAR_T_TRUE='#'
9106   GLIBCPP_TEST_WCHAR_T_FALSE=
9107 fi      
9108
9109       os_include_dir="os/mingw32"
9110       ;;
9111     *-windiss*)
9112       os_include_dir="os/windiss"
9113       ;;
9114     *-qnx6.[12]*)
9115       SECTION_FLAGS='-ffunction-sections -fdata-sections'
9116        
9117       
9118   # If we're not using GNU ld, then there's no point in even trying these
9119   # tests.  Check for that first.  We should have already tested for gld
9120   # by now (in libtool), but require it now just to be safe...
9121   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9122   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9123   
9124
9125   # The name set by libtool depends on the version of libtool.  Shame on us
9126   # for depending on an impl detail, but c'est la vie.  Older versions used
9127   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9128   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9129   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9130   # set (hence we're using an older libtool), then set it.
9131   if test x${with_gnu_ld+set} != xset; then
9132     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9133       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9134       with_gnu_ld=no
9135     else
9136       with_gnu_ld=$ac_cv_prog_gnu_ld
9137     fi
9138   fi
9139
9140   # Start by getting the version number.  I think the libtool test already
9141   # does some of this, but throws away the result.
9142   
9143   ldver=`$LD --version 2>/dev/null | head -1 | \
9144          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9145   
9146   glibcpp_gnu_ld_version=`echo $ldver | \
9147          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9148
9149   # Set --gc-sections.
9150   if test "$with_gnu_ld" = "notbroken"; then
9151     # GNU ld it is!  Joy and bunny rabbits!
9152
9153     # All these tests are for C++; save the language and the compiler flags.
9154     # Need to do this so that g++ won't try to link in libstdc++
9155     ac_test_CFLAGS="${CFLAGS+set}"
9156     ac_save_CFLAGS="$CFLAGS"
9157     CFLAGS='-x c++  -Wl,--gc-sections'
9158
9159     # Check for -Wl,--gc-sections
9160     # XXX This test is broken at the moment, as symbols required for
9161     # linking are now in libsupc++ (not built yet.....). In addition,
9162     # this test has cored on solaris in the past. In addition,
9163     # --gc-sections doesn't really work at the moment (keeps on discarding
9164     # used sections, first .eh_frame and now some of the glibc sections for
9165     # iconv). Bzzzzt. Thanks for playing, maybe next time.
9166     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9167 echo "configure:9168: checking for ld that supports -Wl,--gc-sections" >&5
9168     if test "$cross_compiling" = yes; then
9169   ac_sectionLDflags=yes
9170 else
9171   cat > conftest.$ac_ext <<EOF
9172 #line 9173 "configure"
9173 #include "confdefs.h"
9174
9175      int main(void)
9176      {
9177        try { throw 1; }
9178        catch (...) { };
9179        return 0;
9180      }
9181     
9182 EOF
9183 if { (eval echo configure:9184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9184 then
9185   ac_sectionLDflags=yes
9186 else
9187   echo "configure: failed program was:" >&5
9188   cat conftest.$ac_ext >&5
9189   rm -fr conftest*
9190   ac_sectionLDflags=no
9191 fi
9192 rm -fr conftest*
9193 fi
9194
9195     if test "$ac_test_CFLAGS" = set; then
9196       CFLAGS="$ac_save_CFLAGS"
9197     else
9198       # this is the suspicious part
9199       CFLAGS=''
9200     fi
9201     if test "$ac_sectionLDflags" = "yes"; then
9202       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9203     fi
9204     echo "$ac_t""$ac_sectionLDflags" 1>&6
9205   fi
9206
9207   # Set linker optimization flags.
9208   if test x"$with_gnu_ld" = x"yes"; then
9209     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9210   fi
9211
9212   
9213   
9214
9215       
9216     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9217 echo "configure:9218: checking for main in -lm" >&5
9218 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9220   echo $ac_n "(cached) $ac_c" 1>&6
9221 else
9222   ac_save_LIBS="$LIBS"
9223 LIBS="-lm  $LIBS"
9224 cat > conftest.$ac_ext <<EOF
9225 #line 9226 "configure"
9226 #include "confdefs.h"
9227
9228 int main() {
9229 main()
9230 ; return 0; }
9231 EOF
9232 if { (eval echo configure:9233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9233   rm -rf conftest*
9234   eval "ac_cv_lib_$ac_lib_var=yes"
9235 else
9236   echo "configure: failed program was:" >&5
9237   cat conftest.$ac_ext >&5
9238   rm -rf conftest*
9239   eval "ac_cv_lib_$ac_lib_var=no"
9240 fi
9241 rm -f conftest*
9242 LIBS="$ac_save_LIBS"
9243
9244 fi
9245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9246   echo "$ac_t""yes" 1>&6
9247     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9248     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9249   cat >> confdefs.h <<EOF
9250 #define $ac_tr_lib 1
9251 EOF
9252
9253   LIBS="-lm $LIBS"
9254
9255 else
9256   echo "$ac_t""no" 1>&6
9257 fi
9258
9259   for ac_func in nan copysignf
9260 do
9261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9262 echo "configure:9263: checking for $ac_func" >&5
9263 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9264   echo $ac_n "(cached) $ac_c" 1>&6
9265 else
9266   cat > conftest.$ac_ext <<EOF
9267 #line 9268 "configure"
9268 #include "confdefs.h"
9269 /* System header to define __stub macros and hopefully few prototypes,
9270     which can conflict with char $ac_func(); below.  */
9271 #include <assert.h>
9272 /* Override any gcc2 internal prototype to avoid an error.  */
9273 /* We use char because int might match the return type of a gcc2
9274     builtin and then its argument prototype would still apply.  */
9275 char $ac_func();
9276
9277 int main() {
9278
9279 /* The GNU C library defines this for functions which it implements
9280     to always fail with ENOSYS.  Some functions are actually named
9281     something starting with __ and the normal name is an alias.  */
9282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9283 choke me
9284 #else
9285 $ac_func();
9286 #endif
9287
9288 ; return 0; }
9289 EOF
9290 if { (eval echo configure:9291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9291   rm -rf conftest*
9292   eval "ac_cv_func_$ac_func=yes"
9293 else
9294   echo "configure: failed program was:" >&5
9295   cat conftest.$ac_ext >&5
9296   rm -rf conftest*
9297   eval "ac_cv_func_$ac_func=no"
9298 fi
9299 rm -f conftest*
9300 fi
9301
9302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9303   echo "$ac_t""yes" 1>&6
9304     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9305   cat >> confdefs.h <<EOF
9306 #define $ac_tr_func 1
9307 EOF
9308  
9309 else
9310   echo "$ac_t""no" 1>&6
9311 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9312 fi
9313 done
9314
9315
9316     for ac_func in __signbit
9317 do
9318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9319 echo "configure:9320: checking for $ac_func" >&5
9320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9321   echo $ac_n "(cached) $ac_c" 1>&6
9322 else
9323   cat > conftest.$ac_ext <<EOF
9324 #line 9325 "configure"
9325 #include "confdefs.h"
9326 /* System header to define __stub macros and hopefully few prototypes,
9327     which can conflict with char $ac_func(); below.  */
9328 #include <assert.h>
9329 /* Override any gcc2 internal prototype to avoid an error.  */
9330 /* We use char because int might match the return type of a gcc2
9331     builtin and then its argument prototype would still apply.  */
9332 char $ac_func();
9333
9334 int main() {
9335
9336 /* The GNU C library defines this for functions which it implements
9337     to always fail with ENOSYS.  Some functions are actually named
9338     something starting with __ and the normal name is an alias.  */
9339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9340 choke me
9341 #else
9342 $ac_func();
9343 #endif
9344
9345 ; return 0; }
9346 EOF
9347 if { (eval echo configure:9348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9348   rm -rf conftest*
9349   eval "ac_cv_func_$ac_func=yes"
9350 else
9351   echo "configure: failed program was:" >&5
9352   cat conftest.$ac_ext >&5
9353   rm -rf conftest*
9354   eval "ac_cv_func_$ac_func=no"
9355 fi
9356 rm -f conftest*
9357 fi
9358
9359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9360   echo "$ac_t""yes" 1>&6
9361     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9362   cat >> confdefs.h <<EOF
9363 #define $ac_tr_func 1
9364 EOF
9365  
9366 else
9367   echo "$ac_t""no" 1>&6
9368 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9369 fi
9370 done
9371
9372   for ac_func in __signbitf
9373 do
9374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9375 echo "configure:9376: checking for $ac_func" >&5
9376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9377   echo $ac_n "(cached) $ac_c" 1>&6
9378 else
9379   cat > conftest.$ac_ext <<EOF
9380 #line 9381 "configure"
9381 #include "confdefs.h"
9382 /* System header to define __stub macros and hopefully few prototypes,
9383     which can conflict with char $ac_func(); below.  */
9384 #include <assert.h>
9385 /* Override any gcc2 internal prototype to avoid an error.  */
9386 /* We use char because int might match the return type of a gcc2
9387     builtin and then its argument prototype would still apply.  */
9388 char $ac_func();
9389
9390 int main() {
9391
9392 /* The GNU C library defines this for functions which it implements
9393     to always fail with ENOSYS.  Some functions are actually named
9394     something starting with __ and the normal name is an alias.  */
9395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9396 choke me
9397 #else
9398 $ac_func();
9399 #endif
9400
9401 ; return 0; }
9402 EOF
9403 if { (eval echo configure:9404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9404   rm -rf conftest*
9405   eval "ac_cv_func_$ac_func=yes"
9406 else
9407   echo "configure: failed program was:" >&5
9408   cat conftest.$ac_ext >&5
9409   rm -rf conftest*
9410   eval "ac_cv_func_$ac_func=no"
9411 fi
9412 rm -f conftest*
9413 fi
9414
9415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9416   echo "$ac_t""yes" 1>&6
9417     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9418   cat >> confdefs.h <<EOF
9419 #define $ac_tr_func 1
9420 EOF
9421  
9422 else
9423   echo "$ac_t""no" 1>&6
9424 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9425 fi
9426 done
9427
9428
9429           if test x$ac_cv_func_copysignl = x"yes"; then
9430     for ac_func in __signbitl
9431 do
9432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9433 echo "configure:9434: checking for $ac_func" >&5
9434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9435   echo $ac_n "(cached) $ac_c" 1>&6
9436 else
9437   cat > conftest.$ac_ext <<EOF
9438 #line 9439 "configure"
9439 #include "confdefs.h"
9440 /* System header to define __stub macros and hopefully few prototypes,
9441     which can conflict with char $ac_func(); below.  */
9442 #include <assert.h>
9443 /* Override any gcc2 internal prototype to avoid an error.  */
9444 /* We use char because int might match the return type of a gcc2
9445     builtin and then its argument prototype would still apply.  */
9446 char $ac_func();
9447
9448 int main() {
9449
9450 /* The GNU C library defines this for functions which it implements
9451     to always fail with ENOSYS.  Some functions are actually named
9452     something starting with __ and the normal name is an alias.  */
9453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9454 choke me
9455 #else
9456 $ac_func();
9457 #endif
9458
9459 ; return 0; }
9460 EOF
9461 if { (eval echo configure:9462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9462   rm -rf conftest*
9463   eval "ac_cv_func_$ac_func=yes"
9464 else
9465   echo "configure: failed program was:" >&5
9466   cat conftest.$ac_ext >&5
9467   rm -rf conftest*
9468   eval "ac_cv_func_$ac_func=no"
9469 fi
9470 rm -f conftest*
9471 fi
9472
9473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9474   echo "$ac_t""yes" 1>&6
9475     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9476   cat >> confdefs.h <<EOF
9477 #define $ac_tr_func 1
9478 EOF
9479  
9480 else
9481   echo "$ac_t""no" 1>&6
9482 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9483 fi
9484 done
9485
9486   fi
9487
9488   if test -n "$LIBMATHOBJS"; then
9489     need_libmath=yes
9490   fi
9491   
9492   
9493
9494 if test "$need_libmath" = yes; then
9495   GLIBCPP_BUILD_LIBMATH_TRUE=
9496   GLIBCPP_BUILD_LIBMATH_FALSE='#'
9497 else
9498   GLIBCPP_BUILD_LIBMATH_TRUE='#'
9499   GLIBCPP_BUILD_LIBMATH_FALSE=
9500 fi
9501
9502       
9503     enable_wchar_t=no
9504
9505       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9506 echo "configure:9507: checking for mbstate_t" >&5
9507   cat > conftest.$ac_ext <<EOF
9508 #line 9509 "configure"
9509 #include "confdefs.h"
9510 #include <wchar.h>
9511 int main() {
9512 mbstate_t teststate;
9513 ; return 0; }
9514 EOF
9515 if { (eval echo configure:9516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9516   rm -rf conftest*
9517   have_mbstate_t=yes
9518 else
9519   echo "configure: failed program was:" >&5
9520   cat conftest.$ac_ext >&5
9521   rm -rf conftest*
9522   have_mbstate_t=no
9523 fi
9524 rm -f conftest*
9525   echo "$ac_t""$have_mbstate_t" 1>&6
9526   if test x"$have_mbstate_t" = xyes; then
9527     cat >> confdefs.h <<\EOF
9528 #define HAVE_MBSTATE_T 1
9529 EOF
9530
9531   fi
9532
9533     for ac_hdr in wchar.h
9534 do
9535 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9537 echo "configure:9538: checking for $ac_hdr" >&5
9538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9539   echo $ac_n "(cached) $ac_c" 1>&6
9540 else
9541   cat > conftest.$ac_ext <<EOF
9542 #line 9543 "configure"
9543 #include "confdefs.h"
9544 #include <$ac_hdr>
9545 EOF
9546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9547 { (eval echo configure:9548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9549 if test -z "$ac_err"; then
9550   rm -rf conftest*
9551   eval "ac_cv_header_$ac_safe=yes"
9552 else
9553   echo "$ac_err" >&5
9554   echo "configure: failed program was:" >&5
9555   cat conftest.$ac_ext >&5
9556   rm -rf conftest*
9557   eval "ac_cv_header_$ac_safe=no"
9558 fi
9559 rm -f conftest*
9560 fi
9561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9562   echo "$ac_t""yes" 1>&6
9563     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9564   cat >> confdefs.h <<EOF
9565 #define $ac_tr_hdr 1
9566 EOF
9567  ac_has_wchar_h=yes
9568 else
9569   echo "$ac_t""no" 1>&6
9570 ac_has_wchar_h=no
9571 fi
9572 done
9573
9574   for ac_hdr in wctype.h
9575 do
9576 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9577 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9578 echo "configure:9579: checking for $ac_hdr" >&5
9579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9580   echo $ac_n "(cached) $ac_c" 1>&6
9581 else
9582   cat > conftest.$ac_ext <<EOF
9583 #line 9584 "configure"
9584 #include "confdefs.h"
9585 #include <$ac_hdr>
9586 EOF
9587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9588 { (eval echo configure:9589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9590 if test -z "$ac_err"; then
9591   rm -rf conftest*
9592   eval "ac_cv_header_$ac_safe=yes"
9593 else
9594   echo "$ac_err" >&5
9595   echo "configure: failed program was:" >&5
9596   cat conftest.$ac_ext >&5
9597   rm -rf conftest*
9598   eval "ac_cv_header_$ac_safe=no"
9599 fi
9600 rm -f conftest*
9601 fi
9602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9603   echo "$ac_t""yes" 1>&6
9604     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9605   cat >> confdefs.h <<EOF
9606 #define $ac_tr_hdr 1
9607 EOF
9608  ac_has_wctype_h=yes
9609 else
9610   echo "$ac_t""no" 1>&6
9611 ac_has_wctype_h=no
9612 fi
9613 done
9614
9615
9616     if test x"$ac_has_wchar_h" = xyes &&
9617      test x"$ac_has_wctype_h" = xyes &&
9618      test x"$enable_c_mbchar" != xno; then
9619
9620             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9621 echo "configure:9622: checking for WCHAR_MIN and WCHAR_MAX" >&5
9622     cat > conftest.$ac_ext <<EOF
9623 #line 9624 "configure"
9624 #include "confdefs.h"
9625 #include <wchar.h>
9626 int main() {
9627 int i = WCHAR_MIN; int j = WCHAR_MAX;
9628 ; return 0; }
9629 EOF
9630 if { (eval echo configure:9631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9631   rm -rf conftest*
9632   has_wchar_minmax=yes
9633 else
9634   echo "configure: failed program was:" >&5
9635   cat conftest.$ac_ext >&5
9636   rm -rf conftest*
9637   has_wchar_minmax=no
9638 fi
9639 rm -f conftest*
9640     echo "$ac_t""$has_wchar_minmax" 1>&6
9641
9642             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9643 echo "configure:9644: checking for WEOF" >&5
9644     cat > conftest.$ac_ext <<EOF
9645 #line 9646 "configure"
9646 #include "confdefs.h"
9647
9648       #include <wchar.h>
9649       #include <stddef.h>
9650 int main() {
9651 wint_t i = WEOF;
9652 ; return 0; }
9653 EOF
9654 if { (eval echo configure:9655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9655   rm -rf conftest*
9656   has_weof=yes
9657 else
9658   echo "configure: failed program was:" >&5
9659   cat conftest.$ac_ext >&5
9660   rm -rf conftest*
9661   has_weof=no
9662 fi
9663 rm -f conftest*
9664     echo "$ac_t""$has_weof" 1>&6
9665
9666         ac_wfuncs=yes
9667     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9668 do
9669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9670 echo "configure:9671: checking for $ac_func" >&5
9671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9672   echo $ac_n "(cached) $ac_c" 1>&6
9673 else
9674   cat > conftest.$ac_ext <<EOF
9675 #line 9676 "configure"
9676 #include "confdefs.h"
9677 /* System header to define __stub macros and hopefully few prototypes,
9678     which can conflict with char $ac_func(); below.  */
9679 #include <assert.h>
9680 /* Override any gcc2 internal prototype to avoid an error.  */
9681 /* We use char because int might match the return type of a gcc2
9682     builtin and then its argument prototype would still apply.  */
9683 char $ac_func();
9684
9685 int main() {
9686
9687 /* The GNU C library defines this for functions which it implements
9688     to always fail with ENOSYS.  Some functions are actually named
9689     something starting with __ and the normal name is an alias.  */
9690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9691 choke me
9692 #else
9693 $ac_func();
9694 #endif
9695
9696 ; return 0; }
9697 EOF
9698 if { (eval echo configure:9699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9699   rm -rf conftest*
9700   eval "ac_cv_func_$ac_func=yes"
9701 else
9702   echo "configure: failed program was:" >&5
9703   cat conftest.$ac_ext >&5
9704   rm -rf conftest*
9705   eval "ac_cv_func_$ac_func=no"
9706 fi
9707 rm -f conftest*
9708 fi
9709
9710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9711   echo "$ac_t""yes" 1>&6
9712     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9713   cat >> confdefs.h <<EOF
9714 #define $ac_tr_func 1
9715 EOF
9716  
9717 else
9718   echo "$ac_t""no" 1>&6
9719 \
9720     ac_wfuncs=no
9721 fi
9722 done
9723
9724
9725         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9726     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9727     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9728     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9729     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9730     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9731 do
9732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9733 echo "configure:9734: checking for $ac_func" >&5
9734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9735   echo $ac_n "(cached) $ac_c" 1>&6
9736 else
9737   cat > conftest.$ac_ext <<EOF
9738 #line 9739 "configure"
9739 #include "confdefs.h"
9740 /* System header to define __stub macros and hopefully few prototypes,
9741     which can conflict with char $ac_func(); below.  */
9742 #include <assert.h>
9743 /* Override any gcc2 internal prototype to avoid an error.  */
9744 /* We use char because int might match the return type of a gcc2
9745     builtin and then its argument prototype would still apply.  */
9746 char $ac_func();
9747
9748 int main() {
9749
9750 /* The GNU C library defines this for functions which it implements
9751     to always fail with ENOSYS.  Some functions are actually named
9752     something starting with __ and the normal name is an alias.  */
9753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9754 choke me
9755 #else
9756 $ac_func();
9757 #endif
9758
9759 ; return 0; }
9760 EOF
9761 if { (eval echo configure:9762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9762   rm -rf conftest*
9763   eval "ac_cv_func_$ac_func=yes"
9764 else
9765   echo "configure: failed program was:" >&5
9766   cat conftest.$ac_ext >&5
9767   rm -rf conftest*
9768   eval "ac_cv_func_$ac_func=no"
9769 fi
9770 rm -f conftest*
9771 fi
9772
9773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9774   echo "$ac_t""yes" 1>&6
9775     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9776   cat >> confdefs.h <<EOF
9777 #define $ac_tr_func 1
9778 EOF
9779  
9780 else
9781   echo "$ac_t""no" 1>&6
9782 \
9783     ac_wfuncs=no
9784 fi
9785 done
9786
9787
9788     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9789 echo "configure:9790: checking for ISO C99 wchar_t support" >&5
9790     if test x"$has_weof" = xyes &&
9791        test x"$has_wchar_minmax" = xyes &&
9792        test x"$ac_wfuncs" = xyes; then
9793       ac_isoC99_wchar_t=yes
9794     else
9795       ac_isoC99_wchar_t=no
9796     fi
9797     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9798
9799             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9800 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9801 echo "configure:9802: checking for iconv.h" >&5
9802 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9803   echo $ac_n "(cached) $ac_c" 1>&6
9804 else
9805   cat > conftest.$ac_ext <<EOF
9806 #line 9807 "configure"
9807 #include "confdefs.h"
9808 #include <iconv.h>
9809 EOF
9810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9811 { (eval echo configure:9812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9813 if test -z "$ac_err"; then
9814   rm -rf conftest*
9815   eval "ac_cv_header_$ac_safe=yes"
9816 else
9817   echo "$ac_err" >&5
9818   echo "configure: failed program was:" >&5
9819   cat conftest.$ac_ext >&5
9820   rm -rf conftest*
9821   eval "ac_cv_header_$ac_safe=no"
9822 fi
9823 rm -f conftest*
9824 fi
9825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9826   echo "$ac_t""yes" 1>&6
9827   ac_has_iconv_h=yes
9828 else
9829   echo "$ac_t""no" 1>&6
9830 ac_has_iconv_h=no
9831 fi
9832
9833     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9834 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9835 echo "configure:9836: checking for langinfo.h" >&5
9836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9837   echo $ac_n "(cached) $ac_c" 1>&6
9838 else
9839   cat > conftest.$ac_ext <<EOF
9840 #line 9841 "configure"
9841 #include "confdefs.h"
9842 #include <langinfo.h>
9843 EOF
9844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9845 { (eval echo configure:9846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9847 if test -z "$ac_err"; then
9848   rm -rf conftest*
9849   eval "ac_cv_header_$ac_safe=yes"
9850 else
9851   echo "$ac_err" >&5
9852   echo "configure: failed program was:" >&5
9853   cat conftest.$ac_ext >&5
9854   rm -rf conftest*
9855   eval "ac_cv_header_$ac_safe=no"
9856 fi
9857 rm -f conftest*
9858 fi
9859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9860   echo "$ac_t""yes" 1>&6
9861   ac_has_langinfo_h=yes
9862 else
9863   echo "$ac_t""no" 1>&6
9864 ac_has_langinfo_h=no
9865 fi
9866
9867
9868         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9869 echo "configure:9870: checking for iconv in -liconv" >&5
9870 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9872   echo $ac_n "(cached) $ac_c" 1>&6
9873 else
9874   ac_save_LIBS="$LIBS"
9875 LIBS="-liconv  $LIBS"
9876 cat > conftest.$ac_ext <<EOF
9877 #line 9878 "configure"
9878 #include "confdefs.h"
9879 /* Override any gcc2 internal prototype to avoid an error.  */
9880 /* We use char because int might match the return type of a gcc2
9881     builtin and then its argument prototype would still apply.  */
9882 char iconv();
9883
9884 int main() {
9885 iconv()
9886 ; return 0; }
9887 EOF
9888 if { (eval echo configure:9889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9889   rm -rf conftest*
9890   eval "ac_cv_lib_$ac_lib_var=yes"
9891 else
9892   echo "configure: failed program was:" >&5
9893   cat conftest.$ac_ext >&5
9894   rm -rf conftest*
9895   eval "ac_cv_lib_$ac_lib_var=no"
9896 fi
9897 rm -f conftest*
9898 LIBS="$ac_save_LIBS"
9899
9900 fi
9901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9902   echo "$ac_t""yes" 1>&6
9903   libiconv="-liconv"
9904 else
9905   echo "$ac_t""no" 1>&6
9906 fi
9907
9908     ac_save_LIBS="$LIBS"
9909     LIBS="$LIBS $libiconv"
9910
9911     for ac_func in iconv_open iconv_close iconv nl_langinfo
9912 do
9913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9914 echo "configure:9915: checking for $ac_func" >&5
9915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9916   echo $ac_n "(cached) $ac_c" 1>&6
9917 else
9918   cat > conftest.$ac_ext <<EOF
9919 #line 9920 "configure"
9920 #include "confdefs.h"
9921 /* System header to define __stub macros and hopefully few prototypes,
9922     which can conflict with char $ac_func(); below.  */
9923 #include <assert.h>
9924 /* Override any gcc2 internal prototype to avoid an error.  */
9925 /* We use char because int might match the return type of a gcc2
9926     builtin and then its argument prototype would still apply.  */
9927 char $ac_func();
9928
9929 int main() {
9930
9931 /* The GNU C library defines this for functions which it implements
9932     to always fail with ENOSYS.  Some functions are actually named
9933     something starting with __ and the normal name is an alias.  */
9934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9935 choke me
9936 #else
9937 $ac_func();
9938 #endif
9939
9940 ; return 0; }
9941 EOF
9942 if { (eval echo configure:9943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9943   rm -rf conftest*
9944   eval "ac_cv_func_$ac_func=yes"
9945 else
9946   echo "configure: failed program was:" >&5
9947   cat conftest.$ac_ext >&5
9948   rm -rf conftest*
9949   eval "ac_cv_func_$ac_func=no"
9950 fi
9951 rm -f conftest*
9952 fi
9953
9954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9955   echo "$ac_t""yes" 1>&6
9956     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9957   cat >> confdefs.h <<EOF
9958 #define $ac_tr_func 1
9959 EOF
9960  \
9961     ac_XPG2funcs=yes
9962 else
9963   echo "$ac_t""no" 1>&6
9964 ac_XPG2funcs=no
9965 fi
9966 done
9967
9968
9969     LIBS="$ac_save_LIBS"
9970
9971     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9972 echo "configure:9973: checking for XPG2 wchar_t support" >&5
9973     if test x"$ac_has_iconv_h" = xyes &&
9974        test x"$ac_has_langinfo_h" = xyes &&
9975        test x"$ac_XPG2funcs" = xyes; then
9976       ac_XPG2_wchar_t=yes
9977     else
9978       ac_XPG2_wchar_t=no
9979     fi
9980     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9981
9982             if test x"$ac_isoC99_wchar_t" = xyes && 
9983         test x"$ac_XPG2_wchar_t" = xyes; then
9984       cat >> confdefs.h <<\EOF
9985 #define _GLIBCPP_USE_WCHAR_T 1
9986 EOF
9987
9988       enable_wchar_t=yes
9989     fi
9990   fi
9991   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9992 echo "configure:9993: checking for enabled wchar_t specializations" >&5
9993   echo "$ac_t""$enable_wchar_t" 1>&6    
9994   
9995
9996 if test "$enable_wchar_t" = yes; then
9997   GLIBCPP_TEST_WCHAR_T_TRUE=
9998   GLIBCPP_TEST_WCHAR_T_FALSE='#'
9999 else
10000   GLIBCPP_TEST_WCHAR_T_TRUE='#'
10001   GLIBCPP_TEST_WCHAR_T_FALSE=
10002 fi      
10003
10004       os_include_dir="os/qnx/qnx6.1"
10005       cat >> confdefs.h <<\EOF
10006 #define HAVE_COSF 1
10007 EOF
10008
10009       cat >> confdefs.h <<\EOF
10010 #define HAVE_COSL 1
10011 EOF
10012
10013       cat >> confdefs.h <<\EOF
10014 #define HAVE_COSHF 1
10015 EOF
10016
10017       cat >> confdefs.h <<\EOF
10018 #define HAVE_COSHL 1
10019 EOF
10020
10021       cat >> confdefs.h <<\EOF
10022 #define HAVE_LOGF 1
10023 EOF
10024
10025       cat >> confdefs.h <<\EOF
10026 #define HAVE_LOGL 1
10027 EOF
10028
10029       cat >> confdefs.h <<\EOF
10030 #define HAVE_LOG10F 1
10031 EOF
10032
10033       cat >> confdefs.h <<\EOF
10034 #define HAVE_LOG10L 1
10035 EOF
10036
10037       cat >> confdefs.h <<\EOF
10038 #define HAVE_SINF 1
10039 EOF
10040
10041       cat >> confdefs.h <<\EOF
10042 #define HAVE_SINL 1
10043 EOF
10044
10045       cat >> confdefs.h <<\EOF
10046 #define HAVE_SINHF 1
10047 EOF
10048
10049       cat >> confdefs.h <<\EOF
10050 #define HAVE_SINHL 1
10051 EOF
10052
10053       ;;
10054     *)
10055       os_include_dir="os/newlib"
10056       cat >> confdefs.h <<\EOF
10057 #define HAVE_HYPOT 1
10058 EOF
10059
10060       ;;
10061   esac
10062
10063   case "$target" in
10064     *-mingw32*)
10065       ;;
10066     *-windiss*)
10067       cat >> confdefs.h <<\EOF
10068 #define HAVE_ACOSF 1
10069 EOF
10070
10071       cat >> confdefs.h <<\EOF
10072 #define HAVE_ASINF 1
10073 EOF
10074
10075       cat >> confdefs.h <<\EOF
10076 #define HAVE_ATAN2F 1
10077 EOF
10078
10079       cat >> confdefs.h <<\EOF
10080 #define HAVE_ATANF 1
10081 EOF
10082
10083       cat >> confdefs.h <<\EOF
10084 #define HAVE_CEILF 1
10085 EOF
10086
10087       cat >> confdefs.h <<\EOF
10088 #define HAVE_COPYSIGN 1
10089 EOF
10090
10091       cat >> confdefs.h <<\EOF
10092 #define HAVE_COPYSIGNF 1
10093 EOF
10094
10095       cat >> confdefs.h <<\EOF
10096 #define HAVE_COSF 1
10097 EOF
10098
10099       cat >> confdefs.h <<\EOF
10100 #define HAVE_COSHF 1
10101 EOF
10102
10103       cat >> confdefs.h <<\EOF
10104 #define HAVE_EXPF 1
10105 EOF
10106
10107       cat >> confdefs.h <<\EOF
10108 #define HAVE_FABSF 1
10109 EOF
10110
10111       cat >> confdefs.h <<\EOF
10112 #define HAVE_FLOORF 1
10113 EOF
10114
10115       cat >> confdefs.h <<\EOF
10116 #define HAVE_FMODF 1
10117 EOF
10118
10119       cat >> confdefs.h <<\EOF
10120 #define HAVE_FREXPF 1
10121 EOF
10122
10123       cat >> confdefs.h <<\EOF
10124 #define HAVE_LDEXPF 1
10125 EOF
10126
10127       cat >> confdefs.h <<\EOF
10128 #define HAVE_LOG10F 1
10129 EOF
10130
10131       cat >> confdefs.h <<\EOF
10132 #define HAVE_LOGF 1
10133 EOF
10134
10135       cat >> confdefs.h <<\EOF
10136 #define HAVE_MODFF 1
10137 EOF
10138
10139       cat >> confdefs.h <<\EOF
10140 #define HAVE_POWF 1
10141 EOF
10142
10143       cat >> confdefs.h <<\EOF
10144 #define HAVE_SINF 1
10145 EOF
10146
10147       cat >> confdefs.h <<\EOF
10148 #define HAVE_SINHF 1
10149 EOF
10150
10151       cat >> confdefs.h <<\EOF
10152 #define HAVE_SQRTF 1
10153 EOF
10154
10155       cat >> confdefs.h <<\EOF
10156 #define HAVE_TANF 1
10157 EOF
10158
10159       cat >> confdefs.h <<\EOF
10160 #define HAVE_TANHF 1
10161 EOF
10162
10163       ;;
10164     *-freebsd*)
10165       # Must replicate generic section since we don't have strtof or strtold.
10166       cat >> confdefs.h <<\EOF
10167 #define HAVE_MMAP 1
10168 EOF
10169
10170       cat >> confdefs.h <<\EOF
10171 #define HAVE_ACOSF 1
10172 EOF
10173
10174       cat >> confdefs.h <<\EOF
10175 #define HAVE_ASINF 1
10176 EOF
10177
10178       cat >> confdefs.h <<\EOF
10179 #define HAVE_ATAN2F 1
10180 EOF
10181
10182       cat >> confdefs.h <<\EOF
10183 #define HAVE_ATANF 1
10184 EOF
10185
10186       cat >> confdefs.h <<\EOF
10187 #define HAVE_CEILF 1
10188 EOF
10189
10190       cat >> confdefs.h <<\EOF
10191 #define HAVE_COPYSIGN 1
10192 EOF
10193
10194       cat >> confdefs.h <<\EOF
10195 #define HAVE_COPYSIGNF 1
10196 EOF
10197
10198       cat >> confdefs.h <<\EOF
10199 #define HAVE_COSF 1
10200 EOF
10201
10202       cat >> confdefs.h <<\EOF
10203 #define HAVE_COSHF 1
10204 EOF
10205
10206       cat >> confdefs.h <<\EOF
10207 #define HAVE_EXPF 1
10208 EOF
10209
10210       cat >> confdefs.h <<\EOF
10211 #define HAVE_FABSF 1
10212 EOF
10213
10214       cat >> confdefs.h <<\EOF
10215 #define HAVE_FLOORF 1
10216 EOF
10217
10218       cat >> confdefs.h <<\EOF
10219 #define HAVE_FMODF 1
10220 EOF
10221
10222       cat >> confdefs.h <<\EOF
10223 #define HAVE_FREXPF 1
10224 EOF
10225
10226       cat >> confdefs.h <<\EOF
10227 #define HAVE_LDEXPF 1
10228 EOF
10229
10230       cat >> confdefs.h <<\EOF
10231 #define HAVE_LOG10F 1
10232 EOF
10233
10234       cat >> confdefs.h <<\EOF
10235 #define HAVE_LOGF 1
10236 EOF
10237
10238       cat >> confdefs.h <<\EOF
10239 #define HAVE_MODFF 1
10240 EOF
10241
10242       cat >> confdefs.h <<\EOF
10243 #define HAVE_POWF 1
10244 EOF
10245
10246       cat >> confdefs.h <<\EOF
10247 #define HAVE_SINF 1
10248 EOF
10249
10250       cat >> confdefs.h <<\EOF
10251 #define HAVE_SINHF 1
10252 EOF
10253
10254       cat >> confdefs.h <<\EOF
10255 #define HAVE_SQRTF 1
10256 EOF
10257
10258       cat >> confdefs.h <<\EOF
10259 #define HAVE_TANF 1
10260 EOF
10261
10262       cat >> confdefs.h <<\EOF
10263 #define HAVE_TANHF 1
10264 EOF
10265
10266       ;;
10267     *)
10268       # GLIBCPP_CHECK_STDLIB_SUPPORT
10269       cat >> confdefs.h <<\EOF
10270 #define HAVE_STRTOF 1
10271 EOF
10272         
10273       cat >> confdefs.h <<\EOF
10274 #define HAVE_STRTOLD 1
10275 EOF
10276         
10277       # AC_FUNC_MMAP
10278       cat >> confdefs.h <<\EOF
10279 #define HAVE_MMAP 1
10280 EOF
10281
10282
10283       cat >> confdefs.h <<\EOF
10284 #define HAVE_ACOSF 1
10285 EOF
10286
10287       cat >> confdefs.h <<\EOF
10288 #define HAVE_ASINF 1
10289 EOF
10290
10291       cat >> confdefs.h <<\EOF
10292 #define HAVE_ATAN2F 1
10293 EOF
10294
10295       cat >> confdefs.h <<\EOF
10296 #define HAVE_ATANF 1
10297 EOF
10298
10299       cat >> confdefs.h <<\EOF
10300 #define HAVE_CEILF 1
10301 EOF
10302
10303       cat >> confdefs.h <<\EOF
10304 #define HAVE_COPYSIGN 1
10305 EOF
10306
10307       cat >> confdefs.h <<\EOF
10308 #define HAVE_COPYSIGNF 1
10309 EOF
10310
10311       cat >> confdefs.h <<\EOF
10312 #define HAVE_COSF 1
10313 EOF
10314
10315       cat >> confdefs.h <<\EOF
10316 #define HAVE_COSHF 1
10317 EOF
10318
10319       cat >> confdefs.h <<\EOF
10320 #define HAVE_EXPF 1
10321 EOF
10322
10323       cat >> confdefs.h <<\EOF
10324 #define HAVE_FABSF 1
10325 EOF
10326
10327       cat >> confdefs.h <<\EOF
10328 #define HAVE_FLOORF 1
10329 EOF
10330
10331       cat >> confdefs.h <<\EOF
10332 #define HAVE_FMODF 1
10333 EOF
10334
10335       cat >> confdefs.h <<\EOF
10336 #define HAVE_FREXPF 1
10337 EOF
10338
10339       cat >> confdefs.h <<\EOF
10340 #define HAVE_LDEXPF 1
10341 EOF
10342
10343       cat >> confdefs.h <<\EOF
10344 #define HAVE_LOG10F 1
10345 EOF
10346
10347       cat >> confdefs.h <<\EOF
10348 #define HAVE_LOGF 1
10349 EOF
10350
10351       cat >> confdefs.h <<\EOF
10352 #define HAVE_MODFF 1
10353 EOF
10354
10355       cat >> confdefs.h <<\EOF
10356 #define HAVE_POWF 1
10357 EOF
10358
10359       cat >> confdefs.h <<\EOF
10360 #define HAVE_SINF 1
10361 EOF
10362
10363       cat >> confdefs.h <<\EOF
10364 #define HAVE_SINHF 1
10365 EOF
10366
10367       cat >> confdefs.h <<\EOF
10368 #define HAVE_SQRTF 1
10369 EOF
10370
10371       cat >> confdefs.h <<\EOF
10372 #define HAVE_TANF 1
10373 EOF
10374
10375       cat >> confdefs.h <<\EOF
10376 #define HAVE_TANHF 1
10377 EOF
10378
10379       ;;
10380   esac
10381
10382   # At some point, we should differentiate between architectures
10383   # like x86, which have long double versions, and alpha/powerpc/etc.,
10384   # which don't. For the time being, punt.
10385   if test x"long_double_math_on_this_cpu" = x"yes"; then
10386     cat >> confdefs.h <<\EOF
10387 #define HAVE_ACOSL 1
10388 EOF
10389
10390     cat >> confdefs.h <<\EOF
10391 #define HAVE_ASINL 1
10392 EOF
10393
10394     cat >> confdefs.h <<\EOF
10395 #define HAVE_ATAN2L 1
10396 EOF
10397
10398     cat >> confdefs.h <<\EOF
10399 #define HAVE_ATANL 1
10400 EOF
10401
10402     cat >> confdefs.h <<\EOF
10403 #define HAVE_CEILL 1
10404 EOF
10405
10406     cat >> confdefs.h <<\EOF
10407 #define HAVE_COPYSIGNL 1
10408 EOF
10409
10410     cat >> confdefs.h <<\EOF
10411 #define HAVE_COSL 1
10412 EOF
10413
10414     cat >> confdefs.h <<\EOF
10415 #define HAVE_COSHL 1
10416 EOF
10417
10418     cat >> confdefs.h <<\EOF
10419 #define HAVE_EXPL 1
10420 EOF
10421
10422     cat >> confdefs.h <<\EOF
10423 #define HAVE_FABSL 1
10424 EOF
10425
10426     cat >> confdefs.h <<\EOF
10427 #define HAVE_FLOORL 1
10428 EOF
10429
10430     cat >> confdefs.h <<\EOF
10431 #define HAVE_FMODL 1
10432 EOF
10433
10434     cat >> confdefs.h <<\EOF
10435 #define HAVE_FREXPL 1
10436 EOF
10437
10438     cat >> confdefs.h <<\EOF
10439 #define HAVE_LDEXPL 1
10440 EOF
10441
10442     cat >> confdefs.h <<\EOF
10443 #define HAVE_LOG10L 1
10444 EOF
10445
10446     cat >> confdefs.h <<\EOF
10447 #define HAVE_LOGL 1
10448 EOF
10449
10450     cat >> confdefs.h <<\EOF
10451 #define HAVE_MODFL 1
10452 EOF
10453
10454     cat >> confdefs.h <<\EOF
10455 #define HAVE_POWL 1
10456 EOF
10457
10458     cat >> confdefs.h <<\EOF
10459 #define HAVE_SINCOSL 1
10460 EOF
10461
10462     cat >> confdefs.h <<\EOF
10463 #define HAVE_SINL 1
10464 EOF
10465
10466     cat >> confdefs.h <<\EOF
10467 #define HAVE_SINHL 1
10468 EOF
10469
10470     cat >> confdefs.h <<\EOF
10471 #define HAVE_SQRTL 1
10472 EOF
10473
10474     cat >> confdefs.h <<\EOF
10475 #define HAVE_TANL 1
10476 EOF
10477
10478     cat >> confdefs.h <<\EOF
10479 #define HAVE_TANHL 1
10480 EOF
10481
10482   fi
10483
10484 else
10485
10486   # We are being configured natively. We can do more elaborate tests
10487   # that include AC_TRY_COMPILE now, as the linker is assumed to be
10488   # working.
10489   GLIBCPP_IS_CROSS_COMPILING=0
10490   CANADIAN=no
10491
10492   # Check for available headers.
10493   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10494   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
10495 do
10496 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10497 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10498 echo "configure:10499: checking for $ac_hdr" >&5
10499 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10500   echo $ac_n "(cached) $ac_c" 1>&6
10501 else
10502   cat > conftest.$ac_ext <<EOF
10503 #line 10504 "configure"
10504 #include "confdefs.h"
10505 #include <$ac_hdr>
10506 EOF
10507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10508 { (eval echo configure:10509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10510 if test -z "$ac_err"; then
10511   rm -rf conftest*
10512   eval "ac_cv_header_$ac_safe=yes"
10513 else
10514   echo "$ac_err" >&5
10515   echo "configure: failed program was:" >&5
10516   cat conftest.$ac_ext >&5
10517   rm -rf conftest*
10518   eval "ac_cv_header_$ac_safe=no"
10519 fi
10520 rm -f conftest*
10521 fi
10522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10523   echo "$ac_t""yes" 1>&6
10524     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10525   cat >> confdefs.h <<EOF
10526 #define $ac_tr_hdr 1
10527 EOF
10528  
10529 else
10530   echo "$ac_t""no" 1>&6
10531 fi
10532 done
10533
10534
10535   
10536   # All these tests are for C++; save the language and the compiler flags.
10537   # The CXXFLAGS thing is suspicious, but based on similar bits previously
10538   # found in GLIBCPP_CONFIGURE.
10539   
10540   ac_ext=C
10541 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10542 ac_cpp='$CXXCPP $CPPFLAGS'
10543 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10544 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10545 cross_compiling=$ac_cv_prog_cxx_cross
10546
10547   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10548   ac_save_CXXFLAGS="$CXXFLAGS"
10549
10550   # Check for maintainer-mode bits.
10551   if test x"$USE_MAINTAINER_MODE" = xno; then
10552     WERROR=''
10553   else
10554     WERROR='-Werror'
10555   fi
10556
10557   # Check for -ffunction-sections -fdata-sections
10558   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10559 echo "configure:10560: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10560   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10561   cat > conftest.$ac_ext <<EOF
10562 #line 10563 "configure"
10563 #include "confdefs.h"
10564
10565 int main() {
10566 int foo;
10567   
10568 ; return 0; }
10569 EOF
10570 if { (eval echo configure:10571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10571   rm -rf conftest*
10572   ac_fdsections=yes
10573 else
10574   echo "configure: failed program was:" >&5
10575   cat conftest.$ac_ext >&5
10576   rm -rf conftest*
10577   ac_fdsections=no
10578 fi
10579 rm -f conftest*
10580   if test "$ac_test_CXXFLAGS" = set; then
10581     CXXFLAGS="$ac_save_CXXFLAGS"
10582   else
10583     # this is the suspicious part
10584     CXXFLAGS=''
10585   fi
10586   if test x"$ac_fdsections" = x"yes"; then
10587     SECTION_FLAGS='-ffunction-sections -fdata-sections'
10588   fi
10589   echo "$ac_t""$ac_fdsections" 1>&6
10590
10591   ac_ext=c
10592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10593 ac_cpp='$CPP $CPPFLAGS'
10594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10596 cross_compiling=$ac_cv_prog_cc_cross
10597
10598   
10599   
10600
10601   
10602   # If we're not using GNU ld, then there's no point in even trying these
10603   # tests.  Check for that first.  We should have already tested for gld
10604   # by now (in libtool), but require it now just to be safe...
10605   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10606   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10607   
10608
10609   # The name set by libtool depends on the version of libtool.  Shame on us
10610   # for depending on an impl detail, but c'est la vie.  Older versions used
10611   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10612   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10613   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
10614   # set (hence we're using an older libtool), then set it.
10615   if test x${with_gnu_ld+set} != xset; then
10616     if test x${ac_cv_prog_gnu_ld+set} != xset; then
10617       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
10618       with_gnu_ld=no
10619     else
10620       with_gnu_ld=$ac_cv_prog_gnu_ld
10621     fi
10622   fi
10623
10624   # Start by getting the version number.  I think the libtool test already
10625   # does some of this, but throws away the result.
10626   
10627   ldver=`$LD --version 2>/dev/null | head -1 | \
10628          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10629   
10630   glibcpp_gnu_ld_version=`echo $ldver | \
10631          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10632
10633   # Set --gc-sections.
10634   if test "$with_gnu_ld" = "notbroken"; then
10635     # GNU ld it is!  Joy and bunny rabbits!
10636
10637     # All these tests are for C++; save the language and the compiler flags.
10638     # Need to do this so that g++ won't try to link in libstdc++
10639     ac_test_CFLAGS="${CFLAGS+set}"
10640     ac_save_CFLAGS="$CFLAGS"
10641     CFLAGS='-x c++  -Wl,--gc-sections'
10642
10643     # Check for -Wl,--gc-sections
10644     # XXX This test is broken at the moment, as symbols required for
10645     # linking are now in libsupc++ (not built yet.....). In addition,
10646     # this test has cored on solaris in the past. In addition,
10647     # --gc-sections doesn't really work at the moment (keeps on discarding
10648     # used sections, first .eh_frame and now some of the glibc sections for
10649     # iconv). Bzzzzt. Thanks for playing, maybe next time.
10650     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10651 echo "configure:10652: checking for ld that supports -Wl,--gc-sections" >&5
10652     if test "$cross_compiling" = yes; then
10653   ac_sectionLDflags=yes
10654 else
10655   cat > conftest.$ac_ext <<EOF
10656 #line 10657 "configure"
10657 #include "confdefs.h"
10658
10659      int main(void)
10660      {
10661        try { throw 1; }
10662        catch (...) { };
10663        return 0;
10664      }
10665     
10666 EOF
10667 if { (eval echo configure:10668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10668 then
10669   ac_sectionLDflags=yes
10670 else
10671   echo "configure: failed program was:" >&5
10672   cat conftest.$ac_ext >&5
10673   rm -fr conftest*
10674   ac_sectionLDflags=no
10675 fi
10676 rm -fr conftest*
10677 fi
10678
10679     if test "$ac_test_CFLAGS" = set; then
10680       CFLAGS="$ac_save_CFLAGS"
10681     else
10682       # this is the suspicious part
10683       CFLAGS=''
10684     fi
10685     if test "$ac_sectionLDflags" = "yes"; then
10686       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10687     fi
10688     echo "$ac_t""$ac_sectionLDflags" 1>&6
10689   fi
10690
10691   # Set linker optimization flags.
10692   if test x"$with_gnu_ld" = x"yes"; then
10693     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10694   fi
10695
10696   
10697   
10698
10699   
10700       
10701   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
10702 echo "configure:10703: checking for __builtin_abs declaration" >&5
10703   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
10704     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
10705   echo $ac_n "(cached) $ac_c" 1>&6
10706 else
10707   
10708       
10709       ac_ext=C
10710 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10711 ac_cpp='$CXXCPP $CPPFLAGS'
10712 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10713 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10714 cross_compiling=$ac_cv_prog_cxx_cross
10715
10716       cat > conftest.$ac_ext <<EOF
10717 #line 10718 "configure"
10718 #include "confdefs.h"
10719 #include <math.h>
10720 int main() {
10721  __builtin_abs(0);
10722 ; return 0; }
10723 EOF
10724 if { (eval echo configure:10725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10725   rm -rf conftest*
10726   glibcpp_cv_func___builtin_abs_use=yes
10727 else
10728   echo "configure: failed program was:" >&5
10729   cat conftest.$ac_ext >&5
10730   rm -rf conftest*
10731   glibcpp_cv_func___builtin_abs_use=no
10732 fi
10733 rm -f conftest*
10734       ac_ext=c
10735 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10736 ac_cpp='$CPP $CPPFLAGS'
10737 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10738 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10739 cross_compiling=$ac_cv_prog_cc_cross
10740
10741     
10742 fi
10743
10744   fi
10745   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
10746   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
10747     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
10748 echo "configure:10749: checking for __builtin_abs linkage" >&5
10749     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
10750       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
10751   echo $ac_n "(cached) $ac_c" 1>&6
10752 else
10753   
10754         cat > conftest.$ac_ext <<EOF
10755 #line 10756 "configure"
10756 #include "confdefs.h"
10757 #include <math.h>
10758 int main() {
10759  __builtin_abs(0);
10760 ; return 0; }
10761 EOF
10762 if { (eval echo configure:10763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10763   rm -rf conftest*
10764   glibcpp_cv_func___builtin_abs_link=yes
10765 else
10766   echo "configure: failed program was:" >&5
10767   cat conftest.$ac_ext >&5
10768   rm -rf conftest*
10769   glibcpp_cv_func___builtin_abs_link=no
10770 fi
10771 rm -f conftest*
10772       
10773 fi
10774
10775     fi
10776     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
10777     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
10778       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10779       cat >> confdefs.h <<EOF
10780 #define ${ac_tr_func} 1
10781 EOF
10782
10783     fi
10784   fi
10785
10786   
10787   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
10788 echo "configure:10789: checking for __builtin_fabsf declaration" >&5
10789   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
10790     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
10791   echo $ac_n "(cached) $ac_c" 1>&6
10792 else
10793   
10794       
10795       ac_ext=C
10796 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10797 ac_cpp='$CXXCPP $CPPFLAGS'
10798 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10799 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10800 cross_compiling=$ac_cv_prog_cxx_cross
10801
10802       cat > conftest.$ac_ext <<EOF
10803 #line 10804 "configure"
10804 #include "confdefs.h"
10805 #include <math.h>
10806 int main() {
10807  __builtin_fabsf(0);
10808 ; return 0; }
10809 EOF
10810 if { (eval echo configure:10811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10811   rm -rf conftest*
10812   glibcpp_cv_func___builtin_fabsf_use=yes
10813 else
10814   echo "configure: failed program was:" >&5
10815   cat conftest.$ac_ext >&5
10816   rm -rf conftest*
10817   glibcpp_cv_func___builtin_fabsf_use=no
10818 fi
10819 rm -f conftest*
10820       ac_ext=c
10821 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10822 ac_cpp='$CPP $CPPFLAGS'
10823 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10824 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10825 cross_compiling=$ac_cv_prog_cc_cross
10826
10827     
10828 fi
10829
10830   fi
10831   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
10832   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
10833     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
10834 echo "configure:10835: checking for __builtin_fabsf linkage" >&5
10835     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
10836       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
10837   echo $ac_n "(cached) $ac_c" 1>&6
10838 else
10839   
10840         cat > conftest.$ac_ext <<EOF
10841 #line 10842 "configure"
10842 #include "confdefs.h"
10843 #include <math.h>
10844 int main() {
10845  __builtin_fabsf(0);
10846 ; return 0; }
10847 EOF
10848 if { (eval echo configure:10849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10849   rm -rf conftest*
10850   glibcpp_cv_func___builtin_fabsf_link=yes
10851 else
10852   echo "configure: failed program was:" >&5
10853   cat conftest.$ac_ext >&5
10854   rm -rf conftest*
10855   glibcpp_cv_func___builtin_fabsf_link=no
10856 fi
10857 rm -f conftest*
10858       
10859 fi
10860
10861     fi
10862     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
10863     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
10864       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10865       cat >> confdefs.h <<EOF
10866 #define ${ac_tr_func} 1
10867 EOF
10868
10869     fi
10870   fi
10871
10872   
10873   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
10874 echo "configure:10875: checking for __builtin_fabs declaration" >&5
10875   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
10876     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
10877   echo $ac_n "(cached) $ac_c" 1>&6
10878 else
10879   
10880       
10881       ac_ext=C
10882 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10883 ac_cpp='$CXXCPP $CPPFLAGS'
10884 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10885 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10886 cross_compiling=$ac_cv_prog_cxx_cross
10887
10888       cat > conftest.$ac_ext <<EOF
10889 #line 10890 "configure"
10890 #include "confdefs.h"
10891 #include <math.h>
10892 int main() {
10893  __builtin_fabs(0);
10894 ; return 0; }
10895 EOF
10896 if { (eval echo configure:10897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10897   rm -rf conftest*
10898   glibcpp_cv_func___builtin_fabs_use=yes
10899 else
10900   echo "configure: failed program was:" >&5
10901   cat conftest.$ac_ext >&5
10902   rm -rf conftest*
10903   glibcpp_cv_func___builtin_fabs_use=no
10904 fi
10905 rm -f conftest*
10906       ac_ext=c
10907 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10908 ac_cpp='$CPP $CPPFLAGS'
10909 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10910 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10911 cross_compiling=$ac_cv_prog_cc_cross
10912
10913     
10914 fi
10915
10916   fi
10917   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
10918   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
10919     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
10920 echo "configure:10921: checking for __builtin_fabs linkage" >&5
10921     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
10922       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
10923   echo $ac_n "(cached) $ac_c" 1>&6
10924 else
10925   
10926         cat > conftest.$ac_ext <<EOF
10927 #line 10928 "configure"
10928 #include "confdefs.h"
10929 #include <math.h>
10930 int main() {
10931  __builtin_fabs(0);
10932 ; return 0; }
10933 EOF
10934 if { (eval echo configure:10935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10935   rm -rf conftest*
10936   glibcpp_cv_func___builtin_fabs_link=yes
10937 else
10938   echo "configure: failed program was:" >&5
10939   cat conftest.$ac_ext >&5
10940   rm -rf conftest*
10941   glibcpp_cv_func___builtin_fabs_link=no
10942 fi
10943 rm -f conftest*
10944       
10945 fi
10946
10947     fi
10948     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
10949     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
10950       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10951       cat >> confdefs.h <<EOF
10952 #define ${ac_tr_func} 1
10953 EOF
10954
10955     fi
10956   fi
10957
10958   
10959   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
10960 echo "configure:10961: checking for __builtin_fabsl declaration" >&5
10961   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
10962     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
10963   echo $ac_n "(cached) $ac_c" 1>&6
10964 else
10965   
10966       
10967       ac_ext=C
10968 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10969 ac_cpp='$CXXCPP $CPPFLAGS'
10970 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10971 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10972 cross_compiling=$ac_cv_prog_cxx_cross
10973
10974       cat > conftest.$ac_ext <<EOF
10975 #line 10976 "configure"
10976 #include "confdefs.h"
10977 #include <math.h>
10978 int main() {
10979  __builtin_fabsl(0);
10980 ; return 0; }
10981 EOF
10982 if { (eval echo configure:10983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10983   rm -rf conftest*
10984   glibcpp_cv_func___builtin_fabsl_use=yes
10985 else
10986   echo "configure: failed program was:" >&5
10987   cat conftest.$ac_ext >&5
10988   rm -rf conftest*
10989   glibcpp_cv_func___builtin_fabsl_use=no
10990 fi
10991 rm -f conftest*
10992       ac_ext=c
10993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10994 ac_cpp='$CPP $CPPFLAGS'
10995 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10996 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10997 cross_compiling=$ac_cv_prog_cc_cross
10998
10999     
11000 fi
11001
11002   fi
11003   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
11004   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
11005     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
11006 echo "configure:11007: checking for __builtin_fabsl linkage" >&5
11007     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
11008       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
11009   echo $ac_n "(cached) $ac_c" 1>&6
11010 else
11011   
11012         cat > conftest.$ac_ext <<EOF
11013 #line 11014 "configure"
11014 #include "confdefs.h"
11015 #include <math.h>
11016 int main() {
11017  __builtin_fabsl(0);
11018 ; return 0; }
11019 EOF
11020 if { (eval echo configure:11021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11021   rm -rf conftest*
11022   glibcpp_cv_func___builtin_fabsl_link=yes
11023 else
11024   echo "configure: failed program was:" >&5
11025   cat conftest.$ac_ext >&5
11026   rm -rf conftest*
11027   glibcpp_cv_func___builtin_fabsl_link=no
11028 fi
11029 rm -f conftest*
11030       
11031 fi
11032
11033     fi
11034     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
11035     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
11036       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11037       cat >> confdefs.h <<EOF
11038 #define ${ac_tr_func} 1
11039 EOF
11040
11041     fi
11042   fi
11043
11044   
11045   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
11046 echo "configure:11047: checking for __builtin_labs declaration" >&5
11047   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
11048     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
11049   echo $ac_n "(cached) $ac_c" 1>&6
11050 else
11051   
11052       
11053       ac_ext=C
11054 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11055 ac_cpp='$CXXCPP $CPPFLAGS'
11056 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11057 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11058 cross_compiling=$ac_cv_prog_cxx_cross
11059
11060       cat > conftest.$ac_ext <<EOF
11061 #line 11062 "configure"
11062 #include "confdefs.h"
11063 #include <math.h>
11064 int main() {
11065  __builtin_labs(0);
11066 ; return 0; }
11067 EOF
11068 if { (eval echo configure:11069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11069   rm -rf conftest*
11070   glibcpp_cv_func___builtin_labs_use=yes
11071 else
11072   echo "configure: failed program was:" >&5
11073   cat conftest.$ac_ext >&5
11074   rm -rf conftest*
11075   glibcpp_cv_func___builtin_labs_use=no
11076 fi
11077 rm -f conftest*
11078       ac_ext=c
11079 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11080 ac_cpp='$CPP $CPPFLAGS'
11081 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11082 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11083 cross_compiling=$ac_cv_prog_cc_cross
11084
11085     
11086 fi
11087
11088   fi
11089   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
11090   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
11091     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
11092 echo "configure:11093: checking for __builtin_labs linkage" >&5
11093     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
11094       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
11095   echo $ac_n "(cached) $ac_c" 1>&6
11096 else
11097   
11098         cat > conftest.$ac_ext <<EOF
11099 #line 11100 "configure"
11100 #include "confdefs.h"
11101 #include <math.h>
11102 int main() {
11103  __builtin_labs(0);
11104 ; return 0; }
11105 EOF
11106 if { (eval echo configure:11107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11107   rm -rf conftest*
11108   glibcpp_cv_func___builtin_labs_link=yes
11109 else
11110   echo "configure: failed program was:" >&5
11111   cat conftest.$ac_ext >&5
11112   rm -rf conftest*
11113   glibcpp_cv_func___builtin_labs_link=no
11114 fi
11115 rm -f conftest*
11116       
11117 fi
11118
11119     fi
11120     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
11121     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
11122       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11123       cat >> confdefs.h <<EOF
11124 #define ${ac_tr_func} 1
11125 EOF
11126
11127     fi
11128   fi
11129
11130
11131   
11132   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
11133 echo "configure:11134: checking for __builtin_sqrtf declaration" >&5
11134   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
11135     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
11136   echo $ac_n "(cached) $ac_c" 1>&6
11137 else
11138   
11139       
11140       ac_ext=C
11141 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11142 ac_cpp='$CXXCPP $CPPFLAGS'
11143 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11144 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11145 cross_compiling=$ac_cv_prog_cxx_cross
11146
11147       cat > conftest.$ac_ext <<EOF
11148 #line 11149 "configure"
11149 #include "confdefs.h"
11150 #include <math.h>
11151 int main() {
11152  __builtin_sqrtf(0);
11153 ; return 0; }
11154 EOF
11155 if { (eval echo configure:11156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11156   rm -rf conftest*
11157   glibcpp_cv_func___builtin_sqrtf_use=yes
11158 else
11159   echo "configure: failed program was:" >&5
11160   cat conftest.$ac_ext >&5
11161   rm -rf conftest*
11162   glibcpp_cv_func___builtin_sqrtf_use=no
11163 fi
11164 rm -f conftest*
11165       ac_ext=c
11166 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11167 ac_cpp='$CPP $CPPFLAGS'
11168 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11169 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11170 cross_compiling=$ac_cv_prog_cc_cross
11171
11172     
11173 fi
11174
11175   fi
11176   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
11177   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
11178     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
11179 echo "configure:11180: checking for __builtin_sqrtf linkage" >&5
11180     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
11181       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
11182   echo $ac_n "(cached) $ac_c" 1>&6
11183 else
11184   
11185         cat > conftest.$ac_ext <<EOF
11186 #line 11187 "configure"
11187 #include "confdefs.h"
11188 #include <math.h>
11189 int main() {
11190  __builtin_sqrtf(0);
11191 ; return 0; }
11192 EOF
11193 if { (eval echo configure:11194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11194   rm -rf conftest*
11195   glibcpp_cv_func___builtin_sqrtf_link=yes
11196 else
11197   echo "configure: failed program was:" >&5
11198   cat conftest.$ac_ext >&5
11199   rm -rf conftest*
11200   glibcpp_cv_func___builtin_sqrtf_link=no
11201 fi
11202 rm -f conftest*
11203       
11204 fi
11205
11206     fi
11207     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
11208     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
11209       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11210       cat >> confdefs.h <<EOF
11211 #define ${ac_tr_func} 1
11212 EOF
11213
11214     fi
11215   fi
11216
11217   
11218   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
11219 echo "configure:11220: checking for __builtin_sqrt declaration" >&5
11220   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
11221     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
11222   echo $ac_n "(cached) $ac_c" 1>&6
11223 else
11224   
11225       
11226       ac_ext=C
11227 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11228 ac_cpp='$CXXCPP $CPPFLAGS'
11229 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11230 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11231 cross_compiling=$ac_cv_prog_cxx_cross
11232
11233       cat > conftest.$ac_ext <<EOF
11234 #line 11235 "configure"
11235 #include "confdefs.h"
11236 #include <math.h>
11237 int main() {
11238  __builtin_sqrt(0);
11239 ; return 0; }
11240 EOF
11241 if { (eval echo configure:11242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11242   rm -rf conftest*
11243   glibcpp_cv_func___builtin_sqrt_use=yes
11244 else
11245   echo "configure: failed program was:" >&5
11246   cat conftest.$ac_ext >&5
11247   rm -rf conftest*
11248   glibcpp_cv_func___builtin_sqrt_use=no
11249 fi
11250 rm -f conftest*
11251       ac_ext=c
11252 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11253 ac_cpp='$CPP $CPPFLAGS'
11254 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11255 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11256 cross_compiling=$ac_cv_prog_cc_cross
11257
11258     
11259 fi
11260
11261   fi
11262   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
11263   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
11264     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
11265 echo "configure:11266: checking for __builtin_sqrt linkage" >&5
11266     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
11267       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
11268   echo $ac_n "(cached) $ac_c" 1>&6
11269 else
11270   
11271         cat > conftest.$ac_ext <<EOF
11272 #line 11273 "configure"
11273 #include "confdefs.h"
11274 #include <math.h>
11275 int main() {
11276  __builtin_sqrt(0);
11277 ; return 0; }
11278 EOF
11279 if { (eval echo configure:11280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11280   rm -rf conftest*
11281   glibcpp_cv_func___builtin_sqrt_link=yes
11282 else
11283   echo "configure: failed program was:" >&5
11284   cat conftest.$ac_ext >&5
11285   rm -rf conftest*
11286   glibcpp_cv_func___builtin_sqrt_link=no
11287 fi
11288 rm -f conftest*
11289       
11290 fi
11291
11292     fi
11293     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
11294     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
11295       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11296       cat >> confdefs.h <<EOF
11297 #define ${ac_tr_func} 1
11298 EOF
11299
11300     fi
11301   fi
11302
11303   
11304   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
11305 echo "configure:11306: checking for __builtin_sqrtl declaration" >&5
11306   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
11307     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
11308   echo $ac_n "(cached) $ac_c" 1>&6
11309 else
11310   
11311       
11312       ac_ext=C
11313 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11314 ac_cpp='$CXXCPP $CPPFLAGS'
11315 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11316 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11317 cross_compiling=$ac_cv_prog_cxx_cross
11318
11319       cat > conftest.$ac_ext <<EOF
11320 #line 11321 "configure"
11321 #include "confdefs.h"
11322 #include <math.h>
11323 int main() {
11324  __builtin_sqrtl(0);
11325 ; return 0; }
11326 EOF
11327 if { (eval echo configure:11328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11328   rm -rf conftest*
11329   glibcpp_cv_func___builtin_sqrtl_use=yes
11330 else
11331   echo "configure: failed program was:" >&5
11332   cat conftest.$ac_ext >&5
11333   rm -rf conftest*
11334   glibcpp_cv_func___builtin_sqrtl_use=no
11335 fi
11336 rm -f conftest*
11337       ac_ext=c
11338 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11339 ac_cpp='$CPP $CPPFLAGS'
11340 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11341 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11342 cross_compiling=$ac_cv_prog_cc_cross
11343
11344     
11345 fi
11346
11347   fi
11348   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
11349   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
11350     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
11351 echo "configure:11352: checking for __builtin_sqrtl linkage" >&5
11352     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
11353       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
11354   echo $ac_n "(cached) $ac_c" 1>&6
11355 else
11356   
11357         cat > conftest.$ac_ext <<EOF
11358 #line 11359 "configure"
11359 #include "confdefs.h"
11360 #include <math.h>
11361 int main() {
11362  __builtin_sqrtl(0);
11363 ; return 0; }
11364 EOF
11365 if { (eval echo configure:11366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11366   rm -rf conftest*
11367   glibcpp_cv_func___builtin_sqrtl_link=yes
11368 else
11369   echo "configure: failed program was:" >&5
11370   cat conftest.$ac_ext >&5
11371   rm -rf conftest*
11372   glibcpp_cv_func___builtin_sqrtl_link=no
11373 fi
11374 rm -f conftest*
11375       
11376 fi
11377
11378     fi
11379     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
11380     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
11381       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11382       cat >> confdefs.h <<EOF
11383 #define ${ac_tr_func} 1
11384 EOF
11385
11386     fi
11387   fi
11388
11389
11390   
11391   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
11392 echo "configure:11393: checking for __builtin_sinf declaration" >&5
11393   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
11394     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
11395   echo $ac_n "(cached) $ac_c" 1>&6
11396 else
11397   
11398       
11399       ac_ext=C
11400 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11401 ac_cpp='$CXXCPP $CPPFLAGS'
11402 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11403 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11404 cross_compiling=$ac_cv_prog_cxx_cross
11405
11406       cat > conftest.$ac_ext <<EOF
11407 #line 11408 "configure"
11408 #include "confdefs.h"
11409 #include <math.h>
11410 int main() {
11411  __builtin_sinf(0);
11412 ; return 0; }
11413 EOF
11414 if { (eval echo configure:11415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11415   rm -rf conftest*
11416   glibcpp_cv_func___builtin_sinf_use=yes
11417 else
11418   echo "configure: failed program was:" >&5
11419   cat conftest.$ac_ext >&5
11420   rm -rf conftest*
11421   glibcpp_cv_func___builtin_sinf_use=no
11422 fi
11423 rm -f conftest*
11424       ac_ext=c
11425 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11426 ac_cpp='$CPP $CPPFLAGS'
11427 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11428 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11429 cross_compiling=$ac_cv_prog_cc_cross
11430
11431     
11432 fi
11433
11434   fi
11435   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
11436   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
11437     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
11438 echo "configure:11439: checking for __builtin_sinf linkage" >&5
11439     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
11440       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
11441   echo $ac_n "(cached) $ac_c" 1>&6
11442 else
11443   
11444         cat > conftest.$ac_ext <<EOF
11445 #line 11446 "configure"
11446 #include "confdefs.h"
11447 #include <math.h>
11448 int main() {
11449  __builtin_sinf(0);
11450 ; return 0; }
11451 EOF
11452 if { (eval echo configure:11453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11453   rm -rf conftest*
11454   glibcpp_cv_func___builtin_sinf_link=yes
11455 else
11456   echo "configure: failed program was:" >&5
11457   cat conftest.$ac_ext >&5
11458   rm -rf conftest*
11459   glibcpp_cv_func___builtin_sinf_link=no
11460 fi
11461 rm -f conftest*
11462       
11463 fi
11464
11465     fi
11466     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
11467     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
11468       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11469       cat >> confdefs.h <<EOF
11470 #define ${ac_tr_func} 1
11471 EOF
11472
11473     fi
11474   fi
11475
11476   
11477   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
11478 echo "configure:11479: checking for __builtin_sin declaration" >&5
11479   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
11480     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
11481   echo $ac_n "(cached) $ac_c" 1>&6
11482 else
11483   
11484       
11485       ac_ext=C
11486 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11487 ac_cpp='$CXXCPP $CPPFLAGS'
11488 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11489 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11490 cross_compiling=$ac_cv_prog_cxx_cross
11491
11492       cat > conftest.$ac_ext <<EOF
11493 #line 11494 "configure"
11494 #include "confdefs.h"
11495 #include <math.h>
11496 int main() {
11497  __builtin_sin(0);
11498 ; return 0; }
11499 EOF
11500 if { (eval echo configure:11501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11501   rm -rf conftest*
11502   glibcpp_cv_func___builtin_sin_use=yes
11503 else
11504   echo "configure: failed program was:" >&5
11505   cat conftest.$ac_ext >&5
11506   rm -rf conftest*
11507   glibcpp_cv_func___builtin_sin_use=no
11508 fi
11509 rm -f conftest*
11510       ac_ext=c
11511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11512 ac_cpp='$CPP $CPPFLAGS'
11513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11514 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11515 cross_compiling=$ac_cv_prog_cc_cross
11516
11517     
11518 fi
11519
11520   fi
11521   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
11522   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
11523     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
11524 echo "configure:11525: checking for __builtin_sin linkage" >&5
11525     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
11526       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
11527   echo $ac_n "(cached) $ac_c" 1>&6
11528 else
11529   
11530         cat > conftest.$ac_ext <<EOF
11531 #line 11532 "configure"
11532 #include "confdefs.h"
11533 #include <math.h>
11534 int main() {
11535  __builtin_sin(0);
11536 ; return 0; }
11537 EOF
11538 if { (eval echo configure:11539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11539   rm -rf conftest*
11540   glibcpp_cv_func___builtin_sin_link=yes
11541 else
11542   echo "configure: failed program was:" >&5
11543   cat conftest.$ac_ext >&5
11544   rm -rf conftest*
11545   glibcpp_cv_func___builtin_sin_link=no
11546 fi
11547 rm -f conftest*
11548       
11549 fi
11550
11551     fi
11552     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
11553     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
11554       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11555       cat >> confdefs.h <<EOF
11556 #define ${ac_tr_func} 1
11557 EOF
11558
11559     fi
11560   fi
11561
11562   
11563   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
11564 echo "configure:11565: checking for __builtin_sinl declaration" >&5
11565   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
11566     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
11567   echo $ac_n "(cached) $ac_c" 1>&6
11568 else
11569   
11570       
11571       ac_ext=C
11572 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11573 ac_cpp='$CXXCPP $CPPFLAGS'
11574 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11575 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11576 cross_compiling=$ac_cv_prog_cxx_cross
11577
11578       cat > conftest.$ac_ext <<EOF
11579 #line 11580 "configure"
11580 #include "confdefs.h"
11581 #include <math.h>
11582 int main() {
11583  __builtin_sinl(0);
11584 ; return 0; }
11585 EOF
11586 if { (eval echo configure:11587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11587   rm -rf conftest*
11588   glibcpp_cv_func___builtin_sinl_use=yes
11589 else
11590   echo "configure: failed program was:" >&5
11591   cat conftest.$ac_ext >&5
11592   rm -rf conftest*
11593   glibcpp_cv_func___builtin_sinl_use=no
11594 fi
11595 rm -f conftest*
11596       ac_ext=c
11597 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11598 ac_cpp='$CPP $CPPFLAGS'
11599 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11600 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11601 cross_compiling=$ac_cv_prog_cc_cross
11602
11603     
11604 fi
11605
11606   fi
11607   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
11608   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
11609     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
11610 echo "configure:11611: checking for __builtin_sinl linkage" >&5
11611     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
11612       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
11613   echo $ac_n "(cached) $ac_c" 1>&6
11614 else
11615   
11616         cat > conftest.$ac_ext <<EOF
11617 #line 11618 "configure"
11618 #include "confdefs.h"
11619 #include <math.h>
11620 int main() {
11621  __builtin_sinl(0);
11622 ; return 0; }
11623 EOF
11624 if { (eval echo configure:11625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11625   rm -rf conftest*
11626   glibcpp_cv_func___builtin_sinl_link=yes
11627 else
11628   echo "configure: failed program was:" >&5
11629   cat conftest.$ac_ext >&5
11630   rm -rf conftest*
11631   glibcpp_cv_func___builtin_sinl_link=no
11632 fi
11633 rm -f conftest*
11634       
11635 fi
11636
11637     fi
11638     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
11639     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
11640       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11641       cat >> confdefs.h <<EOF
11642 #define ${ac_tr_func} 1
11643 EOF
11644
11645     fi
11646   fi
11647
11648
11649   
11650   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
11651 echo "configure:11652: checking for __builtin_cosf declaration" >&5
11652   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
11653     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
11654   echo $ac_n "(cached) $ac_c" 1>&6
11655 else
11656   
11657       
11658       ac_ext=C
11659 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11660 ac_cpp='$CXXCPP $CPPFLAGS'
11661 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11662 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11663 cross_compiling=$ac_cv_prog_cxx_cross
11664
11665       cat > conftest.$ac_ext <<EOF
11666 #line 11667 "configure"
11667 #include "confdefs.h"
11668 #include <math.h>
11669 int main() {
11670  __builtin_cosf(0);
11671 ; return 0; }
11672 EOF
11673 if { (eval echo configure:11674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11674   rm -rf conftest*
11675   glibcpp_cv_func___builtin_cosf_use=yes
11676 else
11677   echo "configure: failed program was:" >&5
11678   cat conftest.$ac_ext >&5
11679   rm -rf conftest*
11680   glibcpp_cv_func___builtin_cosf_use=no
11681 fi
11682 rm -f conftest*
11683       ac_ext=c
11684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11685 ac_cpp='$CPP $CPPFLAGS'
11686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11688 cross_compiling=$ac_cv_prog_cc_cross
11689
11690     
11691 fi
11692
11693   fi
11694   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
11695   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
11696     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
11697 echo "configure:11698: checking for __builtin_cosf linkage" >&5
11698     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
11699       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
11700   echo $ac_n "(cached) $ac_c" 1>&6
11701 else
11702   
11703         cat > conftest.$ac_ext <<EOF
11704 #line 11705 "configure"
11705 #include "confdefs.h"
11706 #include <math.h>
11707 int main() {
11708  __builtin_cosf(0);
11709 ; return 0; }
11710 EOF
11711 if { (eval echo configure:11712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11712   rm -rf conftest*
11713   glibcpp_cv_func___builtin_cosf_link=yes
11714 else
11715   echo "configure: failed program was:" >&5
11716   cat conftest.$ac_ext >&5
11717   rm -rf conftest*
11718   glibcpp_cv_func___builtin_cosf_link=no
11719 fi
11720 rm -f conftest*
11721       
11722 fi
11723
11724     fi
11725     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
11726     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
11727       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11728       cat >> confdefs.h <<EOF
11729 #define ${ac_tr_func} 1
11730 EOF
11731
11732     fi
11733   fi
11734
11735   
11736   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
11737 echo "configure:11738: checking for __builtin_cos declaration" >&5
11738   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
11739     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
11740   echo $ac_n "(cached) $ac_c" 1>&6
11741 else
11742   
11743       
11744       ac_ext=C
11745 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11746 ac_cpp='$CXXCPP $CPPFLAGS'
11747 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11748 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11749 cross_compiling=$ac_cv_prog_cxx_cross
11750
11751       cat > conftest.$ac_ext <<EOF
11752 #line 11753 "configure"
11753 #include "confdefs.h"
11754 #include <math.h>
11755 int main() {
11756  __builtin_cos(0);
11757 ; return 0; }
11758 EOF
11759 if { (eval echo configure:11760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11760   rm -rf conftest*
11761   glibcpp_cv_func___builtin_cos_use=yes
11762 else
11763   echo "configure: failed program was:" >&5
11764   cat conftest.$ac_ext >&5
11765   rm -rf conftest*
11766   glibcpp_cv_func___builtin_cos_use=no
11767 fi
11768 rm -f conftest*
11769       ac_ext=c
11770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11771 ac_cpp='$CPP $CPPFLAGS'
11772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11774 cross_compiling=$ac_cv_prog_cc_cross
11775
11776     
11777 fi
11778
11779   fi
11780   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
11781   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
11782     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
11783 echo "configure:11784: checking for __builtin_cos linkage" >&5
11784     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
11785       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
11786   echo $ac_n "(cached) $ac_c" 1>&6
11787 else
11788   
11789         cat > conftest.$ac_ext <<EOF
11790 #line 11791 "configure"
11791 #include "confdefs.h"
11792 #include <math.h>
11793 int main() {
11794  __builtin_cos(0);
11795 ; return 0; }
11796 EOF
11797 if { (eval echo configure:11798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11798   rm -rf conftest*
11799   glibcpp_cv_func___builtin_cos_link=yes
11800 else
11801   echo "configure: failed program was:" >&5
11802   cat conftest.$ac_ext >&5
11803   rm -rf conftest*
11804   glibcpp_cv_func___builtin_cos_link=no
11805 fi
11806 rm -f conftest*
11807       
11808 fi
11809
11810     fi
11811     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
11812     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
11813       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11814       cat >> confdefs.h <<EOF
11815 #define ${ac_tr_func} 1
11816 EOF
11817
11818     fi
11819   fi
11820
11821   
11822   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
11823 echo "configure:11824: checking for __builtin_cosl declaration" >&5
11824   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
11825     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
11826   echo $ac_n "(cached) $ac_c" 1>&6
11827 else
11828   
11829       
11830       ac_ext=C
11831 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11832 ac_cpp='$CXXCPP $CPPFLAGS'
11833 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11834 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11835 cross_compiling=$ac_cv_prog_cxx_cross
11836
11837       cat > conftest.$ac_ext <<EOF
11838 #line 11839 "configure"
11839 #include "confdefs.h"
11840 #include <math.h>
11841 int main() {
11842  __builtin_cosl(0);
11843 ; return 0; }
11844 EOF
11845 if { (eval echo configure:11846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11846   rm -rf conftest*
11847   glibcpp_cv_func___builtin_cosl_use=yes
11848 else
11849   echo "configure: failed program was:" >&5
11850   cat conftest.$ac_ext >&5
11851   rm -rf conftest*
11852   glibcpp_cv_func___builtin_cosl_use=no
11853 fi
11854 rm -f conftest*
11855       ac_ext=c
11856 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11857 ac_cpp='$CPP $CPPFLAGS'
11858 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11859 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11860 cross_compiling=$ac_cv_prog_cc_cross
11861
11862     
11863 fi
11864
11865   fi
11866   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
11867   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
11868     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
11869 echo "configure:11870: checking for __builtin_cosl linkage" >&5
11870     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
11871       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
11872   echo $ac_n "(cached) $ac_c" 1>&6
11873 else
11874   
11875         cat > conftest.$ac_ext <<EOF
11876 #line 11877 "configure"
11877 #include "confdefs.h"
11878 #include <math.h>
11879 int main() {
11880  __builtin_cosl(0);
11881 ; return 0; }
11882 EOF
11883 if { (eval echo configure:11884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11884   rm -rf conftest*
11885   glibcpp_cv_func___builtin_cosl_link=yes
11886 else
11887   echo "configure: failed program was:" >&5
11888   cat conftest.$ac_ext >&5
11889   rm -rf conftest*
11890   glibcpp_cv_func___builtin_cosl_link=no
11891 fi
11892 rm -f conftest*
11893       
11894 fi
11895
11896     fi
11897     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
11898     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
11899       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11900       cat >> confdefs.h <<EOF
11901 #define ${ac_tr_func} 1
11902 EOF
11903
11904     fi
11905   fi
11906
11907
11908               dummyvar=no
11909   if test x$dummyvar = x"yes"; then
11910     cat >> confdefs.h <<\EOF
11911 #define HAVE___BUILTIN_ABS 1
11912 EOF
11913
11914     cat >> confdefs.h <<\EOF
11915 #define HAVE___BUILTIN_LABS 1
11916 EOF
11917
11918     cat >> confdefs.h <<\EOF
11919 #define HAVE___BUILTIN_COS 1
11920 EOF
11921
11922     cat >> confdefs.h <<\EOF
11923 #define HAVE___BUILTIN_COSF 1
11924 EOF
11925
11926     cat >> confdefs.h <<\EOF
11927 #define HAVE___BUILTIN_COSL 1
11928 EOF
11929
11930     cat >> confdefs.h <<\EOF
11931 #define HAVE___BUILTIN_FABS 1
11932 EOF
11933
11934     cat >> confdefs.h <<\EOF
11935 #define HAVE___BUILTIN_FABSF 1
11936 EOF
11937
11938     cat >> confdefs.h <<\EOF
11939 #define HAVE___BUILTIN_FABSL 1
11940 EOF
11941
11942     cat >> confdefs.h <<\EOF
11943 #define HAVE___BUILTIN_SIN 1
11944 EOF
11945
11946     cat >> confdefs.h <<\EOF
11947 #define HAVE___BUILTIN_SINF 1
11948 EOF
11949
11950     cat >> confdefs.h <<\EOF
11951 #define HAVE___BUILTIN_SINL 1
11952 EOF
11953
11954     cat >> confdefs.h <<\EOF
11955 #define HAVE___BUILTIN_SQRT 1
11956 EOF
11957
11958     cat >> confdefs.h <<\EOF
11959 #define HAVE___BUILTIN_SQRTF 1
11960 EOF
11961
11962     cat >> confdefs.h <<\EOF
11963 #define HAVE___BUILTIN_SQRTL 1
11964 EOF
11965
11966   fi
11967
11968   
11969   ac_test_CXXFLAGS="${CXXFLAGS+set}"
11970   ac_save_CXXFLAGS="$CXXFLAGS"
11971   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
11972
11973     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
11974 echo "configure:11975: checking for sin in -lm" >&5
11975 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
11976 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11977   echo $ac_n "(cached) $ac_c" 1>&6
11978 else
11979   ac_save_LIBS="$LIBS"
11980 LIBS="-lm  $LIBS"
11981 cat > conftest.$ac_ext <<EOF
11982 #line 11983 "configure"
11983 #include "confdefs.h"
11984 /* Override any gcc2 internal prototype to avoid an error.  */
11985 /* We use char because int might match the return type of a gcc2
11986     builtin and then its argument prototype would still apply.  */
11987 char sin();
11988
11989 int main() {
11990 sin()
11991 ; return 0; }
11992 EOF
11993 if { (eval echo configure:11994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11994   rm -rf conftest*
11995   eval "ac_cv_lib_$ac_lib_var=yes"
11996 else
11997   echo "configure: failed program was:" >&5
11998   cat conftest.$ac_ext >&5
11999   rm -rf conftest*
12000   eval "ac_cv_lib_$ac_lib_var=no"
12001 fi
12002 rm -f conftest*
12003 LIBS="$ac_save_LIBS"
12004
12005 fi
12006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12007   echo "$ac_t""yes" 1>&6
12008   libm="-lm"
12009 else
12010   echo "$ac_t""no" 1>&6
12011 fi
12012
12013   ac_save_LIBS="$LIBS"
12014   LIBS="$LIBS $libm"
12015
12016     
12017   
12018   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
12019 echo "configure:12020: checking for isinf declaration" >&5
12020   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
12021     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
12022   echo $ac_n "(cached) $ac_c" 1>&6
12023 else
12024   
12025       
12026       ac_ext=C
12027 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12028 ac_cpp='$CXXCPP $CPPFLAGS'
12029 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12030 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12031 cross_compiling=$ac_cv_prog_cxx_cross
12032
12033       cat > conftest.$ac_ext <<EOF
12034 #line 12035 "configure"
12035 #include "confdefs.h"
12036 #include <math.h>
12037                       #ifdef HAVE_IEEEFP_H
12038                       #include <ieeefp.h>
12039                       #endif
12040                      
12041 int main() {
12042  isinf(0);
12043 ; return 0; }
12044 EOF
12045 if { (eval echo configure:12046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12046   rm -rf conftest*
12047   glibcpp_cv_func_isinf_use=yes
12048 else
12049   echo "configure: failed program was:" >&5
12050   cat conftest.$ac_ext >&5
12051   rm -rf conftest*
12052   glibcpp_cv_func_isinf_use=no
12053 fi
12054 rm -f conftest*
12055       ac_ext=c
12056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12057 ac_cpp='$CPP $CPPFLAGS'
12058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12060 cross_compiling=$ac_cv_prog_cc_cross
12061
12062     
12063 fi
12064
12065   fi
12066   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
12067
12068   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
12069     for ac_func in isinf
12070 do
12071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12072 echo "configure:12073: checking for $ac_func" >&5
12073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12074   echo $ac_n "(cached) $ac_c" 1>&6
12075 else
12076   cat > conftest.$ac_ext <<EOF
12077 #line 12078 "configure"
12078 #include "confdefs.h"
12079 /* System header to define __stub macros and hopefully few prototypes,
12080     which can conflict with char $ac_func(); below.  */
12081 #include <assert.h>
12082 /* Override any gcc2 internal prototype to avoid an error.  */
12083 /* We use char because int might match the return type of a gcc2
12084     builtin and then its argument prototype would still apply.  */
12085 char $ac_func();
12086
12087 int main() {
12088
12089 /* The GNU C library defines this for functions which it implements
12090     to always fail with ENOSYS.  Some functions are actually named
12091     something starting with __ and the normal name is an alias.  */
12092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12093 choke me
12094 #else
12095 $ac_func();
12096 #endif
12097
12098 ; return 0; }
12099 EOF
12100 if { (eval echo configure:12101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12101   rm -rf conftest*
12102   eval "ac_cv_func_$ac_func=yes"
12103 else
12104   echo "configure: failed program was:" >&5
12105   cat conftest.$ac_ext >&5
12106   rm -rf conftest*
12107   eval "ac_cv_func_$ac_func=no"
12108 fi
12109 rm -f conftest*
12110 fi
12111
12112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12113   echo "$ac_t""yes" 1>&6
12114     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12115   cat >> confdefs.h <<EOF
12116 #define $ac_tr_func 1
12117 EOF
12118  
12119 else
12120   echo "$ac_t""no" 1>&6
12121 fi
12122 done
12123
12124   else
12125     
12126   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
12127 echo "configure:12128: checking for _isinf declaration" >&5
12128   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
12129     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
12130   echo $ac_n "(cached) $ac_c" 1>&6
12131 else
12132   
12133       
12134       ac_ext=C
12135 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12136 ac_cpp='$CXXCPP $CPPFLAGS'
12137 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12138 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12139 cross_compiling=$ac_cv_prog_cxx_cross
12140
12141       cat > conftest.$ac_ext <<EOF
12142 #line 12143 "configure"
12143 #include "confdefs.h"
12144 #include <math.h>
12145                       #ifdef HAVE_IEEEFP_H
12146                       #include <ieeefp.h>
12147                       #endif
12148                      
12149 int main() {
12150  _isinf(0);
12151 ; return 0; }
12152 EOF
12153 if { (eval echo configure:12154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12154   rm -rf conftest*
12155   glibcpp_cv_func__isinf_use=yes
12156 else
12157   echo "configure: failed program was:" >&5
12158   cat conftest.$ac_ext >&5
12159   rm -rf conftest*
12160   glibcpp_cv_func__isinf_use=no
12161 fi
12162 rm -f conftest*
12163       ac_ext=c
12164 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12165 ac_cpp='$CPP $CPPFLAGS'
12166 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12167 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12168 cross_compiling=$ac_cv_prog_cc_cross
12169
12170     
12171 fi
12172
12173   fi
12174   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
12175
12176     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
12177       for ac_func in _isinf
12178 do
12179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12180 echo "configure:12181: checking for $ac_func" >&5
12181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12182   echo $ac_n "(cached) $ac_c" 1>&6
12183 else
12184   cat > conftest.$ac_ext <<EOF
12185 #line 12186 "configure"
12186 #include "confdefs.h"
12187 /* System header to define __stub macros and hopefully few prototypes,
12188     which can conflict with char $ac_func(); below.  */
12189 #include <assert.h>
12190 /* Override any gcc2 internal prototype to avoid an error.  */
12191 /* We use char because int might match the return type of a gcc2
12192     builtin and then its argument prototype would still apply.  */
12193 char $ac_func();
12194
12195 int main() {
12196
12197 /* The GNU C library defines this for functions which it implements
12198     to always fail with ENOSYS.  Some functions are actually named
12199     something starting with __ and the normal name is an alias.  */
12200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12201 choke me
12202 #else
12203 $ac_func();
12204 #endif
12205
12206 ; return 0; }
12207 EOF
12208 if { (eval echo configure:12209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12209   rm -rf conftest*
12210   eval "ac_cv_func_$ac_func=yes"
12211 else
12212   echo "configure: failed program was:" >&5
12213   cat conftest.$ac_ext >&5
12214   rm -rf conftest*
12215   eval "ac_cv_func_$ac_func=no"
12216 fi
12217 rm -f conftest*
12218 fi
12219
12220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12221   echo "$ac_t""yes" 1>&6
12222     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12223   cat >> confdefs.h <<EOF
12224 #define $ac_tr_func 1
12225 EOF
12226  
12227 else
12228   echo "$ac_t""no" 1>&6
12229 fi
12230 done
12231
12232     fi
12233   fi
12234
12235   
12236   
12237   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
12238 echo "configure:12239: checking for isnan declaration" >&5
12239   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
12240     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
12241   echo $ac_n "(cached) $ac_c" 1>&6
12242 else
12243   
12244       
12245       ac_ext=C
12246 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12247 ac_cpp='$CXXCPP $CPPFLAGS'
12248 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12249 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12250 cross_compiling=$ac_cv_prog_cxx_cross
12251
12252       cat > conftest.$ac_ext <<EOF
12253 #line 12254 "configure"
12254 #include "confdefs.h"
12255 #include <math.h>
12256                       #ifdef HAVE_IEEEFP_H
12257                       #include <ieeefp.h>
12258                       #endif
12259                      
12260 int main() {
12261  isnan(0);
12262 ; return 0; }
12263 EOF
12264 if { (eval echo configure:12265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12265   rm -rf conftest*
12266   glibcpp_cv_func_isnan_use=yes
12267 else
12268   echo "configure: failed program was:" >&5
12269   cat conftest.$ac_ext >&5
12270   rm -rf conftest*
12271   glibcpp_cv_func_isnan_use=no
12272 fi
12273 rm -f conftest*
12274       ac_ext=c
12275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12276 ac_cpp='$CPP $CPPFLAGS'
12277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12279 cross_compiling=$ac_cv_prog_cc_cross
12280
12281     
12282 fi
12283
12284   fi
12285   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
12286
12287   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
12288     for ac_func in isnan
12289 do
12290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12291 echo "configure:12292: checking for $ac_func" >&5
12292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12293   echo $ac_n "(cached) $ac_c" 1>&6
12294 else
12295   cat > conftest.$ac_ext <<EOF
12296 #line 12297 "configure"
12297 #include "confdefs.h"
12298 /* System header to define __stub macros and hopefully few prototypes,
12299     which can conflict with char $ac_func(); below.  */
12300 #include <assert.h>
12301 /* Override any gcc2 internal prototype to avoid an error.  */
12302 /* We use char because int might match the return type of a gcc2
12303     builtin and then its argument prototype would still apply.  */
12304 char $ac_func();
12305
12306 int main() {
12307
12308 /* The GNU C library defines this for functions which it implements
12309     to always fail with ENOSYS.  Some functions are actually named
12310     something starting with __ and the normal name is an alias.  */
12311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12312 choke me
12313 #else
12314 $ac_func();
12315 #endif
12316
12317 ; return 0; }
12318 EOF
12319 if { (eval echo configure:12320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12320   rm -rf conftest*
12321   eval "ac_cv_func_$ac_func=yes"
12322 else
12323   echo "configure: failed program was:" >&5
12324   cat conftest.$ac_ext >&5
12325   rm -rf conftest*
12326   eval "ac_cv_func_$ac_func=no"
12327 fi
12328 rm -f conftest*
12329 fi
12330
12331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12332   echo "$ac_t""yes" 1>&6
12333     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12334   cat >> confdefs.h <<EOF
12335 #define $ac_tr_func 1
12336 EOF
12337  
12338 else
12339   echo "$ac_t""no" 1>&6
12340 fi
12341 done
12342
12343   else
12344     
12345   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
12346 echo "configure:12347: checking for _isnan declaration" >&5
12347   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
12348     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
12349   echo $ac_n "(cached) $ac_c" 1>&6
12350 else
12351   
12352       
12353       ac_ext=C
12354 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12355 ac_cpp='$CXXCPP $CPPFLAGS'
12356 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12357 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12358 cross_compiling=$ac_cv_prog_cxx_cross
12359
12360       cat > conftest.$ac_ext <<EOF
12361 #line 12362 "configure"
12362 #include "confdefs.h"
12363 #include <math.h>
12364                       #ifdef HAVE_IEEEFP_H
12365                       #include <ieeefp.h>
12366                       #endif
12367                      
12368 int main() {
12369  _isnan(0);
12370 ; return 0; }
12371 EOF
12372 if { (eval echo configure:12373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12373   rm -rf conftest*
12374   glibcpp_cv_func__isnan_use=yes
12375 else
12376   echo "configure: failed program was:" >&5
12377   cat conftest.$ac_ext >&5
12378   rm -rf conftest*
12379   glibcpp_cv_func__isnan_use=no
12380 fi
12381 rm -f conftest*
12382       ac_ext=c
12383 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12384 ac_cpp='$CPP $CPPFLAGS'
12385 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12386 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12387 cross_compiling=$ac_cv_prog_cc_cross
12388
12389     
12390 fi
12391
12392   fi
12393   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
12394
12395     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
12396       for ac_func in _isnan
12397 do
12398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12399 echo "configure:12400: checking for $ac_func" >&5
12400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12401   echo $ac_n "(cached) $ac_c" 1>&6
12402 else
12403   cat > conftest.$ac_ext <<EOF
12404 #line 12405 "configure"
12405 #include "confdefs.h"
12406 /* System header to define __stub macros and hopefully few prototypes,
12407     which can conflict with char $ac_func(); below.  */
12408 #include <assert.h>
12409 /* Override any gcc2 internal prototype to avoid an error.  */
12410 /* We use char because int might match the return type of a gcc2
12411     builtin and then its argument prototype would still apply.  */
12412 char $ac_func();
12413
12414 int main() {
12415
12416 /* The GNU C library defines this for functions which it implements
12417     to always fail with ENOSYS.  Some functions are actually named
12418     something starting with __ and the normal name is an alias.  */
12419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12420 choke me
12421 #else
12422 $ac_func();
12423 #endif
12424
12425 ; return 0; }
12426 EOF
12427 if { (eval echo configure:12428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12428   rm -rf conftest*
12429   eval "ac_cv_func_$ac_func=yes"
12430 else
12431   echo "configure: failed program was:" >&5
12432   cat conftest.$ac_ext >&5
12433   rm -rf conftest*
12434   eval "ac_cv_func_$ac_func=no"
12435 fi
12436 rm -f conftest*
12437 fi
12438
12439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12440   echo "$ac_t""yes" 1>&6
12441     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12442   cat >> confdefs.h <<EOF
12443 #define $ac_tr_func 1
12444 EOF
12445  
12446 else
12447   echo "$ac_t""no" 1>&6
12448 fi
12449 done
12450
12451     fi
12452   fi
12453
12454   
12455   
12456   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
12457 echo "configure:12458: checking for finite declaration" >&5
12458   if test x${glibcpp_cv_func_finite_use+set} != xset; then
12459     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
12460   echo $ac_n "(cached) $ac_c" 1>&6
12461 else
12462   
12463       
12464       ac_ext=C
12465 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12466 ac_cpp='$CXXCPP $CPPFLAGS'
12467 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12468 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12469 cross_compiling=$ac_cv_prog_cxx_cross
12470
12471       cat > conftest.$ac_ext <<EOF
12472 #line 12473 "configure"
12473 #include "confdefs.h"
12474 #include <math.h>
12475                       #ifdef HAVE_IEEEFP_H
12476                       #include <ieeefp.h>
12477                       #endif
12478                      
12479 int main() {
12480  finite(0);
12481 ; return 0; }
12482 EOF
12483 if { (eval echo configure:12484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12484   rm -rf conftest*
12485   glibcpp_cv_func_finite_use=yes
12486 else
12487   echo "configure: failed program was:" >&5
12488   cat conftest.$ac_ext >&5
12489   rm -rf conftest*
12490   glibcpp_cv_func_finite_use=no
12491 fi
12492 rm -f conftest*
12493       ac_ext=c
12494 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12495 ac_cpp='$CPP $CPPFLAGS'
12496 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12497 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12498 cross_compiling=$ac_cv_prog_cc_cross
12499
12500     
12501 fi
12502
12503   fi
12504   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
12505
12506   if test x$glibcpp_cv_func_finite_use = x"yes"; then
12507     for ac_func in finite
12508 do
12509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12510 echo "configure:12511: checking for $ac_func" >&5
12511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12512   echo $ac_n "(cached) $ac_c" 1>&6
12513 else
12514   cat > conftest.$ac_ext <<EOF
12515 #line 12516 "configure"
12516 #include "confdefs.h"
12517 /* System header to define __stub macros and hopefully few prototypes,
12518     which can conflict with char $ac_func(); below.  */
12519 #include <assert.h>
12520 /* Override any gcc2 internal prototype to avoid an error.  */
12521 /* We use char because int might match the return type of a gcc2
12522     builtin and then its argument prototype would still apply.  */
12523 char $ac_func();
12524
12525 int main() {
12526
12527 /* The GNU C library defines this for functions which it implements
12528     to always fail with ENOSYS.  Some functions are actually named
12529     something starting with __ and the normal name is an alias.  */
12530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12531 choke me
12532 #else
12533 $ac_func();
12534 #endif
12535
12536 ; return 0; }
12537 EOF
12538 if { (eval echo configure:12539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12539   rm -rf conftest*
12540   eval "ac_cv_func_$ac_func=yes"
12541 else
12542   echo "configure: failed program was:" >&5
12543   cat conftest.$ac_ext >&5
12544   rm -rf conftest*
12545   eval "ac_cv_func_$ac_func=no"
12546 fi
12547 rm -f conftest*
12548 fi
12549
12550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12551   echo "$ac_t""yes" 1>&6
12552     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12553   cat >> confdefs.h <<EOF
12554 #define $ac_tr_func 1
12555 EOF
12556  
12557 else
12558   echo "$ac_t""no" 1>&6
12559 fi
12560 done
12561
12562   else
12563     
12564   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
12565 echo "configure:12566: checking for _finite declaration" >&5
12566   if test x${glibcpp_cv_func__finite_use+set} != xset; then
12567     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
12568   echo $ac_n "(cached) $ac_c" 1>&6
12569 else
12570   
12571       
12572       ac_ext=C
12573 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12574 ac_cpp='$CXXCPP $CPPFLAGS'
12575 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12576 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12577 cross_compiling=$ac_cv_prog_cxx_cross
12578
12579       cat > conftest.$ac_ext <<EOF
12580 #line 12581 "configure"
12581 #include "confdefs.h"
12582 #include <math.h>
12583                       #ifdef HAVE_IEEEFP_H
12584                       #include <ieeefp.h>
12585                       #endif
12586                      
12587 int main() {
12588  _finite(0);
12589 ; return 0; }
12590 EOF
12591 if { (eval echo configure:12592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12592   rm -rf conftest*
12593   glibcpp_cv_func__finite_use=yes
12594 else
12595   echo "configure: failed program was:" >&5
12596   cat conftest.$ac_ext >&5
12597   rm -rf conftest*
12598   glibcpp_cv_func__finite_use=no
12599 fi
12600 rm -f conftest*
12601       ac_ext=c
12602 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12603 ac_cpp='$CPP $CPPFLAGS'
12604 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12605 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12606 cross_compiling=$ac_cv_prog_cc_cross
12607
12608     
12609 fi
12610
12611   fi
12612   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
12613
12614     if test x$glibcpp_cv_func__finite_use = x"yes"; then
12615       for ac_func in _finite
12616 do
12617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12618 echo "configure:12619: checking for $ac_func" >&5
12619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12620   echo $ac_n "(cached) $ac_c" 1>&6
12621 else
12622   cat > conftest.$ac_ext <<EOF
12623 #line 12624 "configure"
12624 #include "confdefs.h"
12625 /* System header to define __stub macros and hopefully few prototypes,
12626     which can conflict with char $ac_func(); below.  */
12627 #include <assert.h>
12628 /* Override any gcc2 internal prototype to avoid an error.  */
12629 /* We use char because int might match the return type of a gcc2
12630     builtin and then its argument prototype would still apply.  */
12631 char $ac_func();
12632
12633 int main() {
12634
12635 /* The GNU C library defines this for functions which it implements
12636     to always fail with ENOSYS.  Some functions are actually named
12637     something starting with __ and the normal name is an alias.  */
12638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12639 choke me
12640 #else
12641 $ac_func();
12642 #endif
12643
12644 ; return 0; }
12645 EOF
12646 if { (eval echo configure:12647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12647   rm -rf conftest*
12648   eval "ac_cv_func_$ac_func=yes"
12649 else
12650   echo "configure: failed program was:" >&5
12651   cat conftest.$ac_ext >&5
12652   rm -rf conftest*
12653   eval "ac_cv_func_$ac_func=no"
12654 fi
12655 rm -f conftest*
12656 fi
12657
12658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12659   echo "$ac_t""yes" 1>&6
12660     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12661   cat >> confdefs.h <<EOF
12662 #define $ac_tr_func 1
12663 EOF
12664  
12665 else
12666   echo "$ac_t""no" 1>&6
12667 fi
12668 done
12669
12670     fi
12671   fi
12672
12673   
12674   
12675   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
12676 echo "configure:12677: checking for copysign declaration" >&5
12677   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
12678     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
12679   echo $ac_n "(cached) $ac_c" 1>&6
12680 else
12681   
12682       
12683       ac_ext=C
12684 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12685 ac_cpp='$CXXCPP $CPPFLAGS'
12686 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12687 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12688 cross_compiling=$ac_cv_prog_cxx_cross
12689
12690       cat > conftest.$ac_ext <<EOF
12691 #line 12692 "configure"
12692 #include "confdefs.h"
12693 #include <math.h>
12694 int main() {
12695  copysign(0, 0);
12696 ; return 0; }
12697 EOF
12698 if { (eval echo configure:12699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12699   rm -rf conftest*
12700   glibcpp_cv_func_copysign_use=yes
12701 else
12702   echo "configure: failed program was:" >&5
12703   cat conftest.$ac_ext >&5
12704   rm -rf conftest*
12705   glibcpp_cv_func_copysign_use=no
12706 fi
12707 rm -f conftest*
12708       ac_ext=c
12709 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12710 ac_cpp='$CPP $CPPFLAGS'
12711 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12712 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12713 cross_compiling=$ac_cv_prog_cc_cross
12714
12715     
12716 fi
12717
12718   fi
12719   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
12720
12721   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
12722     for ac_func in copysign
12723 do
12724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12725 echo "configure:12726: checking for $ac_func" >&5
12726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12727   echo $ac_n "(cached) $ac_c" 1>&6
12728 else
12729   cat > conftest.$ac_ext <<EOF
12730 #line 12731 "configure"
12731 #include "confdefs.h"
12732 /* System header to define __stub macros and hopefully few prototypes,
12733     which can conflict with char $ac_func(); below.  */
12734 #include <assert.h>
12735 /* Override any gcc2 internal prototype to avoid an error.  */
12736 /* We use char because int might match the return type of a gcc2
12737     builtin and then its argument prototype would still apply.  */
12738 char $ac_func();
12739
12740 int main() {
12741
12742 /* The GNU C library defines this for functions which it implements
12743     to always fail with ENOSYS.  Some functions are actually named
12744     something starting with __ and the normal name is an alias.  */
12745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12746 choke me
12747 #else
12748 $ac_func();
12749 #endif
12750
12751 ; return 0; }
12752 EOF
12753 if { (eval echo configure:12754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12754   rm -rf conftest*
12755   eval "ac_cv_func_$ac_func=yes"
12756 else
12757   echo "configure: failed program was:" >&5
12758   cat conftest.$ac_ext >&5
12759   rm -rf conftest*
12760   eval "ac_cv_func_$ac_func=no"
12761 fi
12762 rm -f conftest*
12763 fi
12764
12765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12766   echo "$ac_t""yes" 1>&6
12767     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12768   cat >> confdefs.h <<EOF
12769 #define $ac_tr_func 1
12770 EOF
12771  
12772 else
12773   echo "$ac_t""no" 1>&6
12774 fi
12775 done
12776
12777   else
12778     
12779   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
12780 echo "configure:12781: checking for _copysign declaration" >&5
12781   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
12782     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
12783   echo $ac_n "(cached) $ac_c" 1>&6
12784 else
12785   
12786       
12787       ac_ext=C
12788 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12789 ac_cpp='$CXXCPP $CPPFLAGS'
12790 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12791 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12792 cross_compiling=$ac_cv_prog_cxx_cross
12793
12794       cat > conftest.$ac_ext <<EOF
12795 #line 12796 "configure"
12796 #include "confdefs.h"
12797 #include <math.h>
12798 int main() {
12799  _copysign(0, 0);
12800 ; return 0; }
12801 EOF
12802 if { (eval echo configure:12803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12803   rm -rf conftest*
12804   glibcpp_cv_func__copysign_use=yes
12805 else
12806   echo "configure: failed program was:" >&5
12807   cat conftest.$ac_ext >&5
12808   rm -rf conftest*
12809   glibcpp_cv_func__copysign_use=no
12810 fi
12811 rm -f conftest*
12812       ac_ext=c
12813 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12814 ac_cpp='$CPP $CPPFLAGS'
12815 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12816 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12817 cross_compiling=$ac_cv_prog_cc_cross
12818
12819     
12820 fi
12821
12822   fi
12823   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
12824
12825     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
12826       for ac_func in _copysign
12827 do
12828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12829 echo "configure:12830: checking for $ac_func" >&5
12830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12831   echo $ac_n "(cached) $ac_c" 1>&6
12832 else
12833   cat > conftest.$ac_ext <<EOF
12834 #line 12835 "configure"
12835 #include "confdefs.h"
12836 /* System header to define __stub macros and hopefully few prototypes,
12837     which can conflict with char $ac_func(); below.  */
12838 #include <assert.h>
12839 /* Override any gcc2 internal prototype to avoid an error.  */
12840 /* We use char because int might match the return type of a gcc2
12841     builtin and then its argument prototype would still apply.  */
12842 char $ac_func();
12843
12844 int main() {
12845
12846 /* The GNU C library defines this for functions which it implements
12847     to always fail with ENOSYS.  Some functions are actually named
12848     something starting with __ and the normal name is an alias.  */
12849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12850 choke me
12851 #else
12852 $ac_func();
12853 #endif
12854
12855 ; return 0; }
12856 EOF
12857 if { (eval echo configure:12858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12858   rm -rf conftest*
12859   eval "ac_cv_func_$ac_func=yes"
12860 else
12861   echo "configure: failed program was:" >&5
12862   cat conftest.$ac_ext >&5
12863   rm -rf conftest*
12864   eval "ac_cv_func_$ac_func=no"
12865 fi
12866 rm -f conftest*
12867 fi
12868
12869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12870   echo "$ac_t""yes" 1>&6
12871     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12872   cat >> confdefs.h <<EOF
12873 #define $ac_tr_func 1
12874 EOF
12875  
12876 else
12877   echo "$ac_t""no" 1>&6
12878 fi
12879 done
12880
12881     fi
12882   fi
12883
12884   
12885   
12886   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
12887 echo "configure:12888: checking for sincos declaration" >&5
12888   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
12889     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
12890   echo $ac_n "(cached) $ac_c" 1>&6
12891 else
12892   
12893       
12894       ac_ext=C
12895 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12896 ac_cpp='$CXXCPP $CPPFLAGS'
12897 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12898 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12899 cross_compiling=$ac_cv_prog_cxx_cross
12900
12901       cat > conftest.$ac_ext <<EOF
12902 #line 12903 "configure"
12903 #include "confdefs.h"
12904 #include <math.h>
12905 int main() {
12906  sincos(0, 0, 0);
12907 ; return 0; }
12908 EOF
12909 if { (eval echo configure:12910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12910   rm -rf conftest*
12911   glibcpp_cv_func_sincos_use=yes
12912 else
12913   echo "configure: failed program was:" >&5
12914   cat conftest.$ac_ext >&5
12915   rm -rf conftest*
12916   glibcpp_cv_func_sincos_use=no
12917 fi
12918 rm -f conftest*
12919       ac_ext=c
12920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12921 ac_cpp='$CPP $CPPFLAGS'
12922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12924 cross_compiling=$ac_cv_prog_cc_cross
12925
12926     
12927 fi
12928
12929   fi
12930   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
12931
12932   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
12933     for ac_func in sincos
12934 do
12935 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12936 echo "configure:12937: checking for $ac_func" >&5
12937 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12938   echo $ac_n "(cached) $ac_c" 1>&6
12939 else
12940   cat > conftest.$ac_ext <<EOF
12941 #line 12942 "configure"
12942 #include "confdefs.h"
12943 /* System header to define __stub macros and hopefully few prototypes,
12944     which can conflict with char $ac_func(); below.  */
12945 #include <assert.h>
12946 /* Override any gcc2 internal prototype to avoid an error.  */
12947 /* We use char because int might match the return type of a gcc2
12948     builtin and then its argument prototype would still apply.  */
12949 char $ac_func();
12950
12951 int main() {
12952
12953 /* The GNU C library defines this for functions which it implements
12954     to always fail with ENOSYS.  Some functions are actually named
12955     something starting with __ and the normal name is an alias.  */
12956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12957 choke me
12958 #else
12959 $ac_func();
12960 #endif
12961
12962 ; return 0; }
12963 EOF
12964 if { (eval echo configure:12965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12965   rm -rf conftest*
12966   eval "ac_cv_func_$ac_func=yes"
12967 else
12968   echo "configure: failed program was:" >&5
12969   cat conftest.$ac_ext >&5
12970   rm -rf conftest*
12971   eval "ac_cv_func_$ac_func=no"
12972 fi
12973 rm -f conftest*
12974 fi
12975
12976 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12977   echo "$ac_t""yes" 1>&6
12978     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12979   cat >> confdefs.h <<EOF
12980 #define $ac_tr_func 1
12981 EOF
12982  
12983 else
12984   echo "$ac_t""no" 1>&6
12985 fi
12986 done
12987
12988   else
12989     
12990   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
12991 echo "configure:12992: checking for _sincos declaration" >&5
12992   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
12993     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
12994   echo $ac_n "(cached) $ac_c" 1>&6
12995 else
12996   
12997       
12998       ac_ext=C
12999 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13000 ac_cpp='$CXXCPP $CPPFLAGS'
13001 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13002 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13003 cross_compiling=$ac_cv_prog_cxx_cross
13004
13005       cat > conftest.$ac_ext <<EOF
13006 #line 13007 "configure"
13007 #include "confdefs.h"
13008 #include <math.h>
13009 int main() {
13010  _sincos(0, 0, 0);
13011 ; return 0; }
13012 EOF
13013 if { (eval echo configure:13014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13014   rm -rf conftest*
13015   glibcpp_cv_func__sincos_use=yes
13016 else
13017   echo "configure: failed program was:" >&5
13018   cat conftest.$ac_ext >&5
13019   rm -rf conftest*
13020   glibcpp_cv_func__sincos_use=no
13021 fi
13022 rm -f conftest*
13023       ac_ext=c
13024 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13025 ac_cpp='$CPP $CPPFLAGS'
13026 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13027 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13028 cross_compiling=$ac_cv_prog_cc_cross
13029
13030     
13031 fi
13032
13033   fi
13034   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
13035
13036     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
13037       for ac_func in _sincos
13038 do
13039 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13040 echo "configure:13041: checking for $ac_func" >&5
13041 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13042   echo $ac_n "(cached) $ac_c" 1>&6
13043 else
13044   cat > conftest.$ac_ext <<EOF
13045 #line 13046 "configure"
13046 #include "confdefs.h"
13047 /* System header to define __stub macros and hopefully few prototypes,
13048     which can conflict with char $ac_func(); below.  */
13049 #include <assert.h>
13050 /* Override any gcc2 internal prototype to avoid an error.  */
13051 /* We use char because int might match the return type of a gcc2
13052     builtin and then its argument prototype would still apply.  */
13053 char $ac_func();
13054
13055 int main() {
13056
13057 /* The GNU C library defines this for functions which it implements
13058     to always fail with ENOSYS.  Some functions are actually named
13059     something starting with __ and the normal name is an alias.  */
13060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13061 choke me
13062 #else
13063 $ac_func();
13064 #endif
13065
13066 ; return 0; }
13067 EOF
13068 if { (eval echo configure:13069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13069   rm -rf conftest*
13070   eval "ac_cv_func_$ac_func=yes"
13071 else
13072   echo "configure: failed program was:" >&5
13073   cat conftest.$ac_ext >&5
13074   rm -rf conftest*
13075   eval "ac_cv_func_$ac_func=no"
13076 fi
13077 rm -f conftest*
13078 fi
13079
13080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13081   echo "$ac_t""yes" 1>&6
13082     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13083   cat >> confdefs.h <<EOF
13084 #define $ac_tr_func 1
13085 EOF
13086  
13087 else
13088   echo "$ac_t""no" 1>&6
13089 fi
13090 done
13091
13092     fi
13093   fi
13094
13095   
13096   
13097   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
13098 echo "configure:13099: checking for fpclass declaration" >&5
13099   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
13100     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
13101   echo $ac_n "(cached) $ac_c" 1>&6
13102 else
13103   
13104       
13105       ac_ext=C
13106 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13107 ac_cpp='$CXXCPP $CPPFLAGS'
13108 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13109 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13110 cross_compiling=$ac_cv_prog_cxx_cross
13111
13112       cat > conftest.$ac_ext <<EOF
13113 #line 13114 "configure"
13114 #include "confdefs.h"
13115 #include <math.h>
13116                       #ifdef HAVE_IEEEFP_H
13117                       #include <ieeefp.h>
13118                       #endif
13119                      
13120 int main() {
13121  fpclass(0);
13122 ; return 0; }
13123 EOF
13124 if { (eval echo configure:13125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13125   rm -rf conftest*
13126   glibcpp_cv_func_fpclass_use=yes
13127 else
13128   echo "configure: failed program was:" >&5
13129   cat conftest.$ac_ext >&5
13130   rm -rf conftest*
13131   glibcpp_cv_func_fpclass_use=no
13132 fi
13133 rm -f conftest*
13134       ac_ext=c
13135 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13136 ac_cpp='$CPP $CPPFLAGS'
13137 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13138 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13139 cross_compiling=$ac_cv_prog_cc_cross
13140
13141     
13142 fi
13143
13144   fi
13145   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
13146
13147   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
13148     for ac_func in fpclass
13149 do
13150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13151 echo "configure:13152: checking for $ac_func" >&5
13152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13153   echo $ac_n "(cached) $ac_c" 1>&6
13154 else
13155   cat > conftest.$ac_ext <<EOF
13156 #line 13157 "configure"
13157 #include "confdefs.h"
13158 /* System header to define __stub macros and hopefully few prototypes,
13159     which can conflict with char $ac_func(); below.  */
13160 #include <assert.h>
13161 /* Override any gcc2 internal prototype to avoid an error.  */
13162 /* We use char because int might match the return type of a gcc2
13163     builtin and then its argument prototype would still apply.  */
13164 char $ac_func();
13165
13166 int main() {
13167
13168 /* The GNU C library defines this for functions which it implements
13169     to always fail with ENOSYS.  Some functions are actually named
13170     something starting with __ and the normal name is an alias.  */
13171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13172 choke me
13173 #else
13174 $ac_func();
13175 #endif
13176
13177 ; return 0; }
13178 EOF
13179 if { (eval echo configure:13180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13180   rm -rf conftest*
13181   eval "ac_cv_func_$ac_func=yes"
13182 else
13183   echo "configure: failed program was:" >&5
13184   cat conftest.$ac_ext >&5
13185   rm -rf conftest*
13186   eval "ac_cv_func_$ac_func=no"
13187 fi
13188 rm -f conftest*
13189 fi
13190
13191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13192   echo "$ac_t""yes" 1>&6
13193     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13194   cat >> confdefs.h <<EOF
13195 #define $ac_tr_func 1
13196 EOF
13197  
13198 else
13199   echo "$ac_t""no" 1>&6
13200 fi
13201 done
13202
13203   else
13204     
13205   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
13206 echo "configure:13207: checking for _fpclass declaration" >&5
13207   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
13208     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
13209   echo $ac_n "(cached) $ac_c" 1>&6
13210 else
13211   
13212       
13213       ac_ext=C
13214 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13215 ac_cpp='$CXXCPP $CPPFLAGS'
13216 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13217 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13218 cross_compiling=$ac_cv_prog_cxx_cross
13219
13220       cat > conftest.$ac_ext <<EOF
13221 #line 13222 "configure"
13222 #include "confdefs.h"
13223 #include <math.h>
13224                       #ifdef HAVE_IEEEFP_H
13225                       #include <ieeefp.h>
13226                       #endif
13227                      
13228 int main() {
13229  _fpclass(0);
13230 ; return 0; }
13231 EOF
13232 if { (eval echo configure:13233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13233   rm -rf conftest*
13234   glibcpp_cv_func__fpclass_use=yes
13235 else
13236   echo "configure: failed program was:" >&5
13237   cat conftest.$ac_ext >&5
13238   rm -rf conftest*
13239   glibcpp_cv_func__fpclass_use=no
13240 fi
13241 rm -f conftest*
13242       ac_ext=c
13243 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13244 ac_cpp='$CPP $CPPFLAGS'
13245 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13246 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13247 cross_compiling=$ac_cv_prog_cc_cross
13248
13249     
13250 fi
13251
13252   fi
13253   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
13254
13255     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
13256       for ac_func in _fpclass
13257 do
13258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13259 echo "configure:13260: checking for $ac_func" >&5
13260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13261   echo $ac_n "(cached) $ac_c" 1>&6
13262 else
13263   cat > conftest.$ac_ext <<EOF
13264 #line 13265 "configure"
13265 #include "confdefs.h"
13266 /* System header to define __stub macros and hopefully few prototypes,
13267     which can conflict with char $ac_func(); below.  */
13268 #include <assert.h>
13269 /* Override any gcc2 internal prototype to avoid an error.  */
13270 /* We use char because int might match the return type of a gcc2
13271     builtin and then its argument prototype would still apply.  */
13272 char $ac_func();
13273
13274 int main() {
13275
13276 /* The GNU C library defines this for functions which it implements
13277     to always fail with ENOSYS.  Some functions are actually named
13278     something starting with __ and the normal name is an alias.  */
13279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13280 choke me
13281 #else
13282 $ac_func();
13283 #endif
13284
13285 ; return 0; }
13286 EOF
13287 if { (eval echo configure:13288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13288   rm -rf conftest*
13289   eval "ac_cv_func_$ac_func=yes"
13290 else
13291   echo "configure: failed program was:" >&5
13292   cat conftest.$ac_ext >&5
13293   rm -rf conftest*
13294   eval "ac_cv_func_$ac_func=no"
13295 fi
13296 rm -f conftest*
13297 fi
13298
13299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13300   echo "$ac_t""yes" 1>&6
13301     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13302   cat >> confdefs.h <<EOF
13303 #define $ac_tr_func 1
13304 EOF
13305  
13306 else
13307   echo "$ac_t""no" 1>&6
13308 fi
13309 done
13310
13311     fi
13312   fi
13313
13314   
13315   
13316   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
13317 echo "configure:13318: checking for qfpclass declaration" >&5
13318   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
13319     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
13320   echo $ac_n "(cached) $ac_c" 1>&6
13321 else
13322   
13323       
13324       ac_ext=C
13325 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13326 ac_cpp='$CXXCPP $CPPFLAGS'
13327 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13328 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13329 cross_compiling=$ac_cv_prog_cxx_cross
13330
13331       cat > conftest.$ac_ext <<EOF
13332 #line 13333 "configure"
13333 #include "confdefs.h"
13334 #include <math.h>
13335                       #ifdef HAVE_IEEEFP_H
13336                       #include <ieeefp.h>
13337                       #endif
13338                      
13339 int main() {
13340  qfpclass(0);
13341 ; return 0; }
13342 EOF
13343 if { (eval echo configure:13344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13344   rm -rf conftest*
13345   glibcpp_cv_func_qfpclass_use=yes
13346 else
13347   echo "configure: failed program was:" >&5
13348   cat conftest.$ac_ext >&5
13349   rm -rf conftest*
13350   glibcpp_cv_func_qfpclass_use=no
13351 fi
13352 rm -f conftest*
13353       ac_ext=c
13354 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13355 ac_cpp='$CPP $CPPFLAGS'
13356 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13357 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13358 cross_compiling=$ac_cv_prog_cc_cross
13359
13360     
13361 fi
13362
13363   fi
13364   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
13365
13366   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
13367     for ac_func in qfpclass
13368 do
13369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13370 echo "configure:13371: checking for $ac_func" >&5
13371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13372   echo $ac_n "(cached) $ac_c" 1>&6
13373 else
13374   cat > conftest.$ac_ext <<EOF
13375 #line 13376 "configure"
13376 #include "confdefs.h"
13377 /* System header to define __stub macros and hopefully few prototypes,
13378     which can conflict with char $ac_func(); below.  */
13379 #include <assert.h>
13380 /* Override any gcc2 internal prototype to avoid an error.  */
13381 /* We use char because int might match the return type of a gcc2
13382     builtin and then its argument prototype would still apply.  */
13383 char $ac_func();
13384
13385 int main() {
13386
13387 /* The GNU C library defines this for functions which it implements
13388     to always fail with ENOSYS.  Some functions are actually named
13389     something starting with __ and the normal name is an alias.  */
13390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13391 choke me
13392 #else
13393 $ac_func();
13394 #endif
13395
13396 ; return 0; }
13397 EOF
13398 if { (eval echo configure:13399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13399   rm -rf conftest*
13400   eval "ac_cv_func_$ac_func=yes"
13401 else
13402   echo "configure: failed program was:" >&5
13403   cat conftest.$ac_ext >&5
13404   rm -rf conftest*
13405   eval "ac_cv_func_$ac_func=no"
13406 fi
13407 rm -f conftest*
13408 fi
13409
13410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13411   echo "$ac_t""yes" 1>&6
13412     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13413   cat >> confdefs.h <<EOF
13414 #define $ac_tr_func 1
13415 EOF
13416  
13417 else
13418   echo "$ac_t""no" 1>&6
13419 fi
13420 done
13421
13422   else
13423     
13424   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
13425 echo "configure:13426: checking for _qfpclass declaration" >&5
13426   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
13427     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
13428   echo $ac_n "(cached) $ac_c" 1>&6
13429 else
13430   
13431       
13432       ac_ext=C
13433 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13434 ac_cpp='$CXXCPP $CPPFLAGS'
13435 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13436 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13437 cross_compiling=$ac_cv_prog_cxx_cross
13438
13439       cat > conftest.$ac_ext <<EOF
13440 #line 13441 "configure"
13441 #include "confdefs.h"
13442 #include <math.h>
13443                       #ifdef HAVE_IEEEFP_H
13444                       #include <ieeefp.h>
13445                       #endif
13446                      
13447 int main() {
13448  _qfpclass(0);
13449 ; return 0; }
13450 EOF
13451 if { (eval echo configure:13452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13452   rm -rf conftest*
13453   glibcpp_cv_func__qfpclass_use=yes
13454 else
13455   echo "configure: failed program was:" >&5
13456   cat conftest.$ac_ext >&5
13457   rm -rf conftest*
13458   glibcpp_cv_func__qfpclass_use=no
13459 fi
13460 rm -f conftest*
13461       ac_ext=c
13462 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13463 ac_cpp='$CPP $CPPFLAGS'
13464 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13465 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13466 cross_compiling=$ac_cv_prog_cc_cross
13467
13468     
13469 fi
13470
13471   fi
13472   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
13473
13474     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
13475       for ac_func in _qfpclass
13476 do
13477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13478 echo "configure:13479: checking for $ac_func" >&5
13479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13480   echo $ac_n "(cached) $ac_c" 1>&6
13481 else
13482   cat > conftest.$ac_ext <<EOF
13483 #line 13484 "configure"
13484 #include "confdefs.h"
13485 /* System header to define __stub macros and hopefully few prototypes,
13486     which can conflict with char $ac_func(); below.  */
13487 #include <assert.h>
13488 /* Override any gcc2 internal prototype to avoid an error.  */
13489 /* We use char because int might match the return type of a gcc2
13490     builtin and then its argument prototype would still apply.  */
13491 char $ac_func();
13492
13493 int main() {
13494
13495 /* The GNU C library defines this for functions which it implements
13496     to always fail with ENOSYS.  Some functions are actually named
13497     something starting with __ and the normal name is an alias.  */
13498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13499 choke me
13500 #else
13501 $ac_func();
13502 #endif
13503
13504 ; return 0; }
13505 EOF
13506 if { (eval echo configure:13507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13507   rm -rf conftest*
13508   eval "ac_cv_func_$ac_func=yes"
13509 else
13510   echo "configure: failed program was:" >&5
13511   cat conftest.$ac_ext >&5
13512   rm -rf conftest*
13513   eval "ac_cv_func_$ac_func=no"
13514 fi
13515 rm -f conftest*
13516 fi
13517
13518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13519   echo "$ac_t""yes" 1>&6
13520     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13521   cat >> confdefs.h <<EOF
13522 #define $ac_tr_func 1
13523 EOF
13524  
13525 else
13526   echo "$ac_t""no" 1>&6
13527 fi
13528 done
13529
13530     fi
13531   fi
13532
13533   
13534   
13535   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
13536 echo "configure:13537: checking for hypot declaration" >&5
13537   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
13538     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
13539   echo $ac_n "(cached) $ac_c" 1>&6
13540 else
13541   
13542       
13543       ac_ext=C
13544 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13545 ac_cpp='$CXXCPP $CPPFLAGS'
13546 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13547 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13548 cross_compiling=$ac_cv_prog_cxx_cross
13549
13550       cat > conftest.$ac_ext <<EOF
13551 #line 13552 "configure"
13552 #include "confdefs.h"
13553 #include <math.h>
13554 int main() {
13555  hypot(0, 0);
13556 ; return 0; }
13557 EOF
13558 if { (eval echo configure:13559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13559   rm -rf conftest*
13560   glibcpp_cv_func_hypot_use=yes
13561 else
13562   echo "configure: failed program was:" >&5
13563   cat conftest.$ac_ext >&5
13564   rm -rf conftest*
13565   glibcpp_cv_func_hypot_use=no
13566 fi
13567 rm -f conftest*
13568       ac_ext=c
13569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13570 ac_cpp='$CPP $CPPFLAGS'
13571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13573 cross_compiling=$ac_cv_prog_cc_cross
13574
13575     
13576 fi
13577
13578   fi
13579   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
13580
13581   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
13582     for ac_func in hypot
13583 do
13584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13585 echo "configure:13586: checking for $ac_func" >&5
13586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13587   echo $ac_n "(cached) $ac_c" 1>&6
13588 else
13589   cat > conftest.$ac_ext <<EOF
13590 #line 13591 "configure"
13591 #include "confdefs.h"
13592 /* System header to define __stub macros and hopefully few prototypes,
13593     which can conflict with char $ac_func(); below.  */
13594 #include <assert.h>
13595 /* Override any gcc2 internal prototype to avoid an error.  */
13596 /* We use char because int might match the return type of a gcc2
13597     builtin and then its argument prototype would still apply.  */
13598 char $ac_func();
13599
13600 int main() {
13601
13602 /* The GNU C library defines this for functions which it implements
13603     to always fail with ENOSYS.  Some functions are actually named
13604     something starting with __ and the normal name is an alias.  */
13605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13606 choke me
13607 #else
13608 $ac_func();
13609 #endif
13610
13611 ; return 0; }
13612 EOF
13613 if { (eval echo configure:13614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13614   rm -rf conftest*
13615   eval "ac_cv_func_$ac_func=yes"
13616 else
13617   echo "configure: failed program was:" >&5
13618   cat conftest.$ac_ext >&5
13619   rm -rf conftest*
13620   eval "ac_cv_func_$ac_func=no"
13621 fi
13622 rm -f conftest*
13623 fi
13624
13625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13626   echo "$ac_t""yes" 1>&6
13627     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13628   cat >> confdefs.h <<EOF
13629 #define $ac_tr_func 1
13630 EOF
13631  
13632 else
13633   echo "$ac_t""no" 1>&6
13634 fi
13635 done
13636
13637   else
13638     
13639   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
13640 echo "configure:13641: checking for _hypot declaration" >&5
13641   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
13642     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
13643   echo $ac_n "(cached) $ac_c" 1>&6
13644 else
13645   
13646       
13647       ac_ext=C
13648 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13649 ac_cpp='$CXXCPP $CPPFLAGS'
13650 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13651 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13652 cross_compiling=$ac_cv_prog_cxx_cross
13653
13654       cat > conftest.$ac_ext <<EOF
13655 #line 13656 "configure"
13656 #include "confdefs.h"
13657 #include <math.h>
13658 int main() {
13659  _hypot(0, 0);
13660 ; return 0; }
13661 EOF
13662 if { (eval echo configure:13663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13663   rm -rf conftest*
13664   glibcpp_cv_func__hypot_use=yes
13665 else
13666   echo "configure: failed program was:" >&5
13667   cat conftest.$ac_ext >&5
13668   rm -rf conftest*
13669   glibcpp_cv_func__hypot_use=no
13670 fi
13671 rm -f conftest*
13672       ac_ext=c
13673 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13674 ac_cpp='$CPP $CPPFLAGS'
13675 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13676 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13677 cross_compiling=$ac_cv_prog_cc_cross
13678
13679     
13680 fi
13681
13682   fi
13683   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
13684
13685     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
13686       for ac_func in _hypot
13687 do
13688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13689 echo "configure:13690: checking for $ac_func" >&5
13690 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13691   echo $ac_n "(cached) $ac_c" 1>&6
13692 else
13693   cat > conftest.$ac_ext <<EOF
13694 #line 13695 "configure"
13695 #include "confdefs.h"
13696 /* System header to define __stub macros and hopefully few prototypes,
13697     which can conflict with char $ac_func(); below.  */
13698 #include <assert.h>
13699 /* Override any gcc2 internal prototype to avoid an error.  */
13700 /* We use char because int might match the return type of a gcc2
13701     builtin and then its argument prototype would still apply.  */
13702 char $ac_func();
13703
13704 int main() {
13705
13706 /* The GNU C library defines this for functions which it implements
13707     to always fail with ENOSYS.  Some functions are actually named
13708     something starting with __ and the normal name is an alias.  */
13709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13710 choke me
13711 #else
13712 $ac_func();
13713 #endif
13714
13715 ; return 0; }
13716 EOF
13717 if { (eval echo configure:13718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13718   rm -rf conftest*
13719   eval "ac_cv_func_$ac_func=yes"
13720 else
13721   echo "configure: failed program was:" >&5
13722   cat conftest.$ac_ext >&5
13723   rm -rf conftest*
13724   eval "ac_cv_func_$ac_func=no"
13725 fi
13726 rm -f conftest*
13727 fi
13728
13729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13730   echo "$ac_t""yes" 1>&6
13731     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13732   cat >> confdefs.h <<EOF
13733 #define $ac_tr_func 1
13734 EOF
13735  
13736 else
13737   echo "$ac_t""no" 1>&6
13738 fi
13739 done
13740
13741     fi
13742   fi
13743
13744
13745     
13746   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
13747 echo "configure:13748: checking for float trig functions" >&5
13748   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
13749   echo $ac_n "(cached) $ac_c" 1>&6
13750 else
13751   
13752     
13753     ac_ext=C
13754 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13755 ac_cpp='$CXXCPP $CPPFLAGS'
13756 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13757 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13758 cross_compiling=$ac_cv_prog_cxx_cross
13759
13760     cat > conftest.$ac_ext <<EOF
13761 #line 13762 "configure"
13762 #include "confdefs.h"
13763 #include <math.h>
13764 int main() {
13765  `for x in acosf asinf atanf \
13766                                           cosf sinf tanf \
13767                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
13768 ; return 0; }
13769 EOF
13770 if { (eval echo configure:13771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13771   rm -rf conftest*
13772   glibcpp_cv_func_float_trig_use=yes
13773 else
13774   echo "configure: failed program was:" >&5
13775   cat conftest.$ac_ext >&5
13776   rm -rf conftest*
13777   glibcpp_cv_func_float_trig_use=no
13778 fi
13779 rm -f conftest*
13780     ac_ext=c
13781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13782 ac_cpp='$CPP $CPPFLAGS'
13783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13785 cross_compiling=$ac_cv_prog_cc_cross
13786
13787 fi
13788
13789   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
13790   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
13791     for ac_func in acosf asinf atanf \
13792                                           cosf sinf tanf \
13793                                           coshf sinhf tanhf
13794 do
13795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13796 echo "configure:13797: checking for $ac_func" >&5
13797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13798   echo $ac_n "(cached) $ac_c" 1>&6
13799 else
13800   cat > conftest.$ac_ext <<EOF
13801 #line 13802 "configure"
13802 #include "confdefs.h"
13803 /* System header to define __stub macros and hopefully few prototypes,
13804     which can conflict with char $ac_func(); below.  */
13805 #include <assert.h>
13806 /* Override any gcc2 internal prototype to avoid an error.  */
13807 /* We use char because int might match the return type of a gcc2
13808     builtin and then its argument prototype would still apply.  */
13809 char $ac_func();
13810
13811 int main() {
13812
13813 /* The GNU C library defines this for functions which it implements
13814     to always fail with ENOSYS.  Some functions are actually named
13815     something starting with __ and the normal name is an alias.  */
13816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13817 choke me
13818 #else
13819 $ac_func();
13820 #endif
13821
13822 ; return 0; }
13823 EOF
13824 if { (eval echo configure:13825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13825   rm -rf conftest*
13826   eval "ac_cv_func_$ac_func=yes"
13827 else
13828   echo "configure: failed program was:" >&5
13829   cat conftest.$ac_ext >&5
13830   rm -rf conftest*
13831   eval "ac_cv_func_$ac_func=no"
13832 fi
13833 rm -f conftest*
13834 fi
13835
13836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13837   echo "$ac_t""yes" 1>&6
13838     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13839   cat >> confdefs.h <<EOF
13840 #define $ac_tr_func 1
13841 EOF
13842  
13843 else
13844   echo "$ac_t""no" 1>&6
13845 fi
13846 done
13847
13848   fi
13849
13850   
13851   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
13852 echo "configure:13853: checking for float round functions" >&5
13853   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
13854   echo $ac_n "(cached) $ac_c" 1>&6
13855 else
13856   
13857     
13858     ac_ext=C
13859 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13860 ac_cpp='$CXXCPP $CPPFLAGS'
13861 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13862 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13863 cross_compiling=$ac_cv_prog_cxx_cross
13864
13865     cat > conftest.$ac_ext <<EOF
13866 #line 13867 "configure"
13867 #include "confdefs.h"
13868 #include <math.h>
13869 int main() {
13870  `for x in ceilf floorf; do echo "$x (0);"; done` 
13871 ; return 0; }
13872 EOF
13873 if { (eval echo configure:13874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13874   rm -rf conftest*
13875   glibcpp_cv_func_float_round_use=yes
13876 else
13877   echo "configure: failed program was:" >&5
13878   cat conftest.$ac_ext >&5
13879   rm -rf conftest*
13880   glibcpp_cv_func_float_round_use=no
13881 fi
13882 rm -f conftest*
13883     ac_ext=c
13884 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13885 ac_cpp='$CPP $CPPFLAGS'
13886 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13887 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13888 cross_compiling=$ac_cv_prog_cc_cross
13889
13890 fi
13891
13892   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
13893   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
13894     for ac_func in ceilf floorf
13895 do
13896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13897 echo "configure:13898: checking for $ac_func" >&5
13898 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13899   echo $ac_n "(cached) $ac_c" 1>&6
13900 else
13901   cat > conftest.$ac_ext <<EOF
13902 #line 13903 "configure"
13903 #include "confdefs.h"
13904 /* System header to define __stub macros and hopefully few prototypes,
13905     which can conflict with char $ac_func(); below.  */
13906 #include <assert.h>
13907 /* Override any gcc2 internal prototype to avoid an error.  */
13908 /* We use char because int might match the return type of a gcc2
13909     builtin and then its argument prototype would still apply.  */
13910 char $ac_func();
13911
13912 int main() {
13913
13914 /* The GNU C library defines this for functions which it implements
13915     to always fail with ENOSYS.  Some functions are actually named
13916     something starting with __ and the normal name is an alias.  */
13917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13918 choke me
13919 #else
13920 $ac_func();
13921 #endif
13922
13923 ; return 0; }
13924 EOF
13925 if { (eval echo configure:13926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13926   rm -rf conftest*
13927   eval "ac_cv_func_$ac_func=yes"
13928 else
13929   echo "configure: failed program was:" >&5
13930   cat conftest.$ac_ext >&5
13931   rm -rf conftest*
13932   eval "ac_cv_func_$ac_func=no"
13933 fi
13934 rm -f conftest*
13935 fi
13936
13937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13938   echo "$ac_t""yes" 1>&6
13939     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13940   cat >> confdefs.h <<EOF
13941 #define $ac_tr_func 1
13942 EOF
13943  
13944 else
13945   echo "$ac_t""no" 1>&6
13946 fi
13947 done
13948
13949   fi
13950
13951   
13952   
13953   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
13954 echo "configure:13955: checking for expf declaration" >&5
13955   if test x${glibcpp_cv_func_expf_use+set} != xset; then
13956     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
13957   echo $ac_n "(cached) $ac_c" 1>&6
13958 else
13959   
13960       
13961       ac_ext=C
13962 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13963 ac_cpp='$CXXCPP $CPPFLAGS'
13964 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13965 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13966 cross_compiling=$ac_cv_prog_cxx_cross
13967
13968       cat > conftest.$ac_ext <<EOF
13969 #line 13970 "configure"
13970 #include "confdefs.h"
13971 #include <math.h>
13972                       #ifdef HAVE_IEEEFP_H
13973                       #include <ieeefp.h>
13974                       #endif
13975                      
13976 int main() {
13977  expf(0);
13978 ; return 0; }
13979 EOF
13980 if { (eval echo configure:13981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13981   rm -rf conftest*
13982   glibcpp_cv_func_expf_use=yes
13983 else
13984   echo "configure: failed program was:" >&5
13985   cat conftest.$ac_ext >&5
13986   rm -rf conftest*
13987   glibcpp_cv_func_expf_use=no
13988 fi
13989 rm -f conftest*
13990       ac_ext=c
13991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13992 ac_cpp='$CPP $CPPFLAGS'
13993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13995 cross_compiling=$ac_cv_prog_cc_cross
13996
13997     
13998 fi
13999
14000   fi
14001   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
14002
14003   if test x$glibcpp_cv_func_expf_use = x"yes"; then
14004     for ac_func in expf
14005 do
14006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14007 echo "configure:14008: checking for $ac_func" >&5
14008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14009   echo $ac_n "(cached) $ac_c" 1>&6
14010 else
14011   cat > conftest.$ac_ext <<EOF
14012 #line 14013 "configure"
14013 #include "confdefs.h"
14014 /* System header to define __stub macros and hopefully few prototypes,
14015     which can conflict with char $ac_func(); below.  */
14016 #include <assert.h>
14017 /* Override any gcc2 internal prototype to avoid an error.  */
14018 /* We use char because int might match the return type of a gcc2
14019     builtin and then its argument prototype would still apply.  */
14020 char $ac_func();
14021
14022 int main() {
14023
14024 /* The GNU C library defines this for functions which it implements
14025     to always fail with ENOSYS.  Some functions are actually named
14026     something starting with __ and the normal name is an alias.  */
14027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14028 choke me
14029 #else
14030 $ac_func();
14031 #endif
14032
14033 ; return 0; }
14034 EOF
14035 if { (eval echo configure:14036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14036   rm -rf conftest*
14037   eval "ac_cv_func_$ac_func=yes"
14038 else
14039   echo "configure: failed program was:" >&5
14040   cat conftest.$ac_ext >&5
14041   rm -rf conftest*
14042   eval "ac_cv_func_$ac_func=no"
14043 fi
14044 rm -f conftest*
14045 fi
14046
14047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14048   echo "$ac_t""yes" 1>&6
14049     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14050   cat >> confdefs.h <<EOF
14051 #define $ac_tr_func 1
14052 EOF
14053  
14054 else
14055   echo "$ac_t""no" 1>&6
14056 fi
14057 done
14058
14059   else
14060     
14061   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
14062 echo "configure:14063: checking for _expf declaration" >&5
14063   if test x${glibcpp_cv_func__expf_use+set} != xset; then
14064     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
14065   echo $ac_n "(cached) $ac_c" 1>&6
14066 else
14067   
14068       
14069       ac_ext=C
14070 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14071 ac_cpp='$CXXCPP $CPPFLAGS'
14072 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14073 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14074 cross_compiling=$ac_cv_prog_cxx_cross
14075
14076       cat > conftest.$ac_ext <<EOF
14077 #line 14078 "configure"
14078 #include "confdefs.h"
14079 #include <math.h>
14080                       #ifdef HAVE_IEEEFP_H
14081                       #include <ieeefp.h>
14082                       #endif
14083                      
14084 int main() {
14085  _expf(0);
14086 ; return 0; }
14087 EOF
14088 if { (eval echo configure:14089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14089   rm -rf conftest*
14090   glibcpp_cv_func__expf_use=yes
14091 else
14092   echo "configure: failed program was:" >&5
14093   cat conftest.$ac_ext >&5
14094   rm -rf conftest*
14095   glibcpp_cv_func__expf_use=no
14096 fi
14097 rm -f conftest*
14098       ac_ext=c
14099 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14100 ac_cpp='$CPP $CPPFLAGS'
14101 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14102 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14103 cross_compiling=$ac_cv_prog_cc_cross
14104
14105     
14106 fi
14107
14108   fi
14109   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
14110
14111     if test x$glibcpp_cv_func__expf_use = x"yes"; then
14112       for ac_func in _expf
14113 do
14114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14115 echo "configure:14116: checking for $ac_func" >&5
14116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14117   echo $ac_n "(cached) $ac_c" 1>&6
14118 else
14119   cat > conftest.$ac_ext <<EOF
14120 #line 14121 "configure"
14121 #include "confdefs.h"
14122 /* System header to define __stub macros and hopefully few prototypes,
14123     which can conflict with char $ac_func(); below.  */
14124 #include <assert.h>
14125 /* Override any gcc2 internal prototype to avoid an error.  */
14126 /* We use char because int might match the return type of a gcc2
14127     builtin and then its argument prototype would still apply.  */
14128 char $ac_func();
14129
14130 int main() {
14131
14132 /* The GNU C library defines this for functions which it implements
14133     to always fail with ENOSYS.  Some functions are actually named
14134     something starting with __ and the normal name is an alias.  */
14135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14136 choke me
14137 #else
14138 $ac_func();
14139 #endif
14140
14141 ; return 0; }
14142 EOF
14143 if { (eval echo configure:14144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14144   rm -rf conftest*
14145   eval "ac_cv_func_$ac_func=yes"
14146 else
14147   echo "configure: failed program was:" >&5
14148   cat conftest.$ac_ext >&5
14149   rm -rf conftest*
14150   eval "ac_cv_func_$ac_func=no"
14151 fi
14152 rm -f conftest*
14153 fi
14154
14155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14156   echo "$ac_t""yes" 1>&6
14157     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14158   cat >> confdefs.h <<EOF
14159 #define $ac_tr_func 1
14160 EOF
14161  
14162 else
14163   echo "$ac_t""no" 1>&6
14164 fi
14165 done
14166
14167     fi
14168   fi
14169
14170   
14171   
14172   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
14173 echo "configure:14174: checking for isnanf declaration" >&5
14174   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
14175     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
14176   echo $ac_n "(cached) $ac_c" 1>&6
14177 else
14178   
14179       
14180       ac_ext=C
14181 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14182 ac_cpp='$CXXCPP $CPPFLAGS'
14183 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14184 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14185 cross_compiling=$ac_cv_prog_cxx_cross
14186
14187       cat > conftest.$ac_ext <<EOF
14188 #line 14189 "configure"
14189 #include "confdefs.h"
14190 #include <math.h>
14191                       #ifdef HAVE_IEEEFP_H
14192                       #include <ieeefp.h>
14193                       #endif
14194                      
14195 int main() {
14196  isnanf(0);
14197 ; return 0; }
14198 EOF
14199 if { (eval echo configure:14200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14200   rm -rf conftest*
14201   glibcpp_cv_func_isnanf_use=yes
14202 else
14203   echo "configure: failed program was:" >&5
14204   cat conftest.$ac_ext >&5
14205   rm -rf conftest*
14206   glibcpp_cv_func_isnanf_use=no
14207 fi
14208 rm -f conftest*
14209       ac_ext=c
14210 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14211 ac_cpp='$CPP $CPPFLAGS'
14212 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14213 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14214 cross_compiling=$ac_cv_prog_cc_cross
14215
14216     
14217 fi
14218
14219   fi
14220   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
14221
14222   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
14223     for ac_func in isnanf
14224 do
14225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14226 echo "configure:14227: checking for $ac_func" >&5
14227 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14228   echo $ac_n "(cached) $ac_c" 1>&6
14229 else
14230   cat > conftest.$ac_ext <<EOF
14231 #line 14232 "configure"
14232 #include "confdefs.h"
14233 /* System header to define __stub macros and hopefully few prototypes,
14234     which can conflict with char $ac_func(); below.  */
14235 #include <assert.h>
14236 /* Override any gcc2 internal prototype to avoid an error.  */
14237 /* We use char because int might match the return type of a gcc2
14238     builtin and then its argument prototype would still apply.  */
14239 char $ac_func();
14240
14241 int main() {
14242
14243 /* The GNU C library defines this for functions which it implements
14244     to always fail with ENOSYS.  Some functions are actually named
14245     something starting with __ and the normal name is an alias.  */
14246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14247 choke me
14248 #else
14249 $ac_func();
14250 #endif
14251
14252 ; return 0; }
14253 EOF
14254 if { (eval echo configure:14255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14255   rm -rf conftest*
14256   eval "ac_cv_func_$ac_func=yes"
14257 else
14258   echo "configure: failed program was:" >&5
14259   cat conftest.$ac_ext >&5
14260   rm -rf conftest*
14261   eval "ac_cv_func_$ac_func=no"
14262 fi
14263 rm -f conftest*
14264 fi
14265
14266 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14267   echo "$ac_t""yes" 1>&6
14268     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14269   cat >> confdefs.h <<EOF
14270 #define $ac_tr_func 1
14271 EOF
14272  
14273 else
14274   echo "$ac_t""no" 1>&6
14275 fi
14276 done
14277
14278   else
14279     
14280   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
14281 echo "configure:14282: checking for _isnanf declaration" >&5
14282   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
14283     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
14284   echo $ac_n "(cached) $ac_c" 1>&6
14285 else
14286   
14287       
14288       ac_ext=C
14289 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14290 ac_cpp='$CXXCPP $CPPFLAGS'
14291 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14292 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14293 cross_compiling=$ac_cv_prog_cxx_cross
14294
14295       cat > conftest.$ac_ext <<EOF
14296 #line 14297 "configure"
14297 #include "confdefs.h"
14298 #include <math.h>
14299                       #ifdef HAVE_IEEEFP_H
14300                       #include <ieeefp.h>
14301                       #endif
14302                      
14303 int main() {
14304  _isnanf(0);
14305 ; return 0; }
14306 EOF
14307 if { (eval echo configure:14308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14308   rm -rf conftest*
14309   glibcpp_cv_func__isnanf_use=yes
14310 else
14311   echo "configure: failed program was:" >&5
14312   cat conftest.$ac_ext >&5
14313   rm -rf conftest*
14314   glibcpp_cv_func__isnanf_use=no
14315 fi
14316 rm -f conftest*
14317       ac_ext=c
14318 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14319 ac_cpp='$CPP $CPPFLAGS'
14320 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14321 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14322 cross_compiling=$ac_cv_prog_cc_cross
14323
14324     
14325 fi
14326
14327   fi
14328   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
14329
14330     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
14331       for ac_func in _isnanf
14332 do
14333 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14334 echo "configure:14335: checking for $ac_func" >&5
14335 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14336   echo $ac_n "(cached) $ac_c" 1>&6
14337 else
14338   cat > conftest.$ac_ext <<EOF
14339 #line 14340 "configure"
14340 #include "confdefs.h"
14341 /* System header to define __stub macros and hopefully few prototypes,
14342     which can conflict with char $ac_func(); below.  */
14343 #include <assert.h>
14344 /* Override any gcc2 internal prototype to avoid an error.  */
14345 /* We use char because int might match the return type of a gcc2
14346     builtin and then its argument prototype would still apply.  */
14347 char $ac_func();
14348
14349 int main() {
14350
14351 /* The GNU C library defines this for functions which it implements
14352     to always fail with ENOSYS.  Some functions are actually named
14353     something starting with __ and the normal name is an alias.  */
14354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14355 choke me
14356 #else
14357 $ac_func();
14358 #endif
14359
14360 ; return 0; }
14361 EOF
14362 if { (eval echo configure:14363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14363   rm -rf conftest*
14364   eval "ac_cv_func_$ac_func=yes"
14365 else
14366   echo "configure: failed program was:" >&5
14367   cat conftest.$ac_ext >&5
14368   rm -rf conftest*
14369   eval "ac_cv_func_$ac_func=no"
14370 fi
14371 rm -f conftest*
14372 fi
14373
14374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14375   echo "$ac_t""yes" 1>&6
14376     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14377   cat >> confdefs.h <<EOF
14378 #define $ac_tr_func 1
14379 EOF
14380  
14381 else
14382   echo "$ac_t""no" 1>&6
14383 fi
14384 done
14385
14386     fi
14387   fi
14388
14389   
14390   
14391   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
14392 echo "configure:14393: checking for isinff declaration" >&5
14393   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
14394     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
14395   echo $ac_n "(cached) $ac_c" 1>&6
14396 else
14397   
14398       
14399       ac_ext=C
14400 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14401 ac_cpp='$CXXCPP $CPPFLAGS'
14402 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14403 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14404 cross_compiling=$ac_cv_prog_cxx_cross
14405
14406       cat > conftest.$ac_ext <<EOF
14407 #line 14408 "configure"
14408 #include "confdefs.h"
14409 #include <math.h>
14410                       #ifdef HAVE_IEEEFP_H
14411                       #include <ieeefp.h>
14412                       #endif
14413                      
14414 int main() {
14415  isinff(0);
14416 ; return 0; }
14417 EOF
14418 if { (eval echo configure:14419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14419   rm -rf conftest*
14420   glibcpp_cv_func_isinff_use=yes
14421 else
14422   echo "configure: failed program was:" >&5
14423   cat conftest.$ac_ext >&5
14424   rm -rf conftest*
14425   glibcpp_cv_func_isinff_use=no
14426 fi
14427 rm -f conftest*
14428       ac_ext=c
14429 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14430 ac_cpp='$CPP $CPPFLAGS'
14431 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14432 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14433 cross_compiling=$ac_cv_prog_cc_cross
14434
14435     
14436 fi
14437
14438   fi
14439   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
14440
14441   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
14442     for ac_func in isinff
14443 do
14444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14445 echo "configure:14446: checking for $ac_func" >&5
14446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14447   echo $ac_n "(cached) $ac_c" 1>&6
14448 else
14449   cat > conftest.$ac_ext <<EOF
14450 #line 14451 "configure"
14451 #include "confdefs.h"
14452 /* System header to define __stub macros and hopefully few prototypes,
14453     which can conflict with char $ac_func(); below.  */
14454 #include <assert.h>
14455 /* Override any gcc2 internal prototype to avoid an error.  */
14456 /* We use char because int might match the return type of a gcc2
14457     builtin and then its argument prototype would still apply.  */
14458 char $ac_func();
14459
14460 int main() {
14461
14462 /* The GNU C library defines this for functions which it implements
14463     to always fail with ENOSYS.  Some functions are actually named
14464     something starting with __ and the normal name is an alias.  */
14465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14466 choke me
14467 #else
14468 $ac_func();
14469 #endif
14470
14471 ; return 0; }
14472 EOF
14473 if { (eval echo configure:14474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14474   rm -rf conftest*
14475   eval "ac_cv_func_$ac_func=yes"
14476 else
14477   echo "configure: failed program was:" >&5
14478   cat conftest.$ac_ext >&5
14479   rm -rf conftest*
14480   eval "ac_cv_func_$ac_func=no"
14481 fi
14482 rm -f conftest*
14483 fi
14484
14485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14486   echo "$ac_t""yes" 1>&6
14487     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14488   cat >> confdefs.h <<EOF
14489 #define $ac_tr_func 1
14490 EOF
14491  
14492 else
14493   echo "$ac_t""no" 1>&6
14494 fi
14495 done
14496
14497   else
14498     
14499   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
14500 echo "configure:14501: checking for _isinff declaration" >&5
14501   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
14502     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
14503   echo $ac_n "(cached) $ac_c" 1>&6
14504 else
14505   
14506       
14507       ac_ext=C
14508 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14509 ac_cpp='$CXXCPP $CPPFLAGS'
14510 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14511 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14512 cross_compiling=$ac_cv_prog_cxx_cross
14513
14514       cat > conftest.$ac_ext <<EOF
14515 #line 14516 "configure"
14516 #include "confdefs.h"
14517 #include <math.h>
14518                       #ifdef HAVE_IEEEFP_H
14519                       #include <ieeefp.h>
14520                       #endif
14521                      
14522 int main() {
14523  _isinff(0);
14524 ; return 0; }
14525 EOF
14526 if { (eval echo configure:14527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14527   rm -rf conftest*
14528   glibcpp_cv_func__isinff_use=yes
14529 else
14530   echo "configure: failed program was:" >&5
14531   cat conftest.$ac_ext >&5
14532   rm -rf conftest*
14533   glibcpp_cv_func__isinff_use=no
14534 fi
14535 rm -f conftest*
14536       ac_ext=c
14537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14538 ac_cpp='$CPP $CPPFLAGS'
14539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14541 cross_compiling=$ac_cv_prog_cc_cross
14542
14543     
14544 fi
14545
14546   fi
14547   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
14548
14549     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
14550       for ac_func in _isinff
14551 do
14552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14553 echo "configure:14554: checking for $ac_func" >&5
14554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14555   echo $ac_n "(cached) $ac_c" 1>&6
14556 else
14557   cat > conftest.$ac_ext <<EOF
14558 #line 14559 "configure"
14559 #include "confdefs.h"
14560 /* System header to define __stub macros and hopefully few prototypes,
14561     which can conflict with char $ac_func(); below.  */
14562 #include <assert.h>
14563 /* Override any gcc2 internal prototype to avoid an error.  */
14564 /* We use char because int might match the return type of a gcc2
14565     builtin and then its argument prototype would still apply.  */
14566 char $ac_func();
14567
14568 int main() {
14569
14570 /* The GNU C library defines this for functions which it implements
14571     to always fail with ENOSYS.  Some functions are actually named
14572     something starting with __ and the normal name is an alias.  */
14573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14574 choke me
14575 #else
14576 $ac_func();
14577 #endif
14578
14579 ; return 0; }
14580 EOF
14581 if { (eval echo configure:14582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14582   rm -rf conftest*
14583   eval "ac_cv_func_$ac_func=yes"
14584 else
14585   echo "configure: failed program was:" >&5
14586   cat conftest.$ac_ext >&5
14587   rm -rf conftest*
14588   eval "ac_cv_func_$ac_func=no"
14589 fi
14590 rm -f conftest*
14591 fi
14592
14593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14594   echo "$ac_t""yes" 1>&6
14595     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14596   cat >> confdefs.h <<EOF
14597 #define $ac_tr_func 1
14598 EOF
14599  
14600 else
14601   echo "$ac_t""no" 1>&6
14602 fi
14603 done
14604
14605     fi
14606   fi
14607
14608   
14609   
14610   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
14611 echo "configure:14612: checking for atan2f declaration" >&5
14612   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
14613     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
14614   echo $ac_n "(cached) $ac_c" 1>&6
14615 else
14616   
14617       
14618       ac_ext=C
14619 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14620 ac_cpp='$CXXCPP $CPPFLAGS'
14621 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14622 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14623 cross_compiling=$ac_cv_prog_cxx_cross
14624
14625       cat > conftest.$ac_ext <<EOF
14626 #line 14627 "configure"
14627 #include "confdefs.h"
14628 #include <math.h>
14629 int main() {
14630  atan2f(0, 0);
14631 ; return 0; }
14632 EOF
14633 if { (eval echo configure:14634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14634   rm -rf conftest*
14635   glibcpp_cv_func_atan2f_use=yes
14636 else
14637   echo "configure: failed program was:" >&5
14638   cat conftest.$ac_ext >&5
14639   rm -rf conftest*
14640   glibcpp_cv_func_atan2f_use=no
14641 fi
14642 rm -f conftest*
14643       ac_ext=c
14644 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14645 ac_cpp='$CPP $CPPFLAGS'
14646 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14647 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14648 cross_compiling=$ac_cv_prog_cc_cross
14649
14650     
14651 fi
14652
14653   fi
14654   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
14655
14656   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
14657     for ac_func in atan2f
14658 do
14659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14660 echo "configure:14661: checking for $ac_func" >&5
14661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14662   echo $ac_n "(cached) $ac_c" 1>&6
14663 else
14664   cat > conftest.$ac_ext <<EOF
14665 #line 14666 "configure"
14666 #include "confdefs.h"
14667 /* System header to define __stub macros and hopefully few prototypes,
14668     which can conflict with char $ac_func(); below.  */
14669 #include <assert.h>
14670 /* Override any gcc2 internal prototype to avoid an error.  */
14671 /* We use char because int might match the return type of a gcc2
14672     builtin and then its argument prototype would still apply.  */
14673 char $ac_func();
14674
14675 int main() {
14676
14677 /* The GNU C library defines this for functions which it implements
14678     to always fail with ENOSYS.  Some functions are actually named
14679     something starting with __ and the normal name is an alias.  */
14680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14681 choke me
14682 #else
14683 $ac_func();
14684 #endif
14685
14686 ; return 0; }
14687 EOF
14688 if { (eval echo configure:14689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14689   rm -rf conftest*
14690   eval "ac_cv_func_$ac_func=yes"
14691 else
14692   echo "configure: failed program was:" >&5
14693   cat conftest.$ac_ext >&5
14694   rm -rf conftest*
14695   eval "ac_cv_func_$ac_func=no"
14696 fi
14697 rm -f conftest*
14698 fi
14699
14700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14701   echo "$ac_t""yes" 1>&6
14702     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14703   cat >> confdefs.h <<EOF
14704 #define $ac_tr_func 1
14705 EOF
14706  
14707 else
14708   echo "$ac_t""no" 1>&6
14709 fi
14710 done
14711
14712   else
14713     
14714   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
14715 echo "configure:14716: checking for _atan2f declaration" >&5
14716   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
14717     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
14718   echo $ac_n "(cached) $ac_c" 1>&6
14719 else
14720   
14721       
14722       ac_ext=C
14723 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14724 ac_cpp='$CXXCPP $CPPFLAGS'
14725 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14726 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14727 cross_compiling=$ac_cv_prog_cxx_cross
14728
14729       cat > conftest.$ac_ext <<EOF
14730 #line 14731 "configure"
14731 #include "confdefs.h"
14732 #include <math.h>
14733 int main() {
14734  _atan2f(0, 0);
14735 ; return 0; }
14736 EOF
14737 if { (eval echo configure:14738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14738   rm -rf conftest*
14739   glibcpp_cv_func__atan2f_use=yes
14740 else
14741   echo "configure: failed program was:" >&5
14742   cat conftest.$ac_ext >&5
14743   rm -rf conftest*
14744   glibcpp_cv_func__atan2f_use=no
14745 fi
14746 rm -f conftest*
14747       ac_ext=c
14748 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14749 ac_cpp='$CPP $CPPFLAGS'
14750 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14751 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14752 cross_compiling=$ac_cv_prog_cc_cross
14753
14754     
14755 fi
14756
14757   fi
14758   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
14759
14760     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
14761       for ac_func in _atan2f
14762 do
14763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14764 echo "configure:14765: checking for $ac_func" >&5
14765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14766   echo $ac_n "(cached) $ac_c" 1>&6
14767 else
14768   cat > conftest.$ac_ext <<EOF
14769 #line 14770 "configure"
14770 #include "confdefs.h"
14771 /* System header to define __stub macros and hopefully few prototypes,
14772     which can conflict with char $ac_func(); below.  */
14773 #include <assert.h>
14774 /* Override any gcc2 internal prototype to avoid an error.  */
14775 /* We use char because int might match the return type of a gcc2
14776     builtin and then its argument prototype would still apply.  */
14777 char $ac_func();
14778
14779 int main() {
14780
14781 /* The GNU C library defines this for functions which it implements
14782     to always fail with ENOSYS.  Some functions are actually named
14783     something starting with __ and the normal name is an alias.  */
14784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14785 choke me
14786 #else
14787 $ac_func();
14788 #endif
14789
14790 ; return 0; }
14791 EOF
14792 if { (eval echo configure:14793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14793   rm -rf conftest*
14794   eval "ac_cv_func_$ac_func=yes"
14795 else
14796   echo "configure: failed program was:" >&5
14797   cat conftest.$ac_ext >&5
14798   rm -rf conftest*
14799   eval "ac_cv_func_$ac_func=no"
14800 fi
14801 rm -f conftest*
14802 fi
14803
14804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14805   echo "$ac_t""yes" 1>&6
14806     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14807   cat >> confdefs.h <<EOF
14808 #define $ac_tr_func 1
14809 EOF
14810  
14811 else
14812   echo "$ac_t""no" 1>&6
14813 fi
14814 done
14815
14816     fi
14817   fi
14818
14819   
14820   
14821   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
14822 echo "configure:14823: checking for fabsf declaration" >&5
14823   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
14824     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
14825   echo $ac_n "(cached) $ac_c" 1>&6
14826 else
14827   
14828       
14829       ac_ext=C
14830 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14831 ac_cpp='$CXXCPP $CPPFLAGS'
14832 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14833 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14834 cross_compiling=$ac_cv_prog_cxx_cross
14835
14836       cat > conftest.$ac_ext <<EOF
14837 #line 14838 "configure"
14838 #include "confdefs.h"
14839 #include <math.h>
14840                       #ifdef HAVE_IEEEFP_H
14841                       #include <ieeefp.h>
14842                       #endif
14843                      
14844 int main() {
14845  fabsf(0);
14846 ; return 0; }
14847 EOF
14848 if { (eval echo configure:14849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14849   rm -rf conftest*
14850   glibcpp_cv_func_fabsf_use=yes
14851 else
14852   echo "configure: failed program was:" >&5
14853   cat conftest.$ac_ext >&5
14854   rm -rf conftest*
14855   glibcpp_cv_func_fabsf_use=no
14856 fi
14857 rm -f conftest*
14858       ac_ext=c
14859 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14860 ac_cpp='$CPP $CPPFLAGS'
14861 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14862 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14863 cross_compiling=$ac_cv_prog_cc_cross
14864
14865     
14866 fi
14867
14868   fi
14869   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
14870
14871   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
14872     for ac_func in fabsf
14873 do
14874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14875 echo "configure:14876: checking for $ac_func" >&5
14876 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14877   echo $ac_n "(cached) $ac_c" 1>&6
14878 else
14879   cat > conftest.$ac_ext <<EOF
14880 #line 14881 "configure"
14881 #include "confdefs.h"
14882 /* System header to define __stub macros and hopefully few prototypes,
14883     which can conflict with char $ac_func(); below.  */
14884 #include <assert.h>
14885 /* Override any gcc2 internal prototype to avoid an error.  */
14886 /* We use char because int might match the return type of a gcc2
14887     builtin and then its argument prototype would still apply.  */
14888 char $ac_func();
14889
14890 int main() {
14891
14892 /* The GNU C library defines this for functions which it implements
14893     to always fail with ENOSYS.  Some functions are actually named
14894     something starting with __ and the normal name is an alias.  */
14895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14896 choke me
14897 #else
14898 $ac_func();
14899 #endif
14900
14901 ; return 0; }
14902 EOF
14903 if { (eval echo configure:14904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14904   rm -rf conftest*
14905   eval "ac_cv_func_$ac_func=yes"
14906 else
14907   echo "configure: failed program was:" >&5
14908   cat conftest.$ac_ext >&5
14909   rm -rf conftest*
14910   eval "ac_cv_func_$ac_func=no"
14911 fi
14912 rm -f conftest*
14913 fi
14914
14915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14916   echo "$ac_t""yes" 1>&6
14917     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14918   cat >> confdefs.h <<EOF
14919 #define $ac_tr_func 1
14920 EOF
14921  
14922 else
14923   echo "$ac_t""no" 1>&6
14924 fi
14925 done
14926
14927   else
14928     
14929   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
14930 echo "configure:14931: checking for _fabsf declaration" >&5
14931   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
14932     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
14933   echo $ac_n "(cached) $ac_c" 1>&6
14934 else
14935   
14936       
14937       ac_ext=C
14938 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14939 ac_cpp='$CXXCPP $CPPFLAGS'
14940 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14941 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14942 cross_compiling=$ac_cv_prog_cxx_cross
14943
14944       cat > conftest.$ac_ext <<EOF
14945 #line 14946 "configure"
14946 #include "confdefs.h"
14947 #include <math.h>
14948                       #ifdef HAVE_IEEEFP_H
14949                       #include <ieeefp.h>
14950                       #endif
14951                      
14952 int main() {
14953  _fabsf(0);
14954 ; return 0; }
14955 EOF
14956 if { (eval echo configure:14957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14957   rm -rf conftest*
14958   glibcpp_cv_func__fabsf_use=yes
14959 else
14960   echo "configure: failed program was:" >&5
14961   cat conftest.$ac_ext >&5
14962   rm -rf conftest*
14963   glibcpp_cv_func__fabsf_use=no
14964 fi
14965 rm -f conftest*
14966       ac_ext=c
14967 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14968 ac_cpp='$CPP $CPPFLAGS'
14969 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14970 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14971 cross_compiling=$ac_cv_prog_cc_cross
14972
14973     
14974 fi
14975
14976   fi
14977   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
14978
14979     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
14980       for ac_func in _fabsf
14981 do
14982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14983 echo "configure:14984: checking for $ac_func" >&5
14984 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14985   echo $ac_n "(cached) $ac_c" 1>&6
14986 else
14987   cat > conftest.$ac_ext <<EOF
14988 #line 14989 "configure"
14989 #include "confdefs.h"
14990 /* System header to define __stub macros and hopefully few prototypes,
14991     which can conflict with char $ac_func(); below.  */
14992 #include <assert.h>
14993 /* Override any gcc2 internal prototype to avoid an error.  */
14994 /* We use char because int might match the return type of a gcc2
14995     builtin and then its argument prototype would still apply.  */
14996 char $ac_func();
14997
14998 int main() {
14999
15000 /* The GNU C library defines this for functions which it implements
15001     to always fail with ENOSYS.  Some functions are actually named
15002     something starting with __ and the normal name is an alias.  */
15003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15004 choke me
15005 #else
15006 $ac_func();
15007 #endif
15008
15009 ; return 0; }
15010 EOF
15011 if { (eval echo configure:15012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15012   rm -rf conftest*
15013   eval "ac_cv_func_$ac_func=yes"
15014 else
15015   echo "configure: failed program was:" >&5
15016   cat conftest.$ac_ext >&5
15017   rm -rf conftest*
15018   eval "ac_cv_func_$ac_func=no"
15019 fi
15020 rm -f conftest*
15021 fi
15022
15023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15024   echo "$ac_t""yes" 1>&6
15025     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15026   cat >> confdefs.h <<EOF
15027 #define $ac_tr_func 1
15028 EOF
15029  
15030 else
15031   echo "$ac_t""no" 1>&6
15032 fi
15033 done
15034
15035     fi
15036   fi
15037
15038   
15039   
15040   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
15041 echo "configure:15042: checking for fmodf declaration" >&5
15042   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
15043     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
15044   echo $ac_n "(cached) $ac_c" 1>&6
15045 else
15046   
15047       
15048       ac_ext=C
15049 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15050 ac_cpp='$CXXCPP $CPPFLAGS'
15051 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15052 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15053 cross_compiling=$ac_cv_prog_cxx_cross
15054
15055       cat > conftest.$ac_ext <<EOF
15056 #line 15057 "configure"
15057 #include "confdefs.h"
15058 #include <math.h>
15059 int main() {
15060  fmodf(0, 0);
15061 ; return 0; }
15062 EOF
15063 if { (eval echo configure:15064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15064   rm -rf conftest*
15065   glibcpp_cv_func_fmodf_use=yes
15066 else
15067   echo "configure: failed program was:" >&5
15068   cat conftest.$ac_ext >&5
15069   rm -rf conftest*
15070   glibcpp_cv_func_fmodf_use=no
15071 fi
15072 rm -f conftest*
15073       ac_ext=c
15074 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15075 ac_cpp='$CPP $CPPFLAGS'
15076 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15077 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15078 cross_compiling=$ac_cv_prog_cc_cross
15079
15080     
15081 fi
15082
15083   fi
15084   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
15085
15086   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
15087     for ac_func in fmodf
15088 do
15089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15090 echo "configure:15091: checking for $ac_func" >&5
15091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15092   echo $ac_n "(cached) $ac_c" 1>&6
15093 else
15094   cat > conftest.$ac_ext <<EOF
15095 #line 15096 "configure"
15096 #include "confdefs.h"
15097 /* System header to define __stub macros and hopefully few prototypes,
15098     which can conflict with char $ac_func(); below.  */
15099 #include <assert.h>
15100 /* Override any gcc2 internal prototype to avoid an error.  */
15101 /* We use char because int might match the return type of a gcc2
15102     builtin and then its argument prototype would still apply.  */
15103 char $ac_func();
15104
15105 int main() {
15106
15107 /* The GNU C library defines this for functions which it implements
15108     to always fail with ENOSYS.  Some functions are actually named
15109     something starting with __ and the normal name is an alias.  */
15110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15111 choke me
15112 #else
15113 $ac_func();
15114 #endif
15115
15116 ; return 0; }
15117 EOF
15118 if { (eval echo configure:15119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15119   rm -rf conftest*
15120   eval "ac_cv_func_$ac_func=yes"
15121 else
15122   echo "configure: failed program was:" >&5
15123   cat conftest.$ac_ext >&5
15124   rm -rf conftest*
15125   eval "ac_cv_func_$ac_func=no"
15126 fi
15127 rm -f conftest*
15128 fi
15129
15130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15131   echo "$ac_t""yes" 1>&6
15132     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15133   cat >> confdefs.h <<EOF
15134 #define $ac_tr_func 1
15135 EOF
15136  
15137 else
15138   echo "$ac_t""no" 1>&6
15139 fi
15140 done
15141
15142   else
15143     
15144   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
15145 echo "configure:15146: checking for _fmodf declaration" >&5
15146   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
15147     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
15148   echo $ac_n "(cached) $ac_c" 1>&6
15149 else
15150   
15151       
15152       ac_ext=C
15153 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15154 ac_cpp='$CXXCPP $CPPFLAGS'
15155 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15156 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15157 cross_compiling=$ac_cv_prog_cxx_cross
15158
15159       cat > conftest.$ac_ext <<EOF
15160 #line 15161 "configure"
15161 #include "confdefs.h"
15162 #include <math.h>
15163 int main() {
15164  _fmodf(0, 0);
15165 ; return 0; }
15166 EOF
15167 if { (eval echo configure:15168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15168   rm -rf conftest*
15169   glibcpp_cv_func__fmodf_use=yes
15170 else
15171   echo "configure: failed program was:" >&5
15172   cat conftest.$ac_ext >&5
15173   rm -rf conftest*
15174   glibcpp_cv_func__fmodf_use=no
15175 fi
15176 rm -f conftest*
15177       ac_ext=c
15178 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15179 ac_cpp='$CPP $CPPFLAGS'
15180 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15181 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15182 cross_compiling=$ac_cv_prog_cc_cross
15183
15184     
15185 fi
15186
15187   fi
15188   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
15189
15190     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
15191       for ac_func in _fmodf
15192 do
15193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15194 echo "configure:15195: checking for $ac_func" >&5
15195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15196   echo $ac_n "(cached) $ac_c" 1>&6
15197 else
15198   cat > conftest.$ac_ext <<EOF
15199 #line 15200 "configure"
15200 #include "confdefs.h"
15201 /* System header to define __stub macros and hopefully few prototypes,
15202     which can conflict with char $ac_func(); below.  */
15203 #include <assert.h>
15204 /* Override any gcc2 internal prototype to avoid an error.  */
15205 /* We use char because int might match the return type of a gcc2
15206     builtin and then its argument prototype would still apply.  */
15207 char $ac_func();
15208
15209 int main() {
15210
15211 /* The GNU C library defines this for functions which it implements
15212     to always fail with ENOSYS.  Some functions are actually named
15213     something starting with __ and the normal name is an alias.  */
15214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15215 choke me
15216 #else
15217 $ac_func();
15218 #endif
15219
15220 ; return 0; }
15221 EOF
15222 if { (eval echo configure:15223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15223   rm -rf conftest*
15224   eval "ac_cv_func_$ac_func=yes"
15225 else
15226   echo "configure: failed program was:" >&5
15227   cat conftest.$ac_ext >&5
15228   rm -rf conftest*
15229   eval "ac_cv_func_$ac_func=no"
15230 fi
15231 rm -f conftest*
15232 fi
15233
15234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15235   echo "$ac_t""yes" 1>&6
15236     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15237   cat >> confdefs.h <<EOF
15238 #define $ac_tr_func 1
15239 EOF
15240  
15241 else
15242   echo "$ac_t""no" 1>&6
15243 fi
15244 done
15245
15246     fi
15247   fi
15248
15249   
15250   
15251   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
15252 echo "configure:15253: checking for frexpf declaration" >&5
15253   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
15254     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
15255   echo $ac_n "(cached) $ac_c" 1>&6
15256 else
15257   
15258       
15259       ac_ext=C
15260 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15261 ac_cpp='$CXXCPP $CPPFLAGS'
15262 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15263 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15264 cross_compiling=$ac_cv_prog_cxx_cross
15265
15266       cat > conftest.$ac_ext <<EOF
15267 #line 15268 "configure"
15268 #include "confdefs.h"
15269 #include <math.h>
15270 int main() {
15271  frexpf(0, 0);
15272 ; return 0; }
15273 EOF
15274 if { (eval echo configure:15275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15275   rm -rf conftest*
15276   glibcpp_cv_func_frexpf_use=yes
15277 else
15278   echo "configure: failed program was:" >&5
15279   cat conftest.$ac_ext >&5
15280   rm -rf conftest*
15281   glibcpp_cv_func_frexpf_use=no
15282 fi
15283 rm -f conftest*
15284       ac_ext=c
15285 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15286 ac_cpp='$CPP $CPPFLAGS'
15287 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15288 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15289 cross_compiling=$ac_cv_prog_cc_cross
15290
15291     
15292 fi
15293
15294   fi
15295   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
15296
15297   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
15298     for ac_func in frexpf
15299 do
15300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15301 echo "configure:15302: checking for $ac_func" >&5
15302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15303   echo $ac_n "(cached) $ac_c" 1>&6
15304 else
15305   cat > conftest.$ac_ext <<EOF
15306 #line 15307 "configure"
15307 #include "confdefs.h"
15308 /* System header to define __stub macros and hopefully few prototypes,
15309     which can conflict with char $ac_func(); below.  */
15310 #include <assert.h>
15311 /* Override any gcc2 internal prototype to avoid an error.  */
15312 /* We use char because int might match the return type of a gcc2
15313     builtin and then its argument prototype would still apply.  */
15314 char $ac_func();
15315
15316 int main() {
15317
15318 /* The GNU C library defines this for functions which it implements
15319     to always fail with ENOSYS.  Some functions are actually named
15320     something starting with __ and the normal name is an alias.  */
15321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15322 choke me
15323 #else
15324 $ac_func();
15325 #endif
15326
15327 ; return 0; }
15328 EOF
15329 if { (eval echo configure:15330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15330   rm -rf conftest*
15331   eval "ac_cv_func_$ac_func=yes"
15332 else
15333   echo "configure: failed program was:" >&5
15334   cat conftest.$ac_ext >&5
15335   rm -rf conftest*
15336   eval "ac_cv_func_$ac_func=no"
15337 fi
15338 rm -f conftest*
15339 fi
15340
15341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15342   echo "$ac_t""yes" 1>&6
15343     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15344   cat >> confdefs.h <<EOF
15345 #define $ac_tr_func 1
15346 EOF
15347  
15348 else
15349   echo "$ac_t""no" 1>&6
15350 fi
15351 done
15352
15353   else
15354     
15355   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
15356 echo "configure:15357: checking for _frexpf declaration" >&5
15357   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
15358     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
15359   echo $ac_n "(cached) $ac_c" 1>&6
15360 else
15361   
15362       
15363       ac_ext=C
15364 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15365 ac_cpp='$CXXCPP $CPPFLAGS'
15366 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15367 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15368 cross_compiling=$ac_cv_prog_cxx_cross
15369
15370       cat > conftest.$ac_ext <<EOF
15371 #line 15372 "configure"
15372 #include "confdefs.h"
15373 #include <math.h>
15374 int main() {
15375  _frexpf(0, 0);
15376 ; return 0; }
15377 EOF
15378 if { (eval echo configure:15379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15379   rm -rf conftest*
15380   glibcpp_cv_func__frexpf_use=yes
15381 else
15382   echo "configure: failed program was:" >&5
15383   cat conftest.$ac_ext >&5
15384   rm -rf conftest*
15385   glibcpp_cv_func__frexpf_use=no
15386 fi
15387 rm -f conftest*
15388       ac_ext=c
15389 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15390 ac_cpp='$CPP $CPPFLAGS'
15391 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15392 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15393 cross_compiling=$ac_cv_prog_cc_cross
15394
15395     
15396 fi
15397
15398   fi
15399   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
15400
15401     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
15402       for ac_func in _frexpf
15403 do
15404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15405 echo "configure:15406: checking for $ac_func" >&5
15406 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15407   echo $ac_n "(cached) $ac_c" 1>&6
15408 else
15409   cat > conftest.$ac_ext <<EOF
15410 #line 15411 "configure"
15411 #include "confdefs.h"
15412 /* System header to define __stub macros and hopefully few prototypes,
15413     which can conflict with char $ac_func(); below.  */
15414 #include <assert.h>
15415 /* Override any gcc2 internal prototype to avoid an error.  */
15416 /* We use char because int might match the return type of a gcc2
15417     builtin and then its argument prototype would still apply.  */
15418 char $ac_func();
15419
15420 int main() {
15421
15422 /* The GNU C library defines this for functions which it implements
15423     to always fail with ENOSYS.  Some functions are actually named
15424     something starting with __ and the normal name is an alias.  */
15425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15426 choke me
15427 #else
15428 $ac_func();
15429 #endif
15430
15431 ; return 0; }
15432 EOF
15433 if { (eval echo configure:15434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15434   rm -rf conftest*
15435   eval "ac_cv_func_$ac_func=yes"
15436 else
15437   echo "configure: failed program was:" >&5
15438   cat conftest.$ac_ext >&5
15439   rm -rf conftest*
15440   eval "ac_cv_func_$ac_func=no"
15441 fi
15442 rm -f conftest*
15443 fi
15444
15445 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15446   echo "$ac_t""yes" 1>&6
15447     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15448   cat >> confdefs.h <<EOF
15449 #define $ac_tr_func 1
15450 EOF
15451  
15452 else
15453   echo "$ac_t""no" 1>&6
15454 fi
15455 done
15456
15457     fi
15458   fi
15459
15460   
15461   
15462   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
15463 echo "configure:15464: checking for hypotf declaration" >&5
15464   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
15465     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
15466   echo $ac_n "(cached) $ac_c" 1>&6
15467 else
15468   
15469       
15470       ac_ext=C
15471 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15472 ac_cpp='$CXXCPP $CPPFLAGS'
15473 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15474 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15475 cross_compiling=$ac_cv_prog_cxx_cross
15476
15477       cat > conftest.$ac_ext <<EOF
15478 #line 15479 "configure"
15479 #include "confdefs.h"
15480 #include <math.h>
15481 int main() {
15482  hypotf(0, 0);
15483 ; return 0; }
15484 EOF
15485 if { (eval echo configure:15486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15486   rm -rf conftest*
15487   glibcpp_cv_func_hypotf_use=yes
15488 else
15489   echo "configure: failed program was:" >&5
15490   cat conftest.$ac_ext >&5
15491   rm -rf conftest*
15492   glibcpp_cv_func_hypotf_use=no
15493 fi
15494 rm -f conftest*
15495       ac_ext=c
15496 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15497 ac_cpp='$CPP $CPPFLAGS'
15498 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15499 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15500 cross_compiling=$ac_cv_prog_cc_cross
15501
15502     
15503 fi
15504
15505   fi
15506   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
15507
15508   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
15509     for ac_func in hypotf
15510 do
15511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15512 echo "configure:15513: checking for $ac_func" >&5
15513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15514   echo $ac_n "(cached) $ac_c" 1>&6
15515 else
15516   cat > conftest.$ac_ext <<EOF
15517 #line 15518 "configure"
15518 #include "confdefs.h"
15519 /* System header to define __stub macros and hopefully few prototypes,
15520     which can conflict with char $ac_func(); below.  */
15521 #include <assert.h>
15522 /* Override any gcc2 internal prototype to avoid an error.  */
15523 /* We use char because int might match the return type of a gcc2
15524     builtin and then its argument prototype would still apply.  */
15525 char $ac_func();
15526
15527 int main() {
15528
15529 /* The GNU C library defines this for functions which it implements
15530     to always fail with ENOSYS.  Some functions are actually named
15531     something starting with __ and the normal name is an alias.  */
15532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15533 choke me
15534 #else
15535 $ac_func();
15536 #endif
15537
15538 ; return 0; }
15539 EOF
15540 if { (eval echo configure:15541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15541   rm -rf conftest*
15542   eval "ac_cv_func_$ac_func=yes"
15543 else
15544   echo "configure: failed program was:" >&5
15545   cat conftest.$ac_ext >&5
15546   rm -rf conftest*
15547   eval "ac_cv_func_$ac_func=no"
15548 fi
15549 rm -f conftest*
15550 fi
15551
15552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15553   echo "$ac_t""yes" 1>&6
15554     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15555   cat >> confdefs.h <<EOF
15556 #define $ac_tr_func 1
15557 EOF
15558  
15559 else
15560   echo "$ac_t""no" 1>&6
15561 fi
15562 done
15563
15564   else
15565     
15566   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
15567 echo "configure:15568: checking for _hypotf declaration" >&5
15568   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
15569     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
15570   echo $ac_n "(cached) $ac_c" 1>&6
15571 else
15572   
15573       
15574       ac_ext=C
15575 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15576 ac_cpp='$CXXCPP $CPPFLAGS'
15577 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15578 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15579 cross_compiling=$ac_cv_prog_cxx_cross
15580
15581       cat > conftest.$ac_ext <<EOF
15582 #line 15583 "configure"
15583 #include "confdefs.h"
15584 #include <math.h>
15585 int main() {
15586  _hypotf(0, 0);
15587 ; return 0; }
15588 EOF
15589 if { (eval echo configure:15590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15590   rm -rf conftest*
15591   glibcpp_cv_func__hypotf_use=yes
15592 else
15593   echo "configure: failed program was:" >&5
15594   cat conftest.$ac_ext >&5
15595   rm -rf conftest*
15596   glibcpp_cv_func__hypotf_use=no
15597 fi
15598 rm -f conftest*
15599       ac_ext=c
15600 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15601 ac_cpp='$CPP $CPPFLAGS'
15602 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15603 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15604 cross_compiling=$ac_cv_prog_cc_cross
15605
15606     
15607 fi
15608
15609   fi
15610   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
15611
15612     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
15613       for ac_func in _hypotf
15614 do
15615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15616 echo "configure:15617: checking for $ac_func" >&5
15617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15618   echo $ac_n "(cached) $ac_c" 1>&6
15619 else
15620   cat > conftest.$ac_ext <<EOF
15621 #line 15622 "configure"
15622 #include "confdefs.h"
15623 /* System header to define __stub macros and hopefully few prototypes,
15624     which can conflict with char $ac_func(); below.  */
15625 #include <assert.h>
15626 /* Override any gcc2 internal prototype to avoid an error.  */
15627 /* We use char because int might match the return type of a gcc2
15628     builtin and then its argument prototype would still apply.  */
15629 char $ac_func();
15630
15631 int main() {
15632
15633 /* The GNU C library defines this for functions which it implements
15634     to always fail with ENOSYS.  Some functions are actually named
15635     something starting with __ and the normal name is an alias.  */
15636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15637 choke me
15638 #else
15639 $ac_func();
15640 #endif
15641
15642 ; return 0; }
15643 EOF
15644 if { (eval echo configure:15645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15645   rm -rf conftest*
15646   eval "ac_cv_func_$ac_func=yes"
15647 else
15648   echo "configure: failed program was:" >&5
15649   cat conftest.$ac_ext >&5
15650   rm -rf conftest*
15651   eval "ac_cv_func_$ac_func=no"
15652 fi
15653 rm -f conftest*
15654 fi
15655
15656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15657   echo "$ac_t""yes" 1>&6
15658     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15659   cat >> confdefs.h <<EOF
15660 #define $ac_tr_func 1
15661 EOF
15662  
15663 else
15664   echo "$ac_t""no" 1>&6
15665 fi
15666 done
15667
15668     fi
15669   fi
15670
15671   
15672   
15673   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
15674 echo "configure:15675: checking for ldexpf declaration" >&5
15675   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
15676     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
15677   echo $ac_n "(cached) $ac_c" 1>&6
15678 else
15679   
15680       
15681       ac_ext=C
15682 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15683 ac_cpp='$CXXCPP $CPPFLAGS'
15684 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15685 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15686 cross_compiling=$ac_cv_prog_cxx_cross
15687
15688       cat > conftest.$ac_ext <<EOF
15689 #line 15690 "configure"
15690 #include "confdefs.h"
15691 #include <math.h>
15692 int main() {
15693  ldexpf(0, 0);
15694 ; return 0; }
15695 EOF
15696 if { (eval echo configure:15697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15697   rm -rf conftest*
15698   glibcpp_cv_func_ldexpf_use=yes
15699 else
15700   echo "configure: failed program was:" >&5
15701   cat conftest.$ac_ext >&5
15702   rm -rf conftest*
15703   glibcpp_cv_func_ldexpf_use=no
15704 fi
15705 rm -f conftest*
15706       ac_ext=c
15707 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15708 ac_cpp='$CPP $CPPFLAGS'
15709 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15710 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15711 cross_compiling=$ac_cv_prog_cc_cross
15712
15713     
15714 fi
15715
15716   fi
15717   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
15718
15719   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
15720     for ac_func in ldexpf
15721 do
15722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15723 echo "configure:15724: checking for $ac_func" >&5
15724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15725   echo $ac_n "(cached) $ac_c" 1>&6
15726 else
15727   cat > conftest.$ac_ext <<EOF
15728 #line 15729 "configure"
15729 #include "confdefs.h"
15730 /* System header to define __stub macros and hopefully few prototypes,
15731     which can conflict with char $ac_func(); below.  */
15732 #include <assert.h>
15733 /* Override any gcc2 internal prototype to avoid an error.  */
15734 /* We use char because int might match the return type of a gcc2
15735     builtin and then its argument prototype would still apply.  */
15736 char $ac_func();
15737
15738 int main() {
15739
15740 /* The GNU C library defines this for functions which it implements
15741     to always fail with ENOSYS.  Some functions are actually named
15742     something starting with __ and the normal name is an alias.  */
15743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15744 choke me
15745 #else
15746 $ac_func();
15747 #endif
15748
15749 ; return 0; }
15750 EOF
15751 if { (eval echo configure:15752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15752   rm -rf conftest*
15753   eval "ac_cv_func_$ac_func=yes"
15754 else
15755   echo "configure: failed program was:" >&5
15756   cat conftest.$ac_ext >&5
15757   rm -rf conftest*
15758   eval "ac_cv_func_$ac_func=no"
15759 fi
15760 rm -f conftest*
15761 fi
15762
15763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15764   echo "$ac_t""yes" 1>&6
15765     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15766   cat >> confdefs.h <<EOF
15767 #define $ac_tr_func 1
15768 EOF
15769  
15770 else
15771   echo "$ac_t""no" 1>&6
15772 fi
15773 done
15774
15775   else
15776     
15777   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
15778 echo "configure:15779: checking for _ldexpf declaration" >&5
15779   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
15780     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
15781   echo $ac_n "(cached) $ac_c" 1>&6
15782 else
15783   
15784       
15785       ac_ext=C
15786 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15787 ac_cpp='$CXXCPP $CPPFLAGS'
15788 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15789 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15790 cross_compiling=$ac_cv_prog_cxx_cross
15791
15792       cat > conftest.$ac_ext <<EOF
15793 #line 15794 "configure"
15794 #include "confdefs.h"
15795 #include <math.h>
15796 int main() {
15797  _ldexpf(0, 0);
15798 ; return 0; }
15799 EOF
15800 if { (eval echo configure:15801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15801   rm -rf conftest*
15802   glibcpp_cv_func__ldexpf_use=yes
15803 else
15804   echo "configure: failed program was:" >&5
15805   cat conftest.$ac_ext >&5
15806   rm -rf conftest*
15807   glibcpp_cv_func__ldexpf_use=no
15808 fi
15809 rm -f conftest*
15810       ac_ext=c
15811 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15812 ac_cpp='$CPP $CPPFLAGS'
15813 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15814 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15815 cross_compiling=$ac_cv_prog_cc_cross
15816
15817     
15818 fi
15819
15820   fi
15821   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
15822
15823     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
15824       for ac_func in _ldexpf
15825 do
15826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15827 echo "configure:15828: checking for $ac_func" >&5
15828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15829   echo $ac_n "(cached) $ac_c" 1>&6
15830 else
15831   cat > conftest.$ac_ext <<EOF
15832 #line 15833 "configure"
15833 #include "confdefs.h"
15834 /* System header to define __stub macros and hopefully few prototypes,
15835     which can conflict with char $ac_func(); below.  */
15836 #include <assert.h>
15837 /* Override any gcc2 internal prototype to avoid an error.  */
15838 /* We use char because int might match the return type of a gcc2
15839     builtin and then its argument prototype would still apply.  */
15840 char $ac_func();
15841
15842 int main() {
15843
15844 /* The GNU C library defines this for functions which it implements
15845     to always fail with ENOSYS.  Some functions are actually named
15846     something starting with __ and the normal name is an alias.  */
15847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15848 choke me
15849 #else
15850 $ac_func();
15851 #endif
15852
15853 ; return 0; }
15854 EOF
15855 if { (eval echo configure:15856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15856   rm -rf conftest*
15857   eval "ac_cv_func_$ac_func=yes"
15858 else
15859   echo "configure: failed program was:" >&5
15860   cat conftest.$ac_ext >&5
15861   rm -rf conftest*
15862   eval "ac_cv_func_$ac_func=no"
15863 fi
15864 rm -f conftest*
15865 fi
15866
15867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15868   echo "$ac_t""yes" 1>&6
15869     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15870   cat >> confdefs.h <<EOF
15871 #define $ac_tr_func 1
15872 EOF
15873  
15874 else
15875   echo "$ac_t""no" 1>&6
15876 fi
15877 done
15878
15879     fi
15880   fi
15881
15882   
15883   
15884   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
15885 echo "configure:15886: checking for logf declaration" >&5
15886   if test x${glibcpp_cv_func_logf_use+set} != xset; then
15887     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
15888   echo $ac_n "(cached) $ac_c" 1>&6
15889 else
15890   
15891       
15892       ac_ext=C
15893 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15894 ac_cpp='$CXXCPP $CPPFLAGS'
15895 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15896 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15897 cross_compiling=$ac_cv_prog_cxx_cross
15898
15899       cat > conftest.$ac_ext <<EOF
15900 #line 15901 "configure"
15901 #include "confdefs.h"
15902 #include <math.h>
15903                       #ifdef HAVE_IEEEFP_H
15904                       #include <ieeefp.h>
15905                       #endif
15906                      
15907 int main() {
15908  logf(0);
15909 ; return 0; }
15910 EOF
15911 if { (eval echo configure:15912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15912   rm -rf conftest*
15913   glibcpp_cv_func_logf_use=yes
15914 else
15915   echo "configure: failed program was:" >&5
15916   cat conftest.$ac_ext >&5
15917   rm -rf conftest*
15918   glibcpp_cv_func_logf_use=no
15919 fi
15920 rm -f conftest*
15921       ac_ext=c
15922 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15923 ac_cpp='$CPP $CPPFLAGS'
15924 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15925 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15926 cross_compiling=$ac_cv_prog_cc_cross
15927
15928     
15929 fi
15930
15931   fi
15932   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
15933
15934   if test x$glibcpp_cv_func_logf_use = x"yes"; then
15935     for ac_func in logf
15936 do
15937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15938 echo "configure:15939: checking for $ac_func" >&5
15939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15940   echo $ac_n "(cached) $ac_c" 1>&6
15941 else
15942   cat > conftest.$ac_ext <<EOF
15943 #line 15944 "configure"
15944 #include "confdefs.h"
15945 /* System header to define __stub macros and hopefully few prototypes,
15946     which can conflict with char $ac_func(); below.  */
15947 #include <assert.h>
15948 /* Override any gcc2 internal prototype to avoid an error.  */
15949 /* We use char because int might match the return type of a gcc2
15950     builtin and then its argument prototype would still apply.  */
15951 char $ac_func();
15952
15953 int main() {
15954
15955 /* The GNU C library defines this for functions which it implements
15956     to always fail with ENOSYS.  Some functions are actually named
15957     something starting with __ and the normal name is an alias.  */
15958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15959 choke me
15960 #else
15961 $ac_func();
15962 #endif
15963
15964 ; return 0; }
15965 EOF
15966 if { (eval echo configure:15967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15967   rm -rf conftest*
15968   eval "ac_cv_func_$ac_func=yes"
15969 else
15970   echo "configure: failed program was:" >&5
15971   cat conftest.$ac_ext >&5
15972   rm -rf conftest*
15973   eval "ac_cv_func_$ac_func=no"
15974 fi
15975 rm -f conftest*
15976 fi
15977
15978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15979   echo "$ac_t""yes" 1>&6
15980     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15981   cat >> confdefs.h <<EOF
15982 #define $ac_tr_func 1
15983 EOF
15984  
15985 else
15986   echo "$ac_t""no" 1>&6
15987 fi
15988 done
15989
15990   else
15991     
15992   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
15993 echo "configure:15994: checking for _logf declaration" >&5
15994   if test x${glibcpp_cv_func__logf_use+set} != xset; then
15995     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
15996   echo $ac_n "(cached) $ac_c" 1>&6
15997 else
15998   
15999       
16000       ac_ext=C
16001 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16002 ac_cpp='$CXXCPP $CPPFLAGS'
16003 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16004 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16005 cross_compiling=$ac_cv_prog_cxx_cross
16006
16007       cat > conftest.$ac_ext <<EOF
16008 #line 16009 "configure"
16009 #include "confdefs.h"
16010 #include <math.h>
16011                       #ifdef HAVE_IEEEFP_H
16012                       #include <ieeefp.h>
16013                       #endif
16014                      
16015 int main() {
16016  _logf(0);
16017 ; return 0; }
16018 EOF
16019 if { (eval echo configure:16020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16020   rm -rf conftest*
16021   glibcpp_cv_func__logf_use=yes
16022 else
16023   echo "configure: failed program was:" >&5
16024   cat conftest.$ac_ext >&5
16025   rm -rf conftest*
16026   glibcpp_cv_func__logf_use=no
16027 fi
16028 rm -f conftest*
16029       ac_ext=c
16030 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16031 ac_cpp='$CPP $CPPFLAGS'
16032 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16033 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16034 cross_compiling=$ac_cv_prog_cc_cross
16035
16036     
16037 fi
16038
16039   fi
16040   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
16041
16042     if test x$glibcpp_cv_func__logf_use = x"yes"; then
16043       for ac_func in _logf
16044 do
16045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16046 echo "configure:16047: checking for $ac_func" >&5
16047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16048   echo $ac_n "(cached) $ac_c" 1>&6
16049 else
16050   cat > conftest.$ac_ext <<EOF
16051 #line 16052 "configure"
16052 #include "confdefs.h"
16053 /* System header to define __stub macros and hopefully few prototypes,
16054     which can conflict with char $ac_func(); below.  */
16055 #include <assert.h>
16056 /* Override any gcc2 internal prototype to avoid an error.  */
16057 /* We use char because int might match the return type of a gcc2
16058     builtin and then its argument prototype would still apply.  */
16059 char $ac_func();
16060
16061 int main() {
16062
16063 /* The GNU C library defines this for functions which it implements
16064     to always fail with ENOSYS.  Some functions are actually named
16065     something starting with __ and the normal name is an alias.  */
16066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16067 choke me
16068 #else
16069 $ac_func();
16070 #endif
16071
16072 ; return 0; }
16073 EOF
16074 if { (eval echo configure:16075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16075   rm -rf conftest*
16076   eval "ac_cv_func_$ac_func=yes"
16077 else
16078   echo "configure: failed program was:" >&5
16079   cat conftest.$ac_ext >&5
16080   rm -rf conftest*
16081   eval "ac_cv_func_$ac_func=no"
16082 fi
16083 rm -f conftest*
16084 fi
16085
16086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16087   echo "$ac_t""yes" 1>&6
16088     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16089   cat >> confdefs.h <<EOF
16090 #define $ac_tr_func 1
16091 EOF
16092  
16093 else
16094   echo "$ac_t""no" 1>&6
16095 fi
16096 done
16097
16098     fi
16099   fi
16100
16101   
16102   
16103   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
16104 echo "configure:16105: checking for log10f declaration" >&5
16105   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
16106     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
16107   echo $ac_n "(cached) $ac_c" 1>&6
16108 else
16109   
16110       
16111       ac_ext=C
16112 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16113 ac_cpp='$CXXCPP $CPPFLAGS'
16114 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16115 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16116 cross_compiling=$ac_cv_prog_cxx_cross
16117
16118       cat > conftest.$ac_ext <<EOF
16119 #line 16120 "configure"
16120 #include "confdefs.h"
16121 #include <math.h>
16122                       #ifdef HAVE_IEEEFP_H
16123                       #include <ieeefp.h>
16124                       #endif
16125                      
16126 int main() {
16127  log10f(0);
16128 ; return 0; }
16129 EOF
16130 if { (eval echo configure:16131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16131   rm -rf conftest*
16132   glibcpp_cv_func_log10f_use=yes
16133 else
16134   echo "configure: failed program was:" >&5
16135   cat conftest.$ac_ext >&5
16136   rm -rf conftest*
16137   glibcpp_cv_func_log10f_use=no
16138 fi
16139 rm -f conftest*
16140       ac_ext=c
16141 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16142 ac_cpp='$CPP $CPPFLAGS'
16143 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16144 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16145 cross_compiling=$ac_cv_prog_cc_cross
16146
16147     
16148 fi
16149
16150   fi
16151   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
16152
16153   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
16154     for ac_func in log10f
16155 do
16156 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16157 echo "configure:16158: checking for $ac_func" >&5
16158 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16159   echo $ac_n "(cached) $ac_c" 1>&6
16160 else
16161   cat > conftest.$ac_ext <<EOF
16162 #line 16163 "configure"
16163 #include "confdefs.h"
16164 /* System header to define __stub macros and hopefully few prototypes,
16165     which can conflict with char $ac_func(); below.  */
16166 #include <assert.h>
16167 /* Override any gcc2 internal prototype to avoid an error.  */
16168 /* We use char because int might match the return type of a gcc2
16169     builtin and then its argument prototype would still apply.  */
16170 char $ac_func();
16171
16172 int main() {
16173
16174 /* The GNU C library defines this for functions which it implements
16175     to always fail with ENOSYS.  Some functions are actually named
16176     something starting with __ and the normal name is an alias.  */
16177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16178 choke me
16179 #else
16180 $ac_func();
16181 #endif
16182
16183 ; return 0; }
16184 EOF
16185 if { (eval echo configure:16186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16186   rm -rf conftest*
16187   eval "ac_cv_func_$ac_func=yes"
16188 else
16189   echo "configure: failed program was:" >&5
16190   cat conftest.$ac_ext >&5
16191   rm -rf conftest*
16192   eval "ac_cv_func_$ac_func=no"
16193 fi
16194 rm -f conftest*
16195 fi
16196
16197 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16198   echo "$ac_t""yes" 1>&6
16199     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16200   cat >> confdefs.h <<EOF
16201 #define $ac_tr_func 1
16202 EOF
16203  
16204 else
16205   echo "$ac_t""no" 1>&6
16206 fi
16207 done
16208
16209   else
16210     
16211   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
16212 echo "configure:16213: checking for _log10f declaration" >&5
16213   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
16214     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
16215   echo $ac_n "(cached) $ac_c" 1>&6
16216 else
16217   
16218       
16219       ac_ext=C
16220 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16221 ac_cpp='$CXXCPP $CPPFLAGS'
16222 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16223 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16224 cross_compiling=$ac_cv_prog_cxx_cross
16225
16226       cat > conftest.$ac_ext <<EOF
16227 #line 16228 "configure"
16228 #include "confdefs.h"
16229 #include <math.h>
16230                       #ifdef HAVE_IEEEFP_H
16231                       #include <ieeefp.h>
16232                       #endif
16233                      
16234 int main() {
16235  _log10f(0);
16236 ; return 0; }
16237 EOF
16238 if { (eval echo configure:16239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16239   rm -rf conftest*
16240   glibcpp_cv_func__log10f_use=yes
16241 else
16242   echo "configure: failed program was:" >&5
16243   cat conftest.$ac_ext >&5
16244   rm -rf conftest*
16245   glibcpp_cv_func__log10f_use=no
16246 fi
16247 rm -f conftest*
16248       ac_ext=c
16249 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16250 ac_cpp='$CPP $CPPFLAGS'
16251 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16252 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16253 cross_compiling=$ac_cv_prog_cc_cross
16254
16255     
16256 fi
16257
16258   fi
16259   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
16260
16261     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
16262       for ac_func in _log10f
16263 do
16264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16265 echo "configure:16266: checking for $ac_func" >&5
16266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16267   echo $ac_n "(cached) $ac_c" 1>&6
16268 else
16269   cat > conftest.$ac_ext <<EOF
16270 #line 16271 "configure"
16271 #include "confdefs.h"
16272 /* System header to define __stub macros and hopefully few prototypes,
16273     which can conflict with char $ac_func(); below.  */
16274 #include <assert.h>
16275 /* Override any gcc2 internal prototype to avoid an error.  */
16276 /* We use char because int might match the return type of a gcc2
16277     builtin and then its argument prototype would still apply.  */
16278 char $ac_func();
16279
16280 int main() {
16281
16282 /* The GNU C library defines this for functions which it implements
16283     to always fail with ENOSYS.  Some functions are actually named
16284     something starting with __ and the normal name is an alias.  */
16285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16286 choke me
16287 #else
16288 $ac_func();
16289 #endif
16290
16291 ; return 0; }
16292 EOF
16293 if { (eval echo configure:16294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16294   rm -rf conftest*
16295   eval "ac_cv_func_$ac_func=yes"
16296 else
16297   echo "configure: failed program was:" >&5
16298   cat conftest.$ac_ext >&5
16299   rm -rf conftest*
16300   eval "ac_cv_func_$ac_func=no"
16301 fi
16302 rm -f conftest*
16303 fi
16304
16305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16306   echo "$ac_t""yes" 1>&6
16307     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16308   cat >> confdefs.h <<EOF
16309 #define $ac_tr_func 1
16310 EOF
16311  
16312 else
16313   echo "$ac_t""no" 1>&6
16314 fi
16315 done
16316
16317     fi
16318   fi
16319
16320   
16321   
16322   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
16323 echo "configure:16324: checking for modff declaration" >&5
16324   if test x${glibcpp_cv_func_modff_use+set} != xset; then
16325     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
16326   echo $ac_n "(cached) $ac_c" 1>&6
16327 else
16328   
16329       
16330       ac_ext=C
16331 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16332 ac_cpp='$CXXCPP $CPPFLAGS'
16333 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16334 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16335 cross_compiling=$ac_cv_prog_cxx_cross
16336
16337       cat > conftest.$ac_ext <<EOF
16338 #line 16339 "configure"
16339 #include "confdefs.h"
16340 #include <math.h>
16341 int main() {
16342  modff(0, 0);
16343 ; return 0; }
16344 EOF
16345 if { (eval echo configure:16346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16346   rm -rf conftest*
16347   glibcpp_cv_func_modff_use=yes
16348 else
16349   echo "configure: failed program was:" >&5
16350   cat conftest.$ac_ext >&5
16351   rm -rf conftest*
16352   glibcpp_cv_func_modff_use=no
16353 fi
16354 rm -f conftest*
16355       ac_ext=c
16356 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16357 ac_cpp='$CPP $CPPFLAGS'
16358 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16359 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16360 cross_compiling=$ac_cv_prog_cc_cross
16361
16362     
16363 fi
16364
16365   fi
16366   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
16367
16368   if test x$glibcpp_cv_func_modff_use = x"yes"; then
16369     for ac_func in modff
16370 do
16371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16372 echo "configure:16373: checking for $ac_func" >&5
16373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16374   echo $ac_n "(cached) $ac_c" 1>&6
16375 else
16376   cat > conftest.$ac_ext <<EOF
16377 #line 16378 "configure"
16378 #include "confdefs.h"
16379 /* System header to define __stub macros and hopefully few prototypes,
16380     which can conflict with char $ac_func(); below.  */
16381 #include <assert.h>
16382 /* Override any gcc2 internal prototype to avoid an error.  */
16383 /* We use char because int might match the return type of a gcc2
16384     builtin and then its argument prototype would still apply.  */
16385 char $ac_func();
16386
16387 int main() {
16388
16389 /* The GNU C library defines this for functions which it implements
16390     to always fail with ENOSYS.  Some functions are actually named
16391     something starting with __ and the normal name is an alias.  */
16392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16393 choke me
16394 #else
16395 $ac_func();
16396 #endif
16397
16398 ; return 0; }
16399 EOF
16400 if { (eval echo configure:16401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16401   rm -rf conftest*
16402   eval "ac_cv_func_$ac_func=yes"
16403 else
16404   echo "configure: failed program was:" >&5
16405   cat conftest.$ac_ext >&5
16406   rm -rf conftest*
16407   eval "ac_cv_func_$ac_func=no"
16408 fi
16409 rm -f conftest*
16410 fi
16411
16412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16413   echo "$ac_t""yes" 1>&6
16414     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16415   cat >> confdefs.h <<EOF
16416 #define $ac_tr_func 1
16417 EOF
16418  
16419 else
16420   echo "$ac_t""no" 1>&6
16421 fi
16422 done
16423
16424   else
16425     
16426   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
16427 echo "configure:16428: checking for _modff declaration" >&5
16428   if test x${glibcpp_cv_func__modff_use+set} != xset; then
16429     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
16430   echo $ac_n "(cached) $ac_c" 1>&6
16431 else
16432   
16433       
16434       ac_ext=C
16435 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16436 ac_cpp='$CXXCPP $CPPFLAGS'
16437 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16438 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16439 cross_compiling=$ac_cv_prog_cxx_cross
16440
16441       cat > conftest.$ac_ext <<EOF
16442 #line 16443 "configure"
16443 #include "confdefs.h"
16444 #include <math.h>
16445 int main() {
16446  _modff(0, 0);
16447 ; return 0; }
16448 EOF
16449 if { (eval echo configure:16450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16450   rm -rf conftest*
16451   glibcpp_cv_func__modff_use=yes
16452 else
16453   echo "configure: failed program was:" >&5
16454   cat conftest.$ac_ext >&5
16455   rm -rf conftest*
16456   glibcpp_cv_func__modff_use=no
16457 fi
16458 rm -f conftest*
16459       ac_ext=c
16460 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16461 ac_cpp='$CPP $CPPFLAGS'
16462 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16463 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16464 cross_compiling=$ac_cv_prog_cc_cross
16465
16466     
16467 fi
16468
16469   fi
16470   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
16471
16472     if test x$glibcpp_cv_func__modff_use = x"yes"; then
16473       for ac_func in _modff
16474 do
16475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16476 echo "configure:16477: checking for $ac_func" >&5
16477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16478   echo $ac_n "(cached) $ac_c" 1>&6
16479 else
16480   cat > conftest.$ac_ext <<EOF
16481 #line 16482 "configure"
16482 #include "confdefs.h"
16483 /* System header to define __stub macros and hopefully few prototypes,
16484     which can conflict with char $ac_func(); below.  */
16485 #include <assert.h>
16486 /* Override any gcc2 internal prototype to avoid an error.  */
16487 /* We use char because int might match the return type of a gcc2
16488     builtin and then its argument prototype would still apply.  */
16489 char $ac_func();
16490
16491 int main() {
16492
16493 /* The GNU C library defines this for functions which it implements
16494     to always fail with ENOSYS.  Some functions are actually named
16495     something starting with __ and the normal name is an alias.  */
16496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16497 choke me
16498 #else
16499 $ac_func();
16500 #endif
16501
16502 ; return 0; }
16503 EOF
16504 if { (eval echo configure:16505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16505   rm -rf conftest*
16506   eval "ac_cv_func_$ac_func=yes"
16507 else
16508   echo "configure: failed program was:" >&5
16509   cat conftest.$ac_ext >&5
16510   rm -rf conftest*
16511   eval "ac_cv_func_$ac_func=no"
16512 fi
16513 rm -f conftest*
16514 fi
16515
16516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16517   echo "$ac_t""yes" 1>&6
16518     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16519   cat >> confdefs.h <<EOF
16520 #define $ac_tr_func 1
16521 EOF
16522  
16523 else
16524   echo "$ac_t""no" 1>&6
16525 fi
16526 done
16527
16528     fi
16529   fi
16530
16531   
16532   
16533   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
16534 echo "configure:16535: checking for powf declaration" >&5
16535   if test x${glibcpp_cv_func_powf_use+set} != xset; then
16536     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
16537   echo $ac_n "(cached) $ac_c" 1>&6
16538 else
16539   
16540       
16541       ac_ext=C
16542 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16543 ac_cpp='$CXXCPP $CPPFLAGS'
16544 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16545 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16546 cross_compiling=$ac_cv_prog_cxx_cross
16547
16548       cat > conftest.$ac_ext <<EOF
16549 #line 16550 "configure"
16550 #include "confdefs.h"
16551 #include <math.h>
16552 int main() {
16553  powf(0, 0);
16554 ; return 0; }
16555 EOF
16556 if { (eval echo configure:16557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16557   rm -rf conftest*
16558   glibcpp_cv_func_powf_use=yes
16559 else
16560   echo "configure: failed program was:" >&5
16561   cat conftest.$ac_ext >&5
16562   rm -rf conftest*
16563   glibcpp_cv_func_powf_use=no
16564 fi
16565 rm -f conftest*
16566       ac_ext=c
16567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16568 ac_cpp='$CPP $CPPFLAGS'
16569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16571 cross_compiling=$ac_cv_prog_cc_cross
16572
16573     
16574 fi
16575
16576   fi
16577   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
16578
16579   if test x$glibcpp_cv_func_powf_use = x"yes"; then
16580     for ac_func in powf
16581 do
16582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16583 echo "configure:16584: checking for $ac_func" >&5
16584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16585   echo $ac_n "(cached) $ac_c" 1>&6
16586 else
16587   cat > conftest.$ac_ext <<EOF
16588 #line 16589 "configure"
16589 #include "confdefs.h"
16590 /* System header to define __stub macros and hopefully few prototypes,
16591     which can conflict with char $ac_func(); below.  */
16592 #include <assert.h>
16593 /* Override any gcc2 internal prototype to avoid an error.  */
16594 /* We use char because int might match the return type of a gcc2
16595     builtin and then its argument prototype would still apply.  */
16596 char $ac_func();
16597
16598 int main() {
16599
16600 /* The GNU C library defines this for functions which it implements
16601     to always fail with ENOSYS.  Some functions are actually named
16602     something starting with __ and the normal name is an alias.  */
16603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16604 choke me
16605 #else
16606 $ac_func();
16607 #endif
16608
16609 ; return 0; }
16610 EOF
16611 if { (eval echo configure:16612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16612   rm -rf conftest*
16613   eval "ac_cv_func_$ac_func=yes"
16614 else
16615   echo "configure: failed program was:" >&5
16616   cat conftest.$ac_ext >&5
16617   rm -rf conftest*
16618   eval "ac_cv_func_$ac_func=no"
16619 fi
16620 rm -f conftest*
16621 fi
16622
16623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16624   echo "$ac_t""yes" 1>&6
16625     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16626   cat >> confdefs.h <<EOF
16627 #define $ac_tr_func 1
16628 EOF
16629  
16630 else
16631   echo "$ac_t""no" 1>&6
16632 fi
16633 done
16634
16635   else
16636     
16637   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
16638 echo "configure:16639: checking for _powf declaration" >&5
16639   if test x${glibcpp_cv_func__powf_use+set} != xset; then
16640     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
16641   echo $ac_n "(cached) $ac_c" 1>&6
16642 else
16643   
16644       
16645       ac_ext=C
16646 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16647 ac_cpp='$CXXCPP $CPPFLAGS'
16648 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16649 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16650 cross_compiling=$ac_cv_prog_cxx_cross
16651
16652       cat > conftest.$ac_ext <<EOF
16653 #line 16654 "configure"
16654 #include "confdefs.h"
16655 #include <math.h>
16656 int main() {
16657  _powf(0, 0);
16658 ; return 0; }
16659 EOF
16660 if { (eval echo configure:16661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16661   rm -rf conftest*
16662   glibcpp_cv_func__powf_use=yes
16663 else
16664   echo "configure: failed program was:" >&5
16665   cat conftest.$ac_ext >&5
16666   rm -rf conftest*
16667   glibcpp_cv_func__powf_use=no
16668 fi
16669 rm -f conftest*
16670       ac_ext=c
16671 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16672 ac_cpp='$CPP $CPPFLAGS'
16673 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16674 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16675 cross_compiling=$ac_cv_prog_cc_cross
16676
16677     
16678 fi
16679
16680   fi
16681   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
16682
16683     if test x$glibcpp_cv_func__powf_use = x"yes"; then
16684       for ac_func in _powf
16685 do
16686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16687 echo "configure:16688: checking for $ac_func" >&5
16688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16689   echo $ac_n "(cached) $ac_c" 1>&6
16690 else
16691   cat > conftest.$ac_ext <<EOF
16692 #line 16693 "configure"
16693 #include "confdefs.h"
16694 /* System header to define __stub macros and hopefully few prototypes,
16695     which can conflict with char $ac_func(); below.  */
16696 #include <assert.h>
16697 /* Override any gcc2 internal prototype to avoid an error.  */
16698 /* We use char because int might match the return type of a gcc2
16699     builtin and then its argument prototype would still apply.  */
16700 char $ac_func();
16701
16702 int main() {
16703
16704 /* The GNU C library defines this for functions which it implements
16705     to always fail with ENOSYS.  Some functions are actually named
16706     something starting with __ and the normal name is an alias.  */
16707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16708 choke me
16709 #else
16710 $ac_func();
16711 #endif
16712
16713 ; return 0; }
16714 EOF
16715 if { (eval echo configure:16716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16716   rm -rf conftest*
16717   eval "ac_cv_func_$ac_func=yes"
16718 else
16719   echo "configure: failed program was:" >&5
16720   cat conftest.$ac_ext >&5
16721   rm -rf conftest*
16722   eval "ac_cv_func_$ac_func=no"
16723 fi
16724 rm -f conftest*
16725 fi
16726
16727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16728   echo "$ac_t""yes" 1>&6
16729     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16730   cat >> confdefs.h <<EOF
16731 #define $ac_tr_func 1
16732 EOF
16733  
16734 else
16735   echo "$ac_t""no" 1>&6
16736 fi
16737 done
16738
16739     fi
16740   fi
16741
16742   
16743   
16744   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
16745 echo "configure:16746: checking for sqrtf declaration" >&5
16746   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
16747     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
16748   echo $ac_n "(cached) $ac_c" 1>&6
16749 else
16750   
16751       
16752       ac_ext=C
16753 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16754 ac_cpp='$CXXCPP $CPPFLAGS'
16755 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16756 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16757 cross_compiling=$ac_cv_prog_cxx_cross
16758
16759       cat > conftest.$ac_ext <<EOF
16760 #line 16761 "configure"
16761 #include "confdefs.h"
16762 #include <math.h>
16763                       #ifdef HAVE_IEEEFP_H
16764                       #include <ieeefp.h>
16765                       #endif
16766                      
16767 int main() {
16768  sqrtf(0);
16769 ; return 0; }
16770 EOF
16771 if { (eval echo configure:16772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16772   rm -rf conftest*
16773   glibcpp_cv_func_sqrtf_use=yes
16774 else
16775   echo "configure: failed program was:" >&5
16776   cat conftest.$ac_ext >&5
16777   rm -rf conftest*
16778   glibcpp_cv_func_sqrtf_use=no
16779 fi
16780 rm -f conftest*
16781       ac_ext=c
16782 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16783 ac_cpp='$CPP $CPPFLAGS'
16784 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16785 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16786 cross_compiling=$ac_cv_prog_cc_cross
16787
16788     
16789 fi
16790
16791   fi
16792   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
16793
16794   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
16795     for ac_func in sqrtf
16796 do
16797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16798 echo "configure:16799: checking for $ac_func" >&5
16799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16800   echo $ac_n "(cached) $ac_c" 1>&6
16801 else
16802   cat > conftest.$ac_ext <<EOF
16803 #line 16804 "configure"
16804 #include "confdefs.h"
16805 /* System header to define __stub macros and hopefully few prototypes,
16806     which can conflict with char $ac_func(); below.  */
16807 #include <assert.h>
16808 /* Override any gcc2 internal prototype to avoid an error.  */
16809 /* We use char because int might match the return type of a gcc2
16810     builtin and then its argument prototype would still apply.  */
16811 char $ac_func();
16812
16813 int main() {
16814
16815 /* The GNU C library defines this for functions which it implements
16816     to always fail with ENOSYS.  Some functions are actually named
16817     something starting with __ and the normal name is an alias.  */
16818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16819 choke me
16820 #else
16821 $ac_func();
16822 #endif
16823
16824 ; return 0; }
16825 EOF
16826 if { (eval echo configure:16827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16827   rm -rf conftest*
16828   eval "ac_cv_func_$ac_func=yes"
16829 else
16830   echo "configure: failed program was:" >&5
16831   cat conftest.$ac_ext >&5
16832   rm -rf conftest*
16833   eval "ac_cv_func_$ac_func=no"
16834 fi
16835 rm -f conftest*
16836 fi
16837
16838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16839   echo "$ac_t""yes" 1>&6
16840     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16841   cat >> confdefs.h <<EOF
16842 #define $ac_tr_func 1
16843 EOF
16844  
16845 else
16846   echo "$ac_t""no" 1>&6
16847 fi
16848 done
16849
16850   else
16851     
16852   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
16853 echo "configure:16854: checking for _sqrtf declaration" >&5
16854   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
16855     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
16856   echo $ac_n "(cached) $ac_c" 1>&6
16857 else
16858   
16859       
16860       ac_ext=C
16861 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16862 ac_cpp='$CXXCPP $CPPFLAGS'
16863 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16864 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16865 cross_compiling=$ac_cv_prog_cxx_cross
16866
16867       cat > conftest.$ac_ext <<EOF
16868 #line 16869 "configure"
16869 #include "confdefs.h"
16870 #include <math.h>
16871                       #ifdef HAVE_IEEEFP_H
16872                       #include <ieeefp.h>
16873                       #endif
16874                      
16875 int main() {
16876  _sqrtf(0);
16877 ; return 0; }
16878 EOF
16879 if { (eval echo configure:16880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16880   rm -rf conftest*
16881   glibcpp_cv_func__sqrtf_use=yes
16882 else
16883   echo "configure: failed program was:" >&5
16884   cat conftest.$ac_ext >&5
16885   rm -rf conftest*
16886   glibcpp_cv_func__sqrtf_use=no
16887 fi
16888 rm -f conftest*
16889       ac_ext=c
16890 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16891 ac_cpp='$CPP $CPPFLAGS'
16892 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16893 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16894 cross_compiling=$ac_cv_prog_cc_cross
16895
16896     
16897 fi
16898
16899   fi
16900   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
16901
16902     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
16903       for ac_func in _sqrtf
16904 do
16905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16906 echo "configure:16907: checking for $ac_func" >&5
16907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16908   echo $ac_n "(cached) $ac_c" 1>&6
16909 else
16910   cat > conftest.$ac_ext <<EOF
16911 #line 16912 "configure"
16912 #include "confdefs.h"
16913 /* System header to define __stub macros and hopefully few prototypes,
16914     which can conflict with char $ac_func(); below.  */
16915 #include <assert.h>
16916 /* Override any gcc2 internal prototype to avoid an error.  */
16917 /* We use char because int might match the return type of a gcc2
16918     builtin and then its argument prototype would still apply.  */
16919 char $ac_func();
16920
16921 int main() {
16922
16923 /* The GNU C library defines this for functions which it implements
16924     to always fail with ENOSYS.  Some functions are actually named
16925     something starting with __ and the normal name is an alias.  */
16926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16927 choke me
16928 #else
16929 $ac_func();
16930 #endif
16931
16932 ; return 0; }
16933 EOF
16934 if { (eval echo configure:16935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16935   rm -rf conftest*
16936   eval "ac_cv_func_$ac_func=yes"
16937 else
16938   echo "configure: failed program was:" >&5
16939   cat conftest.$ac_ext >&5
16940   rm -rf conftest*
16941   eval "ac_cv_func_$ac_func=no"
16942 fi
16943 rm -f conftest*
16944 fi
16945
16946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16947   echo "$ac_t""yes" 1>&6
16948     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16949   cat >> confdefs.h <<EOF
16950 #define $ac_tr_func 1
16951 EOF
16952  
16953 else
16954   echo "$ac_t""no" 1>&6
16955 fi
16956 done
16957
16958     fi
16959   fi
16960
16961   
16962   
16963   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
16964 echo "configure:16965: checking for sincosf declaration" >&5
16965   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
16966     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
16967   echo $ac_n "(cached) $ac_c" 1>&6
16968 else
16969   
16970       
16971       ac_ext=C
16972 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16973 ac_cpp='$CXXCPP $CPPFLAGS'
16974 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16975 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16976 cross_compiling=$ac_cv_prog_cxx_cross
16977
16978       cat > conftest.$ac_ext <<EOF
16979 #line 16980 "configure"
16980 #include "confdefs.h"
16981 #include <math.h>
16982 int main() {
16983  sincosf(0, 0, 0);
16984 ; return 0; }
16985 EOF
16986 if { (eval echo configure:16987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16987   rm -rf conftest*
16988   glibcpp_cv_func_sincosf_use=yes
16989 else
16990   echo "configure: failed program was:" >&5
16991   cat conftest.$ac_ext >&5
16992   rm -rf conftest*
16993   glibcpp_cv_func_sincosf_use=no
16994 fi
16995 rm -f conftest*
16996       ac_ext=c
16997 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16998 ac_cpp='$CPP $CPPFLAGS'
16999 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17000 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17001 cross_compiling=$ac_cv_prog_cc_cross
17002
17003     
17004 fi
17005
17006   fi
17007   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
17008
17009   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
17010     for ac_func in sincosf
17011 do
17012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17013 echo "configure:17014: checking for $ac_func" >&5
17014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17015   echo $ac_n "(cached) $ac_c" 1>&6
17016 else
17017   cat > conftest.$ac_ext <<EOF
17018 #line 17019 "configure"
17019 #include "confdefs.h"
17020 /* System header to define __stub macros and hopefully few prototypes,
17021     which can conflict with char $ac_func(); below.  */
17022 #include <assert.h>
17023 /* Override any gcc2 internal prototype to avoid an error.  */
17024 /* We use char because int might match the return type of a gcc2
17025     builtin and then its argument prototype would still apply.  */
17026 char $ac_func();
17027
17028 int main() {
17029
17030 /* The GNU C library defines this for functions which it implements
17031     to always fail with ENOSYS.  Some functions are actually named
17032     something starting with __ and the normal name is an alias.  */
17033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17034 choke me
17035 #else
17036 $ac_func();
17037 #endif
17038
17039 ; return 0; }
17040 EOF
17041 if { (eval echo configure:17042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17042   rm -rf conftest*
17043   eval "ac_cv_func_$ac_func=yes"
17044 else
17045   echo "configure: failed program was:" >&5
17046   cat conftest.$ac_ext >&5
17047   rm -rf conftest*
17048   eval "ac_cv_func_$ac_func=no"
17049 fi
17050 rm -f conftest*
17051 fi
17052
17053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17054   echo "$ac_t""yes" 1>&6
17055     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17056   cat >> confdefs.h <<EOF
17057 #define $ac_tr_func 1
17058 EOF
17059  
17060 else
17061   echo "$ac_t""no" 1>&6
17062 fi
17063 done
17064
17065   else
17066     
17067   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
17068 echo "configure:17069: checking for _sincosf declaration" >&5
17069   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
17070     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
17071   echo $ac_n "(cached) $ac_c" 1>&6
17072 else
17073   
17074       
17075       ac_ext=C
17076 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17077 ac_cpp='$CXXCPP $CPPFLAGS'
17078 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17079 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17080 cross_compiling=$ac_cv_prog_cxx_cross
17081
17082       cat > conftest.$ac_ext <<EOF
17083 #line 17084 "configure"
17084 #include "confdefs.h"
17085 #include <math.h>
17086 int main() {
17087  _sincosf(0, 0, 0);
17088 ; return 0; }
17089 EOF
17090 if { (eval echo configure:17091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17091   rm -rf conftest*
17092   glibcpp_cv_func__sincosf_use=yes
17093 else
17094   echo "configure: failed program was:" >&5
17095   cat conftest.$ac_ext >&5
17096   rm -rf conftest*
17097   glibcpp_cv_func__sincosf_use=no
17098 fi
17099 rm -f conftest*
17100       ac_ext=c
17101 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17102 ac_cpp='$CPP $CPPFLAGS'
17103 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17104 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17105 cross_compiling=$ac_cv_prog_cc_cross
17106
17107     
17108 fi
17109
17110   fi
17111   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
17112
17113     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
17114       for ac_func in _sincosf
17115 do
17116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17117 echo "configure:17118: checking for $ac_func" >&5
17118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17119   echo $ac_n "(cached) $ac_c" 1>&6
17120 else
17121   cat > conftest.$ac_ext <<EOF
17122 #line 17123 "configure"
17123 #include "confdefs.h"
17124 /* System header to define __stub macros and hopefully few prototypes,
17125     which can conflict with char $ac_func(); below.  */
17126 #include <assert.h>
17127 /* Override any gcc2 internal prototype to avoid an error.  */
17128 /* We use char because int might match the return type of a gcc2
17129     builtin and then its argument prototype would still apply.  */
17130 char $ac_func();
17131
17132 int main() {
17133
17134 /* The GNU C library defines this for functions which it implements
17135     to always fail with ENOSYS.  Some functions are actually named
17136     something starting with __ and the normal name is an alias.  */
17137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17138 choke me
17139 #else
17140 $ac_func();
17141 #endif
17142
17143 ; return 0; }
17144 EOF
17145 if { (eval echo configure:17146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17146   rm -rf conftest*
17147   eval "ac_cv_func_$ac_func=yes"
17148 else
17149   echo "configure: failed program was:" >&5
17150   cat conftest.$ac_ext >&5
17151   rm -rf conftest*
17152   eval "ac_cv_func_$ac_func=no"
17153 fi
17154 rm -f conftest*
17155 fi
17156
17157 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17158   echo "$ac_t""yes" 1>&6
17159     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17160   cat >> confdefs.h <<EOF
17161 #define $ac_tr_func 1
17162 EOF
17163  
17164 else
17165   echo "$ac_t""no" 1>&6
17166 fi
17167 done
17168
17169     fi
17170   fi
17171
17172   
17173   
17174   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
17175 echo "configure:17176: checking for finitef declaration" >&5
17176   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
17177     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
17178   echo $ac_n "(cached) $ac_c" 1>&6
17179 else
17180   
17181       
17182       ac_ext=C
17183 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17184 ac_cpp='$CXXCPP $CPPFLAGS'
17185 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17186 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17187 cross_compiling=$ac_cv_prog_cxx_cross
17188
17189       cat > conftest.$ac_ext <<EOF
17190 #line 17191 "configure"
17191 #include "confdefs.h"
17192 #include <math.h>
17193                       #ifdef HAVE_IEEEFP_H
17194                       #include <ieeefp.h>
17195                       #endif
17196                      
17197 int main() {
17198  finitef(0);
17199 ; return 0; }
17200 EOF
17201 if { (eval echo configure:17202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17202   rm -rf conftest*
17203   glibcpp_cv_func_finitef_use=yes
17204 else
17205   echo "configure: failed program was:" >&5
17206   cat conftest.$ac_ext >&5
17207   rm -rf conftest*
17208   glibcpp_cv_func_finitef_use=no
17209 fi
17210 rm -f conftest*
17211       ac_ext=c
17212 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17213 ac_cpp='$CPP $CPPFLAGS'
17214 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17215 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17216 cross_compiling=$ac_cv_prog_cc_cross
17217
17218     
17219 fi
17220
17221   fi
17222   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
17223
17224   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
17225     for ac_func in finitef
17226 do
17227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17228 echo "configure:17229: checking for $ac_func" >&5
17229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17230   echo $ac_n "(cached) $ac_c" 1>&6
17231 else
17232   cat > conftest.$ac_ext <<EOF
17233 #line 17234 "configure"
17234 #include "confdefs.h"
17235 /* System header to define __stub macros and hopefully few prototypes,
17236     which can conflict with char $ac_func(); below.  */
17237 #include <assert.h>
17238 /* Override any gcc2 internal prototype to avoid an error.  */
17239 /* We use char because int might match the return type of a gcc2
17240     builtin and then its argument prototype would still apply.  */
17241 char $ac_func();
17242
17243 int main() {
17244
17245 /* The GNU C library defines this for functions which it implements
17246     to always fail with ENOSYS.  Some functions are actually named
17247     something starting with __ and the normal name is an alias.  */
17248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17249 choke me
17250 #else
17251 $ac_func();
17252 #endif
17253
17254 ; return 0; }
17255 EOF
17256 if { (eval echo configure:17257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17257   rm -rf conftest*
17258   eval "ac_cv_func_$ac_func=yes"
17259 else
17260   echo "configure: failed program was:" >&5
17261   cat conftest.$ac_ext >&5
17262   rm -rf conftest*
17263   eval "ac_cv_func_$ac_func=no"
17264 fi
17265 rm -f conftest*
17266 fi
17267
17268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17269   echo "$ac_t""yes" 1>&6
17270     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17271   cat >> confdefs.h <<EOF
17272 #define $ac_tr_func 1
17273 EOF
17274  
17275 else
17276   echo "$ac_t""no" 1>&6
17277 fi
17278 done
17279
17280   else
17281     
17282   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
17283 echo "configure:17284: checking for _finitef declaration" >&5
17284   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
17285     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
17286   echo $ac_n "(cached) $ac_c" 1>&6
17287 else
17288   
17289       
17290       ac_ext=C
17291 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17292 ac_cpp='$CXXCPP $CPPFLAGS'
17293 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17294 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17295 cross_compiling=$ac_cv_prog_cxx_cross
17296
17297       cat > conftest.$ac_ext <<EOF
17298 #line 17299 "configure"
17299 #include "confdefs.h"
17300 #include <math.h>
17301                       #ifdef HAVE_IEEEFP_H
17302                       #include <ieeefp.h>
17303                       #endif
17304                      
17305 int main() {
17306  _finitef(0);
17307 ; return 0; }
17308 EOF
17309 if { (eval echo configure:17310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17310   rm -rf conftest*
17311   glibcpp_cv_func__finitef_use=yes
17312 else
17313   echo "configure: failed program was:" >&5
17314   cat conftest.$ac_ext >&5
17315   rm -rf conftest*
17316   glibcpp_cv_func__finitef_use=no
17317 fi
17318 rm -f conftest*
17319       ac_ext=c
17320 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17321 ac_cpp='$CPP $CPPFLAGS'
17322 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17323 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17324 cross_compiling=$ac_cv_prog_cc_cross
17325
17326     
17327 fi
17328
17329   fi
17330   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
17331
17332     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
17333       for ac_func in _finitef
17334 do
17335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17336 echo "configure:17337: checking for $ac_func" >&5
17337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17338   echo $ac_n "(cached) $ac_c" 1>&6
17339 else
17340   cat > conftest.$ac_ext <<EOF
17341 #line 17342 "configure"
17342 #include "confdefs.h"
17343 /* System header to define __stub macros and hopefully few prototypes,
17344     which can conflict with char $ac_func(); below.  */
17345 #include <assert.h>
17346 /* Override any gcc2 internal prototype to avoid an error.  */
17347 /* We use char because int might match the return type of a gcc2
17348     builtin and then its argument prototype would still apply.  */
17349 char $ac_func();
17350
17351 int main() {
17352
17353 /* The GNU C library defines this for functions which it implements
17354     to always fail with ENOSYS.  Some functions are actually named
17355     something starting with __ and the normal name is an alias.  */
17356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17357 choke me
17358 #else
17359 $ac_func();
17360 #endif
17361
17362 ; return 0; }
17363 EOF
17364 if { (eval echo configure:17365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17365   rm -rf conftest*
17366   eval "ac_cv_func_$ac_func=yes"
17367 else
17368   echo "configure: failed program was:" >&5
17369   cat conftest.$ac_ext >&5
17370   rm -rf conftest*
17371   eval "ac_cv_func_$ac_func=no"
17372 fi
17373 rm -f conftest*
17374 fi
17375
17376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17377   echo "$ac_t""yes" 1>&6
17378     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17379   cat >> confdefs.h <<EOF
17380 #define $ac_tr_func 1
17381 EOF
17382  
17383 else
17384   echo "$ac_t""no" 1>&6
17385 fi
17386 done
17387
17388     fi
17389   fi
17390
17391
17392     
17393   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
17394 echo "configure:17395: checking for long double trig functions" >&5
17395   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
17396   echo $ac_n "(cached) $ac_c" 1>&6
17397 else
17398   
17399     
17400     ac_ext=C
17401 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17402 ac_cpp='$CXXCPP $CPPFLAGS'
17403 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17404 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17405 cross_compiling=$ac_cv_prog_cxx_cross
17406
17407     cat > conftest.$ac_ext <<EOF
17408 #line 17409 "configure"
17409 #include "confdefs.h"
17410 #include <math.h>
17411 int main() {
17412  `for x in acosl asinl atanl \
17413                                           cosl sinl tanl \
17414                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
17415 ; return 0; }
17416 EOF
17417 if { (eval echo configure:17418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17418   rm -rf conftest*
17419   glibcpp_cv_func_long_double_trig_use=yes
17420 else
17421   echo "configure: failed program was:" >&5
17422   cat conftest.$ac_ext >&5
17423   rm -rf conftest*
17424   glibcpp_cv_func_long_double_trig_use=no
17425 fi
17426 rm -f conftest*
17427     ac_ext=c
17428 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17429 ac_cpp='$CPP $CPPFLAGS'
17430 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17431 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17432 cross_compiling=$ac_cv_prog_cc_cross
17433
17434 fi
17435
17436   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
17437   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
17438     for ac_func in acosl asinl atanl \
17439                                           cosl sinl tanl \
17440                                           coshl sinhl tanhl
17441 do
17442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17443 echo "configure:17444: checking for $ac_func" >&5
17444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17445   echo $ac_n "(cached) $ac_c" 1>&6
17446 else
17447   cat > conftest.$ac_ext <<EOF
17448 #line 17449 "configure"
17449 #include "confdefs.h"
17450 /* System header to define __stub macros and hopefully few prototypes,
17451     which can conflict with char $ac_func(); below.  */
17452 #include <assert.h>
17453 /* Override any gcc2 internal prototype to avoid an error.  */
17454 /* We use char because int might match the return type of a gcc2
17455     builtin and then its argument prototype would still apply.  */
17456 char $ac_func();
17457
17458 int main() {
17459
17460 /* The GNU C library defines this for functions which it implements
17461     to always fail with ENOSYS.  Some functions are actually named
17462     something starting with __ and the normal name is an alias.  */
17463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17464 choke me
17465 #else
17466 $ac_func();
17467 #endif
17468
17469 ; return 0; }
17470 EOF
17471 if { (eval echo configure:17472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17472   rm -rf conftest*
17473   eval "ac_cv_func_$ac_func=yes"
17474 else
17475   echo "configure: failed program was:" >&5
17476   cat conftest.$ac_ext >&5
17477   rm -rf conftest*
17478   eval "ac_cv_func_$ac_func=no"
17479 fi
17480 rm -f conftest*
17481 fi
17482
17483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17484   echo "$ac_t""yes" 1>&6
17485     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17486   cat >> confdefs.h <<EOF
17487 #define $ac_tr_func 1
17488 EOF
17489  
17490 else
17491   echo "$ac_t""no" 1>&6
17492 fi
17493 done
17494
17495   fi
17496
17497   
17498   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
17499 echo "configure:17500: checking for long double round functions" >&5
17500   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
17501   echo $ac_n "(cached) $ac_c" 1>&6
17502 else
17503   
17504     
17505     ac_ext=C
17506 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17507 ac_cpp='$CXXCPP $CPPFLAGS'
17508 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17509 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17510 cross_compiling=$ac_cv_prog_cxx_cross
17511
17512     cat > conftest.$ac_ext <<EOF
17513 #line 17514 "configure"
17514 #include "confdefs.h"
17515 #include <math.h>
17516 int main() {
17517  `for x in ceill floorl; do echo "$x (0);"; done` 
17518 ; return 0; }
17519 EOF
17520 if { (eval echo configure:17521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17521   rm -rf conftest*
17522   glibcpp_cv_func_long_double_round_use=yes
17523 else
17524   echo "configure: failed program was:" >&5
17525   cat conftest.$ac_ext >&5
17526   rm -rf conftest*
17527   glibcpp_cv_func_long_double_round_use=no
17528 fi
17529 rm -f conftest*
17530     ac_ext=c
17531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17532 ac_cpp='$CPP $CPPFLAGS'
17533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17535 cross_compiling=$ac_cv_prog_cc_cross
17536
17537 fi
17538
17539   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
17540   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
17541     for ac_func in ceill floorl
17542 do
17543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17544 echo "configure:17545: checking for $ac_func" >&5
17545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17546   echo $ac_n "(cached) $ac_c" 1>&6
17547 else
17548   cat > conftest.$ac_ext <<EOF
17549 #line 17550 "configure"
17550 #include "confdefs.h"
17551 /* System header to define __stub macros and hopefully few prototypes,
17552     which can conflict with char $ac_func(); below.  */
17553 #include <assert.h>
17554 /* Override any gcc2 internal prototype to avoid an error.  */
17555 /* We use char because int might match the return type of a gcc2
17556     builtin and then its argument prototype would still apply.  */
17557 char $ac_func();
17558
17559 int main() {
17560
17561 /* The GNU C library defines this for functions which it implements
17562     to always fail with ENOSYS.  Some functions are actually named
17563     something starting with __ and the normal name is an alias.  */
17564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17565 choke me
17566 #else
17567 $ac_func();
17568 #endif
17569
17570 ; return 0; }
17571 EOF
17572 if { (eval echo configure:17573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17573   rm -rf conftest*
17574   eval "ac_cv_func_$ac_func=yes"
17575 else
17576   echo "configure: failed program was:" >&5
17577   cat conftest.$ac_ext >&5
17578   rm -rf conftest*
17579   eval "ac_cv_func_$ac_func=no"
17580 fi
17581 rm -f conftest*
17582 fi
17583
17584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17585   echo "$ac_t""yes" 1>&6
17586     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17587   cat >> confdefs.h <<EOF
17588 #define $ac_tr_func 1
17589 EOF
17590  
17591 else
17592   echo "$ac_t""no" 1>&6
17593 fi
17594 done
17595
17596   fi
17597
17598   
17599   
17600   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
17601 echo "configure:17602: checking for isnanl declaration" >&5
17602   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
17603     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
17604   echo $ac_n "(cached) $ac_c" 1>&6
17605 else
17606   
17607       
17608       ac_ext=C
17609 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17610 ac_cpp='$CXXCPP $CPPFLAGS'
17611 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17612 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17613 cross_compiling=$ac_cv_prog_cxx_cross
17614
17615       cat > conftest.$ac_ext <<EOF
17616 #line 17617 "configure"
17617 #include "confdefs.h"
17618 #include <math.h>
17619                       #ifdef HAVE_IEEEFP_H
17620                       #include <ieeefp.h>
17621                       #endif
17622                      
17623 int main() {
17624  isnanl(0);
17625 ; return 0; }
17626 EOF
17627 if { (eval echo configure:17628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17628   rm -rf conftest*
17629   glibcpp_cv_func_isnanl_use=yes
17630 else
17631   echo "configure: failed program was:" >&5
17632   cat conftest.$ac_ext >&5
17633   rm -rf conftest*
17634   glibcpp_cv_func_isnanl_use=no
17635 fi
17636 rm -f conftest*
17637       ac_ext=c
17638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17639 ac_cpp='$CPP $CPPFLAGS'
17640 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17641 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17642 cross_compiling=$ac_cv_prog_cc_cross
17643
17644     
17645 fi
17646
17647   fi
17648   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
17649
17650   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
17651     for ac_func in isnanl
17652 do
17653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17654 echo "configure:17655: checking for $ac_func" >&5
17655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17656   echo $ac_n "(cached) $ac_c" 1>&6
17657 else
17658   cat > conftest.$ac_ext <<EOF
17659 #line 17660 "configure"
17660 #include "confdefs.h"
17661 /* System header to define __stub macros and hopefully few prototypes,
17662     which can conflict with char $ac_func(); below.  */
17663 #include <assert.h>
17664 /* Override any gcc2 internal prototype to avoid an error.  */
17665 /* We use char because int might match the return type of a gcc2
17666     builtin and then its argument prototype would still apply.  */
17667 char $ac_func();
17668
17669 int main() {
17670
17671 /* The GNU C library defines this for functions which it implements
17672     to always fail with ENOSYS.  Some functions are actually named
17673     something starting with __ and the normal name is an alias.  */
17674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17675 choke me
17676 #else
17677 $ac_func();
17678 #endif
17679
17680 ; return 0; }
17681 EOF
17682 if { (eval echo configure:17683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17683   rm -rf conftest*
17684   eval "ac_cv_func_$ac_func=yes"
17685 else
17686   echo "configure: failed program was:" >&5
17687   cat conftest.$ac_ext >&5
17688   rm -rf conftest*
17689   eval "ac_cv_func_$ac_func=no"
17690 fi
17691 rm -f conftest*
17692 fi
17693
17694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17695   echo "$ac_t""yes" 1>&6
17696     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17697   cat >> confdefs.h <<EOF
17698 #define $ac_tr_func 1
17699 EOF
17700  
17701 else
17702   echo "$ac_t""no" 1>&6
17703 fi
17704 done
17705
17706   else
17707     
17708   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
17709 echo "configure:17710: checking for _isnanl declaration" >&5
17710   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
17711     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
17712   echo $ac_n "(cached) $ac_c" 1>&6
17713 else
17714   
17715       
17716       ac_ext=C
17717 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17718 ac_cpp='$CXXCPP $CPPFLAGS'
17719 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17720 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17721 cross_compiling=$ac_cv_prog_cxx_cross
17722
17723       cat > conftest.$ac_ext <<EOF
17724 #line 17725 "configure"
17725 #include "confdefs.h"
17726 #include <math.h>
17727                       #ifdef HAVE_IEEEFP_H
17728                       #include <ieeefp.h>
17729                       #endif
17730                      
17731 int main() {
17732  _isnanl(0);
17733 ; return 0; }
17734 EOF
17735 if { (eval echo configure:17736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17736   rm -rf conftest*
17737   glibcpp_cv_func__isnanl_use=yes
17738 else
17739   echo "configure: failed program was:" >&5
17740   cat conftest.$ac_ext >&5
17741   rm -rf conftest*
17742   glibcpp_cv_func__isnanl_use=no
17743 fi
17744 rm -f conftest*
17745       ac_ext=c
17746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17747 ac_cpp='$CPP $CPPFLAGS'
17748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17749 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17750 cross_compiling=$ac_cv_prog_cc_cross
17751
17752     
17753 fi
17754
17755   fi
17756   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
17757
17758     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
17759       for ac_func in _isnanl
17760 do
17761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17762 echo "configure:17763: checking for $ac_func" >&5
17763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17764   echo $ac_n "(cached) $ac_c" 1>&6
17765 else
17766   cat > conftest.$ac_ext <<EOF
17767 #line 17768 "configure"
17768 #include "confdefs.h"
17769 /* System header to define __stub macros and hopefully few prototypes,
17770     which can conflict with char $ac_func(); below.  */
17771 #include <assert.h>
17772 /* Override any gcc2 internal prototype to avoid an error.  */
17773 /* We use char because int might match the return type of a gcc2
17774     builtin and then its argument prototype would still apply.  */
17775 char $ac_func();
17776
17777 int main() {
17778
17779 /* The GNU C library defines this for functions which it implements
17780     to always fail with ENOSYS.  Some functions are actually named
17781     something starting with __ and the normal name is an alias.  */
17782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17783 choke me
17784 #else
17785 $ac_func();
17786 #endif
17787
17788 ; return 0; }
17789 EOF
17790 if { (eval echo configure:17791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17791   rm -rf conftest*
17792   eval "ac_cv_func_$ac_func=yes"
17793 else
17794   echo "configure: failed program was:" >&5
17795   cat conftest.$ac_ext >&5
17796   rm -rf conftest*
17797   eval "ac_cv_func_$ac_func=no"
17798 fi
17799 rm -f conftest*
17800 fi
17801
17802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17803   echo "$ac_t""yes" 1>&6
17804     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17805   cat >> confdefs.h <<EOF
17806 #define $ac_tr_func 1
17807 EOF
17808  
17809 else
17810   echo "$ac_t""no" 1>&6
17811 fi
17812 done
17813
17814     fi
17815   fi
17816
17817   
17818   
17819   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
17820 echo "configure:17821: checking for isinfl declaration" >&5
17821   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
17822     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
17823   echo $ac_n "(cached) $ac_c" 1>&6
17824 else
17825   
17826       
17827       ac_ext=C
17828 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17829 ac_cpp='$CXXCPP $CPPFLAGS'
17830 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17831 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17832 cross_compiling=$ac_cv_prog_cxx_cross
17833
17834       cat > conftest.$ac_ext <<EOF
17835 #line 17836 "configure"
17836 #include "confdefs.h"
17837 #include <math.h>
17838                       #ifdef HAVE_IEEEFP_H
17839                       #include <ieeefp.h>
17840                       #endif
17841                      
17842 int main() {
17843  isinfl(0);
17844 ; return 0; }
17845 EOF
17846 if { (eval echo configure:17847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17847   rm -rf conftest*
17848   glibcpp_cv_func_isinfl_use=yes
17849 else
17850   echo "configure: failed program was:" >&5
17851   cat conftest.$ac_ext >&5
17852   rm -rf conftest*
17853   glibcpp_cv_func_isinfl_use=no
17854 fi
17855 rm -f conftest*
17856       ac_ext=c
17857 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17858 ac_cpp='$CPP $CPPFLAGS'
17859 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17860 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17861 cross_compiling=$ac_cv_prog_cc_cross
17862
17863     
17864 fi
17865
17866   fi
17867   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
17868
17869   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
17870     for ac_func in isinfl
17871 do
17872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17873 echo "configure:17874: checking for $ac_func" >&5
17874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17875   echo $ac_n "(cached) $ac_c" 1>&6
17876 else
17877   cat > conftest.$ac_ext <<EOF
17878 #line 17879 "configure"
17879 #include "confdefs.h"
17880 /* System header to define __stub macros and hopefully few prototypes,
17881     which can conflict with char $ac_func(); below.  */
17882 #include <assert.h>
17883 /* Override any gcc2 internal prototype to avoid an error.  */
17884 /* We use char because int might match the return type of a gcc2
17885     builtin and then its argument prototype would still apply.  */
17886 char $ac_func();
17887
17888 int main() {
17889
17890 /* The GNU C library defines this for functions which it implements
17891     to always fail with ENOSYS.  Some functions are actually named
17892     something starting with __ and the normal name is an alias.  */
17893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17894 choke me
17895 #else
17896 $ac_func();
17897 #endif
17898
17899 ; return 0; }
17900 EOF
17901 if { (eval echo configure:17902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17902   rm -rf conftest*
17903   eval "ac_cv_func_$ac_func=yes"
17904 else
17905   echo "configure: failed program was:" >&5
17906   cat conftest.$ac_ext >&5
17907   rm -rf conftest*
17908   eval "ac_cv_func_$ac_func=no"
17909 fi
17910 rm -f conftest*
17911 fi
17912
17913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17914   echo "$ac_t""yes" 1>&6
17915     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17916   cat >> confdefs.h <<EOF
17917 #define $ac_tr_func 1
17918 EOF
17919  
17920 else
17921   echo "$ac_t""no" 1>&6
17922 fi
17923 done
17924
17925   else
17926     
17927   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
17928 echo "configure:17929: checking for _isinfl declaration" >&5
17929   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
17930     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
17931   echo $ac_n "(cached) $ac_c" 1>&6
17932 else
17933   
17934       
17935       ac_ext=C
17936 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17937 ac_cpp='$CXXCPP $CPPFLAGS'
17938 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17939 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17940 cross_compiling=$ac_cv_prog_cxx_cross
17941
17942       cat > conftest.$ac_ext <<EOF
17943 #line 17944 "configure"
17944 #include "confdefs.h"
17945 #include <math.h>
17946                       #ifdef HAVE_IEEEFP_H
17947                       #include <ieeefp.h>
17948                       #endif
17949                      
17950 int main() {
17951  _isinfl(0);
17952 ; return 0; }
17953 EOF
17954 if { (eval echo configure:17955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17955   rm -rf conftest*
17956   glibcpp_cv_func__isinfl_use=yes
17957 else
17958   echo "configure: failed program was:" >&5
17959   cat conftest.$ac_ext >&5
17960   rm -rf conftest*
17961   glibcpp_cv_func__isinfl_use=no
17962 fi
17963 rm -f conftest*
17964       ac_ext=c
17965 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17966 ac_cpp='$CPP $CPPFLAGS'
17967 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17968 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17969 cross_compiling=$ac_cv_prog_cc_cross
17970
17971     
17972 fi
17973
17974   fi
17975   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
17976
17977     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
17978       for ac_func in _isinfl
17979 do
17980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17981 echo "configure:17982: checking for $ac_func" >&5
17982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17983   echo $ac_n "(cached) $ac_c" 1>&6
17984 else
17985   cat > conftest.$ac_ext <<EOF
17986 #line 17987 "configure"
17987 #include "confdefs.h"
17988 /* System header to define __stub macros and hopefully few prototypes,
17989     which can conflict with char $ac_func(); below.  */
17990 #include <assert.h>
17991 /* Override any gcc2 internal prototype to avoid an error.  */
17992 /* We use char because int might match the return type of a gcc2
17993     builtin and then its argument prototype would still apply.  */
17994 char $ac_func();
17995
17996 int main() {
17997
17998 /* The GNU C library defines this for functions which it implements
17999     to always fail with ENOSYS.  Some functions are actually named
18000     something starting with __ and the normal name is an alias.  */
18001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18002 choke me
18003 #else
18004 $ac_func();
18005 #endif
18006
18007 ; return 0; }
18008 EOF
18009 if { (eval echo configure:18010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18010   rm -rf conftest*
18011   eval "ac_cv_func_$ac_func=yes"
18012 else
18013   echo "configure: failed program was:" >&5
18014   cat conftest.$ac_ext >&5
18015   rm -rf conftest*
18016   eval "ac_cv_func_$ac_func=no"
18017 fi
18018 rm -f conftest*
18019 fi
18020
18021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18022   echo "$ac_t""yes" 1>&6
18023     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18024   cat >> confdefs.h <<EOF
18025 #define $ac_tr_func 1
18026 EOF
18027  
18028 else
18029   echo "$ac_t""no" 1>&6
18030 fi
18031 done
18032
18033     fi
18034   fi
18035
18036   
18037   
18038   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
18039 echo "configure:18040: checking for copysignl declaration" >&5
18040   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
18041     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
18042   echo $ac_n "(cached) $ac_c" 1>&6
18043 else
18044   
18045       
18046       ac_ext=C
18047 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18048 ac_cpp='$CXXCPP $CPPFLAGS'
18049 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18050 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18051 cross_compiling=$ac_cv_prog_cxx_cross
18052
18053       cat > conftest.$ac_ext <<EOF
18054 #line 18055 "configure"
18055 #include "confdefs.h"
18056 #include <math.h>
18057 int main() {
18058  copysignl(0, 0);
18059 ; return 0; }
18060 EOF
18061 if { (eval echo configure:18062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18062   rm -rf conftest*
18063   glibcpp_cv_func_copysignl_use=yes
18064 else
18065   echo "configure: failed program was:" >&5
18066   cat conftest.$ac_ext >&5
18067   rm -rf conftest*
18068   glibcpp_cv_func_copysignl_use=no
18069 fi
18070 rm -f conftest*
18071       ac_ext=c
18072 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18073 ac_cpp='$CPP $CPPFLAGS'
18074 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18075 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18076 cross_compiling=$ac_cv_prog_cc_cross
18077
18078     
18079 fi
18080
18081   fi
18082   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
18083
18084   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
18085     for ac_func in copysignl
18086 do
18087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18088 echo "configure:18089: checking for $ac_func" >&5
18089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18090   echo $ac_n "(cached) $ac_c" 1>&6
18091 else
18092   cat > conftest.$ac_ext <<EOF
18093 #line 18094 "configure"
18094 #include "confdefs.h"
18095 /* System header to define __stub macros and hopefully few prototypes,
18096     which can conflict with char $ac_func(); below.  */
18097 #include <assert.h>
18098 /* Override any gcc2 internal prototype to avoid an error.  */
18099 /* We use char because int might match the return type of a gcc2
18100     builtin and then its argument prototype would still apply.  */
18101 char $ac_func();
18102
18103 int main() {
18104
18105 /* The GNU C library defines this for functions which it implements
18106     to always fail with ENOSYS.  Some functions are actually named
18107     something starting with __ and the normal name is an alias.  */
18108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18109 choke me
18110 #else
18111 $ac_func();
18112 #endif
18113
18114 ; return 0; }
18115 EOF
18116 if { (eval echo configure:18117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18117   rm -rf conftest*
18118   eval "ac_cv_func_$ac_func=yes"
18119 else
18120   echo "configure: failed program was:" >&5
18121   cat conftest.$ac_ext >&5
18122   rm -rf conftest*
18123   eval "ac_cv_func_$ac_func=no"
18124 fi
18125 rm -f conftest*
18126 fi
18127
18128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18129   echo "$ac_t""yes" 1>&6
18130     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18131   cat >> confdefs.h <<EOF
18132 #define $ac_tr_func 1
18133 EOF
18134  
18135 else
18136   echo "$ac_t""no" 1>&6
18137 fi
18138 done
18139
18140   else
18141     
18142   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
18143 echo "configure:18144: checking for _copysignl declaration" >&5
18144   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
18145     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
18146   echo $ac_n "(cached) $ac_c" 1>&6
18147 else
18148   
18149       
18150       ac_ext=C
18151 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18152 ac_cpp='$CXXCPP $CPPFLAGS'
18153 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18154 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18155 cross_compiling=$ac_cv_prog_cxx_cross
18156
18157       cat > conftest.$ac_ext <<EOF
18158 #line 18159 "configure"
18159 #include "confdefs.h"
18160 #include <math.h>
18161 int main() {
18162  _copysignl(0, 0);
18163 ; return 0; }
18164 EOF
18165 if { (eval echo configure:18166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18166   rm -rf conftest*
18167   glibcpp_cv_func__copysignl_use=yes
18168 else
18169   echo "configure: failed program was:" >&5
18170   cat conftest.$ac_ext >&5
18171   rm -rf conftest*
18172   glibcpp_cv_func__copysignl_use=no
18173 fi
18174 rm -f conftest*
18175       ac_ext=c
18176 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18177 ac_cpp='$CPP $CPPFLAGS'
18178 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18179 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18180 cross_compiling=$ac_cv_prog_cc_cross
18181
18182     
18183 fi
18184
18185   fi
18186   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
18187
18188     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
18189       for ac_func in _copysignl
18190 do
18191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18192 echo "configure:18193: checking for $ac_func" >&5
18193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18194   echo $ac_n "(cached) $ac_c" 1>&6
18195 else
18196   cat > conftest.$ac_ext <<EOF
18197 #line 18198 "configure"
18198 #include "confdefs.h"
18199 /* System header to define __stub macros and hopefully few prototypes,
18200     which can conflict with char $ac_func(); below.  */
18201 #include <assert.h>
18202 /* Override any gcc2 internal prototype to avoid an error.  */
18203 /* We use char because int might match the return type of a gcc2
18204     builtin and then its argument prototype would still apply.  */
18205 char $ac_func();
18206
18207 int main() {
18208
18209 /* The GNU C library defines this for functions which it implements
18210     to always fail with ENOSYS.  Some functions are actually named
18211     something starting with __ and the normal name is an alias.  */
18212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18213 choke me
18214 #else
18215 $ac_func();
18216 #endif
18217
18218 ; return 0; }
18219 EOF
18220 if { (eval echo configure:18221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18221   rm -rf conftest*
18222   eval "ac_cv_func_$ac_func=yes"
18223 else
18224   echo "configure: failed program was:" >&5
18225   cat conftest.$ac_ext >&5
18226   rm -rf conftest*
18227   eval "ac_cv_func_$ac_func=no"
18228 fi
18229 rm -f conftest*
18230 fi
18231
18232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18233   echo "$ac_t""yes" 1>&6
18234     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18235   cat >> confdefs.h <<EOF
18236 #define $ac_tr_func 1
18237 EOF
18238  
18239 else
18240   echo "$ac_t""no" 1>&6
18241 fi
18242 done
18243
18244     fi
18245   fi
18246
18247   
18248   
18249   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
18250 echo "configure:18251: checking for atan2l declaration" >&5
18251   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
18252     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
18253   echo $ac_n "(cached) $ac_c" 1>&6
18254 else
18255   
18256       
18257       ac_ext=C
18258 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18259 ac_cpp='$CXXCPP $CPPFLAGS'
18260 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18261 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18262 cross_compiling=$ac_cv_prog_cxx_cross
18263
18264       cat > conftest.$ac_ext <<EOF
18265 #line 18266 "configure"
18266 #include "confdefs.h"
18267 #include <math.h>
18268 int main() {
18269  atan2l(0, 0);
18270 ; return 0; }
18271 EOF
18272 if { (eval echo configure:18273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18273   rm -rf conftest*
18274   glibcpp_cv_func_atan2l_use=yes
18275 else
18276   echo "configure: failed program was:" >&5
18277   cat conftest.$ac_ext >&5
18278   rm -rf conftest*
18279   glibcpp_cv_func_atan2l_use=no
18280 fi
18281 rm -f conftest*
18282       ac_ext=c
18283 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18284 ac_cpp='$CPP $CPPFLAGS'
18285 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18286 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18287 cross_compiling=$ac_cv_prog_cc_cross
18288
18289     
18290 fi
18291
18292   fi
18293   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
18294
18295   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
18296     for ac_func in atan2l
18297 do
18298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18299 echo "configure:18300: checking for $ac_func" >&5
18300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18301   echo $ac_n "(cached) $ac_c" 1>&6
18302 else
18303   cat > conftest.$ac_ext <<EOF
18304 #line 18305 "configure"
18305 #include "confdefs.h"
18306 /* System header to define __stub macros and hopefully few prototypes,
18307     which can conflict with char $ac_func(); below.  */
18308 #include <assert.h>
18309 /* Override any gcc2 internal prototype to avoid an error.  */
18310 /* We use char because int might match the return type of a gcc2
18311     builtin and then its argument prototype would still apply.  */
18312 char $ac_func();
18313
18314 int main() {
18315
18316 /* The GNU C library defines this for functions which it implements
18317     to always fail with ENOSYS.  Some functions are actually named
18318     something starting with __ and the normal name is an alias.  */
18319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18320 choke me
18321 #else
18322 $ac_func();
18323 #endif
18324
18325 ; return 0; }
18326 EOF
18327 if { (eval echo configure:18328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18328   rm -rf conftest*
18329   eval "ac_cv_func_$ac_func=yes"
18330 else
18331   echo "configure: failed program was:" >&5
18332   cat conftest.$ac_ext >&5
18333   rm -rf conftest*
18334   eval "ac_cv_func_$ac_func=no"
18335 fi
18336 rm -f conftest*
18337 fi
18338
18339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18340   echo "$ac_t""yes" 1>&6
18341     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18342   cat >> confdefs.h <<EOF
18343 #define $ac_tr_func 1
18344 EOF
18345  
18346 else
18347   echo "$ac_t""no" 1>&6
18348 fi
18349 done
18350
18351   else
18352     
18353   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
18354 echo "configure:18355: checking for _atan2l declaration" >&5
18355   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
18356     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
18357   echo $ac_n "(cached) $ac_c" 1>&6
18358 else
18359   
18360       
18361       ac_ext=C
18362 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18363 ac_cpp='$CXXCPP $CPPFLAGS'
18364 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18365 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18366 cross_compiling=$ac_cv_prog_cxx_cross
18367
18368       cat > conftest.$ac_ext <<EOF
18369 #line 18370 "configure"
18370 #include "confdefs.h"
18371 #include <math.h>
18372 int main() {
18373  _atan2l(0, 0);
18374 ; return 0; }
18375 EOF
18376 if { (eval echo configure:18377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18377   rm -rf conftest*
18378   glibcpp_cv_func__atan2l_use=yes
18379 else
18380   echo "configure: failed program was:" >&5
18381   cat conftest.$ac_ext >&5
18382   rm -rf conftest*
18383   glibcpp_cv_func__atan2l_use=no
18384 fi
18385 rm -f conftest*
18386       ac_ext=c
18387 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18388 ac_cpp='$CPP $CPPFLAGS'
18389 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18390 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18391 cross_compiling=$ac_cv_prog_cc_cross
18392
18393     
18394 fi
18395
18396   fi
18397   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
18398
18399     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
18400       for ac_func in _atan2l
18401 do
18402 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18403 echo "configure:18404: checking for $ac_func" >&5
18404 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18405   echo $ac_n "(cached) $ac_c" 1>&6
18406 else
18407   cat > conftest.$ac_ext <<EOF
18408 #line 18409 "configure"
18409 #include "confdefs.h"
18410 /* System header to define __stub macros and hopefully few prototypes,
18411     which can conflict with char $ac_func(); below.  */
18412 #include <assert.h>
18413 /* Override any gcc2 internal prototype to avoid an error.  */
18414 /* We use char because int might match the return type of a gcc2
18415     builtin and then its argument prototype would still apply.  */
18416 char $ac_func();
18417
18418 int main() {
18419
18420 /* The GNU C library defines this for functions which it implements
18421     to always fail with ENOSYS.  Some functions are actually named
18422     something starting with __ and the normal name is an alias.  */
18423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18424 choke me
18425 #else
18426 $ac_func();
18427 #endif
18428
18429 ; return 0; }
18430 EOF
18431 if { (eval echo configure:18432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18432   rm -rf conftest*
18433   eval "ac_cv_func_$ac_func=yes"
18434 else
18435   echo "configure: failed program was:" >&5
18436   cat conftest.$ac_ext >&5
18437   rm -rf conftest*
18438   eval "ac_cv_func_$ac_func=no"
18439 fi
18440 rm -f conftest*
18441 fi
18442
18443 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18444   echo "$ac_t""yes" 1>&6
18445     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18446   cat >> confdefs.h <<EOF
18447 #define $ac_tr_func 1
18448 EOF
18449  
18450 else
18451   echo "$ac_t""no" 1>&6
18452 fi
18453 done
18454
18455     fi
18456   fi
18457
18458   
18459   
18460   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
18461 echo "configure:18462: checking for expl declaration" >&5
18462   if test x${glibcpp_cv_func_expl_use+set} != xset; then
18463     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
18464   echo $ac_n "(cached) $ac_c" 1>&6
18465 else
18466   
18467       
18468       ac_ext=C
18469 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18470 ac_cpp='$CXXCPP $CPPFLAGS'
18471 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18472 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18473 cross_compiling=$ac_cv_prog_cxx_cross
18474
18475       cat > conftest.$ac_ext <<EOF
18476 #line 18477 "configure"
18477 #include "confdefs.h"
18478 #include <math.h>
18479                       #ifdef HAVE_IEEEFP_H
18480                       #include <ieeefp.h>
18481                       #endif
18482                      
18483 int main() {
18484  expl(0);
18485 ; return 0; }
18486 EOF
18487 if { (eval echo configure:18488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18488   rm -rf conftest*
18489   glibcpp_cv_func_expl_use=yes
18490 else
18491   echo "configure: failed program was:" >&5
18492   cat conftest.$ac_ext >&5
18493   rm -rf conftest*
18494   glibcpp_cv_func_expl_use=no
18495 fi
18496 rm -f conftest*
18497       ac_ext=c
18498 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18499 ac_cpp='$CPP $CPPFLAGS'
18500 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18501 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18502 cross_compiling=$ac_cv_prog_cc_cross
18503
18504     
18505 fi
18506
18507   fi
18508   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
18509
18510   if test x$glibcpp_cv_func_expl_use = x"yes"; then
18511     for ac_func in expl
18512 do
18513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18514 echo "configure:18515: checking for $ac_func" >&5
18515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18516   echo $ac_n "(cached) $ac_c" 1>&6
18517 else
18518   cat > conftest.$ac_ext <<EOF
18519 #line 18520 "configure"
18520 #include "confdefs.h"
18521 /* System header to define __stub macros and hopefully few prototypes,
18522     which can conflict with char $ac_func(); below.  */
18523 #include <assert.h>
18524 /* Override any gcc2 internal prototype to avoid an error.  */
18525 /* We use char because int might match the return type of a gcc2
18526     builtin and then its argument prototype would still apply.  */
18527 char $ac_func();
18528
18529 int main() {
18530
18531 /* The GNU C library defines this for functions which it implements
18532     to always fail with ENOSYS.  Some functions are actually named
18533     something starting with __ and the normal name is an alias.  */
18534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18535 choke me
18536 #else
18537 $ac_func();
18538 #endif
18539
18540 ; return 0; }
18541 EOF
18542 if { (eval echo configure:18543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18543   rm -rf conftest*
18544   eval "ac_cv_func_$ac_func=yes"
18545 else
18546   echo "configure: failed program was:" >&5
18547   cat conftest.$ac_ext >&5
18548   rm -rf conftest*
18549   eval "ac_cv_func_$ac_func=no"
18550 fi
18551 rm -f conftest*
18552 fi
18553
18554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18555   echo "$ac_t""yes" 1>&6
18556     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18557   cat >> confdefs.h <<EOF
18558 #define $ac_tr_func 1
18559 EOF
18560  
18561 else
18562   echo "$ac_t""no" 1>&6
18563 fi
18564 done
18565
18566   else
18567     
18568   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
18569 echo "configure:18570: checking for _expl declaration" >&5
18570   if test x${glibcpp_cv_func__expl_use+set} != xset; then
18571     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
18572   echo $ac_n "(cached) $ac_c" 1>&6
18573 else
18574   
18575       
18576       ac_ext=C
18577 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18578 ac_cpp='$CXXCPP $CPPFLAGS'
18579 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18580 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18581 cross_compiling=$ac_cv_prog_cxx_cross
18582
18583       cat > conftest.$ac_ext <<EOF
18584 #line 18585 "configure"
18585 #include "confdefs.h"
18586 #include <math.h>
18587                       #ifdef HAVE_IEEEFP_H
18588                       #include <ieeefp.h>
18589                       #endif
18590                      
18591 int main() {
18592  _expl(0);
18593 ; return 0; }
18594 EOF
18595 if { (eval echo configure:18596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18596   rm -rf conftest*
18597   glibcpp_cv_func__expl_use=yes
18598 else
18599   echo "configure: failed program was:" >&5
18600   cat conftest.$ac_ext >&5
18601   rm -rf conftest*
18602   glibcpp_cv_func__expl_use=no
18603 fi
18604 rm -f conftest*
18605       ac_ext=c
18606 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18607 ac_cpp='$CPP $CPPFLAGS'
18608 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18609 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18610 cross_compiling=$ac_cv_prog_cc_cross
18611
18612     
18613 fi
18614
18615   fi
18616   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
18617
18618     if test x$glibcpp_cv_func__expl_use = x"yes"; then
18619       for ac_func in _expl
18620 do
18621 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18622 echo "configure:18623: checking for $ac_func" >&5
18623 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18624   echo $ac_n "(cached) $ac_c" 1>&6
18625 else
18626   cat > conftest.$ac_ext <<EOF
18627 #line 18628 "configure"
18628 #include "confdefs.h"
18629 /* System header to define __stub macros and hopefully few prototypes,
18630     which can conflict with char $ac_func(); below.  */
18631 #include <assert.h>
18632 /* Override any gcc2 internal prototype to avoid an error.  */
18633 /* We use char because int might match the return type of a gcc2
18634     builtin and then its argument prototype would still apply.  */
18635 char $ac_func();
18636
18637 int main() {
18638
18639 /* The GNU C library defines this for functions which it implements
18640     to always fail with ENOSYS.  Some functions are actually named
18641     something starting with __ and the normal name is an alias.  */
18642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18643 choke me
18644 #else
18645 $ac_func();
18646 #endif
18647
18648 ; return 0; }
18649 EOF
18650 if { (eval echo configure:18651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18651   rm -rf conftest*
18652   eval "ac_cv_func_$ac_func=yes"
18653 else
18654   echo "configure: failed program was:" >&5
18655   cat conftest.$ac_ext >&5
18656   rm -rf conftest*
18657   eval "ac_cv_func_$ac_func=no"
18658 fi
18659 rm -f conftest*
18660 fi
18661
18662 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18663   echo "$ac_t""yes" 1>&6
18664     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18665   cat >> confdefs.h <<EOF
18666 #define $ac_tr_func 1
18667 EOF
18668  
18669 else
18670   echo "$ac_t""no" 1>&6
18671 fi
18672 done
18673
18674     fi
18675   fi
18676
18677   
18678   
18679   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
18680 echo "configure:18681: checking for fabsl declaration" >&5
18681   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
18682     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
18683   echo $ac_n "(cached) $ac_c" 1>&6
18684 else
18685   
18686       
18687       ac_ext=C
18688 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18689 ac_cpp='$CXXCPP $CPPFLAGS'
18690 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18691 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18692 cross_compiling=$ac_cv_prog_cxx_cross
18693
18694       cat > conftest.$ac_ext <<EOF
18695 #line 18696 "configure"
18696 #include "confdefs.h"
18697 #include <math.h>
18698                       #ifdef HAVE_IEEEFP_H
18699                       #include <ieeefp.h>
18700                       #endif
18701                      
18702 int main() {
18703  fabsl(0);
18704 ; return 0; }
18705 EOF
18706 if { (eval echo configure:18707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18707   rm -rf conftest*
18708   glibcpp_cv_func_fabsl_use=yes
18709 else
18710   echo "configure: failed program was:" >&5
18711   cat conftest.$ac_ext >&5
18712   rm -rf conftest*
18713   glibcpp_cv_func_fabsl_use=no
18714 fi
18715 rm -f conftest*
18716       ac_ext=c
18717 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18718 ac_cpp='$CPP $CPPFLAGS'
18719 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18720 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18721 cross_compiling=$ac_cv_prog_cc_cross
18722
18723     
18724 fi
18725
18726   fi
18727   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
18728
18729   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
18730     for ac_func in fabsl
18731 do
18732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18733 echo "configure:18734: checking for $ac_func" >&5
18734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18735   echo $ac_n "(cached) $ac_c" 1>&6
18736 else
18737   cat > conftest.$ac_ext <<EOF
18738 #line 18739 "configure"
18739 #include "confdefs.h"
18740 /* System header to define __stub macros and hopefully few prototypes,
18741     which can conflict with char $ac_func(); below.  */
18742 #include <assert.h>
18743 /* Override any gcc2 internal prototype to avoid an error.  */
18744 /* We use char because int might match the return type of a gcc2
18745     builtin and then its argument prototype would still apply.  */
18746 char $ac_func();
18747
18748 int main() {
18749
18750 /* The GNU C library defines this for functions which it implements
18751     to always fail with ENOSYS.  Some functions are actually named
18752     something starting with __ and the normal name is an alias.  */
18753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18754 choke me
18755 #else
18756 $ac_func();
18757 #endif
18758
18759 ; return 0; }
18760 EOF
18761 if { (eval echo configure:18762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18762   rm -rf conftest*
18763   eval "ac_cv_func_$ac_func=yes"
18764 else
18765   echo "configure: failed program was:" >&5
18766   cat conftest.$ac_ext >&5
18767   rm -rf conftest*
18768   eval "ac_cv_func_$ac_func=no"
18769 fi
18770 rm -f conftest*
18771 fi
18772
18773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18774   echo "$ac_t""yes" 1>&6
18775     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18776   cat >> confdefs.h <<EOF
18777 #define $ac_tr_func 1
18778 EOF
18779  
18780 else
18781   echo "$ac_t""no" 1>&6
18782 fi
18783 done
18784
18785   else
18786     
18787   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
18788 echo "configure:18789: checking for _fabsl declaration" >&5
18789   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
18790     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
18791   echo $ac_n "(cached) $ac_c" 1>&6
18792 else
18793   
18794       
18795       ac_ext=C
18796 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18797 ac_cpp='$CXXCPP $CPPFLAGS'
18798 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18799 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18800 cross_compiling=$ac_cv_prog_cxx_cross
18801
18802       cat > conftest.$ac_ext <<EOF
18803 #line 18804 "configure"
18804 #include "confdefs.h"
18805 #include <math.h>
18806                       #ifdef HAVE_IEEEFP_H
18807                       #include <ieeefp.h>
18808                       #endif
18809                      
18810 int main() {
18811  _fabsl(0);
18812 ; return 0; }
18813 EOF
18814 if { (eval echo configure:18815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18815   rm -rf conftest*
18816   glibcpp_cv_func__fabsl_use=yes
18817 else
18818   echo "configure: failed program was:" >&5
18819   cat conftest.$ac_ext >&5
18820   rm -rf conftest*
18821   glibcpp_cv_func__fabsl_use=no
18822 fi
18823 rm -f conftest*
18824       ac_ext=c
18825 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18826 ac_cpp='$CPP $CPPFLAGS'
18827 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18828 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18829 cross_compiling=$ac_cv_prog_cc_cross
18830
18831     
18832 fi
18833
18834   fi
18835   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
18836
18837     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
18838       for ac_func in _fabsl
18839 do
18840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18841 echo "configure:18842: checking for $ac_func" >&5
18842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18843   echo $ac_n "(cached) $ac_c" 1>&6
18844 else
18845   cat > conftest.$ac_ext <<EOF
18846 #line 18847 "configure"
18847 #include "confdefs.h"
18848 /* System header to define __stub macros and hopefully few prototypes,
18849     which can conflict with char $ac_func(); below.  */
18850 #include <assert.h>
18851 /* Override any gcc2 internal prototype to avoid an error.  */
18852 /* We use char because int might match the return type of a gcc2
18853     builtin and then its argument prototype would still apply.  */
18854 char $ac_func();
18855
18856 int main() {
18857
18858 /* The GNU C library defines this for functions which it implements
18859     to always fail with ENOSYS.  Some functions are actually named
18860     something starting with __ and the normal name is an alias.  */
18861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18862 choke me
18863 #else
18864 $ac_func();
18865 #endif
18866
18867 ; return 0; }
18868 EOF
18869 if { (eval echo configure:18870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18870   rm -rf conftest*
18871   eval "ac_cv_func_$ac_func=yes"
18872 else
18873   echo "configure: failed program was:" >&5
18874   cat conftest.$ac_ext >&5
18875   rm -rf conftest*
18876   eval "ac_cv_func_$ac_func=no"
18877 fi
18878 rm -f conftest*
18879 fi
18880
18881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18882   echo "$ac_t""yes" 1>&6
18883     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18884   cat >> confdefs.h <<EOF
18885 #define $ac_tr_func 1
18886 EOF
18887  
18888 else
18889   echo "$ac_t""no" 1>&6
18890 fi
18891 done
18892
18893     fi
18894   fi
18895
18896   
18897   
18898   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
18899 echo "configure:18900: checking for fmodl declaration" >&5
18900   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
18901     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
18902   echo $ac_n "(cached) $ac_c" 1>&6
18903 else
18904   
18905       
18906       ac_ext=C
18907 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18908 ac_cpp='$CXXCPP $CPPFLAGS'
18909 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18910 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18911 cross_compiling=$ac_cv_prog_cxx_cross
18912
18913       cat > conftest.$ac_ext <<EOF
18914 #line 18915 "configure"
18915 #include "confdefs.h"
18916 #include <math.h>
18917 int main() {
18918  fmodl(0, 0);
18919 ; return 0; }
18920 EOF
18921 if { (eval echo configure:18922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18922   rm -rf conftest*
18923   glibcpp_cv_func_fmodl_use=yes
18924 else
18925   echo "configure: failed program was:" >&5
18926   cat conftest.$ac_ext >&5
18927   rm -rf conftest*
18928   glibcpp_cv_func_fmodl_use=no
18929 fi
18930 rm -f conftest*
18931       ac_ext=c
18932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18933 ac_cpp='$CPP $CPPFLAGS'
18934 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18935 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18936 cross_compiling=$ac_cv_prog_cc_cross
18937
18938     
18939 fi
18940
18941   fi
18942   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
18943
18944   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
18945     for ac_func in fmodl
18946 do
18947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18948 echo "configure:18949: checking for $ac_func" >&5
18949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18950   echo $ac_n "(cached) $ac_c" 1>&6
18951 else
18952   cat > conftest.$ac_ext <<EOF
18953 #line 18954 "configure"
18954 #include "confdefs.h"
18955 /* System header to define __stub macros and hopefully few prototypes,
18956     which can conflict with char $ac_func(); below.  */
18957 #include <assert.h>
18958 /* Override any gcc2 internal prototype to avoid an error.  */
18959 /* We use char because int might match the return type of a gcc2
18960     builtin and then its argument prototype would still apply.  */
18961 char $ac_func();
18962
18963 int main() {
18964
18965 /* The GNU C library defines this for functions which it implements
18966     to always fail with ENOSYS.  Some functions are actually named
18967     something starting with __ and the normal name is an alias.  */
18968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18969 choke me
18970 #else
18971 $ac_func();
18972 #endif
18973
18974 ; return 0; }
18975 EOF
18976 if { (eval echo configure:18977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18977   rm -rf conftest*
18978   eval "ac_cv_func_$ac_func=yes"
18979 else
18980   echo "configure: failed program was:" >&5
18981   cat conftest.$ac_ext >&5
18982   rm -rf conftest*
18983   eval "ac_cv_func_$ac_func=no"
18984 fi
18985 rm -f conftest*
18986 fi
18987
18988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18989   echo "$ac_t""yes" 1>&6
18990     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18991   cat >> confdefs.h <<EOF
18992 #define $ac_tr_func 1
18993 EOF
18994  
18995 else
18996   echo "$ac_t""no" 1>&6
18997 fi
18998 done
18999
19000   else
19001     
19002   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
19003 echo "configure:19004: checking for _fmodl declaration" >&5
19004   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
19005     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
19006   echo $ac_n "(cached) $ac_c" 1>&6
19007 else
19008   
19009       
19010       ac_ext=C
19011 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19012 ac_cpp='$CXXCPP $CPPFLAGS'
19013 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19014 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19015 cross_compiling=$ac_cv_prog_cxx_cross
19016
19017       cat > conftest.$ac_ext <<EOF
19018 #line 19019 "configure"
19019 #include "confdefs.h"
19020 #include <math.h>
19021 int main() {
19022  _fmodl(0, 0);
19023 ; return 0; }
19024 EOF
19025 if { (eval echo configure:19026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19026   rm -rf conftest*
19027   glibcpp_cv_func__fmodl_use=yes
19028 else
19029   echo "configure: failed program was:" >&5
19030   cat conftest.$ac_ext >&5
19031   rm -rf conftest*
19032   glibcpp_cv_func__fmodl_use=no
19033 fi
19034 rm -f conftest*
19035       ac_ext=c
19036 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19037 ac_cpp='$CPP $CPPFLAGS'
19038 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19039 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19040 cross_compiling=$ac_cv_prog_cc_cross
19041
19042     
19043 fi
19044
19045   fi
19046   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
19047
19048     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
19049       for ac_func in _fmodl
19050 do
19051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19052 echo "configure:19053: checking for $ac_func" >&5
19053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19054   echo $ac_n "(cached) $ac_c" 1>&6
19055 else
19056   cat > conftest.$ac_ext <<EOF
19057 #line 19058 "configure"
19058 #include "confdefs.h"
19059 /* System header to define __stub macros and hopefully few prototypes,
19060     which can conflict with char $ac_func(); below.  */
19061 #include <assert.h>
19062 /* Override any gcc2 internal prototype to avoid an error.  */
19063 /* We use char because int might match the return type of a gcc2
19064     builtin and then its argument prototype would still apply.  */
19065 char $ac_func();
19066
19067 int main() {
19068
19069 /* The GNU C library defines this for functions which it implements
19070     to always fail with ENOSYS.  Some functions are actually named
19071     something starting with __ and the normal name is an alias.  */
19072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19073 choke me
19074 #else
19075 $ac_func();
19076 #endif
19077
19078 ; return 0; }
19079 EOF
19080 if { (eval echo configure:19081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19081   rm -rf conftest*
19082   eval "ac_cv_func_$ac_func=yes"
19083 else
19084   echo "configure: failed program was:" >&5
19085   cat conftest.$ac_ext >&5
19086   rm -rf conftest*
19087   eval "ac_cv_func_$ac_func=no"
19088 fi
19089 rm -f conftest*
19090 fi
19091
19092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19093   echo "$ac_t""yes" 1>&6
19094     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19095   cat >> confdefs.h <<EOF
19096 #define $ac_tr_func 1
19097 EOF
19098  
19099 else
19100   echo "$ac_t""no" 1>&6
19101 fi
19102 done
19103
19104     fi
19105   fi
19106
19107   
19108   
19109   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
19110 echo "configure:19111: checking for frexpl declaration" >&5
19111   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
19112     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
19113   echo $ac_n "(cached) $ac_c" 1>&6
19114 else
19115   
19116       
19117       ac_ext=C
19118 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19119 ac_cpp='$CXXCPP $CPPFLAGS'
19120 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19121 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19122 cross_compiling=$ac_cv_prog_cxx_cross
19123
19124       cat > conftest.$ac_ext <<EOF
19125 #line 19126 "configure"
19126 #include "confdefs.h"
19127 #include <math.h>
19128 int main() {
19129  frexpl(0, 0);
19130 ; return 0; }
19131 EOF
19132 if { (eval echo configure:19133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19133   rm -rf conftest*
19134   glibcpp_cv_func_frexpl_use=yes
19135 else
19136   echo "configure: failed program was:" >&5
19137   cat conftest.$ac_ext >&5
19138   rm -rf conftest*
19139   glibcpp_cv_func_frexpl_use=no
19140 fi
19141 rm -f conftest*
19142       ac_ext=c
19143 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19144 ac_cpp='$CPP $CPPFLAGS'
19145 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19146 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19147 cross_compiling=$ac_cv_prog_cc_cross
19148
19149     
19150 fi
19151
19152   fi
19153   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
19154
19155   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
19156     for ac_func in frexpl
19157 do
19158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19159 echo "configure:19160: checking for $ac_func" >&5
19160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19161   echo $ac_n "(cached) $ac_c" 1>&6
19162 else
19163   cat > conftest.$ac_ext <<EOF
19164 #line 19165 "configure"
19165 #include "confdefs.h"
19166 /* System header to define __stub macros and hopefully few prototypes,
19167     which can conflict with char $ac_func(); below.  */
19168 #include <assert.h>
19169 /* Override any gcc2 internal prototype to avoid an error.  */
19170 /* We use char because int might match the return type of a gcc2
19171     builtin and then its argument prototype would still apply.  */
19172 char $ac_func();
19173
19174 int main() {
19175
19176 /* The GNU C library defines this for functions which it implements
19177     to always fail with ENOSYS.  Some functions are actually named
19178     something starting with __ and the normal name is an alias.  */
19179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19180 choke me
19181 #else
19182 $ac_func();
19183 #endif
19184
19185 ; return 0; }
19186 EOF
19187 if { (eval echo configure:19188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19188   rm -rf conftest*
19189   eval "ac_cv_func_$ac_func=yes"
19190 else
19191   echo "configure: failed program was:" >&5
19192   cat conftest.$ac_ext >&5
19193   rm -rf conftest*
19194   eval "ac_cv_func_$ac_func=no"
19195 fi
19196 rm -f conftest*
19197 fi
19198
19199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19200   echo "$ac_t""yes" 1>&6
19201     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19202   cat >> confdefs.h <<EOF
19203 #define $ac_tr_func 1
19204 EOF
19205  
19206 else
19207   echo "$ac_t""no" 1>&6
19208 fi
19209 done
19210
19211   else
19212     
19213   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
19214 echo "configure:19215: checking for _frexpl declaration" >&5
19215   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
19216     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
19217   echo $ac_n "(cached) $ac_c" 1>&6
19218 else
19219   
19220       
19221       ac_ext=C
19222 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19223 ac_cpp='$CXXCPP $CPPFLAGS'
19224 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19225 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19226 cross_compiling=$ac_cv_prog_cxx_cross
19227
19228       cat > conftest.$ac_ext <<EOF
19229 #line 19230 "configure"
19230 #include "confdefs.h"
19231 #include <math.h>
19232 int main() {
19233  _frexpl(0, 0);
19234 ; return 0; }
19235 EOF
19236 if { (eval echo configure:19237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19237   rm -rf conftest*
19238   glibcpp_cv_func__frexpl_use=yes
19239 else
19240   echo "configure: failed program was:" >&5
19241   cat conftest.$ac_ext >&5
19242   rm -rf conftest*
19243   glibcpp_cv_func__frexpl_use=no
19244 fi
19245 rm -f conftest*
19246       ac_ext=c
19247 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19248 ac_cpp='$CPP $CPPFLAGS'
19249 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19250 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19251 cross_compiling=$ac_cv_prog_cc_cross
19252
19253     
19254 fi
19255
19256   fi
19257   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
19258
19259     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
19260       for ac_func in _frexpl
19261 do
19262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19263 echo "configure:19264: checking for $ac_func" >&5
19264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19265   echo $ac_n "(cached) $ac_c" 1>&6
19266 else
19267   cat > conftest.$ac_ext <<EOF
19268 #line 19269 "configure"
19269 #include "confdefs.h"
19270 /* System header to define __stub macros and hopefully few prototypes,
19271     which can conflict with char $ac_func(); below.  */
19272 #include <assert.h>
19273 /* Override any gcc2 internal prototype to avoid an error.  */
19274 /* We use char because int might match the return type of a gcc2
19275     builtin and then its argument prototype would still apply.  */
19276 char $ac_func();
19277
19278 int main() {
19279
19280 /* The GNU C library defines this for functions which it implements
19281     to always fail with ENOSYS.  Some functions are actually named
19282     something starting with __ and the normal name is an alias.  */
19283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19284 choke me
19285 #else
19286 $ac_func();
19287 #endif
19288
19289 ; return 0; }
19290 EOF
19291 if { (eval echo configure:19292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19292   rm -rf conftest*
19293   eval "ac_cv_func_$ac_func=yes"
19294 else
19295   echo "configure: failed program was:" >&5
19296   cat conftest.$ac_ext >&5
19297   rm -rf conftest*
19298   eval "ac_cv_func_$ac_func=no"
19299 fi
19300 rm -f conftest*
19301 fi
19302
19303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19304   echo "$ac_t""yes" 1>&6
19305     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19306   cat >> confdefs.h <<EOF
19307 #define $ac_tr_func 1
19308 EOF
19309  
19310 else
19311   echo "$ac_t""no" 1>&6
19312 fi
19313 done
19314
19315     fi
19316   fi
19317
19318   
19319   
19320   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
19321 echo "configure:19322: checking for hypotl declaration" >&5
19322   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
19323     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
19324   echo $ac_n "(cached) $ac_c" 1>&6
19325 else
19326   
19327       
19328       ac_ext=C
19329 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19330 ac_cpp='$CXXCPP $CPPFLAGS'
19331 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19332 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19333 cross_compiling=$ac_cv_prog_cxx_cross
19334
19335       cat > conftest.$ac_ext <<EOF
19336 #line 19337 "configure"
19337 #include "confdefs.h"
19338 #include <math.h>
19339 int main() {
19340  hypotl(0, 0);
19341 ; return 0; }
19342 EOF
19343 if { (eval echo configure:19344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19344   rm -rf conftest*
19345   glibcpp_cv_func_hypotl_use=yes
19346 else
19347   echo "configure: failed program was:" >&5
19348   cat conftest.$ac_ext >&5
19349   rm -rf conftest*
19350   glibcpp_cv_func_hypotl_use=no
19351 fi
19352 rm -f conftest*
19353       ac_ext=c
19354 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19355 ac_cpp='$CPP $CPPFLAGS'
19356 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19357 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19358 cross_compiling=$ac_cv_prog_cc_cross
19359
19360     
19361 fi
19362
19363   fi
19364   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
19365
19366   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
19367     for ac_func in hypotl
19368 do
19369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19370 echo "configure:19371: checking for $ac_func" >&5
19371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19372   echo $ac_n "(cached) $ac_c" 1>&6
19373 else
19374   cat > conftest.$ac_ext <<EOF
19375 #line 19376 "configure"
19376 #include "confdefs.h"
19377 /* System header to define __stub macros and hopefully few prototypes,
19378     which can conflict with char $ac_func(); below.  */
19379 #include <assert.h>
19380 /* Override any gcc2 internal prototype to avoid an error.  */
19381 /* We use char because int might match the return type of a gcc2
19382     builtin and then its argument prototype would still apply.  */
19383 char $ac_func();
19384
19385 int main() {
19386
19387 /* The GNU C library defines this for functions which it implements
19388     to always fail with ENOSYS.  Some functions are actually named
19389     something starting with __ and the normal name is an alias.  */
19390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19391 choke me
19392 #else
19393 $ac_func();
19394 #endif
19395
19396 ; return 0; }
19397 EOF
19398 if { (eval echo configure:19399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19399   rm -rf conftest*
19400   eval "ac_cv_func_$ac_func=yes"
19401 else
19402   echo "configure: failed program was:" >&5
19403   cat conftest.$ac_ext >&5
19404   rm -rf conftest*
19405   eval "ac_cv_func_$ac_func=no"
19406 fi
19407 rm -f conftest*
19408 fi
19409
19410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19411   echo "$ac_t""yes" 1>&6
19412     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19413   cat >> confdefs.h <<EOF
19414 #define $ac_tr_func 1
19415 EOF
19416  
19417 else
19418   echo "$ac_t""no" 1>&6
19419 fi
19420 done
19421
19422   else
19423     
19424   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
19425 echo "configure:19426: checking for _hypotl declaration" >&5
19426   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
19427     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
19428   echo $ac_n "(cached) $ac_c" 1>&6
19429 else
19430   
19431       
19432       ac_ext=C
19433 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19434 ac_cpp='$CXXCPP $CPPFLAGS'
19435 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19436 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19437 cross_compiling=$ac_cv_prog_cxx_cross
19438
19439       cat > conftest.$ac_ext <<EOF
19440 #line 19441 "configure"
19441 #include "confdefs.h"
19442 #include <math.h>
19443 int main() {
19444  _hypotl(0, 0);
19445 ; return 0; }
19446 EOF
19447 if { (eval echo configure:19448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19448   rm -rf conftest*
19449   glibcpp_cv_func__hypotl_use=yes
19450 else
19451   echo "configure: failed program was:" >&5
19452   cat conftest.$ac_ext >&5
19453   rm -rf conftest*
19454   glibcpp_cv_func__hypotl_use=no
19455 fi
19456 rm -f conftest*
19457       ac_ext=c
19458 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19459 ac_cpp='$CPP $CPPFLAGS'
19460 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19461 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19462 cross_compiling=$ac_cv_prog_cc_cross
19463
19464     
19465 fi
19466
19467   fi
19468   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
19469
19470     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
19471       for ac_func in _hypotl
19472 do
19473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19474 echo "configure:19475: checking for $ac_func" >&5
19475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19476   echo $ac_n "(cached) $ac_c" 1>&6
19477 else
19478   cat > conftest.$ac_ext <<EOF
19479 #line 19480 "configure"
19480 #include "confdefs.h"
19481 /* System header to define __stub macros and hopefully few prototypes,
19482     which can conflict with char $ac_func(); below.  */
19483 #include <assert.h>
19484 /* Override any gcc2 internal prototype to avoid an error.  */
19485 /* We use char because int might match the return type of a gcc2
19486     builtin and then its argument prototype would still apply.  */
19487 char $ac_func();
19488
19489 int main() {
19490
19491 /* The GNU C library defines this for functions which it implements
19492     to always fail with ENOSYS.  Some functions are actually named
19493     something starting with __ and the normal name is an alias.  */
19494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19495 choke me
19496 #else
19497 $ac_func();
19498 #endif
19499
19500 ; return 0; }
19501 EOF
19502 if { (eval echo configure:19503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19503   rm -rf conftest*
19504   eval "ac_cv_func_$ac_func=yes"
19505 else
19506   echo "configure: failed program was:" >&5
19507   cat conftest.$ac_ext >&5
19508   rm -rf conftest*
19509   eval "ac_cv_func_$ac_func=no"
19510 fi
19511 rm -f conftest*
19512 fi
19513
19514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19515   echo "$ac_t""yes" 1>&6
19516     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19517   cat >> confdefs.h <<EOF
19518 #define $ac_tr_func 1
19519 EOF
19520  
19521 else
19522   echo "$ac_t""no" 1>&6
19523 fi
19524 done
19525
19526     fi
19527   fi
19528
19529   
19530   
19531   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
19532 echo "configure:19533: checking for ldexpl declaration" >&5
19533   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
19534     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
19535   echo $ac_n "(cached) $ac_c" 1>&6
19536 else
19537   
19538       
19539       ac_ext=C
19540 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19541 ac_cpp='$CXXCPP $CPPFLAGS'
19542 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19543 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19544 cross_compiling=$ac_cv_prog_cxx_cross
19545
19546       cat > conftest.$ac_ext <<EOF
19547 #line 19548 "configure"
19548 #include "confdefs.h"
19549 #include <math.h>
19550 int main() {
19551  ldexpl(0, 0);
19552 ; return 0; }
19553 EOF
19554 if { (eval echo configure:19555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19555   rm -rf conftest*
19556   glibcpp_cv_func_ldexpl_use=yes
19557 else
19558   echo "configure: failed program was:" >&5
19559   cat conftest.$ac_ext >&5
19560   rm -rf conftest*
19561   glibcpp_cv_func_ldexpl_use=no
19562 fi
19563 rm -f conftest*
19564       ac_ext=c
19565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19566 ac_cpp='$CPP $CPPFLAGS'
19567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19569 cross_compiling=$ac_cv_prog_cc_cross
19570
19571     
19572 fi
19573
19574   fi
19575   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
19576
19577   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
19578     for ac_func in ldexpl
19579 do
19580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19581 echo "configure:19582: checking for $ac_func" >&5
19582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19583   echo $ac_n "(cached) $ac_c" 1>&6
19584 else
19585   cat > conftest.$ac_ext <<EOF
19586 #line 19587 "configure"
19587 #include "confdefs.h"
19588 /* System header to define __stub macros and hopefully few prototypes,
19589     which can conflict with char $ac_func(); below.  */
19590 #include <assert.h>
19591 /* Override any gcc2 internal prototype to avoid an error.  */
19592 /* We use char because int might match the return type of a gcc2
19593     builtin and then its argument prototype would still apply.  */
19594 char $ac_func();
19595
19596 int main() {
19597
19598 /* The GNU C library defines this for functions which it implements
19599     to always fail with ENOSYS.  Some functions are actually named
19600     something starting with __ and the normal name is an alias.  */
19601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19602 choke me
19603 #else
19604 $ac_func();
19605 #endif
19606
19607 ; return 0; }
19608 EOF
19609 if { (eval echo configure:19610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19610   rm -rf conftest*
19611   eval "ac_cv_func_$ac_func=yes"
19612 else
19613   echo "configure: failed program was:" >&5
19614   cat conftest.$ac_ext >&5
19615   rm -rf conftest*
19616   eval "ac_cv_func_$ac_func=no"
19617 fi
19618 rm -f conftest*
19619 fi
19620
19621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19622   echo "$ac_t""yes" 1>&6
19623     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19624   cat >> confdefs.h <<EOF
19625 #define $ac_tr_func 1
19626 EOF
19627  
19628 else
19629   echo "$ac_t""no" 1>&6
19630 fi
19631 done
19632
19633   else
19634     
19635   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
19636 echo "configure:19637: checking for _ldexpl declaration" >&5
19637   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
19638     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
19639   echo $ac_n "(cached) $ac_c" 1>&6
19640 else
19641   
19642       
19643       ac_ext=C
19644 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19645 ac_cpp='$CXXCPP $CPPFLAGS'
19646 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19647 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19648 cross_compiling=$ac_cv_prog_cxx_cross
19649
19650       cat > conftest.$ac_ext <<EOF
19651 #line 19652 "configure"
19652 #include "confdefs.h"
19653 #include <math.h>
19654 int main() {
19655  _ldexpl(0, 0);
19656 ; return 0; }
19657 EOF
19658 if { (eval echo configure:19659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19659   rm -rf conftest*
19660   glibcpp_cv_func__ldexpl_use=yes
19661 else
19662   echo "configure: failed program was:" >&5
19663   cat conftest.$ac_ext >&5
19664   rm -rf conftest*
19665   glibcpp_cv_func__ldexpl_use=no
19666 fi
19667 rm -f conftest*
19668       ac_ext=c
19669 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19670 ac_cpp='$CPP $CPPFLAGS'
19671 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19672 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19673 cross_compiling=$ac_cv_prog_cc_cross
19674
19675     
19676 fi
19677
19678   fi
19679   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
19680
19681     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
19682       for ac_func in _ldexpl
19683 do
19684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19685 echo "configure:19686: checking for $ac_func" >&5
19686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19687   echo $ac_n "(cached) $ac_c" 1>&6
19688 else
19689   cat > conftest.$ac_ext <<EOF
19690 #line 19691 "configure"
19691 #include "confdefs.h"
19692 /* System header to define __stub macros and hopefully few prototypes,
19693     which can conflict with char $ac_func(); below.  */
19694 #include <assert.h>
19695 /* Override any gcc2 internal prototype to avoid an error.  */
19696 /* We use char because int might match the return type of a gcc2
19697     builtin and then its argument prototype would still apply.  */
19698 char $ac_func();
19699
19700 int main() {
19701
19702 /* The GNU C library defines this for functions which it implements
19703     to always fail with ENOSYS.  Some functions are actually named
19704     something starting with __ and the normal name is an alias.  */
19705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19706 choke me
19707 #else
19708 $ac_func();
19709 #endif
19710
19711 ; return 0; }
19712 EOF
19713 if { (eval echo configure:19714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19714   rm -rf conftest*
19715   eval "ac_cv_func_$ac_func=yes"
19716 else
19717   echo "configure: failed program was:" >&5
19718   cat conftest.$ac_ext >&5
19719   rm -rf conftest*
19720   eval "ac_cv_func_$ac_func=no"
19721 fi
19722 rm -f conftest*
19723 fi
19724
19725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19726   echo "$ac_t""yes" 1>&6
19727     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19728   cat >> confdefs.h <<EOF
19729 #define $ac_tr_func 1
19730 EOF
19731  
19732 else
19733   echo "$ac_t""no" 1>&6
19734 fi
19735 done
19736
19737     fi
19738   fi
19739
19740   
19741   
19742   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
19743 echo "configure:19744: checking for logl declaration" >&5
19744   if test x${glibcpp_cv_func_logl_use+set} != xset; then
19745     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
19746   echo $ac_n "(cached) $ac_c" 1>&6
19747 else
19748   
19749       
19750       ac_ext=C
19751 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19752 ac_cpp='$CXXCPP $CPPFLAGS'
19753 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19754 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19755 cross_compiling=$ac_cv_prog_cxx_cross
19756
19757       cat > conftest.$ac_ext <<EOF
19758 #line 19759 "configure"
19759 #include "confdefs.h"
19760 #include <math.h>
19761                       #ifdef HAVE_IEEEFP_H
19762                       #include <ieeefp.h>
19763                       #endif
19764                      
19765 int main() {
19766  logl(0);
19767 ; return 0; }
19768 EOF
19769 if { (eval echo configure:19770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19770   rm -rf conftest*
19771   glibcpp_cv_func_logl_use=yes
19772 else
19773   echo "configure: failed program was:" >&5
19774   cat conftest.$ac_ext >&5
19775   rm -rf conftest*
19776   glibcpp_cv_func_logl_use=no
19777 fi
19778 rm -f conftest*
19779       ac_ext=c
19780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19781 ac_cpp='$CPP $CPPFLAGS'
19782 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19783 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19784 cross_compiling=$ac_cv_prog_cc_cross
19785
19786     
19787 fi
19788
19789   fi
19790   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
19791
19792   if test x$glibcpp_cv_func_logl_use = x"yes"; then
19793     for ac_func in logl
19794 do
19795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19796 echo "configure:19797: checking for $ac_func" >&5
19797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19798   echo $ac_n "(cached) $ac_c" 1>&6
19799 else
19800   cat > conftest.$ac_ext <<EOF
19801 #line 19802 "configure"
19802 #include "confdefs.h"
19803 /* System header to define __stub macros and hopefully few prototypes,
19804     which can conflict with char $ac_func(); below.  */
19805 #include <assert.h>
19806 /* Override any gcc2 internal prototype to avoid an error.  */
19807 /* We use char because int might match the return type of a gcc2
19808     builtin and then its argument prototype would still apply.  */
19809 char $ac_func();
19810
19811 int main() {
19812
19813 /* The GNU C library defines this for functions which it implements
19814     to always fail with ENOSYS.  Some functions are actually named
19815     something starting with __ and the normal name is an alias.  */
19816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19817 choke me
19818 #else
19819 $ac_func();
19820 #endif
19821
19822 ; return 0; }
19823 EOF
19824 if { (eval echo configure:19825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19825   rm -rf conftest*
19826   eval "ac_cv_func_$ac_func=yes"
19827 else
19828   echo "configure: failed program was:" >&5
19829   cat conftest.$ac_ext >&5
19830   rm -rf conftest*
19831   eval "ac_cv_func_$ac_func=no"
19832 fi
19833 rm -f conftest*
19834 fi
19835
19836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19837   echo "$ac_t""yes" 1>&6
19838     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19839   cat >> confdefs.h <<EOF
19840 #define $ac_tr_func 1
19841 EOF
19842  
19843 else
19844   echo "$ac_t""no" 1>&6
19845 fi
19846 done
19847
19848   else
19849     
19850   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
19851 echo "configure:19852: checking for _logl declaration" >&5
19852   if test x${glibcpp_cv_func__logl_use+set} != xset; then
19853     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
19854   echo $ac_n "(cached) $ac_c" 1>&6
19855 else
19856   
19857       
19858       ac_ext=C
19859 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19860 ac_cpp='$CXXCPP $CPPFLAGS'
19861 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19862 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19863 cross_compiling=$ac_cv_prog_cxx_cross
19864
19865       cat > conftest.$ac_ext <<EOF
19866 #line 19867 "configure"
19867 #include "confdefs.h"
19868 #include <math.h>
19869                       #ifdef HAVE_IEEEFP_H
19870                       #include <ieeefp.h>
19871                       #endif
19872                      
19873 int main() {
19874  _logl(0);
19875 ; return 0; }
19876 EOF
19877 if { (eval echo configure:19878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19878   rm -rf conftest*
19879   glibcpp_cv_func__logl_use=yes
19880 else
19881   echo "configure: failed program was:" >&5
19882   cat conftest.$ac_ext >&5
19883   rm -rf conftest*
19884   glibcpp_cv_func__logl_use=no
19885 fi
19886 rm -f conftest*
19887       ac_ext=c
19888 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19889 ac_cpp='$CPP $CPPFLAGS'
19890 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19891 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19892 cross_compiling=$ac_cv_prog_cc_cross
19893
19894     
19895 fi
19896
19897   fi
19898   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
19899
19900     if test x$glibcpp_cv_func__logl_use = x"yes"; then
19901       for ac_func in _logl
19902 do
19903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19904 echo "configure:19905: checking for $ac_func" >&5
19905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19906   echo $ac_n "(cached) $ac_c" 1>&6
19907 else
19908   cat > conftest.$ac_ext <<EOF
19909 #line 19910 "configure"
19910 #include "confdefs.h"
19911 /* System header to define __stub macros and hopefully few prototypes,
19912     which can conflict with char $ac_func(); below.  */
19913 #include <assert.h>
19914 /* Override any gcc2 internal prototype to avoid an error.  */
19915 /* We use char because int might match the return type of a gcc2
19916     builtin and then its argument prototype would still apply.  */
19917 char $ac_func();
19918
19919 int main() {
19920
19921 /* The GNU C library defines this for functions which it implements
19922     to always fail with ENOSYS.  Some functions are actually named
19923     something starting with __ and the normal name is an alias.  */
19924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19925 choke me
19926 #else
19927 $ac_func();
19928 #endif
19929
19930 ; return 0; }
19931 EOF
19932 if { (eval echo configure:19933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19933   rm -rf conftest*
19934   eval "ac_cv_func_$ac_func=yes"
19935 else
19936   echo "configure: failed program was:" >&5
19937   cat conftest.$ac_ext >&5
19938   rm -rf conftest*
19939   eval "ac_cv_func_$ac_func=no"
19940 fi
19941 rm -f conftest*
19942 fi
19943
19944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19945   echo "$ac_t""yes" 1>&6
19946     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19947   cat >> confdefs.h <<EOF
19948 #define $ac_tr_func 1
19949 EOF
19950  
19951 else
19952   echo "$ac_t""no" 1>&6
19953 fi
19954 done
19955
19956     fi
19957   fi
19958
19959   
19960   
19961   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
19962 echo "configure:19963: checking for log10l declaration" >&5
19963   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
19964     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
19965   echo $ac_n "(cached) $ac_c" 1>&6
19966 else
19967   
19968       
19969       ac_ext=C
19970 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19971 ac_cpp='$CXXCPP $CPPFLAGS'
19972 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19973 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19974 cross_compiling=$ac_cv_prog_cxx_cross
19975
19976       cat > conftest.$ac_ext <<EOF
19977 #line 19978 "configure"
19978 #include "confdefs.h"
19979 #include <math.h>
19980                       #ifdef HAVE_IEEEFP_H
19981                       #include <ieeefp.h>
19982                       #endif
19983                      
19984 int main() {
19985  log10l(0);
19986 ; return 0; }
19987 EOF
19988 if { (eval echo configure:19989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19989   rm -rf conftest*
19990   glibcpp_cv_func_log10l_use=yes
19991 else
19992   echo "configure: failed program was:" >&5
19993   cat conftest.$ac_ext >&5
19994   rm -rf conftest*
19995   glibcpp_cv_func_log10l_use=no
19996 fi
19997 rm -f conftest*
19998       ac_ext=c
19999 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20000 ac_cpp='$CPP $CPPFLAGS'
20001 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20002 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20003 cross_compiling=$ac_cv_prog_cc_cross
20004
20005     
20006 fi
20007
20008   fi
20009   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
20010
20011   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
20012     for ac_func in log10l
20013 do
20014 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20015 echo "configure:20016: checking for $ac_func" >&5
20016 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20017   echo $ac_n "(cached) $ac_c" 1>&6
20018 else
20019   cat > conftest.$ac_ext <<EOF
20020 #line 20021 "configure"
20021 #include "confdefs.h"
20022 /* System header to define __stub macros and hopefully few prototypes,
20023     which can conflict with char $ac_func(); below.  */
20024 #include <assert.h>
20025 /* Override any gcc2 internal prototype to avoid an error.  */
20026 /* We use char because int might match the return type of a gcc2
20027     builtin and then its argument prototype would still apply.  */
20028 char $ac_func();
20029
20030 int main() {
20031
20032 /* The GNU C library defines this for functions which it implements
20033     to always fail with ENOSYS.  Some functions are actually named
20034     something starting with __ and the normal name is an alias.  */
20035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20036 choke me
20037 #else
20038 $ac_func();
20039 #endif
20040
20041 ; return 0; }
20042 EOF
20043 if { (eval echo configure:20044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20044   rm -rf conftest*
20045   eval "ac_cv_func_$ac_func=yes"
20046 else
20047   echo "configure: failed program was:" >&5
20048   cat conftest.$ac_ext >&5
20049   rm -rf conftest*
20050   eval "ac_cv_func_$ac_func=no"
20051 fi
20052 rm -f conftest*
20053 fi
20054
20055 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20056   echo "$ac_t""yes" 1>&6
20057     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20058   cat >> confdefs.h <<EOF
20059 #define $ac_tr_func 1
20060 EOF
20061  
20062 else
20063   echo "$ac_t""no" 1>&6
20064 fi
20065 done
20066
20067   else
20068     
20069   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
20070 echo "configure:20071: checking for _log10l declaration" >&5
20071   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
20072     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
20073   echo $ac_n "(cached) $ac_c" 1>&6
20074 else
20075   
20076       
20077       ac_ext=C
20078 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20079 ac_cpp='$CXXCPP $CPPFLAGS'
20080 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20081 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20082 cross_compiling=$ac_cv_prog_cxx_cross
20083
20084       cat > conftest.$ac_ext <<EOF
20085 #line 20086 "configure"
20086 #include "confdefs.h"
20087 #include <math.h>
20088                       #ifdef HAVE_IEEEFP_H
20089                       #include <ieeefp.h>
20090                       #endif
20091                      
20092 int main() {
20093  _log10l(0);
20094 ; return 0; }
20095 EOF
20096 if { (eval echo configure:20097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20097   rm -rf conftest*
20098   glibcpp_cv_func__log10l_use=yes
20099 else
20100   echo "configure: failed program was:" >&5
20101   cat conftest.$ac_ext >&5
20102   rm -rf conftest*
20103   glibcpp_cv_func__log10l_use=no
20104 fi
20105 rm -f conftest*
20106       ac_ext=c
20107 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20108 ac_cpp='$CPP $CPPFLAGS'
20109 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20110 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20111 cross_compiling=$ac_cv_prog_cc_cross
20112
20113     
20114 fi
20115
20116   fi
20117   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
20118
20119     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
20120       for ac_func in _log10l
20121 do
20122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20123 echo "configure:20124: checking for $ac_func" >&5
20124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20125   echo $ac_n "(cached) $ac_c" 1>&6
20126 else
20127   cat > conftest.$ac_ext <<EOF
20128 #line 20129 "configure"
20129 #include "confdefs.h"
20130 /* System header to define __stub macros and hopefully few prototypes,
20131     which can conflict with char $ac_func(); below.  */
20132 #include <assert.h>
20133 /* Override any gcc2 internal prototype to avoid an error.  */
20134 /* We use char because int might match the return type of a gcc2
20135     builtin and then its argument prototype would still apply.  */
20136 char $ac_func();
20137
20138 int main() {
20139
20140 /* The GNU C library defines this for functions which it implements
20141     to always fail with ENOSYS.  Some functions are actually named
20142     something starting with __ and the normal name is an alias.  */
20143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20144 choke me
20145 #else
20146 $ac_func();
20147 #endif
20148
20149 ; return 0; }
20150 EOF
20151 if { (eval echo configure:20152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20152   rm -rf conftest*
20153   eval "ac_cv_func_$ac_func=yes"
20154 else
20155   echo "configure: failed program was:" >&5
20156   cat conftest.$ac_ext >&5
20157   rm -rf conftest*
20158   eval "ac_cv_func_$ac_func=no"
20159 fi
20160 rm -f conftest*
20161 fi
20162
20163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20164   echo "$ac_t""yes" 1>&6
20165     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20166   cat >> confdefs.h <<EOF
20167 #define $ac_tr_func 1
20168 EOF
20169  
20170 else
20171   echo "$ac_t""no" 1>&6
20172 fi
20173 done
20174
20175     fi
20176   fi
20177
20178   
20179   
20180   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
20181 echo "configure:20182: checking for modfl declaration" >&5
20182   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
20183     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
20184   echo $ac_n "(cached) $ac_c" 1>&6
20185 else
20186   
20187       
20188       ac_ext=C
20189 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20190 ac_cpp='$CXXCPP $CPPFLAGS'
20191 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20192 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20193 cross_compiling=$ac_cv_prog_cxx_cross
20194
20195       cat > conftest.$ac_ext <<EOF
20196 #line 20197 "configure"
20197 #include "confdefs.h"
20198 #include <math.h>
20199 int main() {
20200  modfl(0, 0);
20201 ; return 0; }
20202 EOF
20203 if { (eval echo configure:20204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20204   rm -rf conftest*
20205   glibcpp_cv_func_modfl_use=yes
20206 else
20207   echo "configure: failed program was:" >&5
20208   cat conftest.$ac_ext >&5
20209   rm -rf conftest*
20210   glibcpp_cv_func_modfl_use=no
20211 fi
20212 rm -f conftest*
20213       ac_ext=c
20214 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20215 ac_cpp='$CPP $CPPFLAGS'
20216 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20217 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20218 cross_compiling=$ac_cv_prog_cc_cross
20219
20220     
20221 fi
20222
20223   fi
20224   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
20225
20226   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
20227     for ac_func in modfl
20228 do
20229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20230 echo "configure:20231: checking for $ac_func" >&5
20231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20232   echo $ac_n "(cached) $ac_c" 1>&6
20233 else
20234   cat > conftest.$ac_ext <<EOF
20235 #line 20236 "configure"
20236 #include "confdefs.h"
20237 /* System header to define __stub macros and hopefully few prototypes,
20238     which can conflict with char $ac_func(); below.  */
20239 #include <assert.h>
20240 /* Override any gcc2 internal prototype to avoid an error.  */
20241 /* We use char because int might match the return type of a gcc2
20242     builtin and then its argument prototype would still apply.  */
20243 char $ac_func();
20244
20245 int main() {
20246
20247 /* The GNU C library defines this for functions which it implements
20248     to always fail with ENOSYS.  Some functions are actually named
20249     something starting with __ and the normal name is an alias.  */
20250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20251 choke me
20252 #else
20253 $ac_func();
20254 #endif
20255
20256 ; return 0; }
20257 EOF
20258 if { (eval echo configure:20259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20259   rm -rf conftest*
20260   eval "ac_cv_func_$ac_func=yes"
20261 else
20262   echo "configure: failed program was:" >&5
20263   cat conftest.$ac_ext >&5
20264   rm -rf conftest*
20265   eval "ac_cv_func_$ac_func=no"
20266 fi
20267 rm -f conftest*
20268 fi
20269
20270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20271   echo "$ac_t""yes" 1>&6
20272     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20273   cat >> confdefs.h <<EOF
20274 #define $ac_tr_func 1
20275 EOF
20276  
20277 else
20278   echo "$ac_t""no" 1>&6
20279 fi
20280 done
20281
20282   else
20283     
20284   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
20285 echo "configure:20286: checking for _modfl declaration" >&5
20286   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
20287     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
20288   echo $ac_n "(cached) $ac_c" 1>&6
20289 else
20290   
20291       
20292       ac_ext=C
20293 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20294 ac_cpp='$CXXCPP $CPPFLAGS'
20295 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20296 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20297 cross_compiling=$ac_cv_prog_cxx_cross
20298
20299       cat > conftest.$ac_ext <<EOF
20300 #line 20301 "configure"
20301 #include "confdefs.h"
20302 #include <math.h>
20303 int main() {
20304  _modfl(0, 0);
20305 ; return 0; }
20306 EOF
20307 if { (eval echo configure:20308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20308   rm -rf conftest*
20309   glibcpp_cv_func__modfl_use=yes
20310 else
20311   echo "configure: failed program was:" >&5
20312   cat conftest.$ac_ext >&5
20313   rm -rf conftest*
20314   glibcpp_cv_func__modfl_use=no
20315 fi
20316 rm -f conftest*
20317       ac_ext=c
20318 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20319 ac_cpp='$CPP $CPPFLAGS'
20320 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20321 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20322 cross_compiling=$ac_cv_prog_cc_cross
20323
20324     
20325 fi
20326
20327   fi
20328   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
20329
20330     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
20331       for ac_func in _modfl
20332 do
20333 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20334 echo "configure:20335: checking for $ac_func" >&5
20335 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20336   echo $ac_n "(cached) $ac_c" 1>&6
20337 else
20338   cat > conftest.$ac_ext <<EOF
20339 #line 20340 "configure"
20340 #include "confdefs.h"
20341 /* System header to define __stub macros and hopefully few prototypes,
20342     which can conflict with char $ac_func(); below.  */
20343 #include <assert.h>
20344 /* Override any gcc2 internal prototype to avoid an error.  */
20345 /* We use char because int might match the return type of a gcc2
20346     builtin and then its argument prototype would still apply.  */
20347 char $ac_func();
20348
20349 int main() {
20350
20351 /* The GNU C library defines this for functions which it implements
20352     to always fail with ENOSYS.  Some functions are actually named
20353     something starting with __ and the normal name is an alias.  */
20354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20355 choke me
20356 #else
20357 $ac_func();
20358 #endif
20359
20360 ; return 0; }
20361 EOF
20362 if { (eval echo configure:20363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20363   rm -rf conftest*
20364   eval "ac_cv_func_$ac_func=yes"
20365 else
20366   echo "configure: failed program was:" >&5
20367   cat conftest.$ac_ext >&5
20368   rm -rf conftest*
20369   eval "ac_cv_func_$ac_func=no"
20370 fi
20371 rm -f conftest*
20372 fi
20373
20374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20375   echo "$ac_t""yes" 1>&6
20376     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20377   cat >> confdefs.h <<EOF
20378 #define $ac_tr_func 1
20379 EOF
20380  
20381 else
20382   echo "$ac_t""no" 1>&6
20383 fi
20384 done
20385
20386     fi
20387   fi
20388
20389   
20390   
20391   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
20392 echo "configure:20393: checking for powl declaration" >&5
20393   if test x${glibcpp_cv_func_powl_use+set} != xset; then
20394     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
20395   echo $ac_n "(cached) $ac_c" 1>&6
20396 else
20397   
20398       
20399       ac_ext=C
20400 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20401 ac_cpp='$CXXCPP $CPPFLAGS'
20402 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20403 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20404 cross_compiling=$ac_cv_prog_cxx_cross
20405
20406       cat > conftest.$ac_ext <<EOF
20407 #line 20408 "configure"
20408 #include "confdefs.h"
20409 #include <math.h>
20410 int main() {
20411  powl(0, 0);
20412 ; return 0; }
20413 EOF
20414 if { (eval echo configure:20415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20415   rm -rf conftest*
20416   glibcpp_cv_func_powl_use=yes
20417 else
20418   echo "configure: failed program was:" >&5
20419   cat conftest.$ac_ext >&5
20420   rm -rf conftest*
20421   glibcpp_cv_func_powl_use=no
20422 fi
20423 rm -f conftest*
20424       ac_ext=c
20425 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20426 ac_cpp='$CPP $CPPFLAGS'
20427 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20428 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20429 cross_compiling=$ac_cv_prog_cc_cross
20430
20431     
20432 fi
20433
20434   fi
20435   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
20436
20437   if test x$glibcpp_cv_func_powl_use = x"yes"; then
20438     for ac_func in powl
20439 do
20440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20441 echo "configure:20442: checking for $ac_func" >&5
20442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20443   echo $ac_n "(cached) $ac_c" 1>&6
20444 else
20445   cat > conftest.$ac_ext <<EOF
20446 #line 20447 "configure"
20447 #include "confdefs.h"
20448 /* System header to define __stub macros and hopefully few prototypes,
20449     which can conflict with char $ac_func(); below.  */
20450 #include <assert.h>
20451 /* Override any gcc2 internal prototype to avoid an error.  */
20452 /* We use char because int might match the return type of a gcc2
20453     builtin and then its argument prototype would still apply.  */
20454 char $ac_func();
20455
20456 int main() {
20457
20458 /* The GNU C library defines this for functions which it implements
20459     to always fail with ENOSYS.  Some functions are actually named
20460     something starting with __ and the normal name is an alias.  */
20461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20462 choke me
20463 #else
20464 $ac_func();
20465 #endif
20466
20467 ; return 0; }
20468 EOF
20469 if { (eval echo configure:20470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20470   rm -rf conftest*
20471   eval "ac_cv_func_$ac_func=yes"
20472 else
20473   echo "configure: failed program was:" >&5
20474   cat conftest.$ac_ext >&5
20475   rm -rf conftest*
20476   eval "ac_cv_func_$ac_func=no"
20477 fi
20478 rm -f conftest*
20479 fi
20480
20481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20482   echo "$ac_t""yes" 1>&6
20483     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20484   cat >> confdefs.h <<EOF
20485 #define $ac_tr_func 1
20486 EOF
20487  
20488 else
20489   echo "$ac_t""no" 1>&6
20490 fi
20491 done
20492
20493   else
20494     
20495   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
20496 echo "configure:20497: checking for _powl declaration" >&5
20497   if test x${glibcpp_cv_func__powl_use+set} != xset; then
20498     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
20499   echo $ac_n "(cached) $ac_c" 1>&6
20500 else
20501   
20502       
20503       ac_ext=C
20504 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20505 ac_cpp='$CXXCPP $CPPFLAGS'
20506 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20507 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20508 cross_compiling=$ac_cv_prog_cxx_cross
20509
20510       cat > conftest.$ac_ext <<EOF
20511 #line 20512 "configure"
20512 #include "confdefs.h"
20513 #include <math.h>
20514 int main() {
20515  _powl(0, 0);
20516 ; return 0; }
20517 EOF
20518 if { (eval echo configure:20519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20519   rm -rf conftest*
20520   glibcpp_cv_func__powl_use=yes
20521 else
20522   echo "configure: failed program was:" >&5
20523   cat conftest.$ac_ext >&5
20524   rm -rf conftest*
20525   glibcpp_cv_func__powl_use=no
20526 fi
20527 rm -f conftest*
20528       ac_ext=c
20529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20530 ac_cpp='$CPP $CPPFLAGS'
20531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20532 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20533 cross_compiling=$ac_cv_prog_cc_cross
20534
20535     
20536 fi
20537
20538   fi
20539   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
20540
20541     if test x$glibcpp_cv_func__powl_use = x"yes"; then
20542       for ac_func in _powl
20543 do
20544 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20545 echo "configure:20546: checking for $ac_func" >&5
20546 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20547   echo $ac_n "(cached) $ac_c" 1>&6
20548 else
20549   cat > conftest.$ac_ext <<EOF
20550 #line 20551 "configure"
20551 #include "confdefs.h"
20552 /* System header to define __stub macros and hopefully few prototypes,
20553     which can conflict with char $ac_func(); below.  */
20554 #include <assert.h>
20555 /* Override any gcc2 internal prototype to avoid an error.  */
20556 /* We use char because int might match the return type of a gcc2
20557     builtin and then its argument prototype would still apply.  */
20558 char $ac_func();
20559
20560 int main() {
20561
20562 /* The GNU C library defines this for functions which it implements
20563     to always fail with ENOSYS.  Some functions are actually named
20564     something starting with __ and the normal name is an alias.  */
20565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20566 choke me
20567 #else
20568 $ac_func();
20569 #endif
20570
20571 ; return 0; }
20572 EOF
20573 if { (eval echo configure:20574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20574   rm -rf conftest*
20575   eval "ac_cv_func_$ac_func=yes"
20576 else
20577   echo "configure: failed program was:" >&5
20578   cat conftest.$ac_ext >&5
20579   rm -rf conftest*
20580   eval "ac_cv_func_$ac_func=no"
20581 fi
20582 rm -f conftest*
20583 fi
20584
20585 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20586   echo "$ac_t""yes" 1>&6
20587     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20588   cat >> confdefs.h <<EOF
20589 #define $ac_tr_func 1
20590 EOF
20591  
20592 else
20593   echo "$ac_t""no" 1>&6
20594 fi
20595 done
20596
20597     fi
20598   fi
20599
20600   
20601   
20602   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
20603 echo "configure:20604: checking for sqrtl declaration" >&5
20604   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
20605     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
20606   echo $ac_n "(cached) $ac_c" 1>&6
20607 else
20608   
20609       
20610       ac_ext=C
20611 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20612 ac_cpp='$CXXCPP $CPPFLAGS'
20613 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20614 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20615 cross_compiling=$ac_cv_prog_cxx_cross
20616
20617       cat > conftest.$ac_ext <<EOF
20618 #line 20619 "configure"
20619 #include "confdefs.h"
20620 #include <math.h>
20621                       #ifdef HAVE_IEEEFP_H
20622                       #include <ieeefp.h>
20623                       #endif
20624                      
20625 int main() {
20626  sqrtl(0);
20627 ; return 0; }
20628 EOF
20629 if { (eval echo configure:20630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20630   rm -rf conftest*
20631   glibcpp_cv_func_sqrtl_use=yes
20632 else
20633   echo "configure: failed program was:" >&5
20634   cat conftest.$ac_ext >&5
20635   rm -rf conftest*
20636   glibcpp_cv_func_sqrtl_use=no
20637 fi
20638 rm -f conftest*
20639       ac_ext=c
20640 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20641 ac_cpp='$CPP $CPPFLAGS'
20642 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20643 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20644 cross_compiling=$ac_cv_prog_cc_cross
20645
20646     
20647 fi
20648
20649   fi
20650   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
20651
20652   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
20653     for ac_func in sqrtl
20654 do
20655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20656 echo "configure:20657: checking for $ac_func" >&5
20657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20658   echo $ac_n "(cached) $ac_c" 1>&6
20659 else
20660   cat > conftest.$ac_ext <<EOF
20661 #line 20662 "configure"
20662 #include "confdefs.h"
20663 /* System header to define __stub macros and hopefully few prototypes,
20664     which can conflict with char $ac_func(); below.  */
20665 #include <assert.h>
20666 /* Override any gcc2 internal prototype to avoid an error.  */
20667 /* We use char because int might match the return type of a gcc2
20668     builtin and then its argument prototype would still apply.  */
20669 char $ac_func();
20670
20671 int main() {
20672
20673 /* The GNU C library defines this for functions which it implements
20674     to always fail with ENOSYS.  Some functions are actually named
20675     something starting with __ and the normal name is an alias.  */
20676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20677 choke me
20678 #else
20679 $ac_func();
20680 #endif
20681
20682 ; return 0; }
20683 EOF
20684 if { (eval echo configure:20685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20685   rm -rf conftest*
20686   eval "ac_cv_func_$ac_func=yes"
20687 else
20688   echo "configure: failed program was:" >&5
20689   cat conftest.$ac_ext >&5
20690   rm -rf conftest*
20691   eval "ac_cv_func_$ac_func=no"
20692 fi
20693 rm -f conftest*
20694 fi
20695
20696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20697   echo "$ac_t""yes" 1>&6
20698     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20699   cat >> confdefs.h <<EOF
20700 #define $ac_tr_func 1
20701 EOF
20702  
20703 else
20704   echo "$ac_t""no" 1>&6
20705 fi
20706 done
20707
20708   else
20709     
20710   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
20711 echo "configure:20712: checking for _sqrtl declaration" >&5
20712   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
20713     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
20714   echo $ac_n "(cached) $ac_c" 1>&6
20715 else
20716   
20717       
20718       ac_ext=C
20719 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20720 ac_cpp='$CXXCPP $CPPFLAGS'
20721 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20722 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20723 cross_compiling=$ac_cv_prog_cxx_cross
20724
20725       cat > conftest.$ac_ext <<EOF
20726 #line 20727 "configure"
20727 #include "confdefs.h"
20728 #include <math.h>
20729                       #ifdef HAVE_IEEEFP_H
20730                       #include <ieeefp.h>
20731                       #endif
20732                      
20733 int main() {
20734  _sqrtl(0);
20735 ; return 0; }
20736 EOF
20737 if { (eval echo configure:20738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20738   rm -rf conftest*
20739   glibcpp_cv_func__sqrtl_use=yes
20740 else
20741   echo "configure: failed program was:" >&5
20742   cat conftest.$ac_ext >&5
20743   rm -rf conftest*
20744   glibcpp_cv_func__sqrtl_use=no
20745 fi
20746 rm -f conftest*
20747       ac_ext=c
20748 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20749 ac_cpp='$CPP $CPPFLAGS'
20750 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20751 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20752 cross_compiling=$ac_cv_prog_cc_cross
20753
20754     
20755 fi
20756
20757   fi
20758   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
20759
20760     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
20761       for ac_func in _sqrtl
20762 do
20763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20764 echo "configure:20765: checking for $ac_func" >&5
20765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20766   echo $ac_n "(cached) $ac_c" 1>&6
20767 else
20768   cat > conftest.$ac_ext <<EOF
20769 #line 20770 "configure"
20770 #include "confdefs.h"
20771 /* System header to define __stub macros and hopefully few prototypes,
20772     which can conflict with char $ac_func(); below.  */
20773 #include <assert.h>
20774 /* Override any gcc2 internal prototype to avoid an error.  */
20775 /* We use char because int might match the return type of a gcc2
20776     builtin and then its argument prototype would still apply.  */
20777 char $ac_func();
20778
20779 int main() {
20780
20781 /* The GNU C library defines this for functions which it implements
20782     to always fail with ENOSYS.  Some functions are actually named
20783     something starting with __ and the normal name is an alias.  */
20784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20785 choke me
20786 #else
20787 $ac_func();
20788 #endif
20789
20790 ; return 0; }
20791 EOF
20792 if { (eval echo configure:20793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20793   rm -rf conftest*
20794   eval "ac_cv_func_$ac_func=yes"
20795 else
20796   echo "configure: failed program was:" >&5
20797   cat conftest.$ac_ext >&5
20798   rm -rf conftest*
20799   eval "ac_cv_func_$ac_func=no"
20800 fi
20801 rm -f conftest*
20802 fi
20803
20804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20805   echo "$ac_t""yes" 1>&6
20806     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20807   cat >> confdefs.h <<EOF
20808 #define $ac_tr_func 1
20809 EOF
20810  
20811 else
20812   echo "$ac_t""no" 1>&6
20813 fi
20814 done
20815
20816     fi
20817   fi
20818
20819   
20820   
20821   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
20822 echo "configure:20823: checking for sincosl declaration" >&5
20823   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
20824     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
20825   echo $ac_n "(cached) $ac_c" 1>&6
20826 else
20827   
20828       
20829       ac_ext=C
20830 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20831 ac_cpp='$CXXCPP $CPPFLAGS'
20832 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20833 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20834 cross_compiling=$ac_cv_prog_cxx_cross
20835
20836       cat > conftest.$ac_ext <<EOF
20837 #line 20838 "configure"
20838 #include "confdefs.h"
20839 #include <math.h>
20840 int main() {
20841  sincosl(0, 0, 0);
20842 ; return 0; }
20843 EOF
20844 if { (eval echo configure:20845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20845   rm -rf conftest*
20846   glibcpp_cv_func_sincosl_use=yes
20847 else
20848   echo "configure: failed program was:" >&5
20849   cat conftest.$ac_ext >&5
20850   rm -rf conftest*
20851   glibcpp_cv_func_sincosl_use=no
20852 fi
20853 rm -f conftest*
20854       ac_ext=c
20855 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20856 ac_cpp='$CPP $CPPFLAGS'
20857 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20858 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20859 cross_compiling=$ac_cv_prog_cc_cross
20860
20861     
20862 fi
20863
20864   fi
20865   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
20866
20867   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
20868     for ac_func in sincosl
20869 do
20870 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20871 echo "configure:20872: checking for $ac_func" >&5
20872 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20873   echo $ac_n "(cached) $ac_c" 1>&6
20874 else
20875   cat > conftest.$ac_ext <<EOF
20876 #line 20877 "configure"
20877 #include "confdefs.h"
20878 /* System header to define __stub macros and hopefully few prototypes,
20879     which can conflict with char $ac_func(); below.  */
20880 #include <assert.h>
20881 /* Override any gcc2 internal prototype to avoid an error.  */
20882 /* We use char because int might match the return type of a gcc2
20883     builtin and then its argument prototype would still apply.  */
20884 char $ac_func();
20885
20886 int main() {
20887
20888 /* The GNU C library defines this for functions which it implements
20889     to always fail with ENOSYS.  Some functions are actually named
20890     something starting with __ and the normal name is an alias.  */
20891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20892 choke me
20893 #else
20894 $ac_func();
20895 #endif
20896
20897 ; return 0; }
20898 EOF
20899 if { (eval echo configure:20900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20900   rm -rf conftest*
20901   eval "ac_cv_func_$ac_func=yes"
20902 else
20903   echo "configure: failed program was:" >&5
20904   cat conftest.$ac_ext >&5
20905   rm -rf conftest*
20906   eval "ac_cv_func_$ac_func=no"
20907 fi
20908 rm -f conftest*
20909 fi
20910
20911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20912   echo "$ac_t""yes" 1>&6
20913     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20914   cat >> confdefs.h <<EOF
20915 #define $ac_tr_func 1
20916 EOF
20917  
20918 else
20919   echo "$ac_t""no" 1>&6
20920 fi
20921 done
20922
20923   else
20924     
20925   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
20926 echo "configure:20927: checking for _sincosl declaration" >&5
20927   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
20928     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
20929   echo $ac_n "(cached) $ac_c" 1>&6
20930 else
20931   
20932       
20933       ac_ext=C
20934 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20935 ac_cpp='$CXXCPP $CPPFLAGS'
20936 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20937 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20938 cross_compiling=$ac_cv_prog_cxx_cross
20939
20940       cat > conftest.$ac_ext <<EOF
20941 #line 20942 "configure"
20942 #include "confdefs.h"
20943 #include <math.h>
20944 int main() {
20945  _sincosl(0, 0, 0);
20946 ; return 0; }
20947 EOF
20948 if { (eval echo configure:20949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20949   rm -rf conftest*
20950   glibcpp_cv_func__sincosl_use=yes
20951 else
20952   echo "configure: failed program was:" >&5
20953   cat conftest.$ac_ext >&5
20954   rm -rf conftest*
20955   glibcpp_cv_func__sincosl_use=no
20956 fi
20957 rm -f conftest*
20958       ac_ext=c
20959 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20960 ac_cpp='$CPP $CPPFLAGS'
20961 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20962 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20963 cross_compiling=$ac_cv_prog_cc_cross
20964
20965     
20966 fi
20967
20968   fi
20969   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
20970
20971     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
20972       for ac_func in _sincosl
20973 do
20974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20975 echo "configure:20976: checking for $ac_func" >&5
20976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20977   echo $ac_n "(cached) $ac_c" 1>&6
20978 else
20979   cat > conftest.$ac_ext <<EOF
20980 #line 20981 "configure"
20981 #include "confdefs.h"
20982 /* System header to define __stub macros and hopefully few prototypes,
20983     which can conflict with char $ac_func(); below.  */
20984 #include <assert.h>
20985 /* Override any gcc2 internal prototype to avoid an error.  */
20986 /* We use char because int might match the return type of a gcc2
20987     builtin and then its argument prototype would still apply.  */
20988 char $ac_func();
20989
20990 int main() {
20991
20992 /* The GNU C library defines this for functions which it implements
20993     to always fail with ENOSYS.  Some functions are actually named
20994     something starting with __ and the normal name is an alias.  */
20995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20996 choke me
20997 #else
20998 $ac_func();
20999 #endif
21000
21001 ; return 0; }
21002 EOF
21003 if { (eval echo configure:21004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21004   rm -rf conftest*
21005   eval "ac_cv_func_$ac_func=yes"
21006 else
21007   echo "configure: failed program was:" >&5
21008   cat conftest.$ac_ext >&5
21009   rm -rf conftest*
21010   eval "ac_cv_func_$ac_func=no"
21011 fi
21012 rm -f conftest*
21013 fi
21014
21015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21016   echo "$ac_t""yes" 1>&6
21017     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21018   cat >> confdefs.h <<EOF
21019 #define $ac_tr_func 1
21020 EOF
21021  
21022 else
21023   echo "$ac_t""no" 1>&6
21024 fi
21025 done
21026
21027     fi
21028   fi
21029
21030   
21031   
21032   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
21033 echo "configure:21034: checking for finitel declaration" >&5
21034   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
21035     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
21036   echo $ac_n "(cached) $ac_c" 1>&6
21037 else
21038   
21039       
21040       ac_ext=C
21041 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21042 ac_cpp='$CXXCPP $CPPFLAGS'
21043 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21044 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21045 cross_compiling=$ac_cv_prog_cxx_cross
21046
21047       cat > conftest.$ac_ext <<EOF
21048 #line 21049 "configure"
21049 #include "confdefs.h"
21050 #include <math.h>
21051                       #ifdef HAVE_IEEEFP_H
21052                       #include <ieeefp.h>
21053                       #endif
21054                      
21055 int main() {
21056  finitel(0);
21057 ; return 0; }
21058 EOF
21059 if { (eval echo configure:21060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21060   rm -rf conftest*
21061   glibcpp_cv_func_finitel_use=yes
21062 else
21063   echo "configure: failed program was:" >&5
21064   cat conftest.$ac_ext >&5
21065   rm -rf conftest*
21066   glibcpp_cv_func_finitel_use=no
21067 fi
21068 rm -f conftest*
21069       ac_ext=c
21070 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21071 ac_cpp='$CPP $CPPFLAGS'
21072 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21073 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21074 cross_compiling=$ac_cv_prog_cc_cross
21075
21076     
21077 fi
21078
21079   fi
21080   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
21081
21082   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
21083     for ac_func in finitel
21084 do
21085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21086 echo "configure:21087: checking for $ac_func" >&5
21087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21088   echo $ac_n "(cached) $ac_c" 1>&6
21089 else
21090   cat > conftest.$ac_ext <<EOF
21091 #line 21092 "configure"
21092 #include "confdefs.h"
21093 /* System header to define __stub macros and hopefully few prototypes,
21094     which can conflict with char $ac_func(); below.  */
21095 #include <assert.h>
21096 /* Override any gcc2 internal prototype to avoid an error.  */
21097 /* We use char because int might match the return type of a gcc2
21098     builtin and then its argument prototype would still apply.  */
21099 char $ac_func();
21100
21101 int main() {
21102
21103 /* The GNU C library defines this for functions which it implements
21104     to always fail with ENOSYS.  Some functions are actually named
21105     something starting with __ and the normal name is an alias.  */
21106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21107 choke me
21108 #else
21109 $ac_func();
21110 #endif
21111
21112 ; return 0; }
21113 EOF
21114 if { (eval echo configure:21115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21115   rm -rf conftest*
21116   eval "ac_cv_func_$ac_func=yes"
21117 else
21118   echo "configure: failed program was:" >&5
21119   cat conftest.$ac_ext >&5
21120   rm -rf conftest*
21121   eval "ac_cv_func_$ac_func=no"
21122 fi
21123 rm -f conftest*
21124 fi
21125
21126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21127   echo "$ac_t""yes" 1>&6
21128     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21129   cat >> confdefs.h <<EOF
21130 #define $ac_tr_func 1
21131 EOF
21132  
21133 else
21134   echo "$ac_t""no" 1>&6
21135 fi
21136 done
21137
21138   else
21139     
21140   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
21141 echo "configure:21142: checking for _finitel declaration" >&5
21142   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
21143     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
21144   echo $ac_n "(cached) $ac_c" 1>&6
21145 else
21146   
21147       
21148       ac_ext=C
21149 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21150 ac_cpp='$CXXCPP $CPPFLAGS'
21151 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21152 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21153 cross_compiling=$ac_cv_prog_cxx_cross
21154
21155       cat > conftest.$ac_ext <<EOF
21156 #line 21157 "configure"
21157 #include "confdefs.h"
21158 #include <math.h>
21159                       #ifdef HAVE_IEEEFP_H
21160                       #include <ieeefp.h>
21161                       #endif
21162                      
21163 int main() {
21164  _finitel(0);
21165 ; return 0; }
21166 EOF
21167 if { (eval echo configure:21168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21168   rm -rf conftest*
21169   glibcpp_cv_func__finitel_use=yes
21170 else
21171   echo "configure: failed program was:" >&5
21172   cat conftest.$ac_ext >&5
21173   rm -rf conftest*
21174   glibcpp_cv_func__finitel_use=no
21175 fi
21176 rm -f conftest*
21177       ac_ext=c
21178 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21179 ac_cpp='$CPP $CPPFLAGS'
21180 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21181 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21182 cross_compiling=$ac_cv_prog_cc_cross
21183
21184     
21185 fi
21186
21187   fi
21188   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
21189
21190     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
21191       for ac_func in _finitel
21192 do
21193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21194 echo "configure:21195: checking for $ac_func" >&5
21195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21196   echo $ac_n "(cached) $ac_c" 1>&6
21197 else
21198   cat > conftest.$ac_ext <<EOF
21199 #line 21200 "configure"
21200 #include "confdefs.h"
21201 /* System header to define __stub macros and hopefully few prototypes,
21202     which can conflict with char $ac_func(); below.  */
21203 #include <assert.h>
21204 /* Override any gcc2 internal prototype to avoid an error.  */
21205 /* We use char because int might match the return type of a gcc2
21206     builtin and then its argument prototype would still apply.  */
21207 char $ac_func();
21208
21209 int main() {
21210
21211 /* The GNU C library defines this for functions which it implements
21212     to always fail with ENOSYS.  Some functions are actually named
21213     something starting with __ and the normal name is an alias.  */
21214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21215 choke me
21216 #else
21217 $ac_func();
21218 #endif
21219
21220 ; return 0; }
21221 EOF
21222 if { (eval echo configure:21223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21223   rm -rf conftest*
21224   eval "ac_cv_func_$ac_func=yes"
21225 else
21226   echo "configure: failed program was:" >&5
21227   cat conftest.$ac_ext >&5
21228   rm -rf conftest*
21229   eval "ac_cv_func_$ac_func=no"
21230 fi
21231 rm -f conftest*
21232 fi
21233
21234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21235   echo "$ac_t""yes" 1>&6
21236     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21237   cat >> confdefs.h <<EOF
21238 #define $ac_tr_func 1
21239 EOF
21240  
21241 else
21242   echo "$ac_t""no" 1>&6
21243 fi
21244 done
21245
21246     fi
21247   fi
21248
21249
21250         
21251     
21252   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
21253 echo "configure:21254: checking for _float trig functions" >&5
21254   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
21255   echo $ac_n "(cached) $ac_c" 1>&6
21256 else
21257   
21258     
21259     ac_ext=C
21260 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21261 ac_cpp='$CXXCPP $CPPFLAGS'
21262 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21263 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21264 cross_compiling=$ac_cv_prog_cxx_cross
21265
21266     cat > conftest.$ac_ext <<EOF
21267 #line 21268 "configure"
21268 #include "confdefs.h"
21269 #include <math.h>
21270 int main() {
21271  `for x in _acosf _asinf _atanf \
21272                                           _cosf _sinf _tanf \
21273                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
21274 ; return 0; }
21275 EOF
21276 if { (eval echo configure:21277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21277   rm -rf conftest*
21278   glibcpp_cv_func__float_trig_use=yes
21279 else
21280   echo "configure: failed program was:" >&5
21281   cat conftest.$ac_ext >&5
21282   rm -rf conftest*
21283   glibcpp_cv_func__float_trig_use=no
21284 fi
21285 rm -f conftest*
21286     ac_ext=c
21287 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21288 ac_cpp='$CPP $CPPFLAGS'
21289 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21290 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21291 cross_compiling=$ac_cv_prog_cc_cross
21292
21293 fi
21294
21295   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
21296   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
21297     for ac_func in _acosf _asinf _atanf \
21298                                           _cosf _sinf _tanf \
21299                                           _coshf _sinhf _tanhf
21300 do
21301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21302 echo "configure:21303: checking for $ac_func" >&5
21303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21304   echo $ac_n "(cached) $ac_c" 1>&6
21305 else
21306   cat > conftest.$ac_ext <<EOF
21307 #line 21308 "configure"
21308 #include "confdefs.h"
21309 /* System header to define __stub macros and hopefully few prototypes,
21310     which can conflict with char $ac_func(); below.  */
21311 #include <assert.h>
21312 /* Override any gcc2 internal prototype to avoid an error.  */
21313 /* We use char because int might match the return type of a gcc2
21314     builtin and then its argument prototype would still apply.  */
21315 char $ac_func();
21316
21317 int main() {
21318
21319 /* The GNU C library defines this for functions which it implements
21320     to always fail with ENOSYS.  Some functions are actually named
21321     something starting with __ and the normal name is an alias.  */
21322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21323 choke me
21324 #else
21325 $ac_func();
21326 #endif
21327
21328 ; return 0; }
21329 EOF
21330 if { (eval echo configure:21331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21331   rm -rf conftest*
21332   eval "ac_cv_func_$ac_func=yes"
21333 else
21334   echo "configure: failed program was:" >&5
21335   cat conftest.$ac_ext >&5
21336   rm -rf conftest*
21337   eval "ac_cv_func_$ac_func=no"
21338 fi
21339 rm -f conftest*
21340 fi
21341
21342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21343   echo "$ac_t""yes" 1>&6
21344     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21345   cat >> confdefs.h <<EOF
21346 #define $ac_tr_func 1
21347 EOF
21348  
21349 else
21350   echo "$ac_t""no" 1>&6
21351 fi
21352 done
21353
21354   fi
21355
21356   
21357   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
21358 echo "configure:21359: checking for _float round functions" >&5
21359   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
21360   echo $ac_n "(cached) $ac_c" 1>&6
21361 else
21362   
21363     
21364     ac_ext=C
21365 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21366 ac_cpp='$CXXCPP $CPPFLAGS'
21367 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21368 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21369 cross_compiling=$ac_cv_prog_cxx_cross
21370
21371     cat > conftest.$ac_ext <<EOF
21372 #line 21373 "configure"
21373 #include "confdefs.h"
21374 #include <math.h>
21375 int main() {
21376  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
21377 ; return 0; }
21378 EOF
21379 if { (eval echo configure:21380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21380   rm -rf conftest*
21381   glibcpp_cv_func__float_round_use=yes
21382 else
21383   echo "configure: failed program was:" >&5
21384   cat conftest.$ac_ext >&5
21385   rm -rf conftest*
21386   glibcpp_cv_func__float_round_use=no
21387 fi
21388 rm -f conftest*
21389     ac_ext=c
21390 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21391 ac_cpp='$CPP $CPPFLAGS'
21392 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21393 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21394 cross_compiling=$ac_cv_prog_cc_cross
21395
21396 fi
21397
21398   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
21399   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
21400     for ac_func in _ceilf _floorf
21401 do
21402 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21403 echo "configure:21404: checking for $ac_func" >&5
21404 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21405   echo $ac_n "(cached) $ac_c" 1>&6
21406 else
21407   cat > conftest.$ac_ext <<EOF
21408 #line 21409 "configure"
21409 #include "confdefs.h"
21410 /* System header to define __stub macros and hopefully few prototypes,
21411     which can conflict with char $ac_func(); below.  */
21412 #include <assert.h>
21413 /* Override any gcc2 internal prototype to avoid an error.  */
21414 /* We use char because int might match the return type of a gcc2
21415     builtin and then its argument prototype would still apply.  */
21416 char $ac_func();
21417
21418 int main() {
21419
21420 /* The GNU C library defines this for functions which it implements
21421     to always fail with ENOSYS.  Some functions are actually named
21422     something starting with __ and the normal name is an alias.  */
21423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21424 choke me
21425 #else
21426 $ac_func();
21427 #endif
21428
21429 ; return 0; }
21430 EOF
21431 if { (eval echo configure:21432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21432   rm -rf conftest*
21433   eval "ac_cv_func_$ac_func=yes"
21434 else
21435   echo "configure: failed program was:" >&5
21436   cat conftest.$ac_ext >&5
21437   rm -rf conftest*
21438   eval "ac_cv_func_$ac_func=no"
21439 fi
21440 rm -f conftest*
21441 fi
21442
21443 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21444   echo "$ac_t""yes" 1>&6
21445     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21446   cat >> confdefs.h <<EOF
21447 #define $ac_tr_func 1
21448 EOF
21449  
21450 else
21451   echo "$ac_t""no" 1>&6
21452 fi
21453 done
21454
21455   fi
21456
21457
21458     
21459   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
21460 echo "configure:21461: checking for _long double trig functions" >&5
21461   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
21462   echo $ac_n "(cached) $ac_c" 1>&6
21463 else
21464   
21465     
21466     ac_ext=C
21467 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21468 ac_cpp='$CXXCPP $CPPFLAGS'
21469 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21470 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21471 cross_compiling=$ac_cv_prog_cxx_cross
21472
21473     cat > conftest.$ac_ext <<EOF
21474 #line 21475 "configure"
21475 #include "confdefs.h"
21476 #include <math.h>
21477 int main() {
21478  `for x in _acosl _asinl _atanl \
21479                                           _cosl _sinl _tanl \
21480                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
21481 ; return 0; }
21482 EOF
21483 if { (eval echo configure:21484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21484   rm -rf conftest*
21485   glibcpp_cv_func__long_double_trig_use=yes
21486 else
21487   echo "configure: failed program was:" >&5
21488   cat conftest.$ac_ext >&5
21489   rm -rf conftest*
21490   glibcpp_cv_func__long_double_trig_use=no
21491 fi
21492 rm -f conftest*
21493     ac_ext=c
21494 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21495 ac_cpp='$CPP $CPPFLAGS'
21496 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21497 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21498 cross_compiling=$ac_cv_prog_cc_cross
21499
21500 fi
21501
21502   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
21503   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
21504     for ac_func in _acosl _asinl _atanl \
21505                                           _cosl _sinl _tanl \
21506                                           _coshl _sinhl _tanhl
21507 do
21508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21509 echo "configure:21510: checking for $ac_func" >&5
21510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21511   echo $ac_n "(cached) $ac_c" 1>&6
21512 else
21513   cat > conftest.$ac_ext <<EOF
21514 #line 21515 "configure"
21515 #include "confdefs.h"
21516 /* System header to define __stub macros and hopefully few prototypes,
21517     which can conflict with char $ac_func(); below.  */
21518 #include <assert.h>
21519 /* Override any gcc2 internal prototype to avoid an error.  */
21520 /* We use char because int might match the return type of a gcc2
21521     builtin and then its argument prototype would still apply.  */
21522 char $ac_func();
21523
21524 int main() {
21525
21526 /* The GNU C library defines this for functions which it implements
21527     to always fail with ENOSYS.  Some functions are actually named
21528     something starting with __ and the normal name is an alias.  */
21529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21530 choke me
21531 #else
21532 $ac_func();
21533 #endif
21534
21535 ; return 0; }
21536 EOF
21537 if { (eval echo configure:21538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21538   rm -rf conftest*
21539   eval "ac_cv_func_$ac_func=yes"
21540 else
21541   echo "configure: failed program was:" >&5
21542   cat conftest.$ac_ext >&5
21543   rm -rf conftest*
21544   eval "ac_cv_func_$ac_func=no"
21545 fi
21546 rm -f conftest*
21547 fi
21548
21549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21550   echo "$ac_t""yes" 1>&6
21551     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21552   cat >> confdefs.h <<EOF
21553 #define $ac_tr_func 1
21554 EOF
21555  
21556 else
21557   echo "$ac_t""no" 1>&6
21558 fi
21559 done
21560
21561   fi
21562
21563   
21564   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
21565 echo "configure:21566: checking for _long double round functions" >&5
21566   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
21567   echo $ac_n "(cached) $ac_c" 1>&6
21568 else
21569   
21570     
21571     ac_ext=C
21572 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21573 ac_cpp='$CXXCPP $CPPFLAGS'
21574 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21575 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21576 cross_compiling=$ac_cv_prog_cxx_cross
21577
21578     cat > conftest.$ac_ext <<EOF
21579 #line 21580 "configure"
21580 #include "confdefs.h"
21581 #include <math.h>
21582 int main() {
21583  `for x in _ceill _floorl; do echo "$x (0);"; done` 
21584 ; return 0; }
21585 EOF
21586 if { (eval echo configure:21587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21587   rm -rf conftest*
21588   glibcpp_cv_func__long_double_round_use=yes
21589 else
21590   echo "configure: failed program was:" >&5
21591   cat conftest.$ac_ext >&5
21592   rm -rf conftest*
21593   glibcpp_cv_func__long_double_round_use=no
21594 fi
21595 rm -f conftest*
21596     ac_ext=c
21597 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21598 ac_cpp='$CPP $CPPFLAGS'
21599 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21600 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21601 cross_compiling=$ac_cv_prog_cc_cross
21602
21603 fi
21604
21605   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
21606   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
21607     for ac_func in _ceill _floorl
21608 do
21609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21610 echo "configure:21611: checking for $ac_func" >&5
21611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21612   echo $ac_n "(cached) $ac_c" 1>&6
21613 else
21614   cat > conftest.$ac_ext <<EOF
21615 #line 21616 "configure"
21616 #include "confdefs.h"
21617 /* System header to define __stub macros and hopefully few prototypes,
21618     which can conflict with char $ac_func(); below.  */
21619 #include <assert.h>
21620 /* Override any gcc2 internal prototype to avoid an error.  */
21621 /* We use char because int might match the return type of a gcc2
21622     builtin and then its argument prototype would still apply.  */
21623 char $ac_func();
21624
21625 int main() {
21626
21627 /* The GNU C library defines this for functions which it implements
21628     to always fail with ENOSYS.  Some functions are actually named
21629     something starting with __ and the normal name is an alias.  */
21630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21631 choke me
21632 #else
21633 $ac_func();
21634 #endif
21635
21636 ; return 0; }
21637 EOF
21638 if { (eval echo configure:21639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21639   rm -rf conftest*
21640   eval "ac_cv_func_$ac_func=yes"
21641 else
21642   echo "configure: failed program was:" >&5
21643   cat conftest.$ac_ext >&5
21644   rm -rf conftest*
21645   eval "ac_cv_func_$ac_func=no"
21646 fi
21647 rm -f conftest*
21648 fi
21649
21650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21651   echo "$ac_t""yes" 1>&6
21652     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21653   cat >> confdefs.h <<EOF
21654 #define $ac_tr_func 1
21655 EOF
21656  
21657 else
21658   echo "$ac_t""no" 1>&6
21659 fi
21660 done
21661
21662   fi
21663
21664
21665   LIBS="$ac_save_LIBS"
21666   CXXFLAGS="$ac_save_CXXFLAGS"
21667
21668   
21669     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21670 echo "configure:21671: checking for main in -lm" >&5
21671 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21673   echo $ac_n "(cached) $ac_c" 1>&6
21674 else
21675   ac_save_LIBS="$LIBS"
21676 LIBS="-lm  $LIBS"
21677 cat > conftest.$ac_ext <<EOF
21678 #line 21679 "configure"
21679 #include "confdefs.h"
21680
21681 int main() {
21682 main()
21683 ; return 0; }
21684 EOF
21685 if { (eval echo configure:21686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21686   rm -rf conftest*
21687   eval "ac_cv_lib_$ac_lib_var=yes"
21688 else
21689   echo "configure: failed program was:" >&5
21690   cat conftest.$ac_ext >&5
21691   rm -rf conftest*
21692   eval "ac_cv_lib_$ac_lib_var=no"
21693 fi
21694 rm -f conftest*
21695 LIBS="$ac_save_LIBS"
21696
21697 fi
21698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21699   echo "$ac_t""yes" 1>&6
21700     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21701     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21702   cat >> confdefs.h <<EOF
21703 #define $ac_tr_lib 1
21704 EOF
21705
21706   LIBS="-lm $LIBS"
21707
21708 else
21709   echo "$ac_t""no" 1>&6
21710 fi
21711
21712   for ac_func in nan copysignf
21713 do
21714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21715 echo "configure:21716: checking for $ac_func" >&5
21716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21717   echo $ac_n "(cached) $ac_c" 1>&6
21718 else
21719   cat > conftest.$ac_ext <<EOF
21720 #line 21721 "configure"
21721 #include "confdefs.h"
21722 /* System header to define __stub macros and hopefully few prototypes,
21723     which can conflict with char $ac_func(); below.  */
21724 #include <assert.h>
21725 /* Override any gcc2 internal prototype to avoid an error.  */
21726 /* We use char because int might match the return type of a gcc2
21727     builtin and then its argument prototype would still apply.  */
21728 char $ac_func();
21729
21730 int main() {
21731
21732 /* The GNU C library defines this for functions which it implements
21733     to always fail with ENOSYS.  Some functions are actually named
21734     something starting with __ and the normal name is an alias.  */
21735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21736 choke me
21737 #else
21738 $ac_func();
21739 #endif
21740
21741 ; return 0; }
21742 EOF
21743 if { (eval echo configure:21744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21744   rm -rf conftest*
21745   eval "ac_cv_func_$ac_func=yes"
21746 else
21747   echo "configure: failed program was:" >&5
21748   cat conftest.$ac_ext >&5
21749   rm -rf conftest*
21750   eval "ac_cv_func_$ac_func=no"
21751 fi
21752 rm -f conftest*
21753 fi
21754
21755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21756   echo "$ac_t""yes" 1>&6
21757     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21758   cat >> confdefs.h <<EOF
21759 #define $ac_tr_func 1
21760 EOF
21761  
21762 else
21763   echo "$ac_t""no" 1>&6
21764 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21765 fi
21766 done
21767
21768
21769     for ac_func in __signbit
21770 do
21771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21772 echo "configure:21773: checking for $ac_func" >&5
21773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21774   echo $ac_n "(cached) $ac_c" 1>&6
21775 else
21776   cat > conftest.$ac_ext <<EOF
21777 #line 21778 "configure"
21778 #include "confdefs.h"
21779 /* System header to define __stub macros and hopefully few prototypes,
21780     which can conflict with char $ac_func(); below.  */
21781 #include <assert.h>
21782 /* Override any gcc2 internal prototype to avoid an error.  */
21783 /* We use char because int might match the return type of a gcc2
21784     builtin and then its argument prototype would still apply.  */
21785 char $ac_func();
21786
21787 int main() {
21788
21789 /* The GNU C library defines this for functions which it implements
21790     to always fail with ENOSYS.  Some functions are actually named
21791     something starting with __ and the normal name is an alias.  */
21792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21793 choke me
21794 #else
21795 $ac_func();
21796 #endif
21797
21798 ; return 0; }
21799 EOF
21800 if { (eval echo configure:21801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21801   rm -rf conftest*
21802   eval "ac_cv_func_$ac_func=yes"
21803 else
21804   echo "configure: failed program was:" >&5
21805   cat conftest.$ac_ext >&5
21806   rm -rf conftest*
21807   eval "ac_cv_func_$ac_func=no"
21808 fi
21809 rm -f conftest*
21810 fi
21811
21812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21813   echo "$ac_t""yes" 1>&6
21814     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21815   cat >> confdefs.h <<EOF
21816 #define $ac_tr_func 1
21817 EOF
21818  
21819 else
21820   echo "$ac_t""no" 1>&6
21821 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21822 fi
21823 done
21824
21825   for ac_func in __signbitf
21826 do
21827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21828 echo "configure:21829: checking for $ac_func" >&5
21829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21830   echo $ac_n "(cached) $ac_c" 1>&6
21831 else
21832   cat > conftest.$ac_ext <<EOF
21833 #line 21834 "configure"
21834 #include "confdefs.h"
21835 /* System header to define __stub macros and hopefully few prototypes,
21836     which can conflict with char $ac_func(); below.  */
21837 #include <assert.h>
21838 /* Override any gcc2 internal prototype to avoid an error.  */
21839 /* We use char because int might match the return type of a gcc2
21840     builtin and then its argument prototype would still apply.  */
21841 char $ac_func();
21842
21843 int main() {
21844
21845 /* The GNU C library defines this for functions which it implements
21846     to always fail with ENOSYS.  Some functions are actually named
21847     something starting with __ and the normal name is an alias.  */
21848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21849 choke me
21850 #else
21851 $ac_func();
21852 #endif
21853
21854 ; return 0; }
21855 EOF
21856 if { (eval echo configure:21857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21857   rm -rf conftest*
21858   eval "ac_cv_func_$ac_func=yes"
21859 else
21860   echo "configure: failed program was:" >&5
21861   cat conftest.$ac_ext >&5
21862   rm -rf conftest*
21863   eval "ac_cv_func_$ac_func=no"
21864 fi
21865 rm -f conftest*
21866 fi
21867
21868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21869   echo "$ac_t""yes" 1>&6
21870     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21871   cat >> confdefs.h <<EOF
21872 #define $ac_tr_func 1
21873 EOF
21874  
21875 else
21876   echo "$ac_t""no" 1>&6
21877 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21878 fi
21879 done
21880
21881
21882           if test x$ac_cv_func_copysignl = x"yes"; then
21883     for ac_func in __signbitl
21884 do
21885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21886 echo "configure:21887: checking for $ac_func" >&5
21887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21888   echo $ac_n "(cached) $ac_c" 1>&6
21889 else
21890   cat > conftest.$ac_ext <<EOF
21891 #line 21892 "configure"
21892 #include "confdefs.h"
21893 /* System header to define __stub macros and hopefully few prototypes,
21894     which can conflict with char $ac_func(); below.  */
21895 #include <assert.h>
21896 /* Override any gcc2 internal prototype to avoid an error.  */
21897 /* We use char because int might match the return type of a gcc2
21898     builtin and then its argument prototype would still apply.  */
21899 char $ac_func();
21900
21901 int main() {
21902
21903 /* The GNU C library defines this for functions which it implements
21904     to always fail with ENOSYS.  Some functions are actually named
21905     something starting with __ and the normal name is an alias.  */
21906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21907 choke me
21908 #else
21909 $ac_func();
21910 #endif
21911
21912 ; return 0; }
21913 EOF
21914 if { (eval echo configure:21915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21915   rm -rf conftest*
21916   eval "ac_cv_func_$ac_func=yes"
21917 else
21918   echo "configure: failed program was:" >&5
21919   cat conftest.$ac_ext >&5
21920   rm -rf conftest*
21921   eval "ac_cv_func_$ac_func=no"
21922 fi
21923 rm -f conftest*
21924 fi
21925
21926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21927   echo "$ac_t""yes" 1>&6
21928     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21929   cat >> confdefs.h <<EOF
21930 #define $ac_tr_func 1
21931 EOF
21932  
21933 else
21934   echo "$ac_t""no" 1>&6
21935 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
21936 fi
21937 done
21938
21939   fi
21940
21941   if test -n "$LIBMATHOBJS"; then
21942     need_libmath=yes
21943   fi
21944   
21945   
21946
21947 if test "$need_libmath" = yes; then
21948   GLIBCPP_BUILD_LIBMATH_TRUE=
21949   GLIBCPP_BUILD_LIBMATH_FALSE='#'
21950 else
21951   GLIBCPP_BUILD_LIBMATH_TRUE='#'
21952   GLIBCPP_BUILD_LIBMATH_FALSE=
21953 fi
21954
21955   
21956     enable_wchar_t=no
21957
21958       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
21959 echo "configure:21960: checking for mbstate_t" >&5
21960   cat > conftest.$ac_ext <<EOF
21961 #line 21962 "configure"
21962 #include "confdefs.h"
21963 #include <wchar.h>
21964 int main() {
21965 mbstate_t teststate;
21966 ; return 0; }
21967 EOF
21968 if { (eval echo configure:21969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21969   rm -rf conftest*
21970   have_mbstate_t=yes
21971 else
21972   echo "configure: failed program was:" >&5
21973   cat conftest.$ac_ext >&5
21974   rm -rf conftest*
21975   have_mbstate_t=no
21976 fi
21977 rm -f conftest*
21978   echo "$ac_t""$have_mbstate_t" 1>&6
21979   if test x"$have_mbstate_t" = xyes; then
21980     cat >> confdefs.h <<\EOF
21981 #define HAVE_MBSTATE_T 1
21982 EOF
21983
21984   fi
21985
21986     for ac_hdr in wchar.h
21987 do
21988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21990 echo "configure:21991: checking for $ac_hdr" >&5
21991 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21992   echo $ac_n "(cached) $ac_c" 1>&6
21993 else
21994   cat > conftest.$ac_ext <<EOF
21995 #line 21996 "configure"
21996 #include "confdefs.h"
21997 #include <$ac_hdr>
21998 EOF
21999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22000 { (eval echo configure:22001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22002 if test -z "$ac_err"; then
22003   rm -rf conftest*
22004   eval "ac_cv_header_$ac_safe=yes"
22005 else
22006   echo "$ac_err" >&5
22007   echo "configure: failed program was:" >&5
22008   cat conftest.$ac_ext >&5
22009   rm -rf conftest*
22010   eval "ac_cv_header_$ac_safe=no"
22011 fi
22012 rm -f conftest*
22013 fi
22014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22015   echo "$ac_t""yes" 1>&6
22016     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22017   cat >> confdefs.h <<EOF
22018 #define $ac_tr_hdr 1
22019 EOF
22020  ac_has_wchar_h=yes
22021 else
22022   echo "$ac_t""no" 1>&6
22023 ac_has_wchar_h=no
22024 fi
22025 done
22026
22027   for ac_hdr in wctype.h
22028 do
22029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22030 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22031 echo "configure:22032: checking for $ac_hdr" >&5
22032 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22033   echo $ac_n "(cached) $ac_c" 1>&6
22034 else
22035   cat > conftest.$ac_ext <<EOF
22036 #line 22037 "configure"
22037 #include "confdefs.h"
22038 #include <$ac_hdr>
22039 EOF
22040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22041 { (eval echo configure:22042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22043 if test -z "$ac_err"; then
22044   rm -rf conftest*
22045   eval "ac_cv_header_$ac_safe=yes"
22046 else
22047   echo "$ac_err" >&5
22048   echo "configure: failed program was:" >&5
22049   cat conftest.$ac_ext >&5
22050   rm -rf conftest*
22051   eval "ac_cv_header_$ac_safe=no"
22052 fi
22053 rm -f conftest*
22054 fi
22055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22056   echo "$ac_t""yes" 1>&6
22057     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22058   cat >> confdefs.h <<EOF
22059 #define $ac_tr_hdr 1
22060 EOF
22061  ac_has_wctype_h=yes
22062 else
22063   echo "$ac_t""no" 1>&6
22064 ac_has_wctype_h=no
22065 fi
22066 done
22067
22068
22069     if test x"$ac_has_wchar_h" = xyes &&
22070      test x"$ac_has_wctype_h" = xyes &&
22071      test x"$enable_c_mbchar" != xno; then
22072
22073             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22074 echo "configure:22075: checking for WCHAR_MIN and WCHAR_MAX" >&5
22075     cat > conftest.$ac_ext <<EOF
22076 #line 22077 "configure"
22077 #include "confdefs.h"
22078 #include <wchar.h>
22079 int main() {
22080 int i = WCHAR_MIN; int j = WCHAR_MAX;
22081 ; return 0; }
22082 EOF
22083 if { (eval echo configure:22084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22084   rm -rf conftest*
22085   has_wchar_minmax=yes
22086 else
22087   echo "configure: failed program was:" >&5
22088   cat conftest.$ac_ext >&5
22089   rm -rf conftest*
22090   has_wchar_minmax=no
22091 fi
22092 rm -f conftest*
22093     echo "$ac_t""$has_wchar_minmax" 1>&6
22094
22095             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22096 echo "configure:22097: checking for WEOF" >&5
22097     cat > conftest.$ac_ext <<EOF
22098 #line 22099 "configure"
22099 #include "confdefs.h"
22100
22101       #include <wchar.h>
22102       #include <stddef.h>
22103 int main() {
22104 wint_t i = WEOF;
22105 ; return 0; }
22106 EOF
22107 if { (eval echo configure:22108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22108   rm -rf conftest*
22109   has_weof=yes
22110 else
22111   echo "configure: failed program was:" >&5
22112   cat conftest.$ac_ext >&5
22113   rm -rf conftest*
22114   has_weof=no
22115 fi
22116 rm -f conftest*
22117     echo "$ac_t""$has_weof" 1>&6
22118
22119         ac_wfuncs=yes
22120     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22121 do
22122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22123 echo "configure:22124: checking for $ac_func" >&5
22124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22125   echo $ac_n "(cached) $ac_c" 1>&6
22126 else
22127   cat > conftest.$ac_ext <<EOF
22128 #line 22129 "configure"
22129 #include "confdefs.h"
22130 /* System header to define __stub macros and hopefully few prototypes,
22131     which can conflict with char $ac_func(); below.  */
22132 #include <assert.h>
22133 /* Override any gcc2 internal prototype to avoid an error.  */
22134 /* We use char because int might match the return type of a gcc2
22135     builtin and then its argument prototype would still apply.  */
22136 char $ac_func();
22137
22138 int main() {
22139
22140 /* The GNU C library defines this for functions which it implements
22141     to always fail with ENOSYS.  Some functions are actually named
22142     something starting with __ and the normal name is an alias.  */
22143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22144 choke me
22145 #else
22146 $ac_func();
22147 #endif
22148
22149 ; return 0; }
22150 EOF
22151 if { (eval echo configure:22152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22152   rm -rf conftest*
22153   eval "ac_cv_func_$ac_func=yes"
22154 else
22155   echo "configure: failed program was:" >&5
22156   cat conftest.$ac_ext >&5
22157   rm -rf conftest*
22158   eval "ac_cv_func_$ac_func=no"
22159 fi
22160 rm -f conftest*
22161 fi
22162
22163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22164   echo "$ac_t""yes" 1>&6
22165     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22166   cat >> confdefs.h <<EOF
22167 #define $ac_tr_func 1
22168 EOF
22169  
22170 else
22171   echo "$ac_t""no" 1>&6
22172 \
22173     ac_wfuncs=no
22174 fi
22175 done
22176
22177
22178         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22179     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22180     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22181     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22182     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22183     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22184 do
22185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22186 echo "configure:22187: checking for $ac_func" >&5
22187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22188   echo $ac_n "(cached) $ac_c" 1>&6
22189 else
22190   cat > conftest.$ac_ext <<EOF
22191 #line 22192 "configure"
22192 #include "confdefs.h"
22193 /* System header to define __stub macros and hopefully few prototypes,
22194     which can conflict with char $ac_func(); below.  */
22195 #include <assert.h>
22196 /* Override any gcc2 internal prototype to avoid an error.  */
22197 /* We use char because int might match the return type of a gcc2
22198     builtin and then its argument prototype would still apply.  */
22199 char $ac_func();
22200
22201 int main() {
22202
22203 /* The GNU C library defines this for functions which it implements
22204     to always fail with ENOSYS.  Some functions are actually named
22205     something starting with __ and the normal name is an alias.  */
22206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22207 choke me
22208 #else
22209 $ac_func();
22210 #endif
22211
22212 ; return 0; }
22213 EOF
22214 if { (eval echo configure:22215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22215   rm -rf conftest*
22216   eval "ac_cv_func_$ac_func=yes"
22217 else
22218   echo "configure: failed program was:" >&5
22219   cat conftest.$ac_ext >&5
22220   rm -rf conftest*
22221   eval "ac_cv_func_$ac_func=no"
22222 fi
22223 rm -f conftest*
22224 fi
22225
22226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22227   echo "$ac_t""yes" 1>&6
22228     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22229   cat >> confdefs.h <<EOF
22230 #define $ac_tr_func 1
22231 EOF
22232  
22233 else
22234   echo "$ac_t""no" 1>&6
22235 \
22236     ac_wfuncs=no
22237 fi
22238 done
22239
22240
22241     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22242 echo "configure:22243: checking for ISO C99 wchar_t support" >&5
22243     if test x"$has_weof" = xyes &&
22244        test x"$has_wchar_minmax" = xyes &&
22245        test x"$ac_wfuncs" = xyes; then
22246       ac_isoC99_wchar_t=yes
22247     else
22248       ac_isoC99_wchar_t=no
22249     fi
22250     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22251
22252             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22253 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22254 echo "configure:22255: checking for iconv.h" >&5
22255 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22256   echo $ac_n "(cached) $ac_c" 1>&6
22257 else
22258   cat > conftest.$ac_ext <<EOF
22259 #line 22260 "configure"
22260 #include "confdefs.h"
22261 #include <iconv.h>
22262 EOF
22263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22264 { (eval echo configure:22265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22266 if test -z "$ac_err"; then
22267   rm -rf conftest*
22268   eval "ac_cv_header_$ac_safe=yes"
22269 else
22270   echo "$ac_err" >&5
22271   echo "configure: failed program was:" >&5
22272   cat conftest.$ac_ext >&5
22273   rm -rf conftest*
22274   eval "ac_cv_header_$ac_safe=no"
22275 fi
22276 rm -f conftest*
22277 fi
22278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22279   echo "$ac_t""yes" 1>&6
22280   ac_has_iconv_h=yes
22281 else
22282   echo "$ac_t""no" 1>&6
22283 ac_has_iconv_h=no
22284 fi
22285
22286     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22287 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22288 echo "configure:22289: checking for langinfo.h" >&5
22289 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22290   echo $ac_n "(cached) $ac_c" 1>&6
22291 else
22292   cat > conftest.$ac_ext <<EOF
22293 #line 22294 "configure"
22294 #include "confdefs.h"
22295 #include <langinfo.h>
22296 EOF
22297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22298 { (eval echo configure:22299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22300 if test -z "$ac_err"; then
22301   rm -rf conftest*
22302   eval "ac_cv_header_$ac_safe=yes"
22303 else
22304   echo "$ac_err" >&5
22305   echo "configure: failed program was:" >&5
22306   cat conftest.$ac_ext >&5
22307   rm -rf conftest*
22308   eval "ac_cv_header_$ac_safe=no"
22309 fi
22310 rm -f conftest*
22311 fi
22312 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22313   echo "$ac_t""yes" 1>&6
22314   ac_has_langinfo_h=yes
22315 else
22316   echo "$ac_t""no" 1>&6
22317 ac_has_langinfo_h=no
22318 fi
22319
22320
22321         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22322 echo "configure:22323: checking for iconv in -liconv" >&5
22323 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22325   echo $ac_n "(cached) $ac_c" 1>&6
22326 else
22327   ac_save_LIBS="$LIBS"
22328 LIBS="-liconv  $LIBS"
22329 cat > conftest.$ac_ext <<EOF
22330 #line 22331 "configure"
22331 #include "confdefs.h"
22332 /* Override any gcc2 internal prototype to avoid an error.  */
22333 /* We use char because int might match the return type of a gcc2
22334     builtin and then its argument prototype would still apply.  */
22335 char iconv();
22336
22337 int main() {
22338 iconv()
22339 ; return 0; }
22340 EOF
22341 if { (eval echo configure:22342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22342   rm -rf conftest*
22343   eval "ac_cv_lib_$ac_lib_var=yes"
22344 else
22345   echo "configure: failed program was:" >&5
22346   cat conftest.$ac_ext >&5
22347   rm -rf conftest*
22348   eval "ac_cv_lib_$ac_lib_var=no"
22349 fi
22350 rm -f conftest*
22351 LIBS="$ac_save_LIBS"
22352
22353 fi
22354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22355   echo "$ac_t""yes" 1>&6
22356   libiconv="-liconv"
22357 else
22358   echo "$ac_t""no" 1>&6
22359 fi
22360
22361     ac_save_LIBS="$LIBS"
22362     LIBS="$LIBS $libiconv"
22363
22364     for ac_func in iconv_open iconv_close iconv nl_langinfo
22365 do
22366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22367 echo "configure:22368: checking for $ac_func" >&5
22368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22369   echo $ac_n "(cached) $ac_c" 1>&6
22370 else
22371   cat > conftest.$ac_ext <<EOF
22372 #line 22373 "configure"
22373 #include "confdefs.h"
22374 /* System header to define __stub macros and hopefully few prototypes,
22375     which can conflict with char $ac_func(); below.  */
22376 #include <assert.h>
22377 /* Override any gcc2 internal prototype to avoid an error.  */
22378 /* We use char because int might match the return type of a gcc2
22379     builtin and then its argument prototype would still apply.  */
22380 char $ac_func();
22381
22382 int main() {
22383
22384 /* The GNU C library defines this for functions which it implements
22385     to always fail with ENOSYS.  Some functions are actually named
22386     something starting with __ and the normal name is an alias.  */
22387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22388 choke me
22389 #else
22390 $ac_func();
22391 #endif
22392
22393 ; return 0; }
22394 EOF
22395 if { (eval echo configure:22396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22396   rm -rf conftest*
22397   eval "ac_cv_func_$ac_func=yes"
22398 else
22399   echo "configure: failed program was:" >&5
22400   cat conftest.$ac_ext >&5
22401   rm -rf conftest*
22402   eval "ac_cv_func_$ac_func=no"
22403 fi
22404 rm -f conftest*
22405 fi
22406
22407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22408   echo "$ac_t""yes" 1>&6
22409     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22410   cat >> confdefs.h <<EOF
22411 #define $ac_tr_func 1
22412 EOF
22413  \
22414     ac_XPG2funcs=yes
22415 else
22416   echo "$ac_t""no" 1>&6
22417 ac_XPG2funcs=no
22418 fi
22419 done
22420
22421
22422     LIBS="$ac_save_LIBS"
22423
22424     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22425 echo "configure:22426: checking for XPG2 wchar_t support" >&5
22426     if test x"$ac_has_iconv_h" = xyes &&
22427        test x"$ac_has_langinfo_h" = xyes &&
22428        test x"$ac_XPG2funcs" = xyes; then
22429       ac_XPG2_wchar_t=yes
22430     else
22431       ac_XPG2_wchar_t=no
22432     fi
22433     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22434
22435             if test x"$ac_isoC99_wchar_t" = xyes && 
22436         test x"$ac_XPG2_wchar_t" = xyes; then
22437       cat >> confdefs.h <<\EOF
22438 #define _GLIBCPP_USE_WCHAR_T 1
22439 EOF
22440
22441       enable_wchar_t=yes
22442     fi
22443   fi
22444   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22445 echo "configure:22446: checking for enabled wchar_t specializations" >&5
22446   echo "$ac_t""$enable_wchar_t" 1>&6    
22447   
22448
22449 if test "$enable_wchar_t" = yes; then
22450   GLIBCPP_TEST_WCHAR_T_TRUE=
22451   GLIBCPP_TEST_WCHAR_T_FALSE='#'
22452 else
22453   GLIBCPP_TEST_WCHAR_T_TRUE='#'
22454   GLIBCPP_TEST_WCHAR_T_FALSE=
22455 fi      
22456
22457   
22458   ac_test_CXXFLAGS="${CXXFLAGS+set}"
22459   ac_save_CXXFLAGS="$CXXFLAGS"
22460   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22461
22462   
22463   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22464 echo "configure:22465: checking for strtold declaration" >&5
22465   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22466     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22467   echo $ac_n "(cached) $ac_c" 1>&6
22468 else
22469   
22470       
22471       ac_ext=C
22472 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22473 ac_cpp='$CXXCPP $CPPFLAGS'
22474 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22475 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22476 cross_compiling=$ac_cv_prog_cxx_cross
22477
22478       cat > conftest.$ac_ext <<EOF
22479 #line 22480 "configure"
22480 #include "confdefs.h"
22481 #include <stdlib.h>
22482 int main() {
22483  strtold(0, 0);
22484 ; return 0; }
22485 EOF
22486 if { (eval echo configure:22487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22487   rm -rf conftest*
22488   glibcpp_cv_func_strtold_use=yes
22489 else
22490   echo "configure: failed program was:" >&5
22491   cat conftest.$ac_ext >&5
22492   rm -rf conftest*
22493   glibcpp_cv_func_strtold_use=no
22494 fi
22495 rm -f conftest*
22496       ac_ext=c
22497 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22498 ac_cpp='$CPP $CPPFLAGS'
22499 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22500 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22501 cross_compiling=$ac_cv_prog_cc_cross
22502
22503     
22504 fi
22505
22506   fi
22507   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22508   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22509     for ac_func in strtold
22510 do
22511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22512 echo "configure:22513: checking for $ac_func" >&5
22513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22514   echo $ac_n "(cached) $ac_c" 1>&6
22515 else
22516   cat > conftest.$ac_ext <<EOF
22517 #line 22518 "configure"
22518 #include "confdefs.h"
22519 /* System header to define __stub macros and hopefully few prototypes,
22520     which can conflict with char $ac_func(); below.  */
22521 #include <assert.h>
22522 /* Override any gcc2 internal prototype to avoid an error.  */
22523 /* We use char because int might match the return type of a gcc2
22524     builtin and then its argument prototype would still apply.  */
22525 char $ac_func();
22526
22527 int main() {
22528
22529 /* The GNU C library defines this for functions which it implements
22530     to always fail with ENOSYS.  Some functions are actually named
22531     something starting with __ and the normal name is an alias.  */
22532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22533 choke me
22534 #else
22535 $ac_func();
22536 #endif
22537
22538 ; return 0; }
22539 EOF
22540 if { (eval echo configure:22541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22541   rm -rf conftest*
22542   eval "ac_cv_func_$ac_func=yes"
22543 else
22544   echo "configure: failed program was:" >&5
22545   cat conftest.$ac_ext >&5
22546   rm -rf conftest*
22547   eval "ac_cv_func_$ac_func=no"
22548 fi
22549 rm -f conftest*
22550 fi
22551
22552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22553   echo "$ac_t""yes" 1>&6
22554     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22555   cat >> confdefs.h <<EOF
22556 #define $ac_tr_func 1
22557 EOF
22558  
22559 else
22560   echo "$ac_t""no" 1>&6
22561 fi
22562 done
22563
22564   fi
22565
22566   
22567   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22568 echo "configure:22569: checking for strtof declaration" >&5
22569   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22570     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22571   echo $ac_n "(cached) $ac_c" 1>&6
22572 else
22573   
22574       
22575       ac_ext=C
22576 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22577 ac_cpp='$CXXCPP $CPPFLAGS'
22578 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22579 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22580 cross_compiling=$ac_cv_prog_cxx_cross
22581
22582       cat > conftest.$ac_ext <<EOF
22583 #line 22584 "configure"
22584 #include "confdefs.h"
22585 #include <stdlib.h>
22586 int main() {
22587  strtof(0, 0);
22588 ; return 0; }
22589 EOF
22590 if { (eval echo configure:22591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22591   rm -rf conftest*
22592   glibcpp_cv_func_strtof_use=yes
22593 else
22594   echo "configure: failed program was:" >&5
22595   cat conftest.$ac_ext >&5
22596   rm -rf conftest*
22597   glibcpp_cv_func_strtof_use=no
22598 fi
22599 rm -f conftest*
22600       ac_ext=c
22601 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22602 ac_cpp='$CPP $CPPFLAGS'
22603 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22604 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22605 cross_compiling=$ac_cv_prog_cc_cross
22606
22607     
22608 fi
22609
22610   fi
22611   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22612   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22613     for ac_func in strtof
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   fi
22669
22670   for ac_func in drand48
22671 do
22672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22673 echo "configure:22674: checking for $ac_func" >&5
22674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22675   echo $ac_n "(cached) $ac_c" 1>&6
22676 else
22677   cat > conftest.$ac_ext <<EOF
22678 #line 22679 "configure"
22679 #include "confdefs.h"
22680 /* System header to define __stub macros and hopefully few prototypes,
22681     which can conflict with char $ac_func(); below.  */
22682 #include <assert.h>
22683 /* Override any gcc2 internal prototype to avoid an error.  */
22684 /* We use char because int might match the return type of a gcc2
22685     builtin and then its argument prototype would still apply.  */
22686 char $ac_func();
22687
22688 int main() {
22689
22690 /* The GNU C library defines this for functions which it implements
22691     to always fail with ENOSYS.  Some functions are actually named
22692     something starting with __ and the normal name is an alias.  */
22693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22694 choke me
22695 #else
22696 $ac_func();
22697 #endif
22698
22699 ; return 0; }
22700 EOF
22701 if { (eval echo configure:22702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22702   rm -rf conftest*
22703   eval "ac_cv_func_$ac_func=yes"
22704 else
22705   echo "configure: failed program was:" >&5
22706   cat conftest.$ac_ext >&5
22707   rm -rf conftest*
22708   eval "ac_cv_func_$ac_func=no"
22709 fi
22710 rm -f conftest*
22711 fi
22712
22713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22714   echo "$ac_t""yes" 1>&6
22715     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22716   cat >> confdefs.h <<EOF
22717 #define $ac_tr_func 1
22718 EOF
22719  
22720 else
22721   echo "$ac_t""no" 1>&6
22722 fi
22723 done
22724
22725
22726   CXXFLAGS="$ac_save_CXXFLAGS"
22727
22728   
22729   ac_test_CXXFLAGS="${CXXFLAGS+set}"
22730   ac_save_CXXFLAGS="$CXXFLAGS"
22731   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22732
22733   
22734   echo $ac_n "checking for isatty declaration""... $ac_c" 1>&6
22735 echo "configure:22736: checking for isatty declaration" >&5
22736   if test x${glibcpp_cv_func_isatty_use+set} != xset; then
22737     if eval "test \"`echo '$''{'glibcpp_cv_func_isatty_use'+set}'`\" = set"; then
22738   echo $ac_n "(cached) $ac_c" 1>&6
22739 else
22740   
22741       
22742       ac_ext=C
22743 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22744 ac_cpp='$CXXCPP $CPPFLAGS'
22745 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22746 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22747 cross_compiling=$ac_cv_prog_cxx_cross
22748
22749       cat > conftest.$ac_ext <<EOF
22750 #line 22751 "configure"
22751 #include "confdefs.h"
22752 #include <unistd.h>
22753 int main() {
22754  isatty(0);
22755 ; return 0; }
22756 EOF
22757 if { (eval echo configure:22758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22758   rm -rf conftest*
22759   glibcpp_cv_func_isatty_use=yes
22760 else
22761   echo "configure: failed program was:" >&5
22762   cat conftest.$ac_ext >&5
22763   rm -rf conftest*
22764   glibcpp_cv_func_isatty_use=no
22765 fi
22766 rm -f conftest*
22767       ac_ext=c
22768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22769 ac_cpp='$CPP $CPPFLAGS'
22770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22772 cross_compiling=$ac_cv_prog_cc_cross
22773
22774     
22775 fi
22776
22777   fi
22778   echo "$ac_t""$glibcpp_cv_func_isatty_use" 1>&6
22779   if test x$glibcpp_cv_func_isatty_use = x"yes"; then
22780     for ac_func in isatty
22781 do
22782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22783 echo "configure:22784: checking for $ac_func" >&5
22784 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22785   echo $ac_n "(cached) $ac_c" 1>&6
22786 else
22787   cat > conftest.$ac_ext <<EOF
22788 #line 22789 "configure"
22789 #include "confdefs.h"
22790 /* System header to define __stub macros and hopefully few prototypes,
22791     which can conflict with char $ac_func(); below.  */
22792 #include <assert.h>
22793 /* Override any gcc2 internal prototype to avoid an error.  */
22794 /* We use char because int might match the return type of a gcc2
22795     builtin and then its argument prototype would still apply.  */
22796 char $ac_func();
22797
22798 int main() {
22799
22800 /* The GNU C library defines this for functions which it implements
22801     to always fail with ENOSYS.  Some functions are actually named
22802     something starting with __ and the normal name is an alias.  */
22803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22804 choke me
22805 #else
22806 $ac_func();
22807 #endif
22808
22809 ; return 0; }
22810 EOF
22811 if { (eval echo configure:22812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22812   rm -rf conftest*
22813   eval "ac_cv_func_$ac_func=yes"
22814 else
22815   echo "configure: failed program was:" >&5
22816   cat conftest.$ac_ext >&5
22817   rm -rf conftest*
22818   eval "ac_cv_func_$ac_func=no"
22819 fi
22820 rm -f conftest*
22821 fi
22822
22823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22824   echo "$ac_t""yes" 1>&6
22825     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22826   cat >> confdefs.h <<EOF
22827 #define $ac_tr_func 1
22828 EOF
22829  
22830 else
22831   echo "$ac_t""no" 1>&6
22832 fi
22833 done
22834
22835   fi
22836
22837
22838   CXXFLAGS="$ac_save_CXXFLAGS"
22839
22840   
22841   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22842 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22843 echo "configure:22844: checking for locale.h" >&5
22844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22845   echo $ac_n "(cached) $ac_c" 1>&6
22846 else
22847   cat > conftest.$ac_ext <<EOF
22848 #line 22849 "configure"
22849 #include "confdefs.h"
22850 #include <locale.h>
22851 EOF
22852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22853 { (eval echo configure:22854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22855 if test -z "$ac_err"; then
22856   rm -rf conftest*
22857   eval "ac_cv_header_$ac_safe=yes"
22858 else
22859   echo "$ac_err" >&5
22860   echo "configure: failed program was:" >&5
22861   cat conftest.$ac_ext >&5
22862   rm -rf conftest*
22863   eval "ac_cv_header_$ac_safe=no"
22864 fi
22865 rm -f conftest*
22866 fi
22867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22868   echo "$ac_t""yes" 1>&6
22869   
22870     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
22871 echo "configure:22872: checking for LC_MESSAGES" >&5
22872 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
22873   echo $ac_n "(cached) $ac_c" 1>&6
22874 else
22875   cat > conftest.$ac_ext <<EOF
22876 #line 22877 "configure"
22877 #include "confdefs.h"
22878 #include <locale.h>
22879 int main() {
22880 return LC_MESSAGES
22881 ; return 0; }
22882 EOF
22883 if { (eval echo configure:22884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22884   rm -rf conftest*
22885   ac_cv_val_LC_MESSAGES=yes
22886 else
22887   echo "configure: failed program was:" >&5
22888   cat conftest.$ac_ext >&5
22889   rm -rf conftest*
22890   ac_cv_val_LC_MESSAGES=no
22891 fi
22892 rm -f conftest*
22893 fi
22894
22895 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
22896     if test $ac_cv_val_LC_MESSAGES = yes; then
22897       cat >> confdefs.h <<\EOF
22898 #define HAVE_LC_MESSAGES 1
22899 EOF
22900
22901     fi
22902   
22903 else
22904   echo "$ac_t""no" 1>&6
22905 fi
22906
22907
22908
22909   cat > conftest.$ac_ext <<EOF
22910 #line 22911 "configure"
22911 #include "confdefs.h"
22912
22913   #include <setjmp.h>
22914   
22915 int main() {
22916 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
22917 ; return 0; }
22918 EOF
22919 if { (eval echo configure:22920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22920   rm -rf conftest*
22921   cat >> confdefs.h <<\EOF
22922 #define HAVE_SIGSETJMP 1
22923 EOF
22924
22925   
22926 else
22927   echo "configure: failed program was:" >&5
22928   cat conftest.$ac_ext >&5
22929 fi
22930 rm -f conftest*
22931
22932   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
22933 do
22934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22936 echo "configure:22937: checking for $ac_hdr" >&5
22937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22938   echo $ac_n "(cached) $ac_c" 1>&6
22939 else
22940   cat > conftest.$ac_ext <<EOF
22941 #line 22942 "configure"
22942 #include "confdefs.h"
22943 #include <$ac_hdr>
22944 EOF
22945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22946 { (eval echo configure:22947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22948 if test -z "$ac_err"; then
22949   rm -rf conftest*
22950   eval "ac_cv_header_$ac_safe=yes"
22951 else
22952   echo "$ac_err" >&5
22953   echo "configure: failed program was:" >&5
22954   cat conftest.$ac_ext >&5
22955   rm -rf conftest*
22956   eval "ac_cv_header_$ac_safe=no"
22957 fi
22958 rm -f conftest*
22959 fi
22960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22961   echo "$ac_t""yes" 1>&6
22962     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22963   cat >> confdefs.h <<EOF
22964 #define $ac_tr_hdr 1
22965 EOF
22966  
22967 else
22968   echo "$ac_t""no" 1>&6
22969 fi
22970 done
22971
22972 for ac_func in getpagesize
22973 do
22974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22975 echo "configure:22976: checking for $ac_func" >&5
22976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22977   echo $ac_n "(cached) $ac_c" 1>&6
22978 else
22979   cat > conftest.$ac_ext <<EOF
22980 #line 22981 "configure"
22981 #include "confdefs.h"
22982 /* System header to define __stub macros and hopefully few prototypes,
22983     which can conflict with char $ac_func(); below.  */
22984 #include <assert.h>
22985 /* Override any gcc2 internal prototype to avoid an error.  */
22986 /* We use char because int might match the return type of a gcc2
22987     builtin and then its argument prototype would still apply.  */
22988 char $ac_func();
22989
22990 int main() {
22991
22992 /* The GNU C library defines this for functions which it implements
22993     to always fail with ENOSYS.  Some functions are actually named
22994     something starting with __ and the normal name is an alias.  */
22995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22996 choke me
22997 #else
22998 $ac_func();
22999 #endif
23000
23001 ; return 0; }
23002 EOF
23003 if { (eval echo configure:23004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23004   rm -rf conftest*
23005   eval "ac_cv_func_$ac_func=yes"
23006 else
23007   echo "configure: failed program was:" >&5
23008   cat conftest.$ac_ext >&5
23009   rm -rf conftest*
23010   eval "ac_cv_func_$ac_func=no"
23011 fi
23012 rm -f conftest*
23013 fi
23014
23015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23016   echo "$ac_t""yes" 1>&6
23017     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23018   cat >> confdefs.h <<EOF
23019 #define $ac_tr_func 1
23020 EOF
23021  
23022 else
23023   echo "$ac_t""no" 1>&6
23024 fi
23025 done
23026
23027 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23028 echo "configure:23029: checking for working mmap" >&5
23029 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23030   echo $ac_n "(cached) $ac_c" 1>&6
23031 else
23032   if test "$cross_compiling" = yes; then
23033   ac_cv_func_mmap_fixed_mapped=no
23034 else
23035   cat > conftest.$ac_ext <<EOF
23036 #line 23037 "configure"
23037 #include "confdefs.h"
23038
23039 /* Thanks to Mike Haertel and Jim Avera for this test.
23040    Here is a matrix of mmap possibilities:
23041         mmap private not fixed
23042         mmap private fixed at somewhere currently unmapped
23043         mmap private fixed at somewhere already mapped
23044         mmap shared not fixed
23045         mmap shared fixed at somewhere currently unmapped
23046         mmap shared fixed at somewhere already mapped
23047    For private mappings, we should verify that changes cannot be read()
23048    back from the file, nor mmap's back from the file at a different
23049    address.  (There have been systems where private was not correctly
23050    implemented like the infamous i386 svr4.0, and systems where the
23051    VM page cache was not coherent with the filesystem buffer cache
23052    like early versions of FreeBSD and possibly contemporary NetBSD.)
23053    For shared mappings, we should conversely verify that changes get
23054    propogated back to all the places they're supposed to be.
23055
23056    Grep wants private fixed already mapped.
23057    The main things grep needs to know about mmap are:
23058    * does it exist and is it safe to write into the mmap'd area
23059    * how to use it (BSD variants)  */
23060 #include <sys/types.h>
23061 #include <fcntl.h>
23062 #include <sys/mman.h>
23063
23064 #if HAVE_SYS_TYPES_H
23065 # include <sys/types.h>
23066 #endif
23067
23068 #if HAVE_STDLIB_H
23069 # include <stdlib.h>
23070 #endif
23071
23072 #if HAVE_SYS_STAT_H
23073 # include <sys/stat.h>
23074 #endif
23075
23076 #if HAVE_UNISTD_H
23077 # include <unistd.h>
23078 #endif
23079
23080 /* This mess was copied from the GNU getpagesize.h.  */
23081 #ifndef HAVE_GETPAGESIZE
23082
23083 /* Assume that all systems that can run configure have sys/param.h.  */
23084 # ifndef HAVE_SYS_PARAM_H
23085 #  define HAVE_SYS_PARAM_H 1
23086 # endif
23087
23088 # ifdef _SC_PAGESIZE
23089 #  define getpagesize() sysconf(_SC_PAGESIZE)
23090 # else /* no _SC_PAGESIZE */
23091 #  ifdef HAVE_SYS_PARAM_H
23092 #   include <sys/param.h>
23093 #   ifdef EXEC_PAGESIZE
23094 #    define getpagesize() EXEC_PAGESIZE
23095 #   else /* no EXEC_PAGESIZE */
23096 #    ifdef NBPG
23097 #     define getpagesize() NBPG * CLSIZE
23098 #     ifndef CLSIZE
23099 #      define CLSIZE 1
23100 #     endif /* no CLSIZE */
23101 #    else /* no NBPG */
23102 #     ifdef NBPC
23103 #      define getpagesize() NBPC
23104 #     else /* no NBPC */
23105 #      ifdef PAGESIZE
23106 #       define getpagesize() PAGESIZE
23107 #      endif /* PAGESIZE */
23108 #     endif /* no NBPC */
23109 #    endif /* no NBPG */
23110 #   endif /* no EXEC_PAGESIZE */
23111 #  else /* no HAVE_SYS_PARAM_H */
23112 #   define getpagesize() 8192   /* punt totally */
23113 #  endif /* no HAVE_SYS_PARAM_H */
23114 # endif /* no _SC_PAGESIZE */
23115
23116 #endif /* no HAVE_GETPAGESIZE */
23117
23118 #ifdef __cplusplus
23119 extern "C" { void *malloc(unsigned); }
23120 #else
23121 char *malloc();
23122 #endif
23123
23124 int
23125 main()
23126 {
23127         char *data, *data2, *data3;
23128         int i, pagesize;
23129         int fd;
23130
23131         pagesize = getpagesize();
23132
23133         /*
23134          * First, make a file with some known garbage in it.
23135          */
23136         data = malloc(pagesize);
23137         if (!data)
23138                 exit(1);
23139         for (i = 0; i < pagesize; ++i)
23140                 *(data + i) = rand();
23141         umask(0);
23142         fd = creat("conftestmmap", 0600);
23143         if (fd < 0)
23144                 exit(1);
23145         if (write(fd, data, pagesize) != pagesize)
23146                 exit(1);
23147         close(fd);
23148
23149         /*
23150          * Next, try to mmap the file at a fixed address which
23151          * already has something else allocated at it.  If we can,
23152          * also make sure that we see the same garbage.
23153          */
23154         fd = open("conftestmmap", O_RDWR);
23155         if (fd < 0)
23156                 exit(1);
23157         data2 = malloc(2 * pagesize);
23158         if (!data2)
23159                 exit(1);
23160         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23161         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23162             MAP_PRIVATE | MAP_FIXED, fd, 0L))
23163                 exit(1);
23164         for (i = 0; i < pagesize; ++i)
23165                 if (*(data + i) != *(data2 + i))
23166                         exit(1);
23167
23168         /*
23169          * Finally, make sure that changes to the mapped area
23170          * do not percolate back to the file as seen by read().
23171          * (This is a bug on some variants of i386 svr4.0.)
23172          */
23173         for (i = 0; i < pagesize; ++i)
23174                 *(data2 + i) = *(data2 + i) + 1;
23175         data3 = malloc(pagesize);
23176         if (!data3)
23177                 exit(1);
23178         if (read(fd, data3, pagesize) != pagesize)
23179                 exit(1);
23180         for (i = 0; i < pagesize; ++i)
23181                 if (*(data + i) != *(data3 + i))
23182                         exit(1);
23183         close(fd);
23184         unlink("conftestmmap");
23185         exit(0);
23186 }
23187
23188 EOF
23189 if { (eval echo configure:23190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23190 then
23191   ac_cv_func_mmap_fixed_mapped=yes
23192 else
23193   echo "configure: failed program was:" >&5
23194   cat conftest.$ac_ext >&5
23195   rm -fr conftest*
23196   ac_cv_func_mmap_fixed_mapped=no
23197 fi
23198 rm -fr conftest*
23199 fi
23200
23201 fi
23202
23203 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23204 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23205   cat >> confdefs.h <<\EOF
23206 #define HAVE_MMAP 1
23207 EOF
23208
23209 fi
23210
23211
23212   # Establish limits on memory usage during 'make check'
23213   
23214   
23215   setrlimit_have_headers=yes
23216   for ac_hdr in unistd.h sys/time.h sys/resource.h
23217 do
23218 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23220 echo "configure:23221: checking for $ac_hdr" >&5
23221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23222   echo $ac_n "(cached) $ac_c" 1>&6
23223 else
23224   cat > conftest.$ac_ext <<EOF
23225 #line 23226 "configure"
23226 #include "confdefs.h"
23227 #include <$ac_hdr>
23228 EOF
23229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23230 { (eval echo configure:23231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23232 if test -z "$ac_err"; then
23233   rm -rf conftest*
23234   eval "ac_cv_header_$ac_safe=yes"
23235 else
23236   echo "$ac_err" >&5
23237   echo "configure: failed program was:" >&5
23238   cat conftest.$ac_ext >&5
23239   rm -rf conftest*
23240   eval "ac_cv_header_$ac_safe=no"
23241 fi
23242 rm -f conftest*
23243 fi
23244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23245   echo "$ac_t""yes" 1>&6
23246     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23247   cat >> confdefs.h <<EOF
23248 #define $ac_tr_hdr 1
23249 EOF
23250  
23251 else
23252   echo "$ac_t""no" 1>&6
23253 setrlimit_have_headers=no
23254 fi
23255 done
23256
23257   # If don't have the headers, then we can't run the tests now, and we
23258   # won't be seeing any of these during testsuite compilation.
23259   if test $setrlimit_have_headers = yes; then
23260     # Can't do these in a loop, else the resulting syntax is wrong.
23261     
23262   cat > conftest.$ac_ext <<EOF
23263 #line 23264 "configure"
23264 #include "confdefs.h"
23265 #include <unistd.h>
23266                   #include <sys/time.h>
23267                   #include <sys/resource.h>
23268                  
23269 int main() {
23270  int f = RLIMIT_DATA ; 
23271 ; return 0; }
23272 EOF
23273 if { (eval echo configure:23274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23274   rm -rf conftest*
23275   glibcpp_mresult=1
23276 else
23277   echo "configure: failed program was:" >&5
23278   cat conftest.$ac_ext >&5
23279   rm -rf conftest*
23280   glibcpp_mresult=0
23281 fi
23282 rm -f conftest*
23283   cat >> confdefs.h <<EOF
23284 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23285 EOF
23286
23287
23288     
23289   cat > conftest.$ac_ext <<EOF
23290 #line 23291 "configure"
23291 #include "confdefs.h"
23292 #include <unistd.h>
23293                   #include <sys/time.h>
23294                   #include <sys/resource.h>
23295                  
23296 int main() {
23297  int f = RLIMIT_RSS ; 
23298 ; return 0; }
23299 EOF
23300 if { (eval echo configure:23301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23301   rm -rf conftest*
23302   glibcpp_mresult=1
23303 else
23304   echo "configure: failed program was:" >&5
23305   cat conftest.$ac_ext >&5
23306   rm -rf conftest*
23307   glibcpp_mresult=0
23308 fi
23309 rm -f conftest*
23310   cat >> confdefs.h <<EOF
23311 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23312 EOF
23313
23314
23315     
23316   cat > conftest.$ac_ext <<EOF
23317 #line 23318 "configure"
23318 #include "confdefs.h"
23319 #include <unistd.h>
23320                   #include <sys/time.h>
23321                   #include <sys/resource.h>
23322                  
23323 int main() {
23324  int f = RLIMIT_VMEM ; 
23325 ; return 0; }
23326 EOF
23327 if { (eval echo configure:23328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23328   rm -rf conftest*
23329   glibcpp_mresult=1
23330 else
23331   echo "configure: failed program was:" >&5
23332   cat conftest.$ac_ext >&5
23333   rm -rf conftest*
23334   glibcpp_mresult=0
23335 fi
23336 rm -f conftest*
23337   cat >> confdefs.h <<EOF
23338 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23339 EOF
23340
23341
23342     
23343   cat > conftest.$ac_ext <<EOF
23344 #line 23345 "configure"
23345 #include "confdefs.h"
23346 #include <unistd.h>
23347                   #include <sys/time.h>
23348                   #include <sys/resource.h>
23349                  
23350 int main() {
23351  int f = RLIMIT_AS ; 
23352 ; return 0; }
23353 EOF
23354 if { (eval echo configure:23355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23355   rm -rf conftest*
23356   glibcpp_mresult=1
23357 else
23358   echo "configure: failed program was:" >&5
23359   cat conftest.$ac_ext >&5
23360   rm -rf conftest*
23361   glibcpp_mresult=0
23362 fi
23363 rm -f conftest*
23364   cat >> confdefs.h <<EOF
23365 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23366 EOF
23367
23368
23369
23370     # Check for rlimit, setrlimit.
23371     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23372   echo $ac_n "(cached) $ac_c" 1>&6
23373 else
23374   
23375       cat > conftest.$ac_ext <<EOF
23376 #line 23377 "configure"
23377 #include "confdefs.h"
23378 #include <unistd.h>
23379                   #include <sys/time.h>
23380                   #include <sys/resource.h>
23381                      
23382 int main() {
23383  struct rlimit r; setrlimit(0, &r);
23384 ; return 0; }
23385 EOF
23386 if { (eval echo configure:23387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23387   rm -rf conftest*
23388   ac_setrlimit=yes
23389 else
23390   echo "configure: failed program was:" >&5
23391   cat conftest.$ac_ext >&5
23392   rm -rf conftest*
23393   ac_setrlimit=no
23394 fi
23395 rm -f conftest*
23396     
23397 fi
23398
23399   fi
23400
23401   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23402 echo "configure:23403: checking for testsuite memory limit support" >&5
23403   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23404     ac_mem_limits=yes
23405     cat >> confdefs.h <<\EOF
23406 #define _GLIBCPP_MEM_LIMITS 1
23407 EOF
23408
23409   else
23410     ac_mem_limits=no
23411   fi
23412   echo "$ac_t""$ac_mem_limits" 1>&6
23413
23414
23415   # Look for setenv, so that extended locale tests can be performed.
23416   
23417   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23418 echo "configure:23419: checking for setenv declaration" >&5
23419   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23420     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23421   echo $ac_n "(cached) $ac_c" 1>&6
23422 else
23423   
23424       
23425       ac_ext=C
23426 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23427 ac_cpp='$CXXCPP $CPPFLAGS'
23428 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23429 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23430 cross_compiling=$ac_cv_prog_cxx_cross
23431
23432       cat > conftest.$ac_ext <<EOF
23433 #line 23434 "configure"
23434 #include "confdefs.h"
23435 #include <stdlib.h>
23436 int main() {
23437  setenv(0, 0, 0);
23438 ; return 0; }
23439 EOF
23440 if { (eval echo configure:23441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23441   rm -rf conftest*
23442   glibcpp_cv_func_setenv_use=yes
23443 else
23444   echo "configure: failed program was:" >&5
23445   cat conftest.$ac_ext >&5
23446   rm -rf conftest*
23447   glibcpp_cv_func_setenv_use=no
23448 fi
23449 rm -f conftest*
23450       ac_ext=c
23451 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23452 ac_cpp='$CPP $CPPFLAGS'
23453 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23454 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23455 cross_compiling=$ac_cv_prog_cc_cross
23456
23457     
23458 fi
23459
23460   fi
23461   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23462   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23463     for ac_func in setenv
23464 do
23465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23466 echo "configure:23467: checking for $ac_func" >&5
23467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23468   echo $ac_n "(cached) $ac_c" 1>&6
23469 else
23470   cat > conftest.$ac_ext <<EOF
23471 #line 23472 "configure"
23472 #include "confdefs.h"
23473 /* System header to define __stub macros and hopefully few prototypes,
23474     which can conflict with char $ac_func(); below.  */
23475 #include <assert.h>
23476 /* Override any gcc2 internal prototype to avoid an error.  */
23477 /* We use char because int might match the return type of a gcc2
23478     builtin and then its argument prototype would still apply.  */
23479 char $ac_func();
23480
23481 int main() {
23482
23483 /* The GNU C library defines this for functions which it implements
23484     to always fail with ENOSYS.  Some functions are actually named
23485     something starting with __ and the normal name is an alias.  */
23486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23487 choke me
23488 #else
23489 $ac_func();
23490 #endif
23491
23492 ; return 0; }
23493 EOF
23494 if { (eval echo configure:23495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23495   rm -rf conftest*
23496   eval "ac_cv_func_$ac_func=yes"
23497 else
23498   echo "configure: failed program was:" >&5
23499   cat conftest.$ac_ext >&5
23500   rm -rf conftest*
23501   eval "ac_cv_func_$ac_func=no"
23502 fi
23503 rm -f conftest*
23504 fi
23505
23506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23507   echo "$ac_t""yes" 1>&6
23508     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23509   cat >> confdefs.h <<EOF
23510 #define $ac_tr_func 1
23511 EOF
23512  
23513 else
23514   echo "$ac_t""no" 1>&6
23515 fi
23516 done
23517
23518   fi
23519
23520
23521   # Export file names for ABI checking.
23522   baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
23523   
23524
23525   # Don't do ABI checking unless native.
23526   
23527
23528   case "$target" in
23529     *-*-cygwin* ) enable_abi_check=no ;;
23530     * ) enable_abi_check=yes ;;
23531   esac
23532
23533 if test x"$build" = x"$host" && test -z "$with_cross_host" \
23534                  && test "$enable_abi_check" = yes ; then
23535   GLIBCPP_BUILD_ABI_CHECK_TRUE=
23536   GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
23537 else
23538   GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
23539   GLIBCPP_BUILD_ABI_CHECK_FALSE=
23540 fi
23541
23542 fi
23543
23544 # This depends on the possibly-skipped linker test above.
23545 # Check whether --enable-symvers or --disable-symvers was given.
23546 if test "${enable_symvers+set}" = set; then
23547   enableval="$enable_symvers"
23548   case "$enableval" in
23549  yes) enable_symvers=yes ;;
23550  no)  enable_symvers=no ;;
23551  # other names here, just as sanity checks
23552  #gnu|sun|etcetera) enable_symvers=$enableval ;;
23553  gnu) enable_symvers=$enableval ;;
23554  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23555  esac
23556 else
23557   enable_symvers=yes
23558 fi
23559
23560 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23561 # don't know enough about $LD to do tricks...
23562 if test x$enable_shared = xno ||
23563         test "x$LD" = x ||
23564         test x$glibcpp_gnu_ld_version = x; then
23565   enable_symvers=no
23566 fi
23567
23568 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23569 if test $enable_symvers != no; then
23570   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23571 echo "configure:23566: checking for shared libgcc" >&5
23572   ac_save_CFLAGS="$CFLAGS"
23573   CFLAGS=' -lgcc_s'
23574   cat > conftest.$ac_ext <<EOF
23575 #line 23570 "configure"
23576 #include "confdefs.h"
23577
23578 int main() {
23579 return 0
23580 ; return 0; }
23581 EOF
23582 if { (eval echo configure:23577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23583   rm -rf conftest*
23584   glibcpp_shared_libgcc=yes
23585 else
23586   echo "configure: failed program was:" >&5
23587   cat conftest.$ac_ext >&5
23588   rm -rf conftest*
23589   glibcpp_shared_libgcc=no
23590 fi
23591 rm -f conftest*
23592   CFLAGS="$ac_save_CFLAGS"
23593   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23594 fi
23595
23596 # For GNU ld, we need at least this version.  It's 2.12 in the same format
23597 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
23598 glibcpp_min_gnu_ld_version=21200
23599
23600 # Check to see if unspecified "yes" value can win, given results
23601 # above.
23602 if test $enable_symvers = yes ; then
23603   if test $with_gnu_ld = yes &&
23604     test $glibcpp_shared_libgcc = yes ;
23605   then
23606     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23607         enable_symvers=gnu
23608     else
23609       ac_test_CFLAGS="${CFLAGS+set}"
23610       ac_save_CFLAGS="$CFLAGS"
23611       CFLAGS='-shared -Wl,--version-script,conftest.map'
23612       enable_symvers=no
23613       
23614       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23615       
23616       cat > conftest.$ac_ext <<EOF
23617 #line 23612 "configure"
23618 #include "confdefs.h"
23619 int foo;
23620 int main() {
23621
23622 ; return 0; }
23623 EOF
23624 if { (eval echo configure:23619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23625   rm -rf conftest*
23626   enable_symvers=gnu
23627 else
23628   echo "configure: failed program was:" >&5
23629   cat conftest.$ac_ext >&5
23630 fi
23631 rm -f conftest*
23632       if test "$ac_test_CFLAGS" = set; then
23633         CFLAGS="$ac_save_CFLAGS"
23634       else
23635         # this is the suspicious part
23636         CFLAGS=''
23637       fi
23638       rm -f conftest.map
23639     fi
23640   else
23641     # just fail for now
23642     enable_symvers=no
23643   fi
23644 fi
23645
23646 case $enable_symvers in
23647   no)
23648       SYMVER_MAP=config/linker-map.dummy
23649       ;;
23650   gnu)
23651       SYMVER_MAP=config/linker-map.gnu
23652       cat >> confdefs.h <<\EOF
23653 #define _GLIBCPP_SYMVER 1
23654 EOF
23655
23656       ;;
23657 esac
23658
23659
23660
23661
23662 if test $enable_symvers != no; then
23663   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23664   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23665 else
23666   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23667   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23668 fi
23669 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23670 echo "configure:23665: checking versioning on shared library symbols" >&5
23671 echo "$ac_t""$enable_symvers" 1>&6
23672
23673
23674 # Propagate the target-specific source directories through the build chain.
23675 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH 
23676 # uses it, and it only gets used in this file.)
23677 OS_INC_SRCDIR=config/${os_include_dir}
23678 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23679
23680
23681
23682 # Set up cross-compile flags
23683   
23684
23685 if test "$CANADIAN" = yes; then
23686   CANADIAN_TRUE=
23687   CANADIAN_FALSE='#'
23688 else
23689   CANADIAN_TRUE='#'
23690   CANADIAN_FALSE=
23691 fi
23692  
23693 cat > confcache <<\EOF
23694 # This file is a shell script that caches the results of configure
23695 # tests run on this system so they can be shared between configure
23696 # scripts and configure runs.  It is not useful on other systems.
23697 # If it contains results you don't want to keep, you may remove or edit it.
23698 #
23699 # By default, configure uses ./config.cache as the cache file,
23700 # creating it if it does not exist already.  You can give configure
23701 # the --cache-file=FILE option to use a different cache file; that is
23702 # what configure does when it calls configure scripts in
23703 # subdirectories, so they share the cache.
23704 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23705 # config.status only pays attention to the cache file if you give it the
23706 # --recheck option to rerun configure.
23707 #
23708 EOF
23709 # The following way of writing the cache mishandles newlines in values,
23710 # but we know of no workaround that is simple, portable, and efficient.
23711 # So, don't put newlines in cache variables' values.
23712 # Ultrix sh set writes to stderr and can't be redirected directly,
23713 # and sets the high bit in the cache file unless we assign to the vars.
23714 (set) 2>&1 |
23715   case `(ac_space=' '; set | grep ac_space) 2>&1` in
23716   *ac_space=\ *)
23717     # `set' does not quote correctly, so add quotes (double-quote substitution
23718     # turns \\\\ into \\, and sed turns \\ into \).
23719     sed -n \
23720       -e "s/'/'\\\\''/g" \
23721       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23722     ;;
23723   *)
23724     # `set' quotes correctly as required by POSIX, so do not add quotes.
23725     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23726     ;;
23727   esac >> confcache
23728 if cmp -s $cache_file confcache; then
23729   :
23730 else
23731   if test -w $cache_file; then
23732     echo "updating cache $cache_file"
23733     cat confcache > $cache_file
23734   else
23735     echo "not updating unwritable cache $cache_file"
23736   fi
23737 fi
23738 rm -f confcache
23739
23740
23741 if test "${multilib}" = "yes"; then
23742   multilib_arg="--enable-multilib"
23743 else
23744   multilib_arg=
23745 fi
23746
23747 # Export all the install information
23748
23749 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23750 # exported correctly in GLIBCPP_CONFIGURE.
23751 glibcpp_toolexecdir=no
23752 glibcpp_toolexeclibdir=no
23753 glibcpp_prefixdir=${prefix}
23754
23755 # Process the option --with-gxx-include-dir=<path to include-files directory>
23756 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23757 echo "configure:23752: checking for --with-gxx-include-dir" >&5
23758 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23759 if test "${with_gxx_include_dir+set}" = set; then
23760   withval="$with_gxx_include_dir"
23761   case "${withval}" in
23762   yes)
23763     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23764     gxx_include_dir=no
23765     ;;
23766   no)
23767     gxx_include_dir=no
23768     ;;
23769   *)
23770     gxx_include_dir=${withval}
23771     ;;
23772 esac
23773 else
23774   gxx_include_dir=no
23775 fi
23776
23777 echo "$ac_t""$gxx_include_dir" 1>&6
23778
23779 # Process the option "--enable-version-specific-runtime-libs"
23780 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23781 echo "configure:23776: checking for --enable-version-specific-runtime-libs" >&5
23782 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23783 if test "${enable_version_specific_runtime_libs+set}" = set; then
23784   enableval="$enable_version_specific_runtime_libs"
23785   case "$enableval" in
23786  yes) version_specific_libs=yes ;;
23787  no)  version_specific_libs=no ;;
23788  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23789  esac
23790 else
23791   version_specific_libs=no
23792 fi
23793 # Option set, now we can test it.
23794 echo "$ac_t""$version_specific_libs" 1>&6
23795
23796 # Default case for install directory for include files.
23797 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23798   gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23799 fi
23800
23801 # Version-specific runtime libs processing.
23802 if test $version_specific_libs = yes; then
23803   # Need the gcc compiler version to know where to install libraries
23804   # and header files if --enable-version-specific-runtime-libs option
23805   # is selected.
23806   if test x"$gxx_include_dir" = x"no"; then
23807     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23808   fi
23809   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23810   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23811 fi
23812
23813 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
23814 # Install a library built with a cross compiler in tooldir, not libdir.
23815 if test x"$glibcpp_toolexecdir" = x"no"; then
23816   if test -n "$with_cross_host" &&
23817      test x"$with_cross_host" != x"no"; then
23818     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
23819     glibcpp_toolexeclibdir='$(toolexecdir)/lib'
23820   else
23821     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23822     glibcpp_toolexeclibdir='$(libdir)'
23823   fi
23824   glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/`$CC -print-multi-os-directory`
23825 fi
23826
23827 echo $ac_n "checking for install location""... $ac_c" 1>&6
23828 echo "configure:23823: checking for install location" >&5
23829 echo "$ac_t""$gxx_include_dir" 1>&6
23830
23831
23832
23833
23834
23835
23836
23837 # Export all the include and flag information to Makefiles.
23838
23839   # Root level of the build directory include sources.
23840   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
23841
23842   # Passed down for canadian crosses.
23843   if test x"$CANADIAN" = xyes; then
23844     TOPLEVEL_INCLUDES='-I$(includedir)'
23845   fi
23846
23847   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23848
23849   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23850
23851   if test x"$need_libio" = xyes; then
23852     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
23853     
23854   fi
23855
23856   # Now, export this to all the little Makefiles....
23857   
23858   
23859   
23860   
23861
23862
23863   # Optimization flags that are probably a good idea for thrill-seekers. Just
23864   # uncomment the lines below and make, everything else is ready to go...
23865   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
23866   OPTIMIZE_CXXFLAGS=
23867   
23868
23869   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
23870   
23871
23872
23873 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23874    grep "enable shared" > /dev/null; then
23875   LIBSUPCXX_PICFLAGS=-prefer-pic
23876 else
23877   LIBSUPCXX_PICFLAGS=
23878 fi
23879
23880
23881 # Generate the various Makefiles, include files, and scripts.
23882 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
23883 # and libsupc++/Makefile.am so that multilib installs will end up
23884 # installed in the correct place. To work around this not being passed
23885 # down from config-ml.in -> top_srcdir/Makefile.am ->
23886 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
23887 trap '' 1 2 15
23888 cat > confcache <<\EOF
23889 # This file is a shell script that caches the results of configure
23890 # tests run on this system so they can be shared between configure
23891 # scripts and configure runs.  It is not useful on other systems.
23892 # If it contains results you don't want to keep, you may remove or edit it.
23893 #
23894 # By default, configure uses ./config.cache as the cache file,
23895 # creating it if it does not exist already.  You can give configure
23896 # the --cache-file=FILE option to use a different cache file; that is
23897 # what configure does when it calls configure scripts in
23898 # subdirectories, so they share the cache.
23899 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23900 # config.status only pays attention to the cache file if you give it the
23901 # --recheck option to rerun configure.
23902 #
23903 EOF
23904 # The following way of writing the cache mishandles newlines in values,
23905 # but we know of no workaround that is simple, portable, and efficient.
23906 # So, don't put newlines in cache variables' values.
23907 # Ultrix sh set writes to stderr and can't be redirected directly,
23908 # and sets the high bit in the cache file unless we assign to the vars.
23909 (set) 2>&1 |
23910   case `(ac_space=' '; set | grep ac_space) 2>&1` in
23911   *ac_space=\ *)
23912     # `set' does not quote correctly, so add quotes (double-quote substitution
23913     # turns \\\\ into \\, and sed turns \\ into \).
23914     sed -n \
23915       -e "s/'/'\\\\''/g" \
23916       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23917     ;;
23918   *)
23919     # `set' quotes correctly as required by POSIX, so do not add quotes.
23920     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23921     ;;
23922   esac >> confcache
23923 if cmp -s $cache_file confcache; then
23924   :
23925 else
23926   if test -w $cache_file; then
23927     echo "updating cache $cache_file"
23928     cat confcache > $cache_file
23929   else
23930     echo "not updating unwritable cache $cache_file"
23931   fi
23932 fi
23933 rm -f confcache
23934
23935 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23936
23937 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23938 # Let make expand exec_prefix.
23939 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23940
23941 # Any assignment to VPATH causes Sun make to only execute
23942 # the first set of double-colon rules, so remove it if not needed.
23943 # If there is a colon in the path, we need to keep it.
23944 if test "x$srcdir" = x.; then
23945   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
23946 fi
23947
23948 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23949
23950 DEFS=-DHAVE_CONFIG_H
23951
23952 # Without the "./", some shells look in PATH for config.status.
23953 : ${CONFIG_STATUS=./config.status}
23954
23955 echo creating $CONFIG_STATUS
23956 rm -f $CONFIG_STATUS
23957 cat > $CONFIG_STATUS <<EOF
23958 #! /bin/sh
23959 # Generated automatically by configure.
23960 # Run this file to recreate the current configuration.
23961 # This directory was configured as follows,
23962 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23963 #
23964 # $0 $ac_configure_args
23965 #
23966 # Compiler output produced by configure, useful for debugging
23967 # configure, is in ./config.log if it exists.
23968
23969 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23970 for ac_option
23971 do
23972   case "\$ac_option" in
23973   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23974     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23975     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23976   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23977     echo "$CONFIG_STATUS generated by autoconf version 2.13"
23978     exit 0 ;;
23979   -help | --help | --hel | --he | --h)
23980     echo "\$ac_cs_usage"; exit 0 ;;
23981   *) echo "\$ac_cs_usage"; exit 1 ;;
23982   esac
23983 done
23984
23985 ac_given_srcdir=$srcdir
23986 ac_given_INSTALL="$INSTALL"
23987
23988 trap 'rm -fr `echo "Makefile \
23989 include/Makefile src/Makefile \
23990 libmath/Makefile libio/Makefile libsupc++/Makefile \
23991 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23992 EOF
23993 cat >> $CONFIG_STATUS <<EOF
23994
23995 # Protect against being on the right side of a sed subst in config.status.
23996 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23997  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23998 $ac_vpsub
23999 $extrasub
24000 s%@SHELL@%$SHELL%g
24001 s%@CFLAGS@%$CFLAGS%g
24002 s%@CPPFLAGS@%$CPPFLAGS%g
24003 s%@CXXFLAGS@%$CXXFLAGS%g
24004 s%@FFLAGS@%$FFLAGS%g
24005 s%@DEFS@%$DEFS%g
24006 s%@LDFLAGS@%$LDFLAGS%g
24007 s%@LIBS@%$LIBS%g
24008 s%@exec_prefix@%$exec_prefix%g
24009 s%@prefix@%$prefix%g
24010 s%@program_transform_name@%$program_transform_name%g
24011 s%@bindir@%$bindir%g
24012 s%@sbindir@%$sbindir%g
24013 s%@libexecdir@%$libexecdir%g
24014 s%@datadir@%$datadir%g
24015 s%@sysconfdir@%$sysconfdir%g
24016 s%@sharedstatedir@%$sharedstatedir%g
24017 s%@localstatedir@%$localstatedir%g
24018 s%@libdir@%$libdir%g
24019 s%@includedir@%$includedir%g
24020 s%@oldincludedir@%$oldincludedir%g
24021 s%@infodir@%$infodir%g
24022 s%@mandir@%$mandir%g
24023 s%@PACKAGE@%$PACKAGE%g
24024 s%@libtool_VERSION@%$libtool_VERSION%g
24025 s%@toplevel_srcdir@%$toplevel_srcdir%g
24026 s%@host@%$host%g
24027 s%@host_alias@%$host_alias%g
24028 s%@host_cpu@%$host_cpu%g
24029 s%@host_vendor@%$host_vendor%g
24030 s%@host_os@%$host_os%g
24031 s%@target@%$target%g
24032 s%@target_alias@%$target_alias%g
24033 s%@target_cpu@%$target_cpu%g
24034 s%@target_vendor@%$target_vendor%g
24035 s%@target_os@%$target_os%g
24036 s%@build@%$build%g
24037 s%@build_alias@%$build_alias%g
24038 s%@build_cpu@%$build_cpu%g
24039 s%@build_vendor@%$build_vendor%g
24040 s%@build_os@%$build_os%g
24041 s%@glibcpp_builddir@%$glibcpp_builddir%g
24042 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
24043 s%@AWK@%$AWK%g
24044 s%@LN_S@%$LN_S%g
24045 s%@glibcpp_basedir@%$glibcpp_basedir%g
24046 s%@CC@%$CC%g
24047 s%@glibcpp_CXX@%$glibcpp_CXX%g
24048 s%@AS@%$AS%g
24049 s%@AR@%$AR%g
24050 s%@RANLIB@%$RANLIB%g
24051 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24052 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24053 s%@INSTALL_DATA@%$INSTALL_DATA%g
24054 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24055 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24056 s%@MAINT@%$MAINT%g
24057 s%@EXEEXT@%$EXEEXT%g
24058 s%@VERSION@%$VERSION%g
24059 s%@ACLOCAL@%$ACLOCAL%g
24060 s%@AUTOCONF@%$AUTOCONF%g
24061 s%@AUTOMAKE@%$AUTOMAKE%g
24062 s%@AUTOHEADER@%$AUTOHEADER%g
24063 s%@MAKEINFO@%$MAKEINFO%g
24064 s%@SET_MAKE@%$SET_MAKE%g
24065 s%@OBJEXT@%$OBJEXT%g
24066 s%@STRIP@%$STRIP%g
24067 s%@LIBTOOL@%$LIBTOOL%g
24068 s%@CXXCPP@%$CXXCPP%g
24069 s%@enable_shared@%$enable_shared%g
24070 s%@enable_static@%$enable_static%g
24071 s%@ifGNUmake@%$ifGNUmake%g
24072 s%@CPP@%$CPP%g
24073 s%@CSTDIO_H@%$CSTDIO_H%g
24074 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24075 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24076 s%@CCODECVT_C@%$CCODECVT_C%g
24077 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
24078 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
24079 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
24080 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
24081 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
24082 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
24083 s%@libio_la@%$libio_la%g
24084 s%@check_msgfmt@%$check_msgfmt%g
24085 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24086 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24087 s%@glibcpp_localedir@%$glibcpp_localedir%g
24088 s%@USE_NLS@%$USE_NLS%g
24089 s%@CLOCALE_H@%$CLOCALE_H%g
24090 s%@CCODECVT_H@%$CCODECVT_H%g
24091 s%@CMESSAGES_H@%$CMESSAGES_H%g
24092 s%@CCODECVT_CC@%$CCODECVT_CC%g
24093 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24094 s%@CCTYPE_CC@%$CCTYPE_CC%g
24095 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24096 s%@CMONEY_CC@%$CMONEY_CC%g
24097 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24098 s%@CTIME_H@%$CTIME_H%g
24099 s%@CTIME_CC@%$CTIME_CC%g
24100 s%@CLOCALE_CC@%$CLOCALE_CC%g
24101 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24102 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24103 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24104 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24105 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24106 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24107 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24108 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24109 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24110 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24111 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24112 s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24113 s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24114 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24115 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24116 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24117 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24118 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24119 s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24120 s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24121 s%@GLIBCPP_TEST_WCHAR_T_TRUE@%$GLIBCPP_TEST_WCHAR_T_TRUE%g
24122 s%@GLIBCPP_TEST_WCHAR_T_FALSE@%$GLIBCPP_TEST_WCHAR_T_FALSE%g
24123 s%@WERROR@%$WERROR%g
24124 s%@baseline_file@%$baseline_file%g
24125 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
24126 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
24127 s%@SYMVER_MAP@%$SYMVER_MAP%g
24128 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24129 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24130 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24131 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24132 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24133 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24134 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24135 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24136 s%@gxx_include_dir@%$gxx_include_dir%g
24137 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24138 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24139 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
24140 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24141 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24142 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24143 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24144 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24145 s%@WARN_FLAGS@%$WARN_FLAGS%g
24146 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24147
24148 CEOF
24149 EOF
24150
24151 cat >> $CONFIG_STATUS <<\EOF
24152
24153 # Split the substitutions into bite-sized pieces for seds with
24154 # small command number limits, like on Digital OSF/1 and HP-UX.
24155 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24156 ac_file=1 # Number of current file.
24157 ac_beg=1 # First line for current file.
24158 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24159 ac_more_lines=:
24160 ac_sed_cmds=""
24161 while $ac_more_lines; do
24162   if test $ac_beg -gt 1; then
24163     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24164   else
24165     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24166   fi
24167   if test ! -s conftest.s$ac_file; then
24168     ac_more_lines=false
24169     rm -f conftest.s$ac_file
24170   else
24171     if test -z "$ac_sed_cmds"; then
24172       ac_sed_cmds="sed -f conftest.s$ac_file"
24173     else
24174       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24175     fi
24176     ac_file=`expr $ac_file + 1`
24177     ac_beg=$ac_end
24178     ac_end=`expr $ac_end + $ac_max_sed_cmds`
24179   fi
24180 done
24181 if test -z "$ac_sed_cmds"; then
24182   ac_sed_cmds=cat
24183 fi
24184 EOF
24185
24186 cat >> $CONFIG_STATUS <<EOF
24187
24188 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24189 include/Makefile src/Makefile \
24190 libmath/Makefile libio/Makefile libsupc++/Makefile \
24191 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
24192 EOF
24193 cat >> $CONFIG_STATUS <<\EOF
24194 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24195   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24196   case "$ac_file" in
24197   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24198        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24199   *) ac_file_in="${ac_file}.in" ;;
24200   esac
24201
24202   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24203
24204   # Remove last slash and all that follows it.  Not all systems have dirname.
24205   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24206   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24207     # The file is in a subdirectory.
24208     test ! -d "$ac_dir" && mkdir "$ac_dir"
24209     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24210     # A "../" for each directory in $ac_dir_suffix.
24211     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24212   else
24213     ac_dir_suffix= ac_dots=
24214   fi
24215
24216   case "$ac_given_srcdir" in
24217   .)  srcdir=.
24218       if test -z "$ac_dots"; then top_srcdir=.
24219       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24220   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24221   *) # Relative path.
24222     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24223     top_srcdir="$ac_dots$ac_given_srcdir" ;;
24224   esac
24225
24226   case "$ac_given_INSTALL" in
24227   [/$]*) INSTALL="$ac_given_INSTALL" ;;
24228   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24229   esac
24230
24231   echo creating "$ac_file"
24232   rm -f "$ac_file"
24233   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24234   case "$ac_file" in
24235   *Makefile*) ac_comsub="1i\\
24236 # $configure_input" ;;
24237   *) ac_comsub= ;;
24238   esac
24239
24240   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24241   sed -e "$ac_comsub
24242 s%@configure_input@%$configure_input%g
24243 s%@srcdir@%$srcdir%g
24244 s%@top_srcdir@%$top_srcdir%g
24245 s%@INSTALL@%$INSTALL%g
24246 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24247 fi; done
24248 rm -f conftest.s*
24249
24250 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24251 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24252 #
24253 # ac_d sets the value in "#define NAME VALUE" lines.
24254 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24255 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
24256 ac_dC='\3'
24257 ac_dD='%g'
24258 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24259 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24260 ac_uB='\([      ]\)%\1#\2define\3'
24261 ac_uC=' '
24262 ac_uD='\4%g'
24263 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24264 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24265 ac_eB='$%\1#\2define\3'
24266 ac_eC=' '
24267 ac_eD='%g'
24268
24269 if test "${CONFIG_HEADERS+set}" != set; then
24270 EOF
24271 cat >> $CONFIG_STATUS <<EOF
24272   CONFIG_HEADERS="config.h"
24273 EOF
24274 cat >> $CONFIG_STATUS <<\EOF
24275 fi
24276 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24277   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24278   case "$ac_file" in
24279   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24280        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24281   *) ac_file_in="${ac_file}.in" ;;
24282   esac
24283
24284   echo creating $ac_file
24285
24286   rm -f conftest.frag conftest.in conftest.out
24287   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24288   cat $ac_file_inputs > conftest.in
24289
24290 EOF
24291
24292 # Transform confdefs.h into a sed script conftest.vals that substitutes
24293 # the proper values into config.h.in to produce config.h.  And first:
24294 # Protect against being on the right side of a sed subst in config.status.
24295 # Protect against being in an unquoted here document in config.status.
24296 rm -f conftest.vals
24297 cat > conftest.hdr <<\EOF
24298 s/[\\&%]/\\&/g
24299 s%[\\$`]%\\&%g
24300 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24301 s%ac_d%ac_u%gp
24302 s%ac_u%ac_e%gp
24303 EOF
24304 sed -n -f conftest.hdr confdefs.h > conftest.vals
24305 rm -f conftest.hdr
24306
24307 # This sed command replaces #undef with comments.  This is necessary, for
24308 # example, in the case of _POSIX_SOURCE, which is predefined and required
24309 # on some systems where configure will not decide to define it.
24310 cat >> conftest.vals <<\EOF
24311 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24312 EOF
24313
24314 # Break up conftest.vals because some shells have a limit on
24315 # the size of here documents, and old seds have small limits too.
24316
24317 rm -f conftest.tail
24318 while :
24319 do
24320   ac_lines=`grep -c . conftest.vals`
24321   # grep -c gives empty output for an empty file on some AIX systems.
24322   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24323   # Write a limited-size here document to conftest.frag.
24324   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24325   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24326   echo 'CEOF
24327   sed -f conftest.frag conftest.in > conftest.out
24328   rm -f conftest.in
24329   mv conftest.out conftest.in
24330 ' >> $CONFIG_STATUS
24331   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24332   rm -f conftest.vals
24333   mv conftest.tail conftest.vals
24334 done
24335 rm -f conftest.vals
24336
24337 cat >> $CONFIG_STATUS <<\EOF
24338   rm -f conftest.frag conftest.h
24339   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
24340   cat conftest.in >> conftest.h
24341   rm -f conftest.in
24342   if cmp -s $ac_file conftest.h 2>/dev/null; then
24343     echo "$ac_file is unchanged"
24344     rm -f conftest.h
24345   else
24346     # Remove last slash and all that follows it.  Not all systems have dirname.
24347       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24348       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24349       # The file is in a subdirectory.
24350       test ! -d "$ac_dir" && mkdir "$ac_dir"
24351     fi
24352     rm -f $ac_file
24353     mv conftest.h $ac_file
24354   fi
24355 fi; done
24356
24357 EOF
24358 cat >> $CONFIG_STATUS <<EOF
24359
24360 srcdir=${srcdir}
24361 host=${host}
24362 target=${target}
24363 with_target_subdir=${with_target_subdir}
24364 with_build_subdir=${with_build_subdir}
24365 with_multisubdir=${with_multisubdir}
24366 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24367 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24368 glibcpp_basedir=${glibcpp_basedir}
24369 CC="${CC}"
24370 CXX="${CXX}"
24371
24372 EOF
24373 cat >> $CONFIG_STATUS <<\EOF
24374 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24375 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24376  if test -n "$CONFIG_FILES"; then
24377    if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24378      LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24379      ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24380      grep '^MULTISUBDIR =' Makefile >> src/Makefile
24381      grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24382    fi
24383  fi
24384  chmod +x mkcheck
24385  chmod +x testsuite_flags
24386 exit 0
24387 EOF
24388 chmod +x $CONFIG_STATUS
24389 rm -fr confdefs* $ac_clean_files
24390 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24391
24392
24393
24394 # Sanity checking & User-visible messages.
24395 # Checks down here, otherwise they get scrolled off before
24396 # the user will notice.
24397
24398 # Trying to get more people to read documentation.  Possibly remove
24399 # check and warn all the time. There is no "informational" AC_MSG_
24400 # macro, so these are going to be printed even when --quiet/--silent
24401 # is given.
24402 if test ! -f stamp-sanity-warned; then
24403   touch stamp-sanity-warned
24404   echo ""
24405   echo "Please make certain that you read the installation information here:"
24406   echo "  faster => ${srcdir}/docs/html/install.html"
24407   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24408   echo ""
24409   echo "and the configuration information here:"
24410   echo "  faster => ${srcdir}/docs/html/configopts.html"
24411   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24412   echo ""
24413   echo "before proceeding with ${_cv_gnu_make_command}."
24414   echo ""
24415 fi