OSDN Git Service

2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
[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          extra debugging, turn off optimization [default=no]"
65 ac_help="$ac_help
66   --enable-debug-flags=FLAGS    pass compiler FLAGS when building debug
67                         library;[default=none]"
68 ac_help="$ac_help
69   --enable-symvers=style  enables symbol versioning of the shared library [default=yes]"
70 ac_help="$ac_help
71   --with-gxx-include-dir  the installation directory for include files"
72 ac_help="$ac_help
73   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
74
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
78 build=NONE
79 cache_file=./config.cache
80 exec_prefix=NONE
81 host=NONE
82 no_create=
83 nonopt=NONE
84 no_recursion=
85 prefix=NONE
86 program_prefix=NONE
87 program_suffix=NONE
88 program_transform_name=s,x,x,
89 silent=
90 site=
91 srcdir=
92 target=NONE
93 verbose=
94 x_includes=NONE
95 x_libraries=NONE
96 bindir='${exec_prefix}/bin'
97 sbindir='${exec_prefix}/sbin'
98 libexecdir='${exec_prefix}/libexec'
99 datadir='${prefix}/share'
100 sysconfdir='${prefix}/etc'
101 sharedstatedir='${prefix}/com'
102 localstatedir='${prefix}/var'
103 libdir='${exec_prefix}/lib'
104 includedir='${prefix}/include'
105 oldincludedir='/usr/include'
106 infodir='${prefix}/info'
107 mandir='${prefix}/man'
108
109 # Initialize some other variables.
110 subdirs=
111 MFLAGS= MAKEFLAGS=
112 SHELL=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
114 ac_max_here_lines=12
115
116 ac_prev=
117 for ac_option
118 do
119
120   # If the previous option needs an argument, assign it.
121   if test -n "$ac_prev"; then
122     eval "$ac_prev=\$ac_option"
123     ac_prev=
124     continue
125   fi
126
127   case "$ac_option" in
128   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129   *) ac_optarg= ;;
130   esac
131
132   # Accept the important Cygnus configure options, so we can diagnose typos.
133
134   case "$ac_option" in
135
136   -bindir | --bindir | --bindi | --bind | --bin | --bi)
137     ac_prev=bindir ;;
138   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
139     bindir="$ac_optarg" ;;
140
141   -build | --build | --buil | --bui | --bu)
142     ac_prev=build ;;
143   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
144     build="$ac_optarg" ;;
145
146   -cache-file | --cache-file | --cache-fil | --cache-fi \
147   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
148     ac_prev=cache_file ;;
149   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
150   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
151     cache_file="$ac_optarg" ;;
152
153   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
154     ac_prev=datadir ;;
155   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
156   | --da=*)
157     datadir="$ac_optarg" ;;
158
159   -disable-* | --disable-*)
160     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
161     # Reject names that are not valid shell variable names.
162     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164     fi
165     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166     eval "enable_${ac_feature}=no" ;;
167
168   -enable-* | --enable-*)
169     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170     # Reject names that are not valid shell variable names.
171     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173     fi
174     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175     case "$ac_option" in
176       *=*) ;;
177       *) ac_optarg=yes ;;
178     esac
179     eval "enable_${ac_feature}='$ac_optarg'" ;;
180
181   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
182   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
183   | --exec | --exe | --ex)
184     ac_prev=exec_prefix ;;
185   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
186   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
187   | --exec=* | --exe=* | --ex=*)
188     exec_prefix="$ac_optarg" ;;
189
190   -gas | --gas | --ga | --g)
191     # Obsolete; use --with-gas.
192     with_gas=yes ;;
193
194   -help | --help | --hel | --he)
195     # Omit some internal or obsolete options to make the list less imposing.
196     # This message is too long to be a string in the A/UX 3.1 sh.
197     cat << EOF
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
200 Configuration:
201   --cache-file=FILE       cache test results in FILE
202   --help                  print this message
203   --no-create             do not create output files
204   --quiet, --silent       do not print \`checking...' messages
205   --version               print the version of autoconf that created configure
206 Directory and file names:
207   --prefix=PREFIX         install architecture-independent files in PREFIX
208                           [$ac_default_prefix]
209   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
210                           [same as prefix]
211   --bindir=DIR            user executables in DIR [EPREFIX/bin]
212   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
213   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
214   --datadir=DIR           read-only architecture-independent data in DIR
215                           [PREFIX/share]
216   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
217   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
218                           [PREFIX/com]
219   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
220   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
221   --includedir=DIR        C header files in DIR [PREFIX/include]
222   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
223   --infodir=DIR           info documentation in DIR [PREFIX/info]
224   --mandir=DIR            man documentation in DIR [PREFIX/man]
225   --srcdir=DIR            find the sources in DIR [configure dir or ..]
226   --program-prefix=PREFIX prepend PREFIX to installed program names
227   --program-suffix=SUFFIX append SUFFIX to installed program names
228   --program-transform-name=PROGRAM
229                           run sed PROGRAM on installed program names
230 EOF
231     cat << EOF
232 Host type:
233   --build=BUILD           configure for building on BUILD [BUILD=HOST]
234   --host=HOST             configure for HOST [guessed]
235   --target=TARGET         configure for TARGET [TARGET=HOST]
236 Features and packages:
237   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
238   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
239   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
240   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
241   --x-includes=DIR        X include files are in DIR
242   --x-libraries=DIR       X library files are in DIR
243 EOF
244     if test -n "$ac_help"; then
245       echo "--enable and --with options recognized:$ac_help"
246     fi
247     exit 0 ;;
248
249   -host | --host | --hos | --ho)
250     ac_prev=host ;;
251   -host=* | --host=* | --hos=* | --ho=*)
252     host="$ac_optarg" ;;
253
254   -includedir | --includedir | --includedi | --included | --include \
255   | --includ | --inclu | --incl | --inc)
256     ac_prev=includedir ;;
257   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
258   | --includ=* | --inclu=* | --incl=* | --inc=*)
259     includedir="$ac_optarg" ;;
260
261   -infodir | --infodir | --infodi | --infod | --info | --inf)
262     ac_prev=infodir ;;
263   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
264     infodir="$ac_optarg" ;;
265
266   -libdir | --libdir | --libdi | --libd)
267     ac_prev=libdir ;;
268   -libdir=* | --libdir=* | --libdi=* | --libd=*)
269     libdir="$ac_optarg" ;;
270
271   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
272   | --libexe | --libex | --libe)
273     ac_prev=libexecdir ;;
274   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
275   | --libexe=* | --libex=* | --libe=*)
276     libexecdir="$ac_optarg" ;;
277
278   -localstatedir | --localstatedir | --localstatedi | --localstated \
279   | --localstate | --localstat | --localsta | --localst \
280   | --locals | --local | --loca | --loc | --lo)
281     ac_prev=localstatedir ;;
282   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
283   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
284   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
285     localstatedir="$ac_optarg" ;;
286
287   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
288     ac_prev=mandir ;;
289   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290     mandir="$ac_optarg" ;;
291
292   -nfp | --nfp | --nf)
293     # Obsolete; use --without-fp.
294     with_fp=no ;;
295
296   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297   | --no-cr | --no-c)
298     no_create=yes ;;
299
300   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
301   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
302     no_recursion=yes ;;
303
304   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
305   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
306   | --oldin | --oldi | --old | --ol | --o)
307     ac_prev=oldincludedir ;;
308   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
309   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
310   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
311     oldincludedir="$ac_optarg" ;;
312
313   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
314     ac_prev=prefix ;;
315   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316     prefix="$ac_optarg" ;;
317
318   -program-prefix | --program-prefix | --program-prefi | --program-pref \
319   | --program-pre | --program-pr | --program-p)
320     ac_prev=program_prefix ;;
321   -program-prefix=* | --program-prefix=* | --program-prefi=* \
322   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
323     program_prefix="$ac_optarg" ;;
324
325   -program-suffix | --program-suffix | --program-suffi | --program-suff \
326   | --program-suf | --program-su | --program-s)
327     ac_prev=program_suffix ;;
328   -program-suffix=* | --program-suffix=* | --program-suffi=* \
329   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
330     program_suffix="$ac_optarg" ;;
331
332   -program-transform-name | --program-transform-name \
333   | --program-transform-nam | --program-transform-na \
334   | --program-transform-n | --program-transform- \
335   | --program-transform | --program-transfor \
336   | --program-transfo | --program-transf \
337   | --program-trans | --program-tran \
338   | --progr-tra | --program-tr | --program-t)
339     ac_prev=program_transform_name ;;
340   -program-transform-name=* | --program-transform-name=* \
341   | --program-transform-nam=* | --program-transform-na=* \
342   | --program-transform-n=* | --program-transform-=* \
343   | --program-transform=* | --program-transfor=* \
344   | --program-transfo=* | --program-transf=* \
345   | --program-trans=* | --program-tran=* \
346   | --progr-tra=* | --program-tr=* | --program-t=*)
347     program_transform_name="$ac_optarg" ;;
348
349   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
350   | -silent | --silent | --silen | --sile | --sil)
351     silent=yes ;;
352
353   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
354     ac_prev=sbindir ;;
355   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
356   | --sbi=* | --sb=*)
357     sbindir="$ac_optarg" ;;
358
359   -sharedstatedir | --sharedstatedir | --sharedstatedi \
360   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
361   | --sharedst | --shareds | --shared | --share | --shar \
362   | --sha | --sh)
363     ac_prev=sharedstatedir ;;
364   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
365   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
366   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
367   | --sha=* | --sh=*)
368     sharedstatedir="$ac_optarg" ;;
369
370   -site | --site | --sit)
371     ac_prev=site ;;
372   -site=* | --site=* | --sit=*)
373     site="$ac_optarg" ;;
374
375   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
376     ac_prev=srcdir ;;
377   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378     srcdir="$ac_optarg" ;;
379
380   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
381   | --syscon | --sysco | --sysc | --sys | --sy)
382     ac_prev=sysconfdir ;;
383   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
384   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
385     sysconfdir="$ac_optarg" ;;
386
387   -target | --target | --targe | --targ | --tar | --ta | --t)
388     ac_prev=target ;;
389   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
390     target="$ac_optarg" ;;
391
392   -v | -verbose | --verbose | --verbos | --verbo | --verb)
393     verbose=yes ;;
394
395   -version | --version | --versio | --versi | --vers)
396     echo "configure generated by autoconf version 2.13"
397     exit 0 ;;
398
399   -with-* | --with-*)
400     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401     # Reject names that are not valid shell variable names.
402     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404     fi
405     ac_package=`echo $ac_package| sed 's/-/_/g'`
406     case "$ac_option" in
407       *=*) ;;
408       *) ac_optarg=yes ;;
409     esac
410     eval "with_${ac_package}='$ac_optarg'" ;;
411
412   -without-* | --without-*)
413     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
414     # Reject names that are not valid shell variable names.
415     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417     fi
418     ac_package=`echo $ac_package| sed 's/-/_/g'`
419     eval "with_${ac_package}=no" ;;
420
421   --x)
422     # Obsolete; use --with-x.
423     with_x=yes ;;
424
425   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
426   | --x-incl | --x-inc | --x-in | --x-i)
427     ac_prev=x_includes ;;
428   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
429   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
430     x_includes="$ac_optarg" ;;
431
432   -x-libraries | --x-libraries | --x-librarie | --x-librari \
433   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
434     ac_prev=x_libraries ;;
435   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
436   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
437     x_libraries="$ac_optarg" ;;
438
439   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440     ;;
441
442   *)
443     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444       echo "configure: warning: $ac_option: invalid host type" 1>&2
445     fi
446     if test "x$nonopt" != xNONE; then
447       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
448     fi
449     nonopt="$ac_option"
450     ;;
451
452   esac
453 done
454
455 if test -n "$ac_prev"; then
456   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 fi
458
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
460
461 # File descriptor usage:
462 # 0 standard input
463 # 1 file creation
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
470   exec 6>/dev/null
471 else
472   exec 6>&1
473 fi
474 exec 5>./config.log
475
476 echo "\
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
479 " 1>&5
480
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
483 ac_configure_args=
484 for ac_arg
485 do
486   case "$ac_arg" in
487   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488   | --no-cr | --no-c) ;;
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
491   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
493   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
494   esac
495 done
496
497 # NLS nuisances.
498 # Only set these to C if already set.  These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
503 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
505 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
506
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 echo > confdefs.h
511
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file=src/ios.cc
515
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518   ac_srcdir_defaulted=yes
519   # Try the directory containing this script, then its parent.
520   ac_prog=$0
521   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
523   srcdir=$ac_confdir
524   if test ! -r $srcdir/$ac_unique_file; then
525     srcdir=..
526   fi
527 else
528   ac_srcdir_defaulted=no
529 fi
530 if test ! -r $srcdir/$ac_unique_file; then
531   if test "$ac_srcdir_defaulted" = yes; then
532     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
533   else
534     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535   fi
536 fi
537 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
538
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541   if test "x$prefix" != xNONE; then
542     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
543   else
544     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
545   fi
546 fi
547 for ac_site_file in $CONFIG_SITE; do
548   if test -r "$ac_site_file"; then
549     echo "loading site script $ac_site_file"
550     . "$ac_site_file"
551   fi
552 done
553
554 if test -r "$cache_file"; then
555   echo "loading cache $cache_file"
556   . $cache_file
557 else
558   echo "creating cache $cache_file"
559   > $cache_file
560 fi
561
562 ac_ext=c
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp='$CPP $CPPFLAGS'
565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling=$ac_cv_prog_cc_cross
568
569 ac_exeext=
570 ac_objext=o
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574     ac_n= ac_c='
575 ' ac_t='        '
576   else
577     ac_n=-n ac_c= ac_t=
578   fi
579 else
580   ac_n= ac_c='\c' ac_t=
581 fi
582
583
584
585 # This works around the fact that libtool configuration may change LD
586 # for this particular configuration, but some shells, instead of
587 # keeping the changes in LD private, export them just because LD is
588 # exported.  Only used at the end of this file.
589 ORIGINAL_LD_FOR_MULTILIBS=$LD
590
591 PACKAGE=libstdc++
592
593 # For libtool versioning info, format is CURRENT:REVISION:AGE
594 libtool_VERSION=5:2:0
595
596
597
598       # Check whether --enable-multilib or --disable-multilib was given.
599 if test "${enable_multilib+set}" = set; then
600   enableval="$enable_multilib"
601   case "${enableval}" in
602     yes) multilib=yes ;;
603     no)  multilib=no ;;
604     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
605    esac
606 else
607   multilib=yes
608 fi
609
610   # When building with srcdir == objdir, links to the source files will
611   # be created in directories within the target_subdir.  We have to
612   # adjust toplevel_srcdir accordingly, so that configure finds
613   # install-sh and other auxiliary files that live in the top-level
614   # source directory.
615   if test "${srcdir}" = "."; then
616     if test -z "${with_target_subdir}"; then
617       toprel=".."
618     else
619       if test "${with_target_subdir}" != "."; then
620         toprel="${with_multisrctop}../.."
621       else
622         toprel="${with_multisrctop}.."
623       fi
624     fi
625   else
626     toprel=".."
627   fi
628   ac_aux_dir=
629 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
630   if test -f $ac_dir/install-sh; then
631     ac_aux_dir=$ac_dir
632     ac_install_sh="$ac_aux_dir/install-sh -c"
633     break
634   elif test -f $ac_dir/install.sh; then
635     ac_aux_dir=$ac_dir
636     ac_install_sh="$ac_aux_dir/install.sh -c"
637     break
638   fi
639 done
640 if test -z "$ac_aux_dir"; then
641   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
642 fi
643 ac_config_guess=$ac_aux_dir/config.guess
644 ac_config_sub=$ac_aux_dir/config.sub
645 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
646
647   toplevel_srcdir=\${top_srcdir}/$toprel
648   
649
650
651 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
652 #
653 # You will slowly go insane if you do not grok the following fact:  when
654 # building v3 as part of the compiler, the top-level /target/ becomes the
655 # library's /host/.  `configure' then causes --target to default to --host,
656 # exactly like any other package using autoconf.  Therefore, 'target' and
657 # 'host' will always be the same.  This makes sense both for native and
658 # cross compilers, just think about it for a little while.  :-)
659 #
660 # Also, if v3 is being configured as part of a cross compiler, the top-level
661 # configure script will pass the "real" host as $with_cross_host.
662 #
663 # AC 2.5x sets target_alias iff the user specified --target, but we use it
664 # everywhere, so we set it here just to be sure.  In AC 2.13
665 # AC_CANONICAL_TARGET was known as AC_CANONICAL_SYSTEM.
666
667 # Do some error checking and defaulting for the host and target type.
668 # The inputs are:
669 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
670 #
671 # The rules are:
672 # 1. You are not allowed to specify --host, --target, and nonopt at the
673 #    same time.
674 # 2. Host defaults to nonopt.
675 # 3. If nonopt is not specified, then host defaults to the current host,
676 #    as determined by config.guess.
677 # 4. Target and build default to nonopt.
678 # 5. If nonopt is not specified, then target and build default to host.
679
680 # The aliases save the names the user supplied, while $host etc.
681 # will get canonicalized.
682 case $host---$target---$nonopt in
683 NONE---*---* | *---NONE---* | *---*---NONE) ;;
684 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
685 esac
686
687
688 # Make sure we can run config.sub.
689 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
691 fi
692
693 echo $ac_n "checking host system type""... $ac_c" 1>&6
694 echo "configure:695: checking host system type" >&5
695
696 host_alias=$host
697 case "$host_alias" in
698 NONE)
699   case $nonopt in
700   NONE)
701     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
702     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
703     fi ;;
704   *) host_alias=$nonopt ;;
705   esac ;;
706 esac
707
708 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
709 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
710 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
711 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo "$ac_t""$host" 1>&6
713
714 echo $ac_n "checking target system type""... $ac_c" 1>&6
715 echo "configure:716: checking target system type" >&5
716
717 target_alias=$target
718 case "$target_alias" in
719 NONE)
720   case $nonopt in
721   NONE) target_alias=$host_alias ;;
722   *) target_alias=$nonopt ;;
723   esac ;;
724 esac
725
726 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
727 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
728 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
729 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
730 echo "$ac_t""$target" 1>&6
731
732 echo $ac_n "checking build system type""... $ac_c" 1>&6
733 echo "configure:734: checking build system type" >&5
734
735 build_alias=$build
736 case "$build_alias" in
737 NONE)
738   case $nonopt in
739   NONE) build_alias=$host_alias ;;
740   *) build_alias=$nonopt ;;
741   esac ;;
742 esac
743
744 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
745 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
746 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
747 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
748 echo "$ac_t""$build" 1>&6
749
750 test "$host_alias" != "$target_alias" &&
751   test "$program_prefix$program_suffix$program_transform_name" = \
752     NONENONEs,x,x, &&
753   program_prefix=${target_alias}-
754
755 target_alias=${target_alias-$target}
756
757
758 # Runs configure.target, finds CC, CXX and assorted other critical bits.
759 # Must run this before the GLIBCPP_ENABLE_* macros below.
760 if test $host != $build; then
761   ac_tool_prefix=${host_alias}-
762 else
763   ac_tool_prefix=
764 fi
765
766 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
767 echo "configure:768: checking for Cygwin environment" >&5
768 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
769   echo $ac_n "(cached) $ac_c" 1>&6
770 else
771   cat > conftest.$ac_ext <<EOF
772 #line 773 "configure"
773 #include "confdefs.h"
774
775 int main() {
776
777 #ifndef __CYGWIN__
778 #define __CYGWIN__ __CYGWIN32__
779 #endif
780 return __CYGWIN__;
781 ; return 0; }
782 EOF
783 if { (eval echo configure:784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
784   rm -rf conftest*
785   ac_cv_cygwin=yes
786 else
787   echo "configure: failed program was:" >&5
788   cat conftest.$ac_ext >&5
789   rm -rf conftest*
790   ac_cv_cygwin=no
791 fi
792 rm -f conftest*
793 rm -f conftest*
794 fi
795
796 echo "$ac_t""$ac_cv_cygwin" 1>&6
797 CYGWIN=
798 test "$ac_cv_cygwin" = yes && CYGWIN=yes
799 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
800 echo "configure:801: checking for mingw32 environment" >&5
801 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
802   echo $ac_n "(cached) $ac_c" 1>&6
803 else
804   cat > conftest.$ac_ext <<EOF
805 #line 806 "configure"
806 #include "confdefs.h"
807
808 int main() {
809 return __MINGW32__;
810 ; return 0; }
811 EOF
812 if { (eval echo configure:813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
813   rm -rf conftest*
814   ac_cv_mingw32=yes
815 else
816   echo "configure: failed program was:" >&5
817   cat conftest.$ac_ext >&5
818   rm -rf conftest*
819   ac_cv_mingw32=no
820 fi
821 rm -f conftest*
822 rm -f conftest*
823 fi
824
825 echo "$ac_t""$ac_cv_mingw32" 1>&6
826 MINGW32=
827 test "$ac_cv_mingw32" = yes && MINGW32=yes
828
829   # Export build and source directories.
830   # These need to be absolute paths, yet at the same time need to
831   # canonicalize only relative paths, because then amd will not unmount
832   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
833   glibcpp_builddir=`${PWDCMD-pwd}`
834   case $srcdir in
835   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
836   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
837   esac
838   
839   
840
841     
842
843   for ac_prog in gawk mawk nawk awk
844 do
845 # Extract the first word of "$ac_prog", so it can be a program name with args.
846 set dummy $ac_prog; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
850   echo $ac_n "(cached) $ac_c" 1>&6
851 else
852   if test -n "$AWK"; then
853   ac_cv_prog_AWK="$AWK" # Let the user override the test.
854 else
855   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
856   ac_dummy="$PATH"
857   for ac_dir in $ac_dummy; do
858     test -z "$ac_dir" && ac_dir=.
859     if test -f $ac_dir/$ac_word; then
860       ac_cv_prog_AWK="$ac_prog"
861       break
862     fi
863   done
864   IFS="$ac_save_ifs"
865 fi
866 fi
867 AWK="$ac_cv_prog_AWK"
868 if test -n "$AWK"; then
869   echo "$ac_t""$AWK" 1>&6
870 else
871   echo "$ac_t""no" 1>&6
872 fi
873
874 test -n "$AWK" && break
875 done
876
877   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
878   # be 'cp -p' if linking isn't available.  Uncomment the next line to
879   # force a particular method.
880   #ac_cv_prog_LN_S='cp -p'
881   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
882 echo "configure:883: checking whether ln -s works" >&5
883 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
884   echo $ac_n "(cached) $ac_c" 1>&6
885 else
886   rm -f conftestdata
887 if ln -s X conftestdata 2>/dev/null
888 then
889   rm -f conftestdata
890   ac_cv_prog_LN_S="ln -s"
891 else
892   ac_cv_prog_LN_S=ln
893 fi
894 fi
895 LN_S="$ac_cv_prog_LN_S"
896 if test "$ac_cv_prog_LN_S" = "ln -s"; then
897   echo "$ac_t""yes" 1>&6
898 else
899   echo "$ac_t""no" 1>&6
900 fi
901
902
903   # We use these options to decide which functions to include.
904   # Check whether --with-target-subdir or --without-target-subdir was given.
905 if test "${with_target_subdir+set}" = set; then
906   withval="$with_target_subdir"
907   :
908 fi
909
910   # Check whether --with-cross-host or --without-cross-host was given.
911 if test "${with_cross_host+set}" = set; then
912   withval="$with_cross_host"
913   :
914 fi
915
916
917   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
918   
919
920   # Never versions of autoconf add an underscore to these functions.
921   # Prevent future problems ...
922   
923   
924   
925   
926
927   # AC_PROG_CC
928   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
929   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
930   # are probably using a cross compiler, which will not be able to fully
931   # link an executable.  This is addressed in later versions of autoconf.
932
933   
934
935       
936   # Extract the first word of "gcc", so it can be a program name with args.
937 set dummy gcc; ac_word=$2
938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
939 echo "configure:940: checking for $ac_word" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
941   echo $ac_n "(cached) $ac_c" 1>&6
942 else
943   if test -n "$CC"; then
944   ac_cv_prog_CC="$CC" # Let the user override the test.
945 else
946   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
947   ac_dummy="$PATH"
948   for ac_dir in $ac_dummy; do
949     test -z "$ac_dir" && ac_dir=.
950     if test -f $ac_dir/$ac_word; then
951       ac_cv_prog_CC="gcc"
952       break
953     fi
954   done
955   IFS="$ac_save_ifs"
956 fi
957 fi
958 CC="$ac_cv_prog_CC"
959 if test -n "$CC"; then
960   echo "$ac_t""$CC" 1>&6
961 else
962   echo "$ac_t""no" 1>&6
963 fi
964
965   if test -z "$CC"; then
966     # Extract the first word of "cc", so it can be a program name with args.
967 set dummy cc; ac_word=$2
968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
969 echo "configure:970: checking for $ac_word" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
971   echo $ac_n "(cached) $ac_c" 1>&6
972 else
973   if test -n "$CC"; then
974   ac_cv_prog_CC="$CC" # Let the user override the test.
975 else
976   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
977   ac_prog_rejected=no
978   ac_dummy="$PATH"
979   for ac_dir in $ac_dummy; do
980     test -z "$ac_dir" && ac_dir=.
981     if test -f $ac_dir/$ac_word; then
982       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
983         ac_prog_rejected=yes
984         continue
985       fi
986       ac_cv_prog_CC="cc"
987       break
988     fi
989   done
990   IFS="$ac_save_ifs"
991 if test $ac_prog_rejected = yes; then
992   # We found a bogon in the path, so make sure we never use it.
993   set dummy $ac_cv_prog_CC
994   shift
995   if test $# -gt 0; then
996     # We chose a different compiler from the bogus one.
997     # However, it has the same basename, so the bogon will be chosen
998     # first if we set CC to just the basename; use the full file name.
999     shift
1000     set dummy "$ac_dir/$ac_word" "$@"
1001     shift
1002     ac_cv_prog_CC="$@"
1003   fi
1004 fi
1005 fi
1006 fi
1007 CC="$ac_cv_prog_CC"
1008 if test -n "$CC"; then
1009   echo "$ac_t""$CC" 1>&6
1010 else
1011   echo "$ac_t""no" 1>&6
1012 fi
1013
1014     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1015   fi
1016
1017   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1018 echo "configure:1019: checking whether we are using GNU C" >&5
1019 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1020   echo $ac_n "(cached) $ac_c" 1>&6
1021 else
1022   cat > conftest.c <<EOF
1023 #ifdef __GNUC__
1024   yes;
1025 #endif
1026 EOF
1027 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1028   ac_cv_prog_gcc=yes
1029 else
1030   ac_cv_prog_gcc=no
1031 fi
1032 fi
1033
1034 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1035
1036   if test $ac_cv_prog_gcc = yes; then
1037     GCC=yes
1038           ac_test_CFLAGS="${CFLAGS+set}"
1039     ac_save_CFLAGS="$CFLAGS"
1040     CFLAGS=
1041     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1042 echo "configure:1043: checking whether ${CC-cc} accepts -g" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1044   echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1046   echo 'void f(){}' > conftest.c
1047 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1048   ac_cv_prog_cc_g=yes
1049 else
1050   ac_cv_prog_cc_g=no
1051 fi
1052 rm -f conftest*
1053
1054 fi
1055
1056 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1057     if test "$ac_test_CFLAGS" = set; then
1058       CFLAGS="$ac_save_CFLAGS"
1059     elif test $ac_cv_prog_cc_g = yes; then
1060       CFLAGS="-g -O2"
1061     else
1062       CFLAGS="-O2"
1063     fi
1064   else
1065     GCC=
1066     test "${CFLAGS+set}" = set || CFLAGS="-g"
1067   fi
1068   
1069
1070   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1071   # will try to link in libstdc++.
1072   
1073
1074       
1075   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1076   # flags that come in CXX while configuring libstdc++.  They're different
1077   # from those used for all other target libraries.  If CXX is set in
1078   # the environment, respect that here.
1079   glibcpp_CXX=$CXX
1080   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1081 do
1082 # Extract the first word of "$ac_prog", so it can be a program name with args.
1083 set dummy $ac_prog; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1087   echo $ac_n "(cached) $ac_c" 1>&6
1088 else
1089   if test -n "$glibcpp_CXX"; then
1090   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1091 else
1092   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1093   ac_dummy="$PATH"
1094   for ac_dir in $ac_dummy; do
1095     test -z "$ac_dir" && ac_dir=.
1096     if test -f $ac_dir/$ac_word; then
1097       ac_cv_prog_glibcpp_CXX="$ac_prog"
1098       break
1099     fi
1100   done
1101   IFS="$ac_save_ifs"
1102 fi
1103 fi
1104 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1105 if test -n "$glibcpp_CXX"; then
1106   echo "$ac_t""$glibcpp_CXX" 1>&6
1107 else
1108   echo "$ac_t""no" 1>&6
1109 fi
1110
1111 test -n "$glibcpp_CXX" && break
1112 done
1113 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1114
1115   
1116   CXX=$glibcpp_CXX
1117   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1118
1119   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether we are using GNU C++" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1122   echo $ac_n "(cached) $ac_c" 1>&6
1123 else
1124   cat > conftest.C <<EOF
1125 #ifdef __GNUC__
1126   yes;
1127 #endif
1128 EOF
1129 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1130   ac_cv_prog_gxx=yes
1131 else
1132   ac_cv_prog_gxx=no
1133 fi
1134 fi
1135
1136 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1137
1138   if test $ac_cv_prog_gxx = yes; then
1139     GXX=yes
1140                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1141     ac_save_CXXFLAGS="$CXXFLAGS"
1142     CXXFLAGS=
1143     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether ${CXX-g++} accepts -g" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1146   echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148   echo 'void f(){}' > conftest.cc
1149 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1150   ac_cv_prog_cxx_g=yes
1151 else
1152   ac_cv_prog_cxx_g=no
1153 fi
1154 rm -f conftest*
1155
1156 fi
1157
1158 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1159     if test "$ac_test_CXXFLAGS" = set; then
1160       CXXFLAGS="$ac_save_CXXFLAGS"
1161     elif test $ac_cv_prog_cxx_g = yes; then
1162       CXXFLAGS="-g -O2"
1163     else
1164       CXXFLAGS="-O2"
1165     fi
1166   else
1167     GXX=
1168     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1169   fi
1170   
1171
1172   # For directory versioning (e.g., headers) and other variables.
1173   echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1174 echo "configure:1175: checking for GCC version number" >&5
1175   gcc_version=`$glibcpp_CXX -dumpversion`
1176   echo "$ac_t""$gcc_version" 1>&6
1177
1178   # For some reason, gettext needs this.
1179   
1180         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1181 echo "configure:1182: checking for strerror in -lcposix" >&5
1182 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1184   echo $ac_n "(cached) $ac_c" 1>&6
1185 else
1186   ac_save_LIBS="$LIBS"
1187 LIBS="-lcposix  $LIBS"
1188 cat > conftest.$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1191 /* Override any gcc2 internal prototype to avoid an error.  */
1192 /* We use char because int might match the return type of a gcc2
1193     builtin and then its argument prototype would still apply.  */
1194 char strerror();
1195
1196 int main() {
1197 strerror()
1198 ; return 0; }
1199 EOF
1200 if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1201   rm -rf conftest*
1202   eval "ac_cv_lib_$ac_lib_var=yes"
1203 else
1204   echo "configure: failed program was:" >&5
1205   cat conftest.$ac_ext >&5
1206   rm -rf conftest*
1207   eval "ac_cv_lib_$ac_lib_var=no"
1208 fi
1209 rm -f conftest*
1210 LIBS="$ac_save_LIBS"
1211
1212 fi
1213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1214   echo "$ac_t""yes" 1>&6
1215   LIBS="$LIBS -lcposix"
1216 else
1217   echo "$ac_t""no" 1>&6
1218 fi
1219
1220   
1221
1222
1223   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1224 set dummy ${ac_tool_prefix}as; ac_word=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1228   echo $ac_n "(cached) $ac_c" 1>&6
1229 else
1230   if test -n "$AS"; then
1231   ac_cv_prog_AS="$AS" # Let the user override the test.
1232 else
1233   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1234   ac_dummy="$PATH"
1235   for ac_dir in $ac_dummy; do
1236     test -z "$ac_dir" && ac_dir=.
1237     if test -f $ac_dir/$ac_word; then
1238       ac_cv_prog_AS="${ac_tool_prefix}as"
1239       break
1240     fi
1241   done
1242   IFS="$ac_save_ifs"
1243   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1244 fi
1245 fi
1246 AS="$ac_cv_prog_AS"
1247 if test -n "$AS"; then
1248   echo "$ac_t""$AS" 1>&6
1249 else
1250   echo "$ac_t""no" 1>&6
1251 fi
1252
1253
1254
1255   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1256 set dummy ${ac_tool_prefix}ar; ac_word=$2
1257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1258 echo "configure:1259: checking for $ac_word" >&5
1259 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1260   echo $ac_n "(cached) $ac_c" 1>&6
1261 else
1262   if test -n "$AR"; then
1263   ac_cv_prog_AR="$AR" # Let the user override the test.
1264 else
1265   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1266   ac_dummy="$PATH"
1267   for ac_dir in $ac_dummy; do
1268     test -z "$ac_dir" && ac_dir=.
1269     if test -f $ac_dir/$ac_word; then
1270       ac_cv_prog_AR="${ac_tool_prefix}ar"
1271       break
1272     fi
1273   done
1274   IFS="$ac_save_ifs"
1275   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1276 fi
1277 fi
1278 AR="$ac_cv_prog_AR"
1279 if test -n "$AR"; then
1280   echo "$ac_t""$AR" 1>&6
1281 else
1282   echo "$ac_t""no" 1>&6
1283 fi
1284
1285
1286
1287   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1288 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290 echo "configure:1291: checking for $ac_word" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1292   echo $ac_n "(cached) $ac_c" 1>&6
1293 else
1294   if test -n "$RANLIB"; then
1295   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1296 else
1297   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1298   ac_dummy="$PATH"
1299   for ac_dir in $ac_dummy; do
1300     test -z "$ac_dir" && ac_dir=.
1301     if test -f $ac_dir/$ac_word; then
1302       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1303       break
1304     fi
1305   done
1306   IFS="$ac_save_ifs"
1307 fi
1308 fi
1309 RANLIB="$ac_cv_prog_RANLIB"
1310 if test -n "$RANLIB"; then
1311   echo "$ac_t""$RANLIB" 1>&6
1312 else
1313   echo "$ac_t""no" 1>&6
1314 fi
1315
1316
1317 if test -z "$ac_cv_prog_RANLIB"; then
1318 if test -n "$ac_tool_prefix"; then
1319   # Extract the first word of "ranlib", so it can be a program name with args.
1320 set dummy ranlib; ac_word=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1324   echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326   if test -n "$RANLIB"; then
1327   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1328 else
1329   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1330   ac_dummy="$PATH"
1331   for ac_dir in $ac_dummy; do
1332     test -z "$ac_dir" && ac_dir=.
1333     if test -f $ac_dir/$ac_word; then
1334       ac_cv_prog_RANLIB="ranlib"
1335       break
1336     fi
1337   done
1338   IFS="$ac_save_ifs"
1339   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1340 fi
1341 fi
1342 RANLIB="$ac_cv_prog_RANLIB"
1343 if test -n "$RANLIB"; then
1344   echo "$ac_t""$RANLIB" 1>&6
1345 else
1346   echo "$ac_t""no" 1>&6
1347 fi
1348
1349 else
1350   RANLIB="ranlib-not-found-in-path-error"
1351 fi
1352 fi
1353
1354   # Find a good install program.  We prefer a C program (faster),
1355 # so one script is as good as another.  But avoid the broken or
1356 # incompatible versions:
1357 # SysV /etc/install, /usr/sbin/install
1358 # SunOS /usr/etc/install
1359 # IRIX /sbin/install
1360 # AIX /bin/install
1361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1364 # ./install, which can be erroneously created by make from ./install.sh.
1365 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1366 echo "configure:1367: checking for a BSD compatible install" >&5
1367 if test -z "$INSTALL"; then
1368 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1369   echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1372   for ac_dir in $PATH; do
1373     # Account for people who put trailing slashes in PATH elements.
1374     case "$ac_dir/" in
1375     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1376     *)
1377       # OSF1 and SCO ODT 3.0 have their own names for install.
1378       # Don't use installbsd from OSF since it installs stuff as root
1379       # by default.
1380       for ac_prog in ginstall scoinst install; do
1381         if test -f $ac_dir/$ac_prog; then
1382           if test $ac_prog = install &&
1383             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1384             # AIX install.  It has an incompatible calling convention.
1385             :
1386           else
1387             ac_cv_path_install="$ac_dir/$ac_prog -c"
1388             break 2
1389           fi
1390         fi
1391       done
1392       ;;
1393     esac
1394   done
1395   IFS="$ac_save_IFS"
1396
1397 fi
1398   if test "${ac_cv_path_install+set}" = set; then
1399     INSTALL="$ac_cv_path_install"
1400   else
1401     # As a last resort, use the slow shell script.  We don't cache a
1402     # path for INSTALL within a source directory, because that will
1403     # break other packages using the cache if that directory is
1404     # removed, or if the path is relative.
1405     INSTALL="$ac_install_sh"
1406   fi
1407 fi
1408 echo "$ac_t""$INSTALL" 1>&6
1409
1410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1411 # It thinks the first close brace ends the variable substitution.
1412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1413
1414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1415
1416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1417
1418
1419   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether to enable maintainer-specific portions of Makefiles" >&5
1421     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1422 if test "${enable_maintainer_mode+set}" = set; then
1423   enableval="$enable_maintainer_mode"
1424   USE_MAINTAINER_MODE=$enableval
1425 else
1426   USE_MAINTAINER_MODE=no
1427 fi
1428
1429   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1430   
1431
1432 if test $USE_MAINTAINER_MODE = yes; then
1433   MAINTAINER_MODE_TRUE=
1434   MAINTAINER_MODE_FALSE='#'
1435 else
1436   MAINTAINER_MODE_TRUE='#'
1437   MAINTAINER_MODE_FALSE=
1438 fi
1439   MAINT=$MAINTAINER_MODE_TRUE
1440   
1441
1442
1443   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1444   # at least currently, we never actually build a program, so we never
1445   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1446   # fails, because we are probably configuring with a cross compiler
1447   # which can't create executables.  So we include AC_EXEEXT to keep
1448   # automake happy, but we don't execute it, since we don't care about
1449   # the result.
1450   if false; then
1451     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1452     # to nothing, so nothing would remain between `then' and `fi' if it
1453     # were not for the `:' below.
1454     :
1455     
1456
1457 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1458 echo "configure:1459: checking for executable suffix" >&5
1459 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1460   echo $ac_n "(cached) $ac_c" 1>&6
1461 else
1462   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1463   ac_cv_exeext=.exe
1464 else
1465   rm -f conftest*
1466   echo 'int main () { return 0; }' > conftest.$ac_ext
1467   ac_cv_exeext=
1468   if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1469     for file in conftest.*; do
1470       case $file in
1471       *.c | *.o | *.obj) ;;
1472       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1473       esac
1474     done
1475   else
1476     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1477   fi
1478   rm -f conftest*
1479   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1480 fi
1481 fi
1482
1483 EXEEXT=""
1484 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1485 echo "$ac_t""${ac_cv_exeext}" 1>&6
1486 ac_exeext=$EXEEXT
1487
1488   fi
1489
1490   case ${glibcpp_basedir} in
1491     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1492     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1493   esac
1494
1495   # Find platform-specific directories containing configuration info.  In
1496   # addition to possibly modifying the same flags, it also sets up symlinks.
1497   
1498   . ${glibcpp_basedir}/configure.target
1499   echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1500   echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1501
1502
1503
1504 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1505 echo "configure:1506: checking whether build environment is sane" >&5
1506 # Just in case
1507 sleep 1
1508 echo timestamp > conftestfile
1509 # Do `set' in a subshell so we don't clobber the current shell's
1510 # arguments.  Must try -L first in case configure is actually a
1511 # symlink; some systems play weird games with the mod time of symlinks
1512 # (eg FreeBSD returns the mod time of the symlink's containing
1513 # directory).
1514 if (
1515    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1516    if test "$*" = "X"; then
1517       # -L didn't work.
1518       set X `ls -t $srcdir/configure conftestfile`
1519    fi
1520    if test "$*" != "X $srcdir/configure conftestfile" \
1521       && test "$*" != "X conftestfile $srcdir/configure"; then
1522
1523       # If neither matched, then we have a broken ls.  This can happen
1524       # if, for instance, CONFIG_SHELL is bash and it inherits a
1525       # broken ls alias from the environment.  This has actually
1526       # happened.  Such a system could not be considered "sane".
1527       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1528 alias in your environment" 1>&2; exit 1; }
1529    fi
1530
1531    test "$2" = conftestfile
1532    )
1533 then
1534    # Ok.
1535    :
1536 else
1537    { echo "configure: error: newly created file is older than distributed files!
1538 Check your system clock" 1>&2; exit 1; }
1539 fi
1540 rm -f conftest*
1541 echo "$ac_t""yes" 1>&6
1542 if test "$program_transform_name" = s,x,x,; then
1543   program_transform_name=
1544 else
1545   # Double any \ or $.  echo might interpret backslashes.
1546   cat <<\EOF_SED > conftestsed
1547 s,\\,\\\\,g; s,\$,$$,g
1548 EOF_SED
1549   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1550   rm -f conftestsed
1551 fi
1552 test "$program_prefix" != NONE &&
1553   program_transform_name="s,^,${program_prefix},; $program_transform_name"
1554 # Use a double $ so make ignores it.
1555 test "$program_suffix" != NONE &&
1556   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1557
1558 # sed with no file args requires a program.
1559 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1560
1561 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1562 echo "configure:1563: checking whether ${MAKE-make} sets \${MAKE}" >&5
1563 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1564 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1565   echo $ac_n "(cached) $ac_c" 1>&6
1566 else
1567   cat > conftestmake <<\EOF
1568 all:
1569         @echo 'ac_maketemp="${MAKE}"'
1570 EOF
1571 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1572 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1573 if test -n "$ac_maketemp"; then
1574   eval ac_cv_prog_make_${ac_make}_set=yes
1575 else
1576   eval ac_cv_prog_make_${ac_make}_set=no
1577 fi
1578 rm -f conftestmake
1579 fi
1580 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1581   echo "$ac_t""yes" 1>&6
1582   SET_MAKE=
1583 else
1584   echo "$ac_t""no" 1>&6
1585   SET_MAKE="MAKE=${MAKE-make}"
1586 fi
1587
1588
1589 PACKAGE=$PACKAGE
1590
1591 VERSION=$gcc_version
1592
1593 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1594   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1595 fi
1596 cat >> confdefs.h <<EOF
1597 #define PACKAGE "$PACKAGE"
1598 EOF
1599
1600 cat >> confdefs.h <<EOF
1601 #define VERSION "$VERSION"
1602 EOF
1603
1604
1605
1606 missing_dir=`cd $ac_aux_dir && pwd`
1607 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1608 echo "configure:1609: checking for working aclocal" >&5
1609 # Run test in a subshell; some versions of sh will print an error if
1610 # an executable is not found, even if stderr is redirected.
1611 # Redirect stdin to placate older versions of autoconf.  Sigh.
1612 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1613    ACLOCAL=aclocal
1614    echo "$ac_t""found" 1>&6
1615 else
1616    ACLOCAL="$missing_dir/missing aclocal"
1617    echo "$ac_t""missing" 1>&6
1618 fi
1619
1620 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1621 echo "configure:1622: checking for working autoconf" >&5
1622 # Run test in a subshell; some versions of sh will print an error if
1623 # an executable is not found, even if stderr is redirected.
1624 # Redirect stdin to placate older versions of autoconf.  Sigh.
1625 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1626    AUTOCONF=autoconf
1627    echo "$ac_t""found" 1>&6
1628 else
1629    AUTOCONF="$missing_dir/missing autoconf"
1630    echo "$ac_t""missing" 1>&6
1631 fi
1632
1633 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1634 echo "configure:1635: checking for working automake" >&5
1635 # Run test in a subshell; some versions of sh will print an error if
1636 # an executable is not found, even if stderr is redirected.
1637 # Redirect stdin to placate older versions of autoconf.  Sigh.
1638 if (automake --version) < /dev/null > /dev/null 2>&1; then
1639    AUTOMAKE=automake
1640    echo "$ac_t""found" 1>&6
1641 else
1642    AUTOMAKE="$missing_dir/missing automake"
1643    echo "$ac_t""missing" 1>&6
1644 fi
1645
1646 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1647 echo "configure:1648: checking for working autoheader" >&5
1648 # Run test in a subshell; some versions of sh will print an error if
1649 # an executable is not found, even if stderr is redirected.
1650 # Redirect stdin to placate older versions of autoconf.  Sigh.
1651 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1652    AUTOHEADER=autoheader
1653    echo "$ac_t""found" 1>&6
1654 else
1655    AUTOHEADER="$missing_dir/missing autoheader"
1656    echo "$ac_t""missing" 1>&6
1657 fi
1658
1659 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1660 echo "configure:1661: checking for working makeinfo" >&5
1661 # Run test in a subshell; some versions of sh will print an error if
1662 # an executable is not found, even if stderr is redirected.
1663 # Redirect stdin to placate older versions of autoconf.  Sigh.
1664 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1665    MAKEINFO=makeinfo
1666    echo "$ac_t""found" 1>&6
1667 else
1668    MAKEINFO="$missing_dir/missing makeinfo"
1669    echo "$ac_t""missing" 1>&6
1670 fi
1671
1672
1673
1674
1675
1676
1677
1678 # Check whether --enable-shared or --disable-shared was given.
1679 if test "${enable_shared+set}" = set; then
1680   enableval="$enable_shared"
1681   p=${PACKAGE-default}
1682 case $enableval in
1683 yes) enable_shared=yes ;;
1684 no) enable_shared=no ;;
1685 *)
1686   enable_shared=no
1687   # Look at the argument we got.  We use all the common list separators.
1688   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1689   for pkg in $enableval; do
1690     if test "X$pkg" = "X$p"; then
1691       enable_shared=yes
1692     fi
1693   done
1694   IFS="$ac_save_ifs"
1695   ;;
1696 esac
1697 else
1698   enable_shared=yes
1699 fi
1700
1701 # Check whether --enable-static or --disable-static was given.
1702 if test "${enable_static+set}" = set; then
1703   enableval="$enable_static"
1704   p=${PACKAGE-default}
1705 case $enableval in
1706 yes) enable_static=yes ;;
1707 no) enable_static=no ;;
1708 *)
1709   enable_static=no
1710   # Look at the argument we got.  We use all the common list separators.
1711   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1712   for pkg in $enableval; do
1713     if test "X$pkg" = "X$p"; then
1714       enable_static=yes
1715     fi
1716   done
1717   IFS="$ac_save_ifs"
1718   ;;
1719 esac
1720 else
1721   enable_static=yes
1722 fi
1723
1724 # Check whether --enable-fast-install or --disable-fast-install was given.
1725 if test "${enable_fast_install+set}" = set; then
1726   enableval="$enable_fast_install"
1727   p=${PACKAGE-default}
1728 case $enableval in
1729 yes) enable_fast_install=yes ;;
1730 no) enable_fast_install=no ;;
1731 *)
1732   enable_fast_install=no
1733   # Look at the argument we got.  We use all the common list separators.
1734   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1735   for pkg in $enableval; do
1736     if test "X$pkg" = "X$p"; then
1737       enable_fast_install=yes
1738     fi
1739   done
1740   IFS="$ac_save_ifs"
1741   ;;
1742 esac
1743 else
1744   enable_fast_install=yes
1745 fi
1746
1747 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1748 if test "${with_gnu_ld+set}" = set; then
1749   withval="$with_gnu_ld"
1750   test "$withval" = no || with_gnu_ld=yes
1751 else
1752   with_gnu_ld=no
1753 fi
1754
1755 ac_prog=ld
1756 if test "$GCC" = yes; then
1757   # Check if gcc -print-prog-name=ld gives a path.
1758   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1759 echo "configure:1760: checking for ld used by GCC" >&5
1760   case $host in
1761   *-*-mingw*)
1762     # gcc leaves a trailing carriage return which upsets mingw
1763     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1764   *)
1765     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1766   esac
1767   case $ac_prog in
1768     # Accept absolute paths.
1769     [\\/]* | [A-Za-z]:[\\/]*)
1770       re_direlt='/[^/][^/]*/\.\./'
1771       # Canonicalize the path of ld
1772       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1773       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1774         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1775       done
1776       test -z "$LD" && LD="$ac_prog"
1777       ;;
1778   "")
1779     # If it fails, then pretend we aren't using GCC.
1780     ac_prog=ld
1781     ;;
1782   *)
1783     # If it is relative, then search for the first ld in PATH.
1784     with_gnu_ld=unknown
1785     ;;
1786   esac
1787 elif test "$with_gnu_ld" = yes; then
1788   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1789 echo "configure:1790: checking for GNU ld" >&5
1790 else
1791   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1792 echo "configure:1793: checking for non-GNU ld" >&5
1793 fi
1794 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1795   echo $ac_n "(cached) $ac_c" 1>&6
1796 else
1797   if test -z "$LD"; then
1798   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1799   for ac_dir in $PATH; do
1800     test -z "$ac_dir" && ac_dir=.
1801     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1802       lt_cv_path_LD="$ac_dir/$ac_prog"
1803       # Check to see if the program is GNU ld.  I'd rather use --version,
1804       # but apparently some GNU ld's only accept -v.
1805       # Break only if it was the GNU/non-GNU ld that we prefer.
1806       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1807         test "$with_gnu_ld" != no && break
1808       else
1809         test "$with_gnu_ld" != yes && break
1810       fi
1811     fi
1812   done
1813   IFS="$ac_save_ifs"
1814 else
1815   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1816 fi
1817 fi
1818
1819 LD="$lt_cv_path_LD"
1820 if test -n "$LD"; then
1821   echo "$ac_t""$LD" 1>&6
1822 else
1823   echo "$ac_t""no" 1>&6
1824 fi
1825 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1826 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1827 echo "configure:1828: checking if the linker ($LD) is GNU ld" >&5
1828 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1829   echo $ac_n "(cached) $ac_c" 1>&6
1830 else
1831   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1832 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1833   lt_cv_prog_gnu_ld=yes
1834 else
1835   lt_cv_prog_gnu_ld=no
1836 fi
1837 fi
1838
1839 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1840 with_gnu_ld=$lt_cv_prog_gnu_ld
1841
1842
1843 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1844 echo "configure:1845: checking for $LD option to reload object files" >&5
1845 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1846   echo $ac_n "(cached) $ac_c" 1>&6
1847 else
1848   lt_cv_ld_reload_flag='-r'
1849 fi
1850
1851 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1852 reload_flag=$lt_cv_ld_reload_flag
1853 test -n "$reload_flag" && reload_flag=" $reload_flag"
1854
1855 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1856 echo "configure:1857: checking for BSD-compatible nm" >&5
1857 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1858   echo $ac_n "(cached) $ac_c" 1>&6
1859 else
1860   if test -n "$NM"; then
1861   # Let the user override the test.
1862   lt_cv_path_NM="$NM"
1863 else
1864   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1865   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1866     test -z "$ac_dir" && ac_dir=.
1867     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1868     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1869       # Check to see if the nm accepts a BSD-compat flag.
1870       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1871       #   nm: unknown option "B" ignored
1872       # Tru64's nm complains that /dev/null is an invalid object file
1873       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1874         lt_cv_path_NM="$tmp_nm -B"
1875         break
1876       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1877         lt_cv_path_NM="$tmp_nm -p"
1878         break
1879       else
1880         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1881         continue # so that we can try to find one that supports BSD flags
1882       fi
1883     fi
1884   done
1885   IFS="$ac_save_ifs"
1886   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1887 fi
1888 fi
1889
1890 NM="$lt_cv_path_NM"
1891 echo "$ac_t""$NM" 1>&6
1892
1893 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1894 echo "configure:1895: checking how to recognise dependant libraries" >&5
1895 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1896   echo $ac_n "(cached) $ac_c" 1>&6
1897 else
1898   lt_cv_file_magic_cmd='$MAGIC_CMD'
1899 lt_cv_file_magic_test_file=
1900 lt_cv_deplibs_check_method='unknown'
1901 # Need to set the preceding variable on all platforms that support
1902 # interlibrary dependencies.
1903 # 'none' -- dependencies not supported.
1904 # `unknown' -- same as none, but documents that we really don't know.
1905 # 'pass_all' -- all dependencies passed with no checks.
1906 # 'test_compile' -- check by making test program.
1907 # 'file_magic [regex]' -- check by looking for files in library path
1908 # which responds to the $file_magic_cmd with a given egrep regex.
1909 # If you have `file' or equivalent on your system and you're not sure
1910 # whether `pass_all' will *always* work, you probably want this one.
1911
1912 case $host_os in
1913 aix*)
1914   lt_cv_deplibs_check_method=pass_all
1915   ;;
1916
1917 beos*)
1918   lt_cv_deplibs_check_method=pass_all
1919   ;;
1920
1921 bsdi4*)
1922   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1923   lt_cv_file_magic_cmd='/usr/bin/file -L'
1924   lt_cv_file_magic_test_file=/shlib/libc.so
1925   ;;
1926
1927 cygwin* | mingw* |pw32*)
1928   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1929   lt_cv_file_magic_cmd='$OBJDUMP -f'
1930   ;;
1931
1932 darwin* | rhapsody*)
1933   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1934   lt_cv_file_magic_cmd='/usr/bin/file -L'
1935   case "$host_os" in
1936   rhapsody* | darwin1.012)
1937     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1938     ;;
1939   *) # Darwin 1.3 on
1940     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1941     ;;
1942   esac
1943   ;;
1944
1945 freebsd* )
1946   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1947     case $host_cpu in
1948     i*86 )
1949       # Not sure whether the presence of OpenBSD here was a mistake.
1950       # Let's accept both of them until this is cleared up.
1951       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1952       lt_cv_file_magic_cmd=/usr/bin/file
1953       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1954       ;;
1955     esac
1956   else
1957     lt_cv_deplibs_check_method=pass_all
1958   fi
1959   ;;
1960
1961 gnu*)
1962   lt_cv_deplibs_check_method=pass_all
1963   ;;
1964
1965 hpux10.20*|hpux11*)
1966   case $host_cpu in
1967   hppa*)
1968     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1969     lt_cv_file_magic_cmd=/usr/bin/file
1970     lt_cv_file_magic_test_file=/usr/lib/libc.sl
1971     ;;
1972   ia64*)
1973     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1974     lt_cv_file_magic_cmd=/usr/bin/file
1975     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1976     ;;
1977   esac
1978   ;;
1979
1980 irix5* | irix6*)
1981   case $host_os in
1982   irix5*)
1983     # this will be overridden with pass_all, but let us keep it just in case
1984     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1985     ;;
1986   *)
1987     case $LD in
1988     *-32|*"-32 ") libmagic=32-bit;;
1989     *-n32|*"-n32 ") libmagic=N32;;
1990     *-64|*"-64 ") libmagic=64-bit;;
1991     *) libmagic=never-match;;
1992     esac
1993     # this will be overridden with pass_all, but let us keep it just in case
1994     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1995     ;;
1996   esac
1997   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1998   lt_cv_deplibs_check_method=pass_all
1999   ;;
2000
2001 # This must be Linux ELF.
2002 linux-gnu*)
2003   case $host_cpu in
2004   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2005     lt_cv_deplibs_check_method=pass_all ;;
2006   *)
2007     # glibc up to 2.1.1 does not perform some relocations on ARM
2008     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2009   esac
2010   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2011   ;;
2012
2013 netbsd*)
2014   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2015     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2016   else
2017     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2018   fi
2019   ;;
2020
2021 newsos6)
2022   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2023   lt_cv_file_magic_cmd=/usr/bin/file
2024   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2025   ;;
2026
2027 osf3* | osf4* | osf5*)
2028   # this will be overridden with pass_all, but let us keep it just in case
2029   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2030   lt_cv_file_magic_test_file=/shlib/libc.so
2031   lt_cv_deplibs_check_method=pass_all
2032   ;;
2033
2034 sco3.2v5*)
2035   lt_cv_deplibs_check_method=pass_all
2036   ;;
2037
2038 solaris*)
2039   lt_cv_deplibs_check_method=pass_all
2040   lt_cv_file_magic_test_file=/lib/libc.so
2041   ;;
2042
2043 sysv5uw[78]* | sysv4*uw2*)
2044   lt_cv_deplibs_check_method=pass_all
2045   ;;
2046
2047 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2048   case $host_vendor in
2049   ncr)
2050     lt_cv_deplibs_check_method=pass_all
2051     ;;
2052   motorola)
2053     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2054     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2055     ;;
2056   esac
2057   ;;
2058 esac
2059
2060 fi
2061
2062 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2063 file_magic_cmd=$lt_cv_file_magic_cmd
2064 deplibs_check_method=$lt_cv_deplibs_check_method
2065
2066 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2067 echo "configure:2068: checking for object suffix" >&5
2068 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2069   echo $ac_n "(cached) $ac_c" 1>&6
2070 else
2071   rm -f conftest*
2072 echo 'int i = 1;' > conftest.$ac_ext
2073 if { (eval echo configure:2074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2074   for ac_file in conftest.*; do
2075     case $ac_file in
2076     *.c) ;;
2077     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2078     esac
2079   done
2080 else
2081   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2082 fi
2083 rm -f conftest*
2084 fi
2085
2086 echo "$ac_t""$ac_cv_objext" 1>&6
2087 OBJEXT=$ac_cv_objext
2088 ac_objext=$ac_cv_objext
2089
2090 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2091
2092 # Only perform the check for file, if the check method requires it
2093 case $deplibs_check_method in
2094 file_magic*)
2095   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2096     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2097 echo "configure:2098: checking for ${ac_tool_prefix}file" >&5
2098 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2099   echo $ac_n "(cached) $ac_c" 1>&6
2100 else
2101   case $MAGIC_CMD in
2102   /*)
2103   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2104   ;;
2105   ?:/*)
2106   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2107   ;;
2108   *)
2109   ac_save_MAGIC_CMD="$MAGIC_CMD"
2110   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2111   ac_dummy="/usr/bin:$PATH"
2112   for ac_dir in $ac_dummy; do
2113     test -z "$ac_dir" && ac_dir=.
2114     if test -f $ac_dir/${ac_tool_prefix}file; then
2115       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2116       if test -n "$file_magic_test_file"; then
2117         case $deplibs_check_method in
2118         "file_magic "*)
2119           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2120           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2121           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2122             egrep "$file_magic_regex" > /dev/null; then
2123             :
2124           else
2125             cat <<EOF 1>&2
2126
2127 *** Warning: the command libtool uses to detect shared libraries,
2128 *** $file_magic_cmd, produces output that libtool cannot recognize.
2129 *** The result is that libtool may fail to recognize shared libraries
2130 *** as such.  This will affect the creation of libtool libraries that
2131 *** depend on shared libraries, but programs linked with such libtool
2132 *** libraries will work regardless of this problem.  Nevertheless, you
2133 *** may want to report the problem to your system manager and/or to
2134 *** bug-libtool@gnu.org
2135
2136 EOF
2137           fi ;;
2138         esac
2139       fi
2140       break
2141     fi
2142   done
2143   IFS="$ac_save_ifs"
2144   MAGIC_CMD="$ac_save_MAGIC_CMD"
2145   ;;
2146 esac
2147 fi
2148
2149 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2150 if test -n "$MAGIC_CMD"; then
2151   echo "$ac_t""$MAGIC_CMD" 1>&6
2152 else
2153   echo "$ac_t""no" 1>&6
2154 fi
2155
2156 if test -z "$lt_cv_path_MAGIC_CMD"; then
2157   if test -n "$ac_tool_prefix"; then
2158     echo $ac_n "checking for file""... $ac_c" 1>&6
2159 echo "configure:2160: checking for file" >&5
2160 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2161   echo $ac_n "(cached) $ac_c" 1>&6
2162 else
2163   case $MAGIC_CMD in
2164   /*)
2165   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2166   ;;
2167   ?:/*)
2168   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2169   ;;
2170   *)
2171   ac_save_MAGIC_CMD="$MAGIC_CMD"
2172   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2173   ac_dummy="/usr/bin:$PATH"
2174   for ac_dir in $ac_dummy; do
2175     test -z "$ac_dir" && ac_dir=.
2176     if test -f $ac_dir/file; then
2177       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2178       if test -n "$file_magic_test_file"; then
2179         case $deplibs_check_method in
2180         "file_magic "*)
2181           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2182           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2183           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2184             egrep "$file_magic_regex" > /dev/null; then
2185             :
2186           else
2187             cat <<EOF 1>&2
2188
2189 *** Warning: the command libtool uses to detect shared libraries,
2190 *** $file_magic_cmd, produces output that libtool cannot recognize.
2191 *** The result is that libtool may fail to recognize shared libraries
2192 *** as such.  This will affect the creation of libtool libraries that
2193 *** depend on shared libraries, but programs linked with such libtool
2194 *** libraries will work regardless of this problem.  Nevertheless, you
2195 *** may want to report the problem to your system manager and/or to
2196 *** bug-libtool@gnu.org
2197
2198 EOF
2199           fi ;;
2200         esac
2201       fi
2202       break
2203     fi
2204   done
2205   IFS="$ac_save_ifs"
2206   MAGIC_CMD="$ac_save_MAGIC_CMD"
2207   ;;
2208 esac
2209 fi
2210
2211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2212 if test -n "$MAGIC_CMD"; then
2213   echo "$ac_t""$MAGIC_CMD" 1>&6
2214 else
2215   echo "$ac_t""no" 1>&6
2216 fi
2217
2218   else
2219     MAGIC_CMD=:
2220   fi
2221 fi
2222
2223   fi
2224   ;;
2225 esac
2226
2227 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2228 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2230 echo "configure:2231: checking for $ac_word" >&5
2231 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2232   echo $ac_n "(cached) $ac_c" 1>&6
2233 else
2234   if test -n "$RANLIB"; then
2235   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2236 else
2237   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2238   ac_dummy="$PATH"
2239   for ac_dir in $ac_dummy; do
2240     test -z "$ac_dir" && ac_dir=.
2241     if test -f $ac_dir/$ac_word; then
2242       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2243       break
2244     fi
2245   done
2246   IFS="$ac_save_ifs"
2247 fi
2248 fi
2249 RANLIB="$ac_cv_prog_RANLIB"
2250 if test -n "$RANLIB"; then
2251   echo "$ac_t""$RANLIB" 1>&6
2252 else
2253   echo "$ac_t""no" 1>&6
2254 fi
2255
2256
2257 if test -z "$ac_cv_prog_RANLIB"; then
2258 if test -n "$ac_tool_prefix"; then
2259   # Extract the first word of "ranlib", so it can be a program name with args.
2260 set dummy ranlib; ac_word=$2
2261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2262 echo "configure:2263: checking for $ac_word" >&5
2263 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2264   echo $ac_n "(cached) $ac_c" 1>&6
2265 else
2266   if test -n "$RANLIB"; then
2267   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2268 else
2269   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2270   ac_dummy="$PATH"
2271   for ac_dir in $ac_dummy; do
2272     test -z "$ac_dir" && ac_dir=.
2273     if test -f $ac_dir/$ac_word; then
2274       ac_cv_prog_RANLIB="ranlib"
2275       break
2276     fi
2277   done
2278   IFS="$ac_save_ifs"
2279   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2280 fi
2281 fi
2282 RANLIB="$ac_cv_prog_RANLIB"
2283 if test -n "$RANLIB"; then
2284   echo "$ac_t""$RANLIB" 1>&6
2285 else
2286   echo "$ac_t""no" 1>&6
2287 fi
2288
2289 else
2290   RANLIB=":"
2291 fi
2292 fi
2293
2294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2295 set dummy ${ac_tool_prefix}strip; ac_word=$2
2296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_word" >&5
2298 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2299   echo $ac_n "(cached) $ac_c" 1>&6
2300 else
2301   if test -n "$STRIP"; then
2302   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2303 else
2304   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2305   ac_dummy="$PATH"
2306   for ac_dir in $ac_dummy; do
2307     test -z "$ac_dir" && ac_dir=.
2308     if test -f $ac_dir/$ac_word; then
2309       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2310       break
2311     fi
2312   done
2313   IFS="$ac_save_ifs"
2314 fi
2315 fi
2316 STRIP="$ac_cv_prog_STRIP"
2317 if test -n "$STRIP"; then
2318   echo "$ac_t""$STRIP" 1>&6
2319 else
2320   echo "$ac_t""no" 1>&6
2321 fi
2322
2323
2324 if test -z "$ac_cv_prog_STRIP"; then
2325 if test -n "$ac_tool_prefix"; then
2326   # Extract the first word of "strip", so it can be a program name with args.
2327 set dummy strip; ac_word=$2
2328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2329 echo "configure:2330: checking for $ac_word" >&5
2330 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2331   echo $ac_n "(cached) $ac_c" 1>&6
2332 else
2333   if test -n "$STRIP"; then
2334   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2335 else
2336   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2337   ac_dummy="$PATH"
2338   for ac_dir in $ac_dummy; do
2339     test -z "$ac_dir" && ac_dir=.
2340     if test -f $ac_dir/$ac_word; then
2341       ac_cv_prog_STRIP="strip"
2342       break
2343     fi
2344   done
2345   IFS="$ac_save_ifs"
2346   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2347 fi
2348 fi
2349 STRIP="$ac_cv_prog_STRIP"
2350 if test -n "$STRIP"; then
2351   echo "$ac_t""$STRIP" 1>&6
2352 else
2353   echo "$ac_t""no" 1>&6
2354 fi
2355
2356 else
2357   STRIP=":"
2358 fi
2359 fi
2360
2361
2362 # Check for any special flags to pass to ltconfig.
2363 libtool_flags="--cache-file=$cache_file"
2364 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2365 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2366 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2367 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2368 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2369 libtool_flags="$libtool_flags --enable-dlopen"
2370
2371 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2372 if test "${enable_libtool_lock+set}" = set; then
2373   enableval="$enable_libtool_lock"
2374   :
2375 fi
2376
2377 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2378 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2379
2380 # Check whether --with-pic or --without-pic was given.
2381 if test "${with_pic+set}" = set; then
2382   withval="$with_pic"
2383   pic_mode="$withval"
2384 else
2385   pic_mode=default
2386 fi
2387
2388 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2389 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2390
2391 # Some flags need to be propagated to the compiler or linker for good
2392 # libtool support.
2393 case $host in
2394 *-*-irix6*)
2395   # Find out which ABI we are using.
2396   echo '#line 2397 "configure"' > conftest.$ac_ext
2397   if { (eval echo configure:2398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2398     case `/usr/bin/file conftest.$ac_objext` in
2399     *32-bit*)
2400       LD="${LD-ld} -32"
2401       ;;
2402     *N32*)
2403       LD="${LD-ld} -n32"
2404       ;;
2405     *64-bit*)
2406       LD="${LD-ld} -64"
2407       ;;
2408     esac
2409   fi
2410   rm -rf conftest*
2411   ;;
2412
2413 ia64-*-hpux*)
2414   # Find out which ABI we are using.
2415   echo 'int i;' > conftest.$ac_ext
2416   if { (eval echo configure:2417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2417     case "`/usr/bin/file conftest.o`" in
2418     *ELF-32*)
2419       HPUX_IA64_MODE="32"
2420       ;;
2421     *ELF-64*)
2422       HPUX_IA64_MODE="64"
2423       ;;
2424     esac
2425   fi
2426   rm -rf conftest*
2427   ;;
2428
2429 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2430   # Find out which ABI we are using.
2431   echo 'int i;' > conftest.$ac_ext
2432   if { (eval echo configure:2433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2433     case "`/usr/bin/file conftest.o`" in
2434     *32-bit*)
2435       case $host in
2436         x86_64-*linux*)
2437           LD="${LD-ld} -m elf_i386"
2438           ;;
2439         ppc64-*linux*)
2440           LD="${LD-ld} -m elf32ppclinux"
2441           ;;
2442         s390x-*linux*)
2443           LD="${LD-ld} -m elf_s390"
2444           ;;
2445         sparc64-*linux*)
2446           LD="${LD-ld} -m elf32_sparc"
2447           ;;
2448       esac
2449       ;;
2450     *64-bit*)
2451       case $host in
2452         x86_64-*linux*)
2453           LD="${LD-ld} -m elf_x86_64"
2454           ;;
2455         ppc*-*linux*|powerpc*-*linux*)
2456           LD="${LD-ld} -m elf64ppc"
2457           ;;
2458         s390*-*linux*)
2459           LD="${LD-ld} -m elf64_s390"
2460           ;;
2461         sparc*-*linux*)
2462           LD="${LD-ld} -m elf64_sparc"
2463           ;;
2464       esac
2465       ;;
2466     esac
2467   fi
2468   rm -rf conftest*
2469   ;;
2470
2471 *-*-sco3.2v5*)
2472   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2473   SAVE_CFLAGS="$CFLAGS"
2474   CFLAGS="$CFLAGS -belf"
2475   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2476 echo "configure:2477: checking whether the C compiler needs -belf" >&5
2477 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2478   echo $ac_n "(cached) $ac_c" 1>&6
2479 else
2480   
2481      ac_ext=c
2482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2483 ac_cpp='$CPP $CPPFLAGS'
2484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2486 cross_compiling=$ac_cv_prog_cc_cross
2487
2488      cat > conftest.$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2491
2492 int main() {
2493
2494 ; return 0; }
2495 EOF
2496 if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2497   rm -rf conftest*
2498   lt_cv_cc_needs_belf=yes
2499 else
2500   echo "configure: failed program was:" >&5
2501   cat conftest.$ac_ext >&5
2502   rm -rf conftest*
2503   lt_cv_cc_needs_belf=no
2504 fi
2505 rm -f conftest*
2506      ac_ext=c
2507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2511 cross_compiling=$ac_cv_prog_cc_cross
2512
2513 fi
2514
2515 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2516   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2517     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2518     CFLAGS="$SAVE_CFLAGS"
2519   fi
2520   ;;
2521
2522
2523 esac
2524
2525 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2526 echo "configure:2527: checking how to run the C++ preprocessor" >&5
2527 if test -z "$CXXCPP"; then
2528 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2529   echo $ac_n "(cached) $ac_c" 1>&6
2530 else
2531   ac_ext=C
2532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2533 ac_cpp='$CXXCPP $CPPFLAGS'
2534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2536 cross_compiling=$ac_cv_prog_cxx_cross
2537   CXXCPP="${CXX-g++} -E"
2538   cat > conftest.$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2541 #include <stdlib.h>
2542 EOF
2543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2544 { (eval echo configure:2545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2546 if test -z "$ac_err"; then
2547   :
2548 else
2549   echo "$ac_err" >&5
2550   echo "configure: failed program was:" >&5
2551   cat conftest.$ac_ext >&5
2552   rm -rf conftest*
2553   CXXCPP=/lib/cpp
2554 fi
2555 rm -f conftest*
2556   ac_cv_prog_CXXCPP="$CXXCPP"
2557 ac_ext=c
2558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2562 cross_compiling=$ac_cv_prog_cc_cross
2563 fi
2564 fi
2565 CXXCPP="$ac_cv_prog_CXXCPP"
2566 echo "$ac_t""$CXXCPP" 1>&6
2567
2568
2569 # Save cache, so that ltconfig can load it
2570 cat > confcache <<\EOF
2571 # This file is a shell script that caches the results of configure
2572 # tests run on this system so they can be shared between configure
2573 # scripts and configure runs.  It is not useful on other systems.
2574 # If it contains results you don't want to keep, you may remove or edit it.
2575 #
2576 # By default, configure uses ./config.cache as the cache file,
2577 # creating it if it does not exist already.  You can give configure
2578 # the --cache-file=FILE option to use a different cache file; that is
2579 # what configure does when it calls configure scripts in
2580 # subdirectories, so they share the cache.
2581 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2582 # config.status only pays attention to the cache file if you give it the
2583 # --recheck option to rerun configure.
2584 #
2585 EOF
2586 # The following way of writing the cache mishandles newlines in values,
2587 # but we know of no workaround that is simple, portable, and efficient.
2588 # So, don't put newlines in cache variables' values.
2589 # Ultrix sh set writes to stderr and can't be redirected directly,
2590 # and sets the high bit in the cache file unless we assign to the vars.
2591 (set) 2>&1 |
2592   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2593   *ac_space=\ *)
2594     # `set' does not quote correctly, so add quotes (double-quote substitution
2595     # turns \\\\ into \\, and sed turns \\ into \).
2596     sed -n \
2597       -e "s/'/'\\\\''/g" \
2598       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2599     ;;
2600   *)
2601     # `set' quotes correctly as required by POSIX, so do not add quotes.
2602     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2603     ;;
2604   esac >> confcache
2605 if cmp -s $cache_file confcache; then
2606   :
2607 else
2608   if test -w $cache_file; then
2609     echo "updating cache $cache_file"
2610     cat confcache > $cache_file
2611   else
2612     echo "not updating unwritable cache $cache_file"
2613   fi
2614 fi
2615 rm -f confcache
2616
2617
2618 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2619 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2620 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2621 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2622 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2623 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2624 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2625 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2626 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2627 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2628
2629 # Reload cache, that may have been modified by ltconfig
2630 if test -r "$cache_file"; then
2631   echo "loading cache $cache_file"
2632   . $cache_file
2633 else
2634   echo "creating cache $cache_file"
2635   > $cache_file
2636 fi
2637
2638
2639 # This can be used to rebuild libtool when needed
2640 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2641
2642 # Always use our own libtool.
2643 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2644
2645 # Redirect the config.log output again, so that the ltconfig log is not
2646 # clobbered by the next message.
2647 exec 5>>./config.log
2648
2649
2650
2651 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2652 lt_save_CC="$CC"
2653 lt_save_CFLAGS="$CFLAGS"
2654 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2655 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2656 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2657 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2658 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2659 deplibs_check_method="$deplibs_check_method" \
2660 file_magic_cmd="$file_magic_cmd" \
2661 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2662 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2663 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2664 CC="$lt_save_CC"
2665 CFLAGS="$lt_save_CFLAGS"
2666
2667 # Redirect the config.log output again, so that the ltconfig log is not
2668 # clobbered by the next message.
2669 exec 5>>./config.log
2670
2671   
2672
2673   
2674          
2675          
2676
2677
2678
2679 # Check for c++ or library specific bits that don't require linking.
2680 #GLIBCPP_CHECK_COMPILER_VERSION
2681 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2682 echo "configure:2683: checking for GNU make" >&5
2683 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2684   echo $ac_n "(cached) $ac_c" 1>&6
2685 else
2686   _cv_gnu_make_command='' ;
2687           for a in "${MAKE-make}" make gmake gnumake ; do
2688                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2689                   then
2690                           _cv_gnu_make_command=$a ;
2691                           break;
2692                   fi
2693           done ;
2694   
2695 fi
2696
2697 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2698   if test  "x$_cv_gnu_make_command" != "x"  ; then
2699           ifGNUmake='' ;
2700   else
2701           ifGNUmake='#' ;
2702   fi
2703   
2704
2705
2706 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2707 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2708 echo "configure:2709: checking how to run the C preprocessor" >&5
2709 # On Suns, sometimes $CPP names a directory.
2710 if test -n "$CPP" && test -d "$CPP"; then
2711   CPP=
2712 fi
2713 if test -z "$CPP"; then
2714 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2715   echo $ac_n "(cached) $ac_c" 1>&6
2716 else
2717     # This must be in double quotes, not single quotes, because CPP may get
2718   # substituted into the Makefile and "${CC-cc}" will confuse make.
2719   CPP="${CC-cc} -E"
2720   # On the NeXT, cc -E runs the code through the compiler's parser,
2721   # not just through cpp.
2722   cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2725 #include <assert.h>
2726 Syntax Error
2727 EOF
2728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2729 { (eval echo configure:2730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2731 if test -z "$ac_err"; then
2732   :
2733 else
2734   echo "$ac_err" >&5
2735   echo "configure: failed program was:" >&5
2736   cat conftest.$ac_ext >&5
2737   rm -rf conftest*
2738   CPP="${CC-cc} -E -traditional-cpp"
2739   cat > conftest.$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2742 #include <assert.h>
2743 Syntax Error
2744 EOF
2745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2746 { (eval echo configure:2747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2748 if test -z "$ac_err"; then
2749   :
2750 else
2751   echo "$ac_err" >&5
2752   echo "configure: failed program was:" >&5
2753   cat conftest.$ac_ext >&5
2754   rm -rf conftest*
2755   CPP="${CC-cc} -nologo -E"
2756   cat > conftest.$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2759 #include <assert.h>
2760 Syntax Error
2761 EOF
2762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2763 { (eval echo configure:2764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2765 if test -z "$ac_err"; then
2766   :
2767 else
2768   echo "$ac_err" >&5
2769   echo "configure: failed program was:" >&5
2770   cat conftest.$ac_ext >&5
2771   rm -rf conftest*
2772   CPP=/lib/cpp
2773 fi
2774 rm -f conftest*
2775 fi
2776 rm -f conftest*
2777 fi
2778 rm -f conftest*
2779   ac_cv_prog_CPP="$CPP"
2780 fi
2781   CPP="$ac_cv_prog_CPP"
2782 else
2783   ac_cv_prog_CPP="$CPP"
2784 fi
2785 echo "$ac_t""$CPP" 1>&6
2786
2787
2788   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2789 echo "configure:2790: checking for cstdio to use" >&5
2790   # Check whether --enable-cstdio or --disable-cstdio was given.
2791 if test "${enable_cstdio+set}" = set; then
2792   enableval="$enable_cstdio"
2793   if test x$enable_cstdio = xno; then
2794      enable_cstdio=stdio
2795   fi
2796 else
2797   enable_cstdio=stdio
2798 fi
2799
2800
2801   enable_cstdio_flag=$enable_cstdio
2802
2803     case x${enable_cstdio_flag} in
2804     xlibio)
2805       CSTDIO_H=config/io/c_io_libio.h
2806       BASIC_FILE_H=config/io/basic_file_libio.h
2807       BASIC_FILE_CC=config/io/basic_file_libio.cc
2808       echo "$ac_t""libio" 1>&6
2809
2810       # see if we are on a system with libio native (ie, linux)
2811       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2812 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2813 echo "configure:2814: checking for libio.h" >&5
2814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2815   echo $ac_n "(cached) $ac_c" 1>&6
2816 else
2817   cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2820 #include <libio.h>
2821 EOF
2822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2823 { (eval echo configure:2824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2825 if test -z "$ac_err"; then
2826   rm -rf conftest*
2827   eval "ac_cv_header_$ac_safe=yes"
2828 else
2829   echo "$ac_err" >&5
2830   echo "configure: failed program was:" >&5
2831   cat conftest.$ac_ext >&5
2832   rm -rf conftest*
2833   eval "ac_cv_header_$ac_safe=no"
2834 fi
2835 rm -f conftest*
2836 fi
2837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2838   echo "$ac_t""yes" 1>&6
2839   has_libio=yes
2840 else
2841   echo "$ac_t""no" 1>&6
2842 has_libio=no
2843 fi
2844
2845
2846       # Need to check and see what version of glibc is being used. If
2847       # it's not glibc-2.2 or higher, then we'll need to go ahead and
2848       # compile most of libio for linux systems.
2849       if test x$has_libio = x"yes"; then
2850         case "$target" in
2851           *-*-linux*)
2852               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2853 echo "configure:2854: checking for glibc version >= 2.2" >&5
2854               cat > conftest.$ac_ext <<EOF
2855 #line 2856 "configure"
2856 #include "confdefs.h"
2857
2858             #include <features.h>
2859               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2860                     ok
2861               #endif
2862               
2863 EOF
2864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2865   egrep "ok" >/dev/null 2>&1; then
2866   rm -rf conftest*
2867   glibc_satisfactory=yes
2868 else
2869   rm -rf conftest*
2870   glibc_satisfactory=no
2871 fi
2872 rm -f conftest*
2873
2874               echo "$ac_t""$glibc_satisfactory" 1>&6
2875             ;;
2876         esac
2877
2878         # XXX at the moment, admit defeat and force the recompilation
2879         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2880         glibc_satisfactory=no
2881
2882         if test x$glibc_satisfactory = x"yes"; then
2883            need_libio=no
2884            need_wlibio=no
2885         else
2886            need_libio=yes
2887            # bkoz XXX need to add checks to enable this
2888            # pme XXX here's a first pass at such a check
2889            if test x$enable_c_mbchar != xno; then
2890               need_wlibio=yes
2891            else
2892               need_wlibio=no
2893            fi
2894         fi
2895
2896       else
2897          # Using libio, but <libio.h> doesn't exist on the target system. . .
2898          need_libio=yes
2899          # bkoz XXX need to add checks to enable this
2900          # pme XXX here's a first pass at such a check
2901          if test x$enable_c_mbchar != xno; then
2902              need_wlibio=yes
2903          else
2904              need_wlibio=no
2905          fi
2906       fi
2907       ;;
2908     xstdio | x | xno | xnone | xyes)
2909       # default
2910       CSTDIO_H=config/io/c_io_stdio.h
2911       BASIC_FILE_H=config/io/basic_file_stdio.h
2912       BASIC_FILE_CC=config/io/basic_file_stdio.cc
2913       echo "$ac_t""stdio" 1>&6
2914
2915       # We're not using stdio.
2916       need_libio=no
2917       need_wlibio=no
2918       ;;
2919     *)
2920       echo "$enable_cstdio is an unknown io package" 1>&2
2921       exit 1
2922       ;;
2923   esac
2924   
2925   
2926   
2927
2928   # 2000-08-04 bkoz hack
2929   CCODECVT_C=config/io/c_io_libio_codecvt.c
2930   
2931   # 2000-08-04 bkoz hack
2932
2933   
2934
2935 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2936   GLIBCPP_BUILD_LIBIO_TRUE=
2937   GLIBCPP_BUILD_LIBIO_FALSE='#'
2938 else
2939   GLIBCPP_BUILD_LIBIO_TRUE='#'
2940   GLIBCPP_BUILD_LIBIO_FALSE=
2941 fi
2942   
2943
2944 if test "$need_libio" = yes; then
2945   GLIBCPP_NEED_LIBIO_TRUE=
2946   GLIBCPP_NEED_LIBIO_FALSE='#'
2947 else
2948   GLIBCPP_NEED_LIBIO_TRUE='#'
2949   GLIBCPP_NEED_LIBIO_FALSE=
2950 fi
2951   
2952
2953 if test "$need_wlibio" = yes; then
2954   GLIBCPP_NEED_WLIBIO_TRUE=
2955   GLIBCPP_NEED_WLIBIO_FALSE='#'
2956 else
2957   GLIBCPP_NEED_WLIBIO_TRUE='#'
2958   GLIBCPP_NEED_WLIBIO_FALSE=
2959 fi
2960   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
2961     libio_la=../libio/libio.la
2962   else
2963     libio_la=
2964   fi
2965   
2966
2967
2968   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
2969 echo "configure:2970: checking for clocale to use" >&5
2970   # Check whether --enable-clocale or --disable-clocale was given.
2971 if test "${enable_clocale+set}" = set; then
2972   enableval="$enable_clocale"
2973   if test x$enable_clocale = xno; then
2974      enable_clocale=no
2975   fi
2976 else
2977   enable_clocale=no
2978 fi
2979
2980
2981   enable_clocale_flag=$enable_clocale
2982
2983       if test x$enable_clocale_flag = xno; then
2984     case x${target_os} in
2985       xlinux* | xgnu*)
2986         cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2989
2990         #include <features.h>
2991         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2992           _GLIBCPP_ok
2993         #endif
2994         
2995 EOF
2996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2997   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
2998   rm -rf conftest*
2999   enable_clocale_flag=gnu
3000 else
3001   rm -rf conftest*
3002   enable_clocale_flag=generic
3003 fi
3004 rm -f conftest*
3005
3006
3007         # Test for bugs early in glibc-2.2.x series
3008         if test x$enable_clocale_flag = xgnu; then
3009           if test "$cross_compiling" = yes; then
3010   enable_clocale_flag=generic
3011 else
3012   cat > conftest.$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3015
3016           #define _GNU_SOURCE 1
3017           #include <locale.h>
3018           #include <string.h>
3019           #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3020           extern __typeof(newlocale) __newlocale;
3021           extern __typeof(duplocale) __duplocale;
3022           extern __typeof(strcoll_l) __strcoll_l;
3023           #endif
3024           int main()
3025           {
3026             const char __one[] = "Äuglein Augmen";
3027             const char __two[] = "Äuglein";
3028             int i;
3029             int j;
3030             __locale_t  loc;
3031             __locale_t  loc_dup;
3032             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3033             loc_dup = __duplocale(loc);
3034             i = __strcoll_l(__one, __two, loc);
3035             j = __strcoll_l(__one, __two, loc_dup);
3036             return 0;
3037           }
3038           
3039 EOF
3040 if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3041 then
3042   enable_clocale_flag=gnu
3043 else
3044   echo "configure: failed program was:" >&5
3045   cat conftest.$ac_ext >&5
3046   rm -fr conftest*
3047   enable_clocale_flag=generic
3048 fi
3049 rm -fr conftest*
3050 fi
3051
3052         fi
3053
3054         # ... at some point put __strxfrm_l tests in as well.
3055         ;;
3056       *)
3057         enable_clocale_flag=generic
3058         ;;
3059     esac
3060   fi
3061
3062     # Check whether --enable-nls or --disable-nls was given.
3063 if test "${enable_nls+set}" = set; then
3064   enableval="$enable_nls"
3065   :
3066 else
3067   enable_nls=yes
3068 fi
3069
3070   USE_NLS=no
3071
3072     case x${enable_clocale_flag} in
3073     xgeneric)
3074       echo "$ac_t""generic" 1>&6
3075
3076       CLOCALE_H=config/locale/generic/c_locale.h
3077       CLOCALE_CC=config/locale/generic/c_locale.cc
3078       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3079       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3080       CCOLLATE_CC=config/locale/generic/collate_members.cc
3081       CCTYPE_CC=config/locale/generic/ctype_members.cc
3082       CMESSAGES_H=config/locale/generic/messages_members.h
3083       CMESSAGES_CC=config/locale/generic/messages_members.cc
3084       CMONEY_CC=config/locale/generic/monetary_members.cc
3085       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3086       CTIME_H=config/locale/generic/time_members.h
3087       CTIME_CC=config/locale/generic/time_members.cc
3088       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3089       ;;
3090     xgnu)
3091       echo "$ac_t""gnu" 1>&6
3092
3093       # Declare intention to use gettext, and add support for specific
3094       # languages.
3095       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3096       ALL_LINGUAS="de fr"
3097
3098       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3099       # Extract the first word of "msgfmt", so it can be a program name with args.
3100 set dummy msgfmt; ac_word=$2
3101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3102 echo "configure:3103: checking for $ac_word" >&5
3103 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3104   echo $ac_n "(cached) $ac_c" 1>&6
3105 else
3106   if test -n "$check_msgfmt"; then
3107   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3108 else
3109   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3110   ac_dummy="$PATH"
3111   for ac_dir in $ac_dummy; do
3112     test -z "$ac_dir" && ac_dir=.
3113     if test -f $ac_dir/$ac_word; then
3114       ac_cv_prog_check_msgfmt="yes"
3115       break
3116     fi
3117   done
3118   IFS="$ac_save_ifs"
3119   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3120 fi
3121 fi
3122 check_msgfmt="$ac_cv_prog_check_msgfmt"
3123 if test -n "$check_msgfmt"; then
3124   echo "$ac_t""$check_msgfmt" 1>&6
3125 else
3126   echo "$ac_t""no" 1>&6
3127 fi
3128
3129       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3130         USE_NLS=yes
3131       fi
3132       # Export the build objects.
3133       for ling in $ALL_LINGUAS; do \
3134         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3135         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3136       done
3137       
3138       
3139
3140       CLOCALE_H=config/locale/gnu/c_locale.h
3141       CLOCALE_CC=config/locale/gnu/c_locale.cc
3142       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3143       CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3144       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3145       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3146       CMESSAGES_H=config/locale/gnu/messages_members.h
3147       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3148       CMONEY_CC=config/locale/gnu/monetary_members.cc
3149       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3150       CTIME_H=config/locale/gnu/time_members.h
3151       CTIME_CC=config/locale/gnu/time_members.cc
3152       CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3153       ;;
3154     xieee_1003.1-2001)
3155       echo "$ac_t""generic" 1>&6
3156
3157       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3158       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3159       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3160       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3161       CCOLLATE_CC=config/locale/generic/collate_members.cc
3162       CCTYPE_CC=config/locale/generic/ctype_members.cc
3163       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3164       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3165       CMONEY_CC=config/locale/generic/monetary_members.cc
3166       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3167       CTIME_H=config/locale/generic/time_members.h
3168       CTIME_CC=config/locale/generic/time_members.cc
3169       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3170       ;;
3171     *)
3172       echo "$enable_clocale is an unknown locale package" 1>&2
3173       exit 1
3174       ;;
3175   esac
3176
3177   # This is where the testsuite looks for locale catalogs, using the
3178   # -DLOCALEDIR define during testsuite compilation.
3179   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3180   
3181
3182   
3183   
3184   
3185   
3186   
3187   
3188   
3189   
3190   
3191   
3192   
3193   
3194   
3195   
3196
3197 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3198 echo "configure:3199: checking for c header strategy to use" >&5
3199 # Check whether --enable-cheaders or --disable-cheaders was given.
3200 if test "${enable_cheaders+set}" = set; then
3201   enableval="$enable_cheaders"
3202   
3203   case "$enableval" in
3204    c)
3205         enable_cheaders=c
3206         ;;
3207    c_std)
3208         enable_cheaders=c_std
3209         ;;
3210    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3211         ;;
3212   esac
3213 else
3214   enable_cheaders=c_std
3215 fi
3216
3217   echo "$ac_t""$enable_cheaders" 1>&6
3218
3219     case "$enable_cheaders" in
3220     c_std)
3221         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3222         ;;
3223     c)
3224         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3225         ;;
3226   esac
3227
3228   
3229   
3230
3231 if test "$enable_cheaders" = c; then
3232   GLIBCPP_C_HEADERS_C_TRUE=
3233   GLIBCPP_C_HEADERS_C_FALSE='#'
3234 else
3235   GLIBCPP_C_HEADERS_C_TRUE='#'
3236   GLIBCPP_C_HEADERS_C_FALSE=
3237 fi
3238   
3239
3240 if test "$enable_cheaders" = c_std; then
3241   GLIBCPP_C_HEADERS_C_STD_TRUE=
3242   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3243 else
3244   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3245   GLIBCPP_C_HEADERS_C_STD_FALSE=
3246 fi
3247   
3248
3249 if test "$c_compatibility" = yes; then
3250   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3251   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3252 else
3253   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3254   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3255 fi
3256
3257 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3258 if test "${enable_c_mbchar+set}" = set; then
3259   enableval="$enable_c_mbchar"
3260   case "$enableval" in
3261  yes) enable_c_mbchar=yes ;;
3262  no)  enable_c_mbchar=no ;;
3263  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3264  esac
3265 else
3266   enable_c_mbchar=yes
3267 fi
3268
3269   
3270   # Check whether --enable-c99 or --disable-c99 was given.
3271 if test "${enable_c99+set}" = set; then
3272   enableval="$enable_c99"
3273     case "$enableval" in
3274    yes) enable_c99=yes ;;
3275    no)  enable_c99=no ;;
3276    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3277    esac
3278 else
3279   enable_c99=yes
3280 fi
3281
3282   
3283   ac_ext=C
3284 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3285 ac_cpp='$CXXCPP $CPPFLAGS'
3286 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3287 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3288 cross_compiling=$ac_cv_prog_cxx_cross
3289
3290
3291   # Check for the existence of <math.h> functions used if C99 is enabled.
3292   ac_c99_math=yes;
3293   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3294 echo "configure:3295: checking for ISO C99 support in <math.h>" >&5
3295   cat > conftest.$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3298 #include <math.h>
3299 int main() {
3300 fpclassify(0.0);
3301 ; return 0; }
3302 EOF
3303 if { (eval echo configure:3304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3304   :
3305 else
3306   echo "configure: failed program was:" >&5
3307   cat conftest.$ac_ext >&5
3308   rm -rf conftest*
3309   ac_c99_math=no
3310 fi
3311 rm -f conftest*
3312   cat > conftest.$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3315 #include <math.h>
3316 int main() {
3317 isfinite(0.0);
3318 ; return 0; }
3319 EOF
3320 if { (eval echo configure:3321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3321   :
3322 else
3323   echo "configure: failed program was:" >&5
3324   cat conftest.$ac_ext >&5
3325   rm -rf conftest*
3326   ac_c99_math=no
3327 fi
3328 rm -f conftest*
3329   cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332 #include <math.h>
3333 int main() {
3334 isinf(0.0);
3335 ; return 0; }
3336 EOF
3337 if { (eval echo configure:3338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3338   :
3339 else
3340   echo "configure: failed program was:" >&5
3341   cat conftest.$ac_ext >&5
3342   rm -rf conftest*
3343   ac_c99_math=no
3344 fi
3345 rm -f conftest*
3346   cat > conftest.$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3349 #include <math.h>
3350 int main() {
3351 isnan(0.0);
3352 ; return 0; }
3353 EOF
3354 if { (eval echo configure:3355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3355   :
3356 else
3357   echo "configure: failed program was:" >&5
3358   cat conftest.$ac_ext >&5
3359   rm -rf conftest*
3360   ac_c99_math=no
3361 fi
3362 rm -f conftest*
3363   cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3366 #include <math.h>
3367 int main() {
3368 isnormal(0.0);
3369 ; return 0; }
3370 EOF
3371 if { (eval echo configure:3372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3372   :
3373 else
3374   echo "configure: failed program was:" >&5
3375   cat conftest.$ac_ext >&5
3376   rm -rf conftest*
3377   ac_c99_math=no
3378 fi
3379 rm -f conftest*
3380   cat > conftest.$ac_ext <<EOF
3381 #line 3382 "configure"
3382 #include "confdefs.h"
3383 #include <math.h>
3384 int main() {
3385 signbit(0.0);
3386 ; return 0; }
3387 EOF
3388 if { (eval echo configure:3389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3389   :
3390 else
3391   echo "configure: failed program was:" >&5
3392   cat conftest.$ac_ext >&5
3393   rm -rf conftest*
3394   ac_c99_math=no
3395 fi
3396 rm -f conftest*
3397   cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 #include <math.h>
3401 int main() {
3402 isgreater(0.0,0.0);
3403 ; return 0; }
3404 EOF
3405 if { (eval echo configure:3406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3406   :
3407 else
3408   echo "configure: failed program was:" >&5
3409   cat conftest.$ac_ext >&5
3410   rm -rf conftest*
3411   ac_c99_math=no
3412 fi
3413 rm -f conftest*
3414   cat > conftest.$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3417 #include <math.h>
3418 int main() {
3419 isgreaterequal(0.0,0.0);
3420 ; return 0; }
3421 EOF
3422 if { (eval echo configure:3423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3423   :
3424 else
3425   echo "configure: failed program was:" >&5
3426   cat conftest.$ac_ext >&5
3427   rm -rf conftest*
3428   ac_c99_math=no
3429 fi
3430 rm -f conftest*
3431   cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3434 #include <math.h>
3435 int main() {
3436 isless(0.0,0.0);
3437 ; return 0; }
3438 EOF
3439 if { (eval echo configure:3440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3440   :
3441 else
3442   echo "configure: failed program was:" >&5
3443   cat conftest.$ac_ext >&5
3444   rm -rf conftest*
3445   ac_c99_math=no
3446 fi
3447 rm -f conftest*
3448   cat > conftest.$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3451 #include <math.h>
3452 int main() {
3453 islessequal(0.0,0.0);
3454 ; return 0; }
3455 EOF
3456 if { (eval echo configure:3457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3457   :
3458 else
3459   echo "configure: failed program was:" >&5
3460   cat conftest.$ac_ext >&5
3461   rm -rf conftest*
3462   ac_c99_math=no
3463 fi
3464 rm -f conftest*
3465   cat > conftest.$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 #include <math.h>
3469 int main() {
3470 islessgreater(0.0,0.0);
3471 ; return 0; }
3472 EOF
3473 if { (eval echo configure:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3474   :
3475 else
3476   echo "configure: failed program was:" >&5
3477   cat conftest.$ac_ext >&5
3478   rm -rf conftest*
3479   ac_c99_math=no
3480 fi
3481 rm -f conftest*
3482   cat > conftest.$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3485 #include <math.h>
3486 int main() {
3487 isunordered(0.0,0.0);
3488 ; return 0; }
3489 EOF
3490 if { (eval echo configure:3491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3491   :
3492 else
3493   echo "configure: failed program was:" >&5
3494   cat conftest.$ac_ext >&5
3495   rm -rf conftest*
3496   ac_c99_math=no
3497 fi
3498 rm -f conftest*
3499   echo "$ac_t""$ac_c99_math" 1>&6
3500
3501   # Check for the existence in <stdio.h> of vscanf, et. al.
3502   ac_c99_stdio=yes;
3503   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3504 echo "configure:3505: checking for ISO C99 support in <stdio.h>" >&5
3505   cat > conftest.$ac_ext <<EOF
3506 #line 3507 "configure"
3507 #include "confdefs.h"
3508 #include <stdio.h>
3509 int main() {
3510 snprintf("12", 0, "%i");
3511 ; return 0; }
3512 EOF
3513 if { (eval echo configure:3514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3514   :
3515 else
3516   echo "configure: failed program was:" >&5
3517   cat conftest.$ac_ext >&5
3518   rm -rf conftest*
3519   ac_c99_stdio=no
3520 fi
3521 rm -f conftest*
3522   cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 #include <stdio.h>
3526                   #include <stdarg.h>
3527                   void foo(char* fmt, ...)
3528                   {va_list args; va_start(args, fmt);
3529                   vfscanf(stderr, "%i", args);}
3530 int main() {
3531
3532 ; return 0; }
3533 EOF
3534 if { (eval echo configure:3535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3535   :
3536 else
3537   echo "configure: failed program was:" >&5
3538   cat conftest.$ac_ext >&5
3539   rm -rf conftest*
3540   ac_c99_stdio=no
3541 fi
3542 rm -f conftest*
3543   cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 #include <stdio.h>
3547                   #include <stdarg.h>
3548                   void foo(char* fmt, ...)
3549                   {va_list args; va_start(args, fmt);
3550                   vscanf("%i", args);}
3551 int main() {
3552
3553 ; return 0; }
3554 EOF
3555 if { (eval echo configure:3556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3556   :
3557 else
3558   echo "configure: failed program was:" >&5
3559   cat conftest.$ac_ext >&5
3560   rm -rf conftest*
3561   ac_c99_stdio=no
3562 fi
3563 rm -f conftest*
3564   cat > conftest.$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3567 #include <stdio.h>
3568                   #include <stdarg.h>
3569                   void foo(char* fmt, ...)
3570                   {va_list args; va_start(args, fmt);
3571                   vsnprintf(fmt, 0, "%i", args);}
3572 int main() {
3573
3574 ; return 0; }
3575 EOF
3576 if { (eval echo configure:3577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3577   :
3578 else
3579   echo "configure: failed program was:" >&5
3580   cat conftest.$ac_ext >&5
3581   rm -rf conftest*
3582   ac_c99_stdio=no
3583 fi
3584 rm -f conftest*
3585   cat > conftest.$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3588 #include <stdio.h>
3589                   #include <stdarg.h>
3590                   void foo(char* fmt, ...)
3591                   {va_list args; va_start(args, fmt);
3592                   vsscanf(fmt, "%i", args);}
3593 int main() {
3594
3595 ; return 0; }
3596 EOF
3597 if { (eval echo configure:3598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3598   :
3599 else
3600   echo "configure: failed program was:" >&5
3601   cat conftest.$ac_ext >&5
3602   rm -rf conftest*
3603   ac_c99_stdio=no
3604 fi
3605 rm -f conftest*
3606   echo "$ac_t""$ac_c99_stdio" 1>&6
3607
3608   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3609   ac_c99_stdlib=yes;
3610   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3611 echo "configure:3612: checking for lldiv_t declaration" >&5
3612   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3613   echo $ac_n "(cached) $ac_c" 1>&6
3614 else
3615   
3616   cat > conftest.$ac_ext <<EOF
3617 #line 3618 "configure"
3618 #include "confdefs.h"
3619 #include <stdlib.h>
3620 int main() {
3621  lldiv_t mydivt;
3622 ; return 0; }
3623 EOF
3624 if { (eval echo configure:3625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3625   rm -rf conftest*
3626   ac_c99_lldiv_t=yes
3627 else
3628   echo "configure: failed program was:" >&5
3629   cat conftest.$ac_ext >&5
3630   rm -rf conftest*
3631   ac_c99_lldiv_t=no
3632 fi
3633 rm -f conftest*
3634   
3635 fi
3636
3637   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3638
3639   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3640 echo "configure:3641: checking for ISO C99 support in <stdlib.h>" >&5
3641   cat > conftest.$ac_ext <<EOF
3642 #line 3643 "configure"
3643 #include "confdefs.h"
3644 #include <stdlib.h>
3645 int main() {
3646 char* tmp; strtof("gnu", &tmp);
3647 ; return 0; }
3648 EOF
3649 if { (eval echo configure:3650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3650   :
3651 else
3652   echo "configure: failed program was:" >&5
3653   cat conftest.$ac_ext >&5
3654   rm -rf conftest*
3655   ac_c99_stdlib=no
3656 fi
3657 rm -f conftest*
3658   cat > conftest.$ac_ext <<EOF
3659 #line 3660 "configure"
3660 #include "confdefs.h"
3661 #include <stdlib.h>
3662 int main() {
3663 char* tmp; strtold("gnu", &tmp);
3664 ; return 0; }
3665 EOF
3666 if { (eval echo configure:3667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3667   :
3668 else
3669   echo "configure: failed program was:" >&5
3670   cat conftest.$ac_ext >&5
3671   rm -rf conftest*
3672   ac_c99_stdlib=no
3673 fi
3674 rm -f conftest*
3675   cat > conftest.$ac_ext <<EOF
3676 #line 3677 "configure"
3677 #include "confdefs.h"
3678 #include <stdlib.h>
3679 int main() {
3680 llabs(10);
3681 ; return 0; }
3682 EOF
3683 if { (eval echo configure:3684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3684   :
3685 else
3686   echo "configure: failed program was:" >&5
3687   cat conftest.$ac_ext >&5
3688   rm -rf conftest*
3689   ac_c99_stdlib=no
3690 fi
3691 rm -f conftest*
3692   cat > conftest.$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3695 #include <stdlib.h>
3696 int main() {
3697 lldiv(10,1);
3698 ; return 0; }
3699 EOF
3700 if { (eval echo configure:3701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3701   :
3702 else
3703   echo "configure: failed program was:" >&5
3704   cat conftest.$ac_ext >&5
3705   rm -rf conftest*
3706   ac_c99_stdlib=no
3707 fi
3708 rm -f conftest*
3709   cat > conftest.$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3712 #include <stdlib.h>
3713 int main() {
3714 atoll("10");
3715 ; return 0; }
3716 EOF
3717 if { (eval echo configure:3718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3718   :
3719 else
3720   echo "configure: failed program was:" >&5
3721   cat conftest.$ac_ext >&5
3722   rm -rf conftest*
3723   ac_c99_stdlib=no
3724 fi
3725 rm -f conftest*
3726   cat > conftest.$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3729 #include <stdlib.h>
3730 int main() {
3731 _Exit(0);
3732 ; return 0; }
3733 EOF
3734 if { (eval echo configure:3735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3735   :
3736 else
3737   echo "configure: failed program was:" >&5
3738   cat conftest.$ac_ext >&5
3739   rm -rf conftest*
3740   ac_c99_stdlib=no
3741 fi
3742 rm -f conftest*
3743   if test x"$ac_c99_lldiv_t" = x"no"; then
3744     ac_c99_stdlib=no;
3745   fi;
3746   echo "$ac_t""$ac_c99_stdlib" 1>&6
3747
3748   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3749   # XXX the wchar.h checks should be rolled into the general C99 bits.
3750   ac_c99_wchar=yes;
3751   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3752 echo "configure:3753: checking for additional ISO C99 support in <wchar.h>" >&5
3753   cat > conftest.$ac_ext <<EOF
3754 #line 3755 "configure"
3755 #include "confdefs.h"
3756 #include <wchar.h>
3757 int main() {
3758 wcstold(L"10.0", NULL);
3759 ; return 0; }
3760 EOF
3761 if { (eval echo configure:3762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3762   :
3763 else
3764   echo "configure: failed program was:" >&5
3765   cat conftest.$ac_ext >&5
3766   rm -rf conftest*
3767   ac_c99_wchar=no
3768 fi
3769 rm -f conftest*
3770   cat > conftest.$ac_ext <<EOF
3771 #line 3772 "configure"
3772 #include "confdefs.h"
3773 #include <wchar.h>
3774 int main() {
3775 wcstoll(L"10", NULL, 10);
3776 ; return 0; }
3777 EOF
3778 if { (eval echo configure:3779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3779   :
3780 else
3781   echo "configure: failed program was:" >&5
3782   cat conftest.$ac_ext >&5
3783   rm -rf conftest*
3784   ac_c99_wchar=no
3785 fi
3786 rm -f conftest*
3787   cat > conftest.$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3790 #include <wchar.h>
3791 int main() {
3792 wcstoull(L"10", NULL, 10);
3793 ; return 0; }
3794 EOF
3795 if { (eval echo configure:3796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3796   :
3797 else
3798   echo "configure: failed program was:" >&5
3799   cat conftest.$ac_ext >&5
3800   rm -rf conftest*
3801   ac_c99_wchar=no
3802 fi
3803 rm -f conftest*
3804   echo "$ac_t""$ac_c99_wchar" 1>&6
3805
3806   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
3807 echo "configure:3808: checking for enabled ISO C99 support" >&5
3808   if test x"$ac_c99_math" = x"no" ||
3809      test x"$ac_c99_stdio" = x"no" ||
3810      test x"$ac_c99_stdlib" = x"no" ||
3811      test x"$ac_c99_wchar" = x"no"; then
3812     enable_c99=no;
3813   fi;
3814   echo "$ac_t""$enable_c99" 1>&6
3815
3816   # Option parsed, now set things appropriately
3817   if test x"$enable_c99" = x"yes"; then
3818     cat >> confdefs.h <<\EOF
3819 #define _GLIBCPP_USE_C99 1
3820 EOF
3821
3822   fi
3823
3824   ac_ext=c
3825 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3826 ac_cpp='$CPP $CPPFLAGS'
3827 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3828 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3829 cross_compiling=$ac_cv_prog_cc_cross
3830
3831
3832   
3833   # Check whether --enable-long-long or --disable-long-long was given.
3834 if test "${enable_long_long+set}" = set; then
3835   enableval="$enable_long_long"
3836     case "$enableval" in
3837    yes) enable_long_long=yes ;;
3838    no)  enable_long_long=no ;;
3839    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
3840    esac
3841 else
3842   enable_long_long=yes
3843 fi
3844
3845   
3846   ac_ext=C
3847 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3848 ac_cpp='$CXXCPP $CPPFLAGS'
3849 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3850 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3851 cross_compiling=$ac_cv_prog_cxx_cross
3852
3853
3854   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
3855 echo "configure:3856: checking for enabled long long I/O support" >&5
3856   # iostreams require strtoll, strtoull to compile
3857   cat > conftest.$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3860 #include <stdlib.h>
3861 int main() {
3862 char* tmp; strtoll("gnu", &tmp, 10);
3863 ; return 0; }
3864 EOF
3865 if { (eval echo configure:3866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3866   :
3867 else
3868   echo "configure: failed program was:" >&5
3869   cat conftest.$ac_ext >&5
3870   rm -rf conftest*
3871   enable_long_long=no
3872 fi
3873 rm -f conftest*
3874   cat > conftest.$ac_ext <<EOF
3875 #line 3876 "configure"
3876 #include "confdefs.h"
3877 #include <stdlib.h>
3878 int main() {
3879 char* tmp; strtoull("gnu", &tmp, 10);
3880 ; return 0; }
3881 EOF
3882 if { (eval echo configure:3883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3883   :
3884 else
3885   echo "configure: failed program was:" >&5
3886   cat conftest.$ac_ext >&5
3887   rm -rf conftest*
3888   enable_long_long=no
3889 fi
3890 rm -f conftest*
3891
3892   # Option parsed, now set things appropriately
3893   if test x"$enable_long_long" = xyes; then
3894     cat >> confdefs.h <<\EOF
3895 #define _GLIBCPP_USE_LONG_LONG 1
3896 EOF
3897
3898   fi
3899   echo "$ac_t""$enable_long_long" 1>&6
3900
3901   ac_ext=c
3902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3903 ac_cpp='$CPP $CPPFLAGS'
3904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3906 cross_compiling=$ac_cv_prog_cc_cross
3907
3908
3909
3910   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3911 echo "configure:3912: checking for thread model used by GCC" >&5
3912   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3913   echo "$ac_t""$target_thread_file" 1>&6
3914
3915   if test $target_thread_file != single; then
3916     cat >> confdefs.h <<\EOF
3917 #define HAVE_GTHR_DEFAULT 1
3918 EOF
3919
3920     cat >> confdefs.h <<\EOF
3921 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
3922 EOF
3923
3924   fi
3925
3926   glibcpp_thread_h=gthr-$target_thread_file.h
3927   
3928
3929
3930   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
3931 echo "configure:3932: checking for exception model to use" >&5
3932   
3933   ac_ext=C
3934 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3935 ac_cpp='$CXXCPP $CPPFLAGS'
3936 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3937 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3938 cross_compiling=$ac_cv_prog_cxx_cross
3939
3940   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3941 if test "${enable_sjlj_exceptions+set}" = set; then
3942   enableval="$enable_sjlj_exceptions"
3943   :
3944 else
3945                        cat > conftest.$ac_ext << EOF
3946 #line 3947 "configure"
3947 struct S { ~S(); };
3948 void bar();
3949 void foo()
3950 {
3951   S s;
3952   bar();
3953 }
3954 EOF
3955    old_CXXFLAGS="$CXXFLAGS"
3956    CXXFLAGS=-S
3957    if { (eval echo configure:3958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3958      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
3959        enable_sjlj_exceptions=yes
3960      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
3961        enable_sjlj_exceptions=no
3962      fi
3963    fi
3964    CXXFLAGS="$old_CXXFLAGS"
3965    rm -f conftest*
3966 fi
3967
3968    if test x$enable_sjlj_exceptions = xyes; then
3969      cat >> confdefs.h <<\EOF
3970 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
3971 EOF
3972
3973      ac_exception_model_name=sjlj
3974    elif test x$enable_sjlj_exceptions = xno; then
3975      ac_exception_model_name="call frame"
3976    else
3977      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
3978    fi
3979    ac_ext=c
3980 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3981 ac_cpp='$CPP $CPPFLAGS'
3982 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3983 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3984 cross_compiling=$ac_cv_prog_cc_cross
3985
3986    echo "$ac_t""$ac_exception_model_name" 1>&6
3987
3988
3989   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
3990 echo "configure:3991: checking for use of libunwind" >&5
3991   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
3992 if test "${enable_libunwind_exceptions+set}" = set; then
3993   enableval="$enable_libunwind_exceptions"
3994   use_libunwind_exceptions=$enableval
3995 else
3996   use_libunwind_exceptions=no
3997 fi
3998
3999   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4000     if test x"$use_libunwind_exceptions" = xyes; then
4001     LIBUNWIND_FLAG="-lunwind"
4002   else
4003     LIBUNWIND_FLAG=""
4004   fi
4005   
4006
4007 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4008 if test "${enable_concept_checks+set}" = set; then
4009   enableval="$enable_concept_checks"
4010   case "$enableval" in
4011  yes) enable_concept_checks=yes ;;
4012  no)  enable_concept_checks=no ;;
4013  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4014  esac
4015 else
4016   enable_concept_checks=no
4017 fi
4018 if test x"$enable_concept_checks" = xyes; then
4019   cat >> confdefs.h <<\EOF
4020 #define _GLIBCPP_CONCEPT_CHECKS 1
4021 EOF
4022
4023 fi
4024
4025 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4026 echo "configure:4027: checking for extra compiler flags for building" >&5
4027 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4028 if test "${enable_cxx_flags+set}" = set; then
4029   enableval="$enable_cxx_flags"
4030   case "x$enable_cxx_flags" in
4031   xyes)
4032     { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4033   xno | xnone | x)
4034     enable_cxx_flags='' ;;
4035   *)
4036     enable_cxx_flags="$enableval" ;;
4037 esac
4038 else
4039   enable_cxx_flags=
4040 fi
4041
4042
4043 if test -n "$enable_cxx_flags"; then
4044   for f in $enable_cxx_flags; do
4045     case "$f" in
4046       -fhonor-std)  ;;
4047       -*)  ;;
4048       *)   # and we're trying to pass /what/ exactly?
4049            { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4050     esac
4051   done
4052 fi
4053 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4054 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4055
4056
4057 # Check whether --enable-debug or --disable-debug was given.
4058 if test "${enable_debug+set}" = set; then
4059   enableval="$enable_debug"
4060   case "${enableval}" in
4061  yes) enable_debug=yes ;;
4062  no)  enable_debug=no ;;
4063  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4064  esac
4065 else
4066   enable_debug=no
4067 fi
4068 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4069 echo "configure:4070: checking for additional debug build" >&5
4070 echo "$ac_t""$enable_debug" 1>&6
4071
4072
4073 if test "$enable_debug" = yes; then
4074   GLIBCPP_BUILD_DEBUG_TRUE=
4075   GLIBCPP_BUILD_DEBUG_FALSE='#'
4076 else
4077   GLIBCPP_BUILD_DEBUG_TRUE='#'
4078   GLIBCPP_BUILD_DEBUG_FALSE=
4079 fi
4080
4081 # Check whether --enable-debug_flags or --disable-debug_flags was given.
4082 if test "${enable_debug_flags+set}" = set; then
4083   enableval="$enable_debug_flags"
4084   case "${enableval}" in
4085  none)  ;;
4086  -*) enable_debug_flags="${enableval}" ;;
4087  *)   { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4088  esac
4089 else
4090   enable_debug_flags=none
4091 fi
4092
4093 case x"$enable_debug" in
4094     xyes)
4095         case "$enable_debug_flags" in
4096           none)
4097             DEBUG_FLAGS="-g3 -O0";;
4098           -*) #valid input
4099             DEBUG_FLAGS="${enableval}"
4100         esac
4101         ;;
4102     xno)
4103         DEBUG_FLAGS=""
4104         ;;
4105 esac
4106
4107
4108 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4109 echo "configure:4110: checking for debug build flags" >&5
4110 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4111
4112
4113 # Check for headers necessary for libsupc++ using dyn-string.c/cxa_demangle.c
4114 for ac_hdr in string.h stdlib.h
4115 do
4116 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4117 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4118 echo "configure:4119: checking for $ac_hdr" >&5
4119 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4120   echo $ac_n "(cached) $ac_c" 1>&6
4121 else
4122   cat > conftest.$ac_ext <<EOF
4123 #line 4124 "configure"
4124 #include "confdefs.h"
4125 #include <$ac_hdr>
4126 EOF
4127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4128 { (eval echo configure:4129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4130 if test -z "$ac_err"; then
4131   rm -rf conftest*
4132   eval "ac_cv_header_$ac_safe=yes"
4133 else
4134   echo "$ac_err" >&5
4135   echo "configure: failed program was:" >&5
4136   cat conftest.$ac_ext >&5
4137   rm -rf conftest*
4138   eval "ac_cv_header_$ac_safe=no"
4139 fi
4140 rm -f conftest*
4141 fi
4142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4143   echo "$ac_t""yes" 1>&6
4144     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4145   cat >> confdefs.h <<EOF
4146 #define $ac_tr_hdr 1
4147 EOF
4148  
4149 else
4150   echo "$ac_t""no" 1>&6
4151 fi
4152 done
4153
4154
4155 # No surprises, no surprises...
4156 if test $ATOMICITYH = cpu/generic ; then
4157   echo "configure: warning: No native atomic operations are provided yet for this platform." 1>&2
4158   if test $target_thread_file = single; then
4159     echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4160     echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4161   else
4162     echo "configure: warning: They will be faked using a mutex." 1>&2
4163     echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4164   fi
4165 fi
4166
4167
4168 if test -n "$with_cross_host" || test x"$build" != x"$host"; then
4169
4170   # We are being configured with some form of cross compiler.
4171   GLIBCPP_IS_CROSS_COMPILING=1
4172
4173   # This lets us hard-code the functionality we know we'll have in the cross
4174   # target environment.  "Let" is a sugar-coated word placed on an especially
4175   # dull and tedious hack, actually.
4176   #
4177   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4178   # that involve linking, can't be used:
4179   #    "cannot open sim-crt0.o"
4180   #    "cannot open crt0.o"
4181   # etc.  All this is because there currently exists no unified, consistent
4182   # way for top level CC information to be passed down to target directories:
4183   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4184   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4185   # crosses can be removed.
4186
4187   # If Canadian cross, then don't pick up tools from the build directory.
4188   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4189   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host"; then
4190     CANADIAN=yes
4191   else
4192     CANADIAN=no
4193   fi
4194
4195   # Construct crosses by hand, eliminating bits that need ld...
4196   # GLIBCPP_CHECK_COMPILER_FEATURES
4197   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4198   # GLIBCPP_CHECK_MATH_SUPPORT
4199
4200   case "$target" in
4201     *-linux*)
4202       os_include_dir="os/gnu-linux"
4203       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4204         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4205         fp.h locale.h float.h inttypes.h
4206 do
4207 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4208 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4209 echo "configure:4210: checking for $ac_hdr" >&5
4210 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4211   echo $ac_n "(cached) $ac_c" 1>&6
4212 else
4213   cat > conftest.$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4216 #include <$ac_hdr>
4217 EOF
4218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4219 { (eval echo configure:4220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4221 if test -z "$ac_err"; then
4222   rm -rf conftest*
4223   eval "ac_cv_header_$ac_safe=yes"
4224 else
4225   echo "$ac_err" >&5
4226   echo "configure: failed program was:" >&5
4227   cat conftest.$ac_ext >&5
4228   rm -rf conftest*
4229   eval "ac_cv_header_$ac_safe=no"
4230 fi
4231 rm -f conftest*
4232 fi
4233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4234   echo "$ac_t""yes" 1>&6
4235     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4236   cat >> confdefs.h <<EOF
4237 #define $ac_tr_hdr 1
4238 EOF
4239  
4240 else
4241   echo "$ac_t""no" 1>&6
4242 fi
4243 done
4244
4245       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4246       
4247       
4248   # If we're not using GNU ld, then there's no point in even trying these
4249   # tests.  Check for that first.  We should have already tested for gld
4250   # by now (in libtool), but require it now just to be safe...
4251   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4252   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4253   
4254
4255   # The name set by libtool depends on the version of libtool.  Shame on us
4256   # for depending on an impl detail, but c'est la vie.  Older versions used
4257   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4258   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4259   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4260   # set (hence we're using an older libtool), then set it.
4261   if test x${with_gnu_ld+set} != xset; then
4262     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4263       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4264       with_gnu_ld=no
4265     else
4266       with_gnu_ld=$ac_cv_prog_gnu_ld
4267     fi
4268   fi
4269
4270   # Start by getting the version number.  I think the libtool test already
4271   # does some of this, but throws away the result.
4272   
4273   ldver=`$LD --version 2>/dev/null | head -1 | \
4274          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4275   
4276   glibcpp_gnu_ld_version=`echo $ldver | \
4277          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4278
4279   # Set --gc-sections.
4280   if test "$with_gnu_ld" = "notbroken"; then
4281     # GNU ld it is!  Joy and bunny rabbits!
4282
4283     # All these tests are for C++; save the language and the compiler flags.
4284     # Need to do this so that g++ won't try to link in libstdc++
4285     ac_test_CFLAGS="${CFLAGS+set}"
4286     ac_save_CFLAGS="$CFLAGS"
4287     CFLAGS='-x c++  -Wl,--gc-sections'
4288
4289     # Check for -Wl,--gc-sections
4290     # XXX This test is broken at the moment, as symbols required for
4291     # linking are now in libsupc++ (not built yet.....). In addition,
4292     # this test has cored on solaris in the past. In addition,
4293     # --gc-sections doesn't really work at the moment (keeps on discarding
4294     # used sections, first .eh_frame and now some of the glibc sections for
4295     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4296     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4297 echo "configure:4298: checking for ld that supports -Wl,--gc-sections" >&5
4298     if test "$cross_compiling" = yes; then
4299   ac_sectionLDflags=yes
4300 else
4301   cat > conftest.$ac_ext <<EOF
4302 #line 4303 "configure"
4303 #include "confdefs.h"
4304
4305      int main(void)
4306      {
4307        try { throw 1; }
4308        catch (...) { };
4309        return 0;
4310      }
4311     
4312 EOF
4313 if { (eval echo configure:4314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4314 then
4315   ac_sectionLDflags=yes
4316 else
4317   echo "configure: failed program was:" >&5
4318   cat conftest.$ac_ext >&5
4319   rm -fr conftest*
4320   ac_sectionLDflags=no
4321 fi
4322 rm -fr conftest*
4323 fi
4324
4325     if test "$ac_test_CFLAGS" = set; then
4326       CFLAGS="$ac_save_CFLAGS"
4327     else
4328       # this is the suspicious part
4329       CFLAGS=''
4330     fi
4331     if test "$ac_sectionLDflags" = "yes"; then
4332       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4333     fi
4334     echo "$ac_t""$ac_sectionLDflags" 1>&6
4335   fi
4336
4337   # Set linker optimization flags.
4338   if test x"$with_gnu_ld" = x"yes"; then
4339     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4340   fi
4341
4342   
4343   
4344
4345       
4346     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4347 echo "configure:4348: checking for main in -lm" >&5
4348 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4350   echo $ac_n "(cached) $ac_c" 1>&6
4351 else
4352   ac_save_LIBS="$LIBS"
4353 LIBS="-lm  $LIBS"
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4357
4358 int main() {
4359 main()
4360 ; return 0; }
4361 EOF
4362 if { (eval echo configure:4363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4363   rm -rf conftest*
4364   eval "ac_cv_lib_$ac_lib_var=yes"
4365 else
4366   echo "configure: failed program was:" >&5
4367   cat conftest.$ac_ext >&5
4368   rm -rf conftest*
4369   eval "ac_cv_lib_$ac_lib_var=no"
4370 fi
4371 rm -f conftest*
4372 LIBS="$ac_save_LIBS"
4373
4374 fi
4375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4376   echo "$ac_t""yes" 1>&6
4377     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4378     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4379   cat >> confdefs.h <<EOF
4380 #define $ac_tr_lib 1
4381 EOF
4382
4383   LIBS="-lm $LIBS"
4384
4385 else
4386   echo "$ac_t""no" 1>&6
4387 fi
4388
4389   for ac_func in nan copysignf
4390 do
4391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4392 echo "configure:4393: checking for $ac_func" >&5
4393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4394   echo $ac_n "(cached) $ac_c" 1>&6
4395 else
4396   cat > conftest.$ac_ext <<EOF
4397 #line 4398 "configure"
4398 #include "confdefs.h"
4399 /* System header to define __stub macros and hopefully few prototypes,
4400     which can conflict with char $ac_func(); below.  */
4401 #include <assert.h>
4402 /* Override any gcc2 internal prototype to avoid an error.  */
4403 /* We use char because int might match the return type of a gcc2
4404     builtin and then its argument prototype would still apply.  */
4405 char $ac_func();
4406
4407 int main() {
4408
4409 /* The GNU C library defines this for functions which it implements
4410     to always fail with ENOSYS.  Some functions are actually named
4411     something starting with __ and the normal name is an alias.  */
4412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4413 choke me
4414 #else
4415 $ac_func();
4416 #endif
4417
4418 ; return 0; }
4419 EOF
4420 if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4421   rm -rf conftest*
4422   eval "ac_cv_func_$ac_func=yes"
4423 else
4424   echo "configure: failed program was:" >&5
4425   cat conftest.$ac_ext >&5
4426   rm -rf conftest*
4427   eval "ac_cv_func_$ac_func=no"
4428 fi
4429 rm -f conftest*
4430 fi
4431
4432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4433   echo "$ac_t""yes" 1>&6
4434     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4435   cat >> confdefs.h <<EOF
4436 #define $ac_tr_func 1
4437 EOF
4438  
4439 else
4440   echo "$ac_t""no" 1>&6
4441 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4442 fi
4443 done
4444
4445
4446     for ac_func in __signbit
4447 do
4448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4449 echo "configure:4450: checking for $ac_func" >&5
4450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4451   echo $ac_n "(cached) $ac_c" 1>&6
4452 else
4453   cat > conftest.$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4456 /* System header to define __stub macros and hopefully few prototypes,
4457     which can conflict with char $ac_func(); below.  */
4458 #include <assert.h>
4459 /* Override any gcc2 internal prototype to avoid an error.  */
4460 /* We use char because int might match the return type of a gcc2
4461     builtin and then its argument prototype would still apply.  */
4462 char $ac_func();
4463
4464 int main() {
4465
4466 /* The GNU C library defines this for functions which it implements
4467     to always fail with ENOSYS.  Some functions are actually named
4468     something starting with __ and the normal name is an alias.  */
4469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4470 choke me
4471 #else
4472 $ac_func();
4473 #endif
4474
4475 ; return 0; }
4476 EOF
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4478   rm -rf conftest*
4479   eval "ac_cv_func_$ac_func=yes"
4480 else
4481   echo "configure: failed program was:" >&5
4482   cat conftest.$ac_ext >&5
4483   rm -rf conftest*
4484   eval "ac_cv_func_$ac_func=no"
4485 fi
4486 rm -f conftest*
4487 fi
4488
4489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4490   echo "$ac_t""yes" 1>&6
4491     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4492   cat >> confdefs.h <<EOF
4493 #define $ac_tr_func 1
4494 EOF
4495  
4496 else
4497   echo "$ac_t""no" 1>&6
4498 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4499 fi
4500 done
4501
4502   for ac_func in __signbitf
4503 do
4504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4505 echo "configure:4506: checking for $ac_func" >&5
4506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4507   echo $ac_n "(cached) $ac_c" 1>&6
4508 else
4509   cat > conftest.$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4512 /* System header to define __stub macros and hopefully few prototypes,
4513     which can conflict with char $ac_func(); below.  */
4514 #include <assert.h>
4515 /* Override any gcc2 internal prototype to avoid an error.  */
4516 /* We use char because int might match the return type of a gcc2
4517     builtin and then its argument prototype would still apply.  */
4518 char $ac_func();
4519
4520 int main() {
4521
4522 /* The GNU C library defines this for functions which it implements
4523     to always fail with ENOSYS.  Some functions are actually named
4524     something starting with __ and the normal name is an alias.  */
4525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4526 choke me
4527 #else
4528 $ac_func();
4529 #endif
4530
4531 ; return 0; }
4532 EOF
4533 if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4534   rm -rf conftest*
4535   eval "ac_cv_func_$ac_func=yes"
4536 else
4537   echo "configure: failed program was:" >&5
4538   cat conftest.$ac_ext >&5
4539   rm -rf conftest*
4540   eval "ac_cv_func_$ac_func=no"
4541 fi
4542 rm -f conftest*
4543 fi
4544
4545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4546   echo "$ac_t""yes" 1>&6
4547     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4548   cat >> confdefs.h <<EOF
4549 #define $ac_tr_func 1
4550 EOF
4551  
4552 else
4553   echo "$ac_t""no" 1>&6
4554 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4555 fi
4556 done
4557
4558
4559           if test x$ac_cv_func_copysignl = x"yes"; then
4560     for ac_func in __signbitl
4561 do
4562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4563 echo "configure:4564: checking for $ac_func" >&5
4564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4565   echo $ac_n "(cached) $ac_c" 1>&6
4566 else
4567   cat > conftest.$ac_ext <<EOF
4568 #line 4569 "configure"
4569 #include "confdefs.h"
4570 /* System header to define __stub macros and hopefully few prototypes,
4571     which can conflict with char $ac_func(); below.  */
4572 #include <assert.h>
4573 /* Override any gcc2 internal prototype to avoid an error.  */
4574 /* We use char because int might match the return type of a gcc2
4575     builtin and then its argument prototype would still apply.  */
4576 char $ac_func();
4577
4578 int main() {
4579
4580 /* The GNU C library defines this for functions which it implements
4581     to always fail with ENOSYS.  Some functions are actually named
4582     something starting with __ and the normal name is an alias.  */
4583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4584 choke me
4585 #else
4586 $ac_func();
4587 #endif
4588
4589 ; return 0; }
4590 EOF
4591 if { (eval echo configure:4592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4592   rm -rf conftest*
4593   eval "ac_cv_func_$ac_func=yes"
4594 else
4595   echo "configure: failed program was:" >&5
4596   cat conftest.$ac_ext >&5
4597   rm -rf conftest*
4598   eval "ac_cv_func_$ac_func=no"
4599 fi
4600 rm -f conftest*
4601 fi
4602
4603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4604   echo "$ac_t""yes" 1>&6
4605     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4606   cat >> confdefs.h <<EOF
4607 #define $ac_tr_func 1
4608 EOF
4609  
4610 else
4611   echo "$ac_t""no" 1>&6
4612 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4613 fi
4614 done
4615
4616   fi
4617
4618   if test -n "$LIBMATHOBJS"; then
4619     need_libmath=yes
4620   fi
4621   
4622   
4623
4624 if test "$need_libmath" = yes; then
4625   GLIBCPP_BUILD_LIBMATH_TRUE=
4626   GLIBCPP_BUILD_LIBMATH_FALSE='#'
4627 else
4628   GLIBCPP_BUILD_LIBMATH_TRUE='#'
4629   GLIBCPP_BUILD_LIBMATH_FALSE=
4630 fi
4631
4632       
4633
4634       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4635 echo "configure:4636: checking for mbstate_t" >&5
4636   cat > conftest.$ac_ext <<EOF
4637 #line 4638 "configure"
4638 #include "confdefs.h"
4639 #include <wchar.h>
4640 int main() {
4641 mbstate_t teststate;
4642 ; return 0; }
4643 EOF
4644 if { (eval echo configure:4645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4645   rm -rf conftest*
4646   have_mbstate_t=yes
4647 else
4648   echo "configure: failed program was:" >&5
4649   cat conftest.$ac_ext >&5
4650   rm -rf conftest*
4651   have_mbstate_t=no
4652 fi
4653 rm -f conftest*
4654   echo "$ac_t""$have_mbstate_t" 1>&6
4655   if test x"$have_mbstate_t" = xyes; then
4656     cat >> confdefs.h <<\EOF
4657 #define HAVE_MBSTATE_T 1
4658 EOF
4659
4660   fi
4661
4662     for ac_hdr in wchar.h
4663 do
4664 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4665 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4666 echo "configure:4667: checking for $ac_hdr" >&5
4667 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4668   echo $ac_n "(cached) $ac_c" 1>&6
4669 else
4670   cat > conftest.$ac_ext <<EOF
4671 #line 4672 "configure"
4672 #include "confdefs.h"
4673 #include <$ac_hdr>
4674 EOF
4675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4676 { (eval echo configure:4677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4678 if test -z "$ac_err"; then
4679   rm -rf conftest*
4680   eval "ac_cv_header_$ac_safe=yes"
4681 else
4682   echo "$ac_err" >&5
4683   echo "configure: failed program was:" >&5
4684   cat conftest.$ac_ext >&5
4685   rm -rf conftest*
4686   eval "ac_cv_header_$ac_safe=no"
4687 fi
4688 rm -f conftest*
4689 fi
4690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4691   echo "$ac_t""yes" 1>&6
4692     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4693   cat >> confdefs.h <<EOF
4694 #define $ac_tr_hdr 1
4695 EOF
4696  ac_has_wchar_h=yes
4697 else
4698   echo "$ac_t""no" 1>&6
4699 ac_has_wchar_h=no
4700 fi
4701 done
4702
4703   for ac_hdr in wctype.h
4704 do
4705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4707 echo "configure:4708: checking for $ac_hdr" >&5
4708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4709   echo $ac_n "(cached) $ac_c" 1>&6
4710 else
4711   cat > conftest.$ac_ext <<EOF
4712 #line 4713 "configure"
4713 #include "confdefs.h"
4714 #include <$ac_hdr>
4715 EOF
4716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4717 { (eval echo configure:4718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4719 if test -z "$ac_err"; then
4720   rm -rf conftest*
4721   eval "ac_cv_header_$ac_safe=yes"
4722 else
4723   echo "$ac_err" >&5
4724   echo "configure: failed program was:" >&5
4725   cat conftest.$ac_ext >&5
4726   rm -rf conftest*
4727   eval "ac_cv_header_$ac_safe=no"
4728 fi
4729 rm -f conftest*
4730 fi
4731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4732   echo "$ac_t""yes" 1>&6
4733     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4734   cat >> confdefs.h <<EOF
4735 #define $ac_tr_hdr 1
4736 EOF
4737  ac_has_wctype_h=yes
4738 else
4739   echo "$ac_t""no" 1>&6
4740 ac_has_wctype_h=no
4741 fi
4742 done
4743
4744
4745     if test x"$ac_has_wchar_h" = xyes &&
4746      test x"$ac_has_wctype_h" = xyes &&
4747      test x"$enable_c_mbchar" != xno; then
4748
4749             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4750 echo "configure:4751: checking for WCHAR_MIN and WCHAR_MAX" >&5
4751     cat > conftest.$ac_ext <<EOF
4752 #line 4753 "configure"
4753 #include "confdefs.h"
4754 #include <wchar.h>
4755 int main() {
4756 int i = WCHAR_MIN; int j = WCHAR_MAX;
4757 ; return 0; }
4758 EOF
4759 if { (eval echo configure:4760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4760   rm -rf conftest*
4761   has_wchar_minmax=yes
4762 else
4763   echo "configure: failed program was:" >&5
4764   cat conftest.$ac_ext >&5
4765   rm -rf conftest*
4766   has_wchar_minmax=no
4767 fi
4768 rm -f conftest*
4769     echo "$ac_t""$has_wchar_minmax" 1>&6
4770
4771             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4772 echo "configure:4773: checking for WEOF" >&5
4773     cat > conftest.$ac_ext <<EOF
4774 #line 4775 "configure"
4775 #include "confdefs.h"
4776
4777       #include <wchar.h>
4778       #include <stddef.h>
4779 int main() {
4780 wint_t i = WEOF;
4781 ; return 0; }
4782 EOF
4783 if { (eval echo configure:4784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4784   rm -rf conftest*
4785   has_weof=yes
4786 else
4787   echo "configure: failed program was:" >&5
4788   cat conftest.$ac_ext >&5
4789   rm -rf conftest*
4790   has_weof=no
4791 fi
4792 rm -f conftest*
4793     echo "$ac_t""$has_weof" 1>&6
4794
4795         ac_wfuncs=yes
4796     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4797 do
4798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4799 echo "configure:4800: checking for $ac_func" >&5
4800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4801   echo $ac_n "(cached) $ac_c" 1>&6
4802 else
4803   cat > conftest.$ac_ext <<EOF
4804 #line 4805 "configure"
4805 #include "confdefs.h"
4806 /* System header to define __stub macros and hopefully few prototypes,
4807     which can conflict with char $ac_func(); below.  */
4808 #include <assert.h>
4809 /* Override any gcc2 internal prototype to avoid an error.  */
4810 /* We use char because int might match the return type of a gcc2
4811     builtin and then its argument prototype would still apply.  */
4812 char $ac_func();
4813
4814 int main() {
4815
4816 /* The GNU C library defines this for functions which it implements
4817     to always fail with ENOSYS.  Some functions are actually named
4818     something starting with __ and the normal name is an alias.  */
4819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4820 choke me
4821 #else
4822 $ac_func();
4823 #endif
4824
4825 ; return 0; }
4826 EOF
4827 if { (eval echo configure:4828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4828   rm -rf conftest*
4829   eval "ac_cv_func_$ac_func=yes"
4830 else
4831   echo "configure: failed program was:" >&5
4832   cat conftest.$ac_ext >&5
4833   rm -rf conftest*
4834   eval "ac_cv_func_$ac_func=no"
4835 fi
4836 rm -f conftest*
4837 fi
4838
4839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4840   echo "$ac_t""yes" 1>&6
4841     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4842   cat >> confdefs.h <<EOF
4843 #define $ac_tr_func 1
4844 EOF
4845  
4846 else
4847   echo "$ac_t""no" 1>&6
4848 \
4849     ac_wfuncs=no
4850 fi
4851 done
4852
4853
4854         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
4855     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
4856     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
4857     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
4858     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
4859     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
4860 do
4861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4862 echo "configure:4863: checking for $ac_func" >&5
4863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4864   echo $ac_n "(cached) $ac_c" 1>&6
4865 else
4866   cat > conftest.$ac_ext <<EOF
4867 #line 4868 "configure"
4868 #include "confdefs.h"
4869 /* System header to define __stub macros and hopefully few prototypes,
4870     which can conflict with char $ac_func(); below.  */
4871 #include <assert.h>
4872 /* Override any gcc2 internal prototype to avoid an error.  */
4873 /* We use char because int might match the return type of a gcc2
4874     builtin and then its argument prototype would still apply.  */
4875 char $ac_func();
4876
4877 int main() {
4878
4879 /* The GNU C library defines this for functions which it implements
4880     to always fail with ENOSYS.  Some functions are actually named
4881     something starting with __ and the normal name is an alias.  */
4882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4883 choke me
4884 #else
4885 $ac_func();
4886 #endif
4887
4888 ; return 0; }
4889 EOF
4890 if { (eval echo configure:4891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4891   rm -rf conftest*
4892   eval "ac_cv_func_$ac_func=yes"
4893 else
4894   echo "configure: failed program was:" >&5
4895   cat conftest.$ac_ext >&5
4896   rm -rf conftest*
4897   eval "ac_cv_func_$ac_func=no"
4898 fi
4899 rm -f conftest*
4900 fi
4901
4902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4903   echo "$ac_t""yes" 1>&6
4904     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4905   cat >> confdefs.h <<EOF
4906 #define $ac_tr_func 1
4907 EOF
4908  
4909 else
4910   echo "$ac_t""no" 1>&6
4911 \
4912     ac_wfuncs=no
4913 fi
4914 done
4915
4916
4917     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
4918 echo "configure:4919: checking for ISO C99 wchar_t support" >&5
4919     if test x"$has_weof" = xyes &&
4920        test x"$has_wchar_minmax" = xyes &&
4921        test x"$ac_wfuncs" = xyes; then
4922       ac_isoC99_wchar_t=yes
4923     else
4924       ac_isoC99_wchar_t=no
4925     fi
4926     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
4927
4928             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
4929 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
4930 echo "configure:4931: checking for iconv.h" >&5
4931 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4932   echo $ac_n "(cached) $ac_c" 1>&6
4933 else
4934   cat > conftest.$ac_ext <<EOF
4935 #line 4936 "configure"
4936 #include "confdefs.h"
4937 #include <iconv.h>
4938 EOF
4939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4940 { (eval echo configure:4941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4942 if test -z "$ac_err"; then
4943   rm -rf conftest*
4944   eval "ac_cv_header_$ac_safe=yes"
4945 else
4946   echo "$ac_err" >&5
4947   echo "configure: failed program was:" >&5
4948   cat conftest.$ac_ext >&5
4949   rm -rf conftest*
4950   eval "ac_cv_header_$ac_safe=no"
4951 fi
4952 rm -f conftest*
4953 fi
4954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4955   echo "$ac_t""yes" 1>&6
4956   ac_has_iconv_h=yes
4957 else
4958   echo "$ac_t""no" 1>&6
4959 ac_has_iconv_h=no
4960 fi
4961
4962     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
4963 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
4964 echo "configure:4965: checking for langinfo.h" >&5
4965 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4966   echo $ac_n "(cached) $ac_c" 1>&6
4967 else
4968   cat > conftest.$ac_ext <<EOF
4969 #line 4970 "configure"
4970 #include "confdefs.h"
4971 #include <langinfo.h>
4972 EOF
4973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4974 { (eval echo configure:4975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4976 if test -z "$ac_err"; then
4977   rm -rf conftest*
4978   eval "ac_cv_header_$ac_safe=yes"
4979 else
4980   echo "$ac_err" >&5
4981   echo "configure: failed program was:" >&5
4982   cat conftest.$ac_ext >&5
4983   rm -rf conftest*
4984   eval "ac_cv_header_$ac_safe=no"
4985 fi
4986 rm -f conftest*
4987 fi
4988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4989   echo "$ac_t""yes" 1>&6
4990   ac_has_langinfo_h=yes
4991 else
4992   echo "$ac_t""no" 1>&6
4993 ac_has_langinfo_h=no
4994 fi
4995
4996
4997         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
4998 echo "configure:4999: checking for iconv in -liconv" >&5
4999 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5000 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5001   echo $ac_n "(cached) $ac_c" 1>&6
5002 else
5003   ac_save_LIBS="$LIBS"
5004 LIBS="-liconv  $LIBS"
5005 cat > conftest.$ac_ext <<EOF
5006 #line 5007 "configure"
5007 #include "confdefs.h"
5008 /* Override any gcc2 internal prototype to avoid an error.  */
5009 /* We use char because int might match the return type of a gcc2
5010     builtin and then its argument prototype would still apply.  */
5011 char iconv();
5012
5013 int main() {
5014 iconv()
5015 ; return 0; }
5016 EOF
5017 if { (eval echo configure:5018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5018   rm -rf conftest*
5019   eval "ac_cv_lib_$ac_lib_var=yes"
5020 else
5021   echo "configure: failed program was:" >&5
5022   cat conftest.$ac_ext >&5
5023   rm -rf conftest*
5024   eval "ac_cv_lib_$ac_lib_var=no"
5025 fi
5026 rm -f conftest*
5027 LIBS="$ac_save_LIBS"
5028
5029 fi
5030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5031   echo "$ac_t""yes" 1>&6
5032   libiconv="-liconv"
5033 else
5034   echo "$ac_t""no" 1>&6
5035 fi
5036
5037     ac_save_LIBS="$LIBS"
5038     LIBS="$LIBS $libiconv"
5039
5040     for ac_func in iconv_open iconv_close iconv nl_langinfo
5041 do
5042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5043 echo "configure:5044: checking for $ac_func" >&5
5044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5045   echo $ac_n "(cached) $ac_c" 1>&6
5046 else
5047   cat > conftest.$ac_ext <<EOF
5048 #line 5049 "configure"
5049 #include "confdefs.h"
5050 /* System header to define __stub macros and hopefully few prototypes,
5051     which can conflict with char $ac_func(); below.  */
5052 #include <assert.h>
5053 /* Override any gcc2 internal prototype to avoid an error.  */
5054 /* We use char because int might match the return type of a gcc2
5055     builtin and then its argument prototype would still apply.  */
5056 char $ac_func();
5057
5058 int main() {
5059
5060 /* The GNU C library defines this for functions which it implements
5061     to always fail with ENOSYS.  Some functions are actually named
5062     something starting with __ and the normal name is an alias.  */
5063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5064 choke me
5065 #else
5066 $ac_func();
5067 #endif
5068
5069 ; return 0; }
5070 EOF
5071 if { (eval echo configure:5072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5072   rm -rf conftest*
5073   eval "ac_cv_func_$ac_func=yes"
5074 else
5075   echo "configure: failed program was:" >&5
5076   cat conftest.$ac_ext >&5
5077   rm -rf conftest*
5078   eval "ac_cv_func_$ac_func=no"
5079 fi
5080 rm -f conftest*
5081 fi
5082
5083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5084   echo "$ac_t""yes" 1>&6
5085     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5086   cat >> confdefs.h <<EOF
5087 #define $ac_tr_func 1
5088 EOF
5089  \
5090     ac_XPG2funcs=yes
5091 else
5092   echo "$ac_t""no" 1>&6
5093 ac_XPG2funcs=no
5094 fi
5095 done
5096
5097
5098     LIBS="$ac_save_LIBS"
5099
5100     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5101 echo "configure:5102: checking for XPG2 wchar_t support" >&5
5102     if test x"$ac_has_iconv_h" = xyes &&
5103        test x"$ac_has_langinfo_h" = xyes &&
5104        test x"$ac_XPG2funcs" = xyes; then
5105       ac_XPG2_wchar_t=yes
5106     else
5107       ac_XPG2_wchar_t=no
5108     fi
5109     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5110
5111             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5112 echo "configure:5113: checking for enabled wchar_t specializations" >&5
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       echo "$ac_t"""yes"" 1>&6
5120     else
5121       echo "$ac_t"""no"" 1>&6
5122     fi
5123   else
5124         echo "configure: warning: wchar_t support disabled." 1>&2
5125   fi
5126
5127       cat >> confdefs.h <<\EOF
5128 #define HAVE_COPYSIGN 1
5129 EOF
5130
5131       cat >> confdefs.h <<\EOF
5132 #define HAVE_COPYSIGNF 1
5133 EOF
5134
5135       cat >> confdefs.h <<\EOF
5136 #define HAVE_FINITE 1
5137 EOF
5138
5139       cat >> confdefs.h <<\EOF
5140 #define HAVE_FINITEF 1
5141 EOF
5142
5143       cat >> confdefs.h <<\EOF
5144 #define HAVE_FREXPF 1
5145 EOF
5146
5147       cat >> confdefs.h <<\EOF
5148 #define HAVE_HYPOTF 1
5149 EOF
5150
5151       cat >> confdefs.h <<\EOF
5152 #define HAVE_ISINF 1
5153 EOF
5154
5155       cat >> confdefs.h <<\EOF
5156 #define HAVE_ISINFF 1
5157 EOF
5158
5159       cat >> confdefs.h <<\EOF
5160 #define HAVE_ISNAN 1
5161 EOF
5162
5163       cat >> confdefs.h <<\EOF
5164 #define HAVE_ISNANF 1
5165 EOF
5166
5167       cat >> confdefs.h <<\EOF
5168 #define HAVE_SINCOS 1
5169 EOF
5170
5171       cat >> confdefs.h <<\EOF
5172 #define HAVE_SINCOSF 1
5173 EOF
5174
5175       if test x"long_double_math_on_this_cpu" = x"yes"; then
5176         cat >> confdefs.h <<\EOF
5177 #define HAVE_FINITEL 1
5178 EOF
5179
5180         cat >> confdefs.h <<\EOF
5181 #define HAVE_HYPOTL 1
5182 EOF
5183
5184         cat >> confdefs.h <<\EOF
5185 #define HAVE_ISINFL 1
5186 EOF
5187
5188         cat >> confdefs.h <<\EOF
5189 #define HAVE_ISNANL 1
5190 EOF
5191
5192       fi
5193       ;;
5194     *-hpux*)
5195       # Check for available headers.
5196       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5197         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5198         fp.h locale.h float.h inttypes.h
5199 do
5200 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5201 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5202 echo "configure:5203: checking for $ac_hdr" >&5
5203 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5204   echo $ac_n "(cached) $ac_c" 1>&6
5205 else
5206   cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 #include <$ac_hdr>
5210 EOF
5211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5212 { (eval echo configure:5213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5214 if test -z "$ac_err"; then
5215   rm -rf conftest*
5216   eval "ac_cv_header_$ac_safe=yes"
5217 else
5218   echo "$ac_err" >&5
5219   echo "configure: failed program was:" >&5
5220   cat conftest.$ac_ext >&5
5221   rm -rf conftest*
5222   eval "ac_cv_header_$ac_safe=no"
5223 fi
5224 rm -f conftest*
5225 fi
5226 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5227   echo "$ac_t""yes" 1>&6
5228     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5229   cat >> confdefs.h <<EOF
5230 #define $ac_tr_hdr 1
5231 EOF
5232  
5233 else
5234   echo "$ac_t""no" 1>&6
5235 fi
5236 done
5237
5238       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5239       
5240       
5241   # If we're not using GNU ld, then there's no point in even trying these
5242   # tests.  Check for that first.  We should have already tested for gld
5243   # by now (in libtool), but require it now just to be safe...
5244   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5245   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5246   
5247
5248   # The name set by libtool depends on the version of libtool.  Shame on us
5249   # for depending on an impl detail, but c'est la vie.  Older versions used
5250   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5251   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5252   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5253   # set (hence we're using an older libtool), then set it.
5254   if test x${with_gnu_ld+set} != xset; then
5255     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5256       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5257       with_gnu_ld=no
5258     else
5259       with_gnu_ld=$ac_cv_prog_gnu_ld
5260     fi
5261   fi
5262
5263   # Start by getting the version number.  I think the libtool test already
5264   # does some of this, but throws away the result.
5265   
5266   ldver=`$LD --version 2>/dev/null | head -1 | \
5267          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5268   
5269   glibcpp_gnu_ld_version=`echo $ldver | \
5270          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5271
5272   # Set --gc-sections.
5273   if test "$with_gnu_ld" = "notbroken"; then
5274     # GNU ld it is!  Joy and bunny rabbits!
5275
5276     # All these tests are for C++; save the language and the compiler flags.
5277     # Need to do this so that g++ won't try to link in libstdc++
5278     ac_test_CFLAGS="${CFLAGS+set}"
5279     ac_save_CFLAGS="$CFLAGS"
5280     CFLAGS='-x c++  -Wl,--gc-sections'
5281
5282     # Check for -Wl,--gc-sections
5283     # XXX This test is broken at the moment, as symbols required for
5284     # linking are now in libsupc++ (not built yet.....). In addition,
5285     # this test has cored on solaris in the past. In addition,
5286     # --gc-sections doesn't really work at the moment (keeps on discarding
5287     # used sections, first .eh_frame and now some of the glibc sections for
5288     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5289     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5290 echo "configure:5291: checking for ld that supports -Wl,--gc-sections" >&5
5291     if test "$cross_compiling" = yes; then
5292   ac_sectionLDflags=yes
5293 else
5294   cat > conftest.$ac_ext <<EOF
5295 #line 5296 "configure"
5296 #include "confdefs.h"
5297
5298      int main(void)
5299      {
5300        try { throw 1; }
5301        catch (...) { };
5302        return 0;
5303      }
5304     
5305 EOF
5306 if { (eval echo configure:5307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5307 then
5308   ac_sectionLDflags=yes
5309 else
5310   echo "configure: failed program was:" >&5
5311   cat conftest.$ac_ext >&5
5312   rm -fr conftest*
5313   ac_sectionLDflags=no
5314 fi
5315 rm -fr conftest*
5316 fi
5317
5318     if test "$ac_test_CFLAGS" = set; then
5319       CFLAGS="$ac_save_CFLAGS"
5320     else
5321       # this is the suspicious part
5322       CFLAGS=''
5323     fi
5324     if test "$ac_sectionLDflags" = "yes"; then
5325       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5326     fi
5327     echo "$ac_t""$ac_sectionLDflags" 1>&6
5328   fi
5329
5330   # Set linker optimization flags.
5331   if test x"$with_gnu_ld" = x"yes"; then
5332     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5333   fi
5334
5335   
5336   
5337
5338       
5339     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5340 echo "configure:5341: checking for main in -lm" >&5
5341 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5343   echo $ac_n "(cached) $ac_c" 1>&6
5344 else
5345   ac_save_LIBS="$LIBS"
5346 LIBS="-lm  $LIBS"
5347 cat > conftest.$ac_ext <<EOF
5348 #line 5349 "configure"
5349 #include "confdefs.h"
5350
5351 int main() {
5352 main()
5353 ; return 0; }
5354 EOF
5355 if { (eval echo configure:5356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5356   rm -rf conftest*
5357   eval "ac_cv_lib_$ac_lib_var=yes"
5358 else
5359   echo "configure: failed program was:" >&5
5360   cat conftest.$ac_ext >&5
5361   rm -rf conftest*
5362   eval "ac_cv_lib_$ac_lib_var=no"
5363 fi
5364 rm -f conftest*
5365 LIBS="$ac_save_LIBS"
5366
5367 fi
5368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5369   echo "$ac_t""yes" 1>&6
5370     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5371     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5372   cat >> confdefs.h <<EOF
5373 #define $ac_tr_lib 1
5374 EOF
5375
5376   LIBS="-lm $LIBS"
5377
5378 else
5379   echo "$ac_t""no" 1>&6
5380 fi
5381
5382   for ac_func in nan copysignf
5383 do
5384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5385 echo "configure:5386: checking for $ac_func" >&5
5386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5387   echo $ac_n "(cached) $ac_c" 1>&6
5388 else
5389   cat > conftest.$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5392 /* System header to define __stub macros and hopefully few prototypes,
5393     which can conflict with char $ac_func(); below.  */
5394 #include <assert.h>
5395 /* Override any gcc2 internal prototype to avoid an error.  */
5396 /* We use char because int might match the return type of a gcc2
5397     builtin and then its argument prototype would still apply.  */
5398 char $ac_func();
5399
5400 int main() {
5401
5402 /* The GNU C library defines this for functions which it implements
5403     to always fail with ENOSYS.  Some functions are actually named
5404     something starting with __ and the normal name is an alias.  */
5405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5406 choke me
5407 #else
5408 $ac_func();
5409 #endif
5410
5411 ; return 0; }
5412 EOF
5413 if { (eval echo configure:5414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5414   rm -rf conftest*
5415   eval "ac_cv_func_$ac_func=yes"
5416 else
5417   echo "configure: failed program was:" >&5
5418   cat conftest.$ac_ext >&5
5419   rm -rf conftest*
5420   eval "ac_cv_func_$ac_func=no"
5421 fi
5422 rm -f conftest*
5423 fi
5424
5425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5426   echo "$ac_t""yes" 1>&6
5427     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5428   cat >> confdefs.h <<EOF
5429 #define $ac_tr_func 1
5430 EOF
5431  
5432 else
5433   echo "$ac_t""no" 1>&6
5434 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5435 fi
5436 done
5437
5438
5439     for ac_func in __signbit
5440 do
5441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5442 echo "configure:5443: checking for $ac_func" >&5
5443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5444   echo $ac_n "(cached) $ac_c" 1>&6
5445 else
5446   cat > conftest.$ac_ext <<EOF
5447 #line 5448 "configure"
5448 #include "confdefs.h"
5449 /* System header to define __stub macros and hopefully few prototypes,
5450     which can conflict with char $ac_func(); below.  */
5451 #include <assert.h>
5452 /* Override any gcc2 internal prototype to avoid an error.  */
5453 /* We use char because int might match the return type of a gcc2
5454     builtin and then its argument prototype would still apply.  */
5455 char $ac_func();
5456
5457 int main() {
5458
5459 /* The GNU C library defines this for functions which it implements
5460     to always fail with ENOSYS.  Some functions are actually named
5461     something starting with __ and the normal name is an alias.  */
5462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5463 choke me
5464 #else
5465 $ac_func();
5466 #endif
5467
5468 ; return 0; }
5469 EOF
5470 if { (eval echo configure:5471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5471   rm -rf conftest*
5472   eval "ac_cv_func_$ac_func=yes"
5473 else
5474   echo "configure: failed program was:" >&5
5475   cat conftest.$ac_ext >&5
5476   rm -rf conftest*
5477   eval "ac_cv_func_$ac_func=no"
5478 fi
5479 rm -f conftest*
5480 fi
5481
5482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5483   echo "$ac_t""yes" 1>&6
5484     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5485   cat >> confdefs.h <<EOF
5486 #define $ac_tr_func 1
5487 EOF
5488  
5489 else
5490   echo "$ac_t""no" 1>&6
5491 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5492 fi
5493 done
5494
5495   for ac_func in __signbitf
5496 do
5497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5498 echo "configure:5499: checking for $ac_func" >&5
5499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5500   echo $ac_n "(cached) $ac_c" 1>&6
5501 else
5502   cat > conftest.$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5505 /* System header to define __stub macros and hopefully few prototypes,
5506     which can conflict with char $ac_func(); below.  */
5507 #include <assert.h>
5508 /* Override any gcc2 internal prototype to avoid an error.  */
5509 /* We use char because int might match the return type of a gcc2
5510     builtin and then its argument prototype would still apply.  */
5511 char $ac_func();
5512
5513 int main() {
5514
5515 /* The GNU C library defines this for functions which it implements
5516     to always fail with ENOSYS.  Some functions are actually named
5517     something starting with __ and the normal name is an alias.  */
5518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5519 choke me
5520 #else
5521 $ac_func();
5522 #endif
5523
5524 ; return 0; }
5525 EOF
5526 if { (eval echo configure:5527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5527   rm -rf conftest*
5528   eval "ac_cv_func_$ac_func=yes"
5529 else
5530   echo "configure: failed program was:" >&5
5531   cat conftest.$ac_ext >&5
5532   rm -rf conftest*
5533   eval "ac_cv_func_$ac_func=no"
5534 fi
5535 rm -f conftest*
5536 fi
5537
5538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5539   echo "$ac_t""yes" 1>&6
5540     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5541   cat >> confdefs.h <<EOF
5542 #define $ac_tr_func 1
5543 EOF
5544  
5545 else
5546   echo "$ac_t""no" 1>&6
5547 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5548 fi
5549 done
5550
5551
5552           if test x$ac_cv_func_copysignl = x"yes"; then
5553     for ac_func in __signbitl
5554 do
5555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5556 echo "configure:5557: checking for $ac_func" >&5
5557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5558   echo $ac_n "(cached) $ac_c" 1>&6
5559 else
5560   cat > conftest.$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5563 /* System header to define __stub macros and hopefully few prototypes,
5564     which can conflict with char $ac_func(); below.  */
5565 #include <assert.h>
5566 /* Override any gcc2 internal prototype to avoid an error.  */
5567 /* We use char because int might match the return type of a gcc2
5568     builtin and then its argument prototype would still apply.  */
5569 char $ac_func();
5570
5571 int main() {
5572
5573 /* The GNU C library defines this for functions which it implements
5574     to always fail with ENOSYS.  Some functions are actually named
5575     something starting with __ and the normal name is an alias.  */
5576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5577 choke me
5578 #else
5579 $ac_func();
5580 #endif
5581
5582 ; return 0; }
5583 EOF
5584 if { (eval echo configure:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5585   rm -rf conftest*
5586   eval "ac_cv_func_$ac_func=yes"
5587 else
5588   echo "configure: failed program was:" >&5
5589   cat conftest.$ac_ext >&5
5590   rm -rf conftest*
5591   eval "ac_cv_func_$ac_func=no"
5592 fi
5593 rm -f conftest*
5594 fi
5595
5596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5597   echo "$ac_t""yes" 1>&6
5598     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5599   cat >> confdefs.h <<EOF
5600 #define $ac_tr_func 1
5601 EOF
5602  
5603 else
5604   echo "$ac_t""no" 1>&6
5605 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5606 fi
5607 done
5608
5609   fi
5610
5611   if test -n "$LIBMATHOBJS"; then
5612     need_libmath=yes
5613   fi
5614   
5615   
5616
5617 if test "$need_libmath" = yes; then
5618   GLIBCPP_BUILD_LIBMATH_TRUE=
5619   GLIBCPP_BUILD_LIBMATH_FALSE='#'
5620 else
5621   GLIBCPP_BUILD_LIBMATH_TRUE='#'
5622   GLIBCPP_BUILD_LIBMATH_FALSE=
5623 fi
5624
5625       
5626
5627       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5628 echo "configure:5629: checking for mbstate_t" >&5
5629   cat > conftest.$ac_ext <<EOF
5630 #line 5631 "configure"
5631 #include "confdefs.h"
5632 #include <wchar.h>
5633 int main() {
5634 mbstate_t teststate;
5635 ; return 0; }
5636 EOF
5637 if { (eval echo configure:5638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5638   rm -rf conftest*
5639   have_mbstate_t=yes
5640 else
5641   echo "configure: failed program was:" >&5
5642   cat conftest.$ac_ext >&5
5643   rm -rf conftest*
5644   have_mbstate_t=no
5645 fi
5646 rm -f conftest*
5647   echo "$ac_t""$have_mbstate_t" 1>&6
5648   if test x"$have_mbstate_t" = xyes; then
5649     cat >> confdefs.h <<\EOF
5650 #define HAVE_MBSTATE_T 1
5651 EOF
5652
5653   fi
5654
5655     for ac_hdr in wchar.h
5656 do
5657 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5659 echo "configure:5660: checking for $ac_hdr" >&5
5660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5661   echo $ac_n "(cached) $ac_c" 1>&6
5662 else
5663   cat > conftest.$ac_ext <<EOF
5664 #line 5665 "configure"
5665 #include "confdefs.h"
5666 #include <$ac_hdr>
5667 EOF
5668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5669 { (eval echo configure:5670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5671 if test -z "$ac_err"; then
5672   rm -rf conftest*
5673   eval "ac_cv_header_$ac_safe=yes"
5674 else
5675   echo "$ac_err" >&5
5676   echo "configure: failed program was:" >&5
5677   cat conftest.$ac_ext >&5
5678   rm -rf conftest*
5679   eval "ac_cv_header_$ac_safe=no"
5680 fi
5681 rm -f conftest*
5682 fi
5683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5684   echo "$ac_t""yes" 1>&6
5685     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5686   cat >> confdefs.h <<EOF
5687 #define $ac_tr_hdr 1
5688 EOF
5689  ac_has_wchar_h=yes
5690 else
5691   echo "$ac_t""no" 1>&6
5692 ac_has_wchar_h=no
5693 fi
5694 done
5695
5696   for ac_hdr in wctype.h
5697 do
5698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5700 echo "configure:5701: checking for $ac_hdr" >&5
5701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5702   echo $ac_n "(cached) $ac_c" 1>&6
5703 else
5704   cat > conftest.$ac_ext <<EOF
5705 #line 5706 "configure"
5706 #include "confdefs.h"
5707 #include <$ac_hdr>
5708 EOF
5709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5710 { (eval echo configure:5711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5712 if test -z "$ac_err"; then
5713   rm -rf conftest*
5714   eval "ac_cv_header_$ac_safe=yes"
5715 else
5716   echo "$ac_err" >&5
5717   echo "configure: failed program was:" >&5
5718   cat conftest.$ac_ext >&5
5719   rm -rf conftest*
5720   eval "ac_cv_header_$ac_safe=no"
5721 fi
5722 rm -f conftest*
5723 fi
5724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5725   echo "$ac_t""yes" 1>&6
5726     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5727   cat >> confdefs.h <<EOF
5728 #define $ac_tr_hdr 1
5729 EOF
5730  ac_has_wctype_h=yes
5731 else
5732   echo "$ac_t""no" 1>&6
5733 ac_has_wctype_h=no
5734 fi
5735 done
5736
5737
5738     if test x"$ac_has_wchar_h" = xyes &&
5739      test x"$ac_has_wctype_h" = xyes &&
5740      test x"$enable_c_mbchar" != xno; then
5741
5742             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
5743 echo "configure:5744: checking for WCHAR_MIN and WCHAR_MAX" >&5
5744     cat > conftest.$ac_ext <<EOF
5745 #line 5746 "configure"
5746 #include "confdefs.h"
5747 #include <wchar.h>
5748 int main() {
5749 int i = WCHAR_MIN; int j = WCHAR_MAX;
5750 ; return 0; }
5751 EOF
5752 if { (eval echo configure:5753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5753   rm -rf conftest*
5754   has_wchar_minmax=yes
5755 else
5756   echo "configure: failed program was:" >&5
5757   cat conftest.$ac_ext >&5
5758   rm -rf conftest*
5759   has_wchar_minmax=no
5760 fi
5761 rm -f conftest*
5762     echo "$ac_t""$has_wchar_minmax" 1>&6
5763
5764             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
5765 echo "configure:5766: checking for WEOF" >&5
5766     cat > conftest.$ac_ext <<EOF
5767 #line 5768 "configure"
5768 #include "confdefs.h"
5769
5770       #include <wchar.h>
5771       #include <stddef.h>
5772 int main() {
5773 wint_t i = WEOF;
5774 ; return 0; }
5775 EOF
5776 if { (eval echo configure:5777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5777   rm -rf conftest*
5778   has_weof=yes
5779 else
5780   echo "configure: failed program was:" >&5
5781   cat conftest.$ac_ext >&5
5782   rm -rf conftest*
5783   has_weof=no
5784 fi
5785 rm -f conftest*
5786     echo "$ac_t""$has_weof" 1>&6
5787
5788         ac_wfuncs=yes
5789     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
5790 do
5791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5792 echo "configure:5793: checking for $ac_func" >&5
5793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5794   echo $ac_n "(cached) $ac_c" 1>&6
5795 else
5796   cat > conftest.$ac_ext <<EOF
5797 #line 5798 "configure"
5798 #include "confdefs.h"
5799 /* System header to define __stub macros and hopefully few prototypes,
5800     which can conflict with char $ac_func(); below.  */
5801 #include <assert.h>
5802 /* Override any gcc2 internal prototype to avoid an error.  */
5803 /* We use char because int might match the return type of a gcc2
5804     builtin and then its argument prototype would still apply.  */
5805 char $ac_func();
5806
5807 int main() {
5808
5809 /* The GNU C library defines this for functions which it implements
5810     to always fail with ENOSYS.  Some functions are actually named
5811     something starting with __ and the normal name is an alias.  */
5812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5813 choke me
5814 #else
5815 $ac_func();
5816 #endif
5817
5818 ; return 0; }
5819 EOF
5820 if { (eval echo configure:5821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5821   rm -rf conftest*
5822   eval "ac_cv_func_$ac_func=yes"
5823 else
5824   echo "configure: failed program was:" >&5
5825   cat conftest.$ac_ext >&5
5826   rm -rf conftest*
5827   eval "ac_cv_func_$ac_func=no"
5828 fi
5829 rm -f conftest*
5830 fi
5831
5832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5833   echo "$ac_t""yes" 1>&6
5834     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5835   cat >> confdefs.h <<EOF
5836 #define $ac_tr_func 1
5837 EOF
5838  
5839 else
5840   echo "$ac_t""no" 1>&6
5841 \
5842     ac_wfuncs=no
5843 fi
5844 done
5845
5846
5847         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
5848     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5849     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5850     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5851     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5852     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5853 do
5854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5855 echo "configure:5856: checking for $ac_func" >&5
5856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5857   echo $ac_n "(cached) $ac_c" 1>&6
5858 else
5859   cat > conftest.$ac_ext <<EOF
5860 #line 5861 "configure"
5861 #include "confdefs.h"
5862 /* System header to define __stub macros and hopefully few prototypes,
5863     which can conflict with char $ac_func(); below.  */
5864 #include <assert.h>
5865 /* Override any gcc2 internal prototype to avoid an error.  */
5866 /* We use char because int might match the return type of a gcc2
5867     builtin and then its argument prototype would still apply.  */
5868 char $ac_func();
5869
5870 int main() {
5871
5872 /* The GNU C library defines this for functions which it implements
5873     to always fail with ENOSYS.  Some functions are actually named
5874     something starting with __ and the normal name is an alias.  */
5875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5876 choke me
5877 #else
5878 $ac_func();
5879 #endif
5880
5881 ; return 0; }
5882 EOF
5883 if { (eval echo configure:5884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5884   rm -rf conftest*
5885   eval "ac_cv_func_$ac_func=yes"
5886 else
5887   echo "configure: failed program was:" >&5
5888   cat conftest.$ac_ext >&5
5889   rm -rf conftest*
5890   eval "ac_cv_func_$ac_func=no"
5891 fi
5892 rm -f conftest*
5893 fi
5894
5895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5896   echo "$ac_t""yes" 1>&6
5897     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5898   cat >> confdefs.h <<EOF
5899 #define $ac_tr_func 1
5900 EOF
5901  
5902 else
5903   echo "$ac_t""no" 1>&6
5904 \
5905     ac_wfuncs=no
5906 fi
5907 done
5908
5909
5910     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5911 echo "configure:5912: checking for ISO C99 wchar_t support" >&5
5912     if test x"$has_weof" = xyes &&
5913        test x"$has_wchar_minmax" = xyes &&
5914        test x"$ac_wfuncs" = xyes; then
5915       ac_isoC99_wchar_t=yes
5916     else
5917       ac_isoC99_wchar_t=no
5918     fi
5919     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5920
5921             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5922 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5923 echo "configure:5924: checking for iconv.h" >&5
5924 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5925   echo $ac_n "(cached) $ac_c" 1>&6
5926 else
5927   cat > conftest.$ac_ext <<EOF
5928 #line 5929 "configure"
5929 #include "confdefs.h"
5930 #include <iconv.h>
5931 EOF
5932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5933 { (eval echo configure:5934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5935 if test -z "$ac_err"; then
5936   rm -rf conftest*
5937   eval "ac_cv_header_$ac_safe=yes"
5938 else
5939   echo "$ac_err" >&5
5940   echo "configure: failed program was:" >&5
5941   cat conftest.$ac_ext >&5
5942   rm -rf conftest*
5943   eval "ac_cv_header_$ac_safe=no"
5944 fi
5945 rm -f conftest*
5946 fi
5947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5948   echo "$ac_t""yes" 1>&6
5949   ac_has_iconv_h=yes
5950 else
5951   echo "$ac_t""no" 1>&6
5952 ac_has_iconv_h=no
5953 fi
5954
5955     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5956 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5957 echo "configure:5958: checking for langinfo.h" >&5
5958 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5959   echo $ac_n "(cached) $ac_c" 1>&6
5960 else
5961   cat > conftest.$ac_ext <<EOF
5962 #line 5963 "configure"
5963 #include "confdefs.h"
5964 #include <langinfo.h>
5965 EOF
5966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5967 { (eval echo configure:5968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5969 if test -z "$ac_err"; then
5970   rm -rf conftest*
5971   eval "ac_cv_header_$ac_safe=yes"
5972 else
5973   echo "$ac_err" >&5
5974   echo "configure: failed program was:" >&5
5975   cat conftest.$ac_ext >&5
5976   rm -rf conftest*
5977   eval "ac_cv_header_$ac_safe=no"
5978 fi
5979 rm -f conftest*
5980 fi
5981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5982   echo "$ac_t""yes" 1>&6
5983   ac_has_langinfo_h=yes
5984 else
5985   echo "$ac_t""no" 1>&6
5986 ac_has_langinfo_h=no
5987 fi
5988
5989
5990         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5991 echo "configure:5992: checking for iconv in -liconv" >&5
5992 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5994   echo $ac_n "(cached) $ac_c" 1>&6
5995 else
5996   ac_save_LIBS="$LIBS"
5997 LIBS="-liconv  $LIBS"
5998 cat > conftest.$ac_ext <<EOF
5999 #line 6000 "configure"
6000 #include "confdefs.h"
6001 /* Override any gcc2 internal prototype to avoid an error.  */
6002 /* We use char because int might match the return type of a gcc2
6003     builtin and then its argument prototype would still apply.  */
6004 char iconv();
6005
6006 int main() {
6007 iconv()
6008 ; return 0; }
6009 EOF
6010 if { (eval echo configure:6011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6011   rm -rf conftest*
6012   eval "ac_cv_lib_$ac_lib_var=yes"
6013 else
6014   echo "configure: failed program was:" >&5
6015   cat conftest.$ac_ext >&5
6016   rm -rf conftest*
6017   eval "ac_cv_lib_$ac_lib_var=no"
6018 fi
6019 rm -f conftest*
6020 LIBS="$ac_save_LIBS"
6021
6022 fi
6023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6024   echo "$ac_t""yes" 1>&6
6025   libiconv="-liconv"
6026 else
6027   echo "$ac_t""no" 1>&6
6028 fi
6029
6030     ac_save_LIBS="$LIBS"
6031     LIBS="$LIBS $libiconv"
6032
6033     for ac_func in iconv_open iconv_close iconv nl_langinfo
6034 do
6035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6036 echo "configure:6037: checking for $ac_func" >&5
6037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6038   echo $ac_n "(cached) $ac_c" 1>&6
6039 else
6040   cat > conftest.$ac_ext <<EOF
6041 #line 6042 "configure"
6042 #include "confdefs.h"
6043 /* System header to define __stub macros and hopefully few prototypes,
6044     which can conflict with char $ac_func(); below.  */
6045 #include <assert.h>
6046 /* Override any gcc2 internal prototype to avoid an error.  */
6047 /* We use char because int might match the return type of a gcc2
6048     builtin and then its argument prototype would still apply.  */
6049 char $ac_func();
6050
6051 int main() {
6052
6053 /* The GNU C library defines this for functions which it implements
6054     to always fail with ENOSYS.  Some functions are actually named
6055     something starting with __ and the normal name is an alias.  */
6056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6057 choke me
6058 #else
6059 $ac_func();
6060 #endif
6061
6062 ; return 0; }
6063 EOF
6064 if { (eval echo configure:6065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6065   rm -rf conftest*
6066   eval "ac_cv_func_$ac_func=yes"
6067 else
6068   echo "configure: failed program was:" >&5
6069   cat conftest.$ac_ext >&5
6070   rm -rf conftest*
6071   eval "ac_cv_func_$ac_func=no"
6072 fi
6073 rm -f conftest*
6074 fi
6075
6076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6077   echo "$ac_t""yes" 1>&6
6078     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6079   cat >> confdefs.h <<EOF
6080 #define $ac_tr_func 1
6081 EOF
6082  \
6083     ac_XPG2funcs=yes
6084 else
6085   echo "$ac_t""no" 1>&6
6086 ac_XPG2funcs=no
6087 fi
6088 done
6089
6090
6091     LIBS="$ac_save_LIBS"
6092
6093     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6094 echo "configure:6095: checking for XPG2 wchar_t support" >&5
6095     if test x"$ac_has_iconv_h" = xyes &&
6096        test x"$ac_has_langinfo_h" = xyes &&
6097        test x"$ac_XPG2funcs" = xyes; then
6098       ac_XPG2_wchar_t=yes
6099     else
6100       ac_XPG2_wchar_t=no
6101     fi
6102     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6103
6104             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6105 echo "configure:6106: checking for enabled wchar_t specializations" >&5
6106     if test x"$ac_isoC99_wchar_t" = xyes &&
6107        test x"$ac_XPG2_wchar_t" = xyes; then
6108       cat >> confdefs.h <<\EOF
6109 #define _GLIBCPP_USE_WCHAR_T 1
6110 EOF
6111
6112       echo "$ac_t"""yes"" 1>&6
6113     else
6114       echo "$ac_t"""no"" 1>&6
6115     fi
6116   else
6117         echo "configure: warning: wchar_t support disabled." 1>&2
6118   fi
6119
6120       os_include_dir="os/hpux"
6121       cat >> confdefs.h <<\EOF
6122 #define HAVE_COPYSIGN 1
6123 EOF
6124
6125       cat >> confdefs.h <<\EOF
6126 #define HAVE_COPYSIGNF 1
6127 EOF
6128
6129       cat >> confdefs.h <<\EOF
6130 #define HAVE_FREXPF 1
6131 EOF
6132
6133       cat >> confdefs.h <<\EOF
6134 #define HAVE_HYPOT 1
6135 EOF
6136
6137       case "$target" in
6138         *-hpux10*)
6139           cat >> confdefs.h <<\EOF
6140 #define HAVE_FINITE 1
6141 EOF
6142
6143           cat >> confdefs.h <<\EOF
6144 #define HAVE_FINITEF 1
6145 EOF
6146
6147           cat >> confdefs.h <<\EOF
6148 #define HAVE_ISINF 1
6149 EOF
6150
6151           cat >> confdefs.h <<\EOF
6152 #define HAVE_ISINFF 1
6153 EOF
6154
6155           cat >> confdefs.h <<\EOF
6156 #define HAVE_ISNAN 1
6157 EOF
6158
6159           cat >> confdefs.h <<\EOF
6160 #define HAVE_ISNANF 1
6161 EOF
6162
6163           ;;
6164       esac
6165
6166       ;;
6167     *-netbsd*)
6168       # Check for available headers.
6169       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6170         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6171         fp.h locale.h float.h inttypes.h
6172 do
6173 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6174 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6175 echo "configure:6176: checking for $ac_hdr" >&5
6176 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6177   echo $ac_n "(cached) $ac_c" 1>&6
6178 else
6179   cat > conftest.$ac_ext <<EOF
6180 #line 6181 "configure"
6181 #include "confdefs.h"
6182 #include <$ac_hdr>
6183 EOF
6184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6185 { (eval echo configure:6186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6187 if test -z "$ac_err"; then
6188   rm -rf conftest*
6189   eval "ac_cv_header_$ac_safe=yes"
6190 else
6191   echo "$ac_err" >&5
6192   echo "configure: failed program was:" >&5
6193   cat conftest.$ac_ext >&5
6194   rm -rf conftest*
6195   eval "ac_cv_header_$ac_safe=no"
6196 fi
6197 rm -f conftest*
6198 fi
6199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6200   echo "$ac_t""yes" 1>&6
6201     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6202   cat >> confdefs.h <<EOF
6203 #define $ac_tr_hdr 1
6204 EOF
6205  
6206 else
6207   echo "$ac_t""no" 1>&6
6208 fi
6209 done
6210
6211       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6212        
6213       
6214   # If we're not using GNU ld, then there's no point in even trying these
6215   # tests.  Check for that first.  We should have already tested for gld
6216   # by now (in libtool), but require it now just to be safe...
6217   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6218   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6219   
6220
6221   # The name set by libtool depends on the version of libtool.  Shame on us
6222   # for depending on an impl detail, but c'est la vie.  Older versions used
6223   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6224   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6225   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6226   # set (hence we're using an older libtool), then set it.
6227   if test x${with_gnu_ld+set} != xset; then
6228     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6229       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6230       with_gnu_ld=no
6231     else
6232       with_gnu_ld=$ac_cv_prog_gnu_ld
6233     fi
6234   fi
6235
6236   # Start by getting the version number.  I think the libtool test already
6237   # does some of this, but throws away the result.
6238   
6239   ldver=`$LD --version 2>/dev/null | head -1 | \
6240          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6241   
6242   glibcpp_gnu_ld_version=`echo $ldver | \
6243          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6244
6245   # Set --gc-sections.
6246   if test "$with_gnu_ld" = "notbroken"; then
6247     # GNU ld it is!  Joy and bunny rabbits!
6248
6249     # All these tests are for C++; save the language and the compiler flags.
6250     # Need to do this so that g++ won't try to link in libstdc++
6251     ac_test_CFLAGS="${CFLAGS+set}"
6252     ac_save_CFLAGS="$CFLAGS"
6253     CFLAGS='-x c++  -Wl,--gc-sections'
6254
6255     # Check for -Wl,--gc-sections
6256     # XXX This test is broken at the moment, as symbols required for
6257     # linking are now in libsupc++ (not built yet.....). In addition,
6258     # this test has cored on solaris in the past. In addition,
6259     # --gc-sections doesn't really work at the moment (keeps on discarding
6260     # used sections, first .eh_frame and now some of the glibc sections for
6261     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6262     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6263 echo "configure:6264: checking for ld that supports -Wl,--gc-sections" >&5
6264     if test "$cross_compiling" = yes; then
6265   ac_sectionLDflags=yes
6266 else
6267   cat > conftest.$ac_ext <<EOF
6268 #line 6269 "configure"
6269 #include "confdefs.h"
6270
6271      int main(void)
6272      {
6273        try { throw 1; }
6274        catch (...) { };
6275        return 0;
6276      }
6277     
6278 EOF
6279 if { (eval echo configure:6280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6280 then
6281   ac_sectionLDflags=yes
6282 else
6283   echo "configure: failed program was:" >&5
6284   cat conftest.$ac_ext >&5
6285   rm -fr conftest*
6286   ac_sectionLDflags=no
6287 fi
6288 rm -fr conftest*
6289 fi
6290
6291     if test "$ac_test_CFLAGS" = set; then
6292       CFLAGS="$ac_save_CFLAGS"
6293     else
6294       # this is the suspicious part
6295       CFLAGS=''
6296     fi
6297     if test "$ac_sectionLDflags" = "yes"; then
6298       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6299     fi
6300     echo "$ac_t""$ac_sectionLDflags" 1>&6
6301   fi
6302
6303   # Set linker optimization flags.
6304   if test x"$with_gnu_ld" = x"yes"; then
6305     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6306   fi
6307
6308   
6309   
6310
6311       
6312     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6313 echo "configure:6314: checking for main in -lm" >&5
6314 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6316   echo $ac_n "(cached) $ac_c" 1>&6
6317 else
6318   ac_save_LIBS="$LIBS"
6319 LIBS="-lm  $LIBS"
6320 cat > conftest.$ac_ext <<EOF
6321 #line 6322 "configure"
6322 #include "confdefs.h"
6323
6324 int main() {
6325 main()
6326 ; return 0; }
6327 EOF
6328 if { (eval echo configure:6329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6329   rm -rf conftest*
6330   eval "ac_cv_lib_$ac_lib_var=yes"
6331 else
6332   echo "configure: failed program was:" >&5
6333   cat conftest.$ac_ext >&5
6334   rm -rf conftest*
6335   eval "ac_cv_lib_$ac_lib_var=no"
6336 fi
6337 rm -f conftest*
6338 LIBS="$ac_save_LIBS"
6339
6340 fi
6341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6342   echo "$ac_t""yes" 1>&6
6343     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6344     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6345   cat >> confdefs.h <<EOF
6346 #define $ac_tr_lib 1
6347 EOF
6348
6349   LIBS="-lm $LIBS"
6350
6351 else
6352   echo "$ac_t""no" 1>&6
6353 fi
6354
6355   for ac_func in nan copysignf
6356 do
6357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6358 echo "configure:6359: checking for $ac_func" >&5
6359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6360   echo $ac_n "(cached) $ac_c" 1>&6
6361 else
6362   cat > conftest.$ac_ext <<EOF
6363 #line 6364 "configure"
6364 #include "confdefs.h"
6365 /* System header to define __stub macros and hopefully few prototypes,
6366     which can conflict with char $ac_func(); below.  */
6367 #include <assert.h>
6368 /* Override any gcc2 internal prototype to avoid an error.  */
6369 /* We use char because int might match the return type of a gcc2
6370     builtin and then its argument prototype would still apply.  */
6371 char $ac_func();
6372
6373 int main() {
6374
6375 /* The GNU C library defines this for functions which it implements
6376     to always fail with ENOSYS.  Some functions are actually named
6377     something starting with __ and the normal name is an alias.  */
6378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6379 choke me
6380 #else
6381 $ac_func();
6382 #endif
6383
6384 ; return 0; }
6385 EOF
6386 if { (eval echo configure:6387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6387   rm -rf conftest*
6388   eval "ac_cv_func_$ac_func=yes"
6389 else
6390   echo "configure: failed program was:" >&5
6391   cat conftest.$ac_ext >&5
6392   rm -rf conftest*
6393   eval "ac_cv_func_$ac_func=no"
6394 fi
6395 rm -f conftest*
6396 fi
6397
6398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6399   echo "$ac_t""yes" 1>&6
6400     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6401   cat >> confdefs.h <<EOF
6402 #define $ac_tr_func 1
6403 EOF
6404  
6405 else
6406   echo "$ac_t""no" 1>&6
6407 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6408 fi
6409 done
6410
6411
6412     for ac_func in __signbit
6413 do
6414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6415 echo "configure:6416: checking for $ac_func" >&5
6416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6417   echo $ac_n "(cached) $ac_c" 1>&6
6418 else
6419   cat > conftest.$ac_ext <<EOF
6420 #line 6421 "configure"
6421 #include "confdefs.h"
6422 /* System header to define __stub macros and hopefully few prototypes,
6423     which can conflict with char $ac_func(); below.  */
6424 #include <assert.h>
6425 /* Override any gcc2 internal prototype to avoid an error.  */
6426 /* We use char because int might match the return type of a gcc2
6427     builtin and then its argument prototype would still apply.  */
6428 char $ac_func();
6429
6430 int main() {
6431
6432 /* The GNU C library defines this for functions which it implements
6433     to always fail with ENOSYS.  Some functions are actually named
6434     something starting with __ and the normal name is an alias.  */
6435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6436 choke me
6437 #else
6438 $ac_func();
6439 #endif
6440
6441 ; return 0; }
6442 EOF
6443 if { (eval echo configure:6444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6444   rm -rf conftest*
6445   eval "ac_cv_func_$ac_func=yes"
6446 else
6447   echo "configure: failed program was:" >&5
6448   cat conftest.$ac_ext >&5
6449   rm -rf conftest*
6450   eval "ac_cv_func_$ac_func=no"
6451 fi
6452 rm -f conftest*
6453 fi
6454
6455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6456   echo "$ac_t""yes" 1>&6
6457     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6458   cat >> confdefs.h <<EOF
6459 #define $ac_tr_func 1
6460 EOF
6461  
6462 else
6463   echo "$ac_t""no" 1>&6
6464 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6465 fi
6466 done
6467
6468   for ac_func in __signbitf
6469 do
6470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6471 echo "configure:6472: checking for $ac_func" >&5
6472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6473   echo $ac_n "(cached) $ac_c" 1>&6
6474 else
6475   cat > conftest.$ac_ext <<EOF
6476 #line 6477 "configure"
6477 #include "confdefs.h"
6478 /* System header to define __stub macros and hopefully few prototypes,
6479     which can conflict with char $ac_func(); below.  */
6480 #include <assert.h>
6481 /* Override any gcc2 internal prototype to avoid an error.  */
6482 /* We use char because int might match the return type of a gcc2
6483     builtin and then its argument prototype would still apply.  */
6484 char $ac_func();
6485
6486 int main() {
6487
6488 /* The GNU C library defines this for functions which it implements
6489     to always fail with ENOSYS.  Some functions are actually named
6490     something starting with __ and the normal name is an alias.  */
6491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6492 choke me
6493 #else
6494 $ac_func();
6495 #endif
6496
6497 ; return 0; }
6498 EOF
6499 if { (eval echo configure:6500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6500   rm -rf conftest*
6501   eval "ac_cv_func_$ac_func=yes"
6502 else
6503   echo "configure: failed program was:" >&5
6504   cat conftest.$ac_ext >&5
6505   rm -rf conftest*
6506   eval "ac_cv_func_$ac_func=no"
6507 fi
6508 rm -f conftest*
6509 fi
6510
6511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6512   echo "$ac_t""yes" 1>&6
6513     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6514   cat >> confdefs.h <<EOF
6515 #define $ac_tr_func 1
6516 EOF
6517  
6518 else
6519   echo "$ac_t""no" 1>&6
6520 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6521 fi
6522 done
6523
6524
6525           if test x$ac_cv_func_copysignl = x"yes"; then
6526     for ac_func in __signbitl
6527 do
6528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6529 echo "configure:6530: checking for $ac_func" >&5
6530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6531   echo $ac_n "(cached) $ac_c" 1>&6
6532 else
6533   cat > conftest.$ac_ext <<EOF
6534 #line 6535 "configure"
6535 #include "confdefs.h"
6536 /* System header to define __stub macros and hopefully few prototypes,
6537     which can conflict with char $ac_func(); below.  */
6538 #include <assert.h>
6539 /* Override any gcc2 internal prototype to avoid an error.  */
6540 /* We use char because int might match the return type of a gcc2
6541     builtin and then its argument prototype would still apply.  */
6542 char $ac_func();
6543
6544 int main() {
6545
6546 /* The GNU C library defines this for functions which it implements
6547     to always fail with ENOSYS.  Some functions are actually named
6548     something starting with __ and the normal name is an alias.  */
6549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6550 choke me
6551 #else
6552 $ac_func();
6553 #endif
6554
6555 ; return 0; }
6556 EOF
6557 if { (eval echo configure:6558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6558   rm -rf conftest*
6559   eval "ac_cv_func_$ac_func=yes"
6560 else
6561   echo "configure: failed program was:" >&5
6562   cat conftest.$ac_ext >&5
6563   rm -rf conftest*
6564   eval "ac_cv_func_$ac_func=no"
6565 fi
6566 rm -f conftest*
6567 fi
6568
6569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6570   echo "$ac_t""yes" 1>&6
6571     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6572   cat >> confdefs.h <<EOF
6573 #define $ac_tr_func 1
6574 EOF
6575  
6576 else
6577   echo "$ac_t""no" 1>&6
6578 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6579 fi
6580 done
6581
6582   fi
6583
6584   if test -n "$LIBMATHOBJS"; then
6585     need_libmath=yes
6586   fi
6587   
6588   
6589
6590 if test "$need_libmath" = yes; then
6591   GLIBCPP_BUILD_LIBMATH_TRUE=
6592   GLIBCPP_BUILD_LIBMATH_FALSE='#'
6593 else
6594   GLIBCPP_BUILD_LIBMATH_TRUE='#'
6595   GLIBCPP_BUILD_LIBMATH_FALSE=
6596 fi
6597
6598       
6599
6600       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6601 echo "configure:6602: checking for mbstate_t" >&5
6602   cat > conftest.$ac_ext <<EOF
6603 #line 6604 "configure"
6604 #include "confdefs.h"
6605 #include <wchar.h>
6606 int main() {
6607 mbstate_t teststate;
6608 ; return 0; }
6609 EOF
6610 if { (eval echo configure:6611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6611   rm -rf conftest*
6612   have_mbstate_t=yes
6613 else
6614   echo "configure: failed program was:" >&5
6615   cat conftest.$ac_ext >&5
6616   rm -rf conftest*
6617   have_mbstate_t=no
6618 fi
6619 rm -f conftest*
6620   echo "$ac_t""$have_mbstate_t" 1>&6
6621   if test x"$have_mbstate_t" = xyes; then
6622     cat >> confdefs.h <<\EOF
6623 #define HAVE_MBSTATE_T 1
6624 EOF
6625
6626   fi
6627
6628     for ac_hdr in wchar.h
6629 do
6630 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6631 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6632 echo "configure:6633: checking for $ac_hdr" >&5
6633 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6634   echo $ac_n "(cached) $ac_c" 1>&6
6635 else
6636   cat > conftest.$ac_ext <<EOF
6637 #line 6638 "configure"
6638 #include "confdefs.h"
6639 #include <$ac_hdr>
6640 EOF
6641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6642 { (eval echo configure:6643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6643 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6644 if test -z "$ac_err"; then
6645   rm -rf conftest*
6646   eval "ac_cv_header_$ac_safe=yes"
6647 else
6648   echo "$ac_err" >&5
6649   echo "configure: failed program was:" >&5
6650   cat conftest.$ac_ext >&5
6651   rm -rf conftest*
6652   eval "ac_cv_header_$ac_safe=no"
6653 fi
6654 rm -f conftest*
6655 fi
6656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6657   echo "$ac_t""yes" 1>&6
6658     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6659   cat >> confdefs.h <<EOF
6660 #define $ac_tr_hdr 1
6661 EOF
6662  ac_has_wchar_h=yes
6663 else
6664   echo "$ac_t""no" 1>&6
6665 ac_has_wchar_h=no
6666 fi
6667 done
6668
6669   for ac_hdr in wctype.h
6670 do
6671 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6673 echo "configure:6674: checking for $ac_hdr" >&5
6674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6675   echo $ac_n "(cached) $ac_c" 1>&6
6676 else
6677   cat > conftest.$ac_ext <<EOF
6678 #line 6679 "configure"
6679 #include "confdefs.h"
6680 #include <$ac_hdr>
6681 EOF
6682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6683 { (eval echo configure:6684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6685 if test -z "$ac_err"; then
6686   rm -rf conftest*
6687   eval "ac_cv_header_$ac_safe=yes"
6688 else
6689   echo "$ac_err" >&5
6690   echo "configure: failed program was:" >&5
6691   cat conftest.$ac_ext >&5
6692   rm -rf conftest*
6693   eval "ac_cv_header_$ac_safe=no"
6694 fi
6695 rm -f conftest*
6696 fi
6697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6698   echo "$ac_t""yes" 1>&6
6699     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6700   cat >> confdefs.h <<EOF
6701 #define $ac_tr_hdr 1
6702 EOF
6703  ac_has_wctype_h=yes
6704 else
6705   echo "$ac_t""no" 1>&6
6706 ac_has_wctype_h=no
6707 fi
6708 done
6709
6710
6711     if test x"$ac_has_wchar_h" = xyes &&
6712      test x"$ac_has_wctype_h" = xyes &&
6713      test x"$enable_c_mbchar" != xno; then
6714
6715             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6716 echo "configure:6717: checking for WCHAR_MIN and WCHAR_MAX" >&5
6717     cat > conftest.$ac_ext <<EOF
6718 #line 6719 "configure"
6719 #include "confdefs.h"
6720 #include <wchar.h>
6721 int main() {
6722 int i = WCHAR_MIN; int j = WCHAR_MAX;
6723 ; return 0; }
6724 EOF
6725 if { (eval echo configure:6726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6726   rm -rf conftest*
6727   has_wchar_minmax=yes
6728 else
6729   echo "configure: failed program was:" >&5
6730   cat conftest.$ac_ext >&5
6731   rm -rf conftest*
6732   has_wchar_minmax=no
6733 fi
6734 rm -f conftest*
6735     echo "$ac_t""$has_wchar_minmax" 1>&6
6736
6737             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6738 echo "configure:6739: checking for WEOF" >&5
6739     cat > conftest.$ac_ext <<EOF
6740 #line 6741 "configure"
6741 #include "confdefs.h"
6742
6743       #include <wchar.h>
6744       #include <stddef.h>
6745 int main() {
6746 wint_t i = WEOF;
6747 ; return 0; }
6748 EOF
6749 if { (eval echo configure:6750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6750   rm -rf conftest*
6751   has_weof=yes
6752 else
6753   echo "configure: failed program was:" >&5
6754   cat conftest.$ac_ext >&5
6755   rm -rf conftest*
6756   has_weof=no
6757 fi
6758 rm -f conftest*
6759     echo "$ac_t""$has_weof" 1>&6
6760
6761         ac_wfuncs=yes
6762     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6763 do
6764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6765 echo "configure:6766: checking for $ac_func" >&5
6766 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6767   echo $ac_n "(cached) $ac_c" 1>&6
6768 else
6769   cat > conftest.$ac_ext <<EOF
6770 #line 6771 "configure"
6771 #include "confdefs.h"
6772 /* System header to define __stub macros and hopefully few prototypes,
6773     which can conflict with char $ac_func(); below.  */
6774 #include <assert.h>
6775 /* Override any gcc2 internal prototype to avoid an error.  */
6776 /* We use char because int might match the return type of a gcc2
6777     builtin and then its argument prototype would still apply.  */
6778 char $ac_func();
6779
6780 int main() {
6781
6782 /* The GNU C library defines this for functions which it implements
6783     to always fail with ENOSYS.  Some functions are actually named
6784     something starting with __ and the normal name is an alias.  */
6785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6786 choke me
6787 #else
6788 $ac_func();
6789 #endif
6790
6791 ; return 0; }
6792 EOF
6793 if { (eval echo configure:6794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6794   rm -rf conftest*
6795   eval "ac_cv_func_$ac_func=yes"
6796 else
6797   echo "configure: failed program was:" >&5
6798   cat conftest.$ac_ext >&5
6799   rm -rf conftest*
6800   eval "ac_cv_func_$ac_func=no"
6801 fi
6802 rm -f conftest*
6803 fi
6804
6805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6806   echo "$ac_t""yes" 1>&6
6807     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6808   cat >> confdefs.h <<EOF
6809 #define $ac_tr_func 1
6810 EOF
6811  
6812 else
6813   echo "$ac_t""no" 1>&6
6814 \
6815     ac_wfuncs=no
6816 fi
6817 done
6818
6819
6820         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
6821     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6822     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6823     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6824     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6825     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6826 do
6827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6828 echo "configure:6829: checking for $ac_func" >&5
6829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6830   echo $ac_n "(cached) $ac_c" 1>&6
6831 else
6832   cat > conftest.$ac_ext <<EOF
6833 #line 6834 "configure"
6834 #include "confdefs.h"
6835 /* System header to define __stub macros and hopefully few prototypes,
6836     which can conflict with char $ac_func(); below.  */
6837 #include <assert.h>
6838 /* Override any gcc2 internal prototype to avoid an error.  */
6839 /* We use char because int might match the return type of a gcc2
6840     builtin and then its argument prototype would still apply.  */
6841 char $ac_func();
6842
6843 int main() {
6844
6845 /* The GNU C library defines this for functions which it implements
6846     to always fail with ENOSYS.  Some functions are actually named
6847     something starting with __ and the normal name is an alias.  */
6848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6849 choke me
6850 #else
6851 $ac_func();
6852 #endif
6853
6854 ; return 0; }
6855 EOF
6856 if { (eval echo configure:6857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6857   rm -rf conftest*
6858   eval "ac_cv_func_$ac_func=yes"
6859 else
6860   echo "configure: failed program was:" >&5
6861   cat conftest.$ac_ext >&5
6862   rm -rf conftest*
6863   eval "ac_cv_func_$ac_func=no"
6864 fi
6865 rm -f conftest*
6866 fi
6867
6868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6869   echo "$ac_t""yes" 1>&6
6870     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6871   cat >> confdefs.h <<EOF
6872 #define $ac_tr_func 1
6873 EOF
6874  
6875 else
6876   echo "$ac_t""no" 1>&6
6877 \
6878     ac_wfuncs=no
6879 fi
6880 done
6881
6882
6883     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6884 echo "configure:6885: checking for ISO C99 wchar_t support" >&5
6885     if test x"$has_weof" = xyes &&
6886        test x"$has_wchar_minmax" = xyes &&
6887        test x"$ac_wfuncs" = xyes; then
6888       ac_isoC99_wchar_t=yes
6889     else
6890       ac_isoC99_wchar_t=no
6891     fi
6892     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6893
6894             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6895 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6896 echo "configure:6897: checking for iconv.h" >&5
6897 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6898   echo $ac_n "(cached) $ac_c" 1>&6
6899 else
6900   cat > conftest.$ac_ext <<EOF
6901 #line 6902 "configure"
6902 #include "confdefs.h"
6903 #include <iconv.h>
6904 EOF
6905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6906 { (eval echo configure:6907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6908 if test -z "$ac_err"; then
6909   rm -rf conftest*
6910   eval "ac_cv_header_$ac_safe=yes"
6911 else
6912   echo "$ac_err" >&5
6913   echo "configure: failed program was:" >&5
6914   cat conftest.$ac_ext >&5
6915   rm -rf conftest*
6916   eval "ac_cv_header_$ac_safe=no"
6917 fi
6918 rm -f conftest*
6919 fi
6920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6921   echo "$ac_t""yes" 1>&6
6922   ac_has_iconv_h=yes
6923 else
6924   echo "$ac_t""no" 1>&6
6925 ac_has_iconv_h=no
6926 fi
6927
6928     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6929 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6930 echo "configure:6931: checking for langinfo.h" >&5
6931 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6932   echo $ac_n "(cached) $ac_c" 1>&6
6933 else
6934   cat > conftest.$ac_ext <<EOF
6935 #line 6936 "configure"
6936 #include "confdefs.h"
6937 #include <langinfo.h>
6938 EOF
6939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6940 { (eval echo configure:6941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6942 if test -z "$ac_err"; then
6943   rm -rf conftest*
6944   eval "ac_cv_header_$ac_safe=yes"
6945 else
6946   echo "$ac_err" >&5
6947   echo "configure: failed program was:" >&5
6948   cat conftest.$ac_ext >&5
6949   rm -rf conftest*
6950   eval "ac_cv_header_$ac_safe=no"
6951 fi
6952 rm -f conftest*
6953 fi
6954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6955   echo "$ac_t""yes" 1>&6
6956   ac_has_langinfo_h=yes
6957 else
6958   echo "$ac_t""no" 1>&6
6959 ac_has_langinfo_h=no
6960 fi
6961
6962
6963         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6964 echo "configure:6965: checking for iconv in -liconv" >&5
6965 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6966 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6967   echo $ac_n "(cached) $ac_c" 1>&6
6968 else
6969   ac_save_LIBS="$LIBS"
6970 LIBS="-liconv  $LIBS"
6971 cat > conftest.$ac_ext <<EOF
6972 #line 6973 "configure"
6973 #include "confdefs.h"
6974 /* Override any gcc2 internal prototype to avoid an error.  */
6975 /* We use char because int might match the return type of a gcc2
6976     builtin and then its argument prototype would still apply.  */
6977 char iconv();
6978
6979 int main() {
6980 iconv()
6981 ; return 0; }
6982 EOF
6983 if { (eval echo configure:6984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6984   rm -rf conftest*
6985   eval "ac_cv_lib_$ac_lib_var=yes"
6986 else
6987   echo "configure: failed program was:" >&5
6988   cat conftest.$ac_ext >&5
6989   rm -rf conftest*
6990   eval "ac_cv_lib_$ac_lib_var=no"
6991 fi
6992 rm -f conftest*
6993 LIBS="$ac_save_LIBS"
6994
6995 fi
6996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6997   echo "$ac_t""yes" 1>&6
6998   libiconv="-liconv"
6999 else
7000   echo "$ac_t""no" 1>&6
7001 fi
7002
7003     ac_save_LIBS="$LIBS"
7004     LIBS="$LIBS $libiconv"
7005
7006     for ac_func in iconv_open iconv_close iconv nl_langinfo
7007 do
7008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7009 echo "configure:7010: checking for $ac_func" >&5
7010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7011   echo $ac_n "(cached) $ac_c" 1>&6
7012 else
7013   cat > conftest.$ac_ext <<EOF
7014 #line 7015 "configure"
7015 #include "confdefs.h"
7016 /* System header to define __stub macros and hopefully few prototypes,
7017     which can conflict with char $ac_func(); below.  */
7018 #include <assert.h>
7019 /* Override any gcc2 internal prototype to avoid an error.  */
7020 /* We use char because int might match the return type of a gcc2
7021     builtin and then its argument prototype would still apply.  */
7022 char $ac_func();
7023
7024 int main() {
7025
7026 /* The GNU C library defines this for functions which it implements
7027     to always fail with ENOSYS.  Some functions are actually named
7028     something starting with __ and the normal name is an alias.  */
7029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7030 choke me
7031 #else
7032 $ac_func();
7033 #endif
7034
7035 ; return 0; }
7036 EOF
7037 if { (eval echo configure:7038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7038   rm -rf conftest*
7039   eval "ac_cv_func_$ac_func=yes"
7040 else
7041   echo "configure: failed program was:" >&5
7042   cat conftest.$ac_ext >&5
7043   rm -rf conftest*
7044   eval "ac_cv_func_$ac_func=no"
7045 fi
7046 rm -f conftest*
7047 fi
7048
7049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7050   echo "$ac_t""yes" 1>&6
7051     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7052   cat >> confdefs.h <<EOF
7053 #define $ac_tr_func 1
7054 EOF
7055  \
7056     ac_XPG2funcs=yes
7057 else
7058   echo "$ac_t""no" 1>&6
7059 ac_XPG2funcs=no
7060 fi
7061 done
7062
7063
7064     LIBS="$ac_save_LIBS"
7065
7066     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7067 echo "configure:7068: checking for XPG2 wchar_t support" >&5
7068     if test x"$ac_has_iconv_h" = xyes &&
7069        test x"$ac_has_langinfo_h" = xyes &&
7070        test x"$ac_XPG2funcs" = xyes; then
7071       ac_XPG2_wchar_t=yes
7072     else
7073       ac_XPG2_wchar_t=no
7074     fi
7075     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7076
7077             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7078 echo "configure:7079: checking for enabled wchar_t specializations" >&5
7079     if test x"$ac_isoC99_wchar_t" = xyes &&
7080        test x"$ac_XPG2_wchar_t" = xyes; then
7081       cat >> confdefs.h <<\EOF
7082 #define _GLIBCPP_USE_WCHAR_T 1
7083 EOF
7084
7085       echo "$ac_t"""yes"" 1>&6
7086     else
7087       echo "$ac_t"""no"" 1>&6
7088     fi
7089   else
7090         echo "configure: warning: wchar_t support disabled." 1>&2
7091   fi
7092
7093       os_include_dir="os/bsd/netbsd"
7094       cat >> confdefs.h <<\EOF
7095 #define HAVE_COPYSIGN 1
7096 EOF
7097
7098       cat >> confdefs.h <<\EOF
7099 #define HAVE_COPYSIGNF 1
7100 EOF
7101
7102       cat >> confdefs.h <<\EOF
7103 #define HAVE_FINITEF 1
7104 EOF
7105
7106       cat >> confdefs.h <<\EOF
7107 #define HAVE_FINITE 1
7108 EOF
7109
7110       cat >> confdefs.h <<\EOF
7111 #define HAVE_FREXPF 1
7112 EOF
7113
7114       cat >> confdefs.h <<\EOF
7115 #define HAVE_HYPOTF 1
7116 EOF
7117
7118       cat >> confdefs.h <<\EOF
7119 #define HAVE_ISINF 1
7120 EOF
7121
7122       cat >> confdefs.h <<\EOF
7123 #define HAVE_ISINFF 1
7124 EOF
7125
7126       cat >> confdefs.h <<\EOF
7127 #define HAVE_ISNAN 1
7128 EOF
7129
7130       cat >> confdefs.h <<\EOF
7131 #define HAVE_ISNANF 1
7132 EOF
7133
7134       if test x"long_double_math_on_this_cpu" = x"yes"; then
7135         cat >> confdefs.h <<\EOF
7136 #define HAVE_FINITEL 1
7137 EOF
7138
7139         cat >> confdefs.h <<\EOF
7140 #define HAVE_ISINFL 1
7141 EOF
7142
7143         cat >> confdefs.h <<\EOF
7144 #define HAVE_ISNANL 1
7145 EOF
7146
7147       fi
7148       ;;
7149     *-freebsd*)
7150       # Check for available headers.
7151       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
7152         machine/endian.h machine/param.h sys/machine.h sys/types.h \
7153         fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
7154         sys/time.h unistd.h
7155 do
7156 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7157 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7158 echo "configure:7159: checking for $ac_hdr" >&5
7159 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7160   echo $ac_n "(cached) $ac_c" 1>&6
7161 else
7162   cat > conftest.$ac_ext <<EOF
7163 #line 7164 "configure"
7164 #include "confdefs.h"
7165 #include <$ac_hdr>
7166 EOF
7167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7168 { (eval echo configure:7169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7169 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7170 if test -z "$ac_err"; then
7171   rm -rf conftest*
7172   eval "ac_cv_header_$ac_safe=yes"
7173 else
7174   echo "$ac_err" >&5
7175   echo "configure: failed program was:" >&5
7176   cat conftest.$ac_ext >&5
7177   rm -rf conftest*
7178   eval "ac_cv_header_$ac_safe=no"
7179 fi
7180 rm -f conftest*
7181 fi
7182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7183   echo "$ac_t""yes" 1>&6
7184     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7185   cat >> confdefs.h <<EOF
7186 #define $ac_tr_hdr 1
7187 EOF
7188  
7189 else
7190   echo "$ac_t""no" 1>&6
7191 fi
7192 done
7193
7194       SECTION_FLAGS='-ffunction-sections -fdata-sections'
7195        
7196       
7197   # If we're not using GNU ld, then there's no point in even trying these
7198   # tests.  Check for that first.  We should have already tested for gld
7199   # by now (in libtool), but require it now just to be safe...
7200   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7201   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7202   
7203
7204   # The name set by libtool depends on the version of libtool.  Shame on us
7205   # for depending on an impl detail, but c'est la vie.  Older versions used
7206   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7207   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7208   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7209   # set (hence we're using an older libtool), then set it.
7210   if test x${with_gnu_ld+set} != xset; then
7211     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7212       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7213       with_gnu_ld=no
7214     else
7215       with_gnu_ld=$ac_cv_prog_gnu_ld
7216     fi
7217   fi
7218
7219   # Start by getting the version number.  I think the libtool test already
7220   # does some of this, but throws away the result.
7221   
7222   ldver=`$LD --version 2>/dev/null | head -1 | \
7223          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7224   
7225   glibcpp_gnu_ld_version=`echo $ldver | \
7226          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7227
7228   # Set --gc-sections.
7229   if test "$with_gnu_ld" = "notbroken"; then
7230     # GNU ld it is!  Joy and bunny rabbits!
7231
7232     # All these tests are for C++; save the language and the compiler flags.
7233     # Need to do this so that g++ won't try to link in libstdc++
7234     ac_test_CFLAGS="${CFLAGS+set}"
7235     ac_save_CFLAGS="$CFLAGS"
7236     CFLAGS='-x c++  -Wl,--gc-sections'
7237
7238     # Check for -Wl,--gc-sections
7239     # XXX This test is broken at the moment, as symbols required for
7240     # linking are now in libsupc++ (not built yet.....). In addition,
7241     # this test has cored on solaris in the past. In addition,
7242     # --gc-sections doesn't really work at the moment (keeps on discarding
7243     # used sections, first .eh_frame and now some of the glibc sections for
7244     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7245     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7246 echo "configure:7247: checking for ld that supports -Wl,--gc-sections" >&5
7247     if test "$cross_compiling" = yes; then
7248   ac_sectionLDflags=yes
7249 else
7250   cat > conftest.$ac_ext <<EOF
7251 #line 7252 "configure"
7252 #include "confdefs.h"
7253
7254      int main(void)
7255      {
7256        try { throw 1; }
7257        catch (...) { };
7258        return 0;
7259      }
7260     
7261 EOF
7262 if { (eval echo configure:7263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7263 then
7264   ac_sectionLDflags=yes
7265 else
7266   echo "configure: failed program was:" >&5
7267   cat conftest.$ac_ext >&5
7268   rm -fr conftest*
7269   ac_sectionLDflags=no
7270 fi
7271 rm -fr conftest*
7272 fi
7273
7274     if test "$ac_test_CFLAGS" = set; then
7275       CFLAGS="$ac_save_CFLAGS"
7276     else
7277       # this is the suspicious part
7278       CFLAGS=''
7279     fi
7280     if test "$ac_sectionLDflags" = "yes"; then
7281       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7282     fi
7283     echo "$ac_t""$ac_sectionLDflags" 1>&6
7284   fi
7285
7286   # Set linker optimization flags.
7287   if test x"$with_gnu_ld" = x"yes"; then
7288     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7289   fi
7290
7291   
7292   
7293
7294       
7295     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7296 echo "configure:7297: checking for main in -lm" >&5
7297 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7299   echo $ac_n "(cached) $ac_c" 1>&6
7300 else
7301   ac_save_LIBS="$LIBS"
7302 LIBS="-lm  $LIBS"
7303 cat > conftest.$ac_ext <<EOF
7304 #line 7305 "configure"
7305 #include "confdefs.h"
7306
7307 int main() {
7308 main()
7309 ; return 0; }
7310 EOF
7311 if { (eval echo configure:7312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7312   rm -rf conftest*
7313   eval "ac_cv_lib_$ac_lib_var=yes"
7314 else
7315   echo "configure: failed program was:" >&5
7316   cat conftest.$ac_ext >&5
7317   rm -rf conftest*
7318   eval "ac_cv_lib_$ac_lib_var=no"
7319 fi
7320 rm -f conftest*
7321 LIBS="$ac_save_LIBS"
7322
7323 fi
7324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7325   echo "$ac_t""yes" 1>&6
7326     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7327     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7328   cat >> confdefs.h <<EOF
7329 #define $ac_tr_lib 1
7330 EOF
7331
7332   LIBS="-lm $LIBS"
7333
7334 else
7335   echo "$ac_t""no" 1>&6
7336 fi
7337
7338   for ac_func in nan copysignf
7339 do
7340 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7341 echo "configure:7342: checking for $ac_func" >&5
7342 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7343   echo $ac_n "(cached) $ac_c" 1>&6
7344 else
7345   cat > conftest.$ac_ext <<EOF
7346 #line 7347 "configure"
7347 #include "confdefs.h"
7348 /* System header to define __stub macros and hopefully few prototypes,
7349     which can conflict with char $ac_func(); below.  */
7350 #include <assert.h>
7351 /* Override any gcc2 internal prototype to avoid an error.  */
7352 /* We use char because int might match the return type of a gcc2
7353     builtin and then its argument prototype would still apply.  */
7354 char $ac_func();
7355
7356 int main() {
7357
7358 /* The GNU C library defines this for functions which it implements
7359     to always fail with ENOSYS.  Some functions are actually named
7360     something starting with __ and the normal name is an alias.  */
7361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7362 choke me
7363 #else
7364 $ac_func();
7365 #endif
7366
7367 ; return 0; }
7368 EOF
7369 if { (eval echo configure:7370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7370   rm -rf conftest*
7371   eval "ac_cv_func_$ac_func=yes"
7372 else
7373   echo "configure: failed program was:" >&5
7374   cat conftest.$ac_ext >&5
7375   rm -rf conftest*
7376   eval "ac_cv_func_$ac_func=no"
7377 fi
7378 rm -f conftest*
7379 fi
7380
7381 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7382   echo "$ac_t""yes" 1>&6
7383     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7384   cat >> confdefs.h <<EOF
7385 #define $ac_tr_func 1
7386 EOF
7387  
7388 else
7389   echo "$ac_t""no" 1>&6
7390 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7391 fi
7392 done
7393
7394
7395     for ac_func in __signbit
7396 do
7397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7398 echo "configure:7399: checking for $ac_func" >&5
7399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7400   echo $ac_n "(cached) $ac_c" 1>&6
7401 else
7402   cat > conftest.$ac_ext <<EOF
7403 #line 7404 "configure"
7404 #include "confdefs.h"
7405 /* System header to define __stub macros and hopefully few prototypes,
7406     which can conflict with char $ac_func(); below.  */
7407 #include <assert.h>
7408 /* Override any gcc2 internal prototype to avoid an error.  */
7409 /* We use char because int might match the return type of a gcc2
7410     builtin and then its argument prototype would still apply.  */
7411 char $ac_func();
7412
7413 int main() {
7414
7415 /* The GNU C library defines this for functions which it implements
7416     to always fail with ENOSYS.  Some functions are actually named
7417     something starting with __ and the normal name is an alias.  */
7418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7419 choke me
7420 #else
7421 $ac_func();
7422 #endif
7423
7424 ; return 0; }
7425 EOF
7426 if { (eval echo configure:7427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7427   rm -rf conftest*
7428   eval "ac_cv_func_$ac_func=yes"
7429 else
7430   echo "configure: failed program was:" >&5
7431   cat conftest.$ac_ext >&5
7432   rm -rf conftest*
7433   eval "ac_cv_func_$ac_func=no"
7434 fi
7435 rm -f conftest*
7436 fi
7437
7438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7439   echo "$ac_t""yes" 1>&6
7440     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7441   cat >> confdefs.h <<EOF
7442 #define $ac_tr_func 1
7443 EOF
7444  
7445 else
7446   echo "$ac_t""no" 1>&6
7447 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7448 fi
7449 done
7450
7451   for ac_func in __signbitf
7452 do
7453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7454 echo "configure:7455: checking for $ac_func" >&5
7455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7456   echo $ac_n "(cached) $ac_c" 1>&6
7457 else
7458   cat > conftest.$ac_ext <<EOF
7459 #line 7460 "configure"
7460 #include "confdefs.h"
7461 /* System header to define __stub macros and hopefully few prototypes,
7462     which can conflict with char $ac_func(); below.  */
7463 #include <assert.h>
7464 /* Override any gcc2 internal prototype to avoid an error.  */
7465 /* We use char because int might match the return type of a gcc2
7466     builtin and then its argument prototype would still apply.  */
7467 char $ac_func();
7468
7469 int main() {
7470
7471 /* The GNU C library defines this for functions which it implements
7472     to always fail with ENOSYS.  Some functions are actually named
7473     something starting with __ and the normal name is an alias.  */
7474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7475 choke me
7476 #else
7477 $ac_func();
7478 #endif
7479
7480 ; return 0; }
7481 EOF
7482 if { (eval echo configure:7483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7483   rm -rf conftest*
7484   eval "ac_cv_func_$ac_func=yes"
7485 else
7486   echo "configure: failed program was:" >&5
7487   cat conftest.$ac_ext >&5
7488   rm -rf conftest*
7489   eval "ac_cv_func_$ac_func=no"
7490 fi
7491 rm -f conftest*
7492 fi
7493
7494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7495   echo "$ac_t""yes" 1>&6
7496     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7497   cat >> confdefs.h <<EOF
7498 #define $ac_tr_func 1
7499 EOF
7500  
7501 else
7502   echo "$ac_t""no" 1>&6
7503 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7504 fi
7505 done
7506
7507
7508           if test x$ac_cv_func_copysignl = x"yes"; then
7509     for ac_func in __signbitl
7510 do
7511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7512 echo "configure:7513: checking for $ac_func" >&5
7513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7514   echo $ac_n "(cached) $ac_c" 1>&6
7515 else
7516   cat > conftest.$ac_ext <<EOF
7517 #line 7518 "configure"
7518 #include "confdefs.h"
7519 /* System header to define __stub macros and hopefully few prototypes,
7520     which can conflict with char $ac_func(); below.  */
7521 #include <assert.h>
7522 /* Override any gcc2 internal prototype to avoid an error.  */
7523 /* We use char because int might match the return type of a gcc2
7524     builtin and then its argument prototype would still apply.  */
7525 char $ac_func();
7526
7527 int main() {
7528
7529 /* The GNU C library defines this for functions which it implements
7530     to always fail with ENOSYS.  Some functions are actually named
7531     something starting with __ and the normal name is an alias.  */
7532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7533 choke me
7534 #else
7535 $ac_func();
7536 #endif
7537
7538 ; return 0; }
7539 EOF
7540 if { (eval echo configure:7541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7541   rm -rf conftest*
7542   eval "ac_cv_func_$ac_func=yes"
7543 else
7544   echo "configure: failed program was:" >&5
7545   cat conftest.$ac_ext >&5
7546   rm -rf conftest*
7547   eval "ac_cv_func_$ac_func=no"
7548 fi
7549 rm -f conftest*
7550 fi
7551
7552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7553   echo "$ac_t""yes" 1>&6
7554     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7555   cat >> confdefs.h <<EOF
7556 #define $ac_tr_func 1
7557 EOF
7558  
7559 else
7560   echo "$ac_t""no" 1>&6
7561 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7562 fi
7563 done
7564
7565   fi
7566
7567   if test -n "$LIBMATHOBJS"; then
7568     need_libmath=yes
7569   fi
7570   
7571   
7572
7573 if test "$need_libmath" = yes; then
7574   GLIBCPP_BUILD_LIBMATH_TRUE=
7575   GLIBCPP_BUILD_LIBMATH_FALSE='#'
7576 else
7577   GLIBCPP_BUILD_LIBMATH_TRUE='#'
7578   GLIBCPP_BUILD_LIBMATH_FALSE=
7579 fi
7580
7581       
7582
7583       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7584 echo "configure:7585: checking for mbstate_t" >&5
7585   cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7588 #include <wchar.h>
7589 int main() {
7590 mbstate_t teststate;
7591 ; return 0; }
7592 EOF
7593 if { (eval echo configure:7594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7594   rm -rf conftest*
7595   have_mbstate_t=yes
7596 else
7597   echo "configure: failed program was:" >&5
7598   cat conftest.$ac_ext >&5
7599   rm -rf conftest*
7600   have_mbstate_t=no
7601 fi
7602 rm -f conftest*
7603   echo "$ac_t""$have_mbstate_t" 1>&6
7604   if test x"$have_mbstate_t" = xyes; then
7605     cat >> confdefs.h <<\EOF
7606 #define HAVE_MBSTATE_T 1
7607 EOF
7608
7609   fi
7610
7611     for ac_hdr in wchar.h
7612 do
7613 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7614 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7615 echo "configure:7616: checking for $ac_hdr" >&5
7616 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7617   echo $ac_n "(cached) $ac_c" 1>&6
7618 else
7619   cat > conftest.$ac_ext <<EOF
7620 #line 7621 "configure"
7621 #include "confdefs.h"
7622 #include <$ac_hdr>
7623 EOF
7624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7625 { (eval echo configure:7626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7627 if test -z "$ac_err"; then
7628   rm -rf conftest*
7629   eval "ac_cv_header_$ac_safe=yes"
7630 else
7631   echo "$ac_err" >&5
7632   echo "configure: failed program was:" >&5
7633   cat conftest.$ac_ext >&5
7634   rm -rf conftest*
7635   eval "ac_cv_header_$ac_safe=no"
7636 fi
7637 rm -f conftest*
7638 fi
7639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7640   echo "$ac_t""yes" 1>&6
7641     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7642   cat >> confdefs.h <<EOF
7643 #define $ac_tr_hdr 1
7644 EOF
7645  ac_has_wchar_h=yes
7646 else
7647   echo "$ac_t""no" 1>&6
7648 ac_has_wchar_h=no
7649 fi
7650 done
7651
7652   for ac_hdr in wctype.h
7653 do
7654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7656 echo "configure:7657: checking for $ac_hdr" >&5
7657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7658   echo $ac_n "(cached) $ac_c" 1>&6
7659 else
7660   cat > conftest.$ac_ext <<EOF
7661 #line 7662 "configure"
7662 #include "confdefs.h"
7663 #include <$ac_hdr>
7664 EOF
7665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7666 { (eval echo configure:7667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7668 if test -z "$ac_err"; then
7669   rm -rf conftest*
7670   eval "ac_cv_header_$ac_safe=yes"
7671 else
7672   echo "$ac_err" >&5
7673   echo "configure: failed program was:" >&5
7674   cat conftest.$ac_ext >&5
7675   rm -rf conftest*
7676   eval "ac_cv_header_$ac_safe=no"
7677 fi
7678 rm -f conftest*
7679 fi
7680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7681   echo "$ac_t""yes" 1>&6
7682     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7683   cat >> confdefs.h <<EOF
7684 #define $ac_tr_hdr 1
7685 EOF
7686  ac_has_wctype_h=yes
7687 else
7688   echo "$ac_t""no" 1>&6
7689 ac_has_wctype_h=no
7690 fi
7691 done
7692
7693
7694     if test x"$ac_has_wchar_h" = xyes &&
7695      test x"$ac_has_wctype_h" = xyes &&
7696      test x"$enable_c_mbchar" != xno; then
7697
7698             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7699 echo "configure:7700: checking for WCHAR_MIN and WCHAR_MAX" >&5
7700     cat > conftest.$ac_ext <<EOF
7701 #line 7702 "configure"
7702 #include "confdefs.h"
7703 #include <wchar.h>
7704 int main() {
7705 int i = WCHAR_MIN; int j = WCHAR_MAX;
7706 ; return 0; }
7707 EOF
7708 if { (eval echo configure:7709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7709   rm -rf conftest*
7710   has_wchar_minmax=yes
7711 else
7712   echo "configure: failed program was:" >&5
7713   cat conftest.$ac_ext >&5
7714   rm -rf conftest*
7715   has_wchar_minmax=no
7716 fi
7717 rm -f conftest*
7718     echo "$ac_t""$has_wchar_minmax" 1>&6
7719
7720             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7721 echo "configure:7722: checking for WEOF" >&5
7722     cat > conftest.$ac_ext <<EOF
7723 #line 7724 "configure"
7724 #include "confdefs.h"
7725
7726       #include <wchar.h>
7727       #include <stddef.h>
7728 int main() {
7729 wint_t i = WEOF;
7730 ; return 0; }
7731 EOF
7732 if { (eval echo configure:7733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7733   rm -rf conftest*
7734   has_weof=yes
7735 else
7736   echo "configure: failed program was:" >&5
7737   cat conftest.$ac_ext >&5
7738   rm -rf conftest*
7739   has_weof=no
7740 fi
7741 rm -f conftest*
7742     echo "$ac_t""$has_weof" 1>&6
7743
7744         ac_wfuncs=yes
7745     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7746 do
7747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7748 echo "configure:7749: checking for $ac_func" >&5
7749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7750   echo $ac_n "(cached) $ac_c" 1>&6
7751 else
7752   cat > conftest.$ac_ext <<EOF
7753 #line 7754 "configure"
7754 #include "confdefs.h"
7755 /* System header to define __stub macros and hopefully few prototypes,
7756     which can conflict with char $ac_func(); below.  */
7757 #include <assert.h>
7758 /* Override any gcc2 internal prototype to avoid an error.  */
7759 /* We use char because int might match the return type of a gcc2
7760     builtin and then its argument prototype would still apply.  */
7761 char $ac_func();
7762
7763 int main() {
7764
7765 /* The GNU C library defines this for functions which it implements
7766     to always fail with ENOSYS.  Some functions are actually named
7767     something starting with __ and the normal name is an alias.  */
7768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7769 choke me
7770 #else
7771 $ac_func();
7772 #endif
7773
7774 ; return 0; }
7775 EOF
7776 if { (eval echo configure:7777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7777   rm -rf conftest*
7778   eval "ac_cv_func_$ac_func=yes"
7779 else
7780   echo "configure: failed program was:" >&5
7781   cat conftest.$ac_ext >&5
7782   rm -rf conftest*
7783   eval "ac_cv_func_$ac_func=no"
7784 fi
7785 rm -f conftest*
7786 fi
7787
7788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7789   echo "$ac_t""yes" 1>&6
7790     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7791   cat >> confdefs.h <<EOF
7792 #define $ac_tr_func 1
7793 EOF
7794  
7795 else
7796   echo "$ac_t""no" 1>&6
7797 \
7798     ac_wfuncs=no
7799 fi
7800 done
7801
7802
7803         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
7804     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7805     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7806     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7807     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7808     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7809 do
7810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7811 echo "configure:7812: checking for $ac_func" >&5
7812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7813   echo $ac_n "(cached) $ac_c" 1>&6
7814 else
7815   cat > conftest.$ac_ext <<EOF
7816 #line 7817 "configure"
7817 #include "confdefs.h"
7818 /* System header to define __stub macros and hopefully few prototypes,
7819     which can conflict with char $ac_func(); below.  */
7820 #include <assert.h>
7821 /* Override any gcc2 internal prototype to avoid an error.  */
7822 /* We use char because int might match the return type of a gcc2
7823     builtin and then its argument prototype would still apply.  */
7824 char $ac_func();
7825
7826 int main() {
7827
7828 /* The GNU C library defines this for functions which it implements
7829     to always fail with ENOSYS.  Some functions are actually named
7830     something starting with __ and the normal name is an alias.  */
7831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7832 choke me
7833 #else
7834 $ac_func();
7835 #endif
7836
7837 ; return 0; }
7838 EOF
7839 if { (eval echo configure:7840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7840   rm -rf conftest*
7841   eval "ac_cv_func_$ac_func=yes"
7842 else
7843   echo "configure: failed program was:" >&5
7844   cat conftest.$ac_ext >&5
7845   rm -rf conftest*
7846   eval "ac_cv_func_$ac_func=no"
7847 fi
7848 rm -f conftest*
7849 fi
7850
7851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7852   echo "$ac_t""yes" 1>&6
7853     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7854   cat >> confdefs.h <<EOF
7855 #define $ac_tr_func 1
7856 EOF
7857  
7858 else
7859   echo "$ac_t""no" 1>&6
7860 \
7861     ac_wfuncs=no
7862 fi
7863 done
7864
7865
7866     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7867 echo "configure:7868: checking for ISO C99 wchar_t support" >&5
7868     if test x"$has_weof" = xyes &&
7869        test x"$has_wchar_minmax" = xyes &&
7870        test x"$ac_wfuncs" = xyes; then
7871       ac_isoC99_wchar_t=yes
7872     else
7873       ac_isoC99_wchar_t=no
7874     fi
7875     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7876
7877             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7878 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7879 echo "configure:7880: checking for iconv.h" >&5
7880 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7881   echo $ac_n "(cached) $ac_c" 1>&6
7882 else
7883   cat > conftest.$ac_ext <<EOF
7884 #line 7885 "configure"
7885 #include "confdefs.h"
7886 #include <iconv.h>
7887 EOF
7888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7889 { (eval echo configure:7890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7891 if test -z "$ac_err"; then
7892   rm -rf conftest*
7893   eval "ac_cv_header_$ac_safe=yes"
7894 else
7895   echo "$ac_err" >&5
7896   echo "configure: failed program was:" >&5
7897   cat conftest.$ac_ext >&5
7898   rm -rf conftest*
7899   eval "ac_cv_header_$ac_safe=no"
7900 fi
7901 rm -f conftest*
7902 fi
7903 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7904   echo "$ac_t""yes" 1>&6
7905   ac_has_iconv_h=yes
7906 else
7907   echo "$ac_t""no" 1>&6
7908 ac_has_iconv_h=no
7909 fi
7910
7911     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7912 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7913 echo "configure:7914: checking for langinfo.h" >&5
7914 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7915   echo $ac_n "(cached) $ac_c" 1>&6
7916 else
7917   cat > conftest.$ac_ext <<EOF
7918 #line 7919 "configure"
7919 #include "confdefs.h"
7920 #include <langinfo.h>
7921 EOF
7922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7923 { (eval echo configure:7924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7925 if test -z "$ac_err"; then
7926   rm -rf conftest*
7927   eval "ac_cv_header_$ac_safe=yes"
7928 else
7929   echo "$ac_err" >&5
7930   echo "configure: failed program was:" >&5
7931   cat conftest.$ac_ext >&5
7932   rm -rf conftest*
7933   eval "ac_cv_header_$ac_safe=no"
7934 fi
7935 rm -f conftest*
7936 fi
7937 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7938   echo "$ac_t""yes" 1>&6
7939   ac_has_langinfo_h=yes
7940 else
7941   echo "$ac_t""no" 1>&6
7942 ac_has_langinfo_h=no
7943 fi
7944
7945
7946         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7947 echo "configure:7948: checking for iconv in -liconv" >&5
7948 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7950   echo $ac_n "(cached) $ac_c" 1>&6
7951 else
7952   ac_save_LIBS="$LIBS"
7953 LIBS="-liconv  $LIBS"
7954 cat > conftest.$ac_ext <<EOF
7955 #line 7956 "configure"
7956 #include "confdefs.h"
7957 /* Override any gcc2 internal prototype to avoid an error.  */
7958 /* We use char because int might match the return type of a gcc2
7959     builtin and then its argument prototype would still apply.  */
7960 char iconv();
7961
7962 int main() {
7963 iconv()
7964 ; return 0; }
7965 EOF
7966 if { (eval echo configure:7967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7967   rm -rf conftest*
7968   eval "ac_cv_lib_$ac_lib_var=yes"
7969 else
7970   echo "configure: failed program was:" >&5
7971   cat conftest.$ac_ext >&5
7972   rm -rf conftest*
7973   eval "ac_cv_lib_$ac_lib_var=no"
7974 fi
7975 rm -f conftest*
7976 LIBS="$ac_save_LIBS"
7977
7978 fi
7979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7980   echo "$ac_t""yes" 1>&6
7981   libiconv="-liconv"
7982 else
7983   echo "$ac_t""no" 1>&6
7984 fi
7985
7986     ac_save_LIBS="$LIBS"
7987     LIBS="$LIBS $libiconv"
7988
7989     for ac_func in iconv_open iconv_close iconv nl_langinfo
7990 do
7991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7992 echo "configure:7993: checking for $ac_func" >&5
7993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7994   echo $ac_n "(cached) $ac_c" 1>&6
7995 else
7996   cat > conftest.$ac_ext <<EOF
7997 #line 7998 "configure"
7998 #include "confdefs.h"
7999 /* System header to define __stub macros and hopefully few prototypes,
8000     which can conflict with char $ac_func(); below.  */
8001 #include <assert.h>
8002 /* Override any gcc2 internal prototype to avoid an error.  */
8003 /* We use char because int might match the return type of a gcc2
8004     builtin and then its argument prototype would still apply.  */
8005 char $ac_func();
8006
8007 int main() {
8008
8009 /* The GNU C library defines this for functions which it implements
8010     to always fail with ENOSYS.  Some functions are actually named
8011     something starting with __ and the normal name is an alias.  */
8012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8013 choke me
8014 #else
8015 $ac_func();
8016 #endif
8017
8018 ; return 0; }
8019 EOF
8020 if { (eval echo configure:8021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8021   rm -rf conftest*
8022   eval "ac_cv_func_$ac_func=yes"
8023 else
8024   echo "configure: failed program was:" >&5
8025   cat conftest.$ac_ext >&5
8026   rm -rf conftest*
8027   eval "ac_cv_func_$ac_func=no"
8028 fi
8029 rm -f conftest*
8030 fi
8031
8032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8033   echo "$ac_t""yes" 1>&6
8034     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8035   cat >> confdefs.h <<EOF
8036 #define $ac_tr_func 1
8037 EOF
8038  \
8039     ac_XPG2funcs=yes
8040 else
8041   echo "$ac_t""no" 1>&6
8042 ac_XPG2funcs=no
8043 fi
8044 done
8045
8046
8047     LIBS="$ac_save_LIBS"
8048
8049     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8050 echo "configure:8051: checking for XPG2 wchar_t support" >&5
8051     if test x"$ac_has_iconv_h" = xyes &&
8052        test x"$ac_has_langinfo_h" = xyes &&
8053        test x"$ac_XPG2funcs" = xyes; then
8054       ac_XPG2_wchar_t=yes
8055     else
8056       ac_XPG2_wchar_t=no
8057     fi
8058     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8059
8060             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8061 echo "configure:8062: checking for enabled wchar_t specializations" >&5
8062     if test x"$ac_isoC99_wchar_t" = xyes &&
8063        test x"$ac_XPG2_wchar_t" = xyes; then
8064       cat >> confdefs.h <<\EOF
8065 #define _GLIBCPP_USE_WCHAR_T 1
8066 EOF
8067
8068       echo "$ac_t"""yes"" 1>&6
8069     else
8070       echo "$ac_t"""no"" 1>&6
8071     fi
8072   else
8073         echo "configure: warning: wchar_t support disabled." 1>&2
8074   fi
8075
8076       os_include_dir="os/bsd/freebsd"
8077       cat >> confdefs.h <<\EOF
8078 #define HAVE_LC_MESSAGES 1
8079 EOF
8080
8081       cat >> confdefs.h <<\EOF
8082 #define HAVE_DRAND48 1
8083 EOF
8084
8085       cat >> confdefs.h <<\EOF
8086 #define HAVE_GETPAGESIZE 1
8087 EOF
8088
8089       cat >> confdefs.h <<\EOF
8090 #define HAVE_SETENV 1
8091 EOF
8092
8093       cat >> confdefs.h <<\EOF
8094 #define HAVE_SIGSETJMP 1
8095 EOF
8096
8097       cat >> confdefs.h <<\EOF
8098 #define HAVE_COPYSIGN 1
8099 EOF
8100
8101       cat >> confdefs.h <<\EOF
8102 #define HAVE_COPYSIGNF 1
8103 EOF
8104
8105       cat >> confdefs.h <<\EOF
8106 #define HAVE_FINITEF 1
8107 EOF
8108
8109       cat >> confdefs.h <<\EOF
8110 #define HAVE_FINITE 1
8111 EOF
8112
8113       cat >> confdefs.h <<\EOF
8114 #define HAVE_FREXPF 1
8115 EOF
8116
8117       cat >> confdefs.h <<\EOF
8118 #define HAVE_HYPOT 1
8119 EOF
8120
8121       cat >> confdefs.h <<\EOF
8122 #define HAVE_HYPOTF 1
8123 EOF
8124
8125       cat >> confdefs.h <<\EOF
8126 #define HAVE_ISINF 1
8127 EOF
8128
8129       cat >> confdefs.h <<\EOF
8130 #define HAVE_ISNAN 1
8131 EOF
8132
8133       cat >> confdefs.h <<\EOF
8134 #define HAVE_ISNANF 1
8135 EOF
8136
8137       if test x"long_double_math_on_this_cpu" = x"yes"; then
8138         cat >> confdefs.h <<\EOF
8139 #define HAVE_FINITEL 1
8140 EOF
8141
8142         cat >> confdefs.h <<\EOF
8143 #define HAVE_ISINFL 1
8144 EOF
8145
8146         cat >> confdefs.h <<\EOF
8147 #define HAVE_ISNANL 1
8148 EOF
8149
8150       fi
8151       ;;
8152     *-mingw32*)
8153       for ac_hdr in sys/types.h locale.h float.h
8154 do
8155 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8156 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8157 echo "configure:8158: checking for $ac_hdr" >&5
8158 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8159   echo $ac_n "(cached) $ac_c" 1>&6
8160 else
8161   cat > conftest.$ac_ext <<EOF
8162 #line 8163 "configure"
8163 #include "confdefs.h"
8164 #include <$ac_hdr>
8165 EOF
8166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8167 { (eval echo configure:8168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8169 if test -z "$ac_err"; then
8170   rm -rf conftest*
8171   eval "ac_cv_header_$ac_safe=yes"
8172 else
8173   echo "$ac_err" >&5
8174   echo "configure: failed program was:" >&5
8175   cat conftest.$ac_ext >&5
8176   rm -rf conftest*
8177   eval "ac_cv_header_$ac_safe=no"
8178 fi
8179 rm -f conftest*
8180 fi
8181 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8182   echo "$ac_t""yes" 1>&6
8183     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8184   cat >> confdefs.h <<EOF
8185 #define $ac_tr_hdr 1
8186 EOF
8187  
8188 else
8189   echo "$ac_t""no" 1>&6
8190 fi
8191 done
8192
8193       
8194   # If we're not using GNU ld, then there's no point in even trying these
8195   # tests.  Check for that first.  We should have already tested for gld
8196   # by now (in libtool), but require it now just to be safe...
8197   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8198   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8199   
8200
8201   # The name set by libtool depends on the version of libtool.  Shame on us
8202   # for depending on an impl detail, but c'est la vie.  Older versions used
8203   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8204   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8205   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8206   # set (hence we're using an older libtool), then set it.
8207   if test x${with_gnu_ld+set} != xset; then
8208     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8209       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8210       with_gnu_ld=no
8211     else
8212       with_gnu_ld=$ac_cv_prog_gnu_ld
8213     fi
8214   fi
8215
8216   # Start by getting the version number.  I think the libtool test already
8217   # does some of this, but throws away the result.
8218   
8219   ldver=`$LD --version 2>/dev/null | head -1 | \
8220          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8221   
8222   glibcpp_gnu_ld_version=`echo $ldver | \
8223          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8224
8225   # Set --gc-sections.
8226   if test "$with_gnu_ld" = "notbroken"; then
8227     # GNU ld it is!  Joy and bunny rabbits!
8228
8229     # All these tests are for C++; save the language and the compiler flags.
8230     # Need to do this so that g++ won't try to link in libstdc++
8231     ac_test_CFLAGS="${CFLAGS+set}"
8232     ac_save_CFLAGS="$CFLAGS"
8233     CFLAGS='-x c++  -Wl,--gc-sections'
8234
8235     # Check for -Wl,--gc-sections
8236     # XXX This test is broken at the moment, as symbols required for
8237     # linking are now in libsupc++ (not built yet.....). In addition,
8238     # this test has cored on solaris in the past. In addition,
8239     # --gc-sections doesn't really work at the moment (keeps on discarding
8240     # used sections, first .eh_frame and now some of the glibc sections for
8241     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8242     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8243 echo "configure:8244: checking for ld that supports -Wl,--gc-sections" >&5
8244     if test "$cross_compiling" = yes; then
8245   ac_sectionLDflags=yes
8246 else
8247   cat > conftest.$ac_ext <<EOF
8248 #line 8249 "configure"
8249 #include "confdefs.h"
8250
8251      int main(void)
8252      {
8253        try { throw 1; }
8254        catch (...) { };
8255        return 0;
8256      }
8257     
8258 EOF
8259 if { (eval echo configure:8260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8260 then
8261   ac_sectionLDflags=yes
8262 else
8263   echo "configure: failed program was:" >&5
8264   cat conftest.$ac_ext >&5
8265   rm -fr conftest*
8266   ac_sectionLDflags=no
8267 fi
8268 rm -fr conftest*
8269 fi
8270
8271     if test "$ac_test_CFLAGS" = set; then
8272       CFLAGS="$ac_save_CFLAGS"
8273     else
8274       # this is the suspicious part
8275       CFLAGS=''
8276     fi
8277     if test "$ac_sectionLDflags" = "yes"; then
8278       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8279     fi
8280     echo "$ac_t""$ac_sectionLDflags" 1>&6
8281   fi
8282
8283   # Set linker optimization flags.
8284   if test x"$with_gnu_ld" = x"yes"; then
8285     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8286   fi
8287
8288   
8289   
8290
8291       
8292     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8293 echo "configure:8294: checking for main in -lm" >&5
8294 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8296   echo $ac_n "(cached) $ac_c" 1>&6
8297 else
8298   ac_save_LIBS="$LIBS"
8299 LIBS="-lm  $LIBS"
8300 cat > conftest.$ac_ext <<EOF
8301 #line 8302 "configure"
8302 #include "confdefs.h"
8303
8304 int main() {
8305 main()
8306 ; return 0; }
8307 EOF
8308 if { (eval echo configure:8309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8309   rm -rf conftest*
8310   eval "ac_cv_lib_$ac_lib_var=yes"
8311 else
8312   echo "configure: failed program was:" >&5
8313   cat conftest.$ac_ext >&5
8314   rm -rf conftest*
8315   eval "ac_cv_lib_$ac_lib_var=no"
8316 fi
8317 rm -f conftest*
8318 LIBS="$ac_save_LIBS"
8319
8320 fi
8321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8322   echo "$ac_t""yes" 1>&6
8323     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8324     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8325   cat >> confdefs.h <<EOF
8326 #define $ac_tr_lib 1
8327 EOF
8328
8329   LIBS="-lm $LIBS"
8330
8331 else
8332   echo "$ac_t""no" 1>&6
8333 fi
8334
8335   for ac_func in nan copysignf
8336 do
8337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8338 echo "configure:8339: checking for $ac_func" >&5
8339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8340   echo $ac_n "(cached) $ac_c" 1>&6
8341 else
8342   cat > conftest.$ac_ext <<EOF
8343 #line 8344 "configure"
8344 #include "confdefs.h"
8345 /* System header to define __stub macros and hopefully few prototypes,
8346     which can conflict with char $ac_func(); below.  */
8347 #include <assert.h>
8348 /* Override any gcc2 internal prototype to avoid an error.  */
8349 /* We use char because int might match the return type of a gcc2
8350     builtin and then its argument prototype would still apply.  */
8351 char $ac_func();
8352
8353 int main() {
8354
8355 /* The GNU C library defines this for functions which it implements
8356     to always fail with ENOSYS.  Some functions are actually named
8357     something starting with __ and the normal name is an alias.  */
8358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8359 choke me
8360 #else
8361 $ac_func();
8362 #endif
8363
8364 ; return 0; }
8365 EOF
8366 if { (eval echo configure:8367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8367   rm -rf conftest*
8368   eval "ac_cv_func_$ac_func=yes"
8369 else
8370   echo "configure: failed program was:" >&5
8371   cat conftest.$ac_ext >&5
8372   rm -rf conftest*
8373   eval "ac_cv_func_$ac_func=no"
8374 fi
8375 rm -f conftest*
8376 fi
8377
8378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8379   echo "$ac_t""yes" 1>&6
8380     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8381   cat >> confdefs.h <<EOF
8382 #define $ac_tr_func 1
8383 EOF
8384  
8385 else
8386   echo "$ac_t""no" 1>&6
8387 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8388 fi
8389 done
8390
8391
8392     for ac_func in __signbit
8393 do
8394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8395 echo "configure:8396: checking for $ac_func" >&5
8396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8397   echo $ac_n "(cached) $ac_c" 1>&6
8398 else
8399   cat > conftest.$ac_ext <<EOF
8400 #line 8401 "configure"
8401 #include "confdefs.h"
8402 /* System header to define __stub macros and hopefully few prototypes,
8403     which can conflict with char $ac_func(); below.  */
8404 #include <assert.h>
8405 /* Override any gcc2 internal prototype to avoid an error.  */
8406 /* We use char because int might match the return type of a gcc2
8407     builtin and then its argument prototype would still apply.  */
8408 char $ac_func();
8409
8410 int main() {
8411
8412 /* The GNU C library defines this for functions which it implements
8413     to always fail with ENOSYS.  Some functions are actually named
8414     something starting with __ and the normal name is an alias.  */
8415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8416 choke me
8417 #else
8418 $ac_func();
8419 #endif
8420
8421 ; return 0; }
8422 EOF
8423 if { (eval echo configure:8424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8424   rm -rf conftest*
8425   eval "ac_cv_func_$ac_func=yes"
8426 else
8427   echo "configure: failed program was:" >&5
8428   cat conftest.$ac_ext >&5
8429   rm -rf conftest*
8430   eval "ac_cv_func_$ac_func=no"
8431 fi
8432 rm -f conftest*
8433 fi
8434
8435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8436   echo "$ac_t""yes" 1>&6
8437     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8438   cat >> confdefs.h <<EOF
8439 #define $ac_tr_func 1
8440 EOF
8441  
8442 else
8443   echo "$ac_t""no" 1>&6
8444 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8445 fi
8446 done
8447
8448   for ac_func in __signbitf
8449 do
8450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8451 echo "configure:8452: checking for $ac_func" >&5
8452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8453   echo $ac_n "(cached) $ac_c" 1>&6
8454 else
8455   cat > conftest.$ac_ext <<EOF
8456 #line 8457 "configure"
8457 #include "confdefs.h"
8458 /* System header to define __stub macros and hopefully few prototypes,
8459     which can conflict with char $ac_func(); below.  */
8460 #include <assert.h>
8461 /* Override any gcc2 internal prototype to avoid an error.  */
8462 /* We use char because int might match the return type of a gcc2
8463     builtin and then its argument prototype would still apply.  */
8464 char $ac_func();
8465
8466 int main() {
8467
8468 /* The GNU C library defines this for functions which it implements
8469     to always fail with ENOSYS.  Some functions are actually named
8470     something starting with __ and the normal name is an alias.  */
8471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8472 choke me
8473 #else
8474 $ac_func();
8475 #endif
8476
8477 ; return 0; }
8478 EOF
8479 if { (eval echo configure:8480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8480   rm -rf conftest*
8481   eval "ac_cv_func_$ac_func=yes"
8482 else
8483   echo "configure: failed program was:" >&5
8484   cat conftest.$ac_ext >&5
8485   rm -rf conftest*
8486   eval "ac_cv_func_$ac_func=no"
8487 fi
8488 rm -f conftest*
8489 fi
8490
8491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8492   echo "$ac_t""yes" 1>&6
8493     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8494   cat >> confdefs.h <<EOF
8495 #define $ac_tr_func 1
8496 EOF
8497  
8498 else
8499   echo "$ac_t""no" 1>&6
8500 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8501 fi
8502 done
8503
8504
8505           if test x$ac_cv_func_copysignl = x"yes"; then
8506     for ac_func in __signbitl
8507 do
8508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8509 echo "configure:8510: checking for $ac_func" >&5
8510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8511   echo $ac_n "(cached) $ac_c" 1>&6
8512 else
8513   cat > conftest.$ac_ext <<EOF
8514 #line 8515 "configure"
8515 #include "confdefs.h"
8516 /* System header to define __stub macros and hopefully few prototypes,
8517     which can conflict with char $ac_func(); below.  */
8518 #include <assert.h>
8519 /* Override any gcc2 internal prototype to avoid an error.  */
8520 /* We use char because int might match the return type of a gcc2
8521     builtin and then its argument prototype would still apply.  */
8522 char $ac_func();
8523
8524 int main() {
8525
8526 /* The GNU C library defines this for functions which it implements
8527     to always fail with ENOSYS.  Some functions are actually named
8528     something starting with __ and the normal name is an alias.  */
8529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8530 choke me
8531 #else
8532 $ac_func();
8533 #endif
8534
8535 ; return 0; }
8536 EOF
8537 if { (eval echo configure:8538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8538   rm -rf conftest*
8539   eval "ac_cv_func_$ac_func=yes"
8540 else
8541   echo "configure: failed program was:" >&5
8542   cat conftest.$ac_ext >&5
8543   rm -rf conftest*
8544   eval "ac_cv_func_$ac_func=no"
8545 fi
8546 rm -f conftest*
8547 fi
8548
8549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8550   echo "$ac_t""yes" 1>&6
8551     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8552   cat >> confdefs.h <<EOF
8553 #define $ac_tr_func 1
8554 EOF
8555  
8556 else
8557   echo "$ac_t""no" 1>&6
8558 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8559 fi
8560 done
8561
8562   fi
8563
8564   if test -n "$LIBMATHOBJS"; then
8565     need_libmath=yes
8566   fi
8567   
8568   
8569
8570 if test "$need_libmath" = yes; then
8571   GLIBCPP_BUILD_LIBMATH_TRUE=
8572   GLIBCPP_BUILD_LIBMATH_FALSE='#'
8573 else
8574   GLIBCPP_BUILD_LIBMATH_TRUE='#'
8575   GLIBCPP_BUILD_LIBMATH_FALSE=
8576 fi
8577
8578       
8579
8580       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8581 echo "configure:8582: checking for mbstate_t" >&5
8582   cat > conftest.$ac_ext <<EOF
8583 #line 8584 "configure"
8584 #include "confdefs.h"
8585 #include <wchar.h>
8586 int main() {
8587 mbstate_t teststate;
8588 ; return 0; }
8589 EOF
8590 if { (eval echo configure:8591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8591   rm -rf conftest*
8592   have_mbstate_t=yes
8593 else
8594   echo "configure: failed program was:" >&5
8595   cat conftest.$ac_ext >&5
8596   rm -rf conftest*
8597   have_mbstate_t=no
8598 fi
8599 rm -f conftest*
8600   echo "$ac_t""$have_mbstate_t" 1>&6
8601   if test x"$have_mbstate_t" = xyes; then
8602     cat >> confdefs.h <<\EOF
8603 #define HAVE_MBSTATE_T 1
8604 EOF
8605
8606   fi
8607
8608     for ac_hdr in wchar.h
8609 do
8610 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8611 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8612 echo "configure:8613: checking for $ac_hdr" >&5
8613 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8614   echo $ac_n "(cached) $ac_c" 1>&6
8615 else
8616   cat > conftest.$ac_ext <<EOF
8617 #line 8618 "configure"
8618 #include "confdefs.h"
8619 #include <$ac_hdr>
8620 EOF
8621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8622 { (eval echo configure:8623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8624 if test -z "$ac_err"; then
8625   rm -rf conftest*
8626   eval "ac_cv_header_$ac_safe=yes"
8627 else
8628   echo "$ac_err" >&5
8629   echo "configure: failed program was:" >&5
8630   cat conftest.$ac_ext >&5
8631   rm -rf conftest*
8632   eval "ac_cv_header_$ac_safe=no"
8633 fi
8634 rm -f conftest*
8635 fi
8636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8637   echo "$ac_t""yes" 1>&6
8638     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8639   cat >> confdefs.h <<EOF
8640 #define $ac_tr_hdr 1
8641 EOF
8642  ac_has_wchar_h=yes
8643 else
8644   echo "$ac_t""no" 1>&6
8645 ac_has_wchar_h=no
8646 fi
8647 done
8648
8649   for ac_hdr in wctype.h
8650 do
8651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8653 echo "configure:8654: checking for $ac_hdr" >&5
8654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8655   echo $ac_n "(cached) $ac_c" 1>&6
8656 else
8657   cat > conftest.$ac_ext <<EOF
8658 #line 8659 "configure"
8659 #include "confdefs.h"
8660 #include <$ac_hdr>
8661 EOF
8662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8663 { (eval echo configure:8664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8665 if test -z "$ac_err"; then
8666   rm -rf conftest*
8667   eval "ac_cv_header_$ac_safe=yes"
8668 else
8669   echo "$ac_err" >&5
8670   echo "configure: failed program was:" >&5
8671   cat conftest.$ac_ext >&5
8672   rm -rf conftest*
8673   eval "ac_cv_header_$ac_safe=no"
8674 fi
8675 rm -f conftest*
8676 fi
8677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8678   echo "$ac_t""yes" 1>&6
8679     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8680   cat >> confdefs.h <<EOF
8681 #define $ac_tr_hdr 1
8682 EOF
8683  ac_has_wctype_h=yes
8684 else
8685   echo "$ac_t""no" 1>&6
8686 ac_has_wctype_h=no
8687 fi
8688 done
8689
8690
8691     if test x"$ac_has_wchar_h" = xyes &&
8692      test x"$ac_has_wctype_h" = xyes &&
8693      test x"$enable_c_mbchar" != xno; then
8694
8695             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8696 echo "configure:8697: checking for WCHAR_MIN and WCHAR_MAX" >&5
8697     cat > conftest.$ac_ext <<EOF
8698 #line 8699 "configure"
8699 #include "confdefs.h"
8700 #include <wchar.h>
8701 int main() {
8702 int i = WCHAR_MIN; int j = WCHAR_MAX;
8703 ; return 0; }
8704 EOF
8705 if { (eval echo configure:8706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8706   rm -rf conftest*
8707   has_wchar_minmax=yes
8708 else
8709   echo "configure: failed program was:" >&5
8710   cat conftest.$ac_ext >&5
8711   rm -rf conftest*
8712   has_wchar_minmax=no
8713 fi
8714 rm -f conftest*
8715     echo "$ac_t""$has_wchar_minmax" 1>&6
8716
8717             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8718 echo "configure:8719: checking for WEOF" >&5
8719     cat > conftest.$ac_ext <<EOF
8720 #line 8721 "configure"
8721 #include "confdefs.h"
8722
8723       #include <wchar.h>
8724       #include <stddef.h>
8725 int main() {
8726 wint_t i = WEOF;
8727 ; return 0; }
8728 EOF
8729 if { (eval echo configure:8730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8730   rm -rf conftest*
8731   has_weof=yes
8732 else
8733   echo "configure: failed program was:" >&5
8734   cat conftest.$ac_ext >&5
8735   rm -rf conftest*
8736   has_weof=no
8737 fi
8738 rm -f conftest*
8739     echo "$ac_t""$has_weof" 1>&6
8740
8741         ac_wfuncs=yes
8742     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8743 do
8744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8745 echo "configure:8746: checking for $ac_func" >&5
8746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8747   echo $ac_n "(cached) $ac_c" 1>&6
8748 else
8749   cat > conftest.$ac_ext <<EOF
8750 #line 8751 "configure"
8751 #include "confdefs.h"
8752 /* System header to define __stub macros and hopefully few prototypes,
8753     which can conflict with char $ac_func(); below.  */
8754 #include <assert.h>
8755 /* Override any gcc2 internal prototype to avoid an error.  */
8756 /* We use char because int might match the return type of a gcc2
8757     builtin and then its argument prototype would still apply.  */
8758 char $ac_func();
8759
8760 int main() {
8761
8762 /* The GNU C library defines this for functions which it implements
8763     to always fail with ENOSYS.  Some functions are actually named
8764     something starting with __ and the normal name is an alias.  */
8765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8766 choke me
8767 #else
8768 $ac_func();
8769 #endif
8770
8771 ; return 0; }
8772 EOF
8773 if { (eval echo configure:8774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8774   rm -rf conftest*
8775   eval "ac_cv_func_$ac_func=yes"
8776 else
8777   echo "configure: failed program was:" >&5
8778   cat conftest.$ac_ext >&5
8779   rm -rf conftest*
8780   eval "ac_cv_func_$ac_func=no"
8781 fi
8782 rm -f conftest*
8783 fi
8784
8785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8786   echo "$ac_t""yes" 1>&6
8787     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8788   cat >> confdefs.h <<EOF
8789 #define $ac_tr_func 1
8790 EOF
8791  
8792 else
8793   echo "$ac_t""no" 1>&6
8794 \
8795     ac_wfuncs=no
8796 fi
8797 done
8798
8799
8800         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
8801     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8802     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8803     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8804     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8805     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8806 do
8807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8808 echo "configure:8809: checking for $ac_func" >&5
8809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8810   echo $ac_n "(cached) $ac_c" 1>&6
8811 else
8812   cat > conftest.$ac_ext <<EOF
8813 #line 8814 "configure"
8814 #include "confdefs.h"
8815 /* System header to define __stub macros and hopefully few prototypes,
8816     which can conflict with char $ac_func(); below.  */
8817 #include <assert.h>
8818 /* Override any gcc2 internal prototype to avoid an error.  */
8819 /* We use char because int might match the return type of a gcc2
8820     builtin and then its argument prototype would still apply.  */
8821 char $ac_func();
8822
8823 int main() {
8824
8825 /* The GNU C library defines this for functions which it implements
8826     to always fail with ENOSYS.  Some functions are actually named
8827     something starting with __ and the normal name is an alias.  */
8828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8829 choke me
8830 #else
8831 $ac_func();
8832 #endif
8833
8834 ; return 0; }
8835 EOF
8836 if { (eval echo configure:8837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8837   rm -rf conftest*
8838   eval "ac_cv_func_$ac_func=yes"
8839 else
8840   echo "configure: failed program was:" >&5
8841   cat conftest.$ac_ext >&5
8842   rm -rf conftest*
8843   eval "ac_cv_func_$ac_func=no"
8844 fi
8845 rm -f conftest*
8846 fi
8847
8848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8849   echo "$ac_t""yes" 1>&6
8850     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8851   cat >> confdefs.h <<EOF
8852 #define $ac_tr_func 1
8853 EOF
8854  
8855 else
8856   echo "$ac_t""no" 1>&6
8857 \
8858     ac_wfuncs=no
8859 fi
8860 done
8861
8862
8863     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8864 echo "configure:8865: checking for ISO C99 wchar_t support" >&5
8865     if test x"$has_weof" = xyes &&
8866        test x"$has_wchar_minmax" = xyes &&
8867        test x"$ac_wfuncs" = xyes; then
8868       ac_isoC99_wchar_t=yes
8869     else
8870       ac_isoC99_wchar_t=no
8871     fi
8872     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8873
8874             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8875 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8876 echo "configure:8877: checking for iconv.h" >&5
8877 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8878   echo $ac_n "(cached) $ac_c" 1>&6
8879 else
8880   cat > conftest.$ac_ext <<EOF
8881 #line 8882 "configure"
8882 #include "confdefs.h"
8883 #include <iconv.h>
8884 EOF
8885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8886 { (eval echo configure:8887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8888 if test -z "$ac_err"; then
8889   rm -rf conftest*
8890   eval "ac_cv_header_$ac_safe=yes"
8891 else
8892   echo "$ac_err" >&5
8893   echo "configure: failed program was:" >&5
8894   cat conftest.$ac_ext >&5
8895   rm -rf conftest*
8896   eval "ac_cv_header_$ac_safe=no"
8897 fi
8898 rm -f conftest*
8899 fi
8900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8901   echo "$ac_t""yes" 1>&6
8902   ac_has_iconv_h=yes
8903 else
8904   echo "$ac_t""no" 1>&6
8905 ac_has_iconv_h=no
8906 fi
8907
8908     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8909 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8910 echo "configure:8911: checking for langinfo.h" >&5
8911 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8912   echo $ac_n "(cached) $ac_c" 1>&6
8913 else
8914   cat > conftest.$ac_ext <<EOF
8915 #line 8916 "configure"
8916 #include "confdefs.h"
8917 #include <langinfo.h>
8918 EOF
8919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8920 { (eval echo configure:8921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8922 if test -z "$ac_err"; then
8923   rm -rf conftest*
8924   eval "ac_cv_header_$ac_safe=yes"
8925 else
8926   echo "$ac_err" >&5
8927   echo "configure: failed program was:" >&5
8928   cat conftest.$ac_ext >&5
8929   rm -rf conftest*
8930   eval "ac_cv_header_$ac_safe=no"
8931 fi
8932 rm -f conftest*
8933 fi
8934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8935   echo "$ac_t""yes" 1>&6
8936   ac_has_langinfo_h=yes
8937 else
8938   echo "$ac_t""no" 1>&6
8939 ac_has_langinfo_h=no
8940 fi
8941
8942
8943         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8944 echo "configure:8945: checking for iconv in -liconv" >&5
8945 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8947   echo $ac_n "(cached) $ac_c" 1>&6
8948 else
8949   ac_save_LIBS="$LIBS"
8950 LIBS="-liconv  $LIBS"
8951 cat > conftest.$ac_ext <<EOF
8952 #line 8953 "configure"
8953 #include "confdefs.h"
8954 /* Override any gcc2 internal prototype to avoid an error.  */
8955 /* We use char because int might match the return type of a gcc2
8956     builtin and then its argument prototype would still apply.  */
8957 char iconv();
8958
8959 int main() {
8960 iconv()
8961 ; return 0; }
8962 EOF
8963 if { (eval echo configure:8964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8964   rm -rf conftest*
8965   eval "ac_cv_lib_$ac_lib_var=yes"
8966 else
8967   echo "configure: failed program was:" >&5
8968   cat conftest.$ac_ext >&5
8969   rm -rf conftest*
8970   eval "ac_cv_lib_$ac_lib_var=no"
8971 fi
8972 rm -f conftest*
8973 LIBS="$ac_save_LIBS"
8974
8975 fi
8976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8977   echo "$ac_t""yes" 1>&6
8978   libiconv="-liconv"
8979 else
8980   echo "$ac_t""no" 1>&6
8981 fi
8982
8983     ac_save_LIBS="$LIBS"
8984     LIBS="$LIBS $libiconv"
8985
8986     for ac_func in iconv_open iconv_close iconv nl_langinfo
8987 do
8988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8989 echo "configure:8990: checking for $ac_func" >&5
8990 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8991   echo $ac_n "(cached) $ac_c" 1>&6
8992 else
8993   cat > conftest.$ac_ext <<EOF
8994 #line 8995 "configure"
8995 #include "confdefs.h"
8996 /* System header to define __stub macros and hopefully few prototypes,
8997     which can conflict with char $ac_func(); below.  */
8998 #include <assert.h>
8999 /* Override any gcc2 internal prototype to avoid an error.  */
9000 /* We use char because int might match the return type of a gcc2
9001     builtin and then its argument prototype would still apply.  */
9002 char $ac_func();
9003
9004 int main() {
9005
9006 /* The GNU C library defines this for functions which it implements
9007     to always fail with ENOSYS.  Some functions are actually named
9008     something starting with __ and the normal name is an alias.  */
9009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9010 choke me
9011 #else
9012 $ac_func();
9013 #endif
9014
9015 ; return 0; }
9016 EOF
9017 if { (eval echo configure:9018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9018   rm -rf conftest*
9019   eval "ac_cv_func_$ac_func=yes"
9020 else
9021   echo "configure: failed program was:" >&5
9022   cat conftest.$ac_ext >&5
9023   rm -rf conftest*
9024   eval "ac_cv_func_$ac_func=no"
9025 fi
9026 rm -f conftest*
9027 fi
9028
9029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9030   echo "$ac_t""yes" 1>&6
9031     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9032   cat >> confdefs.h <<EOF
9033 #define $ac_tr_func 1
9034 EOF
9035  \
9036     ac_XPG2funcs=yes
9037 else
9038   echo "$ac_t""no" 1>&6
9039 ac_XPG2funcs=no
9040 fi
9041 done
9042
9043
9044     LIBS="$ac_save_LIBS"
9045
9046     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9047 echo "configure:9048: checking for XPG2 wchar_t support" >&5
9048     if test x"$ac_has_iconv_h" = xyes &&
9049        test x"$ac_has_langinfo_h" = xyes &&
9050        test x"$ac_XPG2funcs" = xyes; then
9051       ac_XPG2_wchar_t=yes
9052     else
9053       ac_XPG2_wchar_t=no
9054     fi
9055     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9056
9057             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9058 echo "configure:9059: checking for enabled wchar_t specializations" >&5
9059     if test x"$ac_isoC99_wchar_t" = xyes &&
9060        test x"$ac_XPG2_wchar_t" = xyes; then
9061       cat >> confdefs.h <<\EOF
9062 #define _GLIBCPP_USE_WCHAR_T 1
9063 EOF
9064
9065       echo "$ac_t"""yes"" 1>&6
9066     else
9067       echo "$ac_t"""no"" 1>&6
9068     fi
9069   else
9070         echo "configure: warning: wchar_t support disabled." 1>&2
9071   fi
9072
9073       os_include_dir="os/mingw32"
9074       ;;
9075     *-windiss*)
9076       os_include_dir="os/windiss"
9077       ;;
9078     *-qnx6.[12]*)
9079       SECTION_FLAGS='-ffunction-sections -fdata-sections'
9080        
9081       
9082   # If we're not using GNU ld, then there's no point in even trying these
9083   # tests.  Check for that first.  We should have already tested for gld
9084   # by now (in libtool), but require it now just to be safe...
9085   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9086   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9087   
9088
9089   # The name set by libtool depends on the version of libtool.  Shame on us
9090   # for depending on an impl detail, but c'est la vie.  Older versions used
9091   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9092   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9093   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9094   # set (hence we're using an older libtool), then set it.
9095   if test x${with_gnu_ld+set} != xset; then
9096     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9097       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9098       with_gnu_ld=no
9099     else
9100       with_gnu_ld=$ac_cv_prog_gnu_ld
9101     fi
9102   fi
9103
9104   # Start by getting the version number.  I think the libtool test already
9105   # does some of this, but throws away the result.
9106   
9107   ldver=`$LD --version 2>/dev/null | head -1 | \
9108          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9109   
9110   glibcpp_gnu_ld_version=`echo $ldver | \
9111          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9112
9113   # Set --gc-sections.
9114   if test "$with_gnu_ld" = "notbroken"; then
9115     # GNU ld it is!  Joy and bunny rabbits!
9116
9117     # All these tests are for C++; save the language and the compiler flags.
9118     # Need to do this so that g++ won't try to link in libstdc++
9119     ac_test_CFLAGS="${CFLAGS+set}"
9120     ac_save_CFLAGS="$CFLAGS"
9121     CFLAGS='-x c++  -Wl,--gc-sections'
9122
9123     # Check for -Wl,--gc-sections
9124     # XXX This test is broken at the moment, as symbols required for
9125     # linking are now in libsupc++ (not built yet.....). In addition,
9126     # this test has cored on solaris in the past. In addition,
9127     # --gc-sections doesn't really work at the moment (keeps on discarding
9128     # used sections, first .eh_frame and now some of the glibc sections for
9129     # iconv). Bzzzzt. Thanks for playing, maybe next time.
9130     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9131 echo "configure:9132: checking for ld that supports -Wl,--gc-sections" >&5
9132     if test "$cross_compiling" = yes; then
9133   ac_sectionLDflags=yes
9134 else
9135   cat > conftest.$ac_ext <<EOF
9136 #line 9137 "configure"
9137 #include "confdefs.h"
9138
9139      int main(void)
9140      {
9141        try { throw 1; }
9142        catch (...) { };
9143        return 0;
9144      }
9145     
9146 EOF
9147 if { (eval echo configure:9148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9148 then
9149   ac_sectionLDflags=yes
9150 else
9151   echo "configure: failed program was:" >&5
9152   cat conftest.$ac_ext >&5
9153   rm -fr conftest*
9154   ac_sectionLDflags=no
9155 fi
9156 rm -fr conftest*
9157 fi
9158
9159     if test "$ac_test_CFLAGS" = set; then
9160       CFLAGS="$ac_save_CFLAGS"
9161     else
9162       # this is the suspicious part
9163       CFLAGS=''
9164     fi
9165     if test "$ac_sectionLDflags" = "yes"; then
9166       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9167     fi
9168     echo "$ac_t""$ac_sectionLDflags" 1>&6
9169   fi
9170
9171   # Set linker optimization flags.
9172   if test x"$with_gnu_ld" = x"yes"; then
9173     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9174   fi
9175
9176   
9177   
9178
9179       
9180     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9181 echo "configure:9182: checking for main in -lm" >&5
9182 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9184   echo $ac_n "(cached) $ac_c" 1>&6
9185 else
9186   ac_save_LIBS="$LIBS"
9187 LIBS="-lm  $LIBS"
9188 cat > conftest.$ac_ext <<EOF
9189 #line 9190 "configure"
9190 #include "confdefs.h"
9191
9192 int main() {
9193 main()
9194 ; return 0; }
9195 EOF
9196 if { (eval echo configure:9197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9197   rm -rf conftest*
9198   eval "ac_cv_lib_$ac_lib_var=yes"
9199 else
9200   echo "configure: failed program was:" >&5
9201   cat conftest.$ac_ext >&5
9202   rm -rf conftest*
9203   eval "ac_cv_lib_$ac_lib_var=no"
9204 fi
9205 rm -f conftest*
9206 LIBS="$ac_save_LIBS"
9207
9208 fi
9209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9210   echo "$ac_t""yes" 1>&6
9211     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9212     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9213   cat >> confdefs.h <<EOF
9214 #define $ac_tr_lib 1
9215 EOF
9216
9217   LIBS="-lm $LIBS"
9218
9219 else
9220   echo "$ac_t""no" 1>&6
9221 fi
9222
9223   for ac_func in nan copysignf
9224 do
9225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9226 echo "configure:9227: checking for $ac_func" >&5
9227 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9228   echo $ac_n "(cached) $ac_c" 1>&6
9229 else
9230   cat > conftest.$ac_ext <<EOF
9231 #line 9232 "configure"
9232 #include "confdefs.h"
9233 /* System header to define __stub macros and hopefully few prototypes,
9234     which can conflict with char $ac_func(); below.  */
9235 #include <assert.h>
9236 /* Override any gcc2 internal prototype to avoid an error.  */
9237 /* We use char because int might match the return type of a gcc2
9238     builtin and then its argument prototype would still apply.  */
9239 char $ac_func();
9240
9241 int main() {
9242
9243 /* The GNU C library defines this for functions which it implements
9244     to always fail with ENOSYS.  Some functions are actually named
9245     something starting with __ and the normal name is an alias.  */
9246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9247 choke me
9248 #else
9249 $ac_func();
9250 #endif
9251
9252 ; return 0; }
9253 EOF
9254 if { (eval echo configure:9255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9255   rm -rf conftest*
9256   eval "ac_cv_func_$ac_func=yes"
9257 else
9258   echo "configure: failed program was:" >&5
9259   cat conftest.$ac_ext >&5
9260   rm -rf conftest*
9261   eval "ac_cv_func_$ac_func=no"
9262 fi
9263 rm -f conftest*
9264 fi
9265
9266 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9267   echo "$ac_t""yes" 1>&6
9268     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9269   cat >> confdefs.h <<EOF
9270 #define $ac_tr_func 1
9271 EOF
9272  
9273 else
9274   echo "$ac_t""no" 1>&6
9275 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9276 fi
9277 done
9278
9279
9280     for ac_func in __signbit
9281 do
9282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9283 echo "configure:9284: checking for $ac_func" >&5
9284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9285   echo $ac_n "(cached) $ac_c" 1>&6
9286 else
9287   cat > conftest.$ac_ext <<EOF
9288 #line 9289 "configure"
9289 #include "confdefs.h"
9290 /* System header to define __stub macros and hopefully few prototypes,
9291     which can conflict with char $ac_func(); below.  */
9292 #include <assert.h>
9293 /* Override any gcc2 internal prototype to avoid an error.  */
9294 /* We use char because int might match the return type of a gcc2
9295     builtin and then its argument prototype would still apply.  */
9296 char $ac_func();
9297
9298 int main() {
9299
9300 /* The GNU C library defines this for functions which it implements
9301     to always fail with ENOSYS.  Some functions are actually named
9302     something starting with __ and the normal name is an alias.  */
9303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9304 choke me
9305 #else
9306 $ac_func();
9307 #endif
9308
9309 ; return 0; }
9310 EOF
9311 if { (eval echo configure:9312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9312   rm -rf conftest*
9313   eval "ac_cv_func_$ac_func=yes"
9314 else
9315   echo "configure: failed program was:" >&5
9316   cat conftest.$ac_ext >&5
9317   rm -rf conftest*
9318   eval "ac_cv_func_$ac_func=no"
9319 fi
9320 rm -f conftest*
9321 fi
9322
9323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9324   echo "$ac_t""yes" 1>&6
9325     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9326   cat >> confdefs.h <<EOF
9327 #define $ac_tr_func 1
9328 EOF
9329  
9330 else
9331   echo "$ac_t""no" 1>&6
9332 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9333 fi
9334 done
9335
9336   for ac_func in __signbitf
9337 do
9338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9339 echo "configure:9340: checking for $ac_func" >&5
9340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9341   echo $ac_n "(cached) $ac_c" 1>&6
9342 else
9343   cat > conftest.$ac_ext <<EOF
9344 #line 9345 "configure"
9345 #include "confdefs.h"
9346 /* System header to define __stub macros and hopefully few prototypes,
9347     which can conflict with char $ac_func(); below.  */
9348 #include <assert.h>
9349 /* Override any gcc2 internal prototype to avoid an error.  */
9350 /* We use char because int might match the return type of a gcc2
9351     builtin and then its argument prototype would still apply.  */
9352 char $ac_func();
9353
9354 int main() {
9355
9356 /* The GNU C library defines this for functions which it implements
9357     to always fail with ENOSYS.  Some functions are actually named
9358     something starting with __ and the normal name is an alias.  */
9359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9360 choke me
9361 #else
9362 $ac_func();
9363 #endif
9364
9365 ; return 0; }
9366 EOF
9367 if { (eval echo configure:9368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9368   rm -rf conftest*
9369   eval "ac_cv_func_$ac_func=yes"
9370 else
9371   echo "configure: failed program was:" >&5
9372   cat conftest.$ac_ext >&5
9373   rm -rf conftest*
9374   eval "ac_cv_func_$ac_func=no"
9375 fi
9376 rm -f conftest*
9377 fi
9378
9379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9380   echo "$ac_t""yes" 1>&6
9381     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9382   cat >> confdefs.h <<EOF
9383 #define $ac_tr_func 1
9384 EOF
9385  
9386 else
9387   echo "$ac_t""no" 1>&6
9388 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9389 fi
9390 done
9391
9392
9393           if test x$ac_cv_func_copysignl = x"yes"; then
9394     for ac_func in __signbitl
9395 do
9396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9397 echo "configure:9398: checking for $ac_func" >&5
9398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9399   echo $ac_n "(cached) $ac_c" 1>&6
9400 else
9401   cat > conftest.$ac_ext <<EOF
9402 #line 9403 "configure"
9403 #include "confdefs.h"
9404 /* System header to define __stub macros and hopefully few prototypes,
9405     which can conflict with char $ac_func(); below.  */
9406 #include <assert.h>
9407 /* Override any gcc2 internal prototype to avoid an error.  */
9408 /* We use char because int might match the return type of a gcc2
9409     builtin and then its argument prototype would still apply.  */
9410 char $ac_func();
9411
9412 int main() {
9413
9414 /* The GNU C library defines this for functions which it implements
9415     to always fail with ENOSYS.  Some functions are actually named
9416     something starting with __ and the normal name is an alias.  */
9417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9418 choke me
9419 #else
9420 $ac_func();
9421 #endif
9422
9423 ; return 0; }
9424 EOF
9425 if { (eval echo configure:9426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9426   rm -rf conftest*
9427   eval "ac_cv_func_$ac_func=yes"
9428 else
9429   echo "configure: failed program was:" >&5
9430   cat conftest.$ac_ext >&5
9431   rm -rf conftest*
9432   eval "ac_cv_func_$ac_func=no"
9433 fi
9434 rm -f conftest*
9435 fi
9436
9437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9438   echo "$ac_t""yes" 1>&6
9439     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9440   cat >> confdefs.h <<EOF
9441 #define $ac_tr_func 1
9442 EOF
9443  
9444 else
9445   echo "$ac_t""no" 1>&6
9446 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9447 fi
9448 done
9449
9450   fi
9451
9452   if test -n "$LIBMATHOBJS"; then
9453     need_libmath=yes
9454   fi
9455   
9456   
9457
9458 if test "$need_libmath" = yes; then
9459   GLIBCPP_BUILD_LIBMATH_TRUE=
9460   GLIBCPP_BUILD_LIBMATH_FALSE='#'
9461 else
9462   GLIBCPP_BUILD_LIBMATH_TRUE='#'
9463   GLIBCPP_BUILD_LIBMATH_FALSE=
9464 fi
9465
9466       
9467
9468       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9469 echo "configure:9470: checking for mbstate_t" >&5
9470   cat > conftest.$ac_ext <<EOF
9471 #line 9472 "configure"
9472 #include "confdefs.h"
9473 #include <wchar.h>
9474 int main() {
9475 mbstate_t teststate;
9476 ; return 0; }
9477 EOF
9478 if { (eval echo configure:9479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9479   rm -rf conftest*
9480   have_mbstate_t=yes
9481 else
9482   echo "configure: failed program was:" >&5
9483   cat conftest.$ac_ext >&5
9484   rm -rf conftest*
9485   have_mbstate_t=no
9486 fi
9487 rm -f conftest*
9488   echo "$ac_t""$have_mbstate_t" 1>&6
9489   if test x"$have_mbstate_t" = xyes; then
9490     cat >> confdefs.h <<\EOF
9491 #define HAVE_MBSTATE_T 1
9492 EOF
9493
9494   fi
9495
9496     for ac_hdr in wchar.h
9497 do
9498 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9500 echo "configure:9501: checking for $ac_hdr" >&5
9501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9502   echo $ac_n "(cached) $ac_c" 1>&6
9503 else
9504   cat > conftest.$ac_ext <<EOF
9505 #line 9506 "configure"
9506 #include "confdefs.h"
9507 #include <$ac_hdr>
9508 EOF
9509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9510 { (eval echo configure:9511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9512 if test -z "$ac_err"; then
9513   rm -rf conftest*
9514   eval "ac_cv_header_$ac_safe=yes"
9515 else
9516   echo "$ac_err" >&5
9517   echo "configure: failed program was:" >&5
9518   cat conftest.$ac_ext >&5
9519   rm -rf conftest*
9520   eval "ac_cv_header_$ac_safe=no"
9521 fi
9522 rm -f conftest*
9523 fi
9524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9525   echo "$ac_t""yes" 1>&6
9526     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9527   cat >> confdefs.h <<EOF
9528 #define $ac_tr_hdr 1
9529 EOF
9530  ac_has_wchar_h=yes
9531 else
9532   echo "$ac_t""no" 1>&6
9533 ac_has_wchar_h=no
9534 fi
9535 done
9536
9537   for ac_hdr in wctype.h
9538 do
9539 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9541 echo "configure:9542: checking for $ac_hdr" >&5
9542 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9543   echo $ac_n "(cached) $ac_c" 1>&6
9544 else
9545   cat > conftest.$ac_ext <<EOF
9546 #line 9547 "configure"
9547 #include "confdefs.h"
9548 #include <$ac_hdr>
9549 EOF
9550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9551 { (eval echo configure:9552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9553 if test -z "$ac_err"; then
9554   rm -rf conftest*
9555   eval "ac_cv_header_$ac_safe=yes"
9556 else
9557   echo "$ac_err" >&5
9558   echo "configure: failed program was:" >&5
9559   cat conftest.$ac_ext >&5
9560   rm -rf conftest*
9561   eval "ac_cv_header_$ac_safe=no"
9562 fi
9563 rm -f conftest*
9564 fi
9565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9566   echo "$ac_t""yes" 1>&6
9567     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9568   cat >> confdefs.h <<EOF
9569 #define $ac_tr_hdr 1
9570 EOF
9571  ac_has_wctype_h=yes
9572 else
9573   echo "$ac_t""no" 1>&6
9574 ac_has_wctype_h=no
9575 fi
9576 done
9577
9578
9579     if test x"$ac_has_wchar_h" = xyes &&
9580      test x"$ac_has_wctype_h" = xyes &&
9581      test x"$enable_c_mbchar" != xno; then
9582
9583             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9584 echo "configure:9585: checking for WCHAR_MIN and WCHAR_MAX" >&5
9585     cat > conftest.$ac_ext <<EOF
9586 #line 9587 "configure"
9587 #include "confdefs.h"
9588 #include <wchar.h>
9589 int main() {
9590 int i = WCHAR_MIN; int j = WCHAR_MAX;
9591 ; return 0; }
9592 EOF
9593 if { (eval echo configure:9594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9594   rm -rf conftest*
9595   has_wchar_minmax=yes
9596 else
9597   echo "configure: failed program was:" >&5
9598   cat conftest.$ac_ext >&5
9599   rm -rf conftest*
9600   has_wchar_minmax=no
9601 fi
9602 rm -f conftest*
9603     echo "$ac_t""$has_wchar_minmax" 1>&6
9604
9605             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9606 echo "configure:9607: checking for WEOF" >&5
9607     cat > conftest.$ac_ext <<EOF
9608 #line 9609 "configure"
9609 #include "confdefs.h"
9610
9611       #include <wchar.h>
9612       #include <stddef.h>
9613 int main() {
9614 wint_t i = WEOF;
9615 ; return 0; }
9616 EOF
9617 if { (eval echo configure:9618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9618   rm -rf conftest*
9619   has_weof=yes
9620 else
9621   echo "configure: failed program was:" >&5
9622   cat conftest.$ac_ext >&5
9623   rm -rf conftest*
9624   has_weof=no
9625 fi
9626 rm -f conftest*
9627     echo "$ac_t""$has_weof" 1>&6
9628
9629         ac_wfuncs=yes
9630     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9631 do
9632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9633 echo "configure:9634: checking for $ac_func" >&5
9634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9635   echo $ac_n "(cached) $ac_c" 1>&6
9636 else
9637   cat > conftest.$ac_ext <<EOF
9638 #line 9639 "configure"
9639 #include "confdefs.h"
9640 /* System header to define __stub macros and hopefully few prototypes,
9641     which can conflict with char $ac_func(); below.  */
9642 #include <assert.h>
9643 /* Override any gcc2 internal prototype to avoid an error.  */
9644 /* We use char because int might match the return type of a gcc2
9645     builtin and then its argument prototype would still apply.  */
9646 char $ac_func();
9647
9648 int main() {
9649
9650 /* The GNU C library defines this for functions which it implements
9651     to always fail with ENOSYS.  Some functions are actually named
9652     something starting with __ and the normal name is an alias.  */
9653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9654 choke me
9655 #else
9656 $ac_func();
9657 #endif
9658
9659 ; return 0; }
9660 EOF
9661 if { (eval echo configure:9662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9662   rm -rf conftest*
9663   eval "ac_cv_func_$ac_func=yes"
9664 else
9665   echo "configure: failed program was:" >&5
9666   cat conftest.$ac_ext >&5
9667   rm -rf conftest*
9668   eval "ac_cv_func_$ac_func=no"
9669 fi
9670 rm -f conftest*
9671 fi
9672
9673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9674   echo "$ac_t""yes" 1>&6
9675     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9676   cat >> confdefs.h <<EOF
9677 #define $ac_tr_func 1
9678 EOF
9679  
9680 else
9681   echo "$ac_t""no" 1>&6
9682 \
9683     ac_wfuncs=no
9684 fi
9685 done
9686
9687
9688         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
9689     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9690     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9691     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9692     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9693     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9694 do
9695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9696 echo "configure:9697: checking for $ac_func" >&5
9697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9698   echo $ac_n "(cached) $ac_c" 1>&6
9699 else
9700   cat > conftest.$ac_ext <<EOF
9701 #line 9702 "configure"
9702 #include "confdefs.h"
9703 /* System header to define __stub macros and hopefully few prototypes,
9704     which can conflict with char $ac_func(); below.  */
9705 #include <assert.h>
9706 /* Override any gcc2 internal prototype to avoid an error.  */
9707 /* We use char because int might match the return type of a gcc2
9708     builtin and then its argument prototype would still apply.  */
9709 char $ac_func();
9710
9711 int main() {
9712
9713 /* The GNU C library defines this for functions which it implements
9714     to always fail with ENOSYS.  Some functions are actually named
9715     something starting with __ and the normal name is an alias.  */
9716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9717 choke me
9718 #else
9719 $ac_func();
9720 #endif
9721
9722 ; return 0; }
9723 EOF
9724 if { (eval echo configure:9725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9725   rm -rf conftest*
9726   eval "ac_cv_func_$ac_func=yes"
9727 else
9728   echo "configure: failed program was:" >&5
9729   cat conftest.$ac_ext >&5
9730   rm -rf conftest*
9731   eval "ac_cv_func_$ac_func=no"
9732 fi
9733 rm -f conftest*
9734 fi
9735
9736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9737   echo "$ac_t""yes" 1>&6
9738     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9739   cat >> confdefs.h <<EOF
9740 #define $ac_tr_func 1
9741 EOF
9742  
9743 else
9744   echo "$ac_t""no" 1>&6
9745 \
9746     ac_wfuncs=no
9747 fi
9748 done
9749
9750
9751     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9752 echo "configure:9753: checking for ISO C99 wchar_t support" >&5
9753     if test x"$has_weof" = xyes &&
9754        test x"$has_wchar_minmax" = xyes &&
9755        test x"$ac_wfuncs" = xyes; then
9756       ac_isoC99_wchar_t=yes
9757     else
9758       ac_isoC99_wchar_t=no
9759     fi
9760     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9761
9762             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9763 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9764 echo "configure:9765: checking for iconv.h" >&5
9765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9766   echo $ac_n "(cached) $ac_c" 1>&6
9767 else
9768   cat > conftest.$ac_ext <<EOF
9769 #line 9770 "configure"
9770 #include "confdefs.h"
9771 #include <iconv.h>
9772 EOF
9773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9774 { (eval echo configure:9775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9776 if test -z "$ac_err"; then
9777   rm -rf conftest*
9778   eval "ac_cv_header_$ac_safe=yes"
9779 else
9780   echo "$ac_err" >&5
9781   echo "configure: failed program was:" >&5
9782   cat conftest.$ac_ext >&5
9783   rm -rf conftest*
9784   eval "ac_cv_header_$ac_safe=no"
9785 fi
9786 rm -f conftest*
9787 fi
9788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9789   echo "$ac_t""yes" 1>&6
9790   ac_has_iconv_h=yes
9791 else
9792   echo "$ac_t""no" 1>&6
9793 ac_has_iconv_h=no
9794 fi
9795
9796     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9797 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9798 echo "configure:9799: checking for langinfo.h" >&5
9799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9800   echo $ac_n "(cached) $ac_c" 1>&6
9801 else
9802   cat > conftest.$ac_ext <<EOF
9803 #line 9804 "configure"
9804 #include "confdefs.h"
9805 #include <langinfo.h>
9806 EOF
9807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9808 { (eval echo configure:9809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9810 if test -z "$ac_err"; then
9811   rm -rf conftest*
9812   eval "ac_cv_header_$ac_safe=yes"
9813 else
9814   echo "$ac_err" >&5
9815   echo "configure: failed program was:" >&5
9816   cat conftest.$ac_ext >&5
9817   rm -rf conftest*
9818   eval "ac_cv_header_$ac_safe=no"
9819 fi
9820 rm -f conftest*
9821 fi
9822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9823   echo "$ac_t""yes" 1>&6
9824   ac_has_langinfo_h=yes
9825 else
9826   echo "$ac_t""no" 1>&6
9827 ac_has_langinfo_h=no
9828 fi
9829
9830
9831         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9832 echo "configure:9833: checking for iconv in -liconv" >&5
9833 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9834 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9835   echo $ac_n "(cached) $ac_c" 1>&6
9836 else
9837   ac_save_LIBS="$LIBS"
9838 LIBS="-liconv  $LIBS"
9839 cat > conftest.$ac_ext <<EOF
9840 #line 9841 "configure"
9841 #include "confdefs.h"
9842 /* Override any gcc2 internal prototype to avoid an error.  */
9843 /* We use char because int might match the return type of a gcc2
9844     builtin and then its argument prototype would still apply.  */
9845 char iconv();
9846
9847 int main() {
9848 iconv()
9849 ; return 0; }
9850 EOF
9851 if { (eval echo configure:9852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9852   rm -rf conftest*
9853   eval "ac_cv_lib_$ac_lib_var=yes"
9854 else
9855   echo "configure: failed program was:" >&5
9856   cat conftest.$ac_ext >&5
9857   rm -rf conftest*
9858   eval "ac_cv_lib_$ac_lib_var=no"
9859 fi
9860 rm -f conftest*
9861 LIBS="$ac_save_LIBS"
9862
9863 fi
9864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9865   echo "$ac_t""yes" 1>&6
9866   libiconv="-liconv"
9867 else
9868   echo "$ac_t""no" 1>&6
9869 fi
9870
9871     ac_save_LIBS="$LIBS"
9872     LIBS="$LIBS $libiconv"
9873
9874     for ac_func in iconv_open iconv_close iconv nl_langinfo
9875 do
9876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9877 echo "configure:9878: checking for $ac_func" >&5
9878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9879   echo $ac_n "(cached) $ac_c" 1>&6
9880 else
9881   cat > conftest.$ac_ext <<EOF
9882 #line 9883 "configure"
9883 #include "confdefs.h"
9884 /* System header to define __stub macros and hopefully few prototypes,
9885     which can conflict with char $ac_func(); below.  */
9886 #include <assert.h>
9887 /* Override any gcc2 internal prototype to avoid an error.  */
9888 /* We use char because int might match the return type of a gcc2
9889     builtin and then its argument prototype would still apply.  */
9890 char $ac_func();
9891
9892 int main() {
9893
9894 /* The GNU C library defines this for functions which it implements
9895     to always fail with ENOSYS.  Some functions are actually named
9896     something starting with __ and the normal name is an alias.  */
9897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9898 choke me
9899 #else
9900 $ac_func();
9901 #endif
9902
9903 ; return 0; }
9904 EOF
9905 if { (eval echo configure:9906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9906   rm -rf conftest*
9907   eval "ac_cv_func_$ac_func=yes"
9908 else
9909   echo "configure: failed program was:" >&5
9910   cat conftest.$ac_ext >&5
9911   rm -rf conftest*
9912   eval "ac_cv_func_$ac_func=no"
9913 fi
9914 rm -f conftest*
9915 fi
9916
9917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9918   echo "$ac_t""yes" 1>&6
9919     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9920   cat >> confdefs.h <<EOF
9921 #define $ac_tr_func 1
9922 EOF
9923  \
9924     ac_XPG2funcs=yes
9925 else
9926   echo "$ac_t""no" 1>&6
9927 ac_XPG2funcs=no
9928 fi
9929 done
9930
9931
9932     LIBS="$ac_save_LIBS"
9933
9934     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9935 echo "configure:9936: checking for XPG2 wchar_t support" >&5
9936     if test x"$ac_has_iconv_h" = xyes &&
9937        test x"$ac_has_langinfo_h" = xyes &&
9938        test x"$ac_XPG2funcs" = xyes; then
9939       ac_XPG2_wchar_t=yes
9940     else
9941       ac_XPG2_wchar_t=no
9942     fi
9943     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9944
9945             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9946 echo "configure:9947: checking for enabled wchar_t specializations" >&5
9947     if test x"$ac_isoC99_wchar_t" = xyes &&
9948        test x"$ac_XPG2_wchar_t" = xyes; then
9949       cat >> confdefs.h <<\EOF
9950 #define _GLIBCPP_USE_WCHAR_T 1
9951 EOF
9952
9953       echo "$ac_t"""yes"" 1>&6
9954     else
9955       echo "$ac_t"""no"" 1>&6
9956     fi
9957   else
9958         echo "configure: warning: wchar_t support disabled." 1>&2
9959   fi
9960
9961       os_include_dir="os/qnx/qnx6.1"
9962       cat >> confdefs.h <<\EOF
9963 #define HAVE_COSF 1
9964 EOF
9965
9966       cat >> confdefs.h <<\EOF
9967 #define HAVE_COSL 1
9968 EOF
9969
9970       cat >> confdefs.h <<\EOF
9971 #define HAVE_COSHF 1
9972 EOF
9973
9974       cat >> confdefs.h <<\EOF
9975 #define HAVE_COSHL 1
9976 EOF
9977
9978       cat >> confdefs.h <<\EOF
9979 #define HAVE_LOGF 1
9980 EOF
9981
9982       cat >> confdefs.h <<\EOF
9983 #define HAVE_LOGL 1
9984 EOF
9985
9986       cat >> confdefs.h <<\EOF
9987 #define HAVE_LOG10F 1
9988 EOF
9989
9990       cat >> confdefs.h <<\EOF
9991 #define HAVE_LOG10L 1
9992 EOF
9993
9994       cat >> confdefs.h <<\EOF
9995 #define HAVE_SINF 1
9996 EOF
9997
9998       cat >> confdefs.h <<\EOF
9999 #define HAVE_SINL 1
10000 EOF
10001
10002       cat >> confdefs.h <<\EOF
10003 #define HAVE_SINHF 1
10004 EOF
10005
10006       cat >> confdefs.h <<\EOF
10007 #define HAVE_SINHL 1
10008 EOF
10009
10010       ;;
10011     *)
10012       os_include_dir="os/newlib"
10013       cat >> confdefs.h <<\EOF
10014 #define HAVE_HYPOT 1
10015 EOF
10016
10017       ;;
10018   esac
10019
10020   case "$target" in
10021     *-mingw32*)
10022       ;;
10023     *-windiss*)
10024       cat >> confdefs.h <<\EOF
10025 #define HAVE_ACOSF 1
10026 EOF
10027
10028       cat >> confdefs.h <<\EOF
10029 #define HAVE_ASINF 1
10030 EOF
10031
10032       cat >> confdefs.h <<\EOF
10033 #define HAVE_ATAN2F 1
10034 EOF
10035
10036       cat >> confdefs.h <<\EOF
10037 #define HAVE_ATANF 1
10038 EOF
10039
10040       cat >> confdefs.h <<\EOF
10041 #define HAVE_CEILF 1
10042 EOF
10043
10044       cat >> confdefs.h <<\EOF
10045 #define HAVE_COPYSIGN 1
10046 EOF
10047
10048       cat >> confdefs.h <<\EOF
10049 #define HAVE_COPYSIGNF 1
10050 EOF
10051
10052       cat >> confdefs.h <<\EOF
10053 #define HAVE_COSF 1
10054 EOF
10055
10056       cat >> confdefs.h <<\EOF
10057 #define HAVE_COSHF 1
10058 EOF
10059
10060       cat >> confdefs.h <<\EOF
10061 #define HAVE_EXPF 1
10062 EOF
10063
10064       cat >> confdefs.h <<\EOF
10065 #define HAVE_FABSF 1
10066 EOF
10067
10068       cat >> confdefs.h <<\EOF
10069 #define HAVE_FLOORF 1
10070 EOF
10071
10072       cat >> confdefs.h <<\EOF
10073 #define HAVE_FMODF 1
10074 EOF
10075
10076       cat >> confdefs.h <<\EOF
10077 #define HAVE_FREXPF 1
10078 EOF
10079
10080       cat >> confdefs.h <<\EOF
10081 #define HAVE_LDEXPF 1
10082 EOF
10083
10084       cat >> confdefs.h <<\EOF
10085 #define HAVE_LOG10F 1
10086 EOF
10087
10088       cat >> confdefs.h <<\EOF
10089 #define HAVE_LOGF 1
10090 EOF
10091
10092       cat >> confdefs.h <<\EOF
10093 #define HAVE_MODFF 1
10094 EOF
10095
10096       cat >> confdefs.h <<\EOF
10097 #define HAVE_POWF 1
10098 EOF
10099
10100       cat >> confdefs.h <<\EOF
10101 #define HAVE_SINF 1
10102 EOF
10103
10104       cat >> confdefs.h <<\EOF
10105 #define HAVE_SINHF 1
10106 EOF
10107
10108       cat >> confdefs.h <<\EOF
10109 #define HAVE_SQRTF 1
10110 EOF
10111
10112       cat >> confdefs.h <<\EOF
10113 #define HAVE_TANF 1
10114 EOF
10115
10116       cat >> confdefs.h <<\EOF
10117 #define HAVE_TANHF 1
10118 EOF
10119
10120       ;;
10121     *-freebsd*)
10122       # Must replicate generic section since we don't have strtof or strtold.
10123       cat >> confdefs.h <<\EOF
10124 #define HAVE_MMAP 1
10125 EOF
10126
10127       cat >> confdefs.h <<\EOF
10128 #define HAVE_ACOSF 1
10129 EOF
10130
10131       cat >> confdefs.h <<\EOF
10132 #define HAVE_ASINF 1
10133 EOF
10134
10135       cat >> confdefs.h <<\EOF
10136 #define HAVE_ATAN2F 1
10137 EOF
10138
10139       cat >> confdefs.h <<\EOF
10140 #define HAVE_ATANF 1
10141 EOF
10142
10143       cat >> confdefs.h <<\EOF
10144 #define HAVE_CEILF 1
10145 EOF
10146
10147       cat >> confdefs.h <<\EOF
10148 #define HAVE_COPYSIGN 1
10149 EOF
10150
10151       cat >> confdefs.h <<\EOF
10152 #define HAVE_COPYSIGNF 1
10153 EOF
10154
10155       cat >> confdefs.h <<\EOF
10156 #define HAVE_COSF 1
10157 EOF
10158
10159       cat >> confdefs.h <<\EOF
10160 #define HAVE_COSHF 1
10161 EOF
10162
10163       cat >> confdefs.h <<\EOF
10164 #define HAVE_EXPF 1
10165 EOF
10166
10167       cat >> confdefs.h <<\EOF
10168 #define HAVE_FABSF 1
10169 EOF
10170
10171       cat >> confdefs.h <<\EOF
10172 #define HAVE_FLOORF 1
10173 EOF
10174
10175       cat >> confdefs.h <<\EOF
10176 #define HAVE_FMODF 1
10177 EOF
10178
10179       cat >> confdefs.h <<\EOF
10180 #define HAVE_FREXPF 1
10181 EOF
10182
10183       cat >> confdefs.h <<\EOF
10184 #define HAVE_LDEXPF 1
10185 EOF
10186
10187       cat >> confdefs.h <<\EOF
10188 #define HAVE_LOG10F 1
10189 EOF
10190
10191       cat >> confdefs.h <<\EOF
10192 #define HAVE_LOGF 1
10193 EOF
10194
10195       cat >> confdefs.h <<\EOF
10196 #define HAVE_MODFF 1
10197 EOF
10198
10199       cat >> confdefs.h <<\EOF
10200 #define HAVE_POWF 1
10201 EOF
10202
10203       cat >> confdefs.h <<\EOF
10204 #define HAVE_SINF 1
10205 EOF
10206
10207       cat >> confdefs.h <<\EOF
10208 #define HAVE_SINHF 1
10209 EOF
10210
10211       cat >> confdefs.h <<\EOF
10212 #define HAVE_SQRTF 1
10213 EOF
10214
10215       cat >> confdefs.h <<\EOF
10216 #define HAVE_TANF 1
10217 EOF
10218
10219       cat >> confdefs.h <<\EOF
10220 #define HAVE_TANHF 1
10221 EOF
10222
10223       ;;
10224     *)
10225       # GLIBCPP_CHECK_STDLIB_SUPPORT
10226       cat >> confdefs.h <<\EOF
10227 #define HAVE_STRTOF 1
10228 EOF
10229         
10230       cat >> confdefs.h <<\EOF
10231 #define HAVE_STRTOLD 1
10232 EOF
10233         
10234       # AC_FUNC_MMAP
10235       cat >> confdefs.h <<\EOF
10236 #define HAVE_MMAP 1
10237 EOF
10238
10239
10240       cat >> confdefs.h <<\EOF
10241 #define HAVE_ACOSF 1
10242 EOF
10243
10244       cat >> confdefs.h <<\EOF
10245 #define HAVE_ASINF 1
10246 EOF
10247
10248       cat >> confdefs.h <<\EOF
10249 #define HAVE_ATAN2F 1
10250 EOF
10251
10252       cat >> confdefs.h <<\EOF
10253 #define HAVE_ATANF 1
10254 EOF
10255
10256       cat >> confdefs.h <<\EOF
10257 #define HAVE_CEILF 1
10258 EOF
10259
10260       cat >> confdefs.h <<\EOF
10261 #define HAVE_COPYSIGN 1
10262 EOF
10263
10264       cat >> confdefs.h <<\EOF
10265 #define HAVE_COPYSIGNF 1
10266 EOF
10267
10268       cat >> confdefs.h <<\EOF
10269 #define HAVE_COSF 1
10270 EOF
10271
10272       cat >> confdefs.h <<\EOF
10273 #define HAVE_COSHF 1
10274 EOF
10275
10276       cat >> confdefs.h <<\EOF
10277 #define HAVE_EXPF 1
10278 EOF
10279
10280       cat >> confdefs.h <<\EOF
10281 #define HAVE_FABSF 1
10282 EOF
10283
10284       cat >> confdefs.h <<\EOF
10285 #define HAVE_FLOORF 1
10286 EOF
10287
10288       cat >> confdefs.h <<\EOF
10289 #define HAVE_FMODF 1
10290 EOF
10291
10292       cat >> confdefs.h <<\EOF
10293 #define HAVE_FREXPF 1
10294 EOF
10295
10296       cat >> confdefs.h <<\EOF
10297 #define HAVE_LDEXPF 1
10298 EOF
10299
10300       cat >> confdefs.h <<\EOF
10301 #define HAVE_LOG10F 1
10302 EOF
10303
10304       cat >> confdefs.h <<\EOF
10305 #define HAVE_LOGF 1
10306 EOF
10307
10308       cat >> confdefs.h <<\EOF
10309 #define HAVE_MODFF 1
10310 EOF
10311
10312       cat >> confdefs.h <<\EOF
10313 #define HAVE_POWF 1
10314 EOF
10315
10316       cat >> confdefs.h <<\EOF
10317 #define HAVE_SINF 1
10318 EOF
10319
10320       cat >> confdefs.h <<\EOF
10321 #define HAVE_SINHF 1
10322 EOF
10323
10324       cat >> confdefs.h <<\EOF
10325 #define HAVE_SQRTF 1
10326 EOF
10327
10328       cat >> confdefs.h <<\EOF
10329 #define HAVE_TANF 1
10330 EOF
10331
10332       cat >> confdefs.h <<\EOF
10333 #define HAVE_TANHF 1
10334 EOF
10335
10336       ;;
10337   esac
10338
10339   # At some point, we should differentiate between architectures
10340   # like x86, which have long double versions, and alpha/powerpc/etc.,
10341   # which don't. For the time being, punt.
10342   if test x"long_double_math_on_this_cpu" = x"yes"; then
10343     cat >> confdefs.h <<\EOF
10344 #define HAVE_ACOSL 1
10345 EOF
10346
10347     cat >> confdefs.h <<\EOF
10348 #define HAVE_ASINL 1
10349 EOF
10350
10351     cat >> confdefs.h <<\EOF
10352 #define HAVE_ATAN2L 1
10353 EOF
10354
10355     cat >> confdefs.h <<\EOF
10356 #define HAVE_ATANL 1
10357 EOF
10358
10359     cat >> confdefs.h <<\EOF
10360 #define HAVE_CEILL 1
10361 EOF
10362
10363     cat >> confdefs.h <<\EOF
10364 #define HAVE_COPYSIGNL 1
10365 EOF
10366
10367     cat >> confdefs.h <<\EOF
10368 #define HAVE_COSL 1
10369 EOF
10370
10371     cat >> confdefs.h <<\EOF
10372 #define HAVE_COSHL 1
10373 EOF
10374
10375     cat >> confdefs.h <<\EOF
10376 #define HAVE_EXPL 1
10377 EOF
10378
10379     cat >> confdefs.h <<\EOF
10380 #define HAVE_FABSL 1
10381 EOF
10382
10383     cat >> confdefs.h <<\EOF
10384 #define HAVE_FLOORL 1
10385 EOF
10386
10387     cat >> confdefs.h <<\EOF
10388 #define HAVE_FMODL 1
10389 EOF
10390
10391     cat >> confdefs.h <<\EOF
10392 #define HAVE_FREXPL 1
10393 EOF
10394
10395     cat >> confdefs.h <<\EOF
10396 #define HAVE_LDEXPL 1
10397 EOF
10398
10399     cat >> confdefs.h <<\EOF
10400 #define HAVE_LOG10L 1
10401 EOF
10402
10403     cat >> confdefs.h <<\EOF
10404 #define HAVE_LOGL 1
10405 EOF
10406
10407     cat >> confdefs.h <<\EOF
10408 #define HAVE_MODFL 1
10409 EOF
10410
10411     cat >> confdefs.h <<\EOF
10412 #define HAVE_POWL 1
10413 EOF
10414
10415     cat >> confdefs.h <<\EOF
10416 #define HAVE_SINCOSL 1
10417 EOF
10418
10419     cat >> confdefs.h <<\EOF
10420 #define HAVE_SINL 1
10421 EOF
10422
10423     cat >> confdefs.h <<\EOF
10424 #define HAVE_SINHL 1
10425 EOF
10426
10427     cat >> confdefs.h <<\EOF
10428 #define HAVE_SQRTL 1
10429 EOF
10430
10431     cat >> confdefs.h <<\EOF
10432 #define HAVE_TANL 1
10433 EOF
10434
10435     cat >> confdefs.h <<\EOF
10436 #define HAVE_TANHL 1
10437 EOF
10438
10439   fi
10440
10441 else
10442
10443   # We are being configured natively. We can do more elaborate tests
10444   # that include AC_TRY_COMPILE now, as the linker is assumed to be
10445   # working.
10446   GLIBCPP_IS_CROSS_COMPILING=0
10447   CANADIAN=no
10448
10449   # Check for available headers.
10450   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10451   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h sys/types.h
10452 do
10453 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10454 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10455 echo "configure:10456: checking for $ac_hdr" >&5
10456 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10457   echo $ac_n "(cached) $ac_c" 1>&6
10458 else
10459   cat > conftest.$ac_ext <<EOF
10460 #line 10461 "configure"
10461 #include "confdefs.h"
10462 #include <$ac_hdr>
10463 EOF
10464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10465 { (eval echo configure:10466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10467 if test -z "$ac_err"; then
10468   rm -rf conftest*
10469   eval "ac_cv_header_$ac_safe=yes"
10470 else
10471   echo "$ac_err" >&5
10472   echo "configure: failed program was:" >&5
10473   cat conftest.$ac_ext >&5
10474   rm -rf conftest*
10475   eval "ac_cv_header_$ac_safe=no"
10476 fi
10477 rm -f conftest*
10478 fi
10479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10480   echo "$ac_t""yes" 1>&6
10481     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10482   cat >> confdefs.h <<EOF
10483 #define $ac_tr_hdr 1
10484 EOF
10485  
10486 else
10487   echo "$ac_t""no" 1>&6
10488 fi
10489 done
10490
10491
10492   
10493   # All these tests are for C++; save the language and the compiler flags.
10494   # The CXXFLAGS thing is suspicious, but based on similar bits previously
10495   # found in GLIBCPP_CONFIGURE.
10496   
10497   ac_ext=C
10498 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10499 ac_cpp='$CXXCPP $CPPFLAGS'
10500 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10501 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10502 cross_compiling=$ac_cv_prog_cxx_cross
10503
10504   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10505   ac_save_CXXFLAGS="$CXXFLAGS"
10506
10507   # Check for maintainer-mode bits.
10508   if test x"$USE_MAINTAINER_MODE" = xno; then
10509     WERROR=''
10510   else
10511     WERROR='-Werror'
10512   fi
10513
10514   # Check for -ffunction-sections -fdata-sections
10515   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10516 echo "configure:10517: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10517   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10518   cat > conftest.$ac_ext <<EOF
10519 #line 10520 "configure"
10520 #include "confdefs.h"
10521
10522 int main() {
10523 int foo;
10524   
10525 ; return 0; }
10526 EOF
10527 if { (eval echo configure:10528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10528   rm -rf conftest*
10529   ac_fdsections=yes
10530 else
10531   echo "configure: failed program was:" >&5
10532   cat conftest.$ac_ext >&5
10533   rm -rf conftest*
10534   ac_fdsections=no
10535 fi
10536 rm -f conftest*
10537   if test "$ac_test_CXXFLAGS" = set; then
10538     CXXFLAGS="$ac_save_CXXFLAGS"
10539   else
10540     # this is the suspicious part
10541     CXXFLAGS=''
10542   fi
10543   if test x"$ac_fdsections" = x"yes"; then
10544     SECTION_FLAGS='-ffunction-sections -fdata-sections'
10545   fi
10546   echo "$ac_t""$ac_fdsections" 1>&6
10547
10548   ac_ext=c
10549 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10550 ac_cpp='$CPP $CPPFLAGS'
10551 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10552 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10553 cross_compiling=$ac_cv_prog_cc_cross
10554
10555   
10556   
10557
10558   
10559   # If we're not using GNU ld, then there's no point in even trying these
10560   # tests.  Check for that first.  We should have already tested for gld
10561   # by now (in libtool), but require it now just to be safe...
10562   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10563   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10564   
10565
10566   # The name set by libtool depends on the version of libtool.  Shame on us
10567   # for depending on an impl detail, but c'est la vie.  Older versions used
10568   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10569   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10570   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
10571   # set (hence we're using an older libtool), then set it.
10572   if test x${with_gnu_ld+set} != xset; then
10573     if test x${ac_cv_prog_gnu_ld+set} != xset; then
10574       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
10575       with_gnu_ld=no
10576     else
10577       with_gnu_ld=$ac_cv_prog_gnu_ld
10578     fi
10579   fi
10580
10581   # Start by getting the version number.  I think the libtool test already
10582   # does some of this, but throws away the result.
10583   
10584   ldver=`$LD --version 2>/dev/null | head -1 | \
10585          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10586   
10587   glibcpp_gnu_ld_version=`echo $ldver | \
10588          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10589
10590   # Set --gc-sections.
10591   if test "$with_gnu_ld" = "notbroken"; then
10592     # GNU ld it is!  Joy and bunny rabbits!
10593
10594     # All these tests are for C++; save the language and the compiler flags.
10595     # Need to do this so that g++ won't try to link in libstdc++
10596     ac_test_CFLAGS="${CFLAGS+set}"
10597     ac_save_CFLAGS="$CFLAGS"
10598     CFLAGS='-x c++  -Wl,--gc-sections'
10599
10600     # Check for -Wl,--gc-sections
10601     # XXX This test is broken at the moment, as symbols required for
10602     # linking are now in libsupc++ (not built yet.....). In addition,
10603     # this test has cored on solaris in the past. In addition,
10604     # --gc-sections doesn't really work at the moment (keeps on discarding
10605     # used sections, first .eh_frame and now some of the glibc sections for
10606     # iconv). Bzzzzt. Thanks for playing, maybe next time.
10607     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10608 echo "configure:10609: checking for ld that supports -Wl,--gc-sections" >&5
10609     if test "$cross_compiling" = yes; then
10610   ac_sectionLDflags=yes
10611 else
10612   cat > conftest.$ac_ext <<EOF
10613 #line 10614 "configure"
10614 #include "confdefs.h"
10615
10616      int main(void)
10617      {
10618        try { throw 1; }
10619        catch (...) { };
10620        return 0;
10621      }
10622     
10623 EOF
10624 if { (eval echo configure:10625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10625 then
10626   ac_sectionLDflags=yes
10627 else
10628   echo "configure: failed program was:" >&5
10629   cat conftest.$ac_ext >&5
10630   rm -fr conftest*
10631   ac_sectionLDflags=no
10632 fi
10633 rm -fr conftest*
10634 fi
10635
10636     if test "$ac_test_CFLAGS" = set; then
10637       CFLAGS="$ac_save_CFLAGS"
10638     else
10639       # this is the suspicious part
10640       CFLAGS=''
10641     fi
10642     if test "$ac_sectionLDflags" = "yes"; then
10643       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10644     fi
10645     echo "$ac_t""$ac_sectionLDflags" 1>&6
10646   fi
10647
10648   # Set linker optimization flags.
10649   if test x"$with_gnu_ld" = x"yes"; then
10650     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10651   fi
10652
10653   
10654   
10655
10656   
10657       
10658   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
10659 echo "configure:10660: checking for __builtin_abs declaration" >&5
10660   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
10661     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
10662   echo $ac_n "(cached) $ac_c" 1>&6
10663 else
10664   
10665       
10666       ac_ext=C
10667 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10668 ac_cpp='$CXXCPP $CPPFLAGS'
10669 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10670 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10671 cross_compiling=$ac_cv_prog_cxx_cross
10672
10673       cat > conftest.$ac_ext <<EOF
10674 #line 10675 "configure"
10675 #include "confdefs.h"
10676 #include <math.h>
10677 int main() {
10678  __builtin_abs(0);
10679 ; return 0; }
10680 EOF
10681 if { (eval echo configure:10682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10682   rm -rf conftest*
10683   glibcpp_cv_func___builtin_abs_use=yes
10684 else
10685   echo "configure: failed program was:" >&5
10686   cat conftest.$ac_ext >&5
10687   rm -rf conftest*
10688   glibcpp_cv_func___builtin_abs_use=no
10689 fi
10690 rm -f conftest*
10691       ac_ext=c
10692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10693 ac_cpp='$CPP $CPPFLAGS'
10694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10696 cross_compiling=$ac_cv_prog_cc_cross
10697
10698     
10699 fi
10700
10701   fi
10702   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
10703   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
10704     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
10705 echo "configure:10706: checking for __builtin_abs linkage" >&5
10706     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
10707       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
10708   echo $ac_n "(cached) $ac_c" 1>&6
10709 else
10710   
10711         cat > conftest.$ac_ext <<EOF
10712 #line 10713 "configure"
10713 #include "confdefs.h"
10714 #include <math.h>
10715 int main() {
10716  __builtin_abs(0);
10717 ; return 0; }
10718 EOF
10719 if { (eval echo configure:10720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10720   rm -rf conftest*
10721   glibcpp_cv_func___builtin_abs_link=yes
10722 else
10723   echo "configure: failed program was:" >&5
10724   cat conftest.$ac_ext >&5
10725   rm -rf conftest*
10726   glibcpp_cv_func___builtin_abs_link=no
10727 fi
10728 rm -f conftest*
10729       
10730 fi
10731
10732     fi
10733     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
10734     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
10735       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10736       cat >> confdefs.h <<EOF
10737 #define ${ac_tr_func} 1
10738 EOF
10739
10740     fi
10741   fi
10742
10743   
10744   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
10745 echo "configure:10746: checking for __builtin_fabsf declaration" >&5
10746   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
10747     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
10748   echo $ac_n "(cached) $ac_c" 1>&6
10749 else
10750   
10751       
10752       ac_ext=C
10753 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10754 ac_cpp='$CXXCPP $CPPFLAGS'
10755 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10756 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10757 cross_compiling=$ac_cv_prog_cxx_cross
10758
10759       cat > conftest.$ac_ext <<EOF
10760 #line 10761 "configure"
10761 #include "confdefs.h"
10762 #include <math.h>
10763 int main() {
10764  __builtin_fabsf(0);
10765 ; return 0; }
10766 EOF
10767 if { (eval echo configure:10768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10768   rm -rf conftest*
10769   glibcpp_cv_func___builtin_fabsf_use=yes
10770 else
10771   echo "configure: failed program was:" >&5
10772   cat conftest.$ac_ext >&5
10773   rm -rf conftest*
10774   glibcpp_cv_func___builtin_fabsf_use=no
10775 fi
10776 rm -f conftest*
10777       ac_ext=c
10778 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10779 ac_cpp='$CPP $CPPFLAGS'
10780 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10781 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10782 cross_compiling=$ac_cv_prog_cc_cross
10783
10784     
10785 fi
10786
10787   fi
10788   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
10789   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
10790     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
10791 echo "configure:10792: checking for __builtin_fabsf linkage" >&5
10792     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
10793       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
10794   echo $ac_n "(cached) $ac_c" 1>&6
10795 else
10796   
10797         cat > conftest.$ac_ext <<EOF
10798 #line 10799 "configure"
10799 #include "confdefs.h"
10800 #include <math.h>
10801 int main() {
10802  __builtin_fabsf(0);
10803 ; return 0; }
10804 EOF
10805 if { (eval echo configure:10806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10806   rm -rf conftest*
10807   glibcpp_cv_func___builtin_fabsf_link=yes
10808 else
10809   echo "configure: failed program was:" >&5
10810   cat conftest.$ac_ext >&5
10811   rm -rf conftest*
10812   glibcpp_cv_func___builtin_fabsf_link=no
10813 fi
10814 rm -f conftest*
10815       
10816 fi
10817
10818     fi
10819     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
10820     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
10821       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10822       cat >> confdefs.h <<EOF
10823 #define ${ac_tr_func} 1
10824 EOF
10825
10826     fi
10827   fi
10828
10829   
10830   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
10831 echo "configure:10832: checking for __builtin_fabs declaration" >&5
10832   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
10833     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_use'+set}'`\" = set"; then
10834   echo $ac_n "(cached) $ac_c" 1>&6
10835 else
10836   
10837       
10838       ac_ext=C
10839 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10840 ac_cpp='$CXXCPP $CPPFLAGS'
10841 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10842 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10843 cross_compiling=$ac_cv_prog_cxx_cross
10844
10845       cat > conftest.$ac_ext <<EOF
10846 #line 10847 "configure"
10847 #include "confdefs.h"
10848 #include <math.h>
10849 int main() {
10850  __builtin_fabs(0);
10851 ; return 0; }
10852 EOF
10853 if { (eval echo configure:10854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10854   rm -rf conftest*
10855   glibcpp_cv_func___builtin_fabs_use=yes
10856 else
10857   echo "configure: failed program was:" >&5
10858   cat conftest.$ac_ext >&5
10859   rm -rf conftest*
10860   glibcpp_cv_func___builtin_fabs_use=no
10861 fi
10862 rm -f conftest*
10863       ac_ext=c
10864 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10865 ac_cpp='$CPP $CPPFLAGS'
10866 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10867 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10868 cross_compiling=$ac_cv_prog_cc_cross
10869
10870     
10871 fi
10872
10873   fi
10874   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
10875   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
10876     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
10877 echo "configure:10878: checking for __builtin_fabs linkage" >&5
10878     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
10879       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
10880   echo $ac_n "(cached) $ac_c" 1>&6
10881 else
10882   
10883         cat > conftest.$ac_ext <<EOF
10884 #line 10885 "configure"
10885 #include "confdefs.h"
10886 #include <math.h>
10887 int main() {
10888  __builtin_fabs(0);
10889 ; return 0; }
10890 EOF
10891 if { (eval echo configure:10892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10892   rm -rf conftest*
10893   glibcpp_cv_func___builtin_fabs_link=yes
10894 else
10895   echo "configure: failed program was:" >&5
10896   cat conftest.$ac_ext >&5
10897   rm -rf conftest*
10898   glibcpp_cv_func___builtin_fabs_link=no
10899 fi
10900 rm -f conftest*
10901       
10902 fi
10903
10904     fi
10905     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
10906     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
10907       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10908       cat >> confdefs.h <<EOF
10909 #define ${ac_tr_func} 1
10910 EOF
10911
10912     fi
10913   fi
10914
10915   
10916   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
10917 echo "configure:10918: checking for __builtin_fabsl declaration" >&5
10918   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
10919     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
10920   echo $ac_n "(cached) $ac_c" 1>&6
10921 else
10922   
10923       
10924       ac_ext=C
10925 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10926 ac_cpp='$CXXCPP $CPPFLAGS'
10927 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10928 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10929 cross_compiling=$ac_cv_prog_cxx_cross
10930
10931       cat > conftest.$ac_ext <<EOF
10932 #line 10933 "configure"
10933 #include "confdefs.h"
10934 #include <math.h>
10935 int main() {
10936  __builtin_fabsl(0);
10937 ; return 0; }
10938 EOF
10939 if { (eval echo configure:10940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10940   rm -rf conftest*
10941   glibcpp_cv_func___builtin_fabsl_use=yes
10942 else
10943   echo "configure: failed program was:" >&5
10944   cat conftest.$ac_ext >&5
10945   rm -rf conftest*
10946   glibcpp_cv_func___builtin_fabsl_use=no
10947 fi
10948 rm -f conftest*
10949       ac_ext=c
10950 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10951 ac_cpp='$CPP $CPPFLAGS'
10952 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10953 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10954 cross_compiling=$ac_cv_prog_cc_cross
10955
10956     
10957 fi
10958
10959   fi
10960   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
10961   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
10962     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
10963 echo "configure:10964: checking for __builtin_fabsl linkage" >&5
10964     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
10965       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
10966   echo $ac_n "(cached) $ac_c" 1>&6
10967 else
10968   
10969         cat > conftest.$ac_ext <<EOF
10970 #line 10971 "configure"
10971 #include "confdefs.h"
10972 #include <math.h>
10973 int main() {
10974  __builtin_fabsl(0);
10975 ; return 0; }
10976 EOF
10977 if { (eval echo configure:10978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10978   rm -rf conftest*
10979   glibcpp_cv_func___builtin_fabsl_link=yes
10980 else
10981   echo "configure: failed program was:" >&5
10982   cat conftest.$ac_ext >&5
10983   rm -rf conftest*
10984   glibcpp_cv_func___builtin_fabsl_link=no
10985 fi
10986 rm -f conftest*
10987       
10988 fi
10989
10990     fi
10991     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
10992     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
10993       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10994       cat >> confdefs.h <<EOF
10995 #define ${ac_tr_func} 1
10996 EOF
10997
10998     fi
10999   fi
11000
11001   
11002   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
11003 echo "configure:11004: checking for __builtin_labs declaration" >&5
11004   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
11005     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
11006   echo $ac_n "(cached) $ac_c" 1>&6
11007 else
11008   
11009       
11010       ac_ext=C
11011 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11012 ac_cpp='$CXXCPP $CPPFLAGS'
11013 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11014 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11015 cross_compiling=$ac_cv_prog_cxx_cross
11016
11017       cat > conftest.$ac_ext <<EOF
11018 #line 11019 "configure"
11019 #include "confdefs.h"
11020 #include <math.h>
11021 int main() {
11022  __builtin_labs(0);
11023 ; return 0; }
11024 EOF
11025 if { (eval echo configure:11026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11026   rm -rf conftest*
11027   glibcpp_cv_func___builtin_labs_use=yes
11028 else
11029   echo "configure: failed program was:" >&5
11030   cat conftest.$ac_ext >&5
11031   rm -rf conftest*
11032   glibcpp_cv_func___builtin_labs_use=no
11033 fi
11034 rm -f conftest*
11035       ac_ext=c
11036 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11037 ac_cpp='$CPP $CPPFLAGS'
11038 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11039 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11040 cross_compiling=$ac_cv_prog_cc_cross
11041
11042     
11043 fi
11044
11045   fi
11046   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
11047   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
11048     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
11049 echo "configure:11050: checking for __builtin_labs linkage" >&5
11050     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
11051       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
11052   echo $ac_n "(cached) $ac_c" 1>&6
11053 else
11054   
11055         cat > conftest.$ac_ext <<EOF
11056 #line 11057 "configure"
11057 #include "confdefs.h"
11058 #include <math.h>
11059 int main() {
11060  __builtin_labs(0);
11061 ; return 0; }
11062 EOF
11063 if { (eval echo configure:11064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11064   rm -rf conftest*
11065   glibcpp_cv_func___builtin_labs_link=yes
11066 else
11067   echo "configure: failed program was:" >&5
11068   cat conftest.$ac_ext >&5
11069   rm -rf conftest*
11070   glibcpp_cv_func___builtin_labs_link=no
11071 fi
11072 rm -f conftest*
11073       
11074 fi
11075
11076     fi
11077     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
11078     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
11079       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11080       cat >> confdefs.h <<EOF
11081 #define ${ac_tr_func} 1
11082 EOF
11083
11084     fi
11085   fi
11086
11087
11088   
11089   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
11090 echo "configure:11091: checking for __builtin_sqrtf declaration" >&5
11091   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
11092     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
11093   echo $ac_n "(cached) $ac_c" 1>&6
11094 else
11095   
11096       
11097       ac_ext=C
11098 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11099 ac_cpp='$CXXCPP $CPPFLAGS'
11100 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11101 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11102 cross_compiling=$ac_cv_prog_cxx_cross
11103
11104       cat > conftest.$ac_ext <<EOF
11105 #line 11106 "configure"
11106 #include "confdefs.h"
11107 #include <math.h>
11108 int main() {
11109  __builtin_sqrtf(0);
11110 ; return 0; }
11111 EOF
11112 if { (eval echo configure:11113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11113   rm -rf conftest*
11114   glibcpp_cv_func___builtin_sqrtf_use=yes
11115 else
11116   echo "configure: failed program was:" >&5
11117   cat conftest.$ac_ext >&5
11118   rm -rf conftest*
11119   glibcpp_cv_func___builtin_sqrtf_use=no
11120 fi
11121 rm -f conftest*
11122       ac_ext=c
11123 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11124 ac_cpp='$CPP $CPPFLAGS'
11125 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11126 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11127 cross_compiling=$ac_cv_prog_cc_cross
11128
11129     
11130 fi
11131
11132   fi
11133   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
11134   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
11135     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
11136 echo "configure:11137: checking for __builtin_sqrtf linkage" >&5
11137     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
11138       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
11139   echo $ac_n "(cached) $ac_c" 1>&6
11140 else
11141   
11142         cat > conftest.$ac_ext <<EOF
11143 #line 11144 "configure"
11144 #include "confdefs.h"
11145 #include <math.h>
11146 int main() {
11147  __builtin_sqrtf(0);
11148 ; return 0; }
11149 EOF
11150 if { (eval echo configure:11151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11151   rm -rf conftest*
11152   glibcpp_cv_func___builtin_sqrtf_link=yes
11153 else
11154   echo "configure: failed program was:" >&5
11155   cat conftest.$ac_ext >&5
11156   rm -rf conftest*
11157   glibcpp_cv_func___builtin_sqrtf_link=no
11158 fi
11159 rm -f conftest*
11160       
11161 fi
11162
11163     fi
11164     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
11165     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
11166       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11167       cat >> confdefs.h <<EOF
11168 #define ${ac_tr_func} 1
11169 EOF
11170
11171     fi
11172   fi
11173
11174   
11175   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
11176 echo "configure:11177: checking for __builtin_sqrt declaration" >&5
11177   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
11178     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
11179   echo $ac_n "(cached) $ac_c" 1>&6
11180 else
11181   
11182       
11183       ac_ext=C
11184 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11185 ac_cpp='$CXXCPP $CPPFLAGS'
11186 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11187 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11188 cross_compiling=$ac_cv_prog_cxx_cross
11189
11190       cat > conftest.$ac_ext <<EOF
11191 #line 11192 "configure"
11192 #include "confdefs.h"
11193 #include <math.h>
11194 int main() {
11195  __builtin_sqrt(0);
11196 ; return 0; }
11197 EOF
11198 if { (eval echo configure:11199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11199   rm -rf conftest*
11200   glibcpp_cv_func___builtin_sqrt_use=yes
11201 else
11202   echo "configure: failed program was:" >&5
11203   cat conftest.$ac_ext >&5
11204   rm -rf conftest*
11205   glibcpp_cv_func___builtin_sqrt_use=no
11206 fi
11207 rm -f conftest*
11208       ac_ext=c
11209 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11210 ac_cpp='$CPP $CPPFLAGS'
11211 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11212 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11213 cross_compiling=$ac_cv_prog_cc_cross
11214
11215     
11216 fi
11217
11218   fi
11219   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
11220   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
11221     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
11222 echo "configure:11223: checking for __builtin_sqrt linkage" >&5
11223     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
11224       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
11225   echo $ac_n "(cached) $ac_c" 1>&6
11226 else
11227   
11228         cat > conftest.$ac_ext <<EOF
11229 #line 11230 "configure"
11230 #include "confdefs.h"
11231 #include <math.h>
11232 int main() {
11233  __builtin_sqrt(0);
11234 ; return 0; }
11235 EOF
11236 if { (eval echo configure:11237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11237   rm -rf conftest*
11238   glibcpp_cv_func___builtin_sqrt_link=yes
11239 else
11240   echo "configure: failed program was:" >&5
11241   cat conftest.$ac_ext >&5
11242   rm -rf conftest*
11243   glibcpp_cv_func___builtin_sqrt_link=no
11244 fi
11245 rm -f conftest*
11246       
11247 fi
11248
11249     fi
11250     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
11251     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
11252       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11253       cat >> confdefs.h <<EOF
11254 #define ${ac_tr_func} 1
11255 EOF
11256
11257     fi
11258   fi
11259
11260   
11261   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
11262 echo "configure:11263: checking for __builtin_sqrtl declaration" >&5
11263   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
11264     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
11265   echo $ac_n "(cached) $ac_c" 1>&6
11266 else
11267   
11268       
11269       ac_ext=C
11270 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11271 ac_cpp='$CXXCPP $CPPFLAGS'
11272 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11273 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11274 cross_compiling=$ac_cv_prog_cxx_cross
11275
11276       cat > conftest.$ac_ext <<EOF
11277 #line 11278 "configure"
11278 #include "confdefs.h"
11279 #include <math.h>
11280 int main() {
11281  __builtin_sqrtl(0);
11282 ; return 0; }
11283 EOF
11284 if { (eval echo configure:11285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11285   rm -rf conftest*
11286   glibcpp_cv_func___builtin_sqrtl_use=yes
11287 else
11288   echo "configure: failed program was:" >&5
11289   cat conftest.$ac_ext >&5
11290   rm -rf conftest*
11291   glibcpp_cv_func___builtin_sqrtl_use=no
11292 fi
11293 rm -f conftest*
11294       ac_ext=c
11295 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11296 ac_cpp='$CPP $CPPFLAGS'
11297 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11298 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11299 cross_compiling=$ac_cv_prog_cc_cross
11300
11301     
11302 fi
11303
11304   fi
11305   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
11306   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
11307     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
11308 echo "configure:11309: checking for __builtin_sqrtl linkage" >&5
11309     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
11310       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
11311   echo $ac_n "(cached) $ac_c" 1>&6
11312 else
11313   
11314         cat > conftest.$ac_ext <<EOF
11315 #line 11316 "configure"
11316 #include "confdefs.h"
11317 #include <math.h>
11318 int main() {
11319  __builtin_sqrtl(0);
11320 ; return 0; }
11321 EOF
11322 if { (eval echo configure:11323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11323   rm -rf conftest*
11324   glibcpp_cv_func___builtin_sqrtl_link=yes
11325 else
11326   echo "configure: failed program was:" >&5
11327   cat conftest.$ac_ext >&5
11328   rm -rf conftest*
11329   glibcpp_cv_func___builtin_sqrtl_link=no
11330 fi
11331 rm -f conftest*
11332       
11333 fi
11334
11335     fi
11336     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
11337     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
11338       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11339       cat >> confdefs.h <<EOF
11340 #define ${ac_tr_func} 1
11341 EOF
11342
11343     fi
11344   fi
11345
11346
11347   
11348   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
11349 echo "configure:11350: checking for __builtin_sinf declaration" >&5
11350   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
11351     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
11352   echo $ac_n "(cached) $ac_c" 1>&6
11353 else
11354   
11355       
11356       ac_ext=C
11357 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11358 ac_cpp='$CXXCPP $CPPFLAGS'
11359 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11360 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11361 cross_compiling=$ac_cv_prog_cxx_cross
11362
11363       cat > conftest.$ac_ext <<EOF
11364 #line 11365 "configure"
11365 #include "confdefs.h"
11366 #include <math.h>
11367 int main() {
11368  __builtin_sinf(0);
11369 ; return 0; }
11370 EOF
11371 if { (eval echo configure:11372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11372   rm -rf conftest*
11373   glibcpp_cv_func___builtin_sinf_use=yes
11374 else
11375   echo "configure: failed program was:" >&5
11376   cat conftest.$ac_ext >&5
11377   rm -rf conftest*
11378   glibcpp_cv_func___builtin_sinf_use=no
11379 fi
11380 rm -f conftest*
11381       ac_ext=c
11382 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11383 ac_cpp='$CPP $CPPFLAGS'
11384 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11385 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11386 cross_compiling=$ac_cv_prog_cc_cross
11387
11388     
11389 fi
11390
11391   fi
11392   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
11393   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
11394     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
11395 echo "configure:11396: checking for __builtin_sinf linkage" >&5
11396     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
11397       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
11398   echo $ac_n "(cached) $ac_c" 1>&6
11399 else
11400   
11401         cat > conftest.$ac_ext <<EOF
11402 #line 11403 "configure"
11403 #include "confdefs.h"
11404 #include <math.h>
11405 int main() {
11406  __builtin_sinf(0);
11407 ; return 0; }
11408 EOF
11409 if { (eval echo configure:11410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11410   rm -rf conftest*
11411   glibcpp_cv_func___builtin_sinf_link=yes
11412 else
11413   echo "configure: failed program was:" >&5
11414   cat conftest.$ac_ext >&5
11415   rm -rf conftest*
11416   glibcpp_cv_func___builtin_sinf_link=no
11417 fi
11418 rm -f conftest*
11419       
11420 fi
11421
11422     fi
11423     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
11424     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
11425       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11426       cat >> confdefs.h <<EOF
11427 #define ${ac_tr_func} 1
11428 EOF
11429
11430     fi
11431   fi
11432
11433   
11434   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
11435 echo "configure:11436: checking for __builtin_sin declaration" >&5
11436   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
11437     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
11438   echo $ac_n "(cached) $ac_c" 1>&6
11439 else
11440   
11441       
11442       ac_ext=C
11443 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11444 ac_cpp='$CXXCPP $CPPFLAGS'
11445 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11446 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11447 cross_compiling=$ac_cv_prog_cxx_cross
11448
11449       cat > conftest.$ac_ext <<EOF
11450 #line 11451 "configure"
11451 #include "confdefs.h"
11452 #include <math.h>
11453 int main() {
11454  __builtin_sin(0);
11455 ; return 0; }
11456 EOF
11457 if { (eval echo configure:11458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11458   rm -rf conftest*
11459   glibcpp_cv_func___builtin_sin_use=yes
11460 else
11461   echo "configure: failed program was:" >&5
11462   cat conftest.$ac_ext >&5
11463   rm -rf conftest*
11464   glibcpp_cv_func___builtin_sin_use=no
11465 fi
11466 rm -f conftest*
11467       ac_ext=c
11468 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11469 ac_cpp='$CPP $CPPFLAGS'
11470 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11471 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11472 cross_compiling=$ac_cv_prog_cc_cross
11473
11474     
11475 fi
11476
11477   fi
11478   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
11479   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
11480     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
11481 echo "configure:11482: checking for __builtin_sin linkage" >&5
11482     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
11483       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
11484   echo $ac_n "(cached) $ac_c" 1>&6
11485 else
11486   
11487         cat > conftest.$ac_ext <<EOF
11488 #line 11489 "configure"
11489 #include "confdefs.h"
11490 #include <math.h>
11491 int main() {
11492  __builtin_sin(0);
11493 ; return 0; }
11494 EOF
11495 if { (eval echo configure:11496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11496   rm -rf conftest*
11497   glibcpp_cv_func___builtin_sin_link=yes
11498 else
11499   echo "configure: failed program was:" >&5
11500   cat conftest.$ac_ext >&5
11501   rm -rf conftest*
11502   glibcpp_cv_func___builtin_sin_link=no
11503 fi
11504 rm -f conftest*
11505       
11506 fi
11507
11508     fi
11509     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
11510     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
11511       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11512       cat >> confdefs.h <<EOF
11513 #define ${ac_tr_func} 1
11514 EOF
11515
11516     fi
11517   fi
11518
11519   
11520   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
11521 echo "configure:11522: checking for __builtin_sinl declaration" >&5
11522   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
11523     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
11524   echo $ac_n "(cached) $ac_c" 1>&6
11525 else
11526   
11527       
11528       ac_ext=C
11529 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11530 ac_cpp='$CXXCPP $CPPFLAGS'
11531 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11532 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11533 cross_compiling=$ac_cv_prog_cxx_cross
11534
11535       cat > conftest.$ac_ext <<EOF
11536 #line 11537 "configure"
11537 #include "confdefs.h"
11538 #include <math.h>
11539 int main() {
11540  __builtin_sinl(0);
11541 ; return 0; }
11542 EOF
11543 if { (eval echo configure:11544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11544   rm -rf conftest*
11545   glibcpp_cv_func___builtin_sinl_use=yes
11546 else
11547   echo "configure: failed program was:" >&5
11548   cat conftest.$ac_ext >&5
11549   rm -rf conftest*
11550   glibcpp_cv_func___builtin_sinl_use=no
11551 fi
11552 rm -f conftest*
11553       ac_ext=c
11554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11555 ac_cpp='$CPP $CPPFLAGS'
11556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11558 cross_compiling=$ac_cv_prog_cc_cross
11559
11560     
11561 fi
11562
11563   fi
11564   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
11565   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
11566     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
11567 echo "configure:11568: checking for __builtin_sinl linkage" >&5
11568     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
11569       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
11570   echo $ac_n "(cached) $ac_c" 1>&6
11571 else
11572   
11573         cat > conftest.$ac_ext <<EOF
11574 #line 11575 "configure"
11575 #include "confdefs.h"
11576 #include <math.h>
11577 int main() {
11578  __builtin_sinl(0);
11579 ; return 0; }
11580 EOF
11581 if { (eval echo configure:11582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11582   rm -rf conftest*
11583   glibcpp_cv_func___builtin_sinl_link=yes
11584 else
11585   echo "configure: failed program was:" >&5
11586   cat conftest.$ac_ext >&5
11587   rm -rf conftest*
11588   glibcpp_cv_func___builtin_sinl_link=no
11589 fi
11590 rm -f conftest*
11591       
11592 fi
11593
11594     fi
11595     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
11596     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
11597       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11598       cat >> confdefs.h <<EOF
11599 #define ${ac_tr_func} 1
11600 EOF
11601
11602     fi
11603   fi
11604
11605
11606   
11607   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
11608 echo "configure:11609: checking for __builtin_cosf declaration" >&5
11609   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
11610     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
11611   echo $ac_n "(cached) $ac_c" 1>&6
11612 else
11613   
11614       
11615       ac_ext=C
11616 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11617 ac_cpp='$CXXCPP $CPPFLAGS'
11618 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11619 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11620 cross_compiling=$ac_cv_prog_cxx_cross
11621
11622       cat > conftest.$ac_ext <<EOF
11623 #line 11624 "configure"
11624 #include "confdefs.h"
11625 #include <math.h>
11626 int main() {
11627  __builtin_cosf(0);
11628 ; return 0; }
11629 EOF
11630 if { (eval echo configure:11631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11631   rm -rf conftest*
11632   glibcpp_cv_func___builtin_cosf_use=yes
11633 else
11634   echo "configure: failed program was:" >&5
11635   cat conftest.$ac_ext >&5
11636   rm -rf conftest*
11637   glibcpp_cv_func___builtin_cosf_use=no
11638 fi
11639 rm -f conftest*
11640       ac_ext=c
11641 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11642 ac_cpp='$CPP $CPPFLAGS'
11643 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11644 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11645 cross_compiling=$ac_cv_prog_cc_cross
11646
11647     
11648 fi
11649
11650   fi
11651   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
11652   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
11653     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
11654 echo "configure:11655: checking for __builtin_cosf linkage" >&5
11655     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
11656       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
11657   echo $ac_n "(cached) $ac_c" 1>&6
11658 else
11659   
11660         cat > conftest.$ac_ext <<EOF
11661 #line 11662 "configure"
11662 #include "confdefs.h"
11663 #include <math.h>
11664 int main() {
11665  __builtin_cosf(0);
11666 ; return 0; }
11667 EOF
11668 if { (eval echo configure:11669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11669   rm -rf conftest*
11670   glibcpp_cv_func___builtin_cosf_link=yes
11671 else
11672   echo "configure: failed program was:" >&5
11673   cat conftest.$ac_ext >&5
11674   rm -rf conftest*
11675   glibcpp_cv_func___builtin_cosf_link=no
11676 fi
11677 rm -f conftest*
11678       
11679 fi
11680
11681     fi
11682     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
11683     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
11684       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11685       cat >> confdefs.h <<EOF
11686 #define ${ac_tr_func} 1
11687 EOF
11688
11689     fi
11690   fi
11691
11692   
11693   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
11694 echo "configure:11695: checking for __builtin_cos declaration" >&5
11695   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
11696     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
11697   echo $ac_n "(cached) $ac_c" 1>&6
11698 else
11699   
11700       
11701       ac_ext=C
11702 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11703 ac_cpp='$CXXCPP $CPPFLAGS'
11704 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11705 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11706 cross_compiling=$ac_cv_prog_cxx_cross
11707
11708       cat > conftest.$ac_ext <<EOF
11709 #line 11710 "configure"
11710 #include "confdefs.h"
11711 #include <math.h>
11712 int main() {
11713  __builtin_cos(0);
11714 ; return 0; }
11715 EOF
11716 if { (eval echo configure:11717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11717   rm -rf conftest*
11718   glibcpp_cv_func___builtin_cos_use=yes
11719 else
11720   echo "configure: failed program was:" >&5
11721   cat conftest.$ac_ext >&5
11722   rm -rf conftest*
11723   glibcpp_cv_func___builtin_cos_use=no
11724 fi
11725 rm -f conftest*
11726       ac_ext=c
11727 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11728 ac_cpp='$CPP $CPPFLAGS'
11729 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11730 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11731 cross_compiling=$ac_cv_prog_cc_cross
11732
11733     
11734 fi
11735
11736   fi
11737   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
11738   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
11739     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
11740 echo "configure:11741: checking for __builtin_cos linkage" >&5
11741     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
11742       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
11743   echo $ac_n "(cached) $ac_c" 1>&6
11744 else
11745   
11746         cat > conftest.$ac_ext <<EOF
11747 #line 11748 "configure"
11748 #include "confdefs.h"
11749 #include <math.h>
11750 int main() {
11751  __builtin_cos(0);
11752 ; return 0; }
11753 EOF
11754 if { (eval echo configure:11755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11755   rm -rf conftest*
11756   glibcpp_cv_func___builtin_cos_link=yes
11757 else
11758   echo "configure: failed program was:" >&5
11759   cat conftest.$ac_ext >&5
11760   rm -rf conftest*
11761   glibcpp_cv_func___builtin_cos_link=no
11762 fi
11763 rm -f conftest*
11764       
11765 fi
11766
11767     fi
11768     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
11769     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
11770       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11771       cat >> confdefs.h <<EOF
11772 #define ${ac_tr_func} 1
11773 EOF
11774
11775     fi
11776   fi
11777
11778   
11779   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
11780 echo "configure:11781: checking for __builtin_cosl declaration" >&5
11781   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
11782     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
11783   echo $ac_n "(cached) $ac_c" 1>&6
11784 else
11785   
11786       
11787       ac_ext=C
11788 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11789 ac_cpp='$CXXCPP $CPPFLAGS'
11790 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11791 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11792 cross_compiling=$ac_cv_prog_cxx_cross
11793
11794       cat > conftest.$ac_ext <<EOF
11795 #line 11796 "configure"
11796 #include "confdefs.h"
11797 #include <math.h>
11798 int main() {
11799  __builtin_cosl(0);
11800 ; return 0; }
11801 EOF
11802 if { (eval echo configure:11803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11803   rm -rf conftest*
11804   glibcpp_cv_func___builtin_cosl_use=yes
11805 else
11806   echo "configure: failed program was:" >&5
11807   cat conftest.$ac_ext >&5
11808   rm -rf conftest*
11809   glibcpp_cv_func___builtin_cosl_use=no
11810 fi
11811 rm -f conftest*
11812       ac_ext=c
11813 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11814 ac_cpp='$CPP $CPPFLAGS'
11815 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11816 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11817 cross_compiling=$ac_cv_prog_cc_cross
11818
11819     
11820 fi
11821
11822   fi
11823   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
11824   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
11825     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
11826 echo "configure:11827: checking for __builtin_cosl linkage" >&5
11827     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
11828       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
11829   echo $ac_n "(cached) $ac_c" 1>&6
11830 else
11831   
11832         cat > conftest.$ac_ext <<EOF
11833 #line 11834 "configure"
11834 #include "confdefs.h"
11835 #include <math.h>
11836 int main() {
11837  __builtin_cosl(0);
11838 ; return 0; }
11839 EOF
11840 if { (eval echo configure:11841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11841   rm -rf conftest*
11842   glibcpp_cv_func___builtin_cosl_link=yes
11843 else
11844   echo "configure: failed program was:" >&5
11845   cat conftest.$ac_ext >&5
11846   rm -rf conftest*
11847   glibcpp_cv_func___builtin_cosl_link=no
11848 fi
11849 rm -f conftest*
11850       
11851 fi
11852
11853     fi
11854     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
11855     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
11856       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11857       cat >> confdefs.h <<EOF
11858 #define ${ac_tr_func} 1
11859 EOF
11860
11861     fi
11862   fi
11863
11864
11865               dummyvar=no
11866   if test x$dummyvar = x"yes"; then
11867     cat >> confdefs.h <<\EOF
11868 #define HAVE___BUILTIN_ABS 1
11869 EOF
11870
11871     cat >> confdefs.h <<\EOF
11872 #define HAVE___BUILTIN_LABS 1
11873 EOF
11874
11875     cat >> confdefs.h <<\EOF
11876 #define HAVE___BUILTIN_COS 1
11877 EOF
11878
11879     cat >> confdefs.h <<\EOF
11880 #define HAVE___BUILTIN_COSF 1
11881 EOF
11882
11883     cat >> confdefs.h <<\EOF
11884 #define HAVE___BUILTIN_COSL 1
11885 EOF
11886
11887     cat >> confdefs.h <<\EOF
11888 #define HAVE___BUILTIN_FABS 1
11889 EOF
11890
11891     cat >> confdefs.h <<\EOF
11892 #define HAVE___BUILTIN_FABSF 1
11893 EOF
11894
11895     cat >> confdefs.h <<\EOF
11896 #define HAVE___BUILTIN_FABSL 1
11897 EOF
11898
11899     cat >> confdefs.h <<\EOF
11900 #define HAVE___BUILTIN_SIN 1
11901 EOF
11902
11903     cat >> confdefs.h <<\EOF
11904 #define HAVE___BUILTIN_SINF 1
11905 EOF
11906
11907     cat >> confdefs.h <<\EOF
11908 #define HAVE___BUILTIN_SINL 1
11909 EOF
11910
11911     cat >> confdefs.h <<\EOF
11912 #define HAVE___BUILTIN_SQRT 1
11913 EOF
11914
11915     cat >> confdefs.h <<\EOF
11916 #define HAVE___BUILTIN_SQRTF 1
11917 EOF
11918
11919     cat >> confdefs.h <<\EOF
11920 #define HAVE___BUILTIN_SQRTL 1
11921 EOF
11922
11923   fi
11924
11925   
11926   ac_test_CXXFLAGS="${CXXFLAGS+set}"
11927   ac_save_CXXFLAGS="$CXXFLAGS"
11928   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
11929
11930     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
11931 echo "configure:11932: checking for sin in -lm" >&5
11932 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
11933 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11934   echo $ac_n "(cached) $ac_c" 1>&6
11935 else
11936   ac_save_LIBS="$LIBS"
11937 LIBS="-lm  $LIBS"
11938 cat > conftest.$ac_ext <<EOF
11939 #line 11940 "configure"
11940 #include "confdefs.h"
11941 /* Override any gcc2 internal prototype to avoid an error.  */
11942 /* We use char because int might match the return type of a gcc2
11943     builtin and then its argument prototype would still apply.  */
11944 char sin();
11945
11946 int main() {
11947 sin()
11948 ; return 0; }
11949 EOF
11950 if { (eval echo configure:11951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11951   rm -rf conftest*
11952   eval "ac_cv_lib_$ac_lib_var=yes"
11953 else
11954   echo "configure: failed program was:" >&5
11955   cat conftest.$ac_ext >&5
11956   rm -rf conftest*
11957   eval "ac_cv_lib_$ac_lib_var=no"
11958 fi
11959 rm -f conftest*
11960 LIBS="$ac_save_LIBS"
11961
11962 fi
11963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11964   echo "$ac_t""yes" 1>&6
11965   libm="-lm"
11966 else
11967   echo "$ac_t""no" 1>&6
11968 fi
11969
11970   ac_save_LIBS="$LIBS"
11971   LIBS="$LIBS $libm"
11972
11973     
11974   
11975   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
11976 echo "configure:11977: checking for isinf declaration" >&5
11977   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
11978     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
11979   echo $ac_n "(cached) $ac_c" 1>&6
11980 else
11981   
11982       
11983       ac_ext=C
11984 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11985 ac_cpp='$CXXCPP $CPPFLAGS'
11986 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11987 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11988 cross_compiling=$ac_cv_prog_cxx_cross
11989
11990       cat > conftest.$ac_ext <<EOF
11991 #line 11992 "configure"
11992 #include "confdefs.h"
11993 #include <math.h>
11994                       #ifdef HAVE_IEEEFP_H
11995                       #include <ieeefp.h>
11996                       #endif
11997                      
11998 int main() {
11999  isinf(0);
12000 ; return 0; }
12001 EOF
12002 if { (eval echo configure:12003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12003   rm -rf conftest*
12004   glibcpp_cv_func_isinf_use=yes
12005 else
12006   echo "configure: failed program was:" >&5
12007   cat conftest.$ac_ext >&5
12008   rm -rf conftest*
12009   glibcpp_cv_func_isinf_use=no
12010 fi
12011 rm -f conftest*
12012       ac_ext=c
12013 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12014 ac_cpp='$CPP $CPPFLAGS'
12015 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12016 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12017 cross_compiling=$ac_cv_prog_cc_cross
12018
12019     
12020 fi
12021
12022   fi
12023   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
12024
12025   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
12026     for ac_func in isinf
12027 do
12028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12029 echo "configure:12030: checking for $ac_func" >&5
12030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12031   echo $ac_n "(cached) $ac_c" 1>&6
12032 else
12033   cat > conftest.$ac_ext <<EOF
12034 #line 12035 "configure"
12035 #include "confdefs.h"
12036 /* System header to define __stub macros and hopefully few prototypes,
12037     which can conflict with char $ac_func(); below.  */
12038 #include <assert.h>
12039 /* Override any gcc2 internal prototype to avoid an error.  */
12040 /* We use char because int might match the return type of a gcc2
12041     builtin and then its argument prototype would still apply.  */
12042 char $ac_func();
12043
12044 int main() {
12045
12046 /* The GNU C library defines this for functions which it implements
12047     to always fail with ENOSYS.  Some functions are actually named
12048     something starting with __ and the normal name is an alias.  */
12049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12050 choke me
12051 #else
12052 $ac_func();
12053 #endif
12054
12055 ; return 0; }
12056 EOF
12057 if { (eval echo configure:12058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12058   rm -rf conftest*
12059   eval "ac_cv_func_$ac_func=yes"
12060 else
12061   echo "configure: failed program was:" >&5
12062   cat conftest.$ac_ext >&5
12063   rm -rf conftest*
12064   eval "ac_cv_func_$ac_func=no"
12065 fi
12066 rm -f conftest*
12067 fi
12068
12069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12070   echo "$ac_t""yes" 1>&6
12071     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12072   cat >> confdefs.h <<EOF
12073 #define $ac_tr_func 1
12074 EOF
12075  
12076 else
12077   echo "$ac_t""no" 1>&6
12078 fi
12079 done
12080
12081   else
12082     
12083   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
12084 echo "configure:12085: checking for _isinf declaration" >&5
12085   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
12086     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
12087   echo $ac_n "(cached) $ac_c" 1>&6
12088 else
12089   
12090       
12091       ac_ext=C
12092 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12093 ac_cpp='$CXXCPP $CPPFLAGS'
12094 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12095 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12096 cross_compiling=$ac_cv_prog_cxx_cross
12097
12098       cat > conftest.$ac_ext <<EOF
12099 #line 12100 "configure"
12100 #include "confdefs.h"
12101 #include <math.h>
12102                       #ifdef HAVE_IEEEFP_H
12103                       #include <ieeefp.h>
12104                       #endif
12105                      
12106 int main() {
12107  _isinf(0);
12108 ; return 0; }
12109 EOF
12110 if { (eval echo configure:12111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12111   rm -rf conftest*
12112   glibcpp_cv_func__isinf_use=yes
12113 else
12114   echo "configure: failed program was:" >&5
12115   cat conftest.$ac_ext >&5
12116   rm -rf conftest*
12117   glibcpp_cv_func__isinf_use=no
12118 fi
12119 rm -f conftest*
12120       ac_ext=c
12121 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12122 ac_cpp='$CPP $CPPFLAGS'
12123 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12124 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12125 cross_compiling=$ac_cv_prog_cc_cross
12126
12127     
12128 fi
12129
12130   fi
12131   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
12132
12133     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
12134       for ac_func in _isinf
12135 do
12136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12137 echo "configure:12138: checking for $ac_func" >&5
12138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12139   echo $ac_n "(cached) $ac_c" 1>&6
12140 else
12141   cat > conftest.$ac_ext <<EOF
12142 #line 12143 "configure"
12143 #include "confdefs.h"
12144 /* System header to define __stub macros and hopefully few prototypes,
12145     which can conflict with char $ac_func(); below.  */
12146 #include <assert.h>
12147 /* Override any gcc2 internal prototype to avoid an error.  */
12148 /* We use char because int might match the return type of a gcc2
12149     builtin and then its argument prototype would still apply.  */
12150 char $ac_func();
12151
12152 int main() {
12153
12154 /* The GNU C library defines this for functions which it implements
12155     to always fail with ENOSYS.  Some functions are actually named
12156     something starting with __ and the normal name is an alias.  */
12157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12158 choke me
12159 #else
12160 $ac_func();
12161 #endif
12162
12163 ; return 0; }
12164 EOF
12165 if { (eval echo configure:12166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12166   rm -rf conftest*
12167   eval "ac_cv_func_$ac_func=yes"
12168 else
12169   echo "configure: failed program was:" >&5
12170   cat conftest.$ac_ext >&5
12171   rm -rf conftest*
12172   eval "ac_cv_func_$ac_func=no"
12173 fi
12174 rm -f conftest*
12175 fi
12176
12177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12178   echo "$ac_t""yes" 1>&6
12179     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12180   cat >> confdefs.h <<EOF
12181 #define $ac_tr_func 1
12182 EOF
12183  
12184 else
12185   echo "$ac_t""no" 1>&6
12186 fi
12187 done
12188
12189     fi
12190   fi
12191
12192   
12193   
12194   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
12195 echo "configure:12196: checking for isnan declaration" >&5
12196   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
12197     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
12198   echo $ac_n "(cached) $ac_c" 1>&6
12199 else
12200   
12201       
12202       ac_ext=C
12203 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12204 ac_cpp='$CXXCPP $CPPFLAGS'
12205 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12206 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12207 cross_compiling=$ac_cv_prog_cxx_cross
12208
12209       cat > conftest.$ac_ext <<EOF
12210 #line 12211 "configure"
12211 #include "confdefs.h"
12212 #include <math.h>
12213                       #ifdef HAVE_IEEEFP_H
12214                       #include <ieeefp.h>
12215                       #endif
12216                      
12217 int main() {
12218  isnan(0);
12219 ; return 0; }
12220 EOF
12221 if { (eval echo configure:12222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12222   rm -rf conftest*
12223   glibcpp_cv_func_isnan_use=yes
12224 else
12225   echo "configure: failed program was:" >&5
12226   cat conftest.$ac_ext >&5
12227   rm -rf conftest*
12228   glibcpp_cv_func_isnan_use=no
12229 fi
12230 rm -f conftest*
12231       ac_ext=c
12232 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12233 ac_cpp='$CPP $CPPFLAGS'
12234 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12235 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12236 cross_compiling=$ac_cv_prog_cc_cross
12237
12238     
12239 fi
12240
12241   fi
12242   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
12243
12244   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
12245     for ac_func in isnan
12246 do
12247 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12248 echo "configure:12249: checking for $ac_func" >&5
12249 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12250   echo $ac_n "(cached) $ac_c" 1>&6
12251 else
12252   cat > conftest.$ac_ext <<EOF
12253 #line 12254 "configure"
12254 #include "confdefs.h"
12255 /* System header to define __stub macros and hopefully few prototypes,
12256     which can conflict with char $ac_func(); below.  */
12257 #include <assert.h>
12258 /* Override any gcc2 internal prototype to avoid an error.  */
12259 /* We use char because int might match the return type of a gcc2
12260     builtin and then its argument prototype would still apply.  */
12261 char $ac_func();
12262
12263 int main() {
12264
12265 /* The GNU C library defines this for functions which it implements
12266     to always fail with ENOSYS.  Some functions are actually named
12267     something starting with __ and the normal name is an alias.  */
12268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12269 choke me
12270 #else
12271 $ac_func();
12272 #endif
12273
12274 ; return 0; }
12275 EOF
12276 if { (eval echo configure:12277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12277   rm -rf conftest*
12278   eval "ac_cv_func_$ac_func=yes"
12279 else
12280   echo "configure: failed program was:" >&5
12281   cat conftest.$ac_ext >&5
12282   rm -rf conftest*
12283   eval "ac_cv_func_$ac_func=no"
12284 fi
12285 rm -f conftest*
12286 fi
12287
12288 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12289   echo "$ac_t""yes" 1>&6
12290     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12291   cat >> confdefs.h <<EOF
12292 #define $ac_tr_func 1
12293 EOF
12294  
12295 else
12296   echo "$ac_t""no" 1>&6
12297 fi
12298 done
12299
12300   else
12301     
12302   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
12303 echo "configure:12304: checking for _isnan declaration" >&5
12304   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
12305     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
12306   echo $ac_n "(cached) $ac_c" 1>&6
12307 else
12308   
12309       
12310       ac_ext=C
12311 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12312 ac_cpp='$CXXCPP $CPPFLAGS'
12313 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12314 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12315 cross_compiling=$ac_cv_prog_cxx_cross
12316
12317       cat > conftest.$ac_ext <<EOF
12318 #line 12319 "configure"
12319 #include "confdefs.h"
12320 #include <math.h>
12321                       #ifdef HAVE_IEEEFP_H
12322                       #include <ieeefp.h>
12323                       #endif
12324                      
12325 int main() {
12326  _isnan(0);
12327 ; return 0; }
12328 EOF
12329 if { (eval echo configure:12330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12330   rm -rf conftest*
12331   glibcpp_cv_func__isnan_use=yes
12332 else
12333   echo "configure: failed program was:" >&5
12334   cat conftest.$ac_ext >&5
12335   rm -rf conftest*
12336   glibcpp_cv_func__isnan_use=no
12337 fi
12338 rm -f conftest*
12339       ac_ext=c
12340 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12341 ac_cpp='$CPP $CPPFLAGS'
12342 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12343 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12344 cross_compiling=$ac_cv_prog_cc_cross
12345
12346     
12347 fi
12348
12349   fi
12350   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
12351
12352     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
12353       for ac_func in _isnan
12354 do
12355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12356 echo "configure:12357: checking for $ac_func" >&5
12357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12358   echo $ac_n "(cached) $ac_c" 1>&6
12359 else
12360   cat > conftest.$ac_ext <<EOF
12361 #line 12362 "configure"
12362 #include "confdefs.h"
12363 /* System header to define __stub macros and hopefully few prototypes,
12364     which can conflict with char $ac_func(); below.  */
12365 #include <assert.h>
12366 /* Override any gcc2 internal prototype to avoid an error.  */
12367 /* We use char because int might match the return type of a gcc2
12368     builtin and then its argument prototype would still apply.  */
12369 char $ac_func();
12370
12371 int main() {
12372
12373 /* The GNU C library defines this for functions which it implements
12374     to always fail with ENOSYS.  Some functions are actually named
12375     something starting with __ and the normal name is an alias.  */
12376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12377 choke me
12378 #else
12379 $ac_func();
12380 #endif
12381
12382 ; return 0; }
12383 EOF
12384 if { (eval echo configure:12385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12385   rm -rf conftest*
12386   eval "ac_cv_func_$ac_func=yes"
12387 else
12388   echo "configure: failed program was:" >&5
12389   cat conftest.$ac_ext >&5
12390   rm -rf conftest*
12391   eval "ac_cv_func_$ac_func=no"
12392 fi
12393 rm -f conftest*
12394 fi
12395
12396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12397   echo "$ac_t""yes" 1>&6
12398     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12399   cat >> confdefs.h <<EOF
12400 #define $ac_tr_func 1
12401 EOF
12402  
12403 else
12404   echo "$ac_t""no" 1>&6
12405 fi
12406 done
12407
12408     fi
12409   fi
12410
12411   
12412   
12413   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
12414 echo "configure:12415: checking for finite declaration" >&5
12415   if test x${glibcpp_cv_func_finite_use+set} != xset; then
12416     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
12417   echo $ac_n "(cached) $ac_c" 1>&6
12418 else
12419   
12420       
12421       ac_ext=C
12422 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12423 ac_cpp='$CXXCPP $CPPFLAGS'
12424 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12425 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12426 cross_compiling=$ac_cv_prog_cxx_cross
12427
12428       cat > conftest.$ac_ext <<EOF
12429 #line 12430 "configure"
12430 #include "confdefs.h"
12431 #include <math.h>
12432                       #ifdef HAVE_IEEEFP_H
12433                       #include <ieeefp.h>
12434                       #endif
12435                      
12436 int main() {
12437  finite(0);
12438 ; return 0; }
12439 EOF
12440 if { (eval echo configure:12441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12441   rm -rf conftest*
12442   glibcpp_cv_func_finite_use=yes
12443 else
12444   echo "configure: failed program was:" >&5
12445   cat conftest.$ac_ext >&5
12446   rm -rf conftest*
12447   glibcpp_cv_func_finite_use=no
12448 fi
12449 rm -f conftest*
12450       ac_ext=c
12451 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12452 ac_cpp='$CPP $CPPFLAGS'
12453 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12454 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12455 cross_compiling=$ac_cv_prog_cc_cross
12456
12457     
12458 fi
12459
12460   fi
12461   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
12462
12463   if test x$glibcpp_cv_func_finite_use = x"yes"; then
12464     for ac_func in finite
12465 do
12466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12467 echo "configure:12468: checking for $ac_func" >&5
12468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12469   echo $ac_n "(cached) $ac_c" 1>&6
12470 else
12471   cat > conftest.$ac_ext <<EOF
12472 #line 12473 "configure"
12473 #include "confdefs.h"
12474 /* System header to define __stub macros and hopefully few prototypes,
12475     which can conflict with char $ac_func(); below.  */
12476 #include <assert.h>
12477 /* Override any gcc2 internal prototype to avoid an error.  */
12478 /* We use char because int might match the return type of a gcc2
12479     builtin and then its argument prototype would still apply.  */
12480 char $ac_func();
12481
12482 int main() {
12483
12484 /* The GNU C library defines this for functions which it implements
12485     to always fail with ENOSYS.  Some functions are actually named
12486     something starting with __ and the normal name is an alias.  */
12487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12488 choke me
12489 #else
12490 $ac_func();
12491 #endif
12492
12493 ; return 0; }
12494 EOF
12495 if { (eval echo configure:12496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12496   rm -rf conftest*
12497   eval "ac_cv_func_$ac_func=yes"
12498 else
12499   echo "configure: failed program was:" >&5
12500   cat conftest.$ac_ext >&5
12501   rm -rf conftest*
12502   eval "ac_cv_func_$ac_func=no"
12503 fi
12504 rm -f conftest*
12505 fi
12506
12507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12508   echo "$ac_t""yes" 1>&6
12509     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12510   cat >> confdefs.h <<EOF
12511 #define $ac_tr_func 1
12512 EOF
12513  
12514 else
12515   echo "$ac_t""no" 1>&6
12516 fi
12517 done
12518
12519   else
12520     
12521   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
12522 echo "configure:12523: checking for _finite declaration" >&5
12523   if test x${glibcpp_cv_func__finite_use+set} != xset; then
12524     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
12525   echo $ac_n "(cached) $ac_c" 1>&6
12526 else
12527   
12528       
12529       ac_ext=C
12530 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12531 ac_cpp='$CXXCPP $CPPFLAGS'
12532 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12533 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12534 cross_compiling=$ac_cv_prog_cxx_cross
12535
12536       cat > conftest.$ac_ext <<EOF
12537 #line 12538 "configure"
12538 #include "confdefs.h"
12539 #include <math.h>
12540                       #ifdef HAVE_IEEEFP_H
12541                       #include <ieeefp.h>
12542                       #endif
12543                      
12544 int main() {
12545  _finite(0);
12546 ; return 0; }
12547 EOF
12548 if { (eval echo configure:12549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12549   rm -rf conftest*
12550   glibcpp_cv_func__finite_use=yes
12551 else
12552   echo "configure: failed program was:" >&5
12553   cat conftest.$ac_ext >&5
12554   rm -rf conftest*
12555   glibcpp_cv_func__finite_use=no
12556 fi
12557 rm -f conftest*
12558       ac_ext=c
12559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12560 ac_cpp='$CPP $CPPFLAGS'
12561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12563 cross_compiling=$ac_cv_prog_cc_cross
12564
12565     
12566 fi
12567
12568   fi
12569   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
12570
12571     if test x$glibcpp_cv_func__finite_use = x"yes"; then
12572       for ac_func in _finite
12573 do
12574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12575 echo "configure:12576: checking for $ac_func" >&5
12576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12577   echo $ac_n "(cached) $ac_c" 1>&6
12578 else
12579   cat > conftest.$ac_ext <<EOF
12580 #line 12581 "configure"
12581 #include "confdefs.h"
12582 /* System header to define __stub macros and hopefully few prototypes,
12583     which can conflict with char $ac_func(); below.  */
12584 #include <assert.h>
12585 /* Override any gcc2 internal prototype to avoid an error.  */
12586 /* We use char because int might match the return type of a gcc2
12587     builtin and then its argument prototype would still apply.  */
12588 char $ac_func();
12589
12590 int main() {
12591
12592 /* The GNU C library defines this for functions which it implements
12593     to always fail with ENOSYS.  Some functions are actually named
12594     something starting with __ and the normal name is an alias.  */
12595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12596 choke me
12597 #else
12598 $ac_func();
12599 #endif
12600
12601 ; return 0; }
12602 EOF
12603 if { (eval echo configure:12604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12604   rm -rf conftest*
12605   eval "ac_cv_func_$ac_func=yes"
12606 else
12607   echo "configure: failed program was:" >&5
12608   cat conftest.$ac_ext >&5
12609   rm -rf conftest*
12610   eval "ac_cv_func_$ac_func=no"
12611 fi
12612 rm -f conftest*
12613 fi
12614
12615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12616   echo "$ac_t""yes" 1>&6
12617     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12618   cat >> confdefs.h <<EOF
12619 #define $ac_tr_func 1
12620 EOF
12621  
12622 else
12623   echo "$ac_t""no" 1>&6
12624 fi
12625 done
12626
12627     fi
12628   fi
12629
12630   
12631   
12632   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
12633 echo "configure:12634: checking for copysign declaration" >&5
12634   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
12635     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
12636   echo $ac_n "(cached) $ac_c" 1>&6
12637 else
12638   
12639       
12640       ac_ext=C
12641 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12642 ac_cpp='$CXXCPP $CPPFLAGS'
12643 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12644 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12645 cross_compiling=$ac_cv_prog_cxx_cross
12646
12647       cat > conftest.$ac_ext <<EOF
12648 #line 12649 "configure"
12649 #include "confdefs.h"
12650 #include <math.h>
12651 int main() {
12652  copysign(0, 0);
12653 ; return 0; }
12654 EOF
12655 if { (eval echo configure:12656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12656   rm -rf conftest*
12657   glibcpp_cv_func_copysign_use=yes
12658 else
12659   echo "configure: failed program was:" >&5
12660   cat conftest.$ac_ext >&5
12661   rm -rf conftest*
12662   glibcpp_cv_func_copysign_use=no
12663 fi
12664 rm -f conftest*
12665       ac_ext=c
12666 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12667 ac_cpp='$CPP $CPPFLAGS'
12668 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12669 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12670 cross_compiling=$ac_cv_prog_cc_cross
12671
12672     
12673 fi
12674
12675   fi
12676   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
12677
12678   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
12679     for ac_func in copysign
12680 do
12681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12682 echo "configure:12683: checking for $ac_func" >&5
12683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12684   echo $ac_n "(cached) $ac_c" 1>&6
12685 else
12686   cat > conftest.$ac_ext <<EOF
12687 #line 12688 "configure"
12688 #include "confdefs.h"
12689 /* System header to define __stub macros and hopefully few prototypes,
12690     which can conflict with char $ac_func(); below.  */
12691 #include <assert.h>
12692 /* Override any gcc2 internal prototype to avoid an error.  */
12693 /* We use char because int might match the return type of a gcc2
12694     builtin and then its argument prototype would still apply.  */
12695 char $ac_func();
12696
12697 int main() {
12698
12699 /* The GNU C library defines this for functions which it implements
12700     to always fail with ENOSYS.  Some functions are actually named
12701     something starting with __ and the normal name is an alias.  */
12702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12703 choke me
12704 #else
12705 $ac_func();
12706 #endif
12707
12708 ; return 0; }
12709 EOF
12710 if { (eval echo configure:12711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12711   rm -rf conftest*
12712   eval "ac_cv_func_$ac_func=yes"
12713 else
12714   echo "configure: failed program was:" >&5
12715   cat conftest.$ac_ext >&5
12716   rm -rf conftest*
12717   eval "ac_cv_func_$ac_func=no"
12718 fi
12719 rm -f conftest*
12720 fi
12721
12722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12723   echo "$ac_t""yes" 1>&6
12724     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12725   cat >> confdefs.h <<EOF
12726 #define $ac_tr_func 1
12727 EOF
12728  
12729 else
12730   echo "$ac_t""no" 1>&6
12731 fi
12732 done
12733
12734   else
12735     
12736   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
12737 echo "configure:12738: checking for _copysign declaration" >&5
12738   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
12739     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
12740   echo $ac_n "(cached) $ac_c" 1>&6
12741 else
12742   
12743       
12744       ac_ext=C
12745 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12746 ac_cpp='$CXXCPP $CPPFLAGS'
12747 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12748 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12749 cross_compiling=$ac_cv_prog_cxx_cross
12750
12751       cat > conftest.$ac_ext <<EOF
12752 #line 12753 "configure"
12753 #include "confdefs.h"
12754 #include <math.h>
12755 int main() {
12756  _copysign(0, 0);
12757 ; return 0; }
12758 EOF
12759 if { (eval echo configure:12760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12760   rm -rf conftest*
12761   glibcpp_cv_func__copysign_use=yes
12762 else
12763   echo "configure: failed program was:" >&5
12764   cat conftest.$ac_ext >&5
12765   rm -rf conftest*
12766   glibcpp_cv_func__copysign_use=no
12767 fi
12768 rm -f conftest*
12769       ac_ext=c
12770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12771 ac_cpp='$CPP $CPPFLAGS'
12772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12774 cross_compiling=$ac_cv_prog_cc_cross
12775
12776     
12777 fi
12778
12779   fi
12780   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
12781
12782     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
12783       for ac_func in _copysign
12784 do
12785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12786 echo "configure:12787: checking for $ac_func" >&5
12787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12788   echo $ac_n "(cached) $ac_c" 1>&6
12789 else
12790   cat > conftest.$ac_ext <<EOF
12791 #line 12792 "configure"
12792 #include "confdefs.h"
12793 /* System header to define __stub macros and hopefully few prototypes,
12794     which can conflict with char $ac_func(); below.  */
12795 #include <assert.h>
12796 /* Override any gcc2 internal prototype to avoid an error.  */
12797 /* We use char because int might match the return type of a gcc2
12798     builtin and then its argument prototype would still apply.  */
12799 char $ac_func();
12800
12801 int main() {
12802
12803 /* The GNU C library defines this for functions which it implements
12804     to always fail with ENOSYS.  Some functions are actually named
12805     something starting with __ and the normal name is an alias.  */
12806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12807 choke me
12808 #else
12809 $ac_func();
12810 #endif
12811
12812 ; return 0; }
12813 EOF
12814 if { (eval echo configure:12815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12815   rm -rf conftest*
12816   eval "ac_cv_func_$ac_func=yes"
12817 else
12818   echo "configure: failed program was:" >&5
12819   cat conftest.$ac_ext >&5
12820   rm -rf conftest*
12821   eval "ac_cv_func_$ac_func=no"
12822 fi
12823 rm -f conftest*
12824 fi
12825
12826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12827   echo "$ac_t""yes" 1>&6
12828     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12829   cat >> confdefs.h <<EOF
12830 #define $ac_tr_func 1
12831 EOF
12832  
12833 else
12834   echo "$ac_t""no" 1>&6
12835 fi
12836 done
12837
12838     fi
12839   fi
12840
12841   
12842   
12843   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
12844 echo "configure:12845: checking for sincos declaration" >&5
12845   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
12846     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
12847   echo $ac_n "(cached) $ac_c" 1>&6
12848 else
12849   
12850       
12851       ac_ext=C
12852 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12853 ac_cpp='$CXXCPP $CPPFLAGS'
12854 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12855 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12856 cross_compiling=$ac_cv_prog_cxx_cross
12857
12858       cat > conftest.$ac_ext <<EOF
12859 #line 12860 "configure"
12860 #include "confdefs.h"
12861 #include <math.h>
12862 int main() {
12863  sincos(0, 0, 0);
12864 ; return 0; }
12865 EOF
12866 if { (eval echo configure:12867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12867   rm -rf conftest*
12868   glibcpp_cv_func_sincos_use=yes
12869 else
12870   echo "configure: failed program was:" >&5
12871   cat conftest.$ac_ext >&5
12872   rm -rf conftest*
12873   glibcpp_cv_func_sincos_use=no
12874 fi
12875 rm -f conftest*
12876       ac_ext=c
12877 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12878 ac_cpp='$CPP $CPPFLAGS'
12879 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12880 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12881 cross_compiling=$ac_cv_prog_cc_cross
12882
12883     
12884 fi
12885
12886   fi
12887   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
12888
12889   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
12890     for ac_func in sincos
12891 do
12892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12893 echo "configure:12894: checking for $ac_func" >&5
12894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12895   echo $ac_n "(cached) $ac_c" 1>&6
12896 else
12897   cat > conftest.$ac_ext <<EOF
12898 #line 12899 "configure"
12899 #include "confdefs.h"
12900 /* System header to define __stub macros and hopefully few prototypes,
12901     which can conflict with char $ac_func(); below.  */
12902 #include <assert.h>
12903 /* Override any gcc2 internal prototype to avoid an error.  */
12904 /* We use char because int might match the return type of a gcc2
12905     builtin and then its argument prototype would still apply.  */
12906 char $ac_func();
12907
12908 int main() {
12909
12910 /* The GNU C library defines this for functions which it implements
12911     to always fail with ENOSYS.  Some functions are actually named
12912     something starting with __ and the normal name is an alias.  */
12913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12914 choke me
12915 #else
12916 $ac_func();
12917 #endif
12918
12919 ; return 0; }
12920 EOF
12921 if { (eval echo configure:12922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12922   rm -rf conftest*
12923   eval "ac_cv_func_$ac_func=yes"
12924 else
12925   echo "configure: failed program was:" >&5
12926   cat conftest.$ac_ext >&5
12927   rm -rf conftest*
12928   eval "ac_cv_func_$ac_func=no"
12929 fi
12930 rm -f conftest*
12931 fi
12932
12933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12934   echo "$ac_t""yes" 1>&6
12935     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12936   cat >> confdefs.h <<EOF
12937 #define $ac_tr_func 1
12938 EOF
12939  
12940 else
12941   echo "$ac_t""no" 1>&6
12942 fi
12943 done
12944
12945   else
12946     
12947   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
12948 echo "configure:12949: checking for _sincos declaration" >&5
12949   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
12950     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
12951   echo $ac_n "(cached) $ac_c" 1>&6
12952 else
12953   
12954       
12955       ac_ext=C
12956 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12957 ac_cpp='$CXXCPP $CPPFLAGS'
12958 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12959 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12960 cross_compiling=$ac_cv_prog_cxx_cross
12961
12962       cat > conftest.$ac_ext <<EOF
12963 #line 12964 "configure"
12964 #include "confdefs.h"
12965 #include <math.h>
12966 int main() {
12967  _sincos(0, 0, 0);
12968 ; return 0; }
12969 EOF
12970 if { (eval echo configure:12971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12971   rm -rf conftest*
12972   glibcpp_cv_func__sincos_use=yes
12973 else
12974   echo "configure: failed program was:" >&5
12975   cat conftest.$ac_ext >&5
12976   rm -rf conftest*
12977   glibcpp_cv_func__sincos_use=no
12978 fi
12979 rm -f conftest*
12980       ac_ext=c
12981 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12982 ac_cpp='$CPP $CPPFLAGS'
12983 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12984 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12985 cross_compiling=$ac_cv_prog_cc_cross
12986
12987     
12988 fi
12989
12990   fi
12991   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
12992
12993     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
12994       for ac_func in _sincos
12995 do
12996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12997 echo "configure:12998: checking for $ac_func" >&5
12998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12999   echo $ac_n "(cached) $ac_c" 1>&6
13000 else
13001   cat > conftest.$ac_ext <<EOF
13002 #line 13003 "configure"
13003 #include "confdefs.h"
13004 /* System header to define __stub macros and hopefully few prototypes,
13005     which can conflict with char $ac_func(); below.  */
13006 #include <assert.h>
13007 /* Override any gcc2 internal prototype to avoid an error.  */
13008 /* We use char because int might match the return type of a gcc2
13009     builtin and then its argument prototype would still apply.  */
13010 char $ac_func();
13011
13012 int main() {
13013
13014 /* The GNU C library defines this for functions which it implements
13015     to always fail with ENOSYS.  Some functions are actually named
13016     something starting with __ and the normal name is an alias.  */
13017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13018 choke me
13019 #else
13020 $ac_func();
13021 #endif
13022
13023 ; return 0; }
13024 EOF
13025 if { (eval echo configure:13026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13026   rm -rf conftest*
13027   eval "ac_cv_func_$ac_func=yes"
13028 else
13029   echo "configure: failed program was:" >&5
13030   cat conftest.$ac_ext >&5
13031   rm -rf conftest*
13032   eval "ac_cv_func_$ac_func=no"
13033 fi
13034 rm -f conftest*
13035 fi
13036
13037 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13038   echo "$ac_t""yes" 1>&6
13039     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13040   cat >> confdefs.h <<EOF
13041 #define $ac_tr_func 1
13042 EOF
13043  
13044 else
13045   echo "$ac_t""no" 1>&6
13046 fi
13047 done
13048
13049     fi
13050   fi
13051
13052   
13053   
13054   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
13055 echo "configure:13056: checking for fpclass declaration" >&5
13056   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
13057     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
13058   echo $ac_n "(cached) $ac_c" 1>&6
13059 else
13060   
13061       
13062       ac_ext=C
13063 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13064 ac_cpp='$CXXCPP $CPPFLAGS'
13065 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13066 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13067 cross_compiling=$ac_cv_prog_cxx_cross
13068
13069       cat > conftest.$ac_ext <<EOF
13070 #line 13071 "configure"
13071 #include "confdefs.h"
13072 #include <math.h>
13073                       #ifdef HAVE_IEEEFP_H
13074                       #include <ieeefp.h>
13075                       #endif
13076                      
13077 int main() {
13078  fpclass(0);
13079 ; return 0; }
13080 EOF
13081 if { (eval echo configure:13082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13082   rm -rf conftest*
13083   glibcpp_cv_func_fpclass_use=yes
13084 else
13085   echo "configure: failed program was:" >&5
13086   cat conftest.$ac_ext >&5
13087   rm -rf conftest*
13088   glibcpp_cv_func_fpclass_use=no
13089 fi
13090 rm -f conftest*
13091       ac_ext=c
13092 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13093 ac_cpp='$CPP $CPPFLAGS'
13094 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13095 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13096 cross_compiling=$ac_cv_prog_cc_cross
13097
13098     
13099 fi
13100
13101   fi
13102   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
13103
13104   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
13105     for ac_func in fpclass
13106 do
13107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13108 echo "configure:13109: checking for $ac_func" >&5
13109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13110   echo $ac_n "(cached) $ac_c" 1>&6
13111 else
13112   cat > conftest.$ac_ext <<EOF
13113 #line 13114 "configure"
13114 #include "confdefs.h"
13115 /* System header to define __stub macros and hopefully few prototypes,
13116     which can conflict with char $ac_func(); below.  */
13117 #include <assert.h>
13118 /* Override any gcc2 internal prototype to avoid an error.  */
13119 /* We use char because int might match the return type of a gcc2
13120     builtin and then its argument prototype would still apply.  */
13121 char $ac_func();
13122
13123 int main() {
13124
13125 /* The GNU C library defines this for functions which it implements
13126     to always fail with ENOSYS.  Some functions are actually named
13127     something starting with __ and the normal name is an alias.  */
13128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13129 choke me
13130 #else
13131 $ac_func();
13132 #endif
13133
13134 ; return 0; }
13135 EOF
13136 if { (eval echo configure:13137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13137   rm -rf conftest*
13138   eval "ac_cv_func_$ac_func=yes"
13139 else
13140   echo "configure: failed program was:" >&5
13141   cat conftest.$ac_ext >&5
13142   rm -rf conftest*
13143   eval "ac_cv_func_$ac_func=no"
13144 fi
13145 rm -f conftest*
13146 fi
13147
13148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13149   echo "$ac_t""yes" 1>&6
13150     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13151   cat >> confdefs.h <<EOF
13152 #define $ac_tr_func 1
13153 EOF
13154  
13155 else
13156   echo "$ac_t""no" 1>&6
13157 fi
13158 done
13159
13160   else
13161     
13162   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
13163 echo "configure:13164: checking for _fpclass declaration" >&5
13164   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
13165     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
13166   echo $ac_n "(cached) $ac_c" 1>&6
13167 else
13168   
13169       
13170       ac_ext=C
13171 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13172 ac_cpp='$CXXCPP $CPPFLAGS'
13173 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13174 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13175 cross_compiling=$ac_cv_prog_cxx_cross
13176
13177       cat > conftest.$ac_ext <<EOF
13178 #line 13179 "configure"
13179 #include "confdefs.h"
13180 #include <math.h>
13181                       #ifdef HAVE_IEEEFP_H
13182                       #include <ieeefp.h>
13183                       #endif
13184                      
13185 int main() {
13186  _fpclass(0);
13187 ; return 0; }
13188 EOF
13189 if { (eval echo configure:13190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13190   rm -rf conftest*
13191   glibcpp_cv_func__fpclass_use=yes
13192 else
13193   echo "configure: failed program was:" >&5
13194   cat conftest.$ac_ext >&5
13195   rm -rf conftest*
13196   glibcpp_cv_func__fpclass_use=no
13197 fi
13198 rm -f conftest*
13199       ac_ext=c
13200 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13201 ac_cpp='$CPP $CPPFLAGS'
13202 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13203 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13204 cross_compiling=$ac_cv_prog_cc_cross
13205
13206     
13207 fi
13208
13209   fi
13210   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
13211
13212     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
13213       for ac_func in _fpclass
13214 do
13215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13216 echo "configure:13217: checking for $ac_func" >&5
13217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13218   echo $ac_n "(cached) $ac_c" 1>&6
13219 else
13220   cat > conftest.$ac_ext <<EOF
13221 #line 13222 "configure"
13222 #include "confdefs.h"
13223 /* System header to define __stub macros and hopefully few prototypes,
13224     which can conflict with char $ac_func(); below.  */
13225 #include <assert.h>
13226 /* Override any gcc2 internal prototype to avoid an error.  */
13227 /* We use char because int might match the return type of a gcc2
13228     builtin and then its argument prototype would still apply.  */
13229 char $ac_func();
13230
13231 int main() {
13232
13233 /* The GNU C library defines this for functions which it implements
13234     to always fail with ENOSYS.  Some functions are actually named
13235     something starting with __ and the normal name is an alias.  */
13236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13237 choke me
13238 #else
13239 $ac_func();
13240 #endif
13241
13242 ; return 0; }
13243 EOF
13244 if { (eval echo configure:13245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13245   rm -rf conftest*
13246   eval "ac_cv_func_$ac_func=yes"
13247 else
13248   echo "configure: failed program was:" >&5
13249   cat conftest.$ac_ext >&5
13250   rm -rf conftest*
13251   eval "ac_cv_func_$ac_func=no"
13252 fi
13253 rm -f conftest*
13254 fi
13255
13256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13257   echo "$ac_t""yes" 1>&6
13258     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13259   cat >> confdefs.h <<EOF
13260 #define $ac_tr_func 1
13261 EOF
13262  
13263 else
13264   echo "$ac_t""no" 1>&6
13265 fi
13266 done
13267
13268     fi
13269   fi
13270
13271   
13272   
13273   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
13274 echo "configure:13275: checking for qfpclass declaration" >&5
13275   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
13276     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
13277   echo $ac_n "(cached) $ac_c" 1>&6
13278 else
13279   
13280       
13281       ac_ext=C
13282 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13283 ac_cpp='$CXXCPP $CPPFLAGS'
13284 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13285 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13286 cross_compiling=$ac_cv_prog_cxx_cross
13287
13288       cat > conftest.$ac_ext <<EOF
13289 #line 13290 "configure"
13290 #include "confdefs.h"
13291 #include <math.h>
13292                       #ifdef HAVE_IEEEFP_H
13293                       #include <ieeefp.h>
13294                       #endif
13295                      
13296 int main() {
13297  qfpclass(0);
13298 ; return 0; }
13299 EOF
13300 if { (eval echo configure:13301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13301   rm -rf conftest*
13302   glibcpp_cv_func_qfpclass_use=yes
13303 else
13304   echo "configure: failed program was:" >&5
13305   cat conftest.$ac_ext >&5
13306   rm -rf conftest*
13307   glibcpp_cv_func_qfpclass_use=no
13308 fi
13309 rm -f conftest*
13310       ac_ext=c
13311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13312 ac_cpp='$CPP $CPPFLAGS'
13313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13315 cross_compiling=$ac_cv_prog_cc_cross
13316
13317     
13318 fi
13319
13320   fi
13321   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
13322
13323   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
13324     for ac_func in qfpclass
13325 do
13326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13327 echo "configure:13328: checking for $ac_func" >&5
13328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13329   echo $ac_n "(cached) $ac_c" 1>&6
13330 else
13331   cat > conftest.$ac_ext <<EOF
13332 #line 13333 "configure"
13333 #include "confdefs.h"
13334 /* System header to define __stub macros and hopefully few prototypes,
13335     which can conflict with char $ac_func(); below.  */
13336 #include <assert.h>
13337 /* Override any gcc2 internal prototype to avoid an error.  */
13338 /* We use char because int might match the return type of a gcc2
13339     builtin and then its argument prototype would still apply.  */
13340 char $ac_func();
13341
13342 int main() {
13343
13344 /* The GNU C library defines this for functions which it implements
13345     to always fail with ENOSYS.  Some functions are actually named
13346     something starting with __ and the normal name is an alias.  */
13347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13348 choke me
13349 #else
13350 $ac_func();
13351 #endif
13352
13353 ; return 0; }
13354 EOF
13355 if { (eval echo configure:13356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13356   rm -rf conftest*
13357   eval "ac_cv_func_$ac_func=yes"
13358 else
13359   echo "configure: failed program was:" >&5
13360   cat conftest.$ac_ext >&5
13361   rm -rf conftest*
13362   eval "ac_cv_func_$ac_func=no"
13363 fi
13364 rm -f conftest*
13365 fi
13366
13367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13368   echo "$ac_t""yes" 1>&6
13369     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13370   cat >> confdefs.h <<EOF
13371 #define $ac_tr_func 1
13372 EOF
13373  
13374 else
13375   echo "$ac_t""no" 1>&6
13376 fi
13377 done
13378
13379   else
13380     
13381   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
13382 echo "configure:13383: checking for _qfpclass declaration" >&5
13383   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
13384     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
13385   echo $ac_n "(cached) $ac_c" 1>&6
13386 else
13387   
13388       
13389       ac_ext=C
13390 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13391 ac_cpp='$CXXCPP $CPPFLAGS'
13392 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13393 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13394 cross_compiling=$ac_cv_prog_cxx_cross
13395
13396       cat > conftest.$ac_ext <<EOF
13397 #line 13398 "configure"
13398 #include "confdefs.h"
13399 #include <math.h>
13400                       #ifdef HAVE_IEEEFP_H
13401                       #include <ieeefp.h>
13402                       #endif
13403                      
13404 int main() {
13405  _qfpclass(0);
13406 ; return 0; }
13407 EOF
13408 if { (eval echo configure:13409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13409   rm -rf conftest*
13410   glibcpp_cv_func__qfpclass_use=yes
13411 else
13412   echo "configure: failed program was:" >&5
13413   cat conftest.$ac_ext >&5
13414   rm -rf conftest*
13415   glibcpp_cv_func__qfpclass_use=no
13416 fi
13417 rm -f conftest*
13418       ac_ext=c
13419 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13420 ac_cpp='$CPP $CPPFLAGS'
13421 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13422 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13423 cross_compiling=$ac_cv_prog_cc_cross
13424
13425     
13426 fi
13427
13428   fi
13429   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
13430
13431     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
13432       for ac_func in _qfpclass
13433 do
13434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13435 echo "configure:13436: checking for $ac_func" >&5
13436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13437   echo $ac_n "(cached) $ac_c" 1>&6
13438 else
13439   cat > conftest.$ac_ext <<EOF
13440 #line 13441 "configure"
13441 #include "confdefs.h"
13442 /* System header to define __stub macros and hopefully few prototypes,
13443     which can conflict with char $ac_func(); below.  */
13444 #include <assert.h>
13445 /* Override any gcc2 internal prototype to avoid an error.  */
13446 /* We use char because int might match the return type of a gcc2
13447     builtin and then its argument prototype would still apply.  */
13448 char $ac_func();
13449
13450 int main() {
13451
13452 /* The GNU C library defines this for functions which it implements
13453     to always fail with ENOSYS.  Some functions are actually named
13454     something starting with __ and the normal name is an alias.  */
13455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13456 choke me
13457 #else
13458 $ac_func();
13459 #endif
13460
13461 ; return 0; }
13462 EOF
13463 if { (eval echo configure:13464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13464   rm -rf conftest*
13465   eval "ac_cv_func_$ac_func=yes"
13466 else
13467   echo "configure: failed program was:" >&5
13468   cat conftest.$ac_ext >&5
13469   rm -rf conftest*
13470   eval "ac_cv_func_$ac_func=no"
13471 fi
13472 rm -f conftest*
13473 fi
13474
13475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13476   echo "$ac_t""yes" 1>&6
13477     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13478   cat >> confdefs.h <<EOF
13479 #define $ac_tr_func 1
13480 EOF
13481  
13482 else
13483   echo "$ac_t""no" 1>&6
13484 fi
13485 done
13486
13487     fi
13488   fi
13489
13490   
13491   
13492   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
13493 echo "configure:13494: checking for hypot declaration" >&5
13494   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
13495     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
13496   echo $ac_n "(cached) $ac_c" 1>&6
13497 else
13498   
13499       
13500       ac_ext=C
13501 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13502 ac_cpp='$CXXCPP $CPPFLAGS'
13503 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13504 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13505 cross_compiling=$ac_cv_prog_cxx_cross
13506
13507       cat > conftest.$ac_ext <<EOF
13508 #line 13509 "configure"
13509 #include "confdefs.h"
13510 #include <math.h>
13511 int main() {
13512  hypot(0, 0);
13513 ; return 0; }
13514 EOF
13515 if { (eval echo configure:13516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13516   rm -rf conftest*
13517   glibcpp_cv_func_hypot_use=yes
13518 else
13519   echo "configure: failed program was:" >&5
13520   cat conftest.$ac_ext >&5
13521   rm -rf conftest*
13522   glibcpp_cv_func_hypot_use=no
13523 fi
13524 rm -f conftest*
13525       ac_ext=c
13526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13527 ac_cpp='$CPP $CPPFLAGS'
13528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13529 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13530 cross_compiling=$ac_cv_prog_cc_cross
13531
13532     
13533 fi
13534
13535   fi
13536   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
13537
13538   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
13539     for ac_func in hypot
13540 do
13541 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13542 echo "configure:13543: checking for $ac_func" >&5
13543 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13544   echo $ac_n "(cached) $ac_c" 1>&6
13545 else
13546   cat > conftest.$ac_ext <<EOF
13547 #line 13548 "configure"
13548 #include "confdefs.h"
13549 /* System header to define __stub macros and hopefully few prototypes,
13550     which can conflict with char $ac_func(); below.  */
13551 #include <assert.h>
13552 /* Override any gcc2 internal prototype to avoid an error.  */
13553 /* We use char because int might match the return type of a gcc2
13554     builtin and then its argument prototype would still apply.  */
13555 char $ac_func();
13556
13557 int main() {
13558
13559 /* The GNU C library defines this for functions which it implements
13560     to always fail with ENOSYS.  Some functions are actually named
13561     something starting with __ and the normal name is an alias.  */
13562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13563 choke me
13564 #else
13565 $ac_func();
13566 #endif
13567
13568 ; return 0; }
13569 EOF
13570 if { (eval echo configure:13571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13571   rm -rf conftest*
13572   eval "ac_cv_func_$ac_func=yes"
13573 else
13574   echo "configure: failed program was:" >&5
13575   cat conftest.$ac_ext >&5
13576   rm -rf conftest*
13577   eval "ac_cv_func_$ac_func=no"
13578 fi
13579 rm -f conftest*
13580 fi
13581
13582 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13583   echo "$ac_t""yes" 1>&6
13584     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13585   cat >> confdefs.h <<EOF
13586 #define $ac_tr_func 1
13587 EOF
13588  
13589 else
13590   echo "$ac_t""no" 1>&6
13591 fi
13592 done
13593
13594   else
13595     
13596   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
13597 echo "configure:13598: checking for _hypot declaration" >&5
13598   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
13599     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
13600   echo $ac_n "(cached) $ac_c" 1>&6
13601 else
13602   
13603       
13604       ac_ext=C
13605 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13606 ac_cpp='$CXXCPP $CPPFLAGS'
13607 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13608 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13609 cross_compiling=$ac_cv_prog_cxx_cross
13610
13611       cat > conftest.$ac_ext <<EOF
13612 #line 13613 "configure"
13613 #include "confdefs.h"
13614 #include <math.h>
13615 int main() {
13616  _hypot(0, 0);
13617 ; return 0; }
13618 EOF
13619 if { (eval echo configure:13620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13620   rm -rf conftest*
13621   glibcpp_cv_func__hypot_use=yes
13622 else
13623   echo "configure: failed program was:" >&5
13624   cat conftest.$ac_ext >&5
13625   rm -rf conftest*
13626   glibcpp_cv_func__hypot_use=no
13627 fi
13628 rm -f conftest*
13629       ac_ext=c
13630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13631 ac_cpp='$CPP $CPPFLAGS'
13632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13633 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13634 cross_compiling=$ac_cv_prog_cc_cross
13635
13636     
13637 fi
13638
13639   fi
13640   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
13641
13642     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
13643       for ac_func in _hypot
13644 do
13645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13646 echo "configure:13647: checking for $ac_func" >&5
13647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13648   echo $ac_n "(cached) $ac_c" 1>&6
13649 else
13650   cat > conftest.$ac_ext <<EOF
13651 #line 13652 "configure"
13652 #include "confdefs.h"
13653 /* System header to define __stub macros and hopefully few prototypes,
13654     which can conflict with char $ac_func(); below.  */
13655 #include <assert.h>
13656 /* Override any gcc2 internal prototype to avoid an error.  */
13657 /* We use char because int might match the return type of a gcc2
13658     builtin and then its argument prototype would still apply.  */
13659 char $ac_func();
13660
13661 int main() {
13662
13663 /* The GNU C library defines this for functions which it implements
13664     to always fail with ENOSYS.  Some functions are actually named
13665     something starting with __ and the normal name is an alias.  */
13666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13667 choke me
13668 #else
13669 $ac_func();
13670 #endif
13671
13672 ; return 0; }
13673 EOF
13674 if { (eval echo configure:13675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13675   rm -rf conftest*
13676   eval "ac_cv_func_$ac_func=yes"
13677 else
13678   echo "configure: failed program was:" >&5
13679   cat conftest.$ac_ext >&5
13680   rm -rf conftest*
13681   eval "ac_cv_func_$ac_func=no"
13682 fi
13683 rm -f conftest*
13684 fi
13685
13686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13687   echo "$ac_t""yes" 1>&6
13688     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13689   cat >> confdefs.h <<EOF
13690 #define $ac_tr_func 1
13691 EOF
13692  
13693 else
13694   echo "$ac_t""no" 1>&6
13695 fi
13696 done
13697
13698     fi
13699   fi
13700
13701
13702     
13703   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
13704 echo "configure:13705: checking for float trig functions" >&5
13705   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
13706   echo $ac_n "(cached) $ac_c" 1>&6
13707 else
13708   
13709     
13710     ac_ext=C
13711 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13712 ac_cpp='$CXXCPP $CPPFLAGS'
13713 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13714 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13715 cross_compiling=$ac_cv_prog_cxx_cross
13716
13717     cat > conftest.$ac_ext <<EOF
13718 #line 13719 "configure"
13719 #include "confdefs.h"
13720 #include <math.h>
13721 int main() {
13722  `for x in acosf asinf atanf \
13723                                           cosf sinf tanf \
13724                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
13725 ; return 0; }
13726 EOF
13727 if { (eval echo configure:13728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13728   rm -rf conftest*
13729   glibcpp_cv_func_float_trig_use=yes
13730 else
13731   echo "configure: failed program was:" >&5
13732   cat conftest.$ac_ext >&5
13733   rm -rf conftest*
13734   glibcpp_cv_func_float_trig_use=no
13735 fi
13736 rm -f conftest*
13737     ac_ext=c
13738 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13739 ac_cpp='$CPP $CPPFLAGS'
13740 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13741 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13742 cross_compiling=$ac_cv_prog_cc_cross
13743
13744 fi
13745
13746   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
13747   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
13748     for ac_func in acosf asinf atanf \
13749                                           cosf sinf tanf \
13750                                           coshf sinhf tanhf
13751 do
13752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13753 echo "configure:13754: checking for $ac_func" >&5
13754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13755   echo $ac_n "(cached) $ac_c" 1>&6
13756 else
13757   cat > conftest.$ac_ext <<EOF
13758 #line 13759 "configure"
13759 #include "confdefs.h"
13760 /* System header to define __stub macros and hopefully few prototypes,
13761     which can conflict with char $ac_func(); below.  */
13762 #include <assert.h>
13763 /* Override any gcc2 internal prototype to avoid an error.  */
13764 /* We use char because int might match the return type of a gcc2
13765     builtin and then its argument prototype would still apply.  */
13766 char $ac_func();
13767
13768 int main() {
13769
13770 /* The GNU C library defines this for functions which it implements
13771     to always fail with ENOSYS.  Some functions are actually named
13772     something starting with __ and the normal name is an alias.  */
13773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13774 choke me
13775 #else
13776 $ac_func();
13777 #endif
13778
13779 ; return 0; }
13780 EOF
13781 if { (eval echo configure:13782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13782   rm -rf conftest*
13783   eval "ac_cv_func_$ac_func=yes"
13784 else
13785   echo "configure: failed program was:" >&5
13786   cat conftest.$ac_ext >&5
13787   rm -rf conftest*
13788   eval "ac_cv_func_$ac_func=no"
13789 fi
13790 rm -f conftest*
13791 fi
13792
13793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13794   echo "$ac_t""yes" 1>&6
13795     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13796   cat >> confdefs.h <<EOF
13797 #define $ac_tr_func 1
13798 EOF
13799  
13800 else
13801   echo "$ac_t""no" 1>&6
13802 fi
13803 done
13804
13805   fi
13806
13807   
13808   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
13809 echo "configure:13810: checking for float round functions" >&5
13810   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
13811   echo $ac_n "(cached) $ac_c" 1>&6
13812 else
13813   
13814     
13815     ac_ext=C
13816 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13817 ac_cpp='$CXXCPP $CPPFLAGS'
13818 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13819 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13820 cross_compiling=$ac_cv_prog_cxx_cross
13821
13822     cat > conftest.$ac_ext <<EOF
13823 #line 13824 "configure"
13824 #include "confdefs.h"
13825 #include <math.h>
13826 int main() {
13827  `for x in ceilf floorf; do echo "$x (0);"; done` 
13828 ; return 0; }
13829 EOF
13830 if { (eval echo configure:13831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13831   rm -rf conftest*
13832   glibcpp_cv_func_float_round_use=yes
13833 else
13834   echo "configure: failed program was:" >&5
13835   cat conftest.$ac_ext >&5
13836   rm -rf conftest*
13837   glibcpp_cv_func_float_round_use=no
13838 fi
13839 rm -f conftest*
13840     ac_ext=c
13841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13842 ac_cpp='$CPP $CPPFLAGS'
13843 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13844 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13845 cross_compiling=$ac_cv_prog_cc_cross
13846
13847 fi
13848
13849   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
13850   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
13851     for ac_func in ceilf floorf
13852 do
13853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13854 echo "configure:13855: checking for $ac_func" >&5
13855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13856   echo $ac_n "(cached) $ac_c" 1>&6
13857 else
13858   cat > conftest.$ac_ext <<EOF
13859 #line 13860 "configure"
13860 #include "confdefs.h"
13861 /* System header to define __stub macros and hopefully few prototypes,
13862     which can conflict with char $ac_func(); below.  */
13863 #include <assert.h>
13864 /* Override any gcc2 internal prototype to avoid an error.  */
13865 /* We use char because int might match the return type of a gcc2
13866     builtin and then its argument prototype would still apply.  */
13867 char $ac_func();
13868
13869 int main() {
13870
13871 /* The GNU C library defines this for functions which it implements
13872     to always fail with ENOSYS.  Some functions are actually named
13873     something starting with __ and the normal name is an alias.  */
13874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13875 choke me
13876 #else
13877 $ac_func();
13878 #endif
13879
13880 ; return 0; }
13881 EOF
13882 if { (eval echo configure:13883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13883   rm -rf conftest*
13884   eval "ac_cv_func_$ac_func=yes"
13885 else
13886   echo "configure: failed program was:" >&5
13887   cat conftest.$ac_ext >&5
13888   rm -rf conftest*
13889   eval "ac_cv_func_$ac_func=no"
13890 fi
13891 rm -f conftest*
13892 fi
13893
13894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13895   echo "$ac_t""yes" 1>&6
13896     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13897   cat >> confdefs.h <<EOF
13898 #define $ac_tr_func 1
13899 EOF
13900  
13901 else
13902   echo "$ac_t""no" 1>&6
13903 fi
13904 done
13905
13906   fi
13907
13908   
13909   
13910   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
13911 echo "configure:13912: checking for expf declaration" >&5
13912   if test x${glibcpp_cv_func_expf_use+set} != xset; then
13913     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
13914   echo $ac_n "(cached) $ac_c" 1>&6
13915 else
13916   
13917       
13918       ac_ext=C
13919 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13920 ac_cpp='$CXXCPP $CPPFLAGS'
13921 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13922 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13923 cross_compiling=$ac_cv_prog_cxx_cross
13924
13925       cat > conftest.$ac_ext <<EOF
13926 #line 13927 "configure"
13927 #include "confdefs.h"
13928 #include <math.h>
13929                       #ifdef HAVE_IEEEFP_H
13930                       #include <ieeefp.h>
13931                       #endif
13932                      
13933 int main() {
13934  expf(0);
13935 ; return 0; }
13936 EOF
13937 if { (eval echo configure:13938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13938   rm -rf conftest*
13939   glibcpp_cv_func_expf_use=yes
13940 else
13941   echo "configure: failed program was:" >&5
13942   cat conftest.$ac_ext >&5
13943   rm -rf conftest*
13944   glibcpp_cv_func_expf_use=no
13945 fi
13946 rm -f conftest*
13947       ac_ext=c
13948 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13949 ac_cpp='$CPP $CPPFLAGS'
13950 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13951 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13952 cross_compiling=$ac_cv_prog_cc_cross
13953
13954     
13955 fi
13956
13957   fi
13958   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
13959
13960   if test x$glibcpp_cv_func_expf_use = x"yes"; then
13961     for ac_func in expf
13962 do
13963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13964 echo "configure:13965: checking for $ac_func" >&5
13965 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13966   echo $ac_n "(cached) $ac_c" 1>&6
13967 else
13968   cat > conftest.$ac_ext <<EOF
13969 #line 13970 "configure"
13970 #include "confdefs.h"
13971 /* System header to define __stub macros and hopefully few prototypes,
13972     which can conflict with char $ac_func(); below.  */
13973 #include <assert.h>
13974 /* Override any gcc2 internal prototype to avoid an error.  */
13975 /* We use char because int might match the return type of a gcc2
13976     builtin and then its argument prototype would still apply.  */
13977 char $ac_func();
13978
13979 int main() {
13980
13981 /* The GNU C library defines this for functions which it implements
13982     to always fail with ENOSYS.  Some functions are actually named
13983     something starting with __ and the normal name is an alias.  */
13984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13985 choke me
13986 #else
13987 $ac_func();
13988 #endif
13989
13990 ; return 0; }
13991 EOF
13992 if { (eval echo configure:13993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13993   rm -rf conftest*
13994   eval "ac_cv_func_$ac_func=yes"
13995 else
13996   echo "configure: failed program was:" >&5
13997   cat conftest.$ac_ext >&5
13998   rm -rf conftest*
13999   eval "ac_cv_func_$ac_func=no"
14000 fi
14001 rm -f conftest*
14002 fi
14003
14004 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14005   echo "$ac_t""yes" 1>&6
14006     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14007   cat >> confdefs.h <<EOF
14008 #define $ac_tr_func 1
14009 EOF
14010  
14011 else
14012   echo "$ac_t""no" 1>&6
14013 fi
14014 done
14015
14016   else
14017     
14018   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
14019 echo "configure:14020: checking for _expf declaration" >&5
14020   if test x${glibcpp_cv_func__expf_use+set} != xset; then
14021     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
14022   echo $ac_n "(cached) $ac_c" 1>&6
14023 else
14024   
14025       
14026       ac_ext=C
14027 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14028 ac_cpp='$CXXCPP $CPPFLAGS'
14029 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14030 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14031 cross_compiling=$ac_cv_prog_cxx_cross
14032
14033       cat > conftest.$ac_ext <<EOF
14034 #line 14035 "configure"
14035 #include "confdefs.h"
14036 #include <math.h>
14037                       #ifdef HAVE_IEEEFP_H
14038                       #include <ieeefp.h>
14039                       #endif
14040                      
14041 int main() {
14042  _expf(0);
14043 ; return 0; }
14044 EOF
14045 if { (eval echo configure:14046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14046   rm -rf conftest*
14047   glibcpp_cv_func__expf_use=yes
14048 else
14049   echo "configure: failed program was:" >&5
14050   cat conftest.$ac_ext >&5
14051   rm -rf conftest*
14052   glibcpp_cv_func__expf_use=no
14053 fi
14054 rm -f conftest*
14055       ac_ext=c
14056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14057 ac_cpp='$CPP $CPPFLAGS'
14058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14060 cross_compiling=$ac_cv_prog_cc_cross
14061
14062     
14063 fi
14064
14065   fi
14066   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
14067
14068     if test x$glibcpp_cv_func__expf_use = x"yes"; then
14069       for ac_func in _expf
14070 do
14071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14072 echo "configure:14073: checking for $ac_func" >&5
14073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14074   echo $ac_n "(cached) $ac_c" 1>&6
14075 else
14076   cat > conftest.$ac_ext <<EOF
14077 #line 14078 "configure"
14078 #include "confdefs.h"
14079 /* System header to define __stub macros and hopefully few prototypes,
14080     which can conflict with char $ac_func(); below.  */
14081 #include <assert.h>
14082 /* Override any gcc2 internal prototype to avoid an error.  */
14083 /* We use char because int might match the return type of a gcc2
14084     builtin and then its argument prototype would still apply.  */
14085 char $ac_func();
14086
14087 int main() {
14088
14089 /* The GNU C library defines this for functions which it implements
14090     to always fail with ENOSYS.  Some functions are actually named
14091     something starting with __ and the normal name is an alias.  */
14092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14093 choke me
14094 #else
14095 $ac_func();
14096 #endif
14097
14098 ; return 0; }
14099 EOF
14100 if { (eval echo configure:14101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14101   rm -rf conftest*
14102   eval "ac_cv_func_$ac_func=yes"
14103 else
14104   echo "configure: failed program was:" >&5
14105   cat conftest.$ac_ext >&5
14106   rm -rf conftest*
14107   eval "ac_cv_func_$ac_func=no"
14108 fi
14109 rm -f conftest*
14110 fi
14111
14112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14113   echo "$ac_t""yes" 1>&6
14114     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14115   cat >> confdefs.h <<EOF
14116 #define $ac_tr_func 1
14117 EOF
14118  
14119 else
14120   echo "$ac_t""no" 1>&6
14121 fi
14122 done
14123
14124     fi
14125   fi
14126
14127   
14128   
14129   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
14130 echo "configure:14131: checking for isnanf declaration" >&5
14131   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
14132     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
14133   echo $ac_n "(cached) $ac_c" 1>&6
14134 else
14135   
14136       
14137       ac_ext=C
14138 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14139 ac_cpp='$CXXCPP $CPPFLAGS'
14140 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14141 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14142 cross_compiling=$ac_cv_prog_cxx_cross
14143
14144       cat > conftest.$ac_ext <<EOF
14145 #line 14146 "configure"
14146 #include "confdefs.h"
14147 #include <math.h>
14148                       #ifdef HAVE_IEEEFP_H
14149                       #include <ieeefp.h>
14150                       #endif
14151                      
14152 int main() {
14153  isnanf(0);
14154 ; return 0; }
14155 EOF
14156 if { (eval echo configure:14157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14157   rm -rf conftest*
14158   glibcpp_cv_func_isnanf_use=yes
14159 else
14160   echo "configure: failed program was:" >&5
14161   cat conftest.$ac_ext >&5
14162   rm -rf conftest*
14163   glibcpp_cv_func_isnanf_use=no
14164 fi
14165 rm -f conftest*
14166       ac_ext=c
14167 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14168 ac_cpp='$CPP $CPPFLAGS'
14169 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14170 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14171 cross_compiling=$ac_cv_prog_cc_cross
14172
14173     
14174 fi
14175
14176   fi
14177   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
14178
14179   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
14180     for ac_func in isnanf
14181 do
14182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14183 echo "configure:14184: checking for $ac_func" >&5
14184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14185   echo $ac_n "(cached) $ac_c" 1>&6
14186 else
14187   cat > conftest.$ac_ext <<EOF
14188 #line 14189 "configure"
14189 #include "confdefs.h"
14190 /* System header to define __stub macros and hopefully few prototypes,
14191     which can conflict with char $ac_func(); below.  */
14192 #include <assert.h>
14193 /* Override any gcc2 internal prototype to avoid an error.  */
14194 /* We use char because int might match the return type of a gcc2
14195     builtin and then its argument prototype would still apply.  */
14196 char $ac_func();
14197
14198 int main() {
14199
14200 /* The GNU C library defines this for functions which it implements
14201     to always fail with ENOSYS.  Some functions are actually named
14202     something starting with __ and the normal name is an alias.  */
14203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14204 choke me
14205 #else
14206 $ac_func();
14207 #endif
14208
14209 ; return 0; }
14210 EOF
14211 if { (eval echo configure:14212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14212   rm -rf conftest*
14213   eval "ac_cv_func_$ac_func=yes"
14214 else
14215   echo "configure: failed program was:" >&5
14216   cat conftest.$ac_ext >&5
14217   rm -rf conftest*
14218   eval "ac_cv_func_$ac_func=no"
14219 fi
14220 rm -f conftest*
14221 fi
14222
14223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14224   echo "$ac_t""yes" 1>&6
14225     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14226   cat >> confdefs.h <<EOF
14227 #define $ac_tr_func 1
14228 EOF
14229  
14230 else
14231   echo "$ac_t""no" 1>&6
14232 fi
14233 done
14234
14235   else
14236     
14237   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
14238 echo "configure:14239: checking for _isnanf declaration" >&5
14239   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
14240     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
14241   echo $ac_n "(cached) $ac_c" 1>&6
14242 else
14243   
14244       
14245       ac_ext=C
14246 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14247 ac_cpp='$CXXCPP $CPPFLAGS'
14248 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14249 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14250 cross_compiling=$ac_cv_prog_cxx_cross
14251
14252       cat > conftest.$ac_ext <<EOF
14253 #line 14254 "configure"
14254 #include "confdefs.h"
14255 #include <math.h>
14256                       #ifdef HAVE_IEEEFP_H
14257                       #include <ieeefp.h>
14258                       #endif
14259                      
14260 int main() {
14261  _isnanf(0);
14262 ; return 0; }
14263 EOF
14264 if { (eval echo configure:14265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14265   rm -rf conftest*
14266   glibcpp_cv_func__isnanf_use=yes
14267 else
14268   echo "configure: failed program was:" >&5
14269   cat conftest.$ac_ext >&5
14270   rm -rf conftest*
14271   glibcpp_cv_func__isnanf_use=no
14272 fi
14273 rm -f conftest*
14274       ac_ext=c
14275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14276 ac_cpp='$CPP $CPPFLAGS'
14277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14279 cross_compiling=$ac_cv_prog_cc_cross
14280
14281     
14282 fi
14283
14284   fi
14285   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
14286
14287     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
14288       for ac_func in _isnanf
14289 do
14290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14291 echo "configure:14292: checking for $ac_func" >&5
14292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14293   echo $ac_n "(cached) $ac_c" 1>&6
14294 else
14295   cat > conftest.$ac_ext <<EOF
14296 #line 14297 "configure"
14297 #include "confdefs.h"
14298 /* System header to define __stub macros and hopefully few prototypes,
14299     which can conflict with char $ac_func(); below.  */
14300 #include <assert.h>
14301 /* Override any gcc2 internal prototype to avoid an error.  */
14302 /* We use char because int might match the return type of a gcc2
14303     builtin and then its argument prototype would still apply.  */
14304 char $ac_func();
14305
14306 int main() {
14307
14308 /* The GNU C library defines this for functions which it implements
14309     to always fail with ENOSYS.  Some functions are actually named
14310     something starting with __ and the normal name is an alias.  */
14311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14312 choke me
14313 #else
14314 $ac_func();
14315 #endif
14316
14317 ; return 0; }
14318 EOF
14319 if { (eval echo configure:14320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14320   rm -rf conftest*
14321   eval "ac_cv_func_$ac_func=yes"
14322 else
14323   echo "configure: failed program was:" >&5
14324   cat conftest.$ac_ext >&5
14325   rm -rf conftest*
14326   eval "ac_cv_func_$ac_func=no"
14327 fi
14328 rm -f conftest*
14329 fi
14330
14331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14332   echo "$ac_t""yes" 1>&6
14333     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14334   cat >> confdefs.h <<EOF
14335 #define $ac_tr_func 1
14336 EOF
14337  
14338 else
14339   echo "$ac_t""no" 1>&6
14340 fi
14341 done
14342
14343     fi
14344   fi
14345
14346   
14347   
14348   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
14349 echo "configure:14350: checking for isinff declaration" >&5
14350   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
14351     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
14352   echo $ac_n "(cached) $ac_c" 1>&6
14353 else
14354   
14355       
14356       ac_ext=C
14357 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14358 ac_cpp='$CXXCPP $CPPFLAGS'
14359 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14360 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14361 cross_compiling=$ac_cv_prog_cxx_cross
14362
14363       cat > conftest.$ac_ext <<EOF
14364 #line 14365 "configure"
14365 #include "confdefs.h"
14366 #include <math.h>
14367                       #ifdef HAVE_IEEEFP_H
14368                       #include <ieeefp.h>
14369                       #endif
14370                      
14371 int main() {
14372  isinff(0);
14373 ; return 0; }
14374 EOF
14375 if { (eval echo configure:14376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14376   rm -rf conftest*
14377   glibcpp_cv_func_isinff_use=yes
14378 else
14379   echo "configure: failed program was:" >&5
14380   cat conftest.$ac_ext >&5
14381   rm -rf conftest*
14382   glibcpp_cv_func_isinff_use=no
14383 fi
14384 rm -f conftest*
14385       ac_ext=c
14386 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14387 ac_cpp='$CPP $CPPFLAGS'
14388 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14389 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14390 cross_compiling=$ac_cv_prog_cc_cross
14391
14392     
14393 fi
14394
14395   fi
14396   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
14397
14398   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
14399     for ac_func in isinff
14400 do
14401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14402 echo "configure:14403: checking for $ac_func" >&5
14403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14404   echo $ac_n "(cached) $ac_c" 1>&6
14405 else
14406   cat > conftest.$ac_ext <<EOF
14407 #line 14408 "configure"
14408 #include "confdefs.h"
14409 /* System header to define __stub macros and hopefully few prototypes,
14410     which can conflict with char $ac_func(); below.  */
14411 #include <assert.h>
14412 /* Override any gcc2 internal prototype to avoid an error.  */
14413 /* We use char because int might match the return type of a gcc2
14414     builtin and then its argument prototype would still apply.  */
14415 char $ac_func();
14416
14417 int main() {
14418
14419 /* The GNU C library defines this for functions which it implements
14420     to always fail with ENOSYS.  Some functions are actually named
14421     something starting with __ and the normal name is an alias.  */
14422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14423 choke me
14424 #else
14425 $ac_func();
14426 #endif
14427
14428 ; return 0; }
14429 EOF
14430 if { (eval echo configure:14431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14431   rm -rf conftest*
14432   eval "ac_cv_func_$ac_func=yes"
14433 else
14434   echo "configure: failed program was:" >&5
14435   cat conftest.$ac_ext >&5
14436   rm -rf conftest*
14437   eval "ac_cv_func_$ac_func=no"
14438 fi
14439 rm -f conftest*
14440 fi
14441
14442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14443   echo "$ac_t""yes" 1>&6
14444     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14445   cat >> confdefs.h <<EOF
14446 #define $ac_tr_func 1
14447 EOF
14448  
14449 else
14450   echo "$ac_t""no" 1>&6
14451 fi
14452 done
14453
14454   else
14455     
14456   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
14457 echo "configure:14458: checking for _isinff declaration" >&5
14458   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
14459     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
14460   echo $ac_n "(cached) $ac_c" 1>&6
14461 else
14462   
14463       
14464       ac_ext=C
14465 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14466 ac_cpp='$CXXCPP $CPPFLAGS'
14467 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14468 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14469 cross_compiling=$ac_cv_prog_cxx_cross
14470
14471       cat > conftest.$ac_ext <<EOF
14472 #line 14473 "configure"
14473 #include "confdefs.h"
14474 #include <math.h>
14475                       #ifdef HAVE_IEEEFP_H
14476                       #include <ieeefp.h>
14477                       #endif
14478                      
14479 int main() {
14480  _isinff(0);
14481 ; return 0; }
14482 EOF
14483 if { (eval echo configure:14484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14484   rm -rf conftest*
14485   glibcpp_cv_func__isinff_use=yes
14486 else
14487   echo "configure: failed program was:" >&5
14488   cat conftest.$ac_ext >&5
14489   rm -rf conftest*
14490   glibcpp_cv_func__isinff_use=no
14491 fi
14492 rm -f conftest*
14493       ac_ext=c
14494 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14495 ac_cpp='$CPP $CPPFLAGS'
14496 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14497 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14498 cross_compiling=$ac_cv_prog_cc_cross
14499
14500     
14501 fi
14502
14503   fi
14504   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
14505
14506     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
14507       for ac_func in _isinff
14508 do
14509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14510 echo "configure:14511: checking for $ac_func" >&5
14511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14512   echo $ac_n "(cached) $ac_c" 1>&6
14513 else
14514   cat > conftest.$ac_ext <<EOF
14515 #line 14516 "configure"
14516 #include "confdefs.h"
14517 /* System header to define __stub macros and hopefully few prototypes,
14518     which can conflict with char $ac_func(); below.  */
14519 #include <assert.h>
14520 /* Override any gcc2 internal prototype to avoid an error.  */
14521 /* We use char because int might match the return type of a gcc2
14522     builtin and then its argument prototype would still apply.  */
14523 char $ac_func();
14524
14525 int main() {
14526
14527 /* The GNU C library defines this for functions which it implements
14528     to always fail with ENOSYS.  Some functions are actually named
14529     something starting with __ and the normal name is an alias.  */
14530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14531 choke me
14532 #else
14533 $ac_func();
14534 #endif
14535
14536 ; return 0; }
14537 EOF
14538 if { (eval echo configure:14539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14539   rm -rf conftest*
14540   eval "ac_cv_func_$ac_func=yes"
14541 else
14542   echo "configure: failed program was:" >&5
14543   cat conftest.$ac_ext >&5
14544   rm -rf conftest*
14545   eval "ac_cv_func_$ac_func=no"
14546 fi
14547 rm -f conftest*
14548 fi
14549
14550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14551   echo "$ac_t""yes" 1>&6
14552     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14553   cat >> confdefs.h <<EOF
14554 #define $ac_tr_func 1
14555 EOF
14556  
14557 else
14558   echo "$ac_t""no" 1>&6
14559 fi
14560 done
14561
14562     fi
14563   fi
14564
14565   
14566   
14567   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
14568 echo "configure:14569: checking for atan2f declaration" >&5
14569   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
14570     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
14571   echo $ac_n "(cached) $ac_c" 1>&6
14572 else
14573   
14574       
14575       ac_ext=C
14576 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14577 ac_cpp='$CXXCPP $CPPFLAGS'
14578 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14579 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14580 cross_compiling=$ac_cv_prog_cxx_cross
14581
14582       cat > conftest.$ac_ext <<EOF
14583 #line 14584 "configure"
14584 #include "confdefs.h"
14585 #include <math.h>
14586 int main() {
14587  atan2f(0, 0);
14588 ; return 0; }
14589 EOF
14590 if { (eval echo configure:14591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14591   rm -rf conftest*
14592   glibcpp_cv_func_atan2f_use=yes
14593 else
14594   echo "configure: failed program was:" >&5
14595   cat conftest.$ac_ext >&5
14596   rm -rf conftest*
14597   glibcpp_cv_func_atan2f_use=no
14598 fi
14599 rm -f conftest*
14600       ac_ext=c
14601 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14602 ac_cpp='$CPP $CPPFLAGS'
14603 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14604 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14605 cross_compiling=$ac_cv_prog_cc_cross
14606
14607     
14608 fi
14609
14610   fi
14611   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
14612
14613   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
14614     for ac_func in atan2f
14615 do
14616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14617 echo "configure:14618: checking for $ac_func" >&5
14618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14619   echo $ac_n "(cached) $ac_c" 1>&6
14620 else
14621   cat > conftest.$ac_ext <<EOF
14622 #line 14623 "configure"
14623 #include "confdefs.h"
14624 /* System header to define __stub macros and hopefully few prototypes,
14625     which can conflict with char $ac_func(); below.  */
14626 #include <assert.h>
14627 /* Override any gcc2 internal prototype to avoid an error.  */
14628 /* We use char because int might match the return type of a gcc2
14629     builtin and then its argument prototype would still apply.  */
14630 char $ac_func();
14631
14632 int main() {
14633
14634 /* The GNU C library defines this for functions which it implements
14635     to always fail with ENOSYS.  Some functions are actually named
14636     something starting with __ and the normal name is an alias.  */
14637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14638 choke me
14639 #else
14640 $ac_func();
14641 #endif
14642
14643 ; return 0; }
14644 EOF
14645 if { (eval echo configure:14646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14646   rm -rf conftest*
14647   eval "ac_cv_func_$ac_func=yes"
14648 else
14649   echo "configure: failed program was:" >&5
14650   cat conftest.$ac_ext >&5
14651   rm -rf conftest*
14652   eval "ac_cv_func_$ac_func=no"
14653 fi
14654 rm -f conftest*
14655 fi
14656
14657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14658   echo "$ac_t""yes" 1>&6
14659     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14660   cat >> confdefs.h <<EOF
14661 #define $ac_tr_func 1
14662 EOF
14663  
14664 else
14665   echo "$ac_t""no" 1>&6
14666 fi
14667 done
14668
14669   else
14670     
14671   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
14672 echo "configure:14673: checking for _atan2f declaration" >&5
14673   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
14674     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
14675   echo $ac_n "(cached) $ac_c" 1>&6
14676 else
14677   
14678       
14679       ac_ext=C
14680 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14681 ac_cpp='$CXXCPP $CPPFLAGS'
14682 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14683 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14684 cross_compiling=$ac_cv_prog_cxx_cross
14685
14686       cat > conftest.$ac_ext <<EOF
14687 #line 14688 "configure"
14688 #include "confdefs.h"
14689 #include <math.h>
14690 int main() {
14691  _atan2f(0, 0);
14692 ; return 0; }
14693 EOF
14694 if { (eval echo configure:14695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14695   rm -rf conftest*
14696   glibcpp_cv_func__atan2f_use=yes
14697 else
14698   echo "configure: failed program was:" >&5
14699   cat conftest.$ac_ext >&5
14700   rm -rf conftest*
14701   glibcpp_cv_func__atan2f_use=no
14702 fi
14703 rm -f conftest*
14704       ac_ext=c
14705 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14706 ac_cpp='$CPP $CPPFLAGS'
14707 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14708 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14709 cross_compiling=$ac_cv_prog_cc_cross
14710
14711     
14712 fi
14713
14714   fi
14715   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
14716
14717     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
14718       for ac_func in _atan2f
14719 do
14720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14721 echo "configure:14722: checking for $ac_func" >&5
14722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14723   echo $ac_n "(cached) $ac_c" 1>&6
14724 else
14725   cat > conftest.$ac_ext <<EOF
14726 #line 14727 "configure"
14727 #include "confdefs.h"
14728 /* System header to define __stub macros and hopefully few prototypes,
14729     which can conflict with char $ac_func(); below.  */
14730 #include <assert.h>
14731 /* Override any gcc2 internal prototype to avoid an error.  */
14732 /* We use char because int might match the return type of a gcc2
14733     builtin and then its argument prototype would still apply.  */
14734 char $ac_func();
14735
14736 int main() {
14737
14738 /* The GNU C library defines this for functions which it implements
14739     to always fail with ENOSYS.  Some functions are actually named
14740     something starting with __ and the normal name is an alias.  */
14741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14742 choke me
14743 #else
14744 $ac_func();
14745 #endif
14746
14747 ; return 0; }
14748 EOF
14749 if { (eval echo configure:14750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14750   rm -rf conftest*
14751   eval "ac_cv_func_$ac_func=yes"
14752 else
14753   echo "configure: failed program was:" >&5
14754   cat conftest.$ac_ext >&5
14755   rm -rf conftest*
14756   eval "ac_cv_func_$ac_func=no"
14757 fi
14758 rm -f conftest*
14759 fi
14760
14761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14762   echo "$ac_t""yes" 1>&6
14763     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14764   cat >> confdefs.h <<EOF
14765 #define $ac_tr_func 1
14766 EOF
14767  
14768 else
14769   echo "$ac_t""no" 1>&6
14770 fi
14771 done
14772
14773     fi
14774   fi
14775
14776   
14777   
14778   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
14779 echo "configure:14780: checking for fabsf declaration" >&5
14780   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
14781     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
14782   echo $ac_n "(cached) $ac_c" 1>&6
14783 else
14784   
14785       
14786       ac_ext=C
14787 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14788 ac_cpp='$CXXCPP $CPPFLAGS'
14789 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14790 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14791 cross_compiling=$ac_cv_prog_cxx_cross
14792
14793       cat > conftest.$ac_ext <<EOF
14794 #line 14795 "configure"
14795 #include "confdefs.h"
14796 #include <math.h>
14797                       #ifdef HAVE_IEEEFP_H
14798                       #include <ieeefp.h>
14799                       #endif
14800                      
14801 int main() {
14802  fabsf(0);
14803 ; return 0; }
14804 EOF
14805 if { (eval echo configure:14806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14806   rm -rf conftest*
14807   glibcpp_cv_func_fabsf_use=yes
14808 else
14809   echo "configure: failed program was:" >&5
14810   cat conftest.$ac_ext >&5
14811   rm -rf conftest*
14812   glibcpp_cv_func_fabsf_use=no
14813 fi
14814 rm -f conftest*
14815       ac_ext=c
14816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14817 ac_cpp='$CPP $CPPFLAGS'
14818 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14819 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14820 cross_compiling=$ac_cv_prog_cc_cross
14821
14822     
14823 fi
14824
14825   fi
14826   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
14827
14828   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
14829     for ac_func in fabsf
14830 do
14831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14832 echo "configure:14833: checking for $ac_func" >&5
14833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14834   echo $ac_n "(cached) $ac_c" 1>&6
14835 else
14836   cat > conftest.$ac_ext <<EOF
14837 #line 14838 "configure"
14838 #include "confdefs.h"
14839 /* System header to define __stub macros and hopefully few prototypes,
14840     which can conflict with char $ac_func(); below.  */
14841 #include <assert.h>
14842 /* Override any gcc2 internal prototype to avoid an error.  */
14843 /* We use char because int might match the return type of a gcc2
14844     builtin and then its argument prototype would still apply.  */
14845 char $ac_func();
14846
14847 int main() {
14848
14849 /* The GNU C library defines this for functions which it implements
14850     to always fail with ENOSYS.  Some functions are actually named
14851     something starting with __ and the normal name is an alias.  */
14852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14853 choke me
14854 #else
14855 $ac_func();
14856 #endif
14857
14858 ; return 0; }
14859 EOF
14860 if { (eval echo configure:14861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14861   rm -rf conftest*
14862   eval "ac_cv_func_$ac_func=yes"
14863 else
14864   echo "configure: failed program was:" >&5
14865   cat conftest.$ac_ext >&5
14866   rm -rf conftest*
14867   eval "ac_cv_func_$ac_func=no"
14868 fi
14869 rm -f conftest*
14870 fi
14871
14872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14873   echo "$ac_t""yes" 1>&6
14874     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14875   cat >> confdefs.h <<EOF
14876 #define $ac_tr_func 1
14877 EOF
14878  
14879 else
14880   echo "$ac_t""no" 1>&6
14881 fi
14882 done
14883
14884   else
14885     
14886   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
14887 echo "configure:14888: checking for _fabsf declaration" >&5
14888   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
14889     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
14890   echo $ac_n "(cached) $ac_c" 1>&6
14891 else
14892   
14893       
14894       ac_ext=C
14895 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14896 ac_cpp='$CXXCPP $CPPFLAGS'
14897 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14898 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14899 cross_compiling=$ac_cv_prog_cxx_cross
14900
14901       cat > conftest.$ac_ext <<EOF
14902 #line 14903 "configure"
14903 #include "confdefs.h"
14904 #include <math.h>
14905                       #ifdef HAVE_IEEEFP_H
14906                       #include <ieeefp.h>
14907                       #endif
14908                      
14909 int main() {
14910  _fabsf(0);
14911 ; return 0; }
14912 EOF
14913 if { (eval echo configure:14914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14914   rm -rf conftest*
14915   glibcpp_cv_func__fabsf_use=yes
14916 else
14917   echo "configure: failed program was:" >&5
14918   cat conftest.$ac_ext >&5
14919   rm -rf conftest*
14920   glibcpp_cv_func__fabsf_use=no
14921 fi
14922 rm -f conftest*
14923       ac_ext=c
14924 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14925 ac_cpp='$CPP $CPPFLAGS'
14926 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14927 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14928 cross_compiling=$ac_cv_prog_cc_cross
14929
14930     
14931 fi
14932
14933   fi
14934   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
14935
14936     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
14937       for ac_func in _fabsf
14938 do
14939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14940 echo "configure:14941: checking for $ac_func" >&5
14941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14942   echo $ac_n "(cached) $ac_c" 1>&6
14943 else
14944   cat > conftest.$ac_ext <<EOF
14945 #line 14946 "configure"
14946 #include "confdefs.h"
14947 /* System header to define __stub macros and hopefully few prototypes,
14948     which can conflict with char $ac_func(); below.  */
14949 #include <assert.h>
14950 /* Override any gcc2 internal prototype to avoid an error.  */
14951 /* We use char because int might match the return type of a gcc2
14952     builtin and then its argument prototype would still apply.  */
14953 char $ac_func();
14954
14955 int main() {
14956
14957 /* The GNU C library defines this for functions which it implements
14958     to always fail with ENOSYS.  Some functions are actually named
14959     something starting with __ and the normal name is an alias.  */
14960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14961 choke me
14962 #else
14963 $ac_func();
14964 #endif
14965
14966 ; return 0; }
14967 EOF
14968 if { (eval echo configure:14969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14969   rm -rf conftest*
14970   eval "ac_cv_func_$ac_func=yes"
14971 else
14972   echo "configure: failed program was:" >&5
14973   cat conftest.$ac_ext >&5
14974   rm -rf conftest*
14975   eval "ac_cv_func_$ac_func=no"
14976 fi
14977 rm -f conftest*
14978 fi
14979
14980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14981   echo "$ac_t""yes" 1>&6
14982     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14983   cat >> confdefs.h <<EOF
14984 #define $ac_tr_func 1
14985 EOF
14986  
14987 else
14988   echo "$ac_t""no" 1>&6
14989 fi
14990 done
14991
14992     fi
14993   fi
14994
14995   
14996   
14997   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
14998 echo "configure:14999: checking for fmodf declaration" >&5
14999   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
15000     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
15001   echo $ac_n "(cached) $ac_c" 1>&6
15002 else
15003   
15004       
15005       ac_ext=C
15006 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15007 ac_cpp='$CXXCPP $CPPFLAGS'
15008 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15009 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15010 cross_compiling=$ac_cv_prog_cxx_cross
15011
15012       cat > conftest.$ac_ext <<EOF
15013 #line 15014 "configure"
15014 #include "confdefs.h"
15015 #include <math.h>
15016 int main() {
15017  fmodf(0, 0);
15018 ; return 0; }
15019 EOF
15020 if { (eval echo configure:15021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15021   rm -rf conftest*
15022   glibcpp_cv_func_fmodf_use=yes
15023 else
15024   echo "configure: failed program was:" >&5
15025   cat conftest.$ac_ext >&5
15026   rm -rf conftest*
15027   glibcpp_cv_func_fmodf_use=no
15028 fi
15029 rm -f conftest*
15030       ac_ext=c
15031 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15032 ac_cpp='$CPP $CPPFLAGS'
15033 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15034 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15035 cross_compiling=$ac_cv_prog_cc_cross
15036
15037     
15038 fi
15039
15040   fi
15041   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
15042
15043   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
15044     for ac_func in fmodf
15045 do
15046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15047 echo "configure:15048: checking for $ac_func" >&5
15048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15049   echo $ac_n "(cached) $ac_c" 1>&6
15050 else
15051   cat > conftest.$ac_ext <<EOF
15052 #line 15053 "configure"
15053 #include "confdefs.h"
15054 /* System header to define __stub macros and hopefully few prototypes,
15055     which can conflict with char $ac_func(); below.  */
15056 #include <assert.h>
15057 /* Override any gcc2 internal prototype to avoid an error.  */
15058 /* We use char because int might match the return type of a gcc2
15059     builtin and then its argument prototype would still apply.  */
15060 char $ac_func();
15061
15062 int main() {
15063
15064 /* The GNU C library defines this for functions which it implements
15065     to always fail with ENOSYS.  Some functions are actually named
15066     something starting with __ and the normal name is an alias.  */
15067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15068 choke me
15069 #else
15070 $ac_func();
15071 #endif
15072
15073 ; return 0; }
15074 EOF
15075 if { (eval echo configure:15076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15076   rm -rf conftest*
15077   eval "ac_cv_func_$ac_func=yes"
15078 else
15079   echo "configure: failed program was:" >&5
15080   cat conftest.$ac_ext >&5
15081   rm -rf conftest*
15082   eval "ac_cv_func_$ac_func=no"
15083 fi
15084 rm -f conftest*
15085 fi
15086
15087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15088   echo "$ac_t""yes" 1>&6
15089     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15090   cat >> confdefs.h <<EOF
15091 #define $ac_tr_func 1
15092 EOF
15093  
15094 else
15095   echo "$ac_t""no" 1>&6
15096 fi
15097 done
15098
15099   else
15100     
15101   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
15102 echo "configure:15103: checking for _fmodf declaration" >&5
15103   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
15104     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
15105   echo $ac_n "(cached) $ac_c" 1>&6
15106 else
15107   
15108       
15109       ac_ext=C
15110 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15111 ac_cpp='$CXXCPP $CPPFLAGS'
15112 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15113 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15114 cross_compiling=$ac_cv_prog_cxx_cross
15115
15116       cat > conftest.$ac_ext <<EOF
15117 #line 15118 "configure"
15118 #include "confdefs.h"
15119 #include <math.h>
15120 int main() {
15121  _fmodf(0, 0);
15122 ; return 0; }
15123 EOF
15124 if { (eval echo configure:15125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15125   rm -rf conftest*
15126   glibcpp_cv_func__fmodf_use=yes
15127 else
15128   echo "configure: failed program was:" >&5
15129   cat conftest.$ac_ext >&5
15130   rm -rf conftest*
15131   glibcpp_cv_func__fmodf_use=no
15132 fi
15133 rm -f conftest*
15134       ac_ext=c
15135 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15136 ac_cpp='$CPP $CPPFLAGS'
15137 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15138 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15139 cross_compiling=$ac_cv_prog_cc_cross
15140
15141     
15142 fi
15143
15144   fi
15145   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
15146
15147     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
15148       for ac_func in _fmodf
15149 do
15150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15151 echo "configure:15152: checking for $ac_func" >&5
15152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15153   echo $ac_n "(cached) $ac_c" 1>&6
15154 else
15155   cat > conftest.$ac_ext <<EOF
15156 #line 15157 "configure"
15157 #include "confdefs.h"
15158 /* System header to define __stub macros and hopefully few prototypes,
15159     which can conflict with char $ac_func(); below.  */
15160 #include <assert.h>
15161 /* Override any gcc2 internal prototype to avoid an error.  */
15162 /* We use char because int might match the return type of a gcc2
15163     builtin and then its argument prototype would still apply.  */
15164 char $ac_func();
15165
15166 int main() {
15167
15168 /* The GNU C library defines this for functions which it implements
15169     to always fail with ENOSYS.  Some functions are actually named
15170     something starting with __ and the normal name is an alias.  */
15171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15172 choke me
15173 #else
15174 $ac_func();
15175 #endif
15176
15177 ; return 0; }
15178 EOF
15179 if { (eval echo configure:15180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15180   rm -rf conftest*
15181   eval "ac_cv_func_$ac_func=yes"
15182 else
15183   echo "configure: failed program was:" >&5
15184   cat conftest.$ac_ext >&5
15185   rm -rf conftest*
15186   eval "ac_cv_func_$ac_func=no"
15187 fi
15188 rm -f conftest*
15189 fi
15190
15191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15192   echo "$ac_t""yes" 1>&6
15193     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15194   cat >> confdefs.h <<EOF
15195 #define $ac_tr_func 1
15196 EOF
15197  
15198 else
15199   echo "$ac_t""no" 1>&6
15200 fi
15201 done
15202
15203     fi
15204   fi
15205
15206   
15207   
15208   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
15209 echo "configure:15210: checking for frexpf declaration" >&5
15210   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
15211     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
15212   echo $ac_n "(cached) $ac_c" 1>&6
15213 else
15214   
15215       
15216       ac_ext=C
15217 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15218 ac_cpp='$CXXCPP $CPPFLAGS'
15219 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15220 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15221 cross_compiling=$ac_cv_prog_cxx_cross
15222
15223       cat > conftest.$ac_ext <<EOF
15224 #line 15225 "configure"
15225 #include "confdefs.h"
15226 #include <math.h>
15227 int main() {
15228  frexpf(0, 0);
15229 ; return 0; }
15230 EOF
15231 if { (eval echo configure:15232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15232   rm -rf conftest*
15233   glibcpp_cv_func_frexpf_use=yes
15234 else
15235   echo "configure: failed program was:" >&5
15236   cat conftest.$ac_ext >&5
15237   rm -rf conftest*
15238   glibcpp_cv_func_frexpf_use=no
15239 fi
15240 rm -f conftest*
15241       ac_ext=c
15242 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15243 ac_cpp='$CPP $CPPFLAGS'
15244 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15245 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15246 cross_compiling=$ac_cv_prog_cc_cross
15247
15248     
15249 fi
15250
15251   fi
15252   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
15253
15254   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
15255     for ac_func in frexpf
15256 do
15257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15258 echo "configure:15259: checking for $ac_func" >&5
15259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15260   echo $ac_n "(cached) $ac_c" 1>&6
15261 else
15262   cat > conftest.$ac_ext <<EOF
15263 #line 15264 "configure"
15264 #include "confdefs.h"
15265 /* System header to define __stub macros and hopefully few prototypes,
15266     which can conflict with char $ac_func(); below.  */
15267 #include <assert.h>
15268 /* Override any gcc2 internal prototype to avoid an error.  */
15269 /* We use char because int might match the return type of a gcc2
15270     builtin and then its argument prototype would still apply.  */
15271 char $ac_func();
15272
15273 int main() {
15274
15275 /* The GNU C library defines this for functions which it implements
15276     to always fail with ENOSYS.  Some functions are actually named
15277     something starting with __ and the normal name is an alias.  */
15278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15279 choke me
15280 #else
15281 $ac_func();
15282 #endif
15283
15284 ; return 0; }
15285 EOF
15286 if { (eval echo configure:15287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15287   rm -rf conftest*
15288   eval "ac_cv_func_$ac_func=yes"
15289 else
15290   echo "configure: failed program was:" >&5
15291   cat conftest.$ac_ext >&5
15292   rm -rf conftest*
15293   eval "ac_cv_func_$ac_func=no"
15294 fi
15295 rm -f conftest*
15296 fi
15297
15298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15299   echo "$ac_t""yes" 1>&6
15300     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15301   cat >> confdefs.h <<EOF
15302 #define $ac_tr_func 1
15303 EOF
15304  
15305 else
15306   echo "$ac_t""no" 1>&6
15307 fi
15308 done
15309
15310   else
15311     
15312   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
15313 echo "configure:15314: checking for _frexpf declaration" >&5
15314   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
15315     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
15316   echo $ac_n "(cached) $ac_c" 1>&6
15317 else
15318   
15319       
15320       ac_ext=C
15321 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15322 ac_cpp='$CXXCPP $CPPFLAGS'
15323 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15324 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15325 cross_compiling=$ac_cv_prog_cxx_cross
15326
15327       cat > conftest.$ac_ext <<EOF
15328 #line 15329 "configure"
15329 #include "confdefs.h"
15330 #include <math.h>
15331 int main() {
15332  _frexpf(0, 0);
15333 ; return 0; }
15334 EOF
15335 if { (eval echo configure:15336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15336   rm -rf conftest*
15337   glibcpp_cv_func__frexpf_use=yes
15338 else
15339   echo "configure: failed program was:" >&5
15340   cat conftest.$ac_ext >&5
15341   rm -rf conftest*
15342   glibcpp_cv_func__frexpf_use=no
15343 fi
15344 rm -f conftest*
15345       ac_ext=c
15346 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15347 ac_cpp='$CPP $CPPFLAGS'
15348 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15349 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15350 cross_compiling=$ac_cv_prog_cc_cross
15351
15352     
15353 fi
15354
15355   fi
15356   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
15357
15358     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
15359       for ac_func in _frexpf
15360 do
15361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15362 echo "configure:15363: checking for $ac_func" >&5
15363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15364   echo $ac_n "(cached) $ac_c" 1>&6
15365 else
15366   cat > conftest.$ac_ext <<EOF
15367 #line 15368 "configure"
15368 #include "confdefs.h"
15369 /* System header to define __stub macros and hopefully few prototypes,
15370     which can conflict with char $ac_func(); below.  */
15371 #include <assert.h>
15372 /* Override any gcc2 internal prototype to avoid an error.  */
15373 /* We use char because int might match the return type of a gcc2
15374     builtin and then its argument prototype would still apply.  */
15375 char $ac_func();
15376
15377 int main() {
15378
15379 /* The GNU C library defines this for functions which it implements
15380     to always fail with ENOSYS.  Some functions are actually named
15381     something starting with __ and the normal name is an alias.  */
15382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15383 choke me
15384 #else
15385 $ac_func();
15386 #endif
15387
15388 ; return 0; }
15389 EOF
15390 if { (eval echo configure:15391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15391   rm -rf conftest*
15392   eval "ac_cv_func_$ac_func=yes"
15393 else
15394   echo "configure: failed program was:" >&5
15395   cat conftest.$ac_ext >&5
15396   rm -rf conftest*
15397   eval "ac_cv_func_$ac_func=no"
15398 fi
15399 rm -f conftest*
15400 fi
15401
15402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15403   echo "$ac_t""yes" 1>&6
15404     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15405   cat >> confdefs.h <<EOF
15406 #define $ac_tr_func 1
15407 EOF
15408  
15409 else
15410   echo "$ac_t""no" 1>&6
15411 fi
15412 done
15413
15414     fi
15415   fi
15416
15417   
15418   
15419   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
15420 echo "configure:15421: checking for hypotf declaration" >&5
15421   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
15422     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
15423   echo $ac_n "(cached) $ac_c" 1>&6
15424 else
15425   
15426       
15427       ac_ext=C
15428 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15429 ac_cpp='$CXXCPP $CPPFLAGS'
15430 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15431 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15432 cross_compiling=$ac_cv_prog_cxx_cross
15433
15434       cat > conftest.$ac_ext <<EOF
15435 #line 15436 "configure"
15436 #include "confdefs.h"
15437 #include <math.h>
15438 int main() {
15439  hypotf(0, 0);
15440 ; return 0; }
15441 EOF
15442 if { (eval echo configure:15443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15443   rm -rf conftest*
15444   glibcpp_cv_func_hypotf_use=yes
15445 else
15446   echo "configure: failed program was:" >&5
15447   cat conftest.$ac_ext >&5
15448   rm -rf conftest*
15449   glibcpp_cv_func_hypotf_use=no
15450 fi
15451 rm -f conftest*
15452       ac_ext=c
15453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15454 ac_cpp='$CPP $CPPFLAGS'
15455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15457 cross_compiling=$ac_cv_prog_cc_cross
15458
15459     
15460 fi
15461
15462   fi
15463   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
15464
15465   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
15466     for ac_func in hypotf
15467 do
15468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15469 echo "configure:15470: checking for $ac_func" >&5
15470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15471   echo $ac_n "(cached) $ac_c" 1>&6
15472 else
15473   cat > conftest.$ac_ext <<EOF
15474 #line 15475 "configure"
15475 #include "confdefs.h"
15476 /* System header to define __stub macros and hopefully few prototypes,
15477     which can conflict with char $ac_func(); below.  */
15478 #include <assert.h>
15479 /* Override any gcc2 internal prototype to avoid an error.  */
15480 /* We use char because int might match the return type of a gcc2
15481     builtin and then its argument prototype would still apply.  */
15482 char $ac_func();
15483
15484 int main() {
15485
15486 /* The GNU C library defines this for functions which it implements
15487     to always fail with ENOSYS.  Some functions are actually named
15488     something starting with __ and the normal name is an alias.  */
15489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15490 choke me
15491 #else
15492 $ac_func();
15493 #endif
15494
15495 ; return 0; }
15496 EOF
15497 if { (eval echo configure:15498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15498   rm -rf conftest*
15499   eval "ac_cv_func_$ac_func=yes"
15500 else
15501   echo "configure: failed program was:" >&5
15502   cat conftest.$ac_ext >&5
15503   rm -rf conftest*
15504   eval "ac_cv_func_$ac_func=no"
15505 fi
15506 rm -f conftest*
15507 fi
15508
15509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15510   echo "$ac_t""yes" 1>&6
15511     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15512   cat >> confdefs.h <<EOF
15513 #define $ac_tr_func 1
15514 EOF
15515  
15516 else
15517   echo "$ac_t""no" 1>&6
15518 fi
15519 done
15520
15521   else
15522     
15523   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
15524 echo "configure:15525: checking for _hypotf declaration" >&5
15525   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
15526     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
15527   echo $ac_n "(cached) $ac_c" 1>&6
15528 else
15529   
15530       
15531       ac_ext=C
15532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15533 ac_cpp='$CXXCPP $CPPFLAGS'
15534 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15535 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15536 cross_compiling=$ac_cv_prog_cxx_cross
15537
15538       cat > conftest.$ac_ext <<EOF
15539 #line 15540 "configure"
15540 #include "confdefs.h"
15541 #include <math.h>
15542 int main() {
15543  _hypotf(0, 0);
15544 ; return 0; }
15545 EOF
15546 if { (eval echo configure:15547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15547   rm -rf conftest*
15548   glibcpp_cv_func__hypotf_use=yes
15549 else
15550   echo "configure: failed program was:" >&5
15551   cat conftest.$ac_ext >&5
15552   rm -rf conftest*
15553   glibcpp_cv_func__hypotf_use=no
15554 fi
15555 rm -f conftest*
15556       ac_ext=c
15557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15558 ac_cpp='$CPP $CPPFLAGS'
15559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15561 cross_compiling=$ac_cv_prog_cc_cross
15562
15563     
15564 fi
15565
15566   fi
15567   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
15568
15569     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
15570       for ac_func in _hypotf
15571 do
15572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15573 echo "configure:15574: checking for $ac_func" >&5
15574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15575   echo $ac_n "(cached) $ac_c" 1>&6
15576 else
15577   cat > conftest.$ac_ext <<EOF
15578 #line 15579 "configure"
15579 #include "confdefs.h"
15580 /* System header to define __stub macros and hopefully few prototypes,
15581     which can conflict with char $ac_func(); below.  */
15582 #include <assert.h>
15583 /* Override any gcc2 internal prototype to avoid an error.  */
15584 /* We use char because int might match the return type of a gcc2
15585     builtin and then its argument prototype would still apply.  */
15586 char $ac_func();
15587
15588 int main() {
15589
15590 /* The GNU C library defines this for functions which it implements
15591     to always fail with ENOSYS.  Some functions are actually named
15592     something starting with __ and the normal name is an alias.  */
15593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15594 choke me
15595 #else
15596 $ac_func();
15597 #endif
15598
15599 ; return 0; }
15600 EOF
15601 if { (eval echo configure:15602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15602   rm -rf conftest*
15603   eval "ac_cv_func_$ac_func=yes"
15604 else
15605   echo "configure: failed program was:" >&5
15606   cat conftest.$ac_ext >&5
15607   rm -rf conftest*
15608   eval "ac_cv_func_$ac_func=no"
15609 fi
15610 rm -f conftest*
15611 fi
15612
15613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15614   echo "$ac_t""yes" 1>&6
15615     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15616   cat >> confdefs.h <<EOF
15617 #define $ac_tr_func 1
15618 EOF
15619  
15620 else
15621   echo "$ac_t""no" 1>&6
15622 fi
15623 done
15624
15625     fi
15626   fi
15627
15628   
15629   
15630   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
15631 echo "configure:15632: checking for ldexpf declaration" >&5
15632   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
15633     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
15634   echo $ac_n "(cached) $ac_c" 1>&6
15635 else
15636   
15637       
15638       ac_ext=C
15639 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15640 ac_cpp='$CXXCPP $CPPFLAGS'
15641 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15642 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15643 cross_compiling=$ac_cv_prog_cxx_cross
15644
15645       cat > conftest.$ac_ext <<EOF
15646 #line 15647 "configure"
15647 #include "confdefs.h"
15648 #include <math.h>
15649 int main() {
15650  ldexpf(0, 0);
15651 ; return 0; }
15652 EOF
15653 if { (eval echo configure:15654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15654   rm -rf conftest*
15655   glibcpp_cv_func_ldexpf_use=yes
15656 else
15657   echo "configure: failed program was:" >&5
15658   cat conftest.$ac_ext >&5
15659   rm -rf conftest*
15660   glibcpp_cv_func_ldexpf_use=no
15661 fi
15662 rm -f conftest*
15663       ac_ext=c
15664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15665 ac_cpp='$CPP $CPPFLAGS'
15666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15668 cross_compiling=$ac_cv_prog_cc_cross
15669
15670     
15671 fi
15672
15673   fi
15674   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
15675
15676   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
15677     for ac_func in ldexpf
15678 do
15679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15680 echo "configure:15681: checking for $ac_func" >&5
15681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15682   echo $ac_n "(cached) $ac_c" 1>&6
15683 else
15684   cat > conftest.$ac_ext <<EOF
15685 #line 15686 "configure"
15686 #include "confdefs.h"
15687 /* System header to define __stub macros and hopefully few prototypes,
15688     which can conflict with char $ac_func(); below.  */
15689 #include <assert.h>
15690 /* Override any gcc2 internal prototype to avoid an error.  */
15691 /* We use char because int might match the return type of a gcc2
15692     builtin and then its argument prototype would still apply.  */
15693 char $ac_func();
15694
15695 int main() {
15696
15697 /* The GNU C library defines this for functions which it implements
15698     to always fail with ENOSYS.  Some functions are actually named
15699     something starting with __ and the normal name is an alias.  */
15700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15701 choke me
15702 #else
15703 $ac_func();
15704 #endif
15705
15706 ; return 0; }
15707 EOF
15708 if { (eval echo configure:15709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15709   rm -rf conftest*
15710   eval "ac_cv_func_$ac_func=yes"
15711 else
15712   echo "configure: failed program was:" >&5
15713   cat conftest.$ac_ext >&5
15714   rm -rf conftest*
15715   eval "ac_cv_func_$ac_func=no"
15716 fi
15717 rm -f conftest*
15718 fi
15719
15720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15721   echo "$ac_t""yes" 1>&6
15722     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15723   cat >> confdefs.h <<EOF
15724 #define $ac_tr_func 1
15725 EOF
15726  
15727 else
15728   echo "$ac_t""no" 1>&6
15729 fi
15730 done
15731
15732   else
15733     
15734   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
15735 echo "configure:15736: checking for _ldexpf declaration" >&5
15736   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
15737     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
15738   echo $ac_n "(cached) $ac_c" 1>&6
15739 else
15740   
15741       
15742       ac_ext=C
15743 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15744 ac_cpp='$CXXCPP $CPPFLAGS'
15745 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15746 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15747 cross_compiling=$ac_cv_prog_cxx_cross
15748
15749       cat > conftest.$ac_ext <<EOF
15750 #line 15751 "configure"
15751 #include "confdefs.h"
15752 #include <math.h>
15753 int main() {
15754  _ldexpf(0, 0);
15755 ; return 0; }
15756 EOF
15757 if { (eval echo configure:15758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15758   rm -rf conftest*
15759   glibcpp_cv_func__ldexpf_use=yes
15760 else
15761   echo "configure: failed program was:" >&5
15762   cat conftest.$ac_ext >&5
15763   rm -rf conftest*
15764   glibcpp_cv_func__ldexpf_use=no
15765 fi
15766 rm -f conftest*
15767       ac_ext=c
15768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15769 ac_cpp='$CPP $CPPFLAGS'
15770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15772 cross_compiling=$ac_cv_prog_cc_cross
15773
15774     
15775 fi
15776
15777   fi
15778   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
15779
15780     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
15781       for ac_func in _ldexpf
15782 do
15783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15784 echo "configure:15785: checking for $ac_func" >&5
15785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15786   echo $ac_n "(cached) $ac_c" 1>&6
15787 else
15788   cat > conftest.$ac_ext <<EOF
15789 #line 15790 "configure"
15790 #include "confdefs.h"
15791 /* System header to define __stub macros and hopefully few prototypes,
15792     which can conflict with char $ac_func(); below.  */
15793 #include <assert.h>
15794 /* Override any gcc2 internal prototype to avoid an error.  */
15795 /* We use char because int might match the return type of a gcc2
15796     builtin and then its argument prototype would still apply.  */
15797 char $ac_func();
15798
15799 int main() {
15800
15801 /* The GNU C library defines this for functions which it implements
15802     to always fail with ENOSYS.  Some functions are actually named
15803     something starting with __ and the normal name is an alias.  */
15804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15805 choke me
15806 #else
15807 $ac_func();
15808 #endif
15809
15810 ; return 0; }
15811 EOF
15812 if { (eval echo configure:15813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15813   rm -rf conftest*
15814   eval "ac_cv_func_$ac_func=yes"
15815 else
15816   echo "configure: failed program was:" >&5
15817   cat conftest.$ac_ext >&5
15818   rm -rf conftest*
15819   eval "ac_cv_func_$ac_func=no"
15820 fi
15821 rm -f conftest*
15822 fi
15823
15824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15825   echo "$ac_t""yes" 1>&6
15826     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15827   cat >> confdefs.h <<EOF
15828 #define $ac_tr_func 1
15829 EOF
15830  
15831 else
15832   echo "$ac_t""no" 1>&6
15833 fi
15834 done
15835
15836     fi
15837   fi
15838
15839   
15840   
15841   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
15842 echo "configure:15843: checking for logf declaration" >&5
15843   if test x${glibcpp_cv_func_logf_use+set} != xset; then
15844     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
15845   echo $ac_n "(cached) $ac_c" 1>&6
15846 else
15847   
15848       
15849       ac_ext=C
15850 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15851 ac_cpp='$CXXCPP $CPPFLAGS'
15852 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15853 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15854 cross_compiling=$ac_cv_prog_cxx_cross
15855
15856       cat > conftest.$ac_ext <<EOF
15857 #line 15858 "configure"
15858 #include "confdefs.h"
15859 #include <math.h>
15860                       #ifdef HAVE_IEEEFP_H
15861                       #include <ieeefp.h>
15862                       #endif
15863                      
15864 int main() {
15865  logf(0);
15866 ; return 0; }
15867 EOF
15868 if { (eval echo configure:15869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15869   rm -rf conftest*
15870   glibcpp_cv_func_logf_use=yes
15871 else
15872   echo "configure: failed program was:" >&5
15873   cat conftest.$ac_ext >&5
15874   rm -rf conftest*
15875   glibcpp_cv_func_logf_use=no
15876 fi
15877 rm -f conftest*
15878       ac_ext=c
15879 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15880 ac_cpp='$CPP $CPPFLAGS'
15881 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15882 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15883 cross_compiling=$ac_cv_prog_cc_cross
15884
15885     
15886 fi
15887
15888   fi
15889   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
15890
15891   if test x$glibcpp_cv_func_logf_use = x"yes"; then
15892     for ac_func in logf
15893 do
15894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15895 echo "configure:15896: checking for $ac_func" >&5
15896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15897   echo $ac_n "(cached) $ac_c" 1>&6
15898 else
15899   cat > conftest.$ac_ext <<EOF
15900 #line 15901 "configure"
15901 #include "confdefs.h"
15902 /* System header to define __stub macros and hopefully few prototypes,
15903     which can conflict with char $ac_func(); below.  */
15904 #include <assert.h>
15905 /* Override any gcc2 internal prototype to avoid an error.  */
15906 /* We use char because int might match the return type of a gcc2
15907     builtin and then its argument prototype would still apply.  */
15908 char $ac_func();
15909
15910 int main() {
15911
15912 /* The GNU C library defines this for functions which it implements
15913     to always fail with ENOSYS.  Some functions are actually named
15914     something starting with __ and the normal name is an alias.  */
15915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15916 choke me
15917 #else
15918 $ac_func();
15919 #endif
15920
15921 ; return 0; }
15922 EOF
15923 if { (eval echo configure:15924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15924   rm -rf conftest*
15925   eval "ac_cv_func_$ac_func=yes"
15926 else
15927   echo "configure: failed program was:" >&5
15928   cat conftest.$ac_ext >&5
15929   rm -rf conftest*
15930   eval "ac_cv_func_$ac_func=no"
15931 fi
15932 rm -f conftest*
15933 fi
15934
15935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15936   echo "$ac_t""yes" 1>&6
15937     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15938   cat >> confdefs.h <<EOF
15939 #define $ac_tr_func 1
15940 EOF
15941  
15942 else
15943   echo "$ac_t""no" 1>&6
15944 fi
15945 done
15946
15947   else
15948     
15949   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
15950 echo "configure:15951: checking for _logf declaration" >&5
15951   if test x${glibcpp_cv_func__logf_use+set} != xset; then
15952     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
15953   echo $ac_n "(cached) $ac_c" 1>&6
15954 else
15955   
15956       
15957       ac_ext=C
15958 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15959 ac_cpp='$CXXCPP $CPPFLAGS'
15960 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15961 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15962 cross_compiling=$ac_cv_prog_cxx_cross
15963
15964       cat > conftest.$ac_ext <<EOF
15965 #line 15966 "configure"
15966 #include "confdefs.h"
15967 #include <math.h>
15968                       #ifdef HAVE_IEEEFP_H
15969                       #include <ieeefp.h>
15970                       #endif
15971                      
15972 int main() {
15973  _logf(0);
15974 ; return 0; }
15975 EOF
15976 if { (eval echo configure:15977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15977   rm -rf conftest*
15978   glibcpp_cv_func__logf_use=yes
15979 else
15980   echo "configure: failed program was:" >&5
15981   cat conftest.$ac_ext >&5
15982   rm -rf conftest*
15983   glibcpp_cv_func__logf_use=no
15984 fi
15985 rm -f conftest*
15986       ac_ext=c
15987 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15988 ac_cpp='$CPP $CPPFLAGS'
15989 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15990 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15991 cross_compiling=$ac_cv_prog_cc_cross
15992
15993     
15994 fi
15995
15996   fi
15997   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
15998
15999     if test x$glibcpp_cv_func__logf_use = x"yes"; then
16000       for ac_func in _logf
16001 do
16002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16003 echo "configure:16004: checking for $ac_func" >&5
16004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16005   echo $ac_n "(cached) $ac_c" 1>&6
16006 else
16007   cat > conftest.$ac_ext <<EOF
16008 #line 16009 "configure"
16009 #include "confdefs.h"
16010 /* System header to define __stub macros and hopefully few prototypes,
16011     which can conflict with char $ac_func(); below.  */
16012 #include <assert.h>
16013 /* Override any gcc2 internal prototype to avoid an error.  */
16014 /* We use char because int might match the return type of a gcc2
16015     builtin and then its argument prototype would still apply.  */
16016 char $ac_func();
16017
16018 int main() {
16019
16020 /* The GNU C library defines this for functions which it implements
16021     to always fail with ENOSYS.  Some functions are actually named
16022     something starting with __ and the normal name is an alias.  */
16023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16024 choke me
16025 #else
16026 $ac_func();
16027 #endif
16028
16029 ; return 0; }
16030 EOF
16031 if { (eval echo configure:16032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16032   rm -rf conftest*
16033   eval "ac_cv_func_$ac_func=yes"
16034 else
16035   echo "configure: failed program was:" >&5
16036   cat conftest.$ac_ext >&5
16037   rm -rf conftest*
16038   eval "ac_cv_func_$ac_func=no"
16039 fi
16040 rm -f conftest*
16041 fi
16042
16043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16044   echo "$ac_t""yes" 1>&6
16045     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16046   cat >> confdefs.h <<EOF
16047 #define $ac_tr_func 1
16048 EOF
16049  
16050 else
16051   echo "$ac_t""no" 1>&6
16052 fi
16053 done
16054
16055     fi
16056   fi
16057
16058   
16059   
16060   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
16061 echo "configure:16062: checking for log10f declaration" >&5
16062   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
16063     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
16064   echo $ac_n "(cached) $ac_c" 1>&6
16065 else
16066   
16067       
16068       ac_ext=C
16069 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16070 ac_cpp='$CXXCPP $CPPFLAGS'
16071 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16072 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16073 cross_compiling=$ac_cv_prog_cxx_cross
16074
16075       cat > conftest.$ac_ext <<EOF
16076 #line 16077 "configure"
16077 #include "confdefs.h"
16078 #include <math.h>
16079                       #ifdef HAVE_IEEEFP_H
16080                       #include <ieeefp.h>
16081                       #endif
16082                      
16083 int main() {
16084  log10f(0);
16085 ; return 0; }
16086 EOF
16087 if { (eval echo configure:16088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16088   rm -rf conftest*
16089   glibcpp_cv_func_log10f_use=yes
16090 else
16091   echo "configure: failed program was:" >&5
16092   cat conftest.$ac_ext >&5
16093   rm -rf conftest*
16094   glibcpp_cv_func_log10f_use=no
16095 fi
16096 rm -f conftest*
16097       ac_ext=c
16098 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16099 ac_cpp='$CPP $CPPFLAGS'
16100 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16101 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16102 cross_compiling=$ac_cv_prog_cc_cross
16103
16104     
16105 fi
16106
16107   fi
16108   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
16109
16110   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
16111     for ac_func in log10f
16112 do
16113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16114 echo "configure:16115: checking for $ac_func" >&5
16115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16116   echo $ac_n "(cached) $ac_c" 1>&6
16117 else
16118   cat > conftest.$ac_ext <<EOF
16119 #line 16120 "configure"
16120 #include "confdefs.h"
16121 /* System header to define __stub macros and hopefully few prototypes,
16122     which can conflict with char $ac_func(); below.  */
16123 #include <assert.h>
16124 /* Override any gcc2 internal prototype to avoid an error.  */
16125 /* We use char because int might match the return type of a gcc2
16126     builtin and then its argument prototype would still apply.  */
16127 char $ac_func();
16128
16129 int main() {
16130
16131 /* The GNU C library defines this for functions which it implements
16132     to always fail with ENOSYS.  Some functions are actually named
16133     something starting with __ and the normal name is an alias.  */
16134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16135 choke me
16136 #else
16137 $ac_func();
16138 #endif
16139
16140 ; return 0; }
16141 EOF
16142 if { (eval echo configure:16143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16143   rm -rf conftest*
16144   eval "ac_cv_func_$ac_func=yes"
16145 else
16146   echo "configure: failed program was:" >&5
16147   cat conftest.$ac_ext >&5
16148   rm -rf conftest*
16149   eval "ac_cv_func_$ac_func=no"
16150 fi
16151 rm -f conftest*
16152 fi
16153
16154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16155   echo "$ac_t""yes" 1>&6
16156     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16157   cat >> confdefs.h <<EOF
16158 #define $ac_tr_func 1
16159 EOF
16160  
16161 else
16162   echo "$ac_t""no" 1>&6
16163 fi
16164 done
16165
16166   else
16167     
16168   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
16169 echo "configure:16170: checking for _log10f declaration" >&5
16170   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
16171     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
16172   echo $ac_n "(cached) $ac_c" 1>&6
16173 else
16174   
16175       
16176       ac_ext=C
16177 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16178 ac_cpp='$CXXCPP $CPPFLAGS'
16179 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16180 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16181 cross_compiling=$ac_cv_prog_cxx_cross
16182
16183       cat > conftest.$ac_ext <<EOF
16184 #line 16185 "configure"
16185 #include "confdefs.h"
16186 #include <math.h>
16187                       #ifdef HAVE_IEEEFP_H
16188                       #include <ieeefp.h>
16189                       #endif
16190                      
16191 int main() {
16192  _log10f(0);
16193 ; return 0; }
16194 EOF
16195 if { (eval echo configure:16196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16196   rm -rf conftest*
16197   glibcpp_cv_func__log10f_use=yes
16198 else
16199   echo "configure: failed program was:" >&5
16200   cat conftest.$ac_ext >&5
16201   rm -rf conftest*
16202   glibcpp_cv_func__log10f_use=no
16203 fi
16204 rm -f conftest*
16205       ac_ext=c
16206 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16207 ac_cpp='$CPP $CPPFLAGS'
16208 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16209 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16210 cross_compiling=$ac_cv_prog_cc_cross
16211
16212     
16213 fi
16214
16215   fi
16216   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
16217
16218     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
16219       for ac_func in _log10f
16220 do
16221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16222 echo "configure:16223: checking for $ac_func" >&5
16223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16224   echo $ac_n "(cached) $ac_c" 1>&6
16225 else
16226   cat > conftest.$ac_ext <<EOF
16227 #line 16228 "configure"
16228 #include "confdefs.h"
16229 /* System header to define __stub macros and hopefully few prototypes,
16230     which can conflict with char $ac_func(); below.  */
16231 #include <assert.h>
16232 /* Override any gcc2 internal prototype to avoid an error.  */
16233 /* We use char because int might match the return type of a gcc2
16234     builtin and then its argument prototype would still apply.  */
16235 char $ac_func();
16236
16237 int main() {
16238
16239 /* The GNU C library defines this for functions which it implements
16240     to always fail with ENOSYS.  Some functions are actually named
16241     something starting with __ and the normal name is an alias.  */
16242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16243 choke me
16244 #else
16245 $ac_func();
16246 #endif
16247
16248 ; return 0; }
16249 EOF
16250 if { (eval echo configure:16251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16251   rm -rf conftest*
16252   eval "ac_cv_func_$ac_func=yes"
16253 else
16254   echo "configure: failed program was:" >&5
16255   cat conftest.$ac_ext >&5
16256   rm -rf conftest*
16257   eval "ac_cv_func_$ac_func=no"
16258 fi
16259 rm -f conftest*
16260 fi
16261
16262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16263   echo "$ac_t""yes" 1>&6
16264     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16265   cat >> confdefs.h <<EOF
16266 #define $ac_tr_func 1
16267 EOF
16268  
16269 else
16270   echo "$ac_t""no" 1>&6
16271 fi
16272 done
16273
16274     fi
16275   fi
16276
16277   
16278   
16279   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
16280 echo "configure:16281: checking for modff declaration" >&5
16281   if test x${glibcpp_cv_func_modff_use+set} != xset; then
16282     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
16283   echo $ac_n "(cached) $ac_c" 1>&6
16284 else
16285   
16286       
16287       ac_ext=C
16288 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16289 ac_cpp='$CXXCPP $CPPFLAGS'
16290 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16291 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16292 cross_compiling=$ac_cv_prog_cxx_cross
16293
16294       cat > conftest.$ac_ext <<EOF
16295 #line 16296 "configure"
16296 #include "confdefs.h"
16297 #include <math.h>
16298 int main() {
16299  modff(0, 0);
16300 ; return 0; }
16301 EOF
16302 if { (eval echo configure:16303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16303   rm -rf conftest*
16304   glibcpp_cv_func_modff_use=yes
16305 else
16306   echo "configure: failed program was:" >&5
16307   cat conftest.$ac_ext >&5
16308   rm -rf conftest*
16309   glibcpp_cv_func_modff_use=no
16310 fi
16311 rm -f conftest*
16312       ac_ext=c
16313 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16314 ac_cpp='$CPP $CPPFLAGS'
16315 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16316 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16317 cross_compiling=$ac_cv_prog_cc_cross
16318
16319     
16320 fi
16321
16322   fi
16323   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
16324
16325   if test x$glibcpp_cv_func_modff_use = x"yes"; then
16326     for ac_func in modff
16327 do
16328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16329 echo "configure:16330: checking for $ac_func" >&5
16330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16331   echo $ac_n "(cached) $ac_c" 1>&6
16332 else
16333   cat > conftest.$ac_ext <<EOF
16334 #line 16335 "configure"
16335 #include "confdefs.h"
16336 /* System header to define __stub macros and hopefully few prototypes,
16337     which can conflict with char $ac_func(); below.  */
16338 #include <assert.h>
16339 /* Override any gcc2 internal prototype to avoid an error.  */
16340 /* We use char because int might match the return type of a gcc2
16341     builtin and then its argument prototype would still apply.  */
16342 char $ac_func();
16343
16344 int main() {
16345
16346 /* The GNU C library defines this for functions which it implements
16347     to always fail with ENOSYS.  Some functions are actually named
16348     something starting with __ and the normal name is an alias.  */
16349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16350 choke me
16351 #else
16352 $ac_func();
16353 #endif
16354
16355 ; return 0; }
16356 EOF
16357 if { (eval echo configure:16358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16358   rm -rf conftest*
16359   eval "ac_cv_func_$ac_func=yes"
16360 else
16361   echo "configure: failed program was:" >&5
16362   cat conftest.$ac_ext >&5
16363   rm -rf conftest*
16364   eval "ac_cv_func_$ac_func=no"
16365 fi
16366 rm -f conftest*
16367 fi
16368
16369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16370   echo "$ac_t""yes" 1>&6
16371     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16372   cat >> confdefs.h <<EOF
16373 #define $ac_tr_func 1
16374 EOF
16375  
16376 else
16377   echo "$ac_t""no" 1>&6
16378 fi
16379 done
16380
16381   else
16382     
16383   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
16384 echo "configure:16385: checking for _modff declaration" >&5
16385   if test x${glibcpp_cv_func__modff_use+set} != xset; then
16386     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
16387   echo $ac_n "(cached) $ac_c" 1>&6
16388 else
16389   
16390       
16391       ac_ext=C
16392 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16393 ac_cpp='$CXXCPP $CPPFLAGS'
16394 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16395 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16396 cross_compiling=$ac_cv_prog_cxx_cross
16397
16398       cat > conftest.$ac_ext <<EOF
16399 #line 16400 "configure"
16400 #include "confdefs.h"
16401 #include <math.h>
16402 int main() {
16403  _modff(0, 0);
16404 ; return 0; }
16405 EOF
16406 if { (eval echo configure:16407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16407   rm -rf conftest*
16408   glibcpp_cv_func__modff_use=yes
16409 else
16410   echo "configure: failed program was:" >&5
16411   cat conftest.$ac_ext >&5
16412   rm -rf conftest*
16413   glibcpp_cv_func__modff_use=no
16414 fi
16415 rm -f conftest*
16416       ac_ext=c
16417 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16418 ac_cpp='$CPP $CPPFLAGS'
16419 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16420 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16421 cross_compiling=$ac_cv_prog_cc_cross
16422
16423     
16424 fi
16425
16426   fi
16427   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
16428
16429     if test x$glibcpp_cv_func__modff_use = x"yes"; then
16430       for ac_func in _modff
16431 do
16432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16433 echo "configure:16434: checking for $ac_func" >&5
16434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16435   echo $ac_n "(cached) $ac_c" 1>&6
16436 else
16437   cat > conftest.$ac_ext <<EOF
16438 #line 16439 "configure"
16439 #include "confdefs.h"
16440 /* System header to define __stub macros and hopefully few prototypes,
16441     which can conflict with char $ac_func(); below.  */
16442 #include <assert.h>
16443 /* Override any gcc2 internal prototype to avoid an error.  */
16444 /* We use char because int might match the return type of a gcc2
16445     builtin and then its argument prototype would still apply.  */
16446 char $ac_func();
16447
16448 int main() {
16449
16450 /* The GNU C library defines this for functions which it implements
16451     to always fail with ENOSYS.  Some functions are actually named
16452     something starting with __ and the normal name is an alias.  */
16453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16454 choke me
16455 #else
16456 $ac_func();
16457 #endif
16458
16459 ; return 0; }
16460 EOF
16461 if { (eval echo configure:16462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16462   rm -rf conftest*
16463   eval "ac_cv_func_$ac_func=yes"
16464 else
16465   echo "configure: failed program was:" >&5
16466   cat conftest.$ac_ext >&5
16467   rm -rf conftest*
16468   eval "ac_cv_func_$ac_func=no"
16469 fi
16470 rm -f conftest*
16471 fi
16472
16473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16474   echo "$ac_t""yes" 1>&6
16475     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16476   cat >> confdefs.h <<EOF
16477 #define $ac_tr_func 1
16478 EOF
16479  
16480 else
16481   echo "$ac_t""no" 1>&6
16482 fi
16483 done
16484
16485     fi
16486   fi
16487
16488   
16489   
16490   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
16491 echo "configure:16492: checking for powf declaration" >&5
16492   if test x${glibcpp_cv_func_powf_use+set} != xset; then
16493     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
16494   echo $ac_n "(cached) $ac_c" 1>&6
16495 else
16496   
16497       
16498       ac_ext=C
16499 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16500 ac_cpp='$CXXCPP $CPPFLAGS'
16501 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16502 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16503 cross_compiling=$ac_cv_prog_cxx_cross
16504
16505       cat > conftest.$ac_ext <<EOF
16506 #line 16507 "configure"
16507 #include "confdefs.h"
16508 #include <math.h>
16509 int main() {
16510  powf(0, 0);
16511 ; return 0; }
16512 EOF
16513 if { (eval echo configure:16514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16514   rm -rf conftest*
16515   glibcpp_cv_func_powf_use=yes
16516 else
16517   echo "configure: failed program was:" >&5
16518   cat conftest.$ac_ext >&5
16519   rm -rf conftest*
16520   glibcpp_cv_func_powf_use=no
16521 fi
16522 rm -f conftest*
16523       ac_ext=c
16524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16525 ac_cpp='$CPP $CPPFLAGS'
16526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16528 cross_compiling=$ac_cv_prog_cc_cross
16529
16530     
16531 fi
16532
16533   fi
16534   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
16535
16536   if test x$glibcpp_cv_func_powf_use = x"yes"; then
16537     for ac_func in powf
16538 do
16539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16540 echo "configure:16541: checking for $ac_func" >&5
16541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16542   echo $ac_n "(cached) $ac_c" 1>&6
16543 else
16544   cat > conftest.$ac_ext <<EOF
16545 #line 16546 "configure"
16546 #include "confdefs.h"
16547 /* System header to define __stub macros and hopefully few prototypes,
16548     which can conflict with char $ac_func(); below.  */
16549 #include <assert.h>
16550 /* Override any gcc2 internal prototype to avoid an error.  */
16551 /* We use char because int might match the return type of a gcc2
16552     builtin and then its argument prototype would still apply.  */
16553 char $ac_func();
16554
16555 int main() {
16556
16557 /* The GNU C library defines this for functions which it implements
16558     to always fail with ENOSYS.  Some functions are actually named
16559     something starting with __ and the normal name is an alias.  */
16560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16561 choke me
16562 #else
16563 $ac_func();
16564 #endif
16565
16566 ; return 0; }
16567 EOF
16568 if { (eval echo configure:16569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16569   rm -rf conftest*
16570   eval "ac_cv_func_$ac_func=yes"
16571 else
16572   echo "configure: failed program was:" >&5
16573   cat conftest.$ac_ext >&5
16574   rm -rf conftest*
16575   eval "ac_cv_func_$ac_func=no"
16576 fi
16577 rm -f conftest*
16578 fi
16579
16580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16581   echo "$ac_t""yes" 1>&6
16582     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16583   cat >> confdefs.h <<EOF
16584 #define $ac_tr_func 1
16585 EOF
16586  
16587 else
16588   echo "$ac_t""no" 1>&6
16589 fi
16590 done
16591
16592   else
16593     
16594   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
16595 echo "configure:16596: checking for _powf declaration" >&5
16596   if test x${glibcpp_cv_func__powf_use+set} != xset; then
16597     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
16598   echo $ac_n "(cached) $ac_c" 1>&6
16599 else
16600   
16601       
16602       ac_ext=C
16603 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16604 ac_cpp='$CXXCPP $CPPFLAGS'
16605 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16606 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16607 cross_compiling=$ac_cv_prog_cxx_cross
16608
16609       cat > conftest.$ac_ext <<EOF
16610 #line 16611 "configure"
16611 #include "confdefs.h"
16612 #include <math.h>
16613 int main() {
16614  _powf(0, 0);
16615 ; return 0; }
16616 EOF
16617 if { (eval echo configure:16618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16618   rm -rf conftest*
16619   glibcpp_cv_func__powf_use=yes
16620 else
16621   echo "configure: failed program was:" >&5
16622   cat conftest.$ac_ext >&5
16623   rm -rf conftest*
16624   glibcpp_cv_func__powf_use=no
16625 fi
16626 rm -f conftest*
16627       ac_ext=c
16628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16629 ac_cpp='$CPP $CPPFLAGS'
16630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16632 cross_compiling=$ac_cv_prog_cc_cross
16633
16634     
16635 fi
16636
16637   fi
16638   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
16639
16640     if test x$glibcpp_cv_func__powf_use = x"yes"; then
16641       for ac_func in _powf
16642 do
16643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16644 echo "configure:16645: checking for $ac_func" >&5
16645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16646   echo $ac_n "(cached) $ac_c" 1>&6
16647 else
16648   cat > conftest.$ac_ext <<EOF
16649 #line 16650 "configure"
16650 #include "confdefs.h"
16651 /* System header to define __stub macros and hopefully few prototypes,
16652     which can conflict with char $ac_func(); below.  */
16653 #include <assert.h>
16654 /* Override any gcc2 internal prototype to avoid an error.  */
16655 /* We use char because int might match the return type of a gcc2
16656     builtin and then its argument prototype would still apply.  */
16657 char $ac_func();
16658
16659 int main() {
16660
16661 /* The GNU C library defines this for functions which it implements
16662     to always fail with ENOSYS.  Some functions are actually named
16663     something starting with __ and the normal name is an alias.  */
16664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16665 choke me
16666 #else
16667 $ac_func();
16668 #endif
16669
16670 ; return 0; }
16671 EOF
16672 if { (eval echo configure:16673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16673   rm -rf conftest*
16674   eval "ac_cv_func_$ac_func=yes"
16675 else
16676   echo "configure: failed program was:" >&5
16677   cat conftest.$ac_ext >&5
16678   rm -rf conftest*
16679   eval "ac_cv_func_$ac_func=no"
16680 fi
16681 rm -f conftest*
16682 fi
16683
16684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16685   echo "$ac_t""yes" 1>&6
16686     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16687   cat >> confdefs.h <<EOF
16688 #define $ac_tr_func 1
16689 EOF
16690  
16691 else
16692   echo "$ac_t""no" 1>&6
16693 fi
16694 done
16695
16696     fi
16697   fi
16698
16699   
16700   
16701   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
16702 echo "configure:16703: checking for sqrtf declaration" >&5
16703   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
16704     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
16705   echo $ac_n "(cached) $ac_c" 1>&6
16706 else
16707   
16708       
16709       ac_ext=C
16710 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16711 ac_cpp='$CXXCPP $CPPFLAGS'
16712 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16713 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16714 cross_compiling=$ac_cv_prog_cxx_cross
16715
16716       cat > conftest.$ac_ext <<EOF
16717 #line 16718 "configure"
16718 #include "confdefs.h"
16719 #include <math.h>
16720                       #ifdef HAVE_IEEEFP_H
16721                       #include <ieeefp.h>
16722                       #endif
16723                      
16724 int main() {
16725  sqrtf(0);
16726 ; return 0; }
16727 EOF
16728 if { (eval echo configure:16729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16729   rm -rf conftest*
16730   glibcpp_cv_func_sqrtf_use=yes
16731 else
16732   echo "configure: failed program was:" >&5
16733   cat conftest.$ac_ext >&5
16734   rm -rf conftest*
16735   glibcpp_cv_func_sqrtf_use=no
16736 fi
16737 rm -f conftest*
16738       ac_ext=c
16739 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16740 ac_cpp='$CPP $CPPFLAGS'
16741 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16742 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16743 cross_compiling=$ac_cv_prog_cc_cross
16744
16745     
16746 fi
16747
16748   fi
16749   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
16750
16751   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
16752     for ac_func in sqrtf
16753 do
16754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16755 echo "configure:16756: checking for $ac_func" >&5
16756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16757   echo $ac_n "(cached) $ac_c" 1>&6
16758 else
16759   cat > conftest.$ac_ext <<EOF
16760 #line 16761 "configure"
16761 #include "confdefs.h"
16762 /* System header to define __stub macros and hopefully few prototypes,
16763     which can conflict with char $ac_func(); below.  */
16764 #include <assert.h>
16765 /* Override any gcc2 internal prototype to avoid an error.  */
16766 /* We use char because int might match the return type of a gcc2
16767     builtin and then its argument prototype would still apply.  */
16768 char $ac_func();
16769
16770 int main() {
16771
16772 /* The GNU C library defines this for functions which it implements
16773     to always fail with ENOSYS.  Some functions are actually named
16774     something starting with __ and the normal name is an alias.  */
16775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16776 choke me
16777 #else
16778 $ac_func();
16779 #endif
16780
16781 ; return 0; }
16782 EOF
16783 if { (eval echo configure:16784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16784   rm -rf conftest*
16785   eval "ac_cv_func_$ac_func=yes"
16786 else
16787   echo "configure: failed program was:" >&5
16788   cat conftest.$ac_ext >&5
16789   rm -rf conftest*
16790   eval "ac_cv_func_$ac_func=no"
16791 fi
16792 rm -f conftest*
16793 fi
16794
16795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16796   echo "$ac_t""yes" 1>&6
16797     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16798   cat >> confdefs.h <<EOF
16799 #define $ac_tr_func 1
16800 EOF
16801  
16802 else
16803   echo "$ac_t""no" 1>&6
16804 fi
16805 done
16806
16807   else
16808     
16809   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
16810 echo "configure:16811: checking for _sqrtf declaration" >&5
16811   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
16812     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
16813   echo $ac_n "(cached) $ac_c" 1>&6
16814 else
16815   
16816       
16817       ac_ext=C
16818 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16819 ac_cpp='$CXXCPP $CPPFLAGS'
16820 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16821 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16822 cross_compiling=$ac_cv_prog_cxx_cross
16823
16824       cat > conftest.$ac_ext <<EOF
16825 #line 16826 "configure"
16826 #include "confdefs.h"
16827 #include <math.h>
16828                       #ifdef HAVE_IEEEFP_H
16829                       #include <ieeefp.h>
16830                       #endif
16831                      
16832 int main() {
16833  _sqrtf(0);
16834 ; return 0; }
16835 EOF
16836 if { (eval echo configure:16837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16837   rm -rf conftest*
16838   glibcpp_cv_func__sqrtf_use=yes
16839 else
16840   echo "configure: failed program was:" >&5
16841   cat conftest.$ac_ext >&5
16842   rm -rf conftest*
16843   glibcpp_cv_func__sqrtf_use=no
16844 fi
16845 rm -f conftest*
16846       ac_ext=c
16847 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16848 ac_cpp='$CPP $CPPFLAGS'
16849 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16850 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16851 cross_compiling=$ac_cv_prog_cc_cross
16852
16853     
16854 fi
16855
16856   fi
16857   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
16858
16859     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
16860       for ac_func in _sqrtf
16861 do
16862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16863 echo "configure:16864: checking for $ac_func" >&5
16864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16865   echo $ac_n "(cached) $ac_c" 1>&6
16866 else
16867   cat > conftest.$ac_ext <<EOF
16868 #line 16869 "configure"
16869 #include "confdefs.h"
16870 /* System header to define __stub macros and hopefully few prototypes,
16871     which can conflict with char $ac_func(); below.  */
16872 #include <assert.h>
16873 /* Override any gcc2 internal prototype to avoid an error.  */
16874 /* We use char because int might match the return type of a gcc2
16875     builtin and then its argument prototype would still apply.  */
16876 char $ac_func();
16877
16878 int main() {
16879
16880 /* The GNU C library defines this for functions which it implements
16881     to always fail with ENOSYS.  Some functions are actually named
16882     something starting with __ and the normal name is an alias.  */
16883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16884 choke me
16885 #else
16886 $ac_func();
16887 #endif
16888
16889 ; return 0; }
16890 EOF
16891 if { (eval echo configure:16892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16892   rm -rf conftest*
16893   eval "ac_cv_func_$ac_func=yes"
16894 else
16895   echo "configure: failed program was:" >&5
16896   cat conftest.$ac_ext >&5
16897   rm -rf conftest*
16898   eval "ac_cv_func_$ac_func=no"
16899 fi
16900 rm -f conftest*
16901 fi
16902
16903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16904   echo "$ac_t""yes" 1>&6
16905     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16906   cat >> confdefs.h <<EOF
16907 #define $ac_tr_func 1
16908 EOF
16909  
16910 else
16911   echo "$ac_t""no" 1>&6
16912 fi
16913 done
16914
16915     fi
16916   fi
16917
16918   
16919   
16920   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
16921 echo "configure:16922: checking for sincosf declaration" >&5
16922   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
16923     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
16924   echo $ac_n "(cached) $ac_c" 1>&6
16925 else
16926   
16927       
16928       ac_ext=C
16929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16930 ac_cpp='$CXXCPP $CPPFLAGS'
16931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16933 cross_compiling=$ac_cv_prog_cxx_cross
16934
16935       cat > conftest.$ac_ext <<EOF
16936 #line 16937 "configure"
16937 #include "confdefs.h"
16938 #include <math.h>
16939 int main() {
16940  sincosf(0, 0, 0);
16941 ; return 0; }
16942 EOF
16943 if { (eval echo configure:16944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16944   rm -rf conftest*
16945   glibcpp_cv_func_sincosf_use=yes
16946 else
16947   echo "configure: failed program was:" >&5
16948   cat conftest.$ac_ext >&5
16949   rm -rf conftest*
16950   glibcpp_cv_func_sincosf_use=no
16951 fi
16952 rm -f conftest*
16953       ac_ext=c
16954 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16955 ac_cpp='$CPP $CPPFLAGS'
16956 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16957 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16958 cross_compiling=$ac_cv_prog_cc_cross
16959
16960     
16961 fi
16962
16963   fi
16964   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
16965
16966   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
16967     for ac_func in sincosf
16968 do
16969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16970 echo "configure:16971: checking for $ac_func" >&5
16971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16972   echo $ac_n "(cached) $ac_c" 1>&6
16973 else
16974   cat > conftest.$ac_ext <<EOF
16975 #line 16976 "configure"
16976 #include "confdefs.h"
16977 /* System header to define __stub macros and hopefully few prototypes,
16978     which can conflict with char $ac_func(); below.  */
16979 #include <assert.h>
16980 /* Override any gcc2 internal prototype to avoid an error.  */
16981 /* We use char because int might match the return type of a gcc2
16982     builtin and then its argument prototype would still apply.  */
16983 char $ac_func();
16984
16985 int main() {
16986
16987 /* The GNU C library defines this for functions which it implements
16988     to always fail with ENOSYS.  Some functions are actually named
16989     something starting with __ and the normal name is an alias.  */
16990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16991 choke me
16992 #else
16993 $ac_func();
16994 #endif
16995
16996 ; return 0; }
16997 EOF
16998 if { (eval echo configure:16999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16999   rm -rf conftest*
17000   eval "ac_cv_func_$ac_func=yes"
17001 else
17002   echo "configure: failed program was:" >&5
17003   cat conftest.$ac_ext >&5
17004   rm -rf conftest*
17005   eval "ac_cv_func_$ac_func=no"
17006 fi
17007 rm -f conftest*
17008 fi
17009
17010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17011   echo "$ac_t""yes" 1>&6
17012     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17013   cat >> confdefs.h <<EOF
17014 #define $ac_tr_func 1
17015 EOF
17016  
17017 else
17018   echo "$ac_t""no" 1>&6
17019 fi
17020 done
17021
17022   else
17023     
17024   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
17025 echo "configure:17026: checking for _sincosf declaration" >&5
17026   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
17027     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
17028   echo $ac_n "(cached) $ac_c" 1>&6
17029 else
17030   
17031       
17032       ac_ext=C
17033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17034 ac_cpp='$CXXCPP $CPPFLAGS'
17035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17037 cross_compiling=$ac_cv_prog_cxx_cross
17038
17039       cat > conftest.$ac_ext <<EOF
17040 #line 17041 "configure"
17041 #include "confdefs.h"
17042 #include <math.h>
17043 int main() {
17044  _sincosf(0, 0, 0);
17045 ; return 0; }
17046 EOF
17047 if { (eval echo configure:17048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17048   rm -rf conftest*
17049   glibcpp_cv_func__sincosf_use=yes
17050 else
17051   echo "configure: failed program was:" >&5
17052   cat conftest.$ac_ext >&5
17053   rm -rf conftest*
17054   glibcpp_cv_func__sincosf_use=no
17055 fi
17056 rm -f conftest*
17057       ac_ext=c
17058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17059 ac_cpp='$CPP $CPPFLAGS'
17060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17062 cross_compiling=$ac_cv_prog_cc_cross
17063
17064     
17065 fi
17066
17067   fi
17068   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
17069
17070     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
17071       for ac_func in _sincosf
17072 do
17073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17074 echo "configure:17075: checking for $ac_func" >&5
17075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17076   echo $ac_n "(cached) $ac_c" 1>&6
17077 else
17078   cat > conftest.$ac_ext <<EOF
17079 #line 17080 "configure"
17080 #include "confdefs.h"
17081 /* System header to define __stub macros and hopefully few prototypes,
17082     which can conflict with char $ac_func(); below.  */
17083 #include <assert.h>
17084 /* Override any gcc2 internal prototype to avoid an error.  */
17085 /* We use char because int might match the return type of a gcc2
17086     builtin and then its argument prototype would still apply.  */
17087 char $ac_func();
17088
17089 int main() {
17090
17091 /* The GNU C library defines this for functions which it implements
17092     to always fail with ENOSYS.  Some functions are actually named
17093     something starting with __ and the normal name is an alias.  */
17094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17095 choke me
17096 #else
17097 $ac_func();
17098 #endif
17099
17100 ; return 0; }
17101 EOF
17102 if { (eval echo configure:17103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17103   rm -rf conftest*
17104   eval "ac_cv_func_$ac_func=yes"
17105 else
17106   echo "configure: failed program was:" >&5
17107   cat conftest.$ac_ext >&5
17108   rm -rf conftest*
17109   eval "ac_cv_func_$ac_func=no"
17110 fi
17111 rm -f conftest*
17112 fi
17113
17114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17115   echo "$ac_t""yes" 1>&6
17116     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17117   cat >> confdefs.h <<EOF
17118 #define $ac_tr_func 1
17119 EOF
17120  
17121 else
17122   echo "$ac_t""no" 1>&6
17123 fi
17124 done
17125
17126     fi
17127   fi
17128
17129   
17130   
17131   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
17132 echo "configure:17133: checking for finitef declaration" >&5
17133   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
17134     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
17135   echo $ac_n "(cached) $ac_c" 1>&6
17136 else
17137   
17138       
17139       ac_ext=C
17140 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17141 ac_cpp='$CXXCPP $CPPFLAGS'
17142 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17143 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17144 cross_compiling=$ac_cv_prog_cxx_cross
17145
17146       cat > conftest.$ac_ext <<EOF
17147 #line 17148 "configure"
17148 #include "confdefs.h"
17149 #include <math.h>
17150                       #ifdef HAVE_IEEEFP_H
17151                       #include <ieeefp.h>
17152                       #endif
17153                      
17154 int main() {
17155  finitef(0);
17156 ; return 0; }
17157 EOF
17158 if { (eval echo configure:17159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17159   rm -rf conftest*
17160   glibcpp_cv_func_finitef_use=yes
17161 else
17162   echo "configure: failed program was:" >&5
17163   cat conftest.$ac_ext >&5
17164   rm -rf conftest*
17165   glibcpp_cv_func_finitef_use=no
17166 fi
17167 rm -f conftest*
17168       ac_ext=c
17169 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17170 ac_cpp='$CPP $CPPFLAGS'
17171 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17172 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17173 cross_compiling=$ac_cv_prog_cc_cross
17174
17175     
17176 fi
17177
17178   fi
17179   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
17180
17181   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
17182     for ac_func in finitef
17183 do
17184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17185 echo "configure:17186: checking for $ac_func" >&5
17186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17187   echo $ac_n "(cached) $ac_c" 1>&6
17188 else
17189   cat > conftest.$ac_ext <<EOF
17190 #line 17191 "configure"
17191 #include "confdefs.h"
17192 /* System header to define __stub macros and hopefully few prototypes,
17193     which can conflict with char $ac_func(); below.  */
17194 #include <assert.h>
17195 /* Override any gcc2 internal prototype to avoid an error.  */
17196 /* We use char because int might match the return type of a gcc2
17197     builtin and then its argument prototype would still apply.  */
17198 char $ac_func();
17199
17200 int main() {
17201
17202 /* The GNU C library defines this for functions which it implements
17203     to always fail with ENOSYS.  Some functions are actually named
17204     something starting with __ and the normal name is an alias.  */
17205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17206 choke me
17207 #else
17208 $ac_func();
17209 #endif
17210
17211 ; return 0; }
17212 EOF
17213 if { (eval echo configure:17214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17214   rm -rf conftest*
17215   eval "ac_cv_func_$ac_func=yes"
17216 else
17217   echo "configure: failed program was:" >&5
17218   cat conftest.$ac_ext >&5
17219   rm -rf conftest*
17220   eval "ac_cv_func_$ac_func=no"
17221 fi
17222 rm -f conftest*
17223 fi
17224
17225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17226   echo "$ac_t""yes" 1>&6
17227     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17228   cat >> confdefs.h <<EOF
17229 #define $ac_tr_func 1
17230 EOF
17231  
17232 else
17233   echo "$ac_t""no" 1>&6
17234 fi
17235 done
17236
17237   else
17238     
17239   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
17240 echo "configure:17241: checking for _finitef declaration" >&5
17241   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
17242     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
17243   echo $ac_n "(cached) $ac_c" 1>&6
17244 else
17245   
17246       
17247       ac_ext=C
17248 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17249 ac_cpp='$CXXCPP $CPPFLAGS'
17250 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17251 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17252 cross_compiling=$ac_cv_prog_cxx_cross
17253
17254       cat > conftest.$ac_ext <<EOF
17255 #line 17256 "configure"
17256 #include "confdefs.h"
17257 #include <math.h>
17258                       #ifdef HAVE_IEEEFP_H
17259                       #include <ieeefp.h>
17260                       #endif
17261                      
17262 int main() {
17263  _finitef(0);
17264 ; return 0; }
17265 EOF
17266 if { (eval echo configure:17267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17267   rm -rf conftest*
17268   glibcpp_cv_func__finitef_use=yes
17269 else
17270   echo "configure: failed program was:" >&5
17271   cat conftest.$ac_ext >&5
17272   rm -rf conftest*
17273   glibcpp_cv_func__finitef_use=no
17274 fi
17275 rm -f conftest*
17276       ac_ext=c
17277 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17278 ac_cpp='$CPP $CPPFLAGS'
17279 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17280 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17281 cross_compiling=$ac_cv_prog_cc_cross
17282
17283     
17284 fi
17285
17286   fi
17287   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
17288
17289     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
17290       for ac_func in _finitef
17291 do
17292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17293 echo "configure:17294: checking for $ac_func" >&5
17294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17295   echo $ac_n "(cached) $ac_c" 1>&6
17296 else
17297   cat > conftest.$ac_ext <<EOF
17298 #line 17299 "configure"
17299 #include "confdefs.h"
17300 /* System header to define __stub macros and hopefully few prototypes,
17301     which can conflict with char $ac_func(); below.  */
17302 #include <assert.h>
17303 /* Override any gcc2 internal prototype to avoid an error.  */
17304 /* We use char because int might match the return type of a gcc2
17305     builtin and then its argument prototype would still apply.  */
17306 char $ac_func();
17307
17308 int main() {
17309
17310 /* The GNU C library defines this for functions which it implements
17311     to always fail with ENOSYS.  Some functions are actually named
17312     something starting with __ and the normal name is an alias.  */
17313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17314 choke me
17315 #else
17316 $ac_func();
17317 #endif
17318
17319 ; return 0; }
17320 EOF
17321 if { (eval echo configure:17322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17322   rm -rf conftest*
17323   eval "ac_cv_func_$ac_func=yes"
17324 else
17325   echo "configure: failed program was:" >&5
17326   cat conftest.$ac_ext >&5
17327   rm -rf conftest*
17328   eval "ac_cv_func_$ac_func=no"
17329 fi
17330 rm -f conftest*
17331 fi
17332
17333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17334   echo "$ac_t""yes" 1>&6
17335     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17336   cat >> confdefs.h <<EOF
17337 #define $ac_tr_func 1
17338 EOF
17339  
17340 else
17341   echo "$ac_t""no" 1>&6
17342 fi
17343 done
17344
17345     fi
17346   fi
17347
17348
17349     
17350   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
17351 echo "configure:17352: checking for long double trig functions" >&5
17352   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
17353   echo $ac_n "(cached) $ac_c" 1>&6
17354 else
17355   
17356     
17357     ac_ext=C
17358 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17359 ac_cpp='$CXXCPP $CPPFLAGS'
17360 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17361 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17362 cross_compiling=$ac_cv_prog_cxx_cross
17363
17364     cat > conftest.$ac_ext <<EOF
17365 #line 17366 "configure"
17366 #include "confdefs.h"
17367 #include <math.h>
17368 int main() {
17369  `for x in acosl asinl atanl \
17370                                           cosl sinl tanl \
17371                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
17372 ; return 0; }
17373 EOF
17374 if { (eval echo configure:17375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17375   rm -rf conftest*
17376   glibcpp_cv_func_long_double_trig_use=yes
17377 else
17378   echo "configure: failed program was:" >&5
17379   cat conftest.$ac_ext >&5
17380   rm -rf conftest*
17381   glibcpp_cv_func_long_double_trig_use=no
17382 fi
17383 rm -f conftest*
17384     ac_ext=c
17385 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17386 ac_cpp='$CPP $CPPFLAGS'
17387 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17388 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17389 cross_compiling=$ac_cv_prog_cc_cross
17390
17391 fi
17392
17393   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
17394   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
17395     for ac_func in acosl asinl atanl \
17396                                           cosl sinl tanl \
17397                                           coshl sinhl tanhl
17398 do
17399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17400 echo "configure:17401: checking for $ac_func" >&5
17401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17402   echo $ac_n "(cached) $ac_c" 1>&6
17403 else
17404   cat > conftest.$ac_ext <<EOF
17405 #line 17406 "configure"
17406 #include "confdefs.h"
17407 /* System header to define __stub macros and hopefully few prototypes,
17408     which can conflict with char $ac_func(); below.  */
17409 #include <assert.h>
17410 /* Override any gcc2 internal prototype to avoid an error.  */
17411 /* We use char because int might match the return type of a gcc2
17412     builtin and then its argument prototype would still apply.  */
17413 char $ac_func();
17414
17415 int main() {
17416
17417 /* The GNU C library defines this for functions which it implements
17418     to always fail with ENOSYS.  Some functions are actually named
17419     something starting with __ and the normal name is an alias.  */
17420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17421 choke me
17422 #else
17423 $ac_func();
17424 #endif
17425
17426 ; return 0; }
17427 EOF
17428 if { (eval echo configure:17429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17429   rm -rf conftest*
17430   eval "ac_cv_func_$ac_func=yes"
17431 else
17432   echo "configure: failed program was:" >&5
17433   cat conftest.$ac_ext >&5
17434   rm -rf conftest*
17435   eval "ac_cv_func_$ac_func=no"
17436 fi
17437 rm -f conftest*
17438 fi
17439
17440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17441   echo "$ac_t""yes" 1>&6
17442     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17443   cat >> confdefs.h <<EOF
17444 #define $ac_tr_func 1
17445 EOF
17446  
17447 else
17448   echo "$ac_t""no" 1>&6
17449 fi
17450 done
17451
17452   fi
17453
17454   
17455   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
17456 echo "configure:17457: checking for long double round functions" >&5
17457   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
17458   echo $ac_n "(cached) $ac_c" 1>&6
17459 else
17460   
17461     
17462     ac_ext=C
17463 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17464 ac_cpp='$CXXCPP $CPPFLAGS'
17465 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17466 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17467 cross_compiling=$ac_cv_prog_cxx_cross
17468
17469     cat > conftest.$ac_ext <<EOF
17470 #line 17471 "configure"
17471 #include "confdefs.h"
17472 #include <math.h>
17473 int main() {
17474  `for x in ceill floorl; do echo "$x (0);"; done` 
17475 ; return 0; }
17476 EOF
17477 if { (eval echo configure:17478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17478   rm -rf conftest*
17479   glibcpp_cv_func_long_double_round_use=yes
17480 else
17481   echo "configure: failed program was:" >&5
17482   cat conftest.$ac_ext >&5
17483   rm -rf conftest*
17484   glibcpp_cv_func_long_double_round_use=no
17485 fi
17486 rm -f conftest*
17487     ac_ext=c
17488 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17489 ac_cpp='$CPP $CPPFLAGS'
17490 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17491 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17492 cross_compiling=$ac_cv_prog_cc_cross
17493
17494 fi
17495
17496   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
17497   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
17498     for ac_func in ceill floorl
17499 do
17500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17501 echo "configure:17502: checking for $ac_func" >&5
17502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17503   echo $ac_n "(cached) $ac_c" 1>&6
17504 else
17505   cat > conftest.$ac_ext <<EOF
17506 #line 17507 "configure"
17507 #include "confdefs.h"
17508 /* System header to define __stub macros and hopefully few prototypes,
17509     which can conflict with char $ac_func(); below.  */
17510 #include <assert.h>
17511 /* Override any gcc2 internal prototype to avoid an error.  */
17512 /* We use char because int might match the return type of a gcc2
17513     builtin and then its argument prototype would still apply.  */
17514 char $ac_func();
17515
17516 int main() {
17517
17518 /* The GNU C library defines this for functions which it implements
17519     to always fail with ENOSYS.  Some functions are actually named
17520     something starting with __ and the normal name is an alias.  */
17521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17522 choke me
17523 #else
17524 $ac_func();
17525 #endif
17526
17527 ; return 0; }
17528 EOF
17529 if { (eval echo configure:17530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17530   rm -rf conftest*
17531   eval "ac_cv_func_$ac_func=yes"
17532 else
17533   echo "configure: failed program was:" >&5
17534   cat conftest.$ac_ext >&5
17535   rm -rf conftest*
17536   eval "ac_cv_func_$ac_func=no"
17537 fi
17538 rm -f conftest*
17539 fi
17540
17541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17542   echo "$ac_t""yes" 1>&6
17543     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17544   cat >> confdefs.h <<EOF
17545 #define $ac_tr_func 1
17546 EOF
17547  
17548 else
17549   echo "$ac_t""no" 1>&6
17550 fi
17551 done
17552
17553   fi
17554
17555   
17556   
17557   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
17558 echo "configure:17559: checking for isnanl declaration" >&5
17559   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
17560     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
17561   echo $ac_n "(cached) $ac_c" 1>&6
17562 else
17563   
17564       
17565       ac_ext=C
17566 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17567 ac_cpp='$CXXCPP $CPPFLAGS'
17568 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17569 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17570 cross_compiling=$ac_cv_prog_cxx_cross
17571
17572       cat > conftest.$ac_ext <<EOF
17573 #line 17574 "configure"
17574 #include "confdefs.h"
17575 #include <math.h>
17576                       #ifdef HAVE_IEEEFP_H
17577                       #include <ieeefp.h>
17578                       #endif
17579                      
17580 int main() {
17581  isnanl(0);
17582 ; return 0; }
17583 EOF
17584 if { (eval echo configure:17585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17585   rm -rf conftest*
17586   glibcpp_cv_func_isnanl_use=yes
17587 else
17588   echo "configure: failed program was:" >&5
17589   cat conftest.$ac_ext >&5
17590   rm -rf conftest*
17591   glibcpp_cv_func_isnanl_use=no
17592 fi
17593 rm -f conftest*
17594       ac_ext=c
17595 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17596 ac_cpp='$CPP $CPPFLAGS'
17597 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17598 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17599 cross_compiling=$ac_cv_prog_cc_cross
17600
17601     
17602 fi
17603
17604   fi
17605   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
17606
17607   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
17608     for ac_func in isnanl
17609 do
17610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17611 echo "configure:17612: checking for $ac_func" >&5
17612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17613   echo $ac_n "(cached) $ac_c" 1>&6
17614 else
17615   cat > conftest.$ac_ext <<EOF
17616 #line 17617 "configure"
17617 #include "confdefs.h"
17618 /* System header to define __stub macros and hopefully few prototypes,
17619     which can conflict with char $ac_func(); below.  */
17620 #include <assert.h>
17621 /* Override any gcc2 internal prototype to avoid an error.  */
17622 /* We use char because int might match the return type of a gcc2
17623     builtin and then its argument prototype would still apply.  */
17624 char $ac_func();
17625
17626 int main() {
17627
17628 /* The GNU C library defines this for functions which it implements
17629     to always fail with ENOSYS.  Some functions are actually named
17630     something starting with __ and the normal name is an alias.  */
17631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17632 choke me
17633 #else
17634 $ac_func();
17635 #endif
17636
17637 ; return 0; }
17638 EOF
17639 if { (eval echo configure:17640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17640   rm -rf conftest*
17641   eval "ac_cv_func_$ac_func=yes"
17642 else
17643   echo "configure: failed program was:" >&5
17644   cat conftest.$ac_ext >&5
17645   rm -rf conftest*
17646   eval "ac_cv_func_$ac_func=no"
17647 fi
17648 rm -f conftest*
17649 fi
17650
17651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17652   echo "$ac_t""yes" 1>&6
17653     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17654   cat >> confdefs.h <<EOF
17655 #define $ac_tr_func 1
17656 EOF
17657  
17658 else
17659   echo "$ac_t""no" 1>&6
17660 fi
17661 done
17662
17663   else
17664     
17665   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
17666 echo "configure:17667: checking for _isnanl declaration" >&5
17667   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
17668     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
17669   echo $ac_n "(cached) $ac_c" 1>&6
17670 else
17671   
17672       
17673       ac_ext=C
17674 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17675 ac_cpp='$CXXCPP $CPPFLAGS'
17676 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17677 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17678 cross_compiling=$ac_cv_prog_cxx_cross
17679
17680       cat > conftest.$ac_ext <<EOF
17681 #line 17682 "configure"
17682 #include "confdefs.h"
17683 #include <math.h>
17684                       #ifdef HAVE_IEEEFP_H
17685                       #include <ieeefp.h>
17686                       #endif
17687                      
17688 int main() {
17689  _isnanl(0);
17690 ; return 0; }
17691 EOF
17692 if { (eval echo configure:17693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17693   rm -rf conftest*
17694   glibcpp_cv_func__isnanl_use=yes
17695 else
17696   echo "configure: failed program was:" >&5
17697   cat conftest.$ac_ext >&5
17698   rm -rf conftest*
17699   glibcpp_cv_func__isnanl_use=no
17700 fi
17701 rm -f conftest*
17702       ac_ext=c
17703 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17704 ac_cpp='$CPP $CPPFLAGS'
17705 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17706 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17707 cross_compiling=$ac_cv_prog_cc_cross
17708
17709     
17710 fi
17711
17712   fi
17713   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
17714
17715     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
17716       for ac_func in _isnanl
17717 do
17718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17719 echo "configure:17720: checking for $ac_func" >&5
17720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17721   echo $ac_n "(cached) $ac_c" 1>&6
17722 else
17723   cat > conftest.$ac_ext <<EOF
17724 #line 17725 "configure"
17725 #include "confdefs.h"
17726 /* System header to define __stub macros and hopefully few prototypes,
17727     which can conflict with char $ac_func(); below.  */
17728 #include <assert.h>
17729 /* Override any gcc2 internal prototype to avoid an error.  */
17730 /* We use char because int might match the return type of a gcc2
17731     builtin and then its argument prototype would still apply.  */
17732 char $ac_func();
17733
17734 int main() {
17735
17736 /* The GNU C library defines this for functions which it implements
17737     to always fail with ENOSYS.  Some functions are actually named
17738     something starting with __ and the normal name is an alias.  */
17739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17740 choke me
17741 #else
17742 $ac_func();
17743 #endif
17744
17745 ; return 0; }
17746 EOF
17747 if { (eval echo configure:17748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17748   rm -rf conftest*
17749   eval "ac_cv_func_$ac_func=yes"
17750 else
17751   echo "configure: failed program was:" >&5
17752   cat conftest.$ac_ext >&5
17753   rm -rf conftest*
17754   eval "ac_cv_func_$ac_func=no"
17755 fi
17756 rm -f conftest*
17757 fi
17758
17759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17760   echo "$ac_t""yes" 1>&6
17761     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17762   cat >> confdefs.h <<EOF
17763 #define $ac_tr_func 1
17764 EOF
17765  
17766 else
17767   echo "$ac_t""no" 1>&6
17768 fi
17769 done
17770
17771     fi
17772   fi
17773
17774   
17775   
17776   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
17777 echo "configure:17778: checking for isinfl declaration" >&5
17778   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
17779     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
17780   echo $ac_n "(cached) $ac_c" 1>&6
17781 else
17782   
17783       
17784       ac_ext=C
17785 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17786 ac_cpp='$CXXCPP $CPPFLAGS'
17787 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17788 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17789 cross_compiling=$ac_cv_prog_cxx_cross
17790
17791       cat > conftest.$ac_ext <<EOF
17792 #line 17793 "configure"
17793 #include "confdefs.h"
17794 #include <math.h>
17795                       #ifdef HAVE_IEEEFP_H
17796                       #include <ieeefp.h>
17797                       #endif
17798                      
17799 int main() {
17800  isinfl(0);
17801 ; return 0; }
17802 EOF
17803 if { (eval echo configure:17804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17804   rm -rf conftest*
17805   glibcpp_cv_func_isinfl_use=yes
17806 else
17807   echo "configure: failed program was:" >&5
17808   cat conftest.$ac_ext >&5
17809   rm -rf conftest*
17810   glibcpp_cv_func_isinfl_use=no
17811 fi
17812 rm -f conftest*
17813       ac_ext=c
17814 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17815 ac_cpp='$CPP $CPPFLAGS'
17816 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17817 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17818 cross_compiling=$ac_cv_prog_cc_cross
17819
17820     
17821 fi
17822
17823   fi
17824   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
17825
17826   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
17827     for ac_func in isinfl
17828 do
17829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17830 echo "configure:17831: checking for $ac_func" >&5
17831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17832   echo $ac_n "(cached) $ac_c" 1>&6
17833 else
17834   cat > conftest.$ac_ext <<EOF
17835 #line 17836 "configure"
17836 #include "confdefs.h"
17837 /* System header to define __stub macros and hopefully few prototypes,
17838     which can conflict with char $ac_func(); below.  */
17839 #include <assert.h>
17840 /* Override any gcc2 internal prototype to avoid an error.  */
17841 /* We use char because int might match the return type of a gcc2
17842     builtin and then its argument prototype would still apply.  */
17843 char $ac_func();
17844
17845 int main() {
17846
17847 /* The GNU C library defines this for functions which it implements
17848     to always fail with ENOSYS.  Some functions are actually named
17849     something starting with __ and the normal name is an alias.  */
17850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17851 choke me
17852 #else
17853 $ac_func();
17854 #endif
17855
17856 ; return 0; }
17857 EOF
17858 if { (eval echo configure:17859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17859   rm -rf conftest*
17860   eval "ac_cv_func_$ac_func=yes"
17861 else
17862   echo "configure: failed program was:" >&5
17863   cat conftest.$ac_ext >&5
17864   rm -rf conftest*
17865   eval "ac_cv_func_$ac_func=no"
17866 fi
17867 rm -f conftest*
17868 fi
17869
17870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17871   echo "$ac_t""yes" 1>&6
17872     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17873   cat >> confdefs.h <<EOF
17874 #define $ac_tr_func 1
17875 EOF
17876  
17877 else
17878   echo "$ac_t""no" 1>&6
17879 fi
17880 done
17881
17882   else
17883     
17884   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
17885 echo "configure:17886: checking for _isinfl declaration" >&5
17886   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
17887     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
17888   echo $ac_n "(cached) $ac_c" 1>&6
17889 else
17890   
17891       
17892       ac_ext=C
17893 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17894 ac_cpp='$CXXCPP $CPPFLAGS'
17895 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17896 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17897 cross_compiling=$ac_cv_prog_cxx_cross
17898
17899       cat > conftest.$ac_ext <<EOF
17900 #line 17901 "configure"
17901 #include "confdefs.h"
17902 #include <math.h>
17903                       #ifdef HAVE_IEEEFP_H
17904                       #include <ieeefp.h>
17905                       #endif
17906                      
17907 int main() {
17908  _isinfl(0);
17909 ; return 0; }
17910 EOF
17911 if { (eval echo configure:17912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17912   rm -rf conftest*
17913   glibcpp_cv_func__isinfl_use=yes
17914 else
17915   echo "configure: failed program was:" >&5
17916   cat conftest.$ac_ext >&5
17917   rm -rf conftest*
17918   glibcpp_cv_func__isinfl_use=no
17919 fi
17920 rm -f conftest*
17921       ac_ext=c
17922 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17923 ac_cpp='$CPP $CPPFLAGS'
17924 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17925 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17926 cross_compiling=$ac_cv_prog_cc_cross
17927
17928     
17929 fi
17930
17931   fi
17932   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
17933
17934     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
17935       for ac_func in _isinfl
17936 do
17937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17938 echo "configure:17939: checking for $ac_func" >&5
17939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17940   echo $ac_n "(cached) $ac_c" 1>&6
17941 else
17942   cat > conftest.$ac_ext <<EOF
17943 #line 17944 "configure"
17944 #include "confdefs.h"
17945 /* System header to define __stub macros and hopefully few prototypes,
17946     which can conflict with char $ac_func(); below.  */
17947 #include <assert.h>
17948 /* Override any gcc2 internal prototype to avoid an error.  */
17949 /* We use char because int might match the return type of a gcc2
17950     builtin and then its argument prototype would still apply.  */
17951 char $ac_func();
17952
17953 int main() {
17954
17955 /* The GNU C library defines this for functions which it implements
17956     to always fail with ENOSYS.  Some functions are actually named
17957     something starting with __ and the normal name is an alias.  */
17958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17959 choke me
17960 #else
17961 $ac_func();
17962 #endif
17963
17964 ; return 0; }
17965 EOF
17966 if { (eval echo configure:17967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17967   rm -rf conftest*
17968   eval "ac_cv_func_$ac_func=yes"
17969 else
17970   echo "configure: failed program was:" >&5
17971   cat conftest.$ac_ext >&5
17972   rm -rf conftest*
17973   eval "ac_cv_func_$ac_func=no"
17974 fi
17975 rm -f conftest*
17976 fi
17977
17978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17979   echo "$ac_t""yes" 1>&6
17980     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17981   cat >> confdefs.h <<EOF
17982 #define $ac_tr_func 1
17983 EOF
17984  
17985 else
17986   echo "$ac_t""no" 1>&6
17987 fi
17988 done
17989
17990     fi
17991   fi
17992
17993   
17994   
17995   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
17996 echo "configure:17997: checking for copysignl declaration" >&5
17997   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
17998     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
17999   echo $ac_n "(cached) $ac_c" 1>&6
18000 else
18001   
18002       
18003       ac_ext=C
18004 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18005 ac_cpp='$CXXCPP $CPPFLAGS'
18006 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18007 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18008 cross_compiling=$ac_cv_prog_cxx_cross
18009
18010       cat > conftest.$ac_ext <<EOF
18011 #line 18012 "configure"
18012 #include "confdefs.h"
18013 #include <math.h>
18014 int main() {
18015  copysignl(0, 0);
18016 ; return 0; }
18017 EOF
18018 if { (eval echo configure:18019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18019   rm -rf conftest*
18020   glibcpp_cv_func_copysignl_use=yes
18021 else
18022   echo "configure: failed program was:" >&5
18023   cat conftest.$ac_ext >&5
18024   rm -rf conftest*
18025   glibcpp_cv_func_copysignl_use=no
18026 fi
18027 rm -f conftest*
18028       ac_ext=c
18029 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18030 ac_cpp='$CPP $CPPFLAGS'
18031 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18032 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18033 cross_compiling=$ac_cv_prog_cc_cross
18034
18035     
18036 fi
18037
18038   fi
18039   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
18040
18041   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
18042     for ac_func in copysignl
18043 do
18044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18045 echo "configure:18046: checking for $ac_func" >&5
18046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18047   echo $ac_n "(cached) $ac_c" 1>&6
18048 else
18049   cat > conftest.$ac_ext <<EOF
18050 #line 18051 "configure"
18051 #include "confdefs.h"
18052 /* System header to define __stub macros and hopefully few prototypes,
18053     which can conflict with char $ac_func(); below.  */
18054 #include <assert.h>
18055 /* Override any gcc2 internal prototype to avoid an error.  */
18056 /* We use char because int might match the return type of a gcc2
18057     builtin and then its argument prototype would still apply.  */
18058 char $ac_func();
18059
18060 int main() {
18061
18062 /* The GNU C library defines this for functions which it implements
18063     to always fail with ENOSYS.  Some functions are actually named
18064     something starting with __ and the normal name is an alias.  */
18065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18066 choke me
18067 #else
18068 $ac_func();
18069 #endif
18070
18071 ; return 0; }
18072 EOF
18073 if { (eval echo configure:18074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18074   rm -rf conftest*
18075   eval "ac_cv_func_$ac_func=yes"
18076 else
18077   echo "configure: failed program was:" >&5
18078   cat conftest.$ac_ext >&5
18079   rm -rf conftest*
18080   eval "ac_cv_func_$ac_func=no"
18081 fi
18082 rm -f conftest*
18083 fi
18084
18085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18086   echo "$ac_t""yes" 1>&6
18087     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18088   cat >> confdefs.h <<EOF
18089 #define $ac_tr_func 1
18090 EOF
18091  
18092 else
18093   echo "$ac_t""no" 1>&6
18094 fi
18095 done
18096
18097   else
18098     
18099   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
18100 echo "configure:18101: checking for _copysignl declaration" >&5
18101   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
18102     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
18103   echo $ac_n "(cached) $ac_c" 1>&6
18104 else
18105   
18106       
18107       ac_ext=C
18108 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18109 ac_cpp='$CXXCPP $CPPFLAGS'
18110 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18111 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18112 cross_compiling=$ac_cv_prog_cxx_cross
18113
18114       cat > conftest.$ac_ext <<EOF
18115 #line 18116 "configure"
18116 #include "confdefs.h"
18117 #include <math.h>
18118 int main() {
18119  _copysignl(0, 0);
18120 ; return 0; }
18121 EOF
18122 if { (eval echo configure:18123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18123   rm -rf conftest*
18124   glibcpp_cv_func__copysignl_use=yes
18125 else
18126   echo "configure: failed program was:" >&5
18127   cat conftest.$ac_ext >&5
18128   rm -rf conftest*
18129   glibcpp_cv_func__copysignl_use=no
18130 fi
18131 rm -f conftest*
18132       ac_ext=c
18133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18134 ac_cpp='$CPP $CPPFLAGS'
18135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18136 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18137 cross_compiling=$ac_cv_prog_cc_cross
18138
18139     
18140 fi
18141
18142   fi
18143   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
18144
18145     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
18146       for ac_func in _copysignl
18147 do
18148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18149 echo "configure:18150: checking for $ac_func" >&5
18150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18151   echo $ac_n "(cached) $ac_c" 1>&6
18152 else
18153   cat > conftest.$ac_ext <<EOF
18154 #line 18155 "configure"
18155 #include "confdefs.h"
18156 /* System header to define __stub macros and hopefully few prototypes,
18157     which can conflict with char $ac_func(); below.  */
18158 #include <assert.h>
18159 /* Override any gcc2 internal prototype to avoid an error.  */
18160 /* We use char because int might match the return type of a gcc2
18161     builtin and then its argument prototype would still apply.  */
18162 char $ac_func();
18163
18164 int main() {
18165
18166 /* The GNU C library defines this for functions which it implements
18167     to always fail with ENOSYS.  Some functions are actually named
18168     something starting with __ and the normal name is an alias.  */
18169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18170 choke me
18171 #else
18172 $ac_func();
18173 #endif
18174
18175 ; return 0; }
18176 EOF
18177 if { (eval echo configure:18178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18178   rm -rf conftest*
18179   eval "ac_cv_func_$ac_func=yes"
18180 else
18181   echo "configure: failed program was:" >&5
18182   cat conftest.$ac_ext >&5
18183   rm -rf conftest*
18184   eval "ac_cv_func_$ac_func=no"
18185 fi
18186 rm -f conftest*
18187 fi
18188
18189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18190   echo "$ac_t""yes" 1>&6
18191     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18192   cat >> confdefs.h <<EOF
18193 #define $ac_tr_func 1
18194 EOF
18195  
18196 else
18197   echo "$ac_t""no" 1>&6
18198 fi
18199 done
18200
18201     fi
18202   fi
18203
18204   
18205   
18206   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
18207 echo "configure:18208: checking for atan2l declaration" >&5
18208   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
18209     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
18210   echo $ac_n "(cached) $ac_c" 1>&6
18211 else
18212   
18213       
18214       ac_ext=C
18215 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18216 ac_cpp='$CXXCPP $CPPFLAGS'
18217 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18218 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18219 cross_compiling=$ac_cv_prog_cxx_cross
18220
18221       cat > conftest.$ac_ext <<EOF
18222 #line 18223 "configure"
18223 #include "confdefs.h"
18224 #include <math.h>
18225 int main() {
18226  atan2l(0, 0);
18227 ; return 0; }
18228 EOF
18229 if { (eval echo configure:18230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18230   rm -rf conftest*
18231   glibcpp_cv_func_atan2l_use=yes
18232 else
18233   echo "configure: failed program was:" >&5
18234   cat conftest.$ac_ext >&5
18235   rm -rf conftest*
18236   glibcpp_cv_func_atan2l_use=no
18237 fi
18238 rm -f conftest*
18239       ac_ext=c
18240 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18241 ac_cpp='$CPP $CPPFLAGS'
18242 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18243 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18244 cross_compiling=$ac_cv_prog_cc_cross
18245
18246     
18247 fi
18248
18249   fi
18250   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
18251
18252   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
18253     for ac_func in atan2l
18254 do
18255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18256 echo "configure:18257: checking for $ac_func" >&5
18257 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18258   echo $ac_n "(cached) $ac_c" 1>&6
18259 else
18260   cat > conftest.$ac_ext <<EOF
18261 #line 18262 "configure"
18262 #include "confdefs.h"
18263 /* System header to define __stub macros and hopefully few prototypes,
18264     which can conflict with char $ac_func(); below.  */
18265 #include <assert.h>
18266 /* Override any gcc2 internal prototype to avoid an error.  */
18267 /* We use char because int might match the return type of a gcc2
18268     builtin and then its argument prototype would still apply.  */
18269 char $ac_func();
18270
18271 int main() {
18272
18273 /* The GNU C library defines this for functions which it implements
18274     to always fail with ENOSYS.  Some functions are actually named
18275     something starting with __ and the normal name is an alias.  */
18276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18277 choke me
18278 #else
18279 $ac_func();
18280 #endif
18281
18282 ; return 0; }
18283 EOF
18284 if { (eval echo configure:18285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18285   rm -rf conftest*
18286   eval "ac_cv_func_$ac_func=yes"
18287 else
18288   echo "configure: failed program was:" >&5
18289   cat conftest.$ac_ext >&5
18290   rm -rf conftest*
18291   eval "ac_cv_func_$ac_func=no"
18292 fi
18293 rm -f conftest*
18294 fi
18295
18296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18297   echo "$ac_t""yes" 1>&6
18298     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18299   cat >> confdefs.h <<EOF
18300 #define $ac_tr_func 1
18301 EOF
18302  
18303 else
18304   echo "$ac_t""no" 1>&6
18305 fi
18306 done
18307
18308   else
18309     
18310   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
18311 echo "configure:18312: checking for _atan2l declaration" >&5
18312   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
18313     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
18314   echo $ac_n "(cached) $ac_c" 1>&6
18315 else
18316   
18317       
18318       ac_ext=C
18319 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18320 ac_cpp='$CXXCPP $CPPFLAGS'
18321 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18322 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18323 cross_compiling=$ac_cv_prog_cxx_cross
18324
18325       cat > conftest.$ac_ext <<EOF
18326 #line 18327 "configure"
18327 #include "confdefs.h"
18328 #include <math.h>
18329 int main() {
18330  _atan2l(0, 0);
18331 ; return 0; }
18332 EOF
18333 if { (eval echo configure:18334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18334   rm -rf conftest*
18335   glibcpp_cv_func__atan2l_use=yes
18336 else
18337   echo "configure: failed program was:" >&5
18338   cat conftest.$ac_ext >&5
18339   rm -rf conftest*
18340   glibcpp_cv_func__atan2l_use=no
18341 fi
18342 rm -f conftest*
18343       ac_ext=c
18344 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18345 ac_cpp='$CPP $CPPFLAGS'
18346 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18347 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18348 cross_compiling=$ac_cv_prog_cc_cross
18349
18350     
18351 fi
18352
18353   fi
18354   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
18355
18356     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
18357       for ac_func in _atan2l
18358 do
18359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18360 echo "configure:18361: checking for $ac_func" >&5
18361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18362   echo $ac_n "(cached) $ac_c" 1>&6
18363 else
18364   cat > conftest.$ac_ext <<EOF
18365 #line 18366 "configure"
18366 #include "confdefs.h"
18367 /* System header to define __stub macros and hopefully few prototypes,
18368     which can conflict with char $ac_func(); below.  */
18369 #include <assert.h>
18370 /* Override any gcc2 internal prototype to avoid an error.  */
18371 /* We use char because int might match the return type of a gcc2
18372     builtin and then its argument prototype would still apply.  */
18373 char $ac_func();
18374
18375 int main() {
18376
18377 /* The GNU C library defines this for functions which it implements
18378     to always fail with ENOSYS.  Some functions are actually named
18379     something starting with __ and the normal name is an alias.  */
18380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18381 choke me
18382 #else
18383 $ac_func();
18384 #endif
18385
18386 ; return 0; }
18387 EOF
18388 if { (eval echo configure:18389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18389   rm -rf conftest*
18390   eval "ac_cv_func_$ac_func=yes"
18391 else
18392   echo "configure: failed program was:" >&5
18393   cat conftest.$ac_ext >&5
18394   rm -rf conftest*
18395   eval "ac_cv_func_$ac_func=no"
18396 fi
18397 rm -f conftest*
18398 fi
18399
18400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18401   echo "$ac_t""yes" 1>&6
18402     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18403   cat >> confdefs.h <<EOF
18404 #define $ac_tr_func 1
18405 EOF
18406  
18407 else
18408   echo "$ac_t""no" 1>&6
18409 fi
18410 done
18411
18412     fi
18413   fi
18414
18415   
18416   
18417   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
18418 echo "configure:18419: checking for expl declaration" >&5
18419   if test x${glibcpp_cv_func_expl_use+set} != xset; then
18420     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
18421   echo $ac_n "(cached) $ac_c" 1>&6
18422 else
18423   
18424       
18425       ac_ext=C
18426 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18427 ac_cpp='$CXXCPP $CPPFLAGS'
18428 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18429 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18430 cross_compiling=$ac_cv_prog_cxx_cross
18431
18432       cat > conftest.$ac_ext <<EOF
18433 #line 18434 "configure"
18434 #include "confdefs.h"
18435 #include <math.h>
18436                       #ifdef HAVE_IEEEFP_H
18437                       #include <ieeefp.h>
18438                       #endif
18439                      
18440 int main() {
18441  expl(0);
18442 ; return 0; }
18443 EOF
18444 if { (eval echo configure:18445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18445   rm -rf conftest*
18446   glibcpp_cv_func_expl_use=yes
18447 else
18448   echo "configure: failed program was:" >&5
18449   cat conftest.$ac_ext >&5
18450   rm -rf conftest*
18451   glibcpp_cv_func_expl_use=no
18452 fi
18453 rm -f conftest*
18454       ac_ext=c
18455 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18456 ac_cpp='$CPP $CPPFLAGS'
18457 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18458 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18459 cross_compiling=$ac_cv_prog_cc_cross
18460
18461     
18462 fi
18463
18464   fi
18465   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
18466
18467   if test x$glibcpp_cv_func_expl_use = x"yes"; then
18468     for ac_func in expl
18469 do
18470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18471 echo "configure:18472: checking for $ac_func" >&5
18472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18473   echo $ac_n "(cached) $ac_c" 1>&6
18474 else
18475   cat > conftest.$ac_ext <<EOF
18476 #line 18477 "configure"
18477 #include "confdefs.h"
18478 /* System header to define __stub macros and hopefully few prototypes,
18479     which can conflict with char $ac_func(); below.  */
18480 #include <assert.h>
18481 /* Override any gcc2 internal prototype to avoid an error.  */
18482 /* We use char because int might match the return type of a gcc2
18483     builtin and then its argument prototype would still apply.  */
18484 char $ac_func();
18485
18486 int main() {
18487
18488 /* The GNU C library defines this for functions which it implements
18489     to always fail with ENOSYS.  Some functions are actually named
18490     something starting with __ and the normal name is an alias.  */
18491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18492 choke me
18493 #else
18494 $ac_func();
18495 #endif
18496
18497 ; return 0; }
18498 EOF
18499 if { (eval echo configure:18500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18500   rm -rf conftest*
18501   eval "ac_cv_func_$ac_func=yes"
18502 else
18503   echo "configure: failed program was:" >&5
18504   cat conftest.$ac_ext >&5
18505   rm -rf conftest*
18506   eval "ac_cv_func_$ac_func=no"
18507 fi
18508 rm -f conftest*
18509 fi
18510
18511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18512   echo "$ac_t""yes" 1>&6
18513     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18514   cat >> confdefs.h <<EOF
18515 #define $ac_tr_func 1
18516 EOF
18517  
18518 else
18519   echo "$ac_t""no" 1>&6
18520 fi
18521 done
18522
18523   else
18524     
18525   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
18526 echo "configure:18527: checking for _expl declaration" >&5
18527   if test x${glibcpp_cv_func__expl_use+set} != xset; then
18528     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
18529   echo $ac_n "(cached) $ac_c" 1>&6
18530 else
18531   
18532       
18533       ac_ext=C
18534 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18535 ac_cpp='$CXXCPP $CPPFLAGS'
18536 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18537 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18538 cross_compiling=$ac_cv_prog_cxx_cross
18539
18540       cat > conftest.$ac_ext <<EOF
18541 #line 18542 "configure"
18542 #include "confdefs.h"
18543 #include <math.h>
18544                       #ifdef HAVE_IEEEFP_H
18545                       #include <ieeefp.h>
18546                       #endif
18547                      
18548 int main() {
18549  _expl(0);
18550 ; return 0; }
18551 EOF
18552 if { (eval echo configure:18553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18553   rm -rf conftest*
18554   glibcpp_cv_func__expl_use=yes
18555 else
18556   echo "configure: failed program was:" >&5
18557   cat conftest.$ac_ext >&5
18558   rm -rf conftest*
18559   glibcpp_cv_func__expl_use=no
18560 fi
18561 rm -f conftest*
18562       ac_ext=c
18563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18564 ac_cpp='$CPP $CPPFLAGS'
18565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18567 cross_compiling=$ac_cv_prog_cc_cross
18568
18569     
18570 fi
18571
18572   fi
18573   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
18574
18575     if test x$glibcpp_cv_func__expl_use = x"yes"; then
18576       for ac_func in _expl
18577 do
18578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18579 echo "configure:18580: checking for $ac_func" >&5
18580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18581   echo $ac_n "(cached) $ac_c" 1>&6
18582 else
18583   cat > conftest.$ac_ext <<EOF
18584 #line 18585 "configure"
18585 #include "confdefs.h"
18586 /* System header to define __stub macros and hopefully few prototypes,
18587     which can conflict with char $ac_func(); below.  */
18588 #include <assert.h>
18589 /* Override any gcc2 internal prototype to avoid an error.  */
18590 /* We use char because int might match the return type of a gcc2
18591     builtin and then its argument prototype would still apply.  */
18592 char $ac_func();
18593
18594 int main() {
18595
18596 /* The GNU C library defines this for functions which it implements
18597     to always fail with ENOSYS.  Some functions are actually named
18598     something starting with __ and the normal name is an alias.  */
18599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18600 choke me
18601 #else
18602 $ac_func();
18603 #endif
18604
18605 ; return 0; }
18606 EOF
18607 if { (eval echo configure:18608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18608   rm -rf conftest*
18609   eval "ac_cv_func_$ac_func=yes"
18610 else
18611   echo "configure: failed program was:" >&5
18612   cat conftest.$ac_ext >&5
18613   rm -rf conftest*
18614   eval "ac_cv_func_$ac_func=no"
18615 fi
18616 rm -f conftest*
18617 fi
18618
18619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18620   echo "$ac_t""yes" 1>&6
18621     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18622   cat >> confdefs.h <<EOF
18623 #define $ac_tr_func 1
18624 EOF
18625  
18626 else
18627   echo "$ac_t""no" 1>&6
18628 fi
18629 done
18630
18631     fi
18632   fi
18633
18634   
18635   
18636   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
18637 echo "configure:18638: checking for fabsl declaration" >&5
18638   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
18639     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
18640   echo $ac_n "(cached) $ac_c" 1>&6
18641 else
18642   
18643       
18644       ac_ext=C
18645 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18646 ac_cpp='$CXXCPP $CPPFLAGS'
18647 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18648 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18649 cross_compiling=$ac_cv_prog_cxx_cross
18650
18651       cat > conftest.$ac_ext <<EOF
18652 #line 18653 "configure"
18653 #include "confdefs.h"
18654 #include <math.h>
18655                       #ifdef HAVE_IEEEFP_H
18656                       #include <ieeefp.h>
18657                       #endif
18658                      
18659 int main() {
18660  fabsl(0);
18661 ; return 0; }
18662 EOF
18663 if { (eval echo configure:18664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18664   rm -rf conftest*
18665   glibcpp_cv_func_fabsl_use=yes
18666 else
18667   echo "configure: failed program was:" >&5
18668   cat conftest.$ac_ext >&5
18669   rm -rf conftest*
18670   glibcpp_cv_func_fabsl_use=no
18671 fi
18672 rm -f conftest*
18673       ac_ext=c
18674 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18675 ac_cpp='$CPP $CPPFLAGS'
18676 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18677 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18678 cross_compiling=$ac_cv_prog_cc_cross
18679
18680     
18681 fi
18682
18683   fi
18684   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
18685
18686   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
18687     for ac_func in fabsl
18688 do
18689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18690 echo "configure:18691: checking for $ac_func" >&5
18691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18692   echo $ac_n "(cached) $ac_c" 1>&6
18693 else
18694   cat > conftest.$ac_ext <<EOF
18695 #line 18696 "configure"
18696 #include "confdefs.h"
18697 /* System header to define __stub macros and hopefully few prototypes,
18698     which can conflict with char $ac_func(); below.  */
18699 #include <assert.h>
18700 /* Override any gcc2 internal prototype to avoid an error.  */
18701 /* We use char because int might match the return type of a gcc2
18702     builtin and then its argument prototype would still apply.  */
18703 char $ac_func();
18704
18705 int main() {
18706
18707 /* The GNU C library defines this for functions which it implements
18708     to always fail with ENOSYS.  Some functions are actually named
18709     something starting with __ and the normal name is an alias.  */
18710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18711 choke me
18712 #else
18713 $ac_func();
18714 #endif
18715
18716 ; return 0; }
18717 EOF
18718 if { (eval echo configure:18719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18719   rm -rf conftest*
18720   eval "ac_cv_func_$ac_func=yes"
18721 else
18722   echo "configure: failed program was:" >&5
18723   cat conftest.$ac_ext >&5
18724   rm -rf conftest*
18725   eval "ac_cv_func_$ac_func=no"
18726 fi
18727 rm -f conftest*
18728 fi
18729
18730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18731   echo "$ac_t""yes" 1>&6
18732     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18733   cat >> confdefs.h <<EOF
18734 #define $ac_tr_func 1
18735 EOF
18736  
18737 else
18738   echo "$ac_t""no" 1>&6
18739 fi
18740 done
18741
18742   else
18743     
18744   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
18745 echo "configure:18746: checking for _fabsl declaration" >&5
18746   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
18747     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
18748   echo $ac_n "(cached) $ac_c" 1>&6
18749 else
18750   
18751       
18752       ac_ext=C
18753 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18754 ac_cpp='$CXXCPP $CPPFLAGS'
18755 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18756 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18757 cross_compiling=$ac_cv_prog_cxx_cross
18758
18759       cat > conftest.$ac_ext <<EOF
18760 #line 18761 "configure"
18761 #include "confdefs.h"
18762 #include <math.h>
18763                       #ifdef HAVE_IEEEFP_H
18764                       #include <ieeefp.h>
18765                       #endif
18766                      
18767 int main() {
18768  _fabsl(0);
18769 ; return 0; }
18770 EOF
18771 if { (eval echo configure:18772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18772   rm -rf conftest*
18773   glibcpp_cv_func__fabsl_use=yes
18774 else
18775   echo "configure: failed program was:" >&5
18776   cat conftest.$ac_ext >&5
18777   rm -rf conftest*
18778   glibcpp_cv_func__fabsl_use=no
18779 fi
18780 rm -f conftest*
18781       ac_ext=c
18782 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18783 ac_cpp='$CPP $CPPFLAGS'
18784 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18785 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18786 cross_compiling=$ac_cv_prog_cc_cross
18787
18788     
18789 fi
18790
18791   fi
18792   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
18793
18794     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
18795       for ac_func in _fabsl
18796 do
18797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18798 echo "configure:18799: checking for $ac_func" >&5
18799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18800   echo $ac_n "(cached) $ac_c" 1>&6
18801 else
18802   cat > conftest.$ac_ext <<EOF
18803 #line 18804 "configure"
18804 #include "confdefs.h"
18805 /* System header to define __stub macros and hopefully few prototypes,
18806     which can conflict with char $ac_func(); below.  */
18807 #include <assert.h>
18808 /* Override any gcc2 internal prototype to avoid an error.  */
18809 /* We use char because int might match the return type of a gcc2
18810     builtin and then its argument prototype would still apply.  */
18811 char $ac_func();
18812
18813 int main() {
18814
18815 /* The GNU C library defines this for functions which it implements
18816     to always fail with ENOSYS.  Some functions are actually named
18817     something starting with __ and the normal name is an alias.  */
18818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18819 choke me
18820 #else
18821 $ac_func();
18822 #endif
18823
18824 ; return 0; }
18825 EOF
18826 if { (eval echo configure:18827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18827   rm -rf conftest*
18828   eval "ac_cv_func_$ac_func=yes"
18829 else
18830   echo "configure: failed program was:" >&5
18831   cat conftest.$ac_ext >&5
18832   rm -rf conftest*
18833   eval "ac_cv_func_$ac_func=no"
18834 fi
18835 rm -f conftest*
18836 fi
18837
18838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18839   echo "$ac_t""yes" 1>&6
18840     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18841   cat >> confdefs.h <<EOF
18842 #define $ac_tr_func 1
18843 EOF
18844  
18845 else
18846   echo "$ac_t""no" 1>&6
18847 fi
18848 done
18849
18850     fi
18851   fi
18852
18853   
18854   
18855   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
18856 echo "configure:18857: checking for fmodl declaration" >&5
18857   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
18858     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
18859   echo $ac_n "(cached) $ac_c" 1>&6
18860 else
18861   
18862       
18863       ac_ext=C
18864 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18865 ac_cpp='$CXXCPP $CPPFLAGS'
18866 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18867 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18868 cross_compiling=$ac_cv_prog_cxx_cross
18869
18870       cat > conftest.$ac_ext <<EOF
18871 #line 18872 "configure"
18872 #include "confdefs.h"
18873 #include <math.h>
18874 int main() {
18875  fmodl(0, 0);
18876 ; return 0; }
18877 EOF
18878 if { (eval echo configure:18879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18879   rm -rf conftest*
18880   glibcpp_cv_func_fmodl_use=yes
18881 else
18882   echo "configure: failed program was:" >&5
18883   cat conftest.$ac_ext >&5
18884   rm -rf conftest*
18885   glibcpp_cv_func_fmodl_use=no
18886 fi
18887 rm -f conftest*
18888       ac_ext=c
18889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18890 ac_cpp='$CPP $CPPFLAGS'
18891 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18892 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18893 cross_compiling=$ac_cv_prog_cc_cross
18894
18895     
18896 fi
18897
18898   fi
18899   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
18900
18901   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
18902     for ac_func in fmodl
18903 do
18904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18905 echo "configure:18906: checking for $ac_func" >&5
18906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18907   echo $ac_n "(cached) $ac_c" 1>&6
18908 else
18909   cat > conftest.$ac_ext <<EOF
18910 #line 18911 "configure"
18911 #include "confdefs.h"
18912 /* System header to define __stub macros and hopefully few prototypes,
18913     which can conflict with char $ac_func(); below.  */
18914 #include <assert.h>
18915 /* Override any gcc2 internal prototype to avoid an error.  */
18916 /* We use char because int might match the return type of a gcc2
18917     builtin and then its argument prototype would still apply.  */
18918 char $ac_func();
18919
18920 int main() {
18921
18922 /* The GNU C library defines this for functions which it implements
18923     to always fail with ENOSYS.  Some functions are actually named
18924     something starting with __ and the normal name is an alias.  */
18925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18926 choke me
18927 #else
18928 $ac_func();
18929 #endif
18930
18931 ; return 0; }
18932 EOF
18933 if { (eval echo configure:18934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18934   rm -rf conftest*
18935   eval "ac_cv_func_$ac_func=yes"
18936 else
18937   echo "configure: failed program was:" >&5
18938   cat conftest.$ac_ext >&5
18939   rm -rf conftest*
18940   eval "ac_cv_func_$ac_func=no"
18941 fi
18942 rm -f conftest*
18943 fi
18944
18945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18946   echo "$ac_t""yes" 1>&6
18947     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18948   cat >> confdefs.h <<EOF
18949 #define $ac_tr_func 1
18950 EOF
18951  
18952 else
18953   echo "$ac_t""no" 1>&6
18954 fi
18955 done
18956
18957   else
18958     
18959   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
18960 echo "configure:18961: checking for _fmodl declaration" >&5
18961   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
18962     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
18963   echo $ac_n "(cached) $ac_c" 1>&6
18964 else
18965   
18966       
18967       ac_ext=C
18968 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18969 ac_cpp='$CXXCPP $CPPFLAGS'
18970 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18971 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18972 cross_compiling=$ac_cv_prog_cxx_cross
18973
18974       cat > conftest.$ac_ext <<EOF
18975 #line 18976 "configure"
18976 #include "confdefs.h"
18977 #include <math.h>
18978 int main() {
18979  _fmodl(0, 0);
18980 ; return 0; }
18981 EOF
18982 if { (eval echo configure:18983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18983   rm -rf conftest*
18984   glibcpp_cv_func__fmodl_use=yes
18985 else
18986   echo "configure: failed program was:" >&5
18987   cat conftest.$ac_ext >&5
18988   rm -rf conftest*
18989   glibcpp_cv_func__fmodl_use=no
18990 fi
18991 rm -f conftest*
18992       ac_ext=c
18993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18994 ac_cpp='$CPP $CPPFLAGS'
18995 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18996 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18997 cross_compiling=$ac_cv_prog_cc_cross
18998
18999     
19000 fi
19001
19002   fi
19003   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
19004
19005     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
19006       for ac_func in _fmodl
19007 do
19008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19009 echo "configure:19010: checking for $ac_func" >&5
19010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19011   echo $ac_n "(cached) $ac_c" 1>&6
19012 else
19013   cat > conftest.$ac_ext <<EOF
19014 #line 19015 "configure"
19015 #include "confdefs.h"
19016 /* System header to define __stub macros and hopefully few prototypes,
19017     which can conflict with char $ac_func(); below.  */
19018 #include <assert.h>
19019 /* Override any gcc2 internal prototype to avoid an error.  */
19020 /* We use char because int might match the return type of a gcc2
19021     builtin and then its argument prototype would still apply.  */
19022 char $ac_func();
19023
19024 int main() {
19025
19026 /* The GNU C library defines this for functions which it implements
19027     to always fail with ENOSYS.  Some functions are actually named
19028     something starting with __ and the normal name is an alias.  */
19029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19030 choke me
19031 #else
19032 $ac_func();
19033 #endif
19034
19035 ; return 0; }
19036 EOF
19037 if { (eval echo configure:19038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19038   rm -rf conftest*
19039   eval "ac_cv_func_$ac_func=yes"
19040 else
19041   echo "configure: failed program was:" >&5
19042   cat conftest.$ac_ext >&5
19043   rm -rf conftest*
19044   eval "ac_cv_func_$ac_func=no"
19045 fi
19046 rm -f conftest*
19047 fi
19048
19049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19050   echo "$ac_t""yes" 1>&6
19051     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19052   cat >> confdefs.h <<EOF
19053 #define $ac_tr_func 1
19054 EOF
19055  
19056 else
19057   echo "$ac_t""no" 1>&6
19058 fi
19059 done
19060
19061     fi
19062   fi
19063
19064   
19065   
19066   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
19067 echo "configure:19068: checking for frexpl declaration" >&5
19068   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
19069     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
19070   echo $ac_n "(cached) $ac_c" 1>&6
19071 else
19072   
19073       
19074       ac_ext=C
19075 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19076 ac_cpp='$CXXCPP $CPPFLAGS'
19077 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19078 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19079 cross_compiling=$ac_cv_prog_cxx_cross
19080
19081       cat > conftest.$ac_ext <<EOF
19082 #line 19083 "configure"
19083 #include "confdefs.h"
19084 #include <math.h>
19085 int main() {
19086  frexpl(0, 0);
19087 ; return 0; }
19088 EOF
19089 if { (eval echo configure:19090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19090   rm -rf conftest*
19091   glibcpp_cv_func_frexpl_use=yes
19092 else
19093   echo "configure: failed program was:" >&5
19094   cat conftest.$ac_ext >&5
19095   rm -rf conftest*
19096   glibcpp_cv_func_frexpl_use=no
19097 fi
19098 rm -f conftest*
19099       ac_ext=c
19100 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19101 ac_cpp='$CPP $CPPFLAGS'
19102 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19103 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19104 cross_compiling=$ac_cv_prog_cc_cross
19105
19106     
19107 fi
19108
19109   fi
19110   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
19111
19112   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
19113     for ac_func in frexpl
19114 do
19115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19116 echo "configure:19117: checking for $ac_func" >&5
19117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19118   echo $ac_n "(cached) $ac_c" 1>&6
19119 else
19120   cat > conftest.$ac_ext <<EOF
19121 #line 19122 "configure"
19122 #include "confdefs.h"
19123 /* System header to define __stub macros and hopefully few prototypes,
19124     which can conflict with char $ac_func(); below.  */
19125 #include <assert.h>
19126 /* Override any gcc2 internal prototype to avoid an error.  */
19127 /* We use char because int might match the return type of a gcc2
19128     builtin and then its argument prototype would still apply.  */
19129 char $ac_func();
19130
19131 int main() {
19132
19133 /* The GNU C library defines this for functions which it implements
19134     to always fail with ENOSYS.  Some functions are actually named
19135     something starting with __ and the normal name is an alias.  */
19136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19137 choke me
19138 #else
19139 $ac_func();
19140 #endif
19141
19142 ; return 0; }
19143 EOF
19144 if { (eval echo configure:19145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19145   rm -rf conftest*
19146   eval "ac_cv_func_$ac_func=yes"
19147 else
19148   echo "configure: failed program was:" >&5
19149   cat conftest.$ac_ext >&5
19150   rm -rf conftest*
19151   eval "ac_cv_func_$ac_func=no"
19152 fi
19153 rm -f conftest*
19154 fi
19155
19156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19157   echo "$ac_t""yes" 1>&6
19158     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19159   cat >> confdefs.h <<EOF
19160 #define $ac_tr_func 1
19161 EOF
19162  
19163 else
19164   echo "$ac_t""no" 1>&6
19165 fi
19166 done
19167
19168   else
19169     
19170   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
19171 echo "configure:19172: checking for _frexpl declaration" >&5
19172   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
19173     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
19174   echo $ac_n "(cached) $ac_c" 1>&6
19175 else
19176   
19177       
19178       ac_ext=C
19179 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19180 ac_cpp='$CXXCPP $CPPFLAGS'
19181 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19182 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19183 cross_compiling=$ac_cv_prog_cxx_cross
19184
19185       cat > conftest.$ac_ext <<EOF
19186 #line 19187 "configure"
19187 #include "confdefs.h"
19188 #include <math.h>
19189 int main() {
19190  _frexpl(0, 0);
19191 ; return 0; }
19192 EOF
19193 if { (eval echo configure:19194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19194   rm -rf conftest*
19195   glibcpp_cv_func__frexpl_use=yes
19196 else
19197   echo "configure: failed program was:" >&5
19198   cat conftest.$ac_ext >&5
19199   rm -rf conftest*
19200   glibcpp_cv_func__frexpl_use=no
19201 fi
19202 rm -f conftest*
19203       ac_ext=c
19204 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19205 ac_cpp='$CPP $CPPFLAGS'
19206 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19207 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19208 cross_compiling=$ac_cv_prog_cc_cross
19209
19210     
19211 fi
19212
19213   fi
19214   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
19215
19216     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
19217       for ac_func in _frexpl
19218 do
19219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19220 echo "configure:19221: checking for $ac_func" >&5
19221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19222   echo $ac_n "(cached) $ac_c" 1>&6
19223 else
19224   cat > conftest.$ac_ext <<EOF
19225 #line 19226 "configure"
19226 #include "confdefs.h"
19227 /* System header to define __stub macros and hopefully few prototypes,
19228     which can conflict with char $ac_func(); below.  */
19229 #include <assert.h>
19230 /* Override any gcc2 internal prototype to avoid an error.  */
19231 /* We use char because int might match the return type of a gcc2
19232     builtin and then its argument prototype would still apply.  */
19233 char $ac_func();
19234
19235 int main() {
19236
19237 /* The GNU C library defines this for functions which it implements
19238     to always fail with ENOSYS.  Some functions are actually named
19239     something starting with __ and the normal name is an alias.  */
19240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19241 choke me
19242 #else
19243 $ac_func();
19244 #endif
19245
19246 ; return 0; }
19247 EOF
19248 if { (eval echo configure:19249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19249   rm -rf conftest*
19250   eval "ac_cv_func_$ac_func=yes"
19251 else
19252   echo "configure: failed program was:" >&5
19253   cat conftest.$ac_ext >&5
19254   rm -rf conftest*
19255   eval "ac_cv_func_$ac_func=no"
19256 fi
19257 rm -f conftest*
19258 fi
19259
19260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19261   echo "$ac_t""yes" 1>&6
19262     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19263   cat >> confdefs.h <<EOF
19264 #define $ac_tr_func 1
19265 EOF
19266  
19267 else
19268   echo "$ac_t""no" 1>&6
19269 fi
19270 done
19271
19272     fi
19273   fi
19274
19275   
19276   
19277   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
19278 echo "configure:19279: checking for hypotl declaration" >&5
19279   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
19280     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
19281   echo $ac_n "(cached) $ac_c" 1>&6
19282 else
19283   
19284       
19285       ac_ext=C
19286 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19287 ac_cpp='$CXXCPP $CPPFLAGS'
19288 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19289 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19290 cross_compiling=$ac_cv_prog_cxx_cross
19291
19292       cat > conftest.$ac_ext <<EOF
19293 #line 19294 "configure"
19294 #include "confdefs.h"
19295 #include <math.h>
19296 int main() {
19297  hypotl(0, 0);
19298 ; return 0; }
19299 EOF
19300 if { (eval echo configure:19301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19301   rm -rf conftest*
19302   glibcpp_cv_func_hypotl_use=yes
19303 else
19304   echo "configure: failed program was:" >&5
19305   cat conftest.$ac_ext >&5
19306   rm -rf conftest*
19307   glibcpp_cv_func_hypotl_use=no
19308 fi
19309 rm -f conftest*
19310       ac_ext=c
19311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19312 ac_cpp='$CPP $CPPFLAGS'
19313 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19314 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19315 cross_compiling=$ac_cv_prog_cc_cross
19316
19317     
19318 fi
19319
19320   fi
19321   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
19322
19323   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
19324     for ac_func in hypotl
19325 do
19326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19327 echo "configure:19328: checking for $ac_func" >&5
19328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19329   echo $ac_n "(cached) $ac_c" 1>&6
19330 else
19331   cat > conftest.$ac_ext <<EOF
19332 #line 19333 "configure"
19333 #include "confdefs.h"
19334 /* System header to define __stub macros and hopefully few prototypes,
19335     which can conflict with char $ac_func(); below.  */
19336 #include <assert.h>
19337 /* Override any gcc2 internal prototype to avoid an error.  */
19338 /* We use char because int might match the return type of a gcc2
19339     builtin and then its argument prototype would still apply.  */
19340 char $ac_func();
19341
19342 int main() {
19343
19344 /* The GNU C library defines this for functions which it implements
19345     to always fail with ENOSYS.  Some functions are actually named
19346     something starting with __ and the normal name is an alias.  */
19347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19348 choke me
19349 #else
19350 $ac_func();
19351 #endif
19352
19353 ; return 0; }
19354 EOF
19355 if { (eval echo configure:19356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19356   rm -rf conftest*
19357   eval "ac_cv_func_$ac_func=yes"
19358 else
19359   echo "configure: failed program was:" >&5
19360   cat conftest.$ac_ext >&5
19361   rm -rf conftest*
19362   eval "ac_cv_func_$ac_func=no"
19363 fi
19364 rm -f conftest*
19365 fi
19366
19367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19368   echo "$ac_t""yes" 1>&6
19369     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19370   cat >> confdefs.h <<EOF
19371 #define $ac_tr_func 1
19372 EOF
19373  
19374 else
19375   echo "$ac_t""no" 1>&6
19376 fi
19377 done
19378
19379   else
19380     
19381   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
19382 echo "configure:19383: checking for _hypotl declaration" >&5
19383   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
19384     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
19385   echo $ac_n "(cached) $ac_c" 1>&6
19386 else
19387   
19388       
19389       ac_ext=C
19390 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19391 ac_cpp='$CXXCPP $CPPFLAGS'
19392 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19393 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19394 cross_compiling=$ac_cv_prog_cxx_cross
19395
19396       cat > conftest.$ac_ext <<EOF
19397 #line 19398 "configure"
19398 #include "confdefs.h"
19399 #include <math.h>
19400 int main() {
19401  _hypotl(0, 0);
19402 ; return 0; }
19403 EOF
19404 if { (eval echo configure:19405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19405   rm -rf conftest*
19406   glibcpp_cv_func__hypotl_use=yes
19407 else
19408   echo "configure: failed program was:" >&5
19409   cat conftest.$ac_ext >&5
19410   rm -rf conftest*
19411   glibcpp_cv_func__hypotl_use=no
19412 fi
19413 rm -f conftest*
19414       ac_ext=c
19415 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19416 ac_cpp='$CPP $CPPFLAGS'
19417 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19418 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19419 cross_compiling=$ac_cv_prog_cc_cross
19420
19421     
19422 fi
19423
19424   fi
19425   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
19426
19427     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
19428       for ac_func in _hypotl
19429 do
19430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19431 echo "configure:19432: checking for $ac_func" >&5
19432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19433   echo $ac_n "(cached) $ac_c" 1>&6
19434 else
19435   cat > conftest.$ac_ext <<EOF
19436 #line 19437 "configure"
19437 #include "confdefs.h"
19438 /* System header to define __stub macros and hopefully few prototypes,
19439     which can conflict with char $ac_func(); below.  */
19440 #include <assert.h>
19441 /* Override any gcc2 internal prototype to avoid an error.  */
19442 /* We use char because int might match the return type of a gcc2
19443     builtin and then its argument prototype would still apply.  */
19444 char $ac_func();
19445
19446 int main() {
19447
19448 /* The GNU C library defines this for functions which it implements
19449     to always fail with ENOSYS.  Some functions are actually named
19450     something starting with __ and the normal name is an alias.  */
19451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19452 choke me
19453 #else
19454 $ac_func();
19455 #endif
19456
19457 ; return 0; }
19458 EOF
19459 if { (eval echo configure:19460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19460   rm -rf conftest*
19461   eval "ac_cv_func_$ac_func=yes"
19462 else
19463   echo "configure: failed program was:" >&5
19464   cat conftest.$ac_ext >&5
19465   rm -rf conftest*
19466   eval "ac_cv_func_$ac_func=no"
19467 fi
19468 rm -f conftest*
19469 fi
19470
19471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19472   echo "$ac_t""yes" 1>&6
19473     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19474   cat >> confdefs.h <<EOF
19475 #define $ac_tr_func 1
19476 EOF
19477  
19478 else
19479   echo "$ac_t""no" 1>&6
19480 fi
19481 done
19482
19483     fi
19484   fi
19485
19486   
19487   
19488   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
19489 echo "configure:19490: checking for ldexpl declaration" >&5
19490   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
19491     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
19492   echo $ac_n "(cached) $ac_c" 1>&6
19493 else
19494   
19495       
19496       ac_ext=C
19497 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19498 ac_cpp='$CXXCPP $CPPFLAGS'
19499 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19500 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19501 cross_compiling=$ac_cv_prog_cxx_cross
19502
19503       cat > conftest.$ac_ext <<EOF
19504 #line 19505 "configure"
19505 #include "confdefs.h"
19506 #include <math.h>
19507 int main() {
19508  ldexpl(0, 0);
19509 ; return 0; }
19510 EOF
19511 if { (eval echo configure:19512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19512   rm -rf conftest*
19513   glibcpp_cv_func_ldexpl_use=yes
19514 else
19515   echo "configure: failed program was:" >&5
19516   cat conftest.$ac_ext >&5
19517   rm -rf conftest*
19518   glibcpp_cv_func_ldexpl_use=no
19519 fi
19520 rm -f conftest*
19521       ac_ext=c
19522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19523 ac_cpp='$CPP $CPPFLAGS'
19524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19526 cross_compiling=$ac_cv_prog_cc_cross
19527
19528     
19529 fi
19530
19531   fi
19532   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
19533
19534   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
19535     for ac_func in ldexpl
19536 do
19537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19538 echo "configure:19539: checking for $ac_func" >&5
19539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19540   echo $ac_n "(cached) $ac_c" 1>&6
19541 else
19542   cat > conftest.$ac_ext <<EOF
19543 #line 19544 "configure"
19544 #include "confdefs.h"
19545 /* System header to define __stub macros and hopefully few prototypes,
19546     which can conflict with char $ac_func(); below.  */
19547 #include <assert.h>
19548 /* Override any gcc2 internal prototype to avoid an error.  */
19549 /* We use char because int might match the return type of a gcc2
19550     builtin and then its argument prototype would still apply.  */
19551 char $ac_func();
19552
19553 int main() {
19554
19555 /* The GNU C library defines this for functions which it implements
19556     to always fail with ENOSYS.  Some functions are actually named
19557     something starting with __ and the normal name is an alias.  */
19558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19559 choke me
19560 #else
19561 $ac_func();
19562 #endif
19563
19564 ; return 0; }
19565 EOF
19566 if { (eval echo configure:19567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19567   rm -rf conftest*
19568   eval "ac_cv_func_$ac_func=yes"
19569 else
19570   echo "configure: failed program was:" >&5
19571   cat conftest.$ac_ext >&5
19572   rm -rf conftest*
19573   eval "ac_cv_func_$ac_func=no"
19574 fi
19575 rm -f conftest*
19576 fi
19577
19578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19579   echo "$ac_t""yes" 1>&6
19580     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19581   cat >> confdefs.h <<EOF
19582 #define $ac_tr_func 1
19583 EOF
19584  
19585 else
19586   echo "$ac_t""no" 1>&6
19587 fi
19588 done
19589
19590   else
19591     
19592   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
19593 echo "configure:19594: checking for _ldexpl declaration" >&5
19594   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
19595     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
19596   echo $ac_n "(cached) $ac_c" 1>&6
19597 else
19598   
19599       
19600       ac_ext=C
19601 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19602 ac_cpp='$CXXCPP $CPPFLAGS'
19603 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19604 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19605 cross_compiling=$ac_cv_prog_cxx_cross
19606
19607       cat > conftest.$ac_ext <<EOF
19608 #line 19609 "configure"
19609 #include "confdefs.h"
19610 #include <math.h>
19611 int main() {
19612  _ldexpl(0, 0);
19613 ; return 0; }
19614 EOF
19615 if { (eval echo configure:19616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19616   rm -rf conftest*
19617   glibcpp_cv_func__ldexpl_use=yes
19618 else
19619   echo "configure: failed program was:" >&5
19620   cat conftest.$ac_ext >&5
19621   rm -rf conftest*
19622   glibcpp_cv_func__ldexpl_use=no
19623 fi
19624 rm -f conftest*
19625       ac_ext=c
19626 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19627 ac_cpp='$CPP $CPPFLAGS'
19628 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19629 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19630 cross_compiling=$ac_cv_prog_cc_cross
19631
19632     
19633 fi
19634
19635   fi
19636   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
19637
19638     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
19639       for ac_func in _ldexpl
19640 do
19641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19642 echo "configure:19643: checking for $ac_func" >&5
19643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19644   echo $ac_n "(cached) $ac_c" 1>&6
19645 else
19646   cat > conftest.$ac_ext <<EOF
19647 #line 19648 "configure"
19648 #include "confdefs.h"
19649 /* System header to define __stub macros and hopefully few prototypes,
19650     which can conflict with char $ac_func(); below.  */
19651 #include <assert.h>
19652 /* Override any gcc2 internal prototype to avoid an error.  */
19653 /* We use char because int might match the return type of a gcc2
19654     builtin and then its argument prototype would still apply.  */
19655 char $ac_func();
19656
19657 int main() {
19658
19659 /* The GNU C library defines this for functions which it implements
19660     to always fail with ENOSYS.  Some functions are actually named
19661     something starting with __ and the normal name is an alias.  */
19662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19663 choke me
19664 #else
19665 $ac_func();
19666 #endif
19667
19668 ; return 0; }
19669 EOF
19670 if { (eval echo configure:19671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19671   rm -rf conftest*
19672   eval "ac_cv_func_$ac_func=yes"
19673 else
19674   echo "configure: failed program was:" >&5
19675   cat conftest.$ac_ext >&5
19676   rm -rf conftest*
19677   eval "ac_cv_func_$ac_func=no"
19678 fi
19679 rm -f conftest*
19680 fi
19681
19682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19683   echo "$ac_t""yes" 1>&6
19684     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19685   cat >> confdefs.h <<EOF
19686 #define $ac_tr_func 1
19687 EOF
19688  
19689 else
19690   echo "$ac_t""no" 1>&6
19691 fi
19692 done
19693
19694     fi
19695   fi
19696
19697   
19698   
19699   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
19700 echo "configure:19701: checking for logl declaration" >&5
19701   if test x${glibcpp_cv_func_logl_use+set} != xset; then
19702     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
19703   echo $ac_n "(cached) $ac_c" 1>&6
19704 else
19705   
19706       
19707       ac_ext=C
19708 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19709 ac_cpp='$CXXCPP $CPPFLAGS'
19710 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19711 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19712 cross_compiling=$ac_cv_prog_cxx_cross
19713
19714       cat > conftest.$ac_ext <<EOF
19715 #line 19716 "configure"
19716 #include "confdefs.h"
19717 #include <math.h>
19718                       #ifdef HAVE_IEEEFP_H
19719                       #include <ieeefp.h>
19720                       #endif
19721                      
19722 int main() {
19723  logl(0);
19724 ; return 0; }
19725 EOF
19726 if { (eval echo configure:19727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19727   rm -rf conftest*
19728   glibcpp_cv_func_logl_use=yes
19729 else
19730   echo "configure: failed program was:" >&5
19731   cat conftest.$ac_ext >&5
19732   rm -rf conftest*
19733   glibcpp_cv_func_logl_use=no
19734 fi
19735 rm -f conftest*
19736       ac_ext=c
19737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19738 ac_cpp='$CPP $CPPFLAGS'
19739 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19740 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19741 cross_compiling=$ac_cv_prog_cc_cross
19742
19743     
19744 fi
19745
19746   fi
19747   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
19748
19749   if test x$glibcpp_cv_func_logl_use = x"yes"; then
19750     for ac_func in logl
19751 do
19752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19753 echo "configure:19754: checking for $ac_func" >&5
19754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19755   echo $ac_n "(cached) $ac_c" 1>&6
19756 else
19757   cat > conftest.$ac_ext <<EOF
19758 #line 19759 "configure"
19759 #include "confdefs.h"
19760 /* System header to define __stub macros and hopefully few prototypes,
19761     which can conflict with char $ac_func(); below.  */
19762 #include <assert.h>
19763 /* Override any gcc2 internal prototype to avoid an error.  */
19764 /* We use char because int might match the return type of a gcc2
19765     builtin and then its argument prototype would still apply.  */
19766 char $ac_func();
19767
19768 int main() {
19769
19770 /* The GNU C library defines this for functions which it implements
19771     to always fail with ENOSYS.  Some functions are actually named
19772     something starting with __ and the normal name is an alias.  */
19773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19774 choke me
19775 #else
19776 $ac_func();
19777 #endif
19778
19779 ; return 0; }
19780 EOF
19781 if { (eval echo configure:19782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19782   rm -rf conftest*
19783   eval "ac_cv_func_$ac_func=yes"
19784 else
19785   echo "configure: failed program was:" >&5
19786   cat conftest.$ac_ext >&5
19787   rm -rf conftest*
19788   eval "ac_cv_func_$ac_func=no"
19789 fi
19790 rm -f conftest*
19791 fi
19792
19793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19794   echo "$ac_t""yes" 1>&6
19795     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19796   cat >> confdefs.h <<EOF
19797 #define $ac_tr_func 1
19798 EOF
19799  
19800 else
19801   echo "$ac_t""no" 1>&6
19802 fi
19803 done
19804
19805   else
19806     
19807   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
19808 echo "configure:19809: checking for _logl declaration" >&5
19809   if test x${glibcpp_cv_func__logl_use+set} != xset; then
19810     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
19811   echo $ac_n "(cached) $ac_c" 1>&6
19812 else
19813   
19814       
19815       ac_ext=C
19816 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19817 ac_cpp='$CXXCPP $CPPFLAGS'
19818 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19819 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19820 cross_compiling=$ac_cv_prog_cxx_cross
19821
19822       cat > conftest.$ac_ext <<EOF
19823 #line 19824 "configure"
19824 #include "confdefs.h"
19825 #include <math.h>
19826                       #ifdef HAVE_IEEEFP_H
19827                       #include <ieeefp.h>
19828                       #endif
19829                      
19830 int main() {
19831  _logl(0);
19832 ; return 0; }
19833 EOF
19834 if { (eval echo configure:19835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19835   rm -rf conftest*
19836   glibcpp_cv_func__logl_use=yes
19837 else
19838   echo "configure: failed program was:" >&5
19839   cat conftest.$ac_ext >&5
19840   rm -rf conftest*
19841   glibcpp_cv_func__logl_use=no
19842 fi
19843 rm -f conftest*
19844       ac_ext=c
19845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19846 ac_cpp='$CPP $CPPFLAGS'
19847 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19848 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19849 cross_compiling=$ac_cv_prog_cc_cross
19850
19851     
19852 fi
19853
19854   fi
19855   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
19856
19857     if test x$glibcpp_cv_func__logl_use = x"yes"; then
19858       for ac_func in _logl
19859 do
19860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19861 echo "configure:19862: checking for $ac_func" >&5
19862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19863   echo $ac_n "(cached) $ac_c" 1>&6
19864 else
19865   cat > conftest.$ac_ext <<EOF
19866 #line 19867 "configure"
19867 #include "confdefs.h"
19868 /* System header to define __stub macros and hopefully few prototypes,
19869     which can conflict with char $ac_func(); below.  */
19870 #include <assert.h>
19871 /* Override any gcc2 internal prototype to avoid an error.  */
19872 /* We use char because int might match the return type of a gcc2
19873     builtin and then its argument prototype would still apply.  */
19874 char $ac_func();
19875
19876 int main() {
19877
19878 /* The GNU C library defines this for functions which it implements
19879     to always fail with ENOSYS.  Some functions are actually named
19880     something starting with __ and the normal name is an alias.  */
19881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19882 choke me
19883 #else
19884 $ac_func();
19885 #endif
19886
19887 ; return 0; }
19888 EOF
19889 if { (eval echo configure:19890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19890   rm -rf conftest*
19891   eval "ac_cv_func_$ac_func=yes"
19892 else
19893   echo "configure: failed program was:" >&5
19894   cat conftest.$ac_ext >&5
19895   rm -rf conftest*
19896   eval "ac_cv_func_$ac_func=no"
19897 fi
19898 rm -f conftest*
19899 fi
19900
19901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19902   echo "$ac_t""yes" 1>&6
19903     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19904   cat >> confdefs.h <<EOF
19905 #define $ac_tr_func 1
19906 EOF
19907  
19908 else
19909   echo "$ac_t""no" 1>&6
19910 fi
19911 done
19912
19913     fi
19914   fi
19915
19916   
19917   
19918   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
19919 echo "configure:19920: checking for log10l declaration" >&5
19920   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
19921     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
19922   echo $ac_n "(cached) $ac_c" 1>&6
19923 else
19924   
19925       
19926       ac_ext=C
19927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19928 ac_cpp='$CXXCPP $CPPFLAGS'
19929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19931 cross_compiling=$ac_cv_prog_cxx_cross
19932
19933       cat > conftest.$ac_ext <<EOF
19934 #line 19935 "configure"
19935 #include "confdefs.h"
19936 #include <math.h>
19937                       #ifdef HAVE_IEEEFP_H
19938                       #include <ieeefp.h>
19939                       #endif
19940                      
19941 int main() {
19942  log10l(0);
19943 ; return 0; }
19944 EOF
19945 if { (eval echo configure:19946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19946   rm -rf conftest*
19947   glibcpp_cv_func_log10l_use=yes
19948 else
19949   echo "configure: failed program was:" >&5
19950   cat conftest.$ac_ext >&5
19951   rm -rf conftest*
19952   glibcpp_cv_func_log10l_use=no
19953 fi
19954 rm -f conftest*
19955       ac_ext=c
19956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19957 ac_cpp='$CPP $CPPFLAGS'
19958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19960 cross_compiling=$ac_cv_prog_cc_cross
19961
19962     
19963 fi
19964
19965   fi
19966   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
19967
19968   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
19969     for ac_func in log10l
19970 do
19971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19972 echo "configure:19973: checking for $ac_func" >&5
19973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19974   echo $ac_n "(cached) $ac_c" 1>&6
19975 else
19976   cat > conftest.$ac_ext <<EOF
19977 #line 19978 "configure"
19978 #include "confdefs.h"
19979 /* System header to define __stub macros and hopefully few prototypes,
19980     which can conflict with char $ac_func(); below.  */
19981 #include <assert.h>
19982 /* Override any gcc2 internal prototype to avoid an error.  */
19983 /* We use char because int might match the return type of a gcc2
19984     builtin and then its argument prototype would still apply.  */
19985 char $ac_func();
19986
19987 int main() {
19988
19989 /* The GNU C library defines this for functions which it implements
19990     to always fail with ENOSYS.  Some functions are actually named
19991     something starting with __ and the normal name is an alias.  */
19992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19993 choke me
19994 #else
19995 $ac_func();
19996 #endif
19997
19998 ; return 0; }
19999 EOF
20000 if { (eval echo configure:20001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20001   rm -rf conftest*
20002   eval "ac_cv_func_$ac_func=yes"
20003 else
20004   echo "configure: failed program was:" >&5
20005   cat conftest.$ac_ext >&5
20006   rm -rf conftest*
20007   eval "ac_cv_func_$ac_func=no"
20008 fi
20009 rm -f conftest*
20010 fi
20011
20012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20013   echo "$ac_t""yes" 1>&6
20014     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20015   cat >> confdefs.h <<EOF
20016 #define $ac_tr_func 1
20017 EOF
20018  
20019 else
20020   echo "$ac_t""no" 1>&6
20021 fi
20022 done
20023
20024   else
20025     
20026   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
20027 echo "configure:20028: checking for _log10l declaration" >&5
20028   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
20029     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
20030   echo $ac_n "(cached) $ac_c" 1>&6
20031 else
20032   
20033       
20034       ac_ext=C
20035 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20036 ac_cpp='$CXXCPP $CPPFLAGS'
20037 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20038 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20039 cross_compiling=$ac_cv_prog_cxx_cross
20040
20041       cat > conftest.$ac_ext <<EOF
20042 #line 20043 "configure"
20043 #include "confdefs.h"
20044 #include <math.h>
20045                       #ifdef HAVE_IEEEFP_H
20046                       #include <ieeefp.h>
20047                       #endif
20048                      
20049 int main() {
20050  _log10l(0);
20051 ; return 0; }
20052 EOF
20053 if { (eval echo configure:20054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20054   rm -rf conftest*
20055   glibcpp_cv_func__log10l_use=yes
20056 else
20057   echo "configure: failed program was:" >&5
20058   cat conftest.$ac_ext >&5
20059   rm -rf conftest*
20060   glibcpp_cv_func__log10l_use=no
20061 fi
20062 rm -f conftest*
20063       ac_ext=c
20064 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20065 ac_cpp='$CPP $CPPFLAGS'
20066 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20067 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20068 cross_compiling=$ac_cv_prog_cc_cross
20069
20070     
20071 fi
20072
20073   fi
20074   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
20075
20076     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
20077       for ac_func in _log10l
20078 do
20079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20080 echo "configure:20081: checking for $ac_func" >&5
20081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20082   echo $ac_n "(cached) $ac_c" 1>&6
20083 else
20084   cat > conftest.$ac_ext <<EOF
20085 #line 20086 "configure"
20086 #include "confdefs.h"
20087 /* System header to define __stub macros and hopefully few prototypes,
20088     which can conflict with char $ac_func(); below.  */
20089 #include <assert.h>
20090 /* Override any gcc2 internal prototype to avoid an error.  */
20091 /* We use char because int might match the return type of a gcc2
20092     builtin and then its argument prototype would still apply.  */
20093 char $ac_func();
20094
20095 int main() {
20096
20097 /* The GNU C library defines this for functions which it implements
20098     to always fail with ENOSYS.  Some functions are actually named
20099     something starting with __ and the normal name is an alias.  */
20100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20101 choke me
20102 #else
20103 $ac_func();
20104 #endif
20105
20106 ; return 0; }
20107 EOF
20108 if { (eval echo configure:20109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20109   rm -rf conftest*
20110   eval "ac_cv_func_$ac_func=yes"
20111 else
20112   echo "configure: failed program was:" >&5
20113   cat conftest.$ac_ext >&5
20114   rm -rf conftest*
20115   eval "ac_cv_func_$ac_func=no"
20116 fi
20117 rm -f conftest*
20118 fi
20119
20120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20121   echo "$ac_t""yes" 1>&6
20122     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20123   cat >> confdefs.h <<EOF
20124 #define $ac_tr_func 1
20125 EOF
20126  
20127 else
20128   echo "$ac_t""no" 1>&6
20129 fi
20130 done
20131
20132     fi
20133   fi
20134
20135   
20136   
20137   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
20138 echo "configure:20139: checking for modfl declaration" >&5
20139   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
20140     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
20141   echo $ac_n "(cached) $ac_c" 1>&6
20142 else
20143   
20144       
20145       ac_ext=C
20146 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20147 ac_cpp='$CXXCPP $CPPFLAGS'
20148 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20149 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20150 cross_compiling=$ac_cv_prog_cxx_cross
20151
20152       cat > conftest.$ac_ext <<EOF
20153 #line 20154 "configure"
20154 #include "confdefs.h"
20155 #include <math.h>
20156 int main() {
20157  modfl(0, 0);
20158 ; return 0; }
20159 EOF
20160 if { (eval echo configure:20161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20161   rm -rf conftest*
20162   glibcpp_cv_func_modfl_use=yes
20163 else
20164   echo "configure: failed program was:" >&5
20165   cat conftest.$ac_ext >&5
20166   rm -rf conftest*
20167   glibcpp_cv_func_modfl_use=no
20168 fi
20169 rm -f conftest*
20170       ac_ext=c
20171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20172 ac_cpp='$CPP $CPPFLAGS'
20173 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20174 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20175 cross_compiling=$ac_cv_prog_cc_cross
20176
20177     
20178 fi
20179
20180   fi
20181   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
20182
20183   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
20184     for ac_func in modfl
20185 do
20186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20187 echo "configure:20188: checking for $ac_func" >&5
20188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20189   echo $ac_n "(cached) $ac_c" 1>&6
20190 else
20191   cat > conftest.$ac_ext <<EOF
20192 #line 20193 "configure"
20193 #include "confdefs.h"
20194 /* System header to define __stub macros and hopefully few prototypes,
20195     which can conflict with char $ac_func(); below.  */
20196 #include <assert.h>
20197 /* Override any gcc2 internal prototype to avoid an error.  */
20198 /* We use char because int might match the return type of a gcc2
20199     builtin and then its argument prototype would still apply.  */
20200 char $ac_func();
20201
20202 int main() {
20203
20204 /* The GNU C library defines this for functions which it implements
20205     to always fail with ENOSYS.  Some functions are actually named
20206     something starting with __ and the normal name is an alias.  */
20207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20208 choke me
20209 #else
20210 $ac_func();
20211 #endif
20212
20213 ; return 0; }
20214 EOF
20215 if { (eval echo configure:20216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20216   rm -rf conftest*
20217   eval "ac_cv_func_$ac_func=yes"
20218 else
20219   echo "configure: failed program was:" >&5
20220   cat conftest.$ac_ext >&5
20221   rm -rf conftest*
20222   eval "ac_cv_func_$ac_func=no"
20223 fi
20224 rm -f conftest*
20225 fi
20226
20227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20228   echo "$ac_t""yes" 1>&6
20229     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20230   cat >> confdefs.h <<EOF
20231 #define $ac_tr_func 1
20232 EOF
20233  
20234 else
20235   echo "$ac_t""no" 1>&6
20236 fi
20237 done
20238
20239   else
20240     
20241   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
20242 echo "configure:20243: checking for _modfl declaration" >&5
20243   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
20244     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
20245   echo $ac_n "(cached) $ac_c" 1>&6
20246 else
20247   
20248       
20249       ac_ext=C
20250 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20251 ac_cpp='$CXXCPP $CPPFLAGS'
20252 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20253 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20254 cross_compiling=$ac_cv_prog_cxx_cross
20255
20256       cat > conftest.$ac_ext <<EOF
20257 #line 20258 "configure"
20258 #include "confdefs.h"
20259 #include <math.h>
20260 int main() {
20261  _modfl(0, 0);
20262 ; return 0; }
20263 EOF
20264 if { (eval echo configure:20265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20265   rm -rf conftest*
20266   glibcpp_cv_func__modfl_use=yes
20267 else
20268   echo "configure: failed program was:" >&5
20269   cat conftest.$ac_ext >&5
20270   rm -rf conftest*
20271   glibcpp_cv_func__modfl_use=no
20272 fi
20273 rm -f conftest*
20274       ac_ext=c
20275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20276 ac_cpp='$CPP $CPPFLAGS'
20277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20279 cross_compiling=$ac_cv_prog_cc_cross
20280
20281     
20282 fi
20283
20284   fi
20285   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
20286
20287     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
20288       for ac_func in _modfl
20289 do
20290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20291 echo "configure:20292: checking for $ac_func" >&5
20292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20293   echo $ac_n "(cached) $ac_c" 1>&6
20294 else
20295   cat > conftest.$ac_ext <<EOF
20296 #line 20297 "configure"
20297 #include "confdefs.h"
20298 /* System header to define __stub macros and hopefully few prototypes,
20299     which can conflict with char $ac_func(); below.  */
20300 #include <assert.h>
20301 /* Override any gcc2 internal prototype to avoid an error.  */
20302 /* We use char because int might match the return type of a gcc2
20303     builtin and then its argument prototype would still apply.  */
20304 char $ac_func();
20305
20306 int main() {
20307
20308 /* The GNU C library defines this for functions which it implements
20309     to always fail with ENOSYS.  Some functions are actually named
20310     something starting with __ and the normal name is an alias.  */
20311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20312 choke me
20313 #else
20314 $ac_func();
20315 #endif
20316
20317 ; return 0; }
20318 EOF
20319 if { (eval echo configure:20320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20320   rm -rf conftest*
20321   eval "ac_cv_func_$ac_func=yes"
20322 else
20323   echo "configure: failed program was:" >&5
20324   cat conftest.$ac_ext >&5
20325   rm -rf conftest*
20326   eval "ac_cv_func_$ac_func=no"
20327 fi
20328 rm -f conftest*
20329 fi
20330
20331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20332   echo "$ac_t""yes" 1>&6
20333     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20334   cat >> confdefs.h <<EOF
20335 #define $ac_tr_func 1
20336 EOF
20337  
20338 else
20339   echo "$ac_t""no" 1>&6
20340 fi
20341 done
20342
20343     fi
20344   fi
20345
20346   
20347   
20348   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
20349 echo "configure:20350: checking for powl declaration" >&5
20350   if test x${glibcpp_cv_func_powl_use+set} != xset; then
20351     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
20352   echo $ac_n "(cached) $ac_c" 1>&6
20353 else
20354   
20355       
20356       ac_ext=C
20357 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20358 ac_cpp='$CXXCPP $CPPFLAGS'
20359 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20360 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20361 cross_compiling=$ac_cv_prog_cxx_cross
20362
20363       cat > conftest.$ac_ext <<EOF
20364 #line 20365 "configure"
20365 #include "confdefs.h"
20366 #include <math.h>
20367 int main() {
20368  powl(0, 0);
20369 ; return 0; }
20370 EOF
20371 if { (eval echo configure:20372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20372   rm -rf conftest*
20373   glibcpp_cv_func_powl_use=yes
20374 else
20375   echo "configure: failed program was:" >&5
20376   cat conftest.$ac_ext >&5
20377   rm -rf conftest*
20378   glibcpp_cv_func_powl_use=no
20379 fi
20380 rm -f conftest*
20381       ac_ext=c
20382 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20383 ac_cpp='$CPP $CPPFLAGS'
20384 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20385 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20386 cross_compiling=$ac_cv_prog_cc_cross
20387
20388     
20389 fi
20390
20391   fi
20392   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
20393
20394   if test x$glibcpp_cv_func_powl_use = x"yes"; then
20395     for ac_func in powl
20396 do
20397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20398 echo "configure:20399: checking for $ac_func" >&5
20399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20400   echo $ac_n "(cached) $ac_c" 1>&6
20401 else
20402   cat > conftest.$ac_ext <<EOF
20403 #line 20404 "configure"
20404 #include "confdefs.h"
20405 /* System header to define __stub macros and hopefully few prototypes,
20406     which can conflict with char $ac_func(); below.  */
20407 #include <assert.h>
20408 /* Override any gcc2 internal prototype to avoid an error.  */
20409 /* We use char because int might match the return type of a gcc2
20410     builtin and then its argument prototype would still apply.  */
20411 char $ac_func();
20412
20413 int main() {
20414
20415 /* The GNU C library defines this for functions which it implements
20416     to always fail with ENOSYS.  Some functions are actually named
20417     something starting with __ and the normal name is an alias.  */
20418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20419 choke me
20420 #else
20421 $ac_func();
20422 #endif
20423
20424 ; return 0; }
20425 EOF
20426 if { (eval echo configure:20427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20427   rm -rf conftest*
20428   eval "ac_cv_func_$ac_func=yes"
20429 else
20430   echo "configure: failed program was:" >&5
20431   cat conftest.$ac_ext >&5
20432   rm -rf conftest*
20433   eval "ac_cv_func_$ac_func=no"
20434 fi
20435 rm -f conftest*
20436 fi
20437
20438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20439   echo "$ac_t""yes" 1>&6
20440     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20441   cat >> confdefs.h <<EOF
20442 #define $ac_tr_func 1
20443 EOF
20444  
20445 else
20446   echo "$ac_t""no" 1>&6
20447 fi
20448 done
20449
20450   else
20451     
20452   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
20453 echo "configure:20454: checking for _powl declaration" >&5
20454   if test x${glibcpp_cv_func__powl_use+set} != xset; then
20455     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
20456   echo $ac_n "(cached) $ac_c" 1>&6
20457 else
20458   
20459       
20460       ac_ext=C
20461 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20462 ac_cpp='$CXXCPP $CPPFLAGS'
20463 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20464 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20465 cross_compiling=$ac_cv_prog_cxx_cross
20466
20467       cat > conftest.$ac_ext <<EOF
20468 #line 20469 "configure"
20469 #include "confdefs.h"
20470 #include <math.h>
20471 int main() {
20472  _powl(0, 0);
20473 ; return 0; }
20474 EOF
20475 if { (eval echo configure:20476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20476   rm -rf conftest*
20477   glibcpp_cv_func__powl_use=yes
20478 else
20479   echo "configure: failed program was:" >&5
20480   cat conftest.$ac_ext >&5
20481   rm -rf conftest*
20482   glibcpp_cv_func__powl_use=no
20483 fi
20484 rm -f conftest*
20485       ac_ext=c
20486 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20487 ac_cpp='$CPP $CPPFLAGS'
20488 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20489 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20490 cross_compiling=$ac_cv_prog_cc_cross
20491
20492     
20493 fi
20494
20495   fi
20496   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
20497
20498     if test x$glibcpp_cv_func__powl_use = x"yes"; then
20499       for ac_func in _powl
20500 do
20501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20502 echo "configure:20503: checking for $ac_func" >&5
20503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20504   echo $ac_n "(cached) $ac_c" 1>&6
20505 else
20506   cat > conftest.$ac_ext <<EOF
20507 #line 20508 "configure"
20508 #include "confdefs.h"
20509 /* System header to define __stub macros and hopefully few prototypes,
20510     which can conflict with char $ac_func(); below.  */
20511 #include <assert.h>
20512 /* Override any gcc2 internal prototype to avoid an error.  */
20513 /* We use char because int might match the return type of a gcc2
20514     builtin and then its argument prototype would still apply.  */
20515 char $ac_func();
20516
20517 int main() {
20518
20519 /* The GNU C library defines this for functions which it implements
20520     to always fail with ENOSYS.  Some functions are actually named
20521     something starting with __ and the normal name is an alias.  */
20522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20523 choke me
20524 #else
20525 $ac_func();
20526 #endif
20527
20528 ; return 0; }
20529 EOF
20530 if { (eval echo configure:20531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20531   rm -rf conftest*
20532   eval "ac_cv_func_$ac_func=yes"
20533 else
20534   echo "configure: failed program was:" >&5
20535   cat conftest.$ac_ext >&5
20536   rm -rf conftest*
20537   eval "ac_cv_func_$ac_func=no"
20538 fi
20539 rm -f conftest*
20540 fi
20541
20542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20543   echo "$ac_t""yes" 1>&6
20544     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20545   cat >> confdefs.h <<EOF
20546 #define $ac_tr_func 1
20547 EOF
20548  
20549 else
20550   echo "$ac_t""no" 1>&6
20551 fi
20552 done
20553
20554     fi
20555   fi
20556
20557   
20558   
20559   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
20560 echo "configure:20561: checking for sqrtl declaration" >&5
20561   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
20562     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
20563   echo $ac_n "(cached) $ac_c" 1>&6
20564 else
20565   
20566       
20567       ac_ext=C
20568 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20569 ac_cpp='$CXXCPP $CPPFLAGS'
20570 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20571 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20572 cross_compiling=$ac_cv_prog_cxx_cross
20573
20574       cat > conftest.$ac_ext <<EOF
20575 #line 20576 "configure"
20576 #include "confdefs.h"
20577 #include <math.h>
20578                       #ifdef HAVE_IEEEFP_H
20579                       #include <ieeefp.h>
20580                       #endif
20581                      
20582 int main() {
20583  sqrtl(0);
20584 ; return 0; }
20585 EOF
20586 if { (eval echo configure:20587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20587   rm -rf conftest*
20588   glibcpp_cv_func_sqrtl_use=yes
20589 else
20590   echo "configure: failed program was:" >&5
20591   cat conftest.$ac_ext >&5
20592   rm -rf conftest*
20593   glibcpp_cv_func_sqrtl_use=no
20594 fi
20595 rm -f conftest*
20596       ac_ext=c
20597 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20598 ac_cpp='$CPP $CPPFLAGS'
20599 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20600 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20601 cross_compiling=$ac_cv_prog_cc_cross
20602
20603     
20604 fi
20605
20606   fi
20607   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
20608
20609   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
20610     for ac_func in sqrtl
20611 do
20612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20613 echo "configure:20614: checking for $ac_func" >&5
20614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20615   echo $ac_n "(cached) $ac_c" 1>&6
20616 else
20617   cat > conftest.$ac_ext <<EOF
20618 #line 20619 "configure"
20619 #include "confdefs.h"
20620 /* System header to define __stub macros and hopefully few prototypes,
20621     which can conflict with char $ac_func(); below.  */
20622 #include <assert.h>
20623 /* Override any gcc2 internal prototype to avoid an error.  */
20624 /* We use char because int might match the return type of a gcc2
20625     builtin and then its argument prototype would still apply.  */
20626 char $ac_func();
20627
20628 int main() {
20629
20630 /* The GNU C library defines this for functions which it implements
20631     to always fail with ENOSYS.  Some functions are actually named
20632     something starting with __ and the normal name is an alias.  */
20633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20634 choke me
20635 #else
20636 $ac_func();
20637 #endif
20638
20639 ; return 0; }
20640 EOF
20641 if { (eval echo configure:20642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20642   rm -rf conftest*
20643   eval "ac_cv_func_$ac_func=yes"
20644 else
20645   echo "configure: failed program was:" >&5
20646   cat conftest.$ac_ext >&5
20647   rm -rf conftest*
20648   eval "ac_cv_func_$ac_func=no"
20649 fi
20650 rm -f conftest*
20651 fi
20652
20653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20654   echo "$ac_t""yes" 1>&6
20655     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20656   cat >> confdefs.h <<EOF
20657 #define $ac_tr_func 1
20658 EOF
20659  
20660 else
20661   echo "$ac_t""no" 1>&6
20662 fi
20663 done
20664
20665   else
20666     
20667   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
20668 echo "configure:20669: checking for _sqrtl declaration" >&5
20669   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
20670     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
20671   echo $ac_n "(cached) $ac_c" 1>&6
20672 else
20673   
20674       
20675       ac_ext=C
20676 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20677 ac_cpp='$CXXCPP $CPPFLAGS'
20678 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20679 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20680 cross_compiling=$ac_cv_prog_cxx_cross
20681
20682       cat > conftest.$ac_ext <<EOF
20683 #line 20684 "configure"
20684 #include "confdefs.h"
20685 #include <math.h>
20686                       #ifdef HAVE_IEEEFP_H
20687                       #include <ieeefp.h>
20688                       #endif
20689                      
20690 int main() {
20691  _sqrtl(0);
20692 ; return 0; }
20693 EOF
20694 if { (eval echo configure:20695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20695   rm -rf conftest*
20696   glibcpp_cv_func__sqrtl_use=yes
20697 else
20698   echo "configure: failed program was:" >&5
20699   cat conftest.$ac_ext >&5
20700   rm -rf conftest*
20701   glibcpp_cv_func__sqrtl_use=no
20702 fi
20703 rm -f conftest*
20704       ac_ext=c
20705 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20706 ac_cpp='$CPP $CPPFLAGS'
20707 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20708 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20709 cross_compiling=$ac_cv_prog_cc_cross
20710
20711     
20712 fi
20713
20714   fi
20715   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
20716
20717     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
20718       for ac_func in _sqrtl
20719 do
20720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20721 echo "configure:20722: checking for $ac_func" >&5
20722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20723   echo $ac_n "(cached) $ac_c" 1>&6
20724 else
20725   cat > conftest.$ac_ext <<EOF
20726 #line 20727 "configure"
20727 #include "confdefs.h"
20728 /* System header to define __stub macros and hopefully few prototypes,
20729     which can conflict with char $ac_func(); below.  */
20730 #include <assert.h>
20731 /* Override any gcc2 internal prototype to avoid an error.  */
20732 /* We use char because int might match the return type of a gcc2
20733     builtin and then its argument prototype would still apply.  */
20734 char $ac_func();
20735
20736 int main() {
20737
20738 /* The GNU C library defines this for functions which it implements
20739     to always fail with ENOSYS.  Some functions are actually named
20740     something starting with __ and the normal name is an alias.  */
20741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20742 choke me
20743 #else
20744 $ac_func();
20745 #endif
20746
20747 ; return 0; }
20748 EOF
20749 if { (eval echo configure:20750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20750   rm -rf conftest*
20751   eval "ac_cv_func_$ac_func=yes"
20752 else
20753   echo "configure: failed program was:" >&5
20754   cat conftest.$ac_ext >&5
20755   rm -rf conftest*
20756   eval "ac_cv_func_$ac_func=no"
20757 fi
20758 rm -f conftest*
20759 fi
20760
20761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20762   echo "$ac_t""yes" 1>&6
20763     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20764   cat >> confdefs.h <<EOF
20765 #define $ac_tr_func 1
20766 EOF
20767  
20768 else
20769   echo "$ac_t""no" 1>&6
20770 fi
20771 done
20772
20773     fi
20774   fi
20775
20776   
20777   
20778   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
20779 echo "configure:20780: checking for sincosl declaration" >&5
20780   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
20781     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
20782   echo $ac_n "(cached) $ac_c" 1>&6
20783 else
20784   
20785       
20786       ac_ext=C
20787 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20788 ac_cpp='$CXXCPP $CPPFLAGS'
20789 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20790 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20791 cross_compiling=$ac_cv_prog_cxx_cross
20792
20793       cat > conftest.$ac_ext <<EOF
20794 #line 20795 "configure"
20795 #include "confdefs.h"
20796 #include <math.h>
20797 int main() {
20798  sincosl(0, 0, 0);
20799 ; return 0; }
20800 EOF
20801 if { (eval echo configure:20802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20802   rm -rf conftest*
20803   glibcpp_cv_func_sincosl_use=yes
20804 else
20805   echo "configure: failed program was:" >&5
20806   cat conftest.$ac_ext >&5
20807   rm -rf conftest*
20808   glibcpp_cv_func_sincosl_use=no
20809 fi
20810 rm -f conftest*
20811       ac_ext=c
20812 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20813 ac_cpp='$CPP $CPPFLAGS'
20814 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20815 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20816 cross_compiling=$ac_cv_prog_cc_cross
20817
20818     
20819 fi
20820
20821   fi
20822   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
20823
20824   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
20825     for ac_func in sincosl
20826 do
20827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20828 echo "configure:20829: checking for $ac_func" >&5
20829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20830   echo $ac_n "(cached) $ac_c" 1>&6
20831 else
20832   cat > conftest.$ac_ext <<EOF
20833 #line 20834 "configure"
20834 #include "confdefs.h"
20835 /* System header to define __stub macros and hopefully few prototypes,
20836     which can conflict with char $ac_func(); below.  */
20837 #include <assert.h>
20838 /* Override any gcc2 internal prototype to avoid an error.  */
20839 /* We use char because int might match the return type of a gcc2
20840     builtin and then its argument prototype would still apply.  */
20841 char $ac_func();
20842
20843 int main() {
20844
20845 /* The GNU C library defines this for functions which it implements
20846     to always fail with ENOSYS.  Some functions are actually named
20847     something starting with __ and the normal name is an alias.  */
20848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20849 choke me
20850 #else
20851 $ac_func();
20852 #endif
20853
20854 ; return 0; }
20855 EOF
20856 if { (eval echo configure:20857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20857   rm -rf conftest*
20858   eval "ac_cv_func_$ac_func=yes"
20859 else
20860   echo "configure: failed program was:" >&5
20861   cat conftest.$ac_ext >&5
20862   rm -rf conftest*
20863   eval "ac_cv_func_$ac_func=no"
20864 fi
20865 rm -f conftest*
20866 fi
20867
20868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20869   echo "$ac_t""yes" 1>&6
20870     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20871   cat >> confdefs.h <<EOF
20872 #define $ac_tr_func 1
20873 EOF
20874  
20875 else
20876   echo "$ac_t""no" 1>&6
20877 fi
20878 done
20879
20880   else
20881     
20882   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
20883 echo "configure:20884: checking for _sincosl declaration" >&5
20884   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
20885     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
20886   echo $ac_n "(cached) $ac_c" 1>&6
20887 else
20888   
20889       
20890       ac_ext=C
20891 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20892 ac_cpp='$CXXCPP $CPPFLAGS'
20893 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20894 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20895 cross_compiling=$ac_cv_prog_cxx_cross
20896
20897       cat > conftest.$ac_ext <<EOF
20898 #line 20899 "configure"
20899 #include "confdefs.h"
20900 #include <math.h>
20901 int main() {
20902  _sincosl(0, 0, 0);
20903 ; return 0; }
20904 EOF
20905 if { (eval echo configure:20906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20906   rm -rf conftest*
20907   glibcpp_cv_func__sincosl_use=yes
20908 else
20909   echo "configure: failed program was:" >&5
20910   cat conftest.$ac_ext >&5
20911   rm -rf conftest*
20912   glibcpp_cv_func__sincosl_use=no
20913 fi
20914 rm -f conftest*
20915       ac_ext=c
20916 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20917 ac_cpp='$CPP $CPPFLAGS'
20918 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20919 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20920 cross_compiling=$ac_cv_prog_cc_cross
20921
20922     
20923 fi
20924
20925   fi
20926   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
20927
20928     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
20929       for ac_func in _sincosl
20930 do
20931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20932 echo "configure:20933: checking for $ac_func" >&5
20933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20934   echo $ac_n "(cached) $ac_c" 1>&6
20935 else
20936   cat > conftest.$ac_ext <<EOF
20937 #line 20938 "configure"
20938 #include "confdefs.h"
20939 /* System header to define __stub macros and hopefully few prototypes,
20940     which can conflict with char $ac_func(); below.  */
20941 #include <assert.h>
20942 /* Override any gcc2 internal prototype to avoid an error.  */
20943 /* We use char because int might match the return type of a gcc2
20944     builtin and then its argument prototype would still apply.  */
20945 char $ac_func();
20946
20947 int main() {
20948
20949 /* The GNU C library defines this for functions which it implements
20950     to always fail with ENOSYS.  Some functions are actually named
20951     something starting with __ and the normal name is an alias.  */
20952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20953 choke me
20954 #else
20955 $ac_func();
20956 #endif
20957
20958 ; return 0; }
20959 EOF
20960 if { (eval echo configure:20961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20961   rm -rf conftest*
20962   eval "ac_cv_func_$ac_func=yes"
20963 else
20964   echo "configure: failed program was:" >&5
20965   cat conftest.$ac_ext >&5
20966   rm -rf conftest*
20967   eval "ac_cv_func_$ac_func=no"
20968 fi
20969 rm -f conftest*
20970 fi
20971
20972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20973   echo "$ac_t""yes" 1>&6
20974     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20975   cat >> confdefs.h <<EOF
20976 #define $ac_tr_func 1
20977 EOF
20978  
20979 else
20980   echo "$ac_t""no" 1>&6
20981 fi
20982 done
20983
20984     fi
20985   fi
20986
20987   
20988   
20989   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
20990 echo "configure:20991: checking for finitel declaration" >&5
20991   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
20992     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
20993   echo $ac_n "(cached) $ac_c" 1>&6
20994 else
20995   
20996       
20997       ac_ext=C
20998 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20999 ac_cpp='$CXXCPP $CPPFLAGS'
21000 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21001 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21002 cross_compiling=$ac_cv_prog_cxx_cross
21003
21004       cat > conftest.$ac_ext <<EOF
21005 #line 21006 "configure"
21006 #include "confdefs.h"
21007 #include <math.h>
21008                       #ifdef HAVE_IEEEFP_H
21009                       #include <ieeefp.h>
21010                       #endif
21011                      
21012 int main() {
21013  finitel(0);
21014 ; return 0; }
21015 EOF
21016 if { (eval echo configure:21017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21017   rm -rf conftest*
21018   glibcpp_cv_func_finitel_use=yes
21019 else
21020   echo "configure: failed program was:" >&5
21021   cat conftest.$ac_ext >&5
21022   rm -rf conftest*
21023   glibcpp_cv_func_finitel_use=no
21024 fi
21025 rm -f conftest*
21026       ac_ext=c
21027 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21028 ac_cpp='$CPP $CPPFLAGS'
21029 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21030 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21031 cross_compiling=$ac_cv_prog_cc_cross
21032
21033     
21034 fi
21035
21036   fi
21037   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
21038
21039   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
21040     for ac_func in finitel
21041 do
21042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21043 echo "configure:21044: checking for $ac_func" >&5
21044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21045   echo $ac_n "(cached) $ac_c" 1>&6
21046 else
21047   cat > conftest.$ac_ext <<EOF
21048 #line 21049 "configure"
21049 #include "confdefs.h"
21050 /* System header to define __stub macros and hopefully few prototypes,
21051     which can conflict with char $ac_func(); below.  */
21052 #include <assert.h>
21053 /* Override any gcc2 internal prototype to avoid an error.  */
21054 /* We use char because int might match the return type of a gcc2
21055     builtin and then its argument prototype would still apply.  */
21056 char $ac_func();
21057
21058 int main() {
21059
21060 /* The GNU C library defines this for functions which it implements
21061     to always fail with ENOSYS.  Some functions are actually named
21062     something starting with __ and the normal name is an alias.  */
21063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21064 choke me
21065 #else
21066 $ac_func();
21067 #endif
21068
21069 ; return 0; }
21070 EOF
21071 if { (eval echo configure:21072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21072   rm -rf conftest*
21073   eval "ac_cv_func_$ac_func=yes"
21074 else
21075   echo "configure: failed program was:" >&5
21076   cat conftest.$ac_ext >&5
21077   rm -rf conftest*
21078   eval "ac_cv_func_$ac_func=no"
21079 fi
21080 rm -f conftest*
21081 fi
21082
21083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21084   echo "$ac_t""yes" 1>&6
21085     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21086   cat >> confdefs.h <<EOF
21087 #define $ac_tr_func 1
21088 EOF
21089  
21090 else
21091   echo "$ac_t""no" 1>&6
21092 fi
21093 done
21094
21095   else
21096     
21097   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
21098 echo "configure:21099: checking for _finitel declaration" >&5
21099   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
21100     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
21101   echo $ac_n "(cached) $ac_c" 1>&6
21102 else
21103   
21104       
21105       ac_ext=C
21106 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21107 ac_cpp='$CXXCPP $CPPFLAGS'
21108 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21109 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21110 cross_compiling=$ac_cv_prog_cxx_cross
21111
21112       cat > conftest.$ac_ext <<EOF
21113 #line 21114 "configure"
21114 #include "confdefs.h"
21115 #include <math.h>
21116                       #ifdef HAVE_IEEEFP_H
21117                       #include <ieeefp.h>
21118                       #endif
21119                      
21120 int main() {
21121  _finitel(0);
21122 ; return 0; }
21123 EOF
21124 if { (eval echo configure:21125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21125   rm -rf conftest*
21126   glibcpp_cv_func__finitel_use=yes
21127 else
21128   echo "configure: failed program was:" >&5
21129   cat conftest.$ac_ext >&5
21130   rm -rf conftest*
21131   glibcpp_cv_func__finitel_use=no
21132 fi
21133 rm -f conftest*
21134       ac_ext=c
21135 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21136 ac_cpp='$CPP $CPPFLAGS'
21137 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21138 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21139 cross_compiling=$ac_cv_prog_cc_cross
21140
21141     
21142 fi
21143
21144   fi
21145   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
21146
21147     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
21148       for ac_func in _finitel
21149 do
21150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21151 echo "configure:21152: checking for $ac_func" >&5
21152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21153   echo $ac_n "(cached) $ac_c" 1>&6
21154 else
21155   cat > conftest.$ac_ext <<EOF
21156 #line 21157 "configure"
21157 #include "confdefs.h"
21158 /* System header to define __stub macros and hopefully few prototypes,
21159     which can conflict with char $ac_func(); below.  */
21160 #include <assert.h>
21161 /* Override any gcc2 internal prototype to avoid an error.  */
21162 /* We use char because int might match the return type of a gcc2
21163     builtin and then its argument prototype would still apply.  */
21164 char $ac_func();
21165
21166 int main() {
21167
21168 /* The GNU C library defines this for functions which it implements
21169     to always fail with ENOSYS.  Some functions are actually named
21170     something starting with __ and the normal name is an alias.  */
21171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21172 choke me
21173 #else
21174 $ac_func();
21175 #endif
21176
21177 ; return 0; }
21178 EOF
21179 if { (eval echo configure:21180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21180   rm -rf conftest*
21181   eval "ac_cv_func_$ac_func=yes"
21182 else
21183   echo "configure: failed program was:" >&5
21184   cat conftest.$ac_ext >&5
21185   rm -rf conftest*
21186   eval "ac_cv_func_$ac_func=no"
21187 fi
21188 rm -f conftest*
21189 fi
21190
21191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21192   echo "$ac_t""yes" 1>&6
21193     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21194   cat >> confdefs.h <<EOF
21195 #define $ac_tr_func 1
21196 EOF
21197  
21198 else
21199   echo "$ac_t""no" 1>&6
21200 fi
21201 done
21202
21203     fi
21204   fi
21205
21206
21207         
21208     
21209   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
21210 echo "configure:21211: checking for _float trig functions" >&5
21211   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
21212   echo $ac_n "(cached) $ac_c" 1>&6
21213 else
21214   
21215     
21216     ac_ext=C
21217 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21218 ac_cpp='$CXXCPP $CPPFLAGS'
21219 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21220 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21221 cross_compiling=$ac_cv_prog_cxx_cross
21222
21223     cat > conftest.$ac_ext <<EOF
21224 #line 21225 "configure"
21225 #include "confdefs.h"
21226 #include <math.h>
21227 int main() {
21228  `for x in _acosf _asinf _atanf \
21229                                           _cosf _sinf _tanf \
21230                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
21231 ; return 0; }
21232 EOF
21233 if { (eval echo configure:21234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21234   rm -rf conftest*
21235   glibcpp_cv_func__float_trig_use=yes
21236 else
21237   echo "configure: failed program was:" >&5
21238   cat conftest.$ac_ext >&5
21239   rm -rf conftest*
21240   glibcpp_cv_func__float_trig_use=no
21241 fi
21242 rm -f conftest*
21243     ac_ext=c
21244 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21245 ac_cpp='$CPP $CPPFLAGS'
21246 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21247 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21248 cross_compiling=$ac_cv_prog_cc_cross
21249
21250 fi
21251
21252   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
21253   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
21254     for ac_func in _acosf _asinf _atanf \
21255                                           _cosf _sinf _tanf \
21256                                           _coshf _sinhf _tanhf
21257 do
21258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21259 echo "configure:21260: checking for $ac_func" >&5
21260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21261   echo $ac_n "(cached) $ac_c" 1>&6
21262 else
21263   cat > conftest.$ac_ext <<EOF
21264 #line 21265 "configure"
21265 #include "confdefs.h"
21266 /* System header to define __stub macros and hopefully few prototypes,
21267     which can conflict with char $ac_func(); below.  */
21268 #include <assert.h>
21269 /* Override any gcc2 internal prototype to avoid an error.  */
21270 /* We use char because int might match the return type of a gcc2
21271     builtin and then its argument prototype would still apply.  */
21272 char $ac_func();
21273
21274 int main() {
21275
21276 /* The GNU C library defines this for functions which it implements
21277     to always fail with ENOSYS.  Some functions are actually named
21278     something starting with __ and the normal name is an alias.  */
21279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21280 choke me
21281 #else
21282 $ac_func();
21283 #endif
21284
21285 ; return 0; }
21286 EOF
21287 if { (eval echo configure:21288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21288   rm -rf conftest*
21289   eval "ac_cv_func_$ac_func=yes"
21290 else
21291   echo "configure: failed program was:" >&5
21292   cat conftest.$ac_ext >&5
21293   rm -rf conftest*
21294   eval "ac_cv_func_$ac_func=no"
21295 fi
21296 rm -f conftest*
21297 fi
21298
21299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21300   echo "$ac_t""yes" 1>&6
21301     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21302   cat >> confdefs.h <<EOF
21303 #define $ac_tr_func 1
21304 EOF
21305  
21306 else
21307   echo "$ac_t""no" 1>&6
21308 fi
21309 done
21310
21311   fi
21312
21313   
21314   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
21315 echo "configure:21316: checking for _float round functions" >&5
21316   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
21317   echo $ac_n "(cached) $ac_c" 1>&6
21318 else
21319   
21320     
21321     ac_ext=C
21322 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21323 ac_cpp='$CXXCPP $CPPFLAGS'
21324 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21325 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21326 cross_compiling=$ac_cv_prog_cxx_cross
21327
21328     cat > conftest.$ac_ext <<EOF
21329 #line 21330 "configure"
21330 #include "confdefs.h"
21331 #include <math.h>
21332 int main() {
21333  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
21334 ; return 0; }
21335 EOF
21336 if { (eval echo configure:21337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21337   rm -rf conftest*
21338   glibcpp_cv_func__float_round_use=yes
21339 else
21340   echo "configure: failed program was:" >&5
21341   cat conftest.$ac_ext >&5
21342   rm -rf conftest*
21343   glibcpp_cv_func__float_round_use=no
21344 fi
21345 rm -f conftest*
21346     ac_ext=c
21347 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21348 ac_cpp='$CPP $CPPFLAGS'
21349 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21350 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21351 cross_compiling=$ac_cv_prog_cc_cross
21352
21353 fi
21354
21355   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
21356   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
21357     for ac_func in _ceilf _floorf
21358 do
21359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21360 echo "configure:21361: checking for $ac_func" >&5
21361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21362   echo $ac_n "(cached) $ac_c" 1>&6
21363 else
21364   cat > conftest.$ac_ext <<EOF
21365 #line 21366 "configure"
21366 #include "confdefs.h"
21367 /* System header to define __stub macros and hopefully few prototypes,
21368     which can conflict with char $ac_func(); below.  */
21369 #include <assert.h>
21370 /* Override any gcc2 internal prototype to avoid an error.  */
21371 /* We use char because int might match the return type of a gcc2
21372     builtin and then its argument prototype would still apply.  */
21373 char $ac_func();
21374
21375 int main() {
21376
21377 /* The GNU C library defines this for functions which it implements
21378     to always fail with ENOSYS.  Some functions are actually named
21379     something starting with __ and the normal name is an alias.  */
21380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21381 choke me
21382 #else
21383 $ac_func();
21384 #endif
21385
21386 ; return 0; }
21387 EOF
21388 if { (eval echo configure:21389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21389   rm -rf conftest*
21390   eval "ac_cv_func_$ac_func=yes"
21391 else
21392   echo "configure: failed program was:" >&5
21393   cat conftest.$ac_ext >&5
21394   rm -rf conftest*
21395   eval "ac_cv_func_$ac_func=no"
21396 fi
21397 rm -f conftest*
21398 fi
21399
21400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21401   echo "$ac_t""yes" 1>&6
21402     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21403   cat >> confdefs.h <<EOF
21404 #define $ac_tr_func 1
21405 EOF
21406  
21407 else
21408   echo "$ac_t""no" 1>&6
21409 fi
21410 done
21411
21412   fi
21413
21414
21415     
21416   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
21417 echo "configure:21418: checking for _long double trig functions" >&5
21418   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
21419   echo $ac_n "(cached) $ac_c" 1>&6
21420 else
21421   
21422     
21423     ac_ext=C
21424 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21425 ac_cpp='$CXXCPP $CPPFLAGS'
21426 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21427 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21428 cross_compiling=$ac_cv_prog_cxx_cross
21429
21430     cat > conftest.$ac_ext <<EOF
21431 #line 21432 "configure"
21432 #include "confdefs.h"
21433 #include <math.h>
21434 int main() {
21435  `for x in _acosl _asinl _atanl \
21436                                           _cosl _sinl _tanl \
21437                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
21438 ; return 0; }
21439 EOF
21440 if { (eval echo configure:21441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21441   rm -rf conftest*
21442   glibcpp_cv_func__long_double_trig_use=yes
21443 else
21444   echo "configure: failed program was:" >&5
21445   cat conftest.$ac_ext >&5
21446   rm -rf conftest*
21447   glibcpp_cv_func__long_double_trig_use=no
21448 fi
21449 rm -f conftest*
21450     ac_ext=c
21451 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21452 ac_cpp='$CPP $CPPFLAGS'
21453 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21454 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21455 cross_compiling=$ac_cv_prog_cc_cross
21456
21457 fi
21458
21459   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
21460   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
21461     for ac_func in _acosl _asinl _atanl \
21462                                           _cosl _sinl _tanl \
21463                                           _coshl _sinhl _tanhl
21464 do
21465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21466 echo "configure:21467: checking for $ac_func" >&5
21467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21468   echo $ac_n "(cached) $ac_c" 1>&6
21469 else
21470   cat > conftest.$ac_ext <<EOF
21471 #line 21472 "configure"
21472 #include "confdefs.h"
21473 /* System header to define __stub macros and hopefully few prototypes,
21474     which can conflict with char $ac_func(); below.  */
21475 #include <assert.h>
21476 /* Override any gcc2 internal prototype to avoid an error.  */
21477 /* We use char because int might match the return type of a gcc2
21478     builtin and then its argument prototype would still apply.  */
21479 char $ac_func();
21480
21481 int main() {
21482
21483 /* The GNU C library defines this for functions which it implements
21484     to always fail with ENOSYS.  Some functions are actually named
21485     something starting with __ and the normal name is an alias.  */
21486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21487 choke me
21488 #else
21489 $ac_func();
21490 #endif
21491
21492 ; return 0; }
21493 EOF
21494 if { (eval echo configure:21495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21495   rm -rf conftest*
21496   eval "ac_cv_func_$ac_func=yes"
21497 else
21498   echo "configure: failed program was:" >&5
21499   cat conftest.$ac_ext >&5
21500   rm -rf conftest*
21501   eval "ac_cv_func_$ac_func=no"
21502 fi
21503 rm -f conftest*
21504 fi
21505
21506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21507   echo "$ac_t""yes" 1>&6
21508     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21509   cat >> confdefs.h <<EOF
21510 #define $ac_tr_func 1
21511 EOF
21512  
21513 else
21514   echo "$ac_t""no" 1>&6
21515 fi
21516 done
21517
21518   fi
21519
21520   
21521   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
21522 echo "configure:21523: checking for _long double round functions" >&5
21523   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
21524   echo $ac_n "(cached) $ac_c" 1>&6
21525 else
21526   
21527     
21528     ac_ext=C
21529 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21530 ac_cpp='$CXXCPP $CPPFLAGS'
21531 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21532 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21533 cross_compiling=$ac_cv_prog_cxx_cross
21534
21535     cat > conftest.$ac_ext <<EOF
21536 #line 21537 "configure"
21537 #include "confdefs.h"
21538 #include <math.h>
21539 int main() {
21540  `for x in _ceill _floorl; do echo "$x (0);"; done` 
21541 ; return 0; }
21542 EOF
21543 if { (eval echo configure:21544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21544   rm -rf conftest*
21545   glibcpp_cv_func__long_double_round_use=yes
21546 else
21547   echo "configure: failed program was:" >&5
21548   cat conftest.$ac_ext >&5
21549   rm -rf conftest*
21550   glibcpp_cv_func__long_double_round_use=no
21551 fi
21552 rm -f conftest*
21553     ac_ext=c
21554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21555 ac_cpp='$CPP $CPPFLAGS'
21556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21558 cross_compiling=$ac_cv_prog_cc_cross
21559
21560 fi
21561
21562   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
21563   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
21564     for ac_func in _ceill _floorl
21565 do
21566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21567 echo "configure:21568: checking for $ac_func" >&5
21568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21569   echo $ac_n "(cached) $ac_c" 1>&6
21570 else
21571   cat > conftest.$ac_ext <<EOF
21572 #line 21573 "configure"
21573 #include "confdefs.h"
21574 /* System header to define __stub macros and hopefully few prototypes,
21575     which can conflict with char $ac_func(); below.  */
21576 #include <assert.h>
21577 /* Override any gcc2 internal prototype to avoid an error.  */
21578 /* We use char because int might match the return type of a gcc2
21579     builtin and then its argument prototype would still apply.  */
21580 char $ac_func();
21581
21582 int main() {
21583
21584 /* The GNU C library defines this for functions which it implements
21585     to always fail with ENOSYS.  Some functions are actually named
21586     something starting with __ and the normal name is an alias.  */
21587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21588 choke me
21589 #else
21590 $ac_func();
21591 #endif
21592
21593 ; return 0; }
21594 EOF
21595 if { (eval echo configure:21596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21596   rm -rf conftest*
21597   eval "ac_cv_func_$ac_func=yes"
21598 else
21599   echo "configure: failed program was:" >&5
21600   cat conftest.$ac_ext >&5
21601   rm -rf conftest*
21602   eval "ac_cv_func_$ac_func=no"
21603 fi
21604 rm -f conftest*
21605 fi
21606
21607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21608   echo "$ac_t""yes" 1>&6
21609     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21610   cat >> confdefs.h <<EOF
21611 #define $ac_tr_func 1
21612 EOF
21613  
21614 else
21615   echo "$ac_t""no" 1>&6
21616 fi
21617 done
21618
21619   fi
21620
21621
21622   LIBS="$ac_save_LIBS"
21623   CXXFLAGS="$ac_save_CXXFLAGS"
21624
21625   
21626     echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21627 echo "configure:21628: checking for main in -lm" >&5
21628 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21630   echo $ac_n "(cached) $ac_c" 1>&6
21631 else
21632   ac_save_LIBS="$LIBS"
21633 LIBS="-lm  $LIBS"
21634 cat > conftest.$ac_ext <<EOF
21635 #line 21636 "configure"
21636 #include "confdefs.h"
21637
21638 int main() {
21639 main()
21640 ; return 0; }
21641 EOF
21642 if { (eval echo configure:21643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21643   rm -rf conftest*
21644   eval "ac_cv_lib_$ac_lib_var=yes"
21645 else
21646   echo "configure: failed program was:" >&5
21647   cat conftest.$ac_ext >&5
21648   rm -rf conftest*
21649   eval "ac_cv_lib_$ac_lib_var=no"
21650 fi
21651 rm -f conftest*
21652 LIBS="$ac_save_LIBS"
21653
21654 fi
21655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21656   echo "$ac_t""yes" 1>&6
21657     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21658     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21659   cat >> confdefs.h <<EOF
21660 #define $ac_tr_lib 1
21661 EOF
21662
21663   LIBS="-lm $LIBS"
21664
21665 else
21666   echo "$ac_t""no" 1>&6
21667 fi
21668
21669   for ac_func in nan copysignf
21670 do
21671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21672 echo "configure:21673: checking for $ac_func" >&5
21673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21674   echo $ac_n "(cached) $ac_c" 1>&6
21675 else
21676   cat > conftest.$ac_ext <<EOF
21677 #line 21678 "configure"
21678 #include "confdefs.h"
21679 /* System header to define __stub macros and hopefully few prototypes,
21680     which can conflict with char $ac_func(); below.  */
21681 #include <assert.h>
21682 /* Override any gcc2 internal prototype to avoid an error.  */
21683 /* We use char because int might match the return type of a gcc2
21684     builtin and then its argument prototype would still apply.  */
21685 char $ac_func();
21686
21687 int main() {
21688
21689 /* The GNU C library defines this for functions which it implements
21690     to always fail with ENOSYS.  Some functions are actually named
21691     something starting with __ and the normal name is an alias.  */
21692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21693 choke me
21694 #else
21695 $ac_func();
21696 #endif
21697
21698 ; return 0; }
21699 EOF
21700 if { (eval echo configure:21701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21701   rm -rf conftest*
21702   eval "ac_cv_func_$ac_func=yes"
21703 else
21704   echo "configure: failed program was:" >&5
21705   cat conftest.$ac_ext >&5
21706   rm -rf conftest*
21707   eval "ac_cv_func_$ac_func=no"
21708 fi
21709 rm -f conftest*
21710 fi
21711
21712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21713   echo "$ac_t""yes" 1>&6
21714     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21715   cat >> confdefs.h <<EOF
21716 #define $ac_tr_func 1
21717 EOF
21718  
21719 else
21720   echo "$ac_t""no" 1>&6
21721 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21722 fi
21723 done
21724
21725
21726     for ac_func in __signbit
21727 do
21728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21729 echo "configure:21730: checking for $ac_func" >&5
21730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21731   echo $ac_n "(cached) $ac_c" 1>&6
21732 else
21733   cat > conftest.$ac_ext <<EOF
21734 #line 21735 "configure"
21735 #include "confdefs.h"
21736 /* System header to define __stub macros and hopefully few prototypes,
21737     which can conflict with char $ac_func(); below.  */
21738 #include <assert.h>
21739 /* Override any gcc2 internal prototype to avoid an error.  */
21740 /* We use char because int might match the return type of a gcc2
21741     builtin and then its argument prototype would still apply.  */
21742 char $ac_func();
21743
21744 int main() {
21745
21746 /* The GNU C library defines this for functions which it implements
21747     to always fail with ENOSYS.  Some functions are actually named
21748     something starting with __ and the normal name is an alias.  */
21749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21750 choke me
21751 #else
21752 $ac_func();
21753 #endif
21754
21755 ; return 0; }
21756 EOF
21757 if { (eval echo configure:21758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21758   rm -rf conftest*
21759   eval "ac_cv_func_$ac_func=yes"
21760 else
21761   echo "configure: failed program was:" >&5
21762   cat conftest.$ac_ext >&5
21763   rm -rf conftest*
21764   eval "ac_cv_func_$ac_func=no"
21765 fi
21766 rm -f conftest*
21767 fi
21768
21769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21770   echo "$ac_t""yes" 1>&6
21771     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21772   cat >> confdefs.h <<EOF
21773 #define $ac_tr_func 1
21774 EOF
21775  
21776 else
21777   echo "$ac_t""no" 1>&6
21778 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21779 fi
21780 done
21781
21782   for ac_func in __signbitf
21783 do
21784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21785 echo "configure:21786: checking for $ac_func" >&5
21786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21787   echo $ac_n "(cached) $ac_c" 1>&6
21788 else
21789   cat > conftest.$ac_ext <<EOF
21790 #line 21791 "configure"
21791 #include "confdefs.h"
21792 /* System header to define __stub macros and hopefully few prototypes,
21793     which can conflict with char $ac_func(); below.  */
21794 #include <assert.h>
21795 /* Override any gcc2 internal prototype to avoid an error.  */
21796 /* We use char because int might match the return type of a gcc2
21797     builtin and then its argument prototype would still apply.  */
21798 char $ac_func();
21799
21800 int main() {
21801
21802 /* The GNU C library defines this for functions which it implements
21803     to always fail with ENOSYS.  Some functions are actually named
21804     something starting with __ and the normal name is an alias.  */
21805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21806 choke me
21807 #else
21808 $ac_func();
21809 #endif
21810
21811 ; return 0; }
21812 EOF
21813 if { (eval echo configure:21814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21814   rm -rf conftest*
21815   eval "ac_cv_func_$ac_func=yes"
21816 else
21817   echo "configure: failed program was:" >&5
21818   cat conftest.$ac_ext >&5
21819   rm -rf conftest*
21820   eval "ac_cv_func_$ac_func=no"
21821 fi
21822 rm -f conftest*
21823 fi
21824
21825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21826   echo "$ac_t""yes" 1>&6
21827     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21828   cat >> confdefs.h <<EOF
21829 #define $ac_tr_func 1
21830 EOF
21831  
21832 else
21833   echo "$ac_t""no" 1>&6
21834 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21835 fi
21836 done
21837
21838
21839           if test x$ac_cv_func_copysignl = x"yes"; then
21840     for ac_func in __signbitl
21841 do
21842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21843 echo "configure:21844: checking for $ac_func" >&5
21844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21845   echo $ac_n "(cached) $ac_c" 1>&6
21846 else
21847   cat > conftest.$ac_ext <<EOF
21848 #line 21849 "configure"
21849 #include "confdefs.h"
21850 /* System header to define __stub macros and hopefully few prototypes,
21851     which can conflict with char $ac_func(); below.  */
21852 #include <assert.h>
21853 /* Override any gcc2 internal prototype to avoid an error.  */
21854 /* We use char because int might match the return type of a gcc2
21855     builtin and then its argument prototype would still apply.  */
21856 char $ac_func();
21857
21858 int main() {
21859
21860 /* The GNU C library defines this for functions which it implements
21861     to always fail with ENOSYS.  Some functions are actually named
21862     something starting with __ and the normal name is an alias.  */
21863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21864 choke me
21865 #else
21866 $ac_func();
21867 #endif
21868
21869 ; return 0; }
21870 EOF
21871 if { (eval echo configure:21872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21872   rm -rf conftest*
21873   eval "ac_cv_func_$ac_func=yes"
21874 else
21875   echo "configure: failed program was:" >&5
21876   cat conftest.$ac_ext >&5
21877   rm -rf conftest*
21878   eval "ac_cv_func_$ac_func=no"
21879 fi
21880 rm -f conftest*
21881 fi
21882
21883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21884   echo "$ac_t""yes" 1>&6
21885     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21886   cat >> confdefs.h <<EOF
21887 #define $ac_tr_func 1
21888 EOF
21889  
21890 else
21891   echo "$ac_t""no" 1>&6
21892 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
21893 fi
21894 done
21895
21896   fi
21897
21898   if test -n "$LIBMATHOBJS"; then
21899     need_libmath=yes
21900   fi
21901   
21902   
21903
21904 if test "$need_libmath" = yes; then
21905   GLIBCPP_BUILD_LIBMATH_TRUE=
21906   GLIBCPP_BUILD_LIBMATH_FALSE='#'
21907 else
21908   GLIBCPP_BUILD_LIBMATH_TRUE='#'
21909   GLIBCPP_BUILD_LIBMATH_FALSE=
21910 fi
21911
21912   
21913
21914       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
21915 echo "configure:21916: checking for mbstate_t" >&5
21916   cat > conftest.$ac_ext <<EOF
21917 #line 21918 "configure"
21918 #include "confdefs.h"
21919 #include <wchar.h>
21920 int main() {
21921 mbstate_t teststate;
21922 ; return 0; }
21923 EOF
21924 if { (eval echo configure:21925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21925   rm -rf conftest*
21926   have_mbstate_t=yes
21927 else
21928   echo "configure: failed program was:" >&5
21929   cat conftest.$ac_ext >&5
21930   rm -rf conftest*
21931   have_mbstate_t=no
21932 fi
21933 rm -f conftest*
21934   echo "$ac_t""$have_mbstate_t" 1>&6
21935   if test x"$have_mbstate_t" = xyes; then
21936     cat >> confdefs.h <<\EOF
21937 #define HAVE_MBSTATE_T 1
21938 EOF
21939
21940   fi
21941
21942     for ac_hdr in wchar.h
21943 do
21944 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21945 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21946 echo "configure:21947: checking for $ac_hdr" >&5
21947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21948   echo $ac_n "(cached) $ac_c" 1>&6
21949 else
21950   cat > conftest.$ac_ext <<EOF
21951 #line 21952 "configure"
21952 #include "confdefs.h"
21953 #include <$ac_hdr>
21954 EOF
21955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21956 { (eval echo configure:21957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21958 if test -z "$ac_err"; then
21959   rm -rf conftest*
21960   eval "ac_cv_header_$ac_safe=yes"
21961 else
21962   echo "$ac_err" >&5
21963   echo "configure: failed program was:" >&5
21964   cat conftest.$ac_ext >&5
21965   rm -rf conftest*
21966   eval "ac_cv_header_$ac_safe=no"
21967 fi
21968 rm -f conftest*
21969 fi
21970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21971   echo "$ac_t""yes" 1>&6
21972     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21973   cat >> confdefs.h <<EOF
21974 #define $ac_tr_hdr 1
21975 EOF
21976  ac_has_wchar_h=yes
21977 else
21978   echo "$ac_t""no" 1>&6
21979 ac_has_wchar_h=no
21980 fi
21981 done
21982
21983   for ac_hdr in wctype.h
21984 do
21985 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21987 echo "configure:21988: checking for $ac_hdr" >&5
21988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21989   echo $ac_n "(cached) $ac_c" 1>&6
21990 else
21991   cat > conftest.$ac_ext <<EOF
21992 #line 21993 "configure"
21993 #include "confdefs.h"
21994 #include <$ac_hdr>
21995 EOF
21996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21997 { (eval echo configure:21998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21999 if test -z "$ac_err"; then
22000   rm -rf conftest*
22001   eval "ac_cv_header_$ac_safe=yes"
22002 else
22003   echo "$ac_err" >&5
22004   echo "configure: failed program was:" >&5
22005   cat conftest.$ac_ext >&5
22006   rm -rf conftest*
22007   eval "ac_cv_header_$ac_safe=no"
22008 fi
22009 rm -f conftest*
22010 fi
22011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22012   echo "$ac_t""yes" 1>&6
22013     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22014   cat >> confdefs.h <<EOF
22015 #define $ac_tr_hdr 1
22016 EOF
22017  ac_has_wctype_h=yes
22018 else
22019   echo "$ac_t""no" 1>&6
22020 ac_has_wctype_h=no
22021 fi
22022 done
22023
22024
22025     if test x"$ac_has_wchar_h" = xyes &&
22026      test x"$ac_has_wctype_h" = xyes &&
22027      test x"$enable_c_mbchar" != xno; then
22028
22029             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22030 echo "configure:22031: checking for WCHAR_MIN and WCHAR_MAX" >&5
22031     cat > conftest.$ac_ext <<EOF
22032 #line 22033 "configure"
22033 #include "confdefs.h"
22034 #include <wchar.h>
22035 int main() {
22036 int i = WCHAR_MIN; int j = WCHAR_MAX;
22037 ; return 0; }
22038 EOF
22039 if { (eval echo configure:22040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22040   rm -rf conftest*
22041   has_wchar_minmax=yes
22042 else
22043   echo "configure: failed program was:" >&5
22044   cat conftest.$ac_ext >&5
22045   rm -rf conftest*
22046   has_wchar_minmax=no
22047 fi
22048 rm -f conftest*
22049     echo "$ac_t""$has_wchar_minmax" 1>&6
22050
22051             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22052 echo "configure:22053: checking for WEOF" >&5
22053     cat > conftest.$ac_ext <<EOF
22054 #line 22055 "configure"
22055 #include "confdefs.h"
22056
22057       #include <wchar.h>
22058       #include <stddef.h>
22059 int main() {
22060 wint_t i = WEOF;
22061 ; return 0; }
22062 EOF
22063 if { (eval echo configure:22064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22064   rm -rf conftest*
22065   has_weof=yes
22066 else
22067   echo "configure: failed program was:" >&5
22068   cat conftest.$ac_ext >&5
22069   rm -rf conftest*
22070   has_weof=no
22071 fi
22072 rm -f conftest*
22073     echo "$ac_t""$has_weof" 1>&6
22074
22075         ac_wfuncs=yes
22076     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22077 do
22078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22079 echo "configure:22080: checking for $ac_func" >&5
22080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22081   echo $ac_n "(cached) $ac_c" 1>&6
22082 else
22083   cat > conftest.$ac_ext <<EOF
22084 #line 22085 "configure"
22085 #include "confdefs.h"
22086 /* System header to define __stub macros and hopefully few prototypes,
22087     which can conflict with char $ac_func(); below.  */
22088 #include <assert.h>
22089 /* Override any gcc2 internal prototype to avoid an error.  */
22090 /* We use char because int might match the return type of a gcc2
22091     builtin and then its argument prototype would still apply.  */
22092 char $ac_func();
22093
22094 int main() {
22095
22096 /* The GNU C library defines this for functions which it implements
22097     to always fail with ENOSYS.  Some functions are actually named
22098     something starting with __ and the normal name is an alias.  */
22099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22100 choke me
22101 #else
22102 $ac_func();
22103 #endif
22104
22105 ; return 0; }
22106 EOF
22107 if { (eval echo configure:22108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22108   rm -rf conftest*
22109   eval "ac_cv_func_$ac_func=yes"
22110 else
22111   echo "configure: failed program was:" >&5
22112   cat conftest.$ac_ext >&5
22113   rm -rf conftest*
22114   eval "ac_cv_func_$ac_func=no"
22115 fi
22116 rm -f conftest*
22117 fi
22118
22119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22120   echo "$ac_t""yes" 1>&6
22121     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22122   cat >> confdefs.h <<EOF
22123 #define $ac_tr_func 1
22124 EOF
22125  
22126 else
22127   echo "$ac_t""no" 1>&6
22128 \
22129     ac_wfuncs=no
22130 fi
22131 done
22132
22133
22134         for ac_func in btowc wctob fgetwc fgetwc fgetws fputwc fputws fwide \
22135     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22136     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22137     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22138     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22139     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22140 do
22141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22142 echo "configure:22143: checking for $ac_func" >&5
22143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22144   echo $ac_n "(cached) $ac_c" 1>&6
22145 else
22146   cat > conftest.$ac_ext <<EOF
22147 #line 22148 "configure"
22148 #include "confdefs.h"
22149 /* System header to define __stub macros and hopefully few prototypes,
22150     which can conflict with char $ac_func(); below.  */
22151 #include <assert.h>
22152 /* Override any gcc2 internal prototype to avoid an error.  */
22153 /* We use char because int might match the return type of a gcc2
22154     builtin and then its argument prototype would still apply.  */
22155 char $ac_func();
22156
22157 int main() {
22158
22159 /* The GNU C library defines this for functions which it implements
22160     to always fail with ENOSYS.  Some functions are actually named
22161     something starting with __ and the normal name is an alias.  */
22162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22163 choke me
22164 #else
22165 $ac_func();
22166 #endif
22167
22168 ; return 0; }
22169 EOF
22170 if { (eval echo configure:22171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22171   rm -rf conftest*
22172   eval "ac_cv_func_$ac_func=yes"
22173 else
22174   echo "configure: failed program was:" >&5
22175   cat conftest.$ac_ext >&5
22176   rm -rf conftest*
22177   eval "ac_cv_func_$ac_func=no"
22178 fi
22179 rm -f conftest*
22180 fi
22181
22182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22183   echo "$ac_t""yes" 1>&6
22184     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22185   cat >> confdefs.h <<EOF
22186 #define $ac_tr_func 1
22187 EOF
22188  
22189 else
22190   echo "$ac_t""no" 1>&6
22191 \
22192     ac_wfuncs=no
22193 fi
22194 done
22195
22196
22197     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22198 echo "configure:22199: checking for ISO C99 wchar_t support" >&5
22199     if test x"$has_weof" = xyes &&
22200        test x"$has_wchar_minmax" = xyes &&
22201        test x"$ac_wfuncs" = xyes; then
22202       ac_isoC99_wchar_t=yes
22203     else
22204       ac_isoC99_wchar_t=no
22205     fi
22206     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22207
22208             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22209 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22210 echo "configure:22211: checking for iconv.h" >&5
22211 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22212   echo $ac_n "(cached) $ac_c" 1>&6
22213 else
22214   cat > conftest.$ac_ext <<EOF
22215 #line 22216 "configure"
22216 #include "confdefs.h"
22217 #include <iconv.h>
22218 EOF
22219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22220 { (eval echo configure:22221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22222 if test -z "$ac_err"; then
22223   rm -rf conftest*
22224   eval "ac_cv_header_$ac_safe=yes"
22225 else
22226   echo "$ac_err" >&5
22227   echo "configure: failed program was:" >&5
22228   cat conftest.$ac_ext >&5
22229   rm -rf conftest*
22230   eval "ac_cv_header_$ac_safe=no"
22231 fi
22232 rm -f conftest*
22233 fi
22234 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22235   echo "$ac_t""yes" 1>&6
22236   ac_has_iconv_h=yes
22237 else
22238   echo "$ac_t""no" 1>&6
22239 ac_has_iconv_h=no
22240 fi
22241
22242     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22243 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22244 echo "configure:22245: checking for langinfo.h" >&5
22245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22246   echo $ac_n "(cached) $ac_c" 1>&6
22247 else
22248   cat > conftest.$ac_ext <<EOF
22249 #line 22250 "configure"
22250 #include "confdefs.h"
22251 #include <langinfo.h>
22252 EOF
22253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22254 { (eval echo configure:22255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22256 if test -z "$ac_err"; then
22257   rm -rf conftest*
22258   eval "ac_cv_header_$ac_safe=yes"
22259 else
22260   echo "$ac_err" >&5
22261   echo "configure: failed program was:" >&5
22262   cat conftest.$ac_ext >&5
22263   rm -rf conftest*
22264   eval "ac_cv_header_$ac_safe=no"
22265 fi
22266 rm -f conftest*
22267 fi
22268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22269   echo "$ac_t""yes" 1>&6
22270   ac_has_langinfo_h=yes
22271 else
22272   echo "$ac_t""no" 1>&6
22273 ac_has_langinfo_h=no
22274 fi
22275
22276
22277         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22278 echo "configure:22279: checking for iconv in -liconv" >&5
22279 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22281   echo $ac_n "(cached) $ac_c" 1>&6
22282 else
22283   ac_save_LIBS="$LIBS"
22284 LIBS="-liconv  $LIBS"
22285 cat > conftest.$ac_ext <<EOF
22286 #line 22287 "configure"
22287 #include "confdefs.h"
22288 /* Override any gcc2 internal prototype to avoid an error.  */
22289 /* We use char because int might match the return type of a gcc2
22290     builtin and then its argument prototype would still apply.  */
22291 char iconv();
22292
22293 int main() {
22294 iconv()
22295 ; return 0; }
22296 EOF
22297 if { (eval echo configure:22298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22298   rm -rf conftest*
22299   eval "ac_cv_lib_$ac_lib_var=yes"
22300 else
22301   echo "configure: failed program was:" >&5
22302   cat conftest.$ac_ext >&5
22303   rm -rf conftest*
22304   eval "ac_cv_lib_$ac_lib_var=no"
22305 fi
22306 rm -f conftest*
22307 LIBS="$ac_save_LIBS"
22308
22309 fi
22310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22311   echo "$ac_t""yes" 1>&6
22312   libiconv="-liconv"
22313 else
22314   echo "$ac_t""no" 1>&6
22315 fi
22316
22317     ac_save_LIBS="$LIBS"
22318     LIBS="$LIBS $libiconv"
22319
22320     for ac_func in iconv_open iconv_close iconv nl_langinfo
22321 do
22322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22323 echo "configure:22324: checking for $ac_func" >&5
22324 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22325   echo $ac_n "(cached) $ac_c" 1>&6
22326 else
22327   cat > conftest.$ac_ext <<EOF
22328 #line 22329 "configure"
22329 #include "confdefs.h"
22330 /* System header to define __stub macros and hopefully few prototypes,
22331     which can conflict with char $ac_func(); below.  */
22332 #include <assert.h>
22333 /* Override any gcc2 internal prototype to avoid an error.  */
22334 /* We use char because int might match the return type of a gcc2
22335     builtin and then its argument prototype would still apply.  */
22336 char $ac_func();
22337
22338 int main() {
22339
22340 /* The GNU C library defines this for functions which it implements
22341     to always fail with ENOSYS.  Some functions are actually named
22342     something starting with __ and the normal name is an alias.  */
22343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22344 choke me
22345 #else
22346 $ac_func();
22347 #endif
22348
22349 ; return 0; }
22350 EOF
22351 if { (eval echo configure:22352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22352   rm -rf conftest*
22353   eval "ac_cv_func_$ac_func=yes"
22354 else
22355   echo "configure: failed program was:" >&5
22356   cat conftest.$ac_ext >&5
22357   rm -rf conftest*
22358   eval "ac_cv_func_$ac_func=no"
22359 fi
22360 rm -f conftest*
22361 fi
22362
22363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22364   echo "$ac_t""yes" 1>&6
22365     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22366   cat >> confdefs.h <<EOF
22367 #define $ac_tr_func 1
22368 EOF
22369  \
22370     ac_XPG2funcs=yes
22371 else
22372   echo "$ac_t""no" 1>&6
22373 ac_XPG2funcs=no
22374 fi
22375 done
22376
22377
22378     LIBS="$ac_save_LIBS"
22379
22380     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22381 echo "configure:22382: checking for XPG2 wchar_t support" >&5
22382     if test x"$ac_has_iconv_h" = xyes &&
22383        test x"$ac_has_langinfo_h" = xyes &&
22384        test x"$ac_XPG2funcs" = xyes; then
22385       ac_XPG2_wchar_t=yes
22386     else
22387       ac_XPG2_wchar_t=no
22388     fi
22389     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22390
22391             echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22392 echo "configure:22393: checking for enabled wchar_t specializations" >&5
22393     if test x"$ac_isoC99_wchar_t" = xyes &&
22394        test x"$ac_XPG2_wchar_t" = xyes; then
22395       cat >> confdefs.h <<\EOF
22396 #define _GLIBCPP_USE_WCHAR_T 1
22397 EOF
22398
22399       echo "$ac_t"""yes"" 1>&6
22400     else
22401       echo "$ac_t"""no"" 1>&6
22402     fi
22403   else
22404         echo "configure: warning: wchar_t support disabled." 1>&2
22405   fi
22406
22407   
22408   ac_test_CXXFLAGS="${CXXFLAGS+set}"
22409   ac_save_CXXFLAGS="$CXXFLAGS"
22410   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22411
22412   
22413   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22414 echo "configure:22415: checking for strtold declaration" >&5
22415   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22416     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22417   echo $ac_n "(cached) $ac_c" 1>&6
22418 else
22419   
22420       
22421       ac_ext=C
22422 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22423 ac_cpp='$CXXCPP $CPPFLAGS'
22424 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22425 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22426 cross_compiling=$ac_cv_prog_cxx_cross
22427
22428       cat > conftest.$ac_ext <<EOF
22429 #line 22430 "configure"
22430 #include "confdefs.h"
22431 #include <stdlib.h>
22432 int main() {
22433  strtold(0, 0);
22434 ; return 0; }
22435 EOF
22436 if { (eval echo configure:22437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22437   rm -rf conftest*
22438   glibcpp_cv_func_strtold_use=yes
22439 else
22440   echo "configure: failed program was:" >&5
22441   cat conftest.$ac_ext >&5
22442   rm -rf conftest*
22443   glibcpp_cv_func_strtold_use=no
22444 fi
22445 rm -f conftest*
22446       ac_ext=c
22447 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22448 ac_cpp='$CPP $CPPFLAGS'
22449 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22450 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22451 cross_compiling=$ac_cv_prog_cc_cross
22452
22453     
22454 fi
22455
22456   fi
22457   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22458   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22459     for ac_func in strtold
22460 do
22461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22462 echo "configure:22463: checking for $ac_func" >&5
22463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22464   echo $ac_n "(cached) $ac_c" 1>&6
22465 else
22466   cat > conftest.$ac_ext <<EOF
22467 #line 22468 "configure"
22468 #include "confdefs.h"
22469 /* System header to define __stub macros and hopefully few prototypes,
22470     which can conflict with char $ac_func(); below.  */
22471 #include <assert.h>
22472 /* Override any gcc2 internal prototype to avoid an error.  */
22473 /* We use char because int might match the return type of a gcc2
22474     builtin and then its argument prototype would still apply.  */
22475 char $ac_func();
22476
22477 int main() {
22478
22479 /* The GNU C library defines this for functions which it implements
22480     to always fail with ENOSYS.  Some functions are actually named
22481     something starting with __ and the normal name is an alias.  */
22482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22483 choke me
22484 #else
22485 $ac_func();
22486 #endif
22487
22488 ; return 0; }
22489 EOF
22490 if { (eval echo configure:22491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22491   rm -rf conftest*
22492   eval "ac_cv_func_$ac_func=yes"
22493 else
22494   echo "configure: failed program was:" >&5
22495   cat conftest.$ac_ext >&5
22496   rm -rf conftest*
22497   eval "ac_cv_func_$ac_func=no"
22498 fi
22499 rm -f conftest*
22500 fi
22501
22502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22503   echo "$ac_t""yes" 1>&6
22504     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22505   cat >> confdefs.h <<EOF
22506 #define $ac_tr_func 1
22507 EOF
22508  
22509 else
22510   echo "$ac_t""no" 1>&6
22511 fi
22512 done
22513
22514   fi
22515
22516   
22517   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22518 echo "configure:22519: checking for strtof declaration" >&5
22519   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22520     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22521   echo $ac_n "(cached) $ac_c" 1>&6
22522 else
22523   
22524       
22525       ac_ext=C
22526 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22527 ac_cpp='$CXXCPP $CPPFLAGS'
22528 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22529 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22530 cross_compiling=$ac_cv_prog_cxx_cross
22531
22532       cat > conftest.$ac_ext <<EOF
22533 #line 22534 "configure"
22534 #include "confdefs.h"
22535 #include <stdlib.h>
22536 int main() {
22537  strtof(0, 0);
22538 ; return 0; }
22539 EOF
22540 if { (eval echo configure:22541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22541   rm -rf conftest*
22542   glibcpp_cv_func_strtof_use=yes
22543 else
22544   echo "configure: failed program was:" >&5
22545   cat conftest.$ac_ext >&5
22546   rm -rf conftest*
22547   glibcpp_cv_func_strtof_use=no
22548 fi
22549 rm -f conftest*
22550       ac_ext=c
22551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22552 ac_cpp='$CPP $CPPFLAGS'
22553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22555 cross_compiling=$ac_cv_prog_cc_cross
22556
22557     
22558 fi
22559
22560   fi
22561   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22562   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22563     for ac_func in strtof
22564 do
22565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22566 echo "configure:22567: checking for $ac_func" >&5
22567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22568   echo $ac_n "(cached) $ac_c" 1>&6
22569 else
22570   cat > conftest.$ac_ext <<EOF
22571 #line 22572 "configure"
22572 #include "confdefs.h"
22573 /* System header to define __stub macros and hopefully few prototypes,
22574     which can conflict with char $ac_func(); below.  */
22575 #include <assert.h>
22576 /* Override any gcc2 internal prototype to avoid an error.  */
22577 /* We use char because int might match the return type of a gcc2
22578     builtin and then its argument prototype would still apply.  */
22579 char $ac_func();
22580
22581 int main() {
22582
22583 /* The GNU C library defines this for functions which it implements
22584     to always fail with ENOSYS.  Some functions are actually named
22585     something starting with __ and the normal name is an alias.  */
22586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22587 choke me
22588 #else
22589 $ac_func();
22590 #endif
22591
22592 ; return 0; }
22593 EOF
22594 if { (eval echo configure:22595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22595   rm -rf conftest*
22596   eval "ac_cv_func_$ac_func=yes"
22597 else
22598   echo "configure: failed program was:" >&5
22599   cat conftest.$ac_ext >&5
22600   rm -rf conftest*
22601   eval "ac_cv_func_$ac_func=no"
22602 fi
22603 rm -f conftest*
22604 fi
22605
22606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22607   echo "$ac_t""yes" 1>&6
22608     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22609   cat >> confdefs.h <<EOF
22610 #define $ac_tr_func 1
22611 EOF
22612  
22613 else
22614   echo "$ac_t""no" 1>&6
22615 fi
22616 done
22617
22618   fi
22619
22620   for ac_func in drand48
22621 do
22622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22623 echo "configure:22624: checking for $ac_func" >&5
22624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22625   echo $ac_n "(cached) $ac_c" 1>&6
22626 else
22627   cat > conftest.$ac_ext <<EOF
22628 #line 22629 "configure"
22629 #include "confdefs.h"
22630 /* System header to define __stub macros and hopefully few prototypes,
22631     which can conflict with char $ac_func(); below.  */
22632 #include <assert.h>
22633 /* Override any gcc2 internal prototype to avoid an error.  */
22634 /* We use char because int might match the return type of a gcc2
22635     builtin and then its argument prototype would still apply.  */
22636 char $ac_func();
22637
22638 int main() {
22639
22640 /* The GNU C library defines this for functions which it implements
22641     to always fail with ENOSYS.  Some functions are actually named
22642     something starting with __ and the normal name is an alias.  */
22643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22644 choke me
22645 #else
22646 $ac_func();
22647 #endif
22648
22649 ; return 0; }
22650 EOF
22651 if { (eval echo configure:22652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22652   rm -rf conftest*
22653   eval "ac_cv_func_$ac_func=yes"
22654 else
22655   echo "configure: failed program was:" >&5
22656   cat conftest.$ac_ext >&5
22657   rm -rf conftest*
22658   eval "ac_cv_func_$ac_func=no"
22659 fi
22660 rm -f conftest*
22661 fi
22662
22663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22664   echo "$ac_t""yes" 1>&6
22665     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22666   cat >> confdefs.h <<EOF
22667 #define $ac_tr_func 1
22668 EOF
22669  
22670 else
22671   echo "$ac_t""no" 1>&6
22672 fi
22673 done
22674
22675
22676   CXXFLAGS="$ac_save_CXXFLAGS"
22677
22678   
22679   ac_test_CXXFLAGS="${CXXFLAGS+set}"
22680   ac_save_CXXFLAGS="$CXXFLAGS"
22681   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22682
22683   
22684   echo $ac_n "checking for isatty declaration""... $ac_c" 1>&6
22685 echo "configure:22686: checking for isatty declaration" >&5
22686   if test x${glibcpp_cv_func_isatty_use+set} != xset; then
22687     if eval "test \"`echo '$''{'glibcpp_cv_func_isatty_use'+set}'`\" = set"; then
22688   echo $ac_n "(cached) $ac_c" 1>&6
22689 else
22690   
22691       
22692       ac_ext=C
22693 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22694 ac_cpp='$CXXCPP $CPPFLAGS'
22695 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22696 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22697 cross_compiling=$ac_cv_prog_cxx_cross
22698
22699       cat > conftest.$ac_ext <<EOF
22700 #line 22701 "configure"
22701 #include "confdefs.h"
22702 #include <unistd.h>
22703 int main() {
22704  isatty(0);
22705 ; return 0; }
22706 EOF
22707 if { (eval echo configure:22708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22708   rm -rf conftest*
22709   glibcpp_cv_func_isatty_use=yes
22710 else
22711   echo "configure: failed program was:" >&5
22712   cat conftest.$ac_ext >&5
22713   rm -rf conftest*
22714   glibcpp_cv_func_isatty_use=no
22715 fi
22716 rm -f conftest*
22717       ac_ext=c
22718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22719 ac_cpp='$CPP $CPPFLAGS'
22720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22722 cross_compiling=$ac_cv_prog_cc_cross
22723
22724     
22725 fi
22726
22727   fi
22728   echo "$ac_t""$glibcpp_cv_func_isatty_use" 1>&6
22729   if test x$glibcpp_cv_func_isatty_use = x"yes"; then
22730     for ac_func in isatty
22731 do
22732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22733 echo "configure:22734: checking for $ac_func" >&5
22734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22735   echo $ac_n "(cached) $ac_c" 1>&6
22736 else
22737   cat > conftest.$ac_ext <<EOF
22738 #line 22739 "configure"
22739 #include "confdefs.h"
22740 /* System header to define __stub macros and hopefully few prototypes,
22741     which can conflict with char $ac_func(); below.  */
22742 #include <assert.h>
22743 /* Override any gcc2 internal prototype to avoid an error.  */
22744 /* We use char because int might match the return type of a gcc2
22745     builtin and then its argument prototype would still apply.  */
22746 char $ac_func();
22747
22748 int main() {
22749
22750 /* The GNU C library defines this for functions which it implements
22751     to always fail with ENOSYS.  Some functions are actually named
22752     something starting with __ and the normal name is an alias.  */
22753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22754 choke me
22755 #else
22756 $ac_func();
22757 #endif
22758
22759 ; return 0; }
22760 EOF
22761 if { (eval echo configure:22762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22762   rm -rf conftest*
22763   eval "ac_cv_func_$ac_func=yes"
22764 else
22765   echo "configure: failed program was:" >&5
22766   cat conftest.$ac_ext >&5
22767   rm -rf conftest*
22768   eval "ac_cv_func_$ac_func=no"
22769 fi
22770 rm -f conftest*
22771 fi
22772
22773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22774   echo "$ac_t""yes" 1>&6
22775     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22776   cat >> confdefs.h <<EOF
22777 #define $ac_tr_func 1
22778 EOF
22779  
22780 else
22781   echo "$ac_t""no" 1>&6
22782 fi
22783 done
22784
22785   fi
22786
22787
22788   CXXFLAGS="$ac_save_CXXFLAGS"
22789
22790   
22791   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22792 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22793 echo "configure:22794: checking for locale.h" >&5
22794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22795   echo $ac_n "(cached) $ac_c" 1>&6
22796 else
22797   cat > conftest.$ac_ext <<EOF
22798 #line 22799 "configure"
22799 #include "confdefs.h"
22800 #include <locale.h>
22801 EOF
22802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22803 { (eval echo configure:22804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22805 if test -z "$ac_err"; then
22806   rm -rf conftest*
22807   eval "ac_cv_header_$ac_safe=yes"
22808 else
22809   echo "$ac_err" >&5
22810   echo "configure: failed program was:" >&5
22811   cat conftest.$ac_ext >&5
22812   rm -rf conftest*
22813   eval "ac_cv_header_$ac_safe=no"
22814 fi
22815 rm -f conftest*
22816 fi
22817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22818   echo "$ac_t""yes" 1>&6
22819   
22820     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
22821 echo "configure:22822: checking for LC_MESSAGES" >&5
22822 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
22823   echo $ac_n "(cached) $ac_c" 1>&6
22824 else
22825   cat > conftest.$ac_ext <<EOF
22826 #line 22827 "configure"
22827 #include "confdefs.h"
22828 #include <locale.h>
22829 int main() {
22830 return LC_MESSAGES
22831 ; return 0; }
22832 EOF
22833 if { (eval echo configure:22834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22834   rm -rf conftest*
22835   ac_cv_val_LC_MESSAGES=yes
22836 else
22837   echo "configure: failed program was:" >&5
22838   cat conftest.$ac_ext >&5
22839   rm -rf conftest*
22840   ac_cv_val_LC_MESSAGES=no
22841 fi
22842 rm -f conftest*
22843 fi
22844
22845 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
22846     if test $ac_cv_val_LC_MESSAGES = yes; then
22847       cat >> confdefs.h <<\EOF
22848 #define HAVE_LC_MESSAGES 1
22849 EOF
22850
22851     fi
22852   
22853 else
22854   echo "$ac_t""no" 1>&6
22855 fi
22856
22857
22858
22859   cat > conftest.$ac_ext <<EOF
22860 #line 22861 "configure"
22861 #include "confdefs.h"
22862
22863   #include <setjmp.h>
22864   
22865 int main() {
22866 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
22867 ; return 0; }
22868 EOF
22869 if { (eval echo configure:22870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22870   rm -rf conftest*
22871   cat >> confdefs.h <<\EOF
22872 #define HAVE_SIGSETJMP 1
22873 EOF
22874
22875   
22876 else
22877   echo "configure: failed program was:" >&5
22878   cat conftest.$ac_ext >&5
22879 fi
22880 rm -f conftest*
22881
22882   for ac_hdr in stdlib.h unistd.h sys/stat.h sys/types.h
22883 do
22884 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22885 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22886 echo "configure:22887: checking for $ac_hdr" >&5
22887 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22888   echo $ac_n "(cached) $ac_c" 1>&6
22889 else
22890   cat > conftest.$ac_ext <<EOF
22891 #line 22892 "configure"
22892 #include "confdefs.h"
22893 #include <$ac_hdr>
22894 EOF
22895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22896 { (eval echo configure:22897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22898 if test -z "$ac_err"; then
22899   rm -rf conftest*
22900   eval "ac_cv_header_$ac_safe=yes"
22901 else
22902   echo "$ac_err" >&5
22903   echo "configure: failed program was:" >&5
22904   cat conftest.$ac_ext >&5
22905   rm -rf conftest*
22906   eval "ac_cv_header_$ac_safe=no"
22907 fi
22908 rm -f conftest*
22909 fi
22910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22911   echo "$ac_t""yes" 1>&6
22912     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22913   cat >> confdefs.h <<EOF
22914 #define $ac_tr_hdr 1
22915 EOF
22916  
22917 else
22918   echo "$ac_t""no" 1>&6
22919 fi
22920 done
22921
22922 for ac_func in getpagesize
22923 do
22924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22925 echo "configure:22926: checking for $ac_func" >&5
22926 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22927   echo $ac_n "(cached) $ac_c" 1>&6
22928 else
22929   cat > conftest.$ac_ext <<EOF
22930 #line 22931 "configure"
22931 #include "confdefs.h"
22932 /* System header to define __stub macros and hopefully few prototypes,
22933     which can conflict with char $ac_func(); below.  */
22934 #include <assert.h>
22935 /* Override any gcc2 internal prototype to avoid an error.  */
22936 /* We use char because int might match the return type of a gcc2
22937     builtin and then its argument prototype would still apply.  */
22938 char $ac_func();
22939
22940 int main() {
22941
22942 /* The GNU C library defines this for functions which it implements
22943     to always fail with ENOSYS.  Some functions are actually named
22944     something starting with __ and the normal name is an alias.  */
22945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22946 choke me
22947 #else
22948 $ac_func();
22949 #endif
22950
22951 ; return 0; }
22952 EOF
22953 if { (eval echo configure:22954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22954   rm -rf conftest*
22955   eval "ac_cv_func_$ac_func=yes"
22956 else
22957   echo "configure: failed program was:" >&5
22958   cat conftest.$ac_ext >&5
22959   rm -rf conftest*
22960   eval "ac_cv_func_$ac_func=no"
22961 fi
22962 rm -f conftest*
22963 fi
22964
22965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22966   echo "$ac_t""yes" 1>&6
22967     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22968   cat >> confdefs.h <<EOF
22969 #define $ac_tr_func 1
22970 EOF
22971  
22972 else
22973   echo "$ac_t""no" 1>&6
22974 fi
22975 done
22976
22977 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
22978 echo "configure:22979: checking for working mmap" >&5
22979 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
22980   echo $ac_n "(cached) $ac_c" 1>&6
22981 else
22982   if test "$cross_compiling" = yes; then
22983   ac_cv_func_mmap_fixed_mapped=no
22984 else
22985   cat > conftest.$ac_ext <<EOF
22986 #line 22987 "configure"
22987 #include "confdefs.h"
22988
22989 /* Thanks to Mike Haertel and Jim Avera for this test.
22990    Here is a matrix of mmap possibilities:
22991         mmap private not fixed
22992         mmap private fixed at somewhere currently unmapped
22993         mmap private fixed at somewhere already mapped
22994         mmap shared not fixed
22995         mmap shared fixed at somewhere currently unmapped
22996         mmap shared fixed at somewhere already mapped
22997    For private mappings, we should verify that changes cannot be read()
22998    back from the file, nor mmap's back from the file at a different
22999    address.  (There have been systems where private was not correctly
23000    implemented like the infamous i386 svr4.0, and systems where the
23001    VM page cache was not coherent with the filesystem buffer cache
23002    like early versions of FreeBSD and possibly contemporary NetBSD.)
23003    For shared mappings, we should conversely verify that changes get
23004    propogated back to all the places they're supposed to be.
23005
23006    Grep wants private fixed already mapped.
23007    The main things grep needs to know about mmap are:
23008    * does it exist and is it safe to write into the mmap'd area
23009    * how to use it (BSD variants)  */
23010 #include <sys/types.h>
23011 #include <fcntl.h>
23012 #include <sys/mman.h>
23013
23014 #if HAVE_SYS_TYPES_H
23015 # include <sys/types.h>
23016 #endif
23017
23018 #if HAVE_STDLIB_H
23019 # include <stdlib.h>
23020 #endif
23021
23022 #if HAVE_SYS_STAT_H
23023 # include <sys/stat.h>
23024 #endif
23025
23026 #if HAVE_UNISTD_H
23027 # include <unistd.h>
23028 #endif
23029
23030 /* This mess was copied from the GNU getpagesize.h.  */
23031 #ifndef HAVE_GETPAGESIZE
23032
23033 /* Assume that all systems that can run configure have sys/param.h.  */
23034 # ifndef HAVE_SYS_PARAM_H
23035 #  define HAVE_SYS_PARAM_H 1
23036 # endif
23037
23038 # ifdef _SC_PAGESIZE
23039 #  define getpagesize() sysconf(_SC_PAGESIZE)
23040 # else /* no _SC_PAGESIZE */
23041 #  ifdef HAVE_SYS_PARAM_H
23042 #   include <sys/param.h>
23043 #   ifdef EXEC_PAGESIZE
23044 #    define getpagesize() EXEC_PAGESIZE
23045 #   else /* no EXEC_PAGESIZE */
23046 #    ifdef NBPG
23047 #     define getpagesize() NBPG * CLSIZE
23048 #     ifndef CLSIZE
23049 #      define CLSIZE 1
23050 #     endif /* no CLSIZE */
23051 #    else /* no NBPG */
23052 #     ifdef NBPC
23053 #      define getpagesize() NBPC
23054 #     else /* no NBPC */
23055 #      ifdef PAGESIZE
23056 #       define getpagesize() PAGESIZE
23057 #      endif /* PAGESIZE */
23058 #     endif /* no NBPC */
23059 #    endif /* no NBPG */
23060 #   endif /* no EXEC_PAGESIZE */
23061 #  else /* no HAVE_SYS_PARAM_H */
23062 #   define getpagesize() 8192   /* punt totally */
23063 #  endif /* no HAVE_SYS_PARAM_H */
23064 # endif /* no _SC_PAGESIZE */
23065
23066 #endif /* no HAVE_GETPAGESIZE */
23067
23068 #ifdef __cplusplus
23069 extern "C" { void *malloc(unsigned); }
23070 #else
23071 char *malloc();
23072 #endif
23073
23074 int
23075 main()
23076 {
23077         char *data, *data2, *data3;
23078         int i, pagesize;
23079         int fd;
23080
23081         pagesize = getpagesize();
23082
23083         /*
23084          * First, make a file with some known garbage in it.
23085          */
23086         data = malloc(pagesize);
23087         if (!data)
23088                 exit(1);
23089         for (i = 0; i < pagesize; ++i)
23090                 *(data + i) = rand();
23091         umask(0);
23092         fd = creat("conftestmmap", 0600);
23093         if (fd < 0)
23094                 exit(1);
23095         if (write(fd, data, pagesize) != pagesize)
23096                 exit(1);
23097         close(fd);
23098
23099         /*
23100          * Next, try to mmap the file at a fixed address which
23101          * already has something else allocated at it.  If we can,
23102          * also make sure that we see the same garbage.
23103          */
23104         fd = open("conftestmmap", O_RDWR);
23105         if (fd < 0)
23106                 exit(1);
23107         data2 = malloc(2 * pagesize);
23108         if (!data2)
23109                 exit(1);
23110         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23111         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23112             MAP_PRIVATE | MAP_FIXED, fd, 0L))
23113                 exit(1);
23114         for (i = 0; i < pagesize; ++i)
23115                 if (*(data + i) != *(data2 + i))
23116                         exit(1);
23117
23118         /*
23119          * Finally, make sure that changes to the mapped area
23120          * do not percolate back to the file as seen by read().
23121          * (This is a bug on some variants of i386 svr4.0.)
23122          */
23123         for (i = 0; i < pagesize; ++i)
23124                 *(data2 + i) = *(data2 + i) + 1;
23125         data3 = malloc(pagesize);
23126         if (!data3)
23127                 exit(1);
23128         if (read(fd, data3, pagesize) != pagesize)
23129                 exit(1);
23130         for (i = 0; i < pagesize; ++i)
23131                 if (*(data + i) != *(data3 + i))
23132                         exit(1);
23133         close(fd);
23134         unlink("conftestmmap");
23135         exit(0);
23136 }
23137
23138 EOF
23139 if { (eval echo configure:23140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23140 then
23141   ac_cv_func_mmap_fixed_mapped=yes
23142 else
23143   echo "configure: failed program was:" >&5
23144   cat conftest.$ac_ext >&5
23145   rm -fr conftest*
23146   ac_cv_func_mmap_fixed_mapped=no
23147 fi
23148 rm -fr conftest*
23149 fi
23150
23151 fi
23152
23153 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23154 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23155   cat >> confdefs.h <<\EOF
23156 #define HAVE_MMAP 1
23157 EOF
23158
23159 fi
23160
23161
23162   # Establish limits on memory usage during 'make check'
23163   
23164   
23165   setrlimit_have_headers=yes
23166   for ac_hdr in unistd.h sys/time.h sys/resource.h
23167 do
23168 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23169 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23170 echo "configure:23171: checking for $ac_hdr" >&5
23171 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23172   echo $ac_n "(cached) $ac_c" 1>&6
23173 else
23174   cat > conftest.$ac_ext <<EOF
23175 #line 23176 "configure"
23176 #include "confdefs.h"
23177 #include <$ac_hdr>
23178 EOF
23179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23180 { (eval echo configure:23181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23182 if test -z "$ac_err"; then
23183   rm -rf conftest*
23184   eval "ac_cv_header_$ac_safe=yes"
23185 else
23186   echo "$ac_err" >&5
23187   echo "configure: failed program was:" >&5
23188   cat conftest.$ac_ext >&5
23189   rm -rf conftest*
23190   eval "ac_cv_header_$ac_safe=no"
23191 fi
23192 rm -f conftest*
23193 fi
23194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23195   echo "$ac_t""yes" 1>&6
23196     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23197   cat >> confdefs.h <<EOF
23198 #define $ac_tr_hdr 1
23199 EOF
23200  
23201 else
23202   echo "$ac_t""no" 1>&6
23203 setrlimit_have_headers=no
23204 fi
23205 done
23206
23207   # If don't have the headers, then we can't run the tests now, and we
23208   # won't be seeing any of these during testsuite compilation.
23209   if test $setrlimit_have_headers = yes; then
23210     # Can't do these in a loop, else the resulting syntax is wrong.
23211     
23212   cat > conftest.$ac_ext <<EOF
23213 #line 23214 "configure"
23214 #include "confdefs.h"
23215 #include <unistd.h>
23216                   #include <sys/time.h>
23217                   #include <sys/resource.h>
23218                  
23219 int main() {
23220  int f = RLIMIT_DATA ; 
23221 ; return 0; }
23222 EOF
23223 if { (eval echo configure:23224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23224   rm -rf conftest*
23225   glibcpp_mresult=1
23226 else
23227   echo "configure: failed program was:" >&5
23228   cat conftest.$ac_ext >&5
23229   rm -rf conftest*
23230   glibcpp_mresult=0
23231 fi
23232 rm -f conftest*
23233   cat >> confdefs.h <<EOF
23234 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23235 EOF
23236
23237
23238     
23239   cat > conftest.$ac_ext <<EOF
23240 #line 23241 "configure"
23241 #include "confdefs.h"
23242 #include <unistd.h>
23243                   #include <sys/time.h>
23244                   #include <sys/resource.h>
23245                  
23246 int main() {
23247  int f = RLIMIT_RSS ; 
23248 ; return 0; }
23249 EOF
23250 if { (eval echo configure:23251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23251   rm -rf conftest*
23252   glibcpp_mresult=1
23253 else
23254   echo "configure: failed program was:" >&5
23255   cat conftest.$ac_ext >&5
23256   rm -rf conftest*
23257   glibcpp_mresult=0
23258 fi
23259 rm -f conftest*
23260   cat >> confdefs.h <<EOF
23261 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23262 EOF
23263
23264
23265     
23266   cat > conftest.$ac_ext <<EOF
23267 #line 23268 "configure"
23268 #include "confdefs.h"
23269 #include <unistd.h>
23270                   #include <sys/time.h>
23271                   #include <sys/resource.h>
23272                  
23273 int main() {
23274  int f = RLIMIT_VMEM ; 
23275 ; return 0; }
23276 EOF
23277 if { (eval echo configure:23278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23278   rm -rf conftest*
23279   glibcpp_mresult=1
23280 else
23281   echo "configure: failed program was:" >&5
23282   cat conftest.$ac_ext >&5
23283   rm -rf conftest*
23284   glibcpp_mresult=0
23285 fi
23286 rm -f conftest*
23287   cat >> confdefs.h <<EOF
23288 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23289 EOF
23290
23291
23292     
23293   cat > conftest.$ac_ext <<EOF
23294 #line 23295 "configure"
23295 #include "confdefs.h"
23296 #include <unistd.h>
23297                   #include <sys/time.h>
23298                   #include <sys/resource.h>
23299                  
23300 int main() {
23301  int f = RLIMIT_AS ; 
23302 ; return 0; }
23303 EOF
23304 if { (eval echo configure:23305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23305   rm -rf conftest*
23306   glibcpp_mresult=1
23307 else
23308   echo "configure: failed program was:" >&5
23309   cat conftest.$ac_ext >&5
23310   rm -rf conftest*
23311   glibcpp_mresult=0
23312 fi
23313 rm -f conftest*
23314   cat >> confdefs.h <<EOF
23315 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23316 EOF
23317
23318
23319
23320     # Check for rlimit, setrlimit.
23321     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23322   echo $ac_n "(cached) $ac_c" 1>&6
23323 else
23324   
23325       cat > conftest.$ac_ext <<EOF
23326 #line 23327 "configure"
23327 #include "confdefs.h"
23328 #include <unistd.h>
23329                   #include <sys/time.h>
23330                   #include <sys/resource.h>
23331                      
23332 int main() {
23333  struct rlimit r; setrlimit(0, &r);
23334 ; return 0; }
23335 EOF
23336 if { (eval echo configure:23337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23337   rm -rf conftest*
23338   ac_setrlimit=yes
23339 else
23340   echo "configure: failed program was:" >&5
23341   cat conftest.$ac_ext >&5
23342   rm -rf conftest*
23343   ac_setrlimit=no
23344 fi
23345 rm -f conftest*
23346     
23347 fi
23348
23349   fi
23350
23351   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23352 echo "configure:23353: checking for testsuite memory limit support" >&5
23353   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23354     ac_mem_limits=yes
23355     cat >> confdefs.h <<\EOF
23356 #define _GLIBCPP_MEM_LIMITS 1
23357 EOF
23358
23359   else
23360     ac_mem_limits=no
23361   fi
23362   echo "$ac_t""$ac_mem_limits" 1>&6
23363
23364
23365   # Look for setenv, so that extended locale tests can be performed.
23366   
23367   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23368 echo "configure:23369: checking for setenv declaration" >&5
23369   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23370     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23371   echo $ac_n "(cached) $ac_c" 1>&6
23372 else
23373   
23374       
23375       ac_ext=C
23376 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23377 ac_cpp='$CXXCPP $CPPFLAGS'
23378 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23379 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23380 cross_compiling=$ac_cv_prog_cxx_cross
23381
23382       cat > conftest.$ac_ext <<EOF
23383 #line 23384 "configure"
23384 #include "confdefs.h"
23385 #include <stdlib.h>
23386 int main() {
23387  setenv(0, 0, 0);
23388 ; return 0; }
23389 EOF
23390 if { (eval echo configure:23391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23391   rm -rf conftest*
23392   glibcpp_cv_func_setenv_use=yes
23393 else
23394   echo "configure: failed program was:" >&5
23395   cat conftest.$ac_ext >&5
23396   rm -rf conftest*
23397   glibcpp_cv_func_setenv_use=no
23398 fi
23399 rm -f conftest*
23400       ac_ext=c
23401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23402 ac_cpp='$CPP $CPPFLAGS'
23403 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23404 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23405 cross_compiling=$ac_cv_prog_cc_cross
23406
23407     
23408 fi
23409
23410   fi
23411   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23412   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23413     for ac_func in setenv
23414 do
23415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23416 echo "configure:23417: checking for $ac_func" >&5
23417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23418   echo $ac_n "(cached) $ac_c" 1>&6
23419 else
23420   cat > conftest.$ac_ext <<EOF
23421 #line 23422 "configure"
23422 #include "confdefs.h"
23423 /* System header to define __stub macros and hopefully few prototypes,
23424     which can conflict with char $ac_func(); below.  */
23425 #include <assert.h>
23426 /* Override any gcc2 internal prototype to avoid an error.  */
23427 /* We use char because int might match the return type of a gcc2
23428     builtin and then its argument prototype would still apply.  */
23429 char $ac_func();
23430
23431 int main() {
23432
23433 /* The GNU C library defines this for functions which it implements
23434     to always fail with ENOSYS.  Some functions are actually named
23435     something starting with __ and the normal name is an alias.  */
23436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23437 choke me
23438 #else
23439 $ac_func();
23440 #endif
23441
23442 ; return 0; }
23443 EOF
23444 if { (eval echo configure:23445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23445   rm -rf conftest*
23446   eval "ac_cv_func_$ac_func=yes"
23447 else
23448   echo "configure: failed program was:" >&5
23449   cat conftest.$ac_ext >&5
23450   rm -rf conftest*
23451   eval "ac_cv_func_$ac_func=no"
23452 fi
23453 rm -f conftest*
23454 fi
23455
23456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23457   echo "$ac_t""yes" 1>&6
23458     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23459   cat >> confdefs.h <<EOF
23460 #define $ac_tr_func 1
23461 EOF
23462  
23463 else
23464   echo "$ac_t""no" 1>&6
23465 fi
23466 done
23467
23468   fi
23469
23470
23471   # Export file names for ABI checking.
23472   baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
23473   
23474
23475   # Don't do ABI checking unless native.
23476   
23477
23478 if test x"$build" = x"$host" && test -z "$with_cross_host"; then
23479   GLIBCPP_BUILD_ABI_CHECK_TRUE=
23480   GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
23481 else
23482   GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
23483   GLIBCPP_BUILD_ABI_CHECK_FALSE=
23484 fi
23485
23486 fi
23487
23488 # This depends on the possibly-skipped linker test above.
23489 # Check whether --enable-symvers or --disable-symvers was given.
23490 if test "${enable_symvers+set}" = set; then
23491   enableval="$enable_symvers"
23492   case "$enableval" in
23493  yes) enable_symvers=yes ;;
23494  no)  enable_symvers=no ;;
23495  # other names here, just as sanity checks
23496  #gnu|sun|etcetera) enable_symvers=$enableval ;;
23497  gnu) enable_symvers=$enableval ;;
23498  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23499  esac
23500 else
23501   enable_symvers=yes
23502 fi
23503
23504 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23505 # don't know enough about $LD to do tricks...
23506 if test x$enable_shared = xno ||
23507         test "x$LD" = x ||
23508         test x$glibcpp_gnu_ld_version = x; then
23509   enable_symvers=no
23510 fi
23511
23512 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23513 if test $enable_symvers != no; then
23514   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23515 echo "configure:23516: checking for shared libgcc" >&5
23516   ac_save_CFLAGS="$CFLAGS"
23517   CFLAGS=' -lgcc_s'
23518   cat > conftest.$ac_ext <<EOF
23519 #line 23520 "configure"
23520 #include "confdefs.h"
23521
23522 int main() {
23523 return 0
23524 ; return 0; }
23525 EOF
23526 if { (eval echo configure:23527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23527   rm -rf conftest*
23528   glibcpp_shared_libgcc=yes
23529 else
23530   echo "configure: failed program was:" >&5
23531   cat conftest.$ac_ext >&5
23532   rm -rf conftest*
23533   glibcpp_shared_libgcc=no
23534 fi
23535 rm -f conftest*
23536   CFLAGS="$ac_save_CFLAGS"
23537   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23538 fi
23539
23540 # For GNU ld, we need at least this version.  It's 2.12 in the same format
23541 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
23542 glibcpp_min_gnu_ld_version=21200
23543
23544 # Check to see if unspecified "yes" value can win, given results
23545 # above.
23546 if test $enable_symvers = yes ; then
23547   if test $with_gnu_ld = yes &&
23548     test $glibcpp_shared_libgcc = yes ;
23549   then
23550     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23551         enable_symvers=gnu
23552     else
23553       ac_test_CFLAGS="${CFLAGS+set}"
23554       ac_save_CFLAGS="$CFLAGS"
23555       CFLAGS='-shared -Wl,--version-script,conftest.map'
23556       enable_symvers=no
23557       
23558       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23559       
23560       cat > conftest.$ac_ext <<EOF
23561 #line 23562 "configure"
23562 #include "confdefs.h"
23563 int foo;
23564 int main() {
23565
23566 ; return 0; }
23567 EOF
23568 if { (eval echo configure:23569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23569   rm -rf conftest*
23570   enable_symvers=gnu
23571 else
23572   echo "configure: failed program was:" >&5
23573   cat conftest.$ac_ext >&5
23574 fi
23575 rm -f conftest*
23576       if test "$ac_test_CFLAGS" = set; then
23577         CFLAGS="$ac_save_CFLAGS"
23578       else
23579         # this is the suspicious part
23580         CFLAGS=''
23581       fi
23582       rm -f conftest.map
23583     fi
23584   else
23585     # just fail for now
23586     enable_symvers=no
23587   fi
23588 fi
23589
23590 case $enable_symvers in
23591   no)
23592       SYMVER_MAP=config/linker-map.dummy
23593       ;;
23594   gnu)
23595       SYMVER_MAP=config/linker-map.gnu
23596       cat >> confdefs.h <<\EOF
23597 #define _GLIBCPP_SYMVER 1
23598 EOF
23599
23600       ;;
23601 esac
23602
23603
23604
23605
23606 if test $enable_symvers != no; then
23607   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23608   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23609 else
23610   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23611   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23612 fi
23613 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23614 echo "configure:23615: checking versioning on shared library symbols" >&5
23615 echo "$ac_t""$enable_symvers" 1>&6
23616
23617
23618 # Propagate the target-specific source directories through the build chain.
23619 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH 
23620 # uses it, and it only gets used in this file.)
23621 OS_INC_SRCDIR=config/${os_include_dir}
23622 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23623
23624
23625
23626 # Set up cross-compile flags
23627   
23628
23629 if test "$CANADIAN" = yes; then
23630   CANADIAN_TRUE=
23631   CANADIAN_FALSE='#'
23632 else
23633   CANADIAN_TRUE='#'
23634   CANADIAN_FALSE=
23635 fi
23636  
23637 cat > confcache <<\EOF
23638 # This file is a shell script that caches the results of configure
23639 # tests run on this system so they can be shared between configure
23640 # scripts and configure runs.  It is not useful on other systems.
23641 # If it contains results you don't want to keep, you may remove or edit it.
23642 #
23643 # By default, configure uses ./config.cache as the cache file,
23644 # creating it if it does not exist already.  You can give configure
23645 # the --cache-file=FILE option to use a different cache file; that is
23646 # what configure does when it calls configure scripts in
23647 # subdirectories, so they share the cache.
23648 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23649 # config.status only pays attention to the cache file if you give it the
23650 # --recheck option to rerun configure.
23651 #
23652 EOF
23653 # The following way of writing the cache mishandles newlines in values,
23654 # but we know of no workaround that is simple, portable, and efficient.
23655 # So, don't put newlines in cache variables' values.
23656 # Ultrix sh set writes to stderr and can't be redirected directly,
23657 # and sets the high bit in the cache file unless we assign to the vars.
23658 (set) 2>&1 |
23659   case `(ac_space=' '; set | grep ac_space) 2>&1` in
23660   *ac_space=\ *)
23661     # `set' does not quote correctly, so add quotes (double-quote substitution
23662     # turns \\\\ into \\, and sed turns \\ into \).
23663     sed -n \
23664       -e "s/'/'\\\\''/g" \
23665       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23666     ;;
23667   *)
23668     # `set' quotes correctly as required by POSIX, so do not add quotes.
23669     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23670     ;;
23671   esac >> confcache
23672 if cmp -s $cache_file confcache; then
23673   :
23674 else
23675   if test -w $cache_file; then
23676     echo "updating cache $cache_file"
23677     cat confcache > $cache_file
23678   else
23679     echo "not updating unwritable cache $cache_file"
23680   fi
23681 fi
23682 rm -f confcache
23683
23684
23685 if test "${multilib}" = "yes"; then
23686   multilib_arg="--enable-multilib"
23687 else
23688   multilib_arg=
23689 fi
23690
23691 # Export all the install information
23692
23693 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23694 # exported correctly in GLIBCPP_CONFIGURE.
23695 glibcpp_toolexecdir=no
23696 glibcpp_toolexeclibdir=no
23697 glibcpp_prefixdir=${prefix}
23698
23699 # Process the option --with-gxx-include-dir=<path to include-files directory>
23700 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23701 echo "configure:23702: checking for --with-gxx-include-dir" >&5
23702 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23703 if test "${with_gxx_include_dir+set}" = set; then
23704   withval="$with_gxx_include_dir"
23705   case "${withval}" in
23706   yes)
23707     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23708     gxx_include_dir=no
23709     ;;
23710   no)
23711     gxx_include_dir=no
23712     ;;
23713   *)
23714     gxx_include_dir=${withval}
23715     ;;
23716 esac
23717 else
23718   gxx_include_dir=no
23719 fi
23720
23721 echo "$ac_t""$gxx_include_dir" 1>&6
23722
23723 # Process the option "--enable-version-specific-runtime-libs"
23724 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23725 echo "configure:23726: checking for --enable-version-specific-runtime-libs" >&5
23726 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23727 if test "${enable_version_specific_runtime_libs+set}" = set; then
23728   enableval="$enable_version_specific_runtime_libs"
23729   case "$enableval" in
23730  yes) version_specific_libs=yes ;;
23731  no)  version_specific_libs=no ;;
23732  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23733  esac
23734 else
23735   version_specific_libs=no
23736 fi
23737 # Option set, now we can test it.
23738 echo "$ac_t""$version_specific_libs" 1>&6
23739
23740 # Default case for install directory for include files.
23741 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23742   gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23743 fi
23744
23745 # Version-specific runtime libs processing.
23746 if test $version_specific_libs = yes; then
23747   # Need the gcc compiler version to know where to install libraries
23748   # and header files if --enable-version-specific-runtime-libs option
23749   # is selected.
23750   if test x"$gxx_include_dir" = x"no"; then
23751     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23752   fi
23753   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23754   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23755 fi
23756
23757 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
23758 # Install a library built with a cross compiler in tooldir, not libdir.
23759 if test x"$glibcpp_toolexecdir" = x"no"; then
23760   if test -n "$with_cross_host" &&
23761      test x"$with_cross_host" != x"no"; then
23762     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
23763     glibcpp_toolexeclibdir='$(toolexecdir)/lib$(MULTISUBDIR)'
23764   else
23765     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23766     glibcpp_toolexeclibdir='$(libdir)$(MULTISUBDIR)'
23767   fi
23768 fi
23769
23770 echo $ac_n "checking for install location""... $ac_c" 1>&6
23771 echo "configure:23772: checking for install location" >&5
23772 echo "$ac_t""$gxx_include_dir" 1>&6
23773
23774
23775
23776
23777
23778
23779
23780 # Export all the include and flag information to Makefiles.
23781
23782   # Root level of the build directory include sources.
23783   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
23784
23785   # Passed down for canadian crosses.
23786   if test x"$CANADIAN" = xyes; then
23787     TOPLEVEL_INCLUDES='-I$(includedir)'
23788   fi
23789
23790   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23791
23792   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23793
23794   if test x"$need_libio" = xyes; then
23795     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
23796     
23797   fi
23798
23799   # Now, export this to all the little Makefiles....
23800   
23801   
23802   
23803   
23804
23805
23806   # Optimization flags that are probably a good idea for thrill-seekers. Just
23807   # uncomment the lines below and make, everything else is ready to go...
23808   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
23809   OPTIMIZE_CXXFLAGS=
23810   
23811
23812   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings -Winline'
23813   
23814
23815
23816 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23817    grep "enable shared" > /dev/null; then
23818   LIBSUPCXX_PICFLAGS=-prefer-pic
23819 else
23820   LIBSUPCXX_PICFLAGS=
23821 fi
23822
23823
23824 # Generate the various Makefiles, include files, and scripts.
23825 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
23826 # and libsupc++/Makefile.am so that multilib installs will end up
23827 # installed in the correct place. To work around this not being passed
23828 # down from config-ml.in -> top_srcdir/Makefile.am ->
23829 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
23830 trap '' 1 2 15
23831 cat > confcache <<\EOF
23832 # This file is a shell script that caches the results of configure
23833 # tests run on this system so they can be shared between configure
23834 # scripts and configure runs.  It is not useful on other systems.
23835 # If it contains results you don't want to keep, you may remove or edit it.
23836 #
23837 # By default, configure uses ./config.cache as the cache file,
23838 # creating it if it does not exist already.  You can give configure
23839 # the --cache-file=FILE option to use a different cache file; that is
23840 # what configure does when it calls configure scripts in
23841 # subdirectories, so they share the cache.
23842 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23843 # config.status only pays attention to the cache file if you give it the
23844 # --recheck option to rerun configure.
23845 #
23846 EOF
23847 # The following way of writing the cache mishandles newlines in values,
23848 # but we know of no workaround that is simple, portable, and efficient.
23849 # So, don't put newlines in cache variables' values.
23850 # Ultrix sh set writes to stderr and can't be redirected directly,
23851 # and sets the high bit in the cache file unless we assign to the vars.
23852 (set) 2>&1 |
23853   case `(ac_space=' '; set | grep ac_space) 2>&1` in
23854   *ac_space=\ *)
23855     # `set' does not quote correctly, so add quotes (double-quote substitution
23856     # turns \\\\ into \\, and sed turns \\ into \).
23857     sed -n \
23858       -e "s/'/'\\\\''/g" \
23859       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23860     ;;
23861   *)
23862     # `set' quotes correctly as required by POSIX, so do not add quotes.
23863     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23864     ;;
23865   esac >> confcache
23866 if cmp -s $cache_file confcache; then
23867   :
23868 else
23869   if test -w $cache_file; then
23870     echo "updating cache $cache_file"
23871     cat confcache > $cache_file
23872   else
23873     echo "not updating unwritable cache $cache_file"
23874   fi
23875 fi
23876 rm -f confcache
23877
23878 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23879
23880 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23881 # Let make expand exec_prefix.
23882 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23883
23884 # Any assignment to VPATH causes Sun make to only execute
23885 # the first set of double-colon rules, so remove it if not needed.
23886 # If there is a colon in the path, we need to keep it.
23887 if test "x$srcdir" = x.; then
23888   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
23889 fi
23890
23891 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23892
23893 DEFS=-DHAVE_CONFIG_H
23894
23895 # Without the "./", some shells look in PATH for config.status.
23896 : ${CONFIG_STATUS=./config.status}
23897
23898 echo creating $CONFIG_STATUS
23899 rm -f $CONFIG_STATUS
23900 cat > $CONFIG_STATUS <<EOF
23901 #! /bin/sh
23902 # Generated automatically by configure.
23903 # Run this file to recreate the current configuration.
23904 # This directory was configured as follows,
23905 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23906 #
23907 # $0 $ac_configure_args
23908 #
23909 # Compiler output produced by configure, useful for debugging
23910 # configure, is in ./config.log if it exists.
23911
23912 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23913 for ac_option
23914 do
23915   case "\$ac_option" in
23916   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23917     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23918     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23919   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23920     echo "$CONFIG_STATUS generated by autoconf version 2.13"
23921     exit 0 ;;
23922   -help | --help | --hel | --he | --h)
23923     echo "\$ac_cs_usage"; exit 0 ;;
23924   *) echo "\$ac_cs_usage"; exit 1 ;;
23925   esac
23926 done
23927
23928 ac_given_srcdir=$srcdir
23929 ac_given_INSTALL="$INSTALL"
23930
23931 trap 'rm -fr `echo "Makefile \
23932     include/Makefile src/Makefile \
23933     libmath/Makefile libio/Makefile libsupc++/Makefile \
23934     po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23935 EOF
23936 cat >> $CONFIG_STATUS <<EOF
23937
23938 # Protect against being on the right side of a sed subst in config.status.
23939 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23940  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23941 $ac_vpsub
23942 $extrasub
23943 s%@SHELL@%$SHELL%g
23944 s%@CFLAGS@%$CFLAGS%g
23945 s%@CPPFLAGS@%$CPPFLAGS%g
23946 s%@CXXFLAGS@%$CXXFLAGS%g
23947 s%@FFLAGS@%$FFLAGS%g
23948 s%@DEFS@%$DEFS%g
23949 s%@LDFLAGS@%$LDFLAGS%g
23950 s%@LIBS@%$LIBS%g
23951 s%@exec_prefix@%$exec_prefix%g
23952 s%@prefix@%$prefix%g
23953 s%@program_transform_name@%$program_transform_name%g
23954 s%@bindir@%$bindir%g
23955 s%@sbindir@%$sbindir%g
23956 s%@libexecdir@%$libexecdir%g
23957 s%@datadir@%$datadir%g
23958 s%@sysconfdir@%$sysconfdir%g
23959 s%@sharedstatedir@%$sharedstatedir%g
23960 s%@localstatedir@%$localstatedir%g
23961 s%@libdir@%$libdir%g
23962 s%@includedir@%$includedir%g
23963 s%@oldincludedir@%$oldincludedir%g
23964 s%@infodir@%$infodir%g
23965 s%@mandir@%$mandir%g
23966 s%@PACKAGE@%$PACKAGE%g
23967 s%@libtool_VERSION@%$libtool_VERSION%g
23968 s%@toplevel_srcdir@%$toplevel_srcdir%g
23969 s%@host@%$host%g
23970 s%@host_alias@%$host_alias%g
23971 s%@host_cpu@%$host_cpu%g
23972 s%@host_vendor@%$host_vendor%g
23973 s%@host_os@%$host_os%g
23974 s%@target@%$target%g
23975 s%@target_alias@%$target_alias%g
23976 s%@target_cpu@%$target_cpu%g
23977 s%@target_vendor@%$target_vendor%g
23978 s%@target_os@%$target_os%g
23979 s%@build@%$build%g
23980 s%@build_alias@%$build_alias%g
23981 s%@build_cpu@%$build_cpu%g
23982 s%@build_vendor@%$build_vendor%g
23983 s%@build_os@%$build_os%g
23984 s%@glibcpp_builddir@%$glibcpp_builddir%g
23985 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
23986 s%@AWK@%$AWK%g
23987 s%@LN_S@%$LN_S%g
23988 s%@glibcpp_basedir@%$glibcpp_basedir%g
23989 s%@CC@%$CC%g
23990 s%@glibcpp_CXX@%$glibcpp_CXX%g
23991 s%@AS@%$AS%g
23992 s%@AR@%$AR%g
23993 s%@RANLIB@%$RANLIB%g
23994 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23995 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23996 s%@INSTALL_DATA@%$INSTALL_DATA%g
23997 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
23998 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
23999 s%@MAINT@%$MAINT%g
24000 s%@EXEEXT@%$EXEEXT%g
24001 s%@VERSION@%$VERSION%g
24002 s%@ACLOCAL@%$ACLOCAL%g
24003 s%@AUTOCONF@%$AUTOCONF%g
24004 s%@AUTOMAKE@%$AUTOMAKE%g
24005 s%@AUTOHEADER@%$AUTOHEADER%g
24006 s%@MAKEINFO@%$MAKEINFO%g
24007 s%@SET_MAKE@%$SET_MAKE%g
24008 s%@OBJEXT@%$OBJEXT%g
24009 s%@STRIP@%$STRIP%g
24010 s%@LIBTOOL@%$LIBTOOL%g
24011 s%@CXXCPP@%$CXXCPP%g
24012 s%@enable_shared@%$enable_shared%g
24013 s%@enable_static@%$enable_static%g
24014 s%@ifGNUmake@%$ifGNUmake%g
24015 s%@CPP@%$CPP%g
24016 s%@CSTDIO_H@%$CSTDIO_H%g
24017 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24018 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24019 s%@CCODECVT_C@%$CCODECVT_C%g
24020 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
24021 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
24022 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
24023 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
24024 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
24025 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
24026 s%@libio_la@%$libio_la%g
24027 s%@check_msgfmt@%$check_msgfmt%g
24028 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24029 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24030 s%@glibcpp_localedir@%$glibcpp_localedir%g
24031 s%@USE_NLS@%$USE_NLS%g
24032 s%@CLOCALE_H@%$CLOCALE_H%g
24033 s%@CCODECVT_H@%$CCODECVT_H%g
24034 s%@CMESSAGES_H@%$CMESSAGES_H%g
24035 s%@CCODECVT_CC@%$CCODECVT_CC%g
24036 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24037 s%@CCTYPE_CC@%$CCTYPE_CC%g
24038 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24039 s%@CMONEY_CC@%$CMONEY_CC%g
24040 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24041 s%@CTIME_H@%$CTIME_H%g
24042 s%@CTIME_CC@%$CTIME_CC%g
24043 s%@CLOCALE_CC@%$CLOCALE_CC%g
24044 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24045 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24046 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24047 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24048 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24049 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24050 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24051 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24052 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24053 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24054 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24055 s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24056 s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24057 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24058 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24059 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24060 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24061 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24062 s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24063 s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24064 s%@WERROR@%$WERROR%g
24065 s%@baseline_file@%$baseline_file%g
24066 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
24067 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
24068 s%@SYMVER_MAP@%$SYMVER_MAP%g
24069 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24070 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24071 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24072 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24073 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24074 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24075 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24076 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24077 s%@gxx_include_dir@%$gxx_include_dir%g
24078 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24079 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24080 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
24081 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24082 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24083 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24084 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24085 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24086 s%@WARN_FLAGS@%$WARN_FLAGS%g
24087 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24088
24089 CEOF
24090 EOF
24091
24092 cat >> $CONFIG_STATUS <<\EOF
24093
24094 # Split the substitutions into bite-sized pieces for seds with
24095 # small command number limits, like on Digital OSF/1 and HP-UX.
24096 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24097 ac_file=1 # Number of current file.
24098 ac_beg=1 # First line for current file.
24099 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24100 ac_more_lines=:
24101 ac_sed_cmds=""
24102 while $ac_more_lines; do
24103   if test $ac_beg -gt 1; then
24104     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24105   else
24106     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24107   fi
24108   if test ! -s conftest.s$ac_file; then
24109     ac_more_lines=false
24110     rm -f conftest.s$ac_file
24111   else
24112     if test -z "$ac_sed_cmds"; then
24113       ac_sed_cmds="sed -f conftest.s$ac_file"
24114     else
24115       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24116     fi
24117     ac_file=`expr $ac_file + 1`
24118     ac_beg=$ac_end
24119     ac_end=`expr $ac_end + $ac_max_sed_cmds`
24120   fi
24121 done
24122 if test -z "$ac_sed_cmds"; then
24123   ac_sed_cmds=cat
24124 fi
24125 EOF
24126
24127 cat >> $CONFIG_STATUS <<EOF
24128
24129 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24130     include/Makefile src/Makefile \
24131     libmath/Makefile libio/Makefile libsupc++/Makefile \
24132     po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
24133 EOF
24134 cat >> $CONFIG_STATUS <<\EOF
24135 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24136   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24137   case "$ac_file" in
24138   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24139        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24140   *) ac_file_in="${ac_file}.in" ;;
24141   esac
24142
24143   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24144
24145   # Remove last slash and all that follows it.  Not all systems have dirname.
24146   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24147   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24148     # The file is in a subdirectory.
24149     test ! -d "$ac_dir" && mkdir "$ac_dir"
24150     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24151     # A "../" for each directory in $ac_dir_suffix.
24152     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24153   else
24154     ac_dir_suffix= ac_dots=
24155   fi
24156
24157   case "$ac_given_srcdir" in
24158   .)  srcdir=.
24159       if test -z "$ac_dots"; then top_srcdir=.
24160       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24161   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24162   *) # Relative path.
24163     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24164     top_srcdir="$ac_dots$ac_given_srcdir" ;;
24165   esac
24166
24167   case "$ac_given_INSTALL" in
24168   [/$]*) INSTALL="$ac_given_INSTALL" ;;
24169   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24170   esac
24171
24172   echo creating "$ac_file"
24173   rm -f "$ac_file"
24174   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24175   case "$ac_file" in
24176   *Makefile*) ac_comsub="1i\\
24177 # $configure_input" ;;
24178   *) ac_comsub= ;;
24179   esac
24180
24181   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24182   sed -e "$ac_comsub
24183 s%@configure_input@%$configure_input%g
24184 s%@srcdir@%$srcdir%g
24185 s%@top_srcdir@%$top_srcdir%g
24186 s%@INSTALL@%$INSTALL%g
24187 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24188 fi; done
24189 rm -f conftest.s*
24190
24191 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24192 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24193 #
24194 # ac_d sets the value in "#define NAME VALUE" lines.
24195 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24196 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
24197 ac_dC='\3'
24198 ac_dD='%g'
24199 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24200 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24201 ac_uB='\([      ]\)%\1#\2define\3'
24202 ac_uC=' '
24203 ac_uD='\4%g'
24204 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24205 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24206 ac_eB='$%\1#\2define\3'
24207 ac_eC=' '
24208 ac_eD='%g'
24209
24210 if test "${CONFIG_HEADERS+set}" != set; then
24211 EOF
24212 cat >> $CONFIG_STATUS <<EOF
24213   CONFIG_HEADERS="config.h"
24214 EOF
24215 cat >> $CONFIG_STATUS <<\EOF
24216 fi
24217 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24218   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24219   case "$ac_file" in
24220   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24221        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24222   *) ac_file_in="${ac_file}.in" ;;
24223   esac
24224
24225   echo creating $ac_file
24226
24227   rm -f conftest.frag conftest.in conftest.out
24228   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24229   cat $ac_file_inputs > conftest.in
24230
24231 EOF
24232
24233 # Transform confdefs.h into a sed script conftest.vals that substitutes
24234 # the proper values into config.h.in to produce config.h.  And first:
24235 # Protect against being on the right side of a sed subst in config.status.
24236 # Protect against being in an unquoted here document in config.status.
24237 rm -f conftest.vals
24238 cat > conftest.hdr <<\EOF
24239 s/[\\&%]/\\&/g
24240 s%[\\$`]%\\&%g
24241 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24242 s%ac_d%ac_u%gp
24243 s%ac_u%ac_e%gp
24244 EOF
24245 sed -n -f conftest.hdr confdefs.h > conftest.vals
24246 rm -f conftest.hdr
24247
24248 # This sed command replaces #undef with comments.  This is necessary, for
24249 # example, in the case of _POSIX_SOURCE, which is predefined and required
24250 # on some systems where configure will not decide to define it.
24251 cat >> conftest.vals <<\EOF
24252 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24253 EOF
24254
24255 # Break up conftest.vals because some shells have a limit on
24256 # the size of here documents, and old seds have small limits too.
24257
24258 rm -f conftest.tail
24259 while :
24260 do
24261   ac_lines=`grep -c . conftest.vals`
24262   # grep -c gives empty output for an empty file on some AIX systems.
24263   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24264   # Write a limited-size here document to conftest.frag.
24265   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24266   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24267   echo 'CEOF
24268   sed -f conftest.frag conftest.in > conftest.out
24269   rm -f conftest.in
24270   mv conftest.out conftest.in
24271 ' >> $CONFIG_STATUS
24272   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24273   rm -f conftest.vals
24274   mv conftest.tail conftest.vals
24275 done
24276 rm -f conftest.vals
24277
24278 cat >> $CONFIG_STATUS <<\EOF
24279   rm -f conftest.frag conftest.h
24280   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
24281   cat conftest.in >> conftest.h
24282   rm -f conftest.in
24283   if cmp -s $ac_file conftest.h 2>/dev/null; then
24284     echo "$ac_file is unchanged"
24285     rm -f conftest.h
24286   else
24287     # Remove last slash and all that follows it.  Not all systems have dirname.
24288       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24289       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24290       # The file is in a subdirectory.
24291       test ! -d "$ac_dir" && mkdir "$ac_dir"
24292     fi
24293     rm -f $ac_file
24294     mv conftest.h $ac_file
24295   fi
24296 fi; done
24297
24298 EOF
24299 cat >> $CONFIG_STATUS <<EOF
24300
24301 srcdir=${srcdir}
24302 host=${host}
24303 target=${target}
24304 with_target_subdir=${with_target_subdir}
24305 with_build_subdir=${with_build_subdir}
24306 with_multisubdir=${with_multisubdir}
24307 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24308 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24309 glibcpp_basedir=${glibcpp_basedir}
24310 CC="${CC}"
24311 CXX="${CXX}"
24312
24313 EOF
24314 cat >> $CONFIG_STATUS <<\EOF
24315 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24316 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24317 if test -n "$CONFIG_FILES"; then
24318  if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24319     LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24320     ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24321     grep '^MULTISUBDIR =' Makefile >> src/Makefile
24322     grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24323   fi
24324 fi
24325 chmod +x mkcheck
24326 chmod +x testsuite_flags
24327
24328 exit 0
24329 EOF
24330 chmod +x $CONFIG_STATUS
24331 rm -fr confdefs* $ac_clean_files
24332 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24333
24334
24335
24336 # Sanity checking & User-visible messages.
24337 # Checks down here, otherwise they get scrolled off before
24338 # the user will notice.
24339
24340 # Trying to get more people to read documentation.  Possibly remove
24341 # check and warn all the time. There is no "informational" AC_MSG_
24342 # macro, so these are going to be printed even when --quiet/--silent
24343 # is given.
24344 if test ! -f stamp-sanity-warned; then
24345   touch stamp-sanity-warned
24346   echo ""
24347   echo "Please make certain that you read the installation information here:"
24348   echo "  faster => ${srcdir}/docs/html/install.html"
24349   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24350   echo ""
24351   echo "and the configuration information here:"
24352   echo "  faster => ${srcdir}/docs/html/configopts.html"
24353   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24354   echo ""
24355   echo "before proceeding with ${_cv_gnu_make_command}."
24356   echo ""
24357 fi