OSDN Git Service

2003-06-09 Phil Edwards <pme@gcc.gnu.org>
[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   --with-newlib                    Configuring with newlib"
23 ac_help="$ac_help
24   --enable-maintainer-mode enable make rules and dependencies not useful
25                           (and sometimes confusing) to the casual installer"
26 ac_help="$ac_help
27   --enable-shared[=PKGS]  build shared libraries [default=yes]"
28 ac_help="$ac_help
29   --enable-static[=PKGS]  build static libraries [default=yes]"
30 ac_help="$ac_help
31   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
32 ac_help="$ac_help
33   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
34 ac_help="$ac_help
35   --disable-libtool-lock  avoid locking (might break parallel builds)"
36 ac_help="$ac_help
37   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
38 ac_help="$ac_help
39   --enable-cstdio         enable stdio for target io package.
40   --enable-cstdio=LIB     use LIB target-speific io package. [default=stdio]
41   "
42 ac_help="$ac_help
43   --enable-clocale        enable model for target locale package.
44   --enable-clocale=MODEL  use MODEL target-speific locale package. [default=generic]
45   "
46 ac_help="$ac_help
47   --enable-nls            use Native Language Support (default)"
48 ac_help="$ac_help
49   --enable-cheaders=MODEL       construct "C" header files for g++ [default=c_std]"
50 ac_help="$ac_help
51   --enable-c-mbchar       enable multibyte (wide) characters [default=yes]"
52 ac_help="$ac_help
53   --enable-c99            turns on 'ISO/IEC 9899:1999 support' [default=yes]"
54 ac_help="$ac_help
55   --enable-long-long      turns on 'long long' [default=yes]"
56 ac_help="$ac_help
57   --enable-sjlj-exceptions  force use of builtin_setjmp for exceptions"
58 ac_help="$ac_help
59   --enable-libunwind-exceptions  force use of libunwind for exceptions"
60 ac_help="$ac_help
61   --enable-concept-checks use Boost-derived template checks [default=no]"
62 ac_help="$ac_help
63   --enable-cxx-flags=FLAGS      pass compiler FLAGS when building library;
64                                   [default=]"
65 ac_help="$ac_help
66   --enable-debug          build extra debug library [default=no]"
67 ac_help="$ac_help
68   --enable-debug-flags=FLAGS    pass compiler FLAGS when building debug
69                         library;[default=none]"
70 ac_help="$ac_help
71   --enable-symvers=style  enables symbol versioning of the shared library [default=yes]"
72 ac_help="$ac_help
73   --with-gxx-include-dir  the installation directory for include files"
74 ac_help="$ac_help
75   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory "
76
77 # Initialize some variables set by options.
78 # The variables have the same names as the options, with
79 # dashes changed to underlines.
80 build=NONE
81 cache_file=./config.cache
82 exec_prefix=NONE
83 host=NONE
84 no_create=
85 nonopt=NONE
86 no_recursion=
87 prefix=NONE
88 program_prefix=NONE
89 program_suffix=NONE
90 program_transform_name=s,x,x,
91 silent=
92 site=
93 srcdir=
94 target=NONE
95 verbose=
96 x_includes=NONE
97 x_libraries=NONE
98 bindir='${exec_prefix}/bin'
99 sbindir='${exec_prefix}/sbin'
100 libexecdir='${exec_prefix}/libexec'
101 datadir='${prefix}/share'
102 sysconfdir='${prefix}/etc'
103 sharedstatedir='${prefix}/com'
104 localstatedir='${prefix}/var'
105 libdir='${exec_prefix}/lib'
106 includedir='${prefix}/include'
107 oldincludedir='/usr/include'
108 infodir='${prefix}/info'
109 mandir='${prefix}/man'
110
111 # Initialize some other variables.
112 subdirs=
113 MFLAGS= MAKEFLAGS=
114 SHELL=${CONFIG_SHELL-/bin/sh}
115 # Maximum number of lines to put in a shell here document.
116 ac_max_here_lines=12
117
118 ac_prev=
119 for ac_option
120 do
121
122   # If the previous option needs an argument, assign it.
123   if test -n "$ac_prev"; then
124     eval "$ac_prev=\$ac_option"
125     ac_prev=
126     continue
127   fi
128
129   case "$ac_option" in
130   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
131   *) ac_optarg= ;;
132   esac
133
134   # Accept the important Cygnus configure options, so we can diagnose typos.
135
136   case "$ac_option" in
137
138   -bindir | --bindir | --bindi | --bind | --bin | --bi)
139     ac_prev=bindir ;;
140   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
141     bindir="$ac_optarg" ;;
142
143   -build | --build | --buil | --bui | --bu)
144     ac_prev=build ;;
145   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
146     build="$ac_optarg" ;;
147
148   -cache-file | --cache-file | --cache-fil | --cache-fi \
149   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
150     ac_prev=cache_file ;;
151   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
152   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
153     cache_file="$ac_optarg" ;;
154
155   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156     ac_prev=datadir ;;
157   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158   | --da=*)
159     datadir="$ac_optarg" ;;
160
161   -disable-* | --disable-*)
162     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
163     # Reject names that are not valid shell variable names.
164     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166     fi
167     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168     eval "enable_${ac_feature}=no" ;;
169
170   -enable-* | --enable-*)
171     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172     # Reject names that are not valid shell variable names.
173     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175     fi
176     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
177     case "$ac_option" in
178       *=*) ;;
179       *) ac_optarg=yes ;;
180     esac
181     eval "enable_${ac_feature}='$ac_optarg'" ;;
182
183   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
184   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
185   | --exec | --exe | --ex)
186     ac_prev=exec_prefix ;;
187   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
188   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
189   | --exec=* | --exe=* | --ex=*)
190     exec_prefix="$ac_optarg" ;;
191
192   -gas | --gas | --ga | --g)
193     # Obsolete; use --with-gas.
194     with_gas=yes ;;
195
196   -help | --help | --hel | --he)
197     # Omit some internal or obsolete options to make the list less imposing.
198     # This message is too long to be a string in the A/UX 3.1 sh.
199     cat << EOF
200 Usage: configure [options] [host]
201 Options: [defaults in brackets after descriptions]
202 Configuration:
203   --cache-file=FILE       cache test results in FILE
204   --help                  print this message
205   --no-create             do not create output files
206   --quiet, --silent       do not print \`checking...' messages
207   --version               print the version of autoconf that created configure
208 Directory and file names:
209   --prefix=PREFIX         install architecture-independent files in PREFIX
210                           [$ac_default_prefix]
211   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
212                           [same as prefix]
213   --bindir=DIR            user executables in DIR [EPREFIX/bin]
214   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
215   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
216   --datadir=DIR           read-only architecture-independent data in DIR
217                           [PREFIX/share]
218   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
219   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
220                           [PREFIX/com]
221   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
222   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
223   --includedir=DIR        C header files in DIR [PREFIX/include]
224   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
225   --infodir=DIR           info documentation in DIR [PREFIX/info]
226   --mandir=DIR            man documentation in DIR [PREFIX/man]
227   --srcdir=DIR            find the sources in DIR [configure dir or ..]
228   --program-prefix=PREFIX prepend PREFIX to installed program names
229   --program-suffix=SUFFIX append SUFFIX to installed program names
230   --program-transform-name=PROGRAM
231                           run sed PROGRAM on installed program names
232 EOF
233     cat << EOF
234 Host type:
235   --build=BUILD           configure for building on BUILD [BUILD=HOST]
236   --host=HOST             configure for HOST [guessed]
237   --target=TARGET         configure for TARGET [TARGET=HOST]
238 Features and packages:
239   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
240   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
241   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
242   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
243   --x-includes=DIR        X include files are in DIR
244   --x-libraries=DIR       X library files are in DIR
245 EOF
246     if test -n "$ac_help"; then
247       echo "--enable and --with options recognized:$ac_help"
248     fi
249     exit 0 ;;
250
251   -host | --host | --hos | --ho)
252     ac_prev=host ;;
253   -host=* | --host=* | --hos=* | --ho=*)
254     host="$ac_optarg" ;;
255
256   -includedir | --includedir | --includedi | --included | --include \
257   | --includ | --inclu | --incl | --inc)
258     ac_prev=includedir ;;
259   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260   | --includ=* | --inclu=* | --incl=* | --inc=*)
261     includedir="$ac_optarg" ;;
262
263   -infodir | --infodir | --infodi | --infod | --info | --inf)
264     ac_prev=infodir ;;
265   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266     infodir="$ac_optarg" ;;
267
268   -libdir | --libdir | --libdi | --libd)
269     ac_prev=libdir ;;
270   -libdir=* | --libdir=* | --libdi=* | --libd=*)
271     libdir="$ac_optarg" ;;
272
273   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274   | --libexe | --libex | --libe)
275     ac_prev=libexecdir ;;
276   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277   | --libexe=* | --libex=* | --libe=*)
278     libexecdir="$ac_optarg" ;;
279
280   -localstatedir | --localstatedir | --localstatedi | --localstated \
281   | --localstate | --localstat | --localsta | --localst \
282   | --locals | --local | --loca | --loc | --lo)
283     ac_prev=localstatedir ;;
284   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
287     localstatedir="$ac_optarg" ;;
288
289   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290     ac_prev=mandir ;;
291   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292     mandir="$ac_optarg" ;;
293
294   -nfp | --nfp | --nf)
295     # Obsolete; use --without-fp.
296     with_fp=no ;;
297
298   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
299   | --no-cr | --no-c)
300     no_create=yes ;;
301
302   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
304     no_recursion=yes ;;
305
306   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308   | --oldin | --oldi | --old | --ol | --o)
309     ac_prev=oldincludedir ;;
310   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
313     oldincludedir="$ac_optarg" ;;
314
315   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
316     ac_prev=prefix ;;
317   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
318     prefix="$ac_optarg" ;;
319
320   -program-prefix | --program-prefix | --program-prefi | --program-pref \
321   | --program-pre | --program-pr | --program-p)
322     ac_prev=program_prefix ;;
323   -program-prefix=* | --program-prefix=* | --program-prefi=* \
324   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
325     program_prefix="$ac_optarg" ;;
326
327   -program-suffix | --program-suffix | --program-suffi | --program-suff \
328   | --program-suf | --program-su | --program-s)
329     ac_prev=program_suffix ;;
330   -program-suffix=* | --program-suffix=* | --program-suffi=* \
331   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
332     program_suffix="$ac_optarg" ;;
333
334   -program-transform-name | --program-transform-name \
335   | --program-transform-nam | --program-transform-na \
336   | --program-transform-n | --program-transform- \
337   | --program-transform | --program-transfor \
338   | --program-transfo | --program-transf \
339   | --program-trans | --program-tran \
340   | --progr-tra | --program-tr | --program-t)
341     ac_prev=program_transform_name ;;
342   -program-transform-name=* | --program-transform-name=* \
343   | --program-transform-nam=* | --program-transform-na=* \
344   | --program-transform-n=* | --program-transform-=* \
345   | --program-transform=* | --program-transfor=* \
346   | --program-transfo=* | --program-transf=* \
347   | --program-trans=* | --program-tran=* \
348   | --progr-tra=* | --program-tr=* | --program-t=*)
349     program_transform_name="$ac_optarg" ;;
350
351   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352   | -silent | --silent | --silen | --sile | --sil)
353     silent=yes ;;
354
355   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
356     ac_prev=sbindir ;;
357   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
358   | --sbi=* | --sb=*)
359     sbindir="$ac_optarg" ;;
360
361   -sharedstatedir | --sharedstatedir | --sharedstatedi \
362   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363   | --sharedst | --shareds | --shared | --share | --shar \
364   | --sha | --sh)
365     ac_prev=sharedstatedir ;;
366   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
369   | --sha=* | --sh=*)
370     sharedstatedir="$ac_optarg" ;;
371
372   -site | --site | --sit)
373     ac_prev=site ;;
374   -site=* | --site=* | --sit=*)
375     site="$ac_optarg" ;;
376
377   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378     ac_prev=srcdir ;;
379   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
380     srcdir="$ac_optarg" ;;
381
382   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
383   | --syscon | --sysco | --sysc | --sys | --sy)
384     ac_prev=sysconfdir ;;
385   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
386   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
387     sysconfdir="$ac_optarg" ;;
388
389   -target | --target | --targe | --targ | --tar | --ta | --t)
390     ac_prev=target ;;
391   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
392     target="$ac_optarg" ;;
393
394   -v | -verbose | --verbose | --verbos | --verbo | --verb)
395     verbose=yes ;;
396
397   -version | --version | --versio | --versi | --vers)
398     echo "configure generated by autoconf version 2.13"
399     exit 0 ;;
400
401   -with-* | --with-*)
402     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403     # Reject names that are not valid shell variable names.
404     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406     fi
407     ac_package=`echo $ac_package| sed 's/-/_/g'`
408     case "$ac_option" in
409       *=*) ;;
410       *) ac_optarg=yes ;;
411     esac
412     eval "with_${ac_package}='$ac_optarg'" ;;
413
414   -without-* | --without-*)
415     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
416     # Reject names that are not valid shell variable names.
417     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419     fi
420     ac_package=`echo $ac_package| sed 's/-/_/g'`
421     eval "with_${ac_package}=no" ;;
422
423   --x)
424     # Obsolete; use --with-x.
425     with_x=yes ;;
426
427   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
428   | --x-incl | --x-inc | --x-in | --x-i)
429     ac_prev=x_includes ;;
430   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
431   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
432     x_includes="$ac_optarg" ;;
433
434   -x-libraries | --x-libraries | --x-librarie | --x-librari \
435   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
436     ac_prev=x_libraries ;;
437   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
438   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
439     x_libraries="$ac_optarg" ;;
440
441   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
442     ;;
443
444   *)
445     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446       echo "configure: warning: $ac_option: invalid host type" 1>&2
447     fi
448     if test "x$nonopt" != xNONE; then
449       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
450     fi
451     nonopt="$ac_option"
452     ;;
453
454   esac
455 done
456
457 if test -n "$ac_prev"; then
458   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 fi
460
461 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462
463 # File descriptor usage:
464 # 0 standard input
465 # 1 file creation
466 # 2 errors and warnings
467 # 3 some systems may open it to /dev/tty
468 # 4 used on the Kubota Titan
469 # 6 checking for... messages and results
470 # 5 compiler messages saved in config.log
471 if test "$silent" = yes; then
472   exec 6>/dev/null
473 else
474   exec 6>&1
475 fi
476 exec 5>./config.log
477
478 echo "\
479 This file contains any messages produced by compilers while
480 running configure, to aid debugging if configure makes a mistake.
481 " 1>&5
482
483 # Strip out --no-create and --no-recursion so they do not pile up.
484 # Also quote any args containing shell metacharacters.
485 ac_configure_args=
486 for ac_arg
487 do
488   case "$ac_arg" in
489   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490   | --no-cr | --no-c) ;;
491   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
493   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
495   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
496   esac
497 done
498
499 # NLS nuisances.
500 # Only set these to C if already set.  These must not be set unconditionally
501 # because not all systems understand e.g. LANG=C (notably SCO).
502 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503 # Non-C LC_CTYPE values break the ctype check.
504 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
505 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
506 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
507 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
508
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 echo > confdefs.h
513
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file=src/ios.cc
517
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520   ac_srcdir_defaulted=yes
521   # Try the directory containing this script, then its parent.
522   ac_prog=$0
523   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525   srcdir=$ac_confdir
526   if test ! -r $srcdir/$ac_unique_file; then
527     srcdir=..
528   fi
529 else
530   ac_srcdir_defaulted=no
531 fi
532 if test ! -r $srcdir/$ac_unique_file; then
533   if test "$ac_srcdir_defaulted" = yes; then
534     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535   else
536     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537   fi
538 fi
539 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540
541 # Prefer explicitly selected file to automatically selected ones.
542 if test -z "$CONFIG_SITE"; then
543   if test "x$prefix" != xNONE; then
544     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545   else
546     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547   fi
548 fi
549 for ac_site_file in $CONFIG_SITE; do
550   if test -r "$ac_site_file"; then
551     echo "loading site script $ac_site_file"
552     . "$ac_site_file"
553   fi
554 done
555
556 if test -r "$cache_file"; then
557   echo "loading cache $cache_file"
558   . $cache_file
559 else
560   echo "creating cache $cache_file"
561   > $cache_file
562 fi
563
564 ac_ext=c
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cc_cross
570
571 ac_exeext=
572 ac_objext=o
573 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
574   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
576     ac_n= ac_c='
577 ' ac_t='        '
578   else
579     ac_n=-n ac_c= ac_t=
580   fi
581 else
582   ac_n= ac_c='\c' ac_t=
583 fi
584
585
586
587 # This works around the fact that libtool configuration may change LD
588 # for this particular configuration, but some shells, instead of
589 # keeping the changes in LD private, export them just because LD is
590 # exported.  Only used at the end of this file.
591 ORIGINAL_LD_FOR_MULTILIBS=$LD
592
593 PACKAGE=libstdc++
594
595 # For libtool versioning info, format is CURRENT:REVISION:AGE
596 libtool_VERSION=6:0:0
597
598
599
600       # Check whether --enable-multilib or --disable-multilib was given.
601 if test "${enable_multilib+set}" = set; then
602   enableval="$enable_multilib"
603   case "${enableval}" in
604     yes) multilib=yes ;;
605     no)  multilib=no ;;
606     *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
607    esac
608 else
609   multilib=yes
610 fi
611
612   # When building with srcdir == objdir, links to the source files will
613   # be created in directories within the target_subdir.  We have to
614   # adjust toplevel_srcdir accordingly, so that configure finds
615   # install-sh and other auxiliary files that live in the top-level
616   # source directory.
617   if test "${srcdir}" = "."; then
618     if test -z "${with_target_subdir}"; then
619       toprel=".."
620     else
621       if test "${with_target_subdir}" != "."; then
622         toprel="${with_multisrctop}../.."
623       else
624         toprel="${with_multisrctop}.."
625       fi
626     fi
627   else
628     toprel=".."
629   fi
630   ac_aux_dir=
631 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
632   if test -f $ac_dir/install-sh; then
633     ac_aux_dir=$ac_dir
634     ac_install_sh="$ac_aux_dir/install-sh -c"
635     break
636   elif test -f $ac_dir/install.sh; then
637     ac_aux_dir=$ac_dir
638     ac_install_sh="$ac_aux_dir/install.sh -c"
639     break
640   fi
641 done
642 if test -z "$ac_aux_dir"; then
643   { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
644 fi
645 ac_config_guess=$ac_aux_dir/config.guess
646 ac_config_sub=$ac_aux_dir/config.sub
647 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
648
649   toplevel_srcdir=\${top_srcdir}/$toprel
650   
651
652
653 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
654 #
655 # You will slowly go insane if you do not grok the following fact:  when
656 # building v3 as part of the compiler, the top-level /target/ becomes the
657 # library's /host/.  `configure' then causes --target to default to --host,
658 # exactly like any other package using autoconf.  Therefore, 'target' and
659 # 'host' will always be the same.  This makes sense both for native and
660 # cross compilers, just think about it for a little while.  :-)
661 #
662 # Also, if v3 is being configured as part of a cross compiler, the top-level
663 # configure script will pass the "real" host as $with_cross_host.
664 #
665 # In AC 2.13 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
756 # Runs configure.host, finds CC, CXX and assorted other critical bits.
757 # Must run this before the GLIBCPP_ENABLE_* macros below.
758 if test $host != $build; then
759   ac_tool_prefix=${host_alias}-
760 else
761   ac_tool_prefix=
762 fi
763
764 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
765 echo "configure:766: checking for Cygwin environment" >&5
766 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
767   echo $ac_n "(cached) $ac_c" 1>&6
768 else
769   cat > conftest.$ac_ext <<EOF
770 #line 771 "configure"
771 #include "confdefs.h"
772
773 int main() {
774
775 #ifndef __CYGWIN__
776 #define __CYGWIN__ __CYGWIN32__
777 #endif
778 return __CYGWIN__;
779 ; return 0; }
780 EOF
781 if { (eval echo configure:782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
782   rm -rf conftest*
783   ac_cv_cygwin=yes
784 else
785   echo "configure: failed program was:" >&5
786   cat conftest.$ac_ext >&5
787   rm -rf conftest*
788   ac_cv_cygwin=no
789 fi
790 rm -f conftest*
791 rm -f conftest*
792 fi
793
794 echo "$ac_t""$ac_cv_cygwin" 1>&6
795 CYGWIN=
796 test "$ac_cv_cygwin" = yes && CYGWIN=yes
797 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
798 echo "configure:799: checking for mingw32 environment" >&5
799 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
800   echo $ac_n "(cached) $ac_c" 1>&6
801 else
802   cat > conftest.$ac_ext <<EOF
803 #line 804 "configure"
804 #include "confdefs.h"
805
806 int main() {
807 return __MINGW32__;
808 ; return 0; }
809 EOF
810 if { (eval echo configure:811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
811   rm -rf conftest*
812   ac_cv_mingw32=yes
813 else
814   echo "configure: failed program was:" >&5
815   cat conftest.$ac_ext >&5
816   rm -rf conftest*
817   ac_cv_mingw32=no
818 fi
819 rm -f conftest*
820 rm -f conftest*
821 fi
822
823 echo "$ac_t""$ac_cv_mingw32" 1>&6
824 MINGW32=
825 test "$ac_cv_mingw32" = yes && MINGW32=yes
826
827   # Export build and source directories.
828   # These need to be absolute paths, yet at the same time need to
829   # canonicalize only relative paths, because then amd will not unmount
830   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
831   glibcpp_builddir=`${PWDCMD-pwd}`
832   case $srcdir in
833   \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
834   *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
835   esac
836   
837   
838
839     
840
841   for ac_prog in mawk gawk nawk awk
842 do
843 # Extract the first word of "$ac_prog", so it can be a program name with args.
844 set dummy $ac_prog; ac_word=$2
845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
846 echo "configure:847: checking for $ac_word" >&5
847 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
848   echo $ac_n "(cached) $ac_c" 1>&6
849 else
850   if test -n "$AWK"; then
851   ac_cv_prog_AWK="$AWK" # Let the user override the test.
852 else
853   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
854   ac_dummy="$PATH"
855   for ac_dir in $ac_dummy; do
856     test -z "$ac_dir" && ac_dir=.
857     if test -f $ac_dir/$ac_word; then
858       ac_cv_prog_AWK="$ac_prog"
859       break
860     fi
861   done
862   IFS="$ac_save_ifs"
863 fi
864 fi
865 AWK="$ac_cv_prog_AWK"
866 if test -n "$AWK"; then
867   echo "$ac_t""$AWK" 1>&6
868 else
869   echo "$ac_t""no" 1>&6
870 fi
871
872 test -n "$AWK" && break
873 done
874
875   # Will set LN_S to either 'ln -s' or 'ln'.  With autoconf 2.5x, can also
876   # be 'cp -p' if linking isn't available.  Uncomment the next line to
877   # force a particular method.
878   #ac_cv_prog_LN_S='cp -p'
879   echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
880 echo "configure:881: checking whether ln -s works" >&5
881 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
882   echo $ac_n "(cached) $ac_c" 1>&6
883 else
884   rm -f conftestdata
885 if ln -s X conftestdata 2>/dev/null
886 then
887   rm -f conftestdata
888   ac_cv_prog_LN_S="ln -s"
889 else
890   ac_cv_prog_LN_S=ln
891 fi
892 fi
893 LN_S="$ac_cv_prog_LN_S"
894 if test "$ac_cv_prog_LN_S" = "ln -s"; then
895   echo "$ac_t""yes" 1>&6
896 else
897   echo "$ac_t""no" 1>&6
898 fi
899
900
901   # We use these options to decide which functions to include.
902   # Check whether --with-target-subdir or --without-target-subdir was given.
903 if test "${with_target_subdir+set}" = set; then
904   withval="$with_target_subdir"
905   :
906 fi
907
908   # Check whether --with-cross-host or --without-cross-host was given.
909 if test "${with_cross_host+set}" = set; then
910   withval="$with_cross_host"
911   :
912 fi
913
914
915   # Check whether --with-newlib or --without-newlib was given.
916 if test "${with_newlib+set}" = set; then
917   withval="$with_newlib"
918   :
919 fi
920
921
922   glibcpp_basedir=$srcdir/$toprel/./libstdc++-v3
923   
924
925   # Never versions of autoconf add an underscore to these functions.
926   # Prevent future problems ...
927   
928   
929   
930   
931
932   # AC_PROG_CC
933   # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
934   # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
935   # are probably using a cross compiler, which will not be able to fully
936   # link an executable.  This is addressed in later versions of autoconf.
937
938   
939
940       
941   # Extract the first word of "gcc", so it can be a program name with args.
942 set dummy gcc; ac_word=$2
943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
944 echo "configure:945: checking for $ac_word" >&5
945 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
946   echo $ac_n "(cached) $ac_c" 1>&6
947 else
948   if test -n "$CC"; then
949   ac_cv_prog_CC="$CC" # Let the user override the test.
950 else
951   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
952   ac_dummy="$PATH"
953   for ac_dir in $ac_dummy; do
954     test -z "$ac_dir" && ac_dir=.
955     if test -f $ac_dir/$ac_word; then
956       ac_cv_prog_CC="gcc"
957       break
958     fi
959   done
960   IFS="$ac_save_ifs"
961 fi
962 fi
963 CC="$ac_cv_prog_CC"
964 if test -n "$CC"; then
965   echo "$ac_t""$CC" 1>&6
966 else
967   echo "$ac_t""no" 1>&6
968 fi
969
970   if test -z "$CC"; then
971     # Extract the first word of "cc", so it can be a program name with args.
972 set dummy cc; ac_word=$2
973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974 echo "configure:975: checking for $ac_word" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
976   echo $ac_n "(cached) $ac_c" 1>&6
977 else
978   if test -n "$CC"; then
979   ac_cv_prog_CC="$CC" # Let the user override the test.
980 else
981   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
982   ac_prog_rejected=no
983   ac_dummy="$PATH"
984   for ac_dir in $ac_dummy; do
985     test -z "$ac_dir" && ac_dir=.
986     if test -f $ac_dir/$ac_word; then
987       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
988         ac_prog_rejected=yes
989         continue
990       fi
991       ac_cv_prog_CC="cc"
992       break
993     fi
994   done
995   IFS="$ac_save_ifs"
996 if test $ac_prog_rejected = yes; then
997   # We found a bogon in the path, so make sure we never use it.
998   set dummy $ac_cv_prog_CC
999   shift
1000   if test $# -gt 0; then
1001     # We chose a different compiler from the bogus one.
1002     # However, it has the same basename, so the bogon will be chosen
1003     # first if we set CC to just the basename; use the full file name.
1004     shift
1005     set dummy "$ac_dir/$ac_word" "$@"
1006     shift
1007     ac_cv_prog_CC="$@"
1008   fi
1009 fi
1010 fi
1011 fi
1012 CC="$ac_cv_prog_CC"
1013 if test -n "$CC"; then
1014   echo "$ac_t""$CC" 1>&6
1015 else
1016   echo "$ac_t""no" 1>&6
1017 fi
1018
1019     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1020   fi
1021
1022   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1023 echo "configure:1024: checking whether we are using GNU C" >&5
1024 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1025   echo $ac_n "(cached) $ac_c" 1>&6
1026 else
1027   cat > conftest.c <<EOF
1028 #ifdef __GNUC__
1029   yes;
1030 #endif
1031 EOF
1032 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1033   ac_cv_prog_gcc=yes
1034 else
1035   ac_cv_prog_gcc=no
1036 fi
1037 fi
1038
1039 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1040
1041   if test $ac_cv_prog_gcc = yes; then
1042     GCC=yes
1043           ac_test_CFLAGS="${CFLAGS+set}"
1044     ac_save_CFLAGS="$CFLAGS"
1045     CFLAGS=
1046     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1047 echo "configure:1048: checking whether ${CC-cc} accepts -g" >&5
1048 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1049   echo $ac_n "(cached) $ac_c" 1>&6
1050 else
1051   echo 'void f(){}' > conftest.c
1052 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1053   ac_cv_prog_cc_g=yes
1054 else
1055   ac_cv_prog_cc_g=no
1056 fi
1057 rm -f conftest*
1058
1059 fi
1060
1061 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1062     if test "$ac_test_CFLAGS" = set; then
1063       CFLAGS="$ac_save_CFLAGS"
1064     elif test $ac_cv_prog_cc_g = yes; then
1065       CFLAGS="-g -O2"
1066     else
1067       CFLAGS="-O2"
1068     fi
1069   else
1070     GCC=
1071     test "${CFLAGS+set}" = set || CFLAGS="-g"
1072   fi
1073   
1074
1075   # Likewise for AC_PROG_CXX.  We can't just call it directly because g++
1076   # will try to link in libstdc++.
1077   
1078
1079       
1080   # Use glibcpp_CXX so that we do not cause CXX to be cached with the
1081   # flags that come in CXX while configuring libstdc++.  They're different
1082   # from those used for all other target libraries.  If CXX is set in
1083   # the environment, respect that here.
1084   glibcpp_CXX=$CXX
1085   for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1086 do
1087 # Extract the first word of "$ac_prog", so it can be a program name with args.
1088 set dummy $ac_prog; ac_word=$2
1089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1090 echo "configure:1091: checking for $ac_word" >&5
1091 if eval "test \"`echo '$''{'ac_cv_prog_glibcpp_CXX'+set}'`\" = set"; then
1092   echo $ac_n "(cached) $ac_c" 1>&6
1093 else
1094   if test -n "$glibcpp_CXX"; then
1095   ac_cv_prog_glibcpp_CXX="$glibcpp_CXX" # Let the user override the test.
1096 else
1097   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1098   ac_dummy="$PATH"
1099   for ac_dir in $ac_dummy; do
1100     test -z "$ac_dir" && ac_dir=.
1101     if test -f $ac_dir/$ac_word; then
1102       ac_cv_prog_glibcpp_CXX="$ac_prog"
1103       break
1104     fi
1105   done
1106   IFS="$ac_save_ifs"
1107 fi
1108 fi
1109 glibcpp_CXX="$ac_cv_prog_glibcpp_CXX"
1110 if test -n "$glibcpp_CXX"; then
1111   echo "$ac_t""$glibcpp_CXX" 1>&6
1112 else
1113   echo "$ac_t""no" 1>&6
1114 fi
1115
1116 test -n "$glibcpp_CXX" && break
1117 done
1118 test -n "$glibcpp_CXX" || glibcpp_CXX="gcc"
1119
1120   
1121   CXX=$glibcpp_CXX
1122   test -z "$glibcpp_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1123
1124   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether we are using GNU C++" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1127   echo $ac_n "(cached) $ac_c" 1>&6
1128 else
1129   cat > conftest.C <<EOF
1130 #ifdef __GNUC__
1131   yes;
1132 #endif
1133 EOF
1134 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1135   ac_cv_prog_gxx=yes
1136 else
1137   ac_cv_prog_gxx=no
1138 fi
1139 fi
1140
1141 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1142
1143   if test $ac_cv_prog_gxx = yes; then
1144     GXX=yes
1145                 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1146     ac_save_CXXFLAGS="$CXXFLAGS"
1147     CXXFLAGS=
1148     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether ${CXX-g++} accepts -g" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1151   echo $ac_n "(cached) $ac_c" 1>&6
1152 else
1153   echo 'void f(){}' > conftest.cc
1154 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1155   ac_cv_prog_cxx_g=yes
1156 else
1157   ac_cv_prog_cxx_g=no
1158 fi
1159 rm -f conftest*
1160
1161 fi
1162
1163 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1164     if test "$ac_test_CXXFLAGS" = set; then
1165       CXXFLAGS="$ac_save_CXXFLAGS"
1166     elif test $ac_cv_prog_cxx_g = yes; then
1167       CXXFLAGS="-g -O2"
1168     else
1169       CXXFLAGS="-O2"
1170     fi
1171   else
1172     GXX=
1173     test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1174   fi
1175   
1176
1177   # For directory versioning (e.g., headers) and other variables.
1178   echo $ac_n "checking for GCC version number""... $ac_c" 1>&6
1179 echo "configure:1180: checking for GCC version number" >&5
1180   gcc_version=`$glibcpp_CXX -dumpversion`
1181   echo "$ac_t""$gcc_version" 1>&6
1182
1183   # For some reason, gettext needs this.
1184   
1185         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1186 echo "configure:1187: checking for strerror in -lcposix" >&5
1187 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1189   echo $ac_n "(cached) $ac_c" 1>&6
1190 else
1191   ac_save_LIBS="$LIBS"
1192 LIBS="-lcposix  $LIBS"
1193 cat > conftest.$ac_ext <<EOF
1194 #line 1195 "configure"
1195 #include "confdefs.h"
1196 /* Override any gcc2 internal prototype to avoid an error.  */
1197 /* We use char because int might match the return type of a gcc2
1198     builtin and then its argument prototype would still apply.  */
1199 char strerror();
1200
1201 int main() {
1202 strerror()
1203 ; return 0; }
1204 EOF
1205 if { (eval echo configure:1206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1206   rm -rf conftest*
1207   eval "ac_cv_lib_$ac_lib_var=yes"
1208 else
1209   echo "configure: failed program was:" >&5
1210   cat conftest.$ac_ext >&5
1211   rm -rf conftest*
1212   eval "ac_cv_lib_$ac_lib_var=no"
1213 fi
1214 rm -f conftest*
1215 LIBS="$ac_save_LIBS"
1216
1217 fi
1218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1219   echo "$ac_t""yes" 1>&6
1220   LIBS="$LIBS -lcposix"
1221 else
1222   echo "$ac_t""no" 1>&6
1223 fi
1224
1225   
1226
1227
1228   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1229 set dummy ${ac_tool_prefix}as; ac_word=$2
1230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1231 echo "configure:1232: checking for $ac_word" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1233   echo $ac_n "(cached) $ac_c" 1>&6
1234 else
1235   if test -n "$AS"; then
1236   ac_cv_prog_AS="$AS" # Let the user override the test.
1237 else
1238   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1239   ac_dummy="$PATH"
1240   for ac_dir in $ac_dummy; do
1241     test -z "$ac_dir" && ac_dir=.
1242     if test -f $ac_dir/$ac_word; then
1243       ac_cv_prog_AS="${ac_tool_prefix}as"
1244       break
1245     fi
1246   done
1247   IFS="$ac_save_ifs"
1248   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1249 fi
1250 fi
1251 AS="$ac_cv_prog_AS"
1252 if test -n "$AS"; then
1253   echo "$ac_t""$AS" 1>&6
1254 else
1255   echo "$ac_t""no" 1>&6
1256 fi
1257
1258
1259
1260   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1261 set dummy ${ac_tool_prefix}ar; ac_word=$2
1262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1263 echo "configure:1264: checking for $ac_word" >&5
1264 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1265   echo $ac_n "(cached) $ac_c" 1>&6
1266 else
1267   if test -n "$AR"; then
1268   ac_cv_prog_AR="$AR" # Let the user override the test.
1269 else
1270   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1271   ac_dummy="$PATH"
1272   for ac_dir in $ac_dummy; do
1273     test -z "$ac_dir" && ac_dir=.
1274     if test -f $ac_dir/$ac_word; then
1275       ac_cv_prog_AR="${ac_tool_prefix}ar"
1276       break
1277     fi
1278   done
1279   IFS="$ac_save_ifs"
1280   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1281 fi
1282 fi
1283 AR="$ac_cv_prog_AR"
1284 if test -n "$AR"; then
1285   echo "$ac_t""$AR" 1>&6
1286 else
1287   echo "$ac_t""no" 1>&6
1288 fi
1289
1290
1291
1292   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1293 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1295 echo "configure:1296: checking for $ac_word" >&5
1296 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1297   echo $ac_n "(cached) $ac_c" 1>&6
1298 else
1299   if test -n "$RANLIB"; then
1300   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1301 else
1302   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1303   ac_dummy="$PATH"
1304   for ac_dir in $ac_dummy; do
1305     test -z "$ac_dir" && ac_dir=.
1306     if test -f $ac_dir/$ac_word; then
1307       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1308       break
1309     fi
1310   done
1311   IFS="$ac_save_ifs"
1312 fi
1313 fi
1314 RANLIB="$ac_cv_prog_RANLIB"
1315 if test -n "$RANLIB"; then
1316   echo "$ac_t""$RANLIB" 1>&6
1317 else
1318   echo "$ac_t""no" 1>&6
1319 fi
1320
1321
1322 if test -z "$ac_cv_prog_RANLIB"; then
1323 if test -n "$ac_tool_prefix"; then
1324   # Extract the first word of "ranlib", so it can be a program name with args.
1325 set dummy ranlib; ac_word=$2
1326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1327 echo "configure:1328: checking for $ac_word" >&5
1328 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1329   echo $ac_n "(cached) $ac_c" 1>&6
1330 else
1331   if test -n "$RANLIB"; then
1332   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1333 else
1334   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1335   ac_dummy="$PATH"
1336   for ac_dir in $ac_dummy; do
1337     test -z "$ac_dir" && ac_dir=.
1338     if test -f $ac_dir/$ac_word; then
1339       ac_cv_prog_RANLIB="ranlib"
1340       break
1341     fi
1342   done
1343   IFS="$ac_save_ifs"
1344   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib-not-found-in-path-error"
1345 fi
1346 fi
1347 RANLIB="$ac_cv_prog_RANLIB"
1348 if test -n "$RANLIB"; then
1349   echo "$ac_t""$RANLIB" 1>&6
1350 else
1351   echo "$ac_t""no" 1>&6
1352 fi
1353
1354 else
1355   RANLIB="ranlib-not-found-in-path-error"
1356 fi
1357 fi
1358
1359   # Find a good install program.  We prefer a C program (faster),
1360 # so one script is as good as another.  But avoid the broken or
1361 # incompatible versions:
1362 # SysV /etc/install, /usr/sbin/install
1363 # SunOS /usr/etc/install
1364 # IRIX /sbin/install
1365 # AIX /bin/install
1366 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1367 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1368 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1369 # ./install, which can be erroneously created by make from ./install.sh.
1370 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1371 echo "configure:1372: checking for a BSD compatible install" >&5
1372 if test -z "$INSTALL"; then
1373 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1374   echo $ac_n "(cached) $ac_c" 1>&6
1375 else
1376     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1377   for ac_dir in $PATH; do
1378     # Account for people who put trailing slashes in PATH elements.
1379     case "$ac_dir/" in
1380     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1381     *)
1382       # OSF1 and SCO ODT 3.0 have their own names for install.
1383       # Don't use installbsd from OSF since it installs stuff as root
1384       # by default.
1385       for ac_prog in ginstall scoinst install; do
1386         if test -f $ac_dir/$ac_prog; then
1387           if test $ac_prog = install &&
1388             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1389             # AIX install.  It has an incompatible calling convention.
1390             :
1391           else
1392             ac_cv_path_install="$ac_dir/$ac_prog -c"
1393             break 2
1394           fi
1395         fi
1396       done
1397       ;;
1398     esac
1399   done
1400   IFS="$ac_save_IFS"
1401
1402 fi
1403   if test "${ac_cv_path_install+set}" = set; then
1404     INSTALL="$ac_cv_path_install"
1405   else
1406     # As a last resort, use the slow shell script.  We don't cache a
1407     # path for INSTALL within a source directory, because that will
1408     # break other packages using the cache if that directory is
1409     # removed, or if the path is relative.
1410     INSTALL="$ac_install_sh"
1411   fi
1412 fi
1413 echo "$ac_t""$INSTALL" 1>&6
1414
1415 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1416 # It thinks the first close brace ends the variable substitution.
1417 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1418
1419 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1420
1421 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1422
1423
1424   echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1425 echo "configure:1426: checking whether to enable maintainer-specific portions of Makefiles" >&5
1426     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1427 if test "${enable_maintainer_mode+set}" = set; then
1428   enableval="$enable_maintainer_mode"
1429   USE_MAINTAINER_MODE=$enableval
1430 else
1431   USE_MAINTAINER_MODE=no
1432 fi
1433
1434   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1435   
1436
1437 if test $USE_MAINTAINER_MODE = yes; then
1438   MAINTAINER_MODE_TRUE=
1439   MAINTAINER_MODE_FALSE='#'
1440 else
1441   MAINTAINER_MODE_TRUE='#'
1442   MAINTAINER_MODE_FALSE=
1443 fi
1444   MAINT=$MAINTAINER_MODE_TRUE
1445   
1446
1447
1448   # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
1449   # at least currently, we never actually build a program, so we never
1450   # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
1451   # fails, because we are probably configuring with a cross compiler
1452   # which can't create executables.  So we include AC_EXEEXT to keep
1453   # automake happy, but we don't execute it, since we don't care about
1454   # the result.
1455   if false; then
1456     # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1457     # to nothing, so nothing would remain between `then' and `fi' if it
1458     # were not for the `:' below.
1459     :
1460     
1461
1462 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1463 echo "configure:1464: checking for executable suffix" >&5
1464 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1465   echo $ac_n "(cached) $ac_c" 1>&6
1466 else
1467   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1468   ac_cv_exeext=.exe
1469 else
1470   rm -f conftest*
1471   echo 'int main () { return 0; }' > conftest.$ac_ext
1472   ac_cv_exeext=
1473   if { (eval echo configure:1474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1474     for file in conftest.*; do
1475       case $file in
1476       *.$ac_ext | *.c | *.o | *.obj) ;;
1477       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1478       esac
1479     done
1480   else
1481     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1482   fi
1483   rm -f conftest*
1484   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1485 fi
1486 fi
1487
1488 EXEEXT=""
1489 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1490 echo "$ac_t""${ac_cv_exeext}" 1>&6
1491 ac_exeext=$EXEEXT
1492
1493   fi
1494
1495   case ${glibcpp_basedir} in
1496     /* | A-Za-z:\\/*) libgcj_flagbasedir=${glibcpp_basedir} ;;
1497     *) glibcpp_flagbasedir='$(top_builddir)/'${glibcpp_basedir} ;;
1498   esac
1499
1500   # Set up safe default values for all subsequent AM_CONDITIONAL tests.
1501   need_libmath=no
1502   enable_wchar_t=no
1503   #enable_debug=no
1504   #need_libio=no
1505   #need_wlibio=no
1506   #glibcpp_pch_comp=no
1507   #enable_cheaders=c
1508   #c_compatibility=no
1509   enable_abi_check=no
1510   #enable_symvers=no
1511
1512   # Find platform-specific directories containing configuration info.  In
1513   # addition to possibly modifying the same flags, it also sets up symlinks.
1514   
1515   . ${glibcpp_basedir}/configure.host
1516   echo "$ac_t""CPU config directory is $cpu_include_dir" 1>&6
1517   echo "$ac_t""OS config directory is $os_include_dir" 1>&6
1518
1519
1520
1521 am__api_version="1.4"
1522 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1523 echo "configure:1524: checking whether build environment is sane" >&5
1524 # Just in case
1525 sleep 1
1526 echo timestamp > conftestfile
1527 # Do `set' in a subshell so we don't clobber the current shell's
1528 # arguments.  Must try -L first in case configure is actually a
1529 # symlink; some systems play weird games with the mod time of symlinks
1530 # (eg FreeBSD returns the mod time of the symlink's containing
1531 # directory).
1532 if (
1533    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1534    if test "$*" = "X"; then
1535       # -L didn't work.
1536       set X `ls -t $srcdir/configure conftestfile`
1537    fi
1538    if test "$*" != "X $srcdir/configure conftestfile" \
1539       && test "$*" != "X conftestfile $srcdir/configure"; then
1540
1541       # If neither matched, then we have a broken ls.  This can happen
1542       # if, for instance, CONFIG_SHELL is bash and it inherits a
1543       # broken ls alias from the environment.  This has actually
1544       # happened.  Such a system could not be considered "sane".
1545       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
1546 alias in your environment" 1>&2; exit 1; }
1547    fi
1548
1549    test "$2" = conftestfile
1550    )
1551 then
1552    # Ok.
1553    :
1554 else
1555    { echo "configure: error: newly created file is older than distributed files!
1556 Check your system clock" 1>&2; exit 1; }
1557 fi
1558 rm -f conftest*
1559 echo "$ac_t""yes" 1>&6
1560 if test "$program_transform_name" = s,x,x,; then
1561   program_transform_name=
1562 else
1563   # Double any \ or $.  echo might interpret backslashes.
1564   cat <<\EOF_SED > conftestsed
1565 s,\\,\\\\,g; s,\$,$$,g
1566 EOF_SED
1567   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1568   rm -f conftestsed
1569 fi
1570 test "$program_prefix" != NONE &&
1571   program_transform_name="s,^,${program_prefix},; $program_transform_name"
1572 # Use a double $ so make ignores it.
1573 test "$program_suffix" != NONE &&
1574   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1575
1576 # sed with no file args requires a program.
1577 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1578
1579 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1580 echo "configure:1581: checking whether ${MAKE-make} sets \${MAKE}" >&5
1581 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1582 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1583   echo $ac_n "(cached) $ac_c" 1>&6
1584 else
1585   cat > conftestmake <<\EOF
1586 all:
1587         @echo 'ac_maketemp="${MAKE}"'
1588 EOF
1589 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1590 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1591 if test -n "$ac_maketemp"; then
1592   eval ac_cv_prog_make_${ac_make}_set=yes
1593 else
1594   eval ac_cv_prog_make_${ac_make}_set=no
1595 fi
1596 rm -f conftestmake
1597 fi
1598 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1599   echo "$ac_t""yes" 1>&6
1600   SET_MAKE=
1601 else
1602   echo "$ac_t""no" 1>&6
1603   SET_MAKE="MAKE=${MAKE-make}"
1604 fi
1605
1606
1607 PACKAGE=$PACKAGE
1608
1609 VERSION=$gcc_version
1610
1611 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1612   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1613 fi
1614 cat >> confdefs.h <<EOF
1615 #define PACKAGE "$PACKAGE"
1616 EOF
1617
1618 cat >> confdefs.h <<EOF
1619 #define VERSION "$VERSION"
1620 EOF
1621
1622
1623
1624 missing_dir=`cd $ac_aux_dir && pwd`
1625 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1626 echo "configure:1627: checking for working aclocal-${am__api_version}" >&5
1627 # Run test in a subshell; some versions of sh will print an error if
1628 # an executable is not found, even if stderr is redirected.
1629 # Redirect stdin to placate older versions of autoconf.  Sigh.
1630 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1631    ACLOCAL=aclocal-${am__api_version}
1632    echo "$ac_t""found" 1>&6
1633 else
1634    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1635    echo "$ac_t""missing" 1>&6
1636 fi
1637
1638 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1639 echo "configure:1640: checking for working autoconf" >&5
1640 # Run test in a subshell; some versions of sh will print an error if
1641 # an executable is not found, even if stderr is redirected.
1642 # Redirect stdin to placate older versions of autoconf.  Sigh.
1643 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1644    AUTOCONF=autoconf
1645    echo "$ac_t""found" 1>&6
1646 else
1647    AUTOCONF="$missing_dir/missing autoconf"
1648    echo "$ac_t""missing" 1>&6
1649 fi
1650
1651 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1652 echo "configure:1653: checking for working automake-${am__api_version}" >&5
1653 # Run test in a subshell; some versions of sh will print an error if
1654 # an executable is not found, even if stderr is redirected.
1655 # Redirect stdin to placate older versions of autoconf.  Sigh.
1656 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1657    AUTOMAKE=automake-${am__api_version}
1658    echo "$ac_t""found" 1>&6
1659 else
1660    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1661    echo "$ac_t""missing" 1>&6
1662 fi
1663
1664 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1665 echo "configure:1666: checking for working autoheader" >&5
1666 # Run test in a subshell; some versions of sh will print an error if
1667 # an executable is not found, even if stderr is redirected.
1668 # Redirect stdin to placate older versions of autoconf.  Sigh.
1669 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1670    AUTOHEADER=autoheader
1671    echo "$ac_t""found" 1>&6
1672 else
1673    AUTOHEADER="$missing_dir/missing autoheader"
1674    echo "$ac_t""missing" 1>&6
1675 fi
1676
1677 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1678 echo "configure:1679: checking for working makeinfo" >&5
1679 # Run test in a subshell; some versions of sh will print an error if
1680 # an executable is not found, even if stderr is redirected.
1681 # Redirect stdin to placate older versions of autoconf.  Sigh.
1682 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1683    MAKEINFO=makeinfo
1684    echo "$ac_t""found" 1>&6
1685 else
1686    MAKEINFO="$missing_dir/missing makeinfo"
1687    echo "$ac_t""missing" 1>&6
1688 fi
1689
1690
1691
1692
1693
1694
1695
1696 # Check whether --enable-shared or --disable-shared was given.
1697 if test "${enable_shared+set}" = set; then
1698   enableval="$enable_shared"
1699   p=${PACKAGE-default}
1700 case $enableval in
1701 yes) enable_shared=yes ;;
1702 no) enable_shared=no ;;
1703 *)
1704   enable_shared=no
1705   # Look at the argument we got.  We use all the common list separators.
1706   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1707   for pkg in $enableval; do
1708     if test "X$pkg" = "X$p"; then
1709       enable_shared=yes
1710     fi
1711   done
1712   IFS="$ac_save_ifs"
1713   ;;
1714 esac
1715 else
1716   enable_shared=yes
1717 fi
1718
1719 # Check whether --enable-static or --disable-static was given.
1720 if test "${enable_static+set}" = set; then
1721   enableval="$enable_static"
1722   p=${PACKAGE-default}
1723 case $enableval in
1724 yes) enable_static=yes ;;
1725 no) enable_static=no ;;
1726 *)
1727   enable_static=no
1728   # Look at the argument we got.  We use all the common list separators.
1729   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1730   for pkg in $enableval; do
1731     if test "X$pkg" = "X$p"; then
1732       enable_static=yes
1733     fi
1734   done
1735   IFS="$ac_save_ifs"
1736   ;;
1737 esac
1738 else
1739   enable_static=yes
1740 fi
1741
1742 # Check whether --enable-fast-install or --disable-fast-install was given.
1743 if test "${enable_fast_install+set}" = set; then
1744   enableval="$enable_fast_install"
1745   p=${PACKAGE-default}
1746 case $enableval in
1747 yes) enable_fast_install=yes ;;
1748 no) enable_fast_install=no ;;
1749 *)
1750   enable_fast_install=no
1751   # Look at the argument we got.  We use all the common list separators.
1752   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1753   for pkg in $enableval; do
1754     if test "X$pkg" = "X$p"; then
1755       enable_fast_install=yes
1756     fi
1757   done
1758   IFS="$ac_save_ifs"
1759   ;;
1760 esac
1761 else
1762   enable_fast_install=yes
1763 fi
1764
1765 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1766 if test "${with_gnu_ld+set}" = set; then
1767   withval="$with_gnu_ld"
1768   test "$withval" = no || with_gnu_ld=yes
1769 else
1770   with_gnu_ld=no
1771 fi
1772
1773 ac_prog=ld
1774 if test "$GCC" = yes; then
1775   # Check if gcc -print-prog-name=ld gives a path.
1776   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1777 echo "configure:1778: checking for ld used by GCC" >&5
1778   case $host in
1779   *-*-mingw*)
1780     # gcc leaves a trailing carriage return which upsets mingw
1781     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1782   *)
1783     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1784   esac
1785   case $ac_prog in
1786     # Accept absolute paths.
1787     [\\/]* | [A-Za-z]:[\\/]*)
1788       re_direlt='/[^/][^/]*/\.\./'
1789       # Canonicalize the path of ld
1790       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1791       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1792         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1793       done
1794       test -z "$LD" && LD="$ac_prog"
1795       ;;
1796   "")
1797     # If it fails, then pretend we aren't using GCC.
1798     ac_prog=ld
1799     ;;
1800   *)
1801     # If it is relative, then search for the first ld in PATH.
1802     with_gnu_ld=unknown
1803     ;;
1804   esac
1805 elif test "$with_gnu_ld" = yes; then
1806   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1807 echo "configure:1808: checking for GNU ld" >&5
1808 else
1809   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1810 echo "configure:1811: checking for non-GNU ld" >&5
1811 fi
1812 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1813   echo $ac_n "(cached) $ac_c" 1>&6
1814 else
1815   if test -z "$LD"; then
1816   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1817   for ac_dir in $PATH; do
1818     test -z "$ac_dir" && ac_dir=.
1819     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1820       lt_cv_path_LD="$ac_dir/$ac_prog"
1821       # Check to see if the program is GNU ld.  I'd rather use --version,
1822       # but apparently some GNU ld's only accept -v.
1823       # Break only if it was the GNU/non-GNU ld that we prefer.
1824       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1825         test "$with_gnu_ld" != no && break
1826       else
1827         test "$with_gnu_ld" != yes && break
1828       fi
1829     fi
1830   done
1831   IFS="$ac_save_ifs"
1832 else
1833   lt_cv_path_LD="$LD" # Let the user override the test with a path.
1834 fi
1835 fi
1836
1837 LD="$lt_cv_path_LD"
1838 if test -n "$LD"; then
1839   echo "$ac_t""$LD" 1>&6
1840 else
1841   echo "$ac_t""no" 1>&6
1842 fi
1843 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1844 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1845 echo "configure:1846: checking if the linker ($LD) is GNU ld" >&5
1846 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1847   echo $ac_n "(cached) $ac_c" 1>&6
1848 else
1849   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1850 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1851   lt_cv_prog_gnu_ld=yes
1852 else
1853   lt_cv_prog_gnu_ld=no
1854 fi
1855 fi
1856
1857 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1858 with_gnu_ld=$lt_cv_prog_gnu_ld
1859
1860
1861 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1862 echo "configure:1863: checking for $LD option to reload object files" >&5
1863 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1864   echo $ac_n "(cached) $ac_c" 1>&6
1865 else
1866   lt_cv_ld_reload_flag='-r'
1867 fi
1868
1869 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1870 reload_flag=$lt_cv_ld_reload_flag
1871 test -n "$reload_flag" && reload_flag=" $reload_flag"
1872
1873 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1874 echo "configure:1875: checking for BSD-compatible nm" >&5
1875 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1876   echo $ac_n "(cached) $ac_c" 1>&6
1877 else
1878   if test -n "$NM"; then
1879   # Let the user override the test.
1880   lt_cv_path_NM="$NM"
1881 else
1882   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1883   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1884     test -z "$ac_dir" && ac_dir=.
1885     tmp_nm=$ac_dir/${ac_tool_prefix}nm
1886     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1887       # Check to see if the nm accepts a BSD-compat flag.
1888       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1889       #   nm: unknown option "B" ignored
1890       # Tru64's nm complains that /dev/null is an invalid object file
1891       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1892         lt_cv_path_NM="$tmp_nm -B"
1893         break
1894       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1895         lt_cv_path_NM="$tmp_nm -p"
1896         break
1897       else
1898         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1899         continue # so that we can try to find one that supports BSD flags
1900       fi
1901     fi
1902   done
1903   IFS="$ac_save_ifs"
1904   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1905 fi
1906 fi
1907
1908 NM="$lt_cv_path_NM"
1909 echo "$ac_t""$NM" 1>&6
1910
1911 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1912 echo "configure:1913: checking how to recognise dependant libraries" >&5
1913 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1914   echo $ac_n "(cached) $ac_c" 1>&6
1915 else
1916   lt_cv_file_magic_cmd='$MAGIC_CMD'
1917 lt_cv_file_magic_test_file=
1918 lt_cv_deplibs_check_method='unknown'
1919 # Need to set the preceding variable on all platforms that support
1920 # interlibrary dependencies.
1921 # 'none' -- dependencies not supported.
1922 # `unknown' -- same as none, but documents that we really don't know.
1923 # 'pass_all' -- all dependencies passed with no checks.
1924 # 'test_compile' -- check by making test program.
1925 # 'file_magic [regex]' -- check by looking for files in library path
1926 # which responds to the $file_magic_cmd with a given egrep regex.
1927 # If you have `file' or equivalent on your system and you're not sure
1928 # whether `pass_all' will *always* work, you probably want this one.
1929
1930 case $host_os in
1931 aix*)
1932   lt_cv_deplibs_check_method=pass_all
1933   ;;
1934
1935 beos*)
1936   lt_cv_deplibs_check_method=pass_all
1937   ;;
1938
1939 bsdi4*)
1940   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1941   lt_cv_file_magic_cmd='/usr/bin/file -L'
1942   lt_cv_file_magic_test_file=/shlib/libc.so
1943   ;;
1944
1945 cygwin* | mingw* |pw32*)
1946   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1947   lt_cv_file_magic_cmd='$OBJDUMP -f'
1948   ;;
1949
1950 darwin* | rhapsody*)
1951   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1952   lt_cv_file_magic_cmd='/usr/bin/file -L'
1953   case "$host_os" in
1954   rhapsody* | darwin1.012)
1955     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1956     ;;
1957   *) # Darwin 1.3 on
1958     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1959     ;;
1960   esac
1961   ;;
1962
1963 freebsd* )
1964   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1965     case $host_cpu in
1966     i*86 )
1967       # Not sure whether the presence of OpenBSD here was a mistake.
1968       # Let's accept both of them until this is cleared up.
1969       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1970       lt_cv_file_magic_cmd=/usr/bin/file
1971       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1972       ;;
1973     esac
1974   else
1975     lt_cv_deplibs_check_method=pass_all
1976   fi
1977   ;;
1978
1979 gnu*)
1980   lt_cv_deplibs_check_method=pass_all
1981   ;;
1982
1983 hpux10.20*|hpux11*)
1984   case $host_cpu in
1985   hppa*)
1986     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1987     lt_cv_file_magic_cmd=/usr/bin/file
1988     lt_cv_file_magic_test_file=/usr/lib/libc.sl
1989     ;;
1990   ia64*)
1991     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1992     lt_cv_file_magic_cmd=/usr/bin/file
1993     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1994     ;;
1995   esac
1996   ;;
1997
1998 irix5* | irix6*)
1999   case $host_os in
2000   irix5*)
2001     # this will be overridden with pass_all, but let us keep it just in case
2002     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2003     ;;
2004   *)
2005     case $LD in
2006     *-32|*"-32 ") libmagic=32-bit;;
2007     *-n32|*"-n32 ") libmagic=N32;;
2008     *-64|*"-64 ") libmagic=64-bit;;
2009     *) libmagic=never-match;;
2010     esac
2011     # this will be overridden with pass_all, but let us keep it just in case
2012     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2013     ;;
2014   esac
2015   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2016   lt_cv_deplibs_check_method=pass_all
2017   ;;
2018
2019 # This must be Linux ELF.
2020 linux-gnu*)
2021   case $host_cpu in
2022   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2023     lt_cv_deplibs_check_method=pass_all ;;
2024   *)
2025     # glibc up to 2.1.1 does not perform some relocations on ARM
2026     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2027   esac
2028   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2029   ;;
2030
2031 netbsd*)
2032   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2033     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2034   else
2035     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2036   fi
2037   ;;
2038
2039 newsos6)
2040   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2041   lt_cv_file_magic_cmd=/usr/bin/file
2042   lt_cv_file_magic_test_file=/usr/lib/libnls.so
2043   ;;
2044
2045 osf3* | osf4* | osf5*)
2046   # this will be overridden with pass_all, but let us keep it just in case
2047   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2048   lt_cv_file_magic_test_file=/shlib/libc.so
2049   lt_cv_deplibs_check_method=pass_all
2050   ;;
2051
2052 sco3.2v5*)
2053   lt_cv_deplibs_check_method=pass_all
2054   ;;
2055
2056 solaris*)
2057   lt_cv_deplibs_check_method=pass_all
2058   lt_cv_file_magic_test_file=/lib/libc.so
2059   ;;
2060
2061 sysv5uw[78]* | sysv4*uw2*)
2062   lt_cv_deplibs_check_method=pass_all
2063   ;;
2064
2065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2066   case $host_vendor in
2067   ncr)
2068     lt_cv_deplibs_check_method=pass_all
2069     ;;
2070   motorola)
2071     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]'
2072     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2073     ;;
2074   esac
2075   ;;
2076 esac
2077
2078 fi
2079
2080 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2081 file_magic_cmd=$lt_cv_file_magic_cmd
2082 deplibs_check_method=$lt_cv_deplibs_check_method
2083
2084 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2085 echo "configure:2086: checking for object suffix" >&5
2086 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2087   echo $ac_n "(cached) $ac_c" 1>&6
2088 else
2089   rm -f conftest*
2090 echo 'int i = 1;' > conftest.$ac_ext
2091 if { (eval echo configure:2092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2092   for ac_file in conftest.*; do
2093     case $ac_file in
2094     *.c) ;;
2095     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2096     esac
2097   done
2098 else
2099   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2100 fi
2101 rm -f conftest*
2102 fi
2103
2104 echo "$ac_t""$ac_cv_objext" 1>&6
2105 OBJEXT=$ac_cv_objext
2106 ac_objext=$ac_cv_objext
2107
2108 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2109
2110 # Only perform the check for file, if the check method requires it
2111 case $deplibs_check_method in
2112 file_magic*)
2113   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2114     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2115 echo "configure:2116: checking for ${ac_tool_prefix}file" >&5
2116 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2117   echo $ac_n "(cached) $ac_c" 1>&6
2118 else
2119   case $MAGIC_CMD in
2120   /*)
2121   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2122   ;;
2123   ?:/*)
2124   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2125   ;;
2126   *)
2127   ac_save_MAGIC_CMD="$MAGIC_CMD"
2128   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2129   ac_dummy="/usr/bin:$PATH"
2130   for ac_dir in $ac_dummy; do
2131     test -z "$ac_dir" && ac_dir=.
2132     if test -f $ac_dir/${ac_tool_prefix}file; then
2133       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2134       if test -n "$file_magic_test_file"; then
2135         case $deplibs_check_method in
2136         "file_magic "*)
2137           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2138           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2139           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2140             egrep "$file_magic_regex" > /dev/null; then
2141             :
2142           else
2143             cat <<EOF 1>&2
2144
2145 *** Warning: the command libtool uses to detect shared libraries,
2146 *** $file_magic_cmd, produces output that libtool cannot recognize.
2147 *** The result is that libtool may fail to recognize shared libraries
2148 *** as such.  This will affect the creation of libtool libraries that
2149 *** depend on shared libraries, but programs linked with such libtool
2150 *** libraries will work regardless of this problem.  Nevertheless, you
2151 *** may want to report the problem to your system manager and/or to
2152 *** bug-libtool@gnu.org
2153
2154 EOF
2155           fi ;;
2156         esac
2157       fi
2158       break
2159     fi
2160   done
2161   IFS="$ac_save_ifs"
2162   MAGIC_CMD="$ac_save_MAGIC_CMD"
2163   ;;
2164 esac
2165 fi
2166
2167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2168 if test -n "$MAGIC_CMD"; then
2169   echo "$ac_t""$MAGIC_CMD" 1>&6
2170 else
2171   echo "$ac_t""no" 1>&6
2172 fi
2173
2174 if test -z "$lt_cv_path_MAGIC_CMD"; then
2175   if test -n "$ac_tool_prefix"; then
2176     echo $ac_n "checking for file""... $ac_c" 1>&6
2177 echo "configure:2178: checking for file" >&5
2178 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2179   echo $ac_n "(cached) $ac_c" 1>&6
2180 else
2181   case $MAGIC_CMD in
2182   /*)
2183   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2184   ;;
2185   ?:/*)
2186   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2187   ;;
2188   *)
2189   ac_save_MAGIC_CMD="$MAGIC_CMD"
2190   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2191   ac_dummy="/usr/bin:$PATH"
2192   for ac_dir in $ac_dummy; do
2193     test -z "$ac_dir" && ac_dir=.
2194     if test -f $ac_dir/file; then
2195       lt_cv_path_MAGIC_CMD="$ac_dir/file"
2196       if test -n "$file_magic_test_file"; then
2197         case $deplibs_check_method in
2198         "file_magic "*)
2199           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2200           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2201           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2202             egrep "$file_magic_regex" > /dev/null; then
2203             :
2204           else
2205             cat <<EOF 1>&2
2206
2207 *** Warning: the command libtool uses to detect shared libraries,
2208 *** $file_magic_cmd, produces output that libtool cannot recognize.
2209 *** The result is that libtool may fail to recognize shared libraries
2210 *** as such.  This will affect the creation of libtool libraries that
2211 *** depend on shared libraries, but programs linked with such libtool
2212 *** libraries will work regardless of this problem.  Nevertheless, you
2213 *** may want to report the problem to your system manager and/or to
2214 *** bug-libtool@gnu.org
2215
2216 EOF
2217           fi ;;
2218         esac
2219       fi
2220       break
2221     fi
2222   done
2223   IFS="$ac_save_ifs"
2224   MAGIC_CMD="$ac_save_MAGIC_CMD"
2225   ;;
2226 esac
2227 fi
2228
2229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2230 if test -n "$MAGIC_CMD"; then
2231   echo "$ac_t""$MAGIC_CMD" 1>&6
2232 else
2233   echo "$ac_t""no" 1>&6
2234 fi
2235
2236   else
2237     MAGIC_CMD=:
2238   fi
2239 fi
2240
2241   fi
2242   ;;
2243 esac
2244
2245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2246 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2247 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2248 echo "configure:2249: checking for $ac_word" >&5
2249 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2250   echo $ac_n "(cached) $ac_c" 1>&6
2251 else
2252   if test -n "$RANLIB"; then
2253   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2254 else
2255   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2256   ac_dummy="$PATH"
2257   for ac_dir in $ac_dummy; do
2258     test -z "$ac_dir" && ac_dir=.
2259     if test -f $ac_dir/$ac_word; then
2260       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2261       break
2262     fi
2263   done
2264   IFS="$ac_save_ifs"
2265 fi
2266 fi
2267 RANLIB="$ac_cv_prog_RANLIB"
2268 if test -n "$RANLIB"; then
2269   echo "$ac_t""$RANLIB" 1>&6
2270 else
2271   echo "$ac_t""no" 1>&6
2272 fi
2273
2274
2275 if test -z "$ac_cv_prog_RANLIB"; then
2276 if test -n "$ac_tool_prefix"; then
2277   # Extract the first word of "ranlib", so it can be a program name with args.
2278 set dummy ranlib; ac_word=$2
2279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2280 echo "configure:2281: checking for $ac_word" >&5
2281 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2282   echo $ac_n "(cached) $ac_c" 1>&6
2283 else
2284   if test -n "$RANLIB"; then
2285   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2286 else
2287   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2288   ac_dummy="$PATH"
2289   for ac_dir in $ac_dummy; do
2290     test -z "$ac_dir" && ac_dir=.
2291     if test -f $ac_dir/$ac_word; then
2292       ac_cv_prog_RANLIB="ranlib"
2293       break
2294     fi
2295   done
2296   IFS="$ac_save_ifs"
2297   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2298 fi
2299 fi
2300 RANLIB="$ac_cv_prog_RANLIB"
2301 if test -n "$RANLIB"; then
2302   echo "$ac_t""$RANLIB" 1>&6
2303 else
2304   echo "$ac_t""no" 1>&6
2305 fi
2306
2307 else
2308   RANLIB=":"
2309 fi
2310 fi
2311
2312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2313 set dummy ${ac_tool_prefix}strip; ac_word=$2
2314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2315 echo "configure:2316: checking for $ac_word" >&5
2316 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2317   echo $ac_n "(cached) $ac_c" 1>&6
2318 else
2319   if test -n "$STRIP"; then
2320   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2321 else
2322   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2323   ac_dummy="$PATH"
2324   for ac_dir in $ac_dummy; do
2325     test -z "$ac_dir" && ac_dir=.
2326     if test -f $ac_dir/$ac_word; then
2327       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2328       break
2329     fi
2330   done
2331   IFS="$ac_save_ifs"
2332 fi
2333 fi
2334 STRIP="$ac_cv_prog_STRIP"
2335 if test -n "$STRIP"; then
2336   echo "$ac_t""$STRIP" 1>&6
2337 else
2338   echo "$ac_t""no" 1>&6
2339 fi
2340
2341
2342 if test -z "$ac_cv_prog_STRIP"; then
2343 if test -n "$ac_tool_prefix"; then
2344   # Extract the first word of "strip", so it can be a program name with args.
2345 set dummy strip; ac_word=$2
2346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2347 echo "configure:2348: checking for $ac_word" >&5
2348 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2349   echo $ac_n "(cached) $ac_c" 1>&6
2350 else
2351   if test -n "$STRIP"; then
2352   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2353 else
2354   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2355   ac_dummy="$PATH"
2356   for ac_dir in $ac_dummy; do
2357     test -z "$ac_dir" && ac_dir=.
2358     if test -f $ac_dir/$ac_word; then
2359       ac_cv_prog_STRIP="strip"
2360       break
2361     fi
2362   done
2363   IFS="$ac_save_ifs"
2364   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2365 fi
2366 fi
2367 STRIP="$ac_cv_prog_STRIP"
2368 if test -n "$STRIP"; then
2369   echo "$ac_t""$STRIP" 1>&6
2370 else
2371   echo "$ac_t""no" 1>&6
2372 fi
2373
2374 else
2375   STRIP=":"
2376 fi
2377 fi
2378
2379
2380 # Check for any special flags to pass to ltconfig.
2381 libtool_flags="--cache-file=$cache_file"
2382 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2383 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2384 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2385 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2386 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2387 libtool_flags="$libtool_flags --enable-dlopen"
2388
2389 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2390 if test "${enable_libtool_lock+set}" = set; then
2391   enableval="$enable_libtool_lock"
2392   :
2393 fi
2394
2395 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2396 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2397
2398 # Check whether --with-pic or --without-pic was given.
2399 if test "${with_pic+set}" = set; then
2400   withval="$with_pic"
2401   pic_mode="$withval"
2402 else
2403   pic_mode=default
2404 fi
2405
2406 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2407 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2408
2409 # Some flags need to be propagated to the compiler or linker for good
2410 # libtool support.
2411 case $host in
2412 *-*-irix6*)
2413   # Find out which ABI we are using.
2414   echo '#line 2415 "configure"' > conftest.$ac_ext
2415   if { (eval echo configure:2416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2416    if test "$lt_cv_prog_gnu_ld" = yes; then
2417     case `/usr/bin/file conftest.$ac_objext` in
2418     *32-bit*)
2419       LD="${LD-ld} -melf32bsmip"
2420       ;;
2421     *N32*)
2422       LD="${LD-ld} -melf32bmipn32"
2423       ;;
2424     *64-bit*)
2425       LD="${LD-ld} -melf64bmip"
2426       ;;
2427     esac
2428    else
2429     case `/usr/bin/file conftest.$ac_objext` in
2430     *32-bit*)
2431       LD="${LD-ld} -32"
2432       ;;
2433     *N32*)
2434       LD="${LD-ld} -n32"
2435       ;;
2436     *64-bit*)
2437       LD="${LD-ld} -64"
2438       ;;
2439     esac
2440    fi
2441   fi
2442   rm -rf conftest*
2443   ;;
2444
2445 ia64-*-hpux*)
2446   # Find out which ABI we are using.
2447   echo 'int i;' > conftest.$ac_ext
2448   if { (eval echo configure:2449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2449     case "`/usr/bin/file conftest.o`" in
2450     *ELF-32*)
2451       HPUX_IA64_MODE="32"
2452       ;;
2453     *ELF-64*)
2454       HPUX_IA64_MODE="64"
2455       ;;
2456     esac
2457   fi
2458   rm -rf conftest*
2459   ;;
2460
2461 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2462   # Find out which ABI we are using.
2463   echo 'int i;' > conftest.$ac_ext
2464   if { (eval echo configure:2465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2465     case "`/usr/bin/file conftest.o`" in
2466     *32-bit*)
2467       case $host in
2468         x86_64-*linux*)
2469           LD="${LD-ld} -m elf_i386"
2470           ;;
2471         ppc64-*linux*)
2472           LD="${LD-ld} -m elf32ppclinux"
2473           ;;
2474         s390x-*linux*)
2475           LD="${LD-ld} -m elf_s390"
2476           ;;
2477         sparc64-*linux*)
2478           LD="${LD-ld} -m elf32_sparc"
2479           ;;
2480       esac
2481       ;;
2482     *64-bit*)
2483       case $host in
2484         x86_64-*linux*)
2485           LD="${LD-ld} -m elf_x86_64"
2486           ;;
2487         ppc*-*linux*|powerpc*-*linux*)
2488           LD="${LD-ld} -m elf64ppc"
2489           ;;
2490         s390*-*linux*)
2491           LD="${LD-ld} -m elf64_s390"
2492           ;;
2493         sparc*-*linux*)
2494           LD="${LD-ld} -m elf64_sparc"
2495           ;;
2496       esac
2497       ;;
2498     esac
2499   fi
2500   rm -rf conftest*
2501   ;;
2502
2503 *-*-sco3.2v5*)
2504   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2505   SAVE_CFLAGS="$CFLAGS"
2506   CFLAGS="$CFLAGS -belf"
2507   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2508 echo "configure:2509: checking whether the C compiler needs -belf" >&5
2509 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2510   echo $ac_n "(cached) $ac_c" 1>&6
2511 else
2512   
2513      ac_ext=c
2514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2518 cross_compiling=$ac_cv_prog_cc_cross
2519
2520      cat > conftest.$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2523
2524 int main() {
2525
2526 ; return 0; }
2527 EOF
2528 if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2529   rm -rf conftest*
2530   lt_cv_cc_needs_belf=yes
2531 else
2532   echo "configure: failed program was:" >&5
2533   cat conftest.$ac_ext >&5
2534   rm -rf conftest*
2535   lt_cv_cc_needs_belf=no
2536 fi
2537 rm -f conftest*
2538      ac_ext=c
2539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2540 ac_cpp='$CPP $CPPFLAGS'
2541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2543 cross_compiling=$ac_cv_prog_cc_cross
2544
2545 fi
2546
2547 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2548   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2549     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2550     CFLAGS="$SAVE_CFLAGS"
2551   fi
2552   ;;
2553
2554
2555 esac
2556
2557 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2558 echo "configure:2559: checking how to run the C++ preprocessor" >&5
2559 if test -z "$CXXCPP"; then
2560 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2561   echo $ac_n "(cached) $ac_c" 1>&6
2562 else
2563   ac_ext=C
2564 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2565 ac_cpp='$CXXCPP $CPPFLAGS'
2566 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2567 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2568 cross_compiling=$ac_cv_prog_cxx_cross
2569   CXXCPP="${CXX-g++} -E"
2570   cat > conftest.$ac_ext <<EOF
2571 #line 2572 "configure"
2572 #include "confdefs.h"
2573 #include <stdlib.h>
2574 EOF
2575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2576 { (eval echo configure:2577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2578 if test -z "$ac_err"; then
2579   :
2580 else
2581   echo "$ac_err" >&5
2582   echo "configure: failed program was:" >&5
2583   cat conftest.$ac_ext >&5
2584   rm -rf conftest*
2585   CXXCPP=/lib/cpp
2586 fi
2587 rm -f conftest*
2588   ac_cv_prog_CXXCPP="$CXXCPP"
2589 ac_ext=c
2590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2591 ac_cpp='$CPP $CPPFLAGS'
2592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2594 cross_compiling=$ac_cv_prog_cc_cross
2595 fi
2596 fi
2597 CXXCPP="$ac_cv_prog_CXXCPP"
2598 echo "$ac_t""$CXXCPP" 1>&6
2599
2600
2601 # Save cache, so that ltconfig can load it
2602 cat > confcache <<\EOF
2603 # This file is a shell script that caches the results of configure
2604 # tests run on this system so they can be shared between configure
2605 # scripts and configure runs.  It is not useful on other systems.
2606 # If it contains results you don't want to keep, you may remove or edit it.
2607 #
2608 # By default, configure uses ./config.cache as the cache file,
2609 # creating it if it does not exist already.  You can give configure
2610 # the --cache-file=FILE option to use a different cache file; that is
2611 # what configure does when it calls configure scripts in
2612 # subdirectories, so they share the cache.
2613 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2614 # config.status only pays attention to the cache file if you give it the
2615 # --recheck option to rerun configure.
2616 #
2617 EOF
2618 # The following way of writing the cache mishandles newlines in values,
2619 # but we know of no workaround that is simple, portable, and efficient.
2620 # So, don't put newlines in cache variables' values.
2621 # Ultrix sh set writes to stderr and can't be redirected directly,
2622 # and sets the high bit in the cache file unless we assign to the vars.
2623 (set) 2>&1 |
2624   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2625   *ac_space=\ *)
2626     # `set' does not quote correctly, so add quotes (double-quote substitution
2627     # turns \\\\ into \\, and sed turns \\ into \).
2628     sed -n \
2629       -e "s/'/'\\\\''/g" \
2630       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2631     ;;
2632   *)
2633     # `set' quotes correctly as required by POSIX, so do not add quotes.
2634     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2635     ;;
2636   esac >> confcache
2637 if cmp -s $cache_file confcache; then
2638   :
2639 else
2640   if test -w $cache_file; then
2641     echo "updating cache $cache_file"
2642     cat confcache > $cache_file
2643   else
2644     echo "not updating unwritable cache $cache_file"
2645   fi
2646 fi
2647 rm -f confcache
2648
2649
2650 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
2651 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2652 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2653 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2654 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2655 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2656 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2657 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2658 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2659 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2660
2661 # Reload cache, that may have been modified by ltconfig
2662 if test -r "$cache_file"; then
2663   echo "loading cache $cache_file"
2664   . $cache_file
2665 else
2666   echo "creating cache $cache_file"
2667   > $cache_file
2668 fi
2669
2670
2671 # This can be used to rebuild libtool when needed
2672 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2673
2674 # Always use our own libtool.
2675 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2676
2677 # Redirect the config.log output again, so that the ltconfig log is not
2678 # clobbered by the next message.
2679 exec 5>>./config.log
2680
2681
2682
2683 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2684 lt_save_CC="$CC"
2685 lt_save_CFLAGS="$CFLAGS"
2686 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2687 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2688 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2689 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2690 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2691 deplibs_check_method="$deplibs_check_method" \
2692 file_magic_cmd="$file_magic_cmd" \
2693 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2694 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2695 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2696 CC="$lt_save_CC"
2697 CFLAGS="$lt_save_CFLAGS"
2698
2699 # Redirect the config.log output again, so that the ltconfig log is not
2700 # clobbered by the next message.
2701 exec 5>>./config.log
2702
2703   
2704
2705   
2706          
2707          
2708
2709
2710
2711 # Check for c++ or library specific bits that don't require linking.
2712 echo $ac_n "checking for GNU make""... $ac_c" 1>&6
2713 echo "configure:2714: checking for GNU make" >&5
2714 if eval "test \"`echo '$''{'_cv_gnu_make_command'+set}'`\" = set"; then
2715   echo $ac_n "(cached) $ac_c" 1>&6
2716 else
2717   _cv_gnu_make_command='' ;
2718           for a in "${MAKE-make}" make gmake gnumake ; do
2719                   if ( $a --version 2> /dev/null | grep -c GNU > /dev/null )
2720                   then
2721                           _cv_gnu_make_command=$a ;
2722                           break;
2723                   fi
2724           done ;
2725   
2726 fi
2727
2728 echo "$ac_t""$_cv_gnu_make_command" 1>&6 ;
2729   if test  "x$_cv_gnu_make_command" != "x"  ; then
2730           ifGNUmake='' ;
2731   else
2732           ifGNUmake='#' ;
2733   fi
2734   
2735
2736 #GLIBCPP_CHECK_COMPILER_VERSION
2737
2738   ac_test_CXXFLAGS="${CXXFLAGS+set}"
2739   ac_save_CXXFLAGS="$CXXFLAGS"
2740   CXXFLAGS='-Werror -Winvalid-pch -Wno-deprecated -x c++-header'
2741
2742   echo $ac_n "checking for compiler that seems to compile .gch files""... $ac_c" 1>&6
2743 echo "configure:2744: checking for compiler that seems to compile .gch files" >&5
2744   if test x${glibcpp_pch_comp+set} != xset; then
2745     if eval "test \"`echo '$''{'glibcpp_pch_comp'+set}'`\" = set"; then
2746   echo $ac_n "(cached) $ac_c" 1>&6
2747 else
2748   
2749       
2750       ac_ext=C
2751 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2752 ac_cpp='$CXXCPP $CPPFLAGS'
2753 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2754 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2755 cross_compiling=$ac_cv_prog_cxx_cross
2756
2757       cat > conftest.$ac_ext <<EOF
2758 #line 2759 "configure"
2759 #include "confdefs.h"
2760 #include <math.h>
2761                      
2762 int main() {
2763  (0);
2764 ; return 0; }
2765 EOF
2766 if { (eval echo configure:2767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2767   rm -rf conftest*
2768   glibcpp_pch_comp=yes
2769 else
2770   echo "configure: failed program was:" >&5
2771   cat conftest.$ac_ext >&5
2772   rm -rf conftest*
2773   glibcpp_pch_comp=no
2774 fi
2775 rm -f conftest*
2776       ac_ext=c
2777 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2780 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2781 cross_compiling=$ac_cv_prog_cc_cross
2782
2783     
2784 fi
2785
2786   fi
2787   echo "$ac_t""$glibcpp_pch_comp" 1>&6
2788
2789   CXXFLAGS="$ac_save_CXXFLAGS"
2790   
2791
2792 if test "$glibcpp_pch_comp" = yes; then
2793   GLIBCPP_BUILD_PCH_TRUE=
2794   GLIBCPP_BUILD_PCH_FALSE='#'
2795 else
2796   GLIBCPP_BUILD_PCH_TRUE='#'
2797   GLIBCPP_BUILD_PCH_FALSE=
2798 fi
2799   if test "$glibcpp_pch_comp" = yes; then
2800         glibcpp_PCHFLAGS="-include bits/stdc++.h"
2801   else
2802         glibcpp_PCHFLAGS=""
2803   fi
2804   
2805
2806
2807 # Enable all the variable C++ stuff.  C_MBCHAR must come early.
2808 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2809 echo "configure:2810: checking how to run the C preprocessor" >&5
2810 # On Suns, sometimes $CPP names a directory.
2811 if test -n "$CPP" && test -d "$CPP"; then
2812   CPP=
2813 fi
2814 if test -z "$CPP"; then
2815 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2816   echo $ac_n "(cached) $ac_c" 1>&6
2817 else
2818     # This must be in double quotes, not single quotes, because CPP may get
2819   # substituted into the Makefile and "${CC-cc}" will confuse make.
2820   CPP="${CC-cc} -E"
2821   # On the NeXT, cc -E runs the code through the compiler's parser,
2822   # not just through cpp.
2823   cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2826 #include <assert.h>
2827 Syntax Error
2828 EOF
2829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2830 { (eval echo configure:2831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2832 if test -z "$ac_err"; then
2833   :
2834 else
2835   echo "$ac_err" >&5
2836   echo "configure: failed program was:" >&5
2837   cat conftest.$ac_ext >&5
2838   rm -rf conftest*
2839   CPP="${CC-cc} -E -traditional-cpp"
2840   cat > conftest.$ac_ext <<EOF
2841 #line 2842 "configure"
2842 #include "confdefs.h"
2843 #include <assert.h>
2844 Syntax Error
2845 EOF
2846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2847 { (eval echo configure:2848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2849 if test -z "$ac_err"; then
2850   :
2851 else
2852   echo "$ac_err" >&5
2853   echo "configure: failed program was:" >&5
2854   cat conftest.$ac_ext >&5
2855   rm -rf conftest*
2856   CPP="${CC-cc} -nologo -E"
2857   cat > conftest.$ac_ext <<EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2860 #include <assert.h>
2861 Syntax Error
2862 EOF
2863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2864 { (eval echo configure:2865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2865 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2866 if test -z "$ac_err"; then
2867   :
2868 else
2869   echo "$ac_err" >&5
2870   echo "configure: failed program was:" >&5
2871   cat conftest.$ac_ext >&5
2872   rm -rf conftest*
2873   CPP=/lib/cpp
2874 fi
2875 rm -f conftest*
2876 fi
2877 rm -f conftest*
2878 fi
2879 rm -f conftest*
2880   ac_cv_prog_CPP="$CPP"
2881 fi
2882   CPP="$ac_cv_prog_CPP"
2883 else
2884   ac_cv_prog_CPP="$CPP"
2885 fi
2886 echo "$ac_t""$CPP" 1>&6
2887
2888
2889   echo $ac_n "checking for cstdio to use""... $ac_c" 1>&6
2890 echo "configure:2891: checking for cstdio to use" >&5
2891   # Check whether --enable-cstdio or --disable-cstdio was given.
2892 if test "${enable_cstdio+set}" = set; then
2893   enableval="$enable_cstdio"
2894   if test x$enable_cstdio = xno; then
2895      enable_cstdio=stdio
2896   fi
2897 else
2898   enable_cstdio=stdio
2899 fi
2900
2901
2902   enable_cstdio_flag=$enable_cstdio
2903
2904     case x${enable_cstdio_flag} in
2905     xlibio)
2906       CSTDIO_H=config/io/c_io_libio.h
2907       BASIC_FILE_H=config/io/basic_file_libio.h
2908       BASIC_FILE_CC=config/io/basic_file_libio.cc
2909       echo "$ac_t""libio" 1>&6
2910
2911       # see if we are on a system with libio native (ie, linux)
2912       ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2913 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2914 echo "configure:2915: checking for libio.h" >&5
2915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2916   echo $ac_n "(cached) $ac_c" 1>&6
2917 else
2918   cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2921 #include <libio.h>
2922 EOF
2923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2924 { (eval echo configure:2925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2926 if test -z "$ac_err"; then
2927   rm -rf conftest*
2928   eval "ac_cv_header_$ac_safe=yes"
2929 else
2930   echo "$ac_err" >&5
2931   echo "configure: failed program was:" >&5
2932   cat conftest.$ac_ext >&5
2933   rm -rf conftest*
2934   eval "ac_cv_header_$ac_safe=no"
2935 fi
2936 rm -f conftest*
2937 fi
2938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2939   echo "$ac_t""yes" 1>&6
2940   has_libio=yes
2941 else
2942   echo "$ac_t""no" 1>&6
2943 has_libio=no
2944 fi
2945
2946
2947       # Need to check and see what version of glibc is being used. If
2948       # it's not glibc-2.2 or higher, then we'll need to go ahead and
2949       # compile most of libio for linux systems.
2950       if test x$has_libio = x"yes"; then
2951         case "$target" in
2952           *-*-linux*)
2953               echo $ac_n "checking for glibc version >= 2.2""... $ac_c" 1>&6
2954 echo "configure:2955: checking for glibc version >= 2.2" >&5
2955               cat > conftest.$ac_ext <<EOF
2956 #line 2957 "configure"
2957 #include "confdefs.h"
2958
2959             #include <features.h>
2960               #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
2961                     ok
2962               #endif
2963               
2964 EOF
2965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2966   egrep "ok" >/dev/null 2>&1; then
2967   rm -rf conftest*
2968   glibc_satisfactory=yes
2969 else
2970   rm -rf conftest*
2971   glibc_satisfactory=no
2972 fi
2973 rm -f conftest*
2974
2975               echo "$ac_t""$glibc_satisfactory" 1>&6
2976             ;;
2977         esac
2978
2979         # XXX at the moment, admit defeat and force the recompilation
2980         # XXX of glibc even on glibc-2.2 systems, because libio is not synched.
2981         glibc_satisfactory=no
2982
2983         if test x$glibc_satisfactory = x"yes"; then
2984            need_libio=no
2985            need_wlibio=no
2986         else
2987            need_libio=yes
2988            # bkoz XXX need to add checks to enable this
2989            # pme XXX here's a first pass at such a check
2990            if test x$enable_c_mbchar != xno; then
2991               need_wlibio=yes
2992            else
2993               need_wlibio=no
2994            fi
2995         fi
2996
2997       else
2998          # Using libio, but <libio.h> doesn't exist on the target system. . .
2999          need_libio=yes
3000          # bkoz XXX need to add checks to enable this
3001          # pme XXX here's a first pass at such a check
3002          if test x$enable_c_mbchar != xno; then
3003              need_wlibio=yes
3004          else
3005              need_wlibio=no
3006          fi
3007       fi
3008       ;;
3009     xstdio | x | xno | xnone | xyes)
3010       # default
3011       CSTDIO_H=config/io/c_io_stdio.h
3012       BASIC_FILE_H=config/io/basic_file_stdio.h
3013       BASIC_FILE_CC=config/io/basic_file_stdio.cc
3014       echo "$ac_t""stdio" 1>&6
3015
3016       # We're not using stdio.
3017       need_libio=no
3018       need_wlibio=no
3019       ;;
3020     *)
3021       echo "$enable_cstdio is an unknown io package" 1>&2
3022       exit 1
3023       ;;
3024   esac
3025   
3026   
3027   
3028
3029   # 2000-08-04 bkoz hack
3030   CCODECVT_C=config/io/c_io_libio_codecvt.c
3031   
3032   # 2000-08-04 bkoz hack
3033
3034   
3035
3036 if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3037   GLIBCPP_BUILD_LIBIO_TRUE=
3038   GLIBCPP_BUILD_LIBIO_FALSE='#'
3039 else
3040   GLIBCPP_BUILD_LIBIO_TRUE='#'
3041   GLIBCPP_BUILD_LIBIO_FALSE=
3042 fi
3043   
3044
3045 if test "$need_libio" = yes; then
3046   GLIBCPP_NEED_LIBIO_TRUE=
3047   GLIBCPP_NEED_LIBIO_FALSE='#'
3048 else
3049   GLIBCPP_NEED_LIBIO_TRUE='#'
3050   GLIBCPP_NEED_LIBIO_FALSE=
3051 fi
3052   
3053
3054 if test "$need_wlibio" = yes; then
3055   GLIBCPP_NEED_WLIBIO_TRUE=
3056   GLIBCPP_NEED_WLIBIO_FALSE='#'
3057 else
3058   GLIBCPP_NEED_WLIBIO_TRUE='#'
3059   GLIBCPP_NEED_WLIBIO_FALSE=
3060 fi
3061   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
3062     libio_la=../libio/libio.la
3063   else
3064     libio_la=
3065   fi
3066   
3067
3068
3069   echo $ac_n "checking for clocale to use""... $ac_c" 1>&6
3070 echo "configure:3071: checking for clocale to use" >&5
3071   # Check whether --enable-clocale or --disable-clocale was given.
3072 if test "${enable_clocale+set}" = set; then
3073   enableval="$enable_clocale"
3074   if test x$enable_clocale = xno; then
3075      enable_clocale=no
3076   fi
3077 else
3078   enable_clocale=no
3079 fi
3080
3081
3082   enable_clocale_flag=$enable_clocale
3083
3084       if test x$enable_clocale_flag = xno; then
3085     case x${target_os} in
3086       xlinux* | xgnu*)
3087         cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3090
3091         #include <features.h>
3092         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3093           _GLIBCPP_ok
3094         #endif
3095         
3096 EOF
3097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3098   egrep "_GLIBCPP_ok" >/dev/null 2>&1; then
3099   rm -rf conftest*
3100   enable_clocale_flag=gnu
3101 else
3102   rm -rf conftest*
3103   enable_clocale_flag=generic
3104 fi
3105 rm -f conftest*
3106
3107
3108         # Test for bugs early in glibc-2.2.x series
3109         if test x$enable_clocale_flag = xgnu; then
3110           if test "$cross_compiling" = yes; then
3111   enable_clocale_flag=generic
3112 else
3113   cat > conftest.$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3116
3117           #define _GNU_SOURCE 1
3118           #include <locale.h>
3119           #include <string.h>
3120           #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
3121           extern __typeof(newlocale) __newlocale;
3122           extern __typeof(duplocale) __duplocale;
3123           extern __typeof(strcoll_l) __strcoll_l;
3124           #endif
3125           int main()
3126           {
3127             const char __one[] = "Äuglein Augmen";
3128             const char __two[] = "Äuglein";
3129             int i;
3130             int j;
3131             __locale_t  loc;
3132             __locale_t  loc_dup;
3133             loc = __newlocale(1 << LC_ALL, "de_DE", 0);
3134             loc_dup = __duplocale(loc);
3135             i = __strcoll_l(__one, __two, loc);
3136             j = __strcoll_l(__one, __two, loc_dup);
3137             return 0;
3138           }
3139           
3140 EOF
3141 if { (eval echo configure:3142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3142 then
3143   enable_clocale_flag=gnu
3144 else
3145   echo "configure: failed program was:" >&5
3146   cat conftest.$ac_ext >&5
3147   rm -fr conftest*
3148   enable_clocale_flag=generic
3149 fi
3150 rm -fr conftest*
3151 fi
3152
3153         fi
3154
3155         # ... at some point put __strxfrm_l tests in as well.
3156         ;;
3157       *)
3158         enable_clocale_flag=generic
3159         ;;
3160     esac
3161   fi
3162
3163     # Check whether --enable-nls or --disable-nls was given.
3164 if test "${enable_nls+set}" = set; then
3165   enableval="$enable_nls"
3166   :
3167 else
3168   enable_nls=yes
3169 fi
3170
3171   USE_NLS=no
3172
3173     case x${enable_clocale_flag} in
3174     xgeneric)
3175       echo "$ac_t""generic" 1>&6
3176
3177       CLOCALE_H=config/locale/generic/c_locale.h
3178       CLOCALE_CC=config/locale/generic/c_locale.cc
3179       CCODECVT_H=config/locale/generic/codecvt_specializations.h
3180       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3181       CCOLLATE_CC=config/locale/generic/collate_members.cc
3182       CCTYPE_CC=config/locale/generic/ctype_members.cc
3183       CMESSAGES_H=config/locale/generic/messages_members.h
3184       CMESSAGES_CC=config/locale/generic/messages_members.cc
3185       CMONEY_CC=config/locale/generic/monetary_members.cc
3186       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3187       CTIME_H=config/locale/generic/time_members.h
3188       CTIME_CC=config/locale/generic/time_members.cc
3189       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3190       ;;
3191     xgnu)
3192       echo "$ac_t""gnu" 1>&6
3193
3194       # Declare intention to use gettext, and add support for specific
3195       # languages.
3196       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
3197       ALL_LINGUAS="de fr"
3198
3199       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
3200       # Extract the first word of "msgfmt", so it can be a program name with args.
3201 set dummy msgfmt; ac_word=$2
3202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3203 echo "configure:3204: checking for $ac_word" >&5
3204 if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
3205   echo $ac_n "(cached) $ac_c" 1>&6
3206 else
3207   if test -n "$check_msgfmt"; then
3208   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
3209 else
3210   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3211   ac_dummy="$PATH"
3212   for ac_dir in $ac_dummy; do
3213     test -z "$ac_dir" && ac_dir=.
3214     if test -f $ac_dir/$ac_word; then
3215       ac_cv_prog_check_msgfmt="yes"
3216       break
3217     fi
3218   done
3219   IFS="$ac_save_ifs"
3220   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
3221 fi
3222 fi
3223 check_msgfmt="$ac_cv_prog_check_msgfmt"
3224 if test -n "$check_msgfmt"; then
3225   echo "$ac_t""$check_msgfmt" 1>&6
3226 else
3227   echo "$ac_t""no" 1>&6
3228 fi
3229
3230       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
3231         USE_NLS=yes
3232       fi
3233       # Export the build objects.
3234       for ling in $ALL_LINGUAS; do \
3235         glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
3236         glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
3237       done
3238       
3239       
3240
3241       CLOCALE_H=config/locale/gnu/c_locale.h
3242       CLOCALE_CC=config/locale/gnu/c_locale.cc
3243       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3244       CCODECVT_CC=config/locale/gnu/codecvt_members.cc
3245       CCOLLATE_CC=config/locale/gnu/collate_members.cc
3246       CCTYPE_CC=config/locale/gnu/ctype_members.cc
3247       CMESSAGES_H=config/locale/gnu/messages_members.h
3248       CMESSAGES_CC=config/locale/gnu/messages_members.cc
3249       CMONEY_CC=config/locale/gnu/monetary_members.cc
3250       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
3251       CTIME_H=config/locale/gnu/time_members.h
3252       CTIME_CC=config/locale/gnu/time_members.cc
3253       CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
3254       ;;
3255     xieee_1003.1-2001)
3256       echo "$ac_t""IEEE 1003.1" 1>&6
3257
3258       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
3259       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
3260       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
3261       CCODECVT_CC=config/locale/generic/codecvt_members.cc
3262       CCOLLATE_CC=config/locale/generic/collate_members.cc
3263       CCTYPE_CC=config/locale/generic/ctype_members.cc
3264       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
3265       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
3266       CMONEY_CC=config/locale/generic/monetary_members.cc
3267       CNUMERIC_CC=config/locale/generic/numeric_members.cc
3268       CTIME_H=config/locale/generic/time_members.h
3269       CTIME_CC=config/locale/generic/time_members.cc
3270       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
3271       ;;
3272     *)
3273       echo "$enable_clocale is an unknown locale package" 1>&2
3274       exit 1
3275       ;;
3276   esac
3277
3278   # This is where the testsuite looks for locale catalogs, using the
3279   # -DLOCALEDIR define during testsuite compilation.
3280   glibcpp_localedir=${glibcpp_builddir}/po/share/locale
3281   
3282
3283   # A standalone libintl (e.g., GNU libintl) may be in use.
3284   if test $USE_NLS = yes; then
3285     for ac_hdr in libintl.h
3286 do
3287 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3288 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3289 echo "configure:3290: checking for $ac_hdr" >&5
3290 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3291   echo $ac_n "(cached) $ac_c" 1>&6
3292 else
3293   cat > conftest.$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3296 #include <$ac_hdr>
3297 EOF
3298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3299 { (eval echo configure:3300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3301 if test -z "$ac_err"; then
3302   rm -rf conftest*
3303   eval "ac_cv_header_$ac_safe=yes"
3304 else
3305   echo "$ac_err" >&5
3306   echo "configure: failed program was:" >&5
3307   cat conftest.$ac_ext >&5
3308   rm -rf conftest*
3309   eval "ac_cv_header_$ac_safe=no"
3310 fi
3311 rm -f conftest*
3312 fi
3313 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3314   echo "$ac_t""yes" 1>&6
3315     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3316   cat >> confdefs.h <<EOF
3317 #define $ac_tr_hdr 1
3318 EOF
3319  
3320 else
3321   echo "$ac_t""no" 1>&6
3322 USE_NLS=no
3323 fi
3324 done
3325
3326     
3327 echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6
3328 echo "configure:3329: checking for library containing gettext" >&5
3329 if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then
3330   echo $ac_n "(cached) $ac_c" 1>&6
3331 else
3332   ac_func_search_save_LIBS="$LIBS"
3333 ac_cv_search_gettext="no"
3334 cat > conftest.$ac_ext <<EOF
3335 #line 3336 "configure"
3336 #include "confdefs.h"
3337 /* Override any gcc2 internal prototype to avoid an error.  */
3338 /* We use char because int might match the return type of a gcc2
3339     builtin and then its argument prototype would still apply.  */
3340 char gettext();
3341
3342 int main() {
3343 gettext()
3344 ; return 0; }
3345 EOF
3346 if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3347   rm -rf conftest*
3348   ac_cv_search_gettext="none required"
3349 else
3350   echo "configure: failed program was:" >&5
3351   cat conftest.$ac_ext >&5
3352 fi
3353 rm -f conftest*
3354 test "$ac_cv_search_gettext" = "no" && for i in intl; do
3355 LIBS="-l$i  $ac_func_search_save_LIBS"
3356 cat > conftest.$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3359 /* Override any gcc2 internal prototype to avoid an error.  */
3360 /* We use char because int might match the return type of a gcc2
3361     builtin and then its argument prototype would still apply.  */
3362 char gettext();
3363
3364 int main() {
3365 gettext()
3366 ; return 0; }
3367 EOF
3368 if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3369   rm -rf conftest*
3370   ac_cv_search_gettext="-l$i"
3371 break
3372 else
3373   echo "configure: failed program was:" >&5
3374   cat conftest.$ac_ext >&5
3375 fi
3376 rm -f conftest*
3377 done
3378 LIBS="$ac_func_search_save_LIBS"
3379 fi
3380
3381 echo "$ac_t""$ac_cv_search_gettext" 1>&6
3382 if test "$ac_cv_search_gettext" != "no"; then
3383   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
3384   
3385 else :
3386   USE_NLS=no
3387 fi
3388   fi
3389   if test $USE_NLS = yes; then
3390     cat >> confdefs.h <<\EOF
3391 #define _GLIBCPP_USE_NLS 1
3392 EOF
3393
3394   fi
3395
3396   
3397   
3398   
3399   
3400   
3401   
3402   
3403   
3404   
3405   
3406   
3407   
3408   
3409   
3410
3411 echo $ac_n "checking for c header strategy to use""... $ac_c" 1>&6
3412 echo "configure:3413: checking for c header strategy to use" >&5
3413 # Check whether --enable-cheaders or --disable-cheaders was given.
3414 if test "${enable_cheaders+set}" = set; then
3415   enableval="$enable_cheaders"
3416   
3417   case "$enableval" in
3418    c)
3419         enable_cheaders=c
3420         ;;
3421    c_std)
3422         enable_cheaders=c_std
3423         ;;
3424    *)   { echo "configure: error: Unknown argument to enable/disable "C" headers" 1>&2; exit 1; }
3425         ;;
3426   esac
3427 else
3428   enable_cheaders=c_std
3429 fi
3430
3431   echo "$ac_t""$enable_cheaders" 1>&6
3432
3433     case "$enable_cheaders" in
3434     c_std)
3435         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c_std'
3436         ;;
3437     c)
3438         C_INCLUDE_DIR='${glibcpp_srcdir}/include/c'
3439         ;;
3440   esac
3441
3442   
3443   
3444
3445 if test "$enable_cheaders" = c; then
3446   GLIBCPP_C_HEADERS_C_TRUE=
3447   GLIBCPP_C_HEADERS_C_FALSE='#'
3448 else
3449   GLIBCPP_C_HEADERS_C_TRUE='#'
3450   GLIBCPP_C_HEADERS_C_FALSE=
3451 fi
3452   
3453
3454 if test "$enable_cheaders" = c_std; then
3455   GLIBCPP_C_HEADERS_C_STD_TRUE=
3456   GLIBCPP_C_HEADERS_C_STD_FALSE='#'
3457 else
3458   GLIBCPP_C_HEADERS_C_STD_TRUE='#'
3459   GLIBCPP_C_HEADERS_C_STD_FALSE=
3460 fi
3461   
3462
3463 if test "$c_compatibility" = yes; then
3464   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE=
3465   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE='#'
3466 else
3467   GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE='#'
3468   GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE=
3469 fi
3470
3471 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
3472 if test "${enable_c_mbchar+set}" = set; then
3473   enableval="$enable_c_mbchar"
3474   case "$enableval" in
3475  yes) enable_c_mbchar=yes ;;
3476  no)  enable_c_mbchar=no ;;
3477  *)   { echo "configure: error: Unknown argument to enable/disable c-mbchar" 1>&2; exit 1; } ;;
3478  esac
3479 else
3480   enable_c_mbchar=yes
3481 fi
3482
3483   
3484   # Check whether --enable-c99 or --disable-c99 was given.
3485 if test "${enable_c99+set}" = set; then
3486   enableval="$enable_c99"
3487     case "$enableval" in
3488    yes) enable_c99=yes ;;
3489    no)  enable_c99=no ;;
3490    *)   { echo "configure: error: Unknown argument to enable/disable C99" 1>&2; exit 1; } ;;
3491    esac
3492 else
3493   enable_c99=yes
3494 fi
3495
3496   
3497   ac_ext=C
3498 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3499 ac_cpp='$CXXCPP $CPPFLAGS'
3500 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3501 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3502 cross_compiling=$ac_cv_prog_cxx_cross
3503
3504
3505   # Check for the existence of <math.h> functions used if C99 is enabled.
3506   ac_c99_math=yes;
3507   echo $ac_n "checking for ISO C99 support in <math.h>""... $ac_c" 1>&6
3508 echo "configure:3509: checking for ISO C99 support in <math.h>" >&5
3509   cat > conftest.$ac_ext <<EOF
3510 #line 3511 "configure"
3511 #include "confdefs.h"
3512 #include <math.h>
3513 int main() {
3514 fpclassify(0.0);
3515 ; return 0; }
3516 EOF
3517 if { (eval echo configure:3518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3518   :
3519 else
3520   echo "configure: failed program was:" >&5
3521   cat conftest.$ac_ext >&5
3522   rm -rf conftest*
3523   ac_c99_math=no
3524 fi
3525 rm -f conftest*
3526   cat > conftest.$ac_ext <<EOF
3527 #line 3528 "configure"
3528 #include "confdefs.h"
3529 #include <math.h>
3530 int main() {
3531 isfinite(0.0);
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_math=no
3541 fi
3542 rm -f conftest*
3543   cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 #include <math.h>
3547 int main() {
3548 isinf(0.0);
3549 ; return 0; }
3550 EOF
3551 if { (eval echo configure:3552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3552   :
3553 else
3554   echo "configure: failed program was:" >&5
3555   cat conftest.$ac_ext >&5
3556   rm -rf conftest*
3557   ac_c99_math=no
3558 fi
3559 rm -f conftest*
3560   cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 #include <math.h>
3564 int main() {
3565 isnan(0.0);
3566 ; return 0; }
3567 EOF
3568 if { (eval echo configure:3569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3569   :
3570 else
3571   echo "configure: failed program was:" >&5
3572   cat conftest.$ac_ext >&5
3573   rm -rf conftest*
3574   ac_c99_math=no
3575 fi
3576 rm -f conftest*
3577   cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3580 #include <math.h>
3581 int main() {
3582 isnormal(0.0);
3583 ; return 0; }
3584 EOF
3585 if { (eval echo configure:3586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3586   :
3587 else
3588   echo "configure: failed program was:" >&5
3589   cat conftest.$ac_ext >&5
3590   rm -rf conftest*
3591   ac_c99_math=no
3592 fi
3593 rm -f conftest*
3594   cat > conftest.$ac_ext <<EOF
3595 #line 3596 "configure"
3596 #include "confdefs.h"
3597 #include <math.h>
3598 int main() {
3599 signbit(0.0);
3600 ; return 0; }
3601 EOF
3602 if { (eval echo configure:3603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3603   :
3604 else
3605   echo "configure: failed program was:" >&5
3606   cat conftest.$ac_ext >&5
3607   rm -rf conftest*
3608   ac_c99_math=no
3609 fi
3610 rm -f conftest*
3611   cat > conftest.$ac_ext <<EOF
3612 #line 3613 "configure"
3613 #include "confdefs.h"
3614 #include <math.h>
3615 int main() {
3616 isgreater(0.0,0.0);
3617 ; return 0; }
3618 EOF
3619 if { (eval echo configure:3620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3620   :
3621 else
3622   echo "configure: failed program was:" >&5
3623   cat conftest.$ac_ext >&5
3624   rm -rf conftest*
3625   ac_c99_math=no
3626 fi
3627 rm -f conftest*
3628   cat > conftest.$ac_ext <<EOF
3629 #line 3630 "configure"
3630 #include "confdefs.h"
3631 #include <math.h>
3632 int main() {
3633 isgreaterequal(0.0,0.0);
3634 ; return 0; }
3635 EOF
3636 if { (eval echo configure:3637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3637   :
3638 else
3639   echo "configure: failed program was:" >&5
3640   cat conftest.$ac_ext >&5
3641   rm -rf conftest*
3642   ac_c99_math=no
3643 fi
3644 rm -f conftest*
3645   cat > conftest.$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3648 #include <math.h>
3649 int main() {
3650 isless(0.0,0.0);
3651 ; return 0; }
3652 EOF
3653 if { (eval echo configure:3654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3654   :
3655 else
3656   echo "configure: failed program was:" >&5
3657   cat conftest.$ac_ext >&5
3658   rm -rf conftest*
3659   ac_c99_math=no
3660 fi
3661 rm -f conftest*
3662   cat > conftest.$ac_ext <<EOF
3663 #line 3664 "configure"
3664 #include "confdefs.h"
3665 #include <math.h>
3666 int main() {
3667 islessequal(0.0,0.0);
3668 ; return 0; }
3669 EOF
3670 if { (eval echo configure:3671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3671   :
3672 else
3673   echo "configure: failed program was:" >&5
3674   cat conftest.$ac_ext >&5
3675   rm -rf conftest*
3676   ac_c99_math=no
3677 fi
3678 rm -f conftest*
3679   cat > conftest.$ac_ext <<EOF
3680 #line 3681 "configure"
3681 #include "confdefs.h"
3682 #include <math.h>
3683 int main() {
3684 islessgreater(0.0,0.0);
3685 ; return 0; }
3686 EOF
3687 if { (eval echo configure:3688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3688   :
3689 else
3690   echo "configure: failed program was:" >&5
3691   cat conftest.$ac_ext >&5
3692   rm -rf conftest*
3693   ac_c99_math=no
3694 fi
3695 rm -f conftest*
3696   cat > conftest.$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3699 #include <math.h>
3700 int main() {
3701 isunordered(0.0,0.0);
3702 ; return 0; }
3703 EOF
3704 if { (eval echo configure:3705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3705   :
3706 else
3707   echo "configure: failed program was:" >&5
3708   cat conftest.$ac_ext >&5
3709   rm -rf conftest*
3710   ac_c99_math=no
3711 fi
3712 rm -f conftest*
3713   echo "$ac_t""$ac_c99_math" 1>&6
3714
3715   # Check for the existence in <stdio.h> of vscanf, et. al.
3716   ac_c99_stdio=yes;
3717   echo $ac_n "checking for ISO C99 support in <stdio.h>""... $ac_c" 1>&6
3718 echo "configure:3719: checking for ISO C99 support in <stdio.h>" >&5
3719   cat > conftest.$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3722 #include <stdio.h>
3723 int main() {
3724 snprintf("12", 0, "%i");
3725 ; return 0; }
3726 EOF
3727 if { (eval echo configure:3728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3728   :
3729 else
3730   echo "configure: failed program was:" >&5
3731   cat conftest.$ac_ext >&5
3732   rm -rf conftest*
3733   ac_c99_stdio=no
3734 fi
3735 rm -f conftest*
3736   cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3739 #include <stdio.h>
3740                   #include <stdarg.h>
3741                   void foo(char* fmt, ...)
3742                   {va_list args; va_start(args, fmt);
3743                   vfscanf(stderr, "%i", args);}
3744 int main() {
3745
3746 ; return 0; }
3747 EOF
3748 if { (eval echo configure:3749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3749   :
3750 else
3751   echo "configure: failed program was:" >&5
3752   cat conftest.$ac_ext >&5
3753   rm -rf conftest*
3754   ac_c99_stdio=no
3755 fi
3756 rm -f conftest*
3757   cat > conftest.$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3760 #include <stdio.h>
3761                   #include <stdarg.h>
3762                   void foo(char* fmt, ...)
3763                   {va_list args; va_start(args, fmt);
3764                   vscanf("%i", args);}
3765 int main() {
3766
3767 ; return 0; }
3768 EOF
3769 if { (eval echo configure:3770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3770   :
3771 else
3772   echo "configure: failed program was:" >&5
3773   cat conftest.$ac_ext >&5
3774   rm -rf conftest*
3775   ac_c99_stdio=no
3776 fi
3777 rm -f conftest*
3778   cat > conftest.$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3781 #include <stdio.h>
3782                   #include <stdarg.h>
3783                   void foo(char* fmt, ...)
3784                   {va_list args; va_start(args, fmt);
3785                   vsnprintf(fmt, 0, "%i", args);}
3786 int main() {
3787
3788 ; return 0; }
3789 EOF
3790 if { (eval echo configure:3791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3791   :
3792 else
3793   echo "configure: failed program was:" >&5
3794   cat conftest.$ac_ext >&5
3795   rm -rf conftest*
3796   ac_c99_stdio=no
3797 fi
3798 rm -f conftest*
3799   cat > conftest.$ac_ext <<EOF
3800 #line 3801 "configure"
3801 #include "confdefs.h"
3802 #include <stdio.h>
3803                   #include <stdarg.h>
3804                   void foo(char* fmt, ...)
3805                   {va_list args; va_start(args, fmt);
3806                   vsscanf(fmt, "%i", args);}
3807 int main() {
3808
3809 ; return 0; }
3810 EOF
3811 if { (eval echo configure:3812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3812   :
3813 else
3814   echo "configure: failed program was:" >&5
3815   cat conftest.$ac_ext >&5
3816   rm -rf conftest*
3817   ac_c99_stdio=no
3818 fi
3819 rm -f conftest*
3820   echo "$ac_t""$ac_c99_stdio" 1>&6
3821
3822   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
3823   ac_c99_stdlib=yes;
3824   echo $ac_n "checking for lldiv_t declaration""... $ac_c" 1>&6
3825 echo "configure:3826: checking for lldiv_t declaration" >&5
3826   if eval "test \"`echo '$''{'ac_c99_lldiv_t'+set}'`\" = set"; then
3827   echo $ac_n "(cached) $ac_c" 1>&6
3828 else
3829   
3830   cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 #include <stdlib.h>
3834 int main() {
3835  lldiv_t mydivt;
3836 ; return 0; }
3837 EOF
3838 if { (eval echo configure:3839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3839   rm -rf conftest*
3840   ac_c99_lldiv_t=yes
3841 else
3842   echo "configure: failed program was:" >&5
3843   cat conftest.$ac_ext >&5
3844   rm -rf conftest*
3845   ac_c99_lldiv_t=no
3846 fi
3847 rm -f conftest*
3848   
3849 fi
3850
3851   echo "$ac_t""$ac_c99_lldiv_t" 1>&6
3852
3853   echo $ac_n "checking for ISO C99 support in <stdlib.h>""... $ac_c" 1>&6
3854 echo "configure:3855: checking for ISO C99 support in <stdlib.h>" >&5
3855   cat > conftest.$ac_ext <<EOF
3856 #line 3857 "configure"
3857 #include "confdefs.h"
3858 #include <stdlib.h>
3859 int main() {
3860 char* tmp; strtof("gnu", &tmp);
3861 ; return 0; }
3862 EOF
3863 if { (eval echo configure:3864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3864   :
3865 else
3866   echo "configure: failed program was:" >&5
3867   cat conftest.$ac_ext >&5
3868   rm -rf conftest*
3869   ac_c99_stdlib=no
3870 fi
3871 rm -f conftest*
3872   cat > conftest.$ac_ext <<EOF
3873 #line 3874 "configure"
3874 #include "confdefs.h"
3875 #include <stdlib.h>
3876 int main() {
3877 char* tmp; strtold("gnu", &tmp);
3878 ; return 0; }
3879 EOF
3880 if { (eval echo configure:3881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3881   :
3882 else
3883   echo "configure: failed program was:" >&5
3884   cat conftest.$ac_ext >&5
3885   rm -rf conftest*
3886   ac_c99_stdlib=no
3887 fi
3888 rm -f conftest*
3889   cat > conftest.$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3892 #include <stdlib.h>
3893 int main() {
3894 llabs(10);
3895 ; return 0; }
3896 EOF
3897 if { (eval echo configure:3898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3898   :
3899 else
3900   echo "configure: failed program was:" >&5
3901   cat conftest.$ac_ext >&5
3902   rm -rf conftest*
3903   ac_c99_stdlib=no
3904 fi
3905 rm -f conftest*
3906   cat > conftest.$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3909 #include <stdlib.h>
3910 int main() {
3911 lldiv(10,1);
3912 ; return 0; }
3913 EOF
3914 if { (eval echo configure:3915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3915   :
3916 else
3917   echo "configure: failed program was:" >&5
3918   cat conftest.$ac_ext >&5
3919   rm -rf conftest*
3920   ac_c99_stdlib=no
3921 fi
3922 rm -f conftest*
3923   cat > conftest.$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3926 #include <stdlib.h>
3927 int main() {
3928 atoll("10");
3929 ; return 0; }
3930 EOF
3931 if { (eval echo configure:3932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3932   :
3933 else
3934   echo "configure: failed program was:" >&5
3935   cat conftest.$ac_ext >&5
3936   rm -rf conftest*
3937   ac_c99_stdlib=no
3938 fi
3939 rm -f conftest*
3940   cat > conftest.$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3943 #include <stdlib.h>
3944 int main() {
3945 _Exit(0);
3946 ; return 0; }
3947 EOF
3948 if { (eval echo configure:3949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3949   :
3950 else
3951   echo "configure: failed program was:" >&5
3952   cat conftest.$ac_ext >&5
3953   rm -rf conftest*
3954   ac_c99_stdlib=no
3955 fi
3956 rm -f conftest*
3957   if test x"$ac_c99_lldiv_t" = x"no"; then
3958     ac_c99_stdlib=no;
3959   fi;
3960   echo "$ac_t""$ac_c99_stdlib" 1>&6
3961
3962   # Check for the existence of <wchar.h> functions used if C99 is enabled.
3963   # XXX the wchar.h checks should be rolled into the general C99 bits.
3964   ac_c99_wchar=yes;
3965   echo $ac_n "checking for additional ISO C99 support in <wchar.h>""... $ac_c" 1>&6
3966 echo "configure:3967: checking for additional ISO C99 support in <wchar.h>" >&5
3967   cat > conftest.$ac_ext <<EOF
3968 #line 3969 "configure"
3969 #include "confdefs.h"
3970 #include <wchar.h>
3971 int main() {
3972 wcstold(L"10.0", NULL);
3973 ; return 0; }
3974 EOF
3975 if { (eval echo configure:3976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3976   :
3977 else
3978   echo "configure: failed program was:" >&5
3979   cat conftest.$ac_ext >&5
3980   rm -rf conftest*
3981   ac_c99_wchar=no
3982 fi
3983 rm -f conftest*
3984   cat > conftest.$ac_ext <<EOF
3985 #line 3986 "configure"
3986 #include "confdefs.h"
3987 #include <wchar.h>
3988 int main() {
3989 wcstoll(L"10", NULL, 10);
3990 ; return 0; }
3991 EOF
3992 if { (eval echo configure:3993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3993   :
3994 else
3995   echo "configure: failed program was:" >&5
3996   cat conftest.$ac_ext >&5
3997   rm -rf conftest*
3998   ac_c99_wchar=no
3999 fi
4000 rm -f conftest*
4001   cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4004 #include <wchar.h>
4005 int main() {
4006 wcstoull(L"10", NULL, 10);
4007 ; return 0; }
4008 EOF
4009 if { (eval echo configure:4010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4010   :
4011 else
4012   echo "configure: failed program was:" >&5
4013   cat conftest.$ac_ext >&5
4014   rm -rf conftest*
4015   ac_c99_wchar=no
4016 fi
4017 rm -f conftest*
4018   echo "$ac_t""$ac_c99_wchar" 1>&6
4019
4020   echo $ac_n "checking for enabled ISO C99 support""... $ac_c" 1>&6
4021 echo "configure:4022: checking for enabled ISO C99 support" >&5
4022   if test x"$ac_c99_math" = x"no" ||
4023      test x"$ac_c99_stdio" = x"no" ||
4024      test x"$ac_c99_stdlib" = x"no" ||
4025      test x"$ac_c99_wchar" = x"no"; then
4026     enable_c99=no;
4027   fi;
4028   echo "$ac_t""$enable_c99" 1>&6
4029
4030   # Option parsed, now set things appropriately
4031   if test x"$enable_c99" = x"yes"; then
4032     cat >> confdefs.h <<\EOF
4033 #define _GLIBCPP_USE_C99 1
4034 EOF
4035
4036   fi
4037
4038   ac_ext=c
4039 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4040 ac_cpp='$CPP $CPPFLAGS'
4041 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4042 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4043 cross_compiling=$ac_cv_prog_cc_cross
4044
4045
4046   
4047   # Check whether --enable-long-long or --disable-long-long was given.
4048 if test "${enable_long_long+set}" = set; then
4049   enableval="$enable_long_long"
4050     case "$enableval" in
4051    yes) enable_long_long=yes ;;
4052    no)  enable_long_long=no ;;
4053    *)   { echo "configure: error: Unknown argument to enable/disable long long" 1>&2; exit 1; } ;;
4054    esac
4055 else
4056   enable_long_long=yes
4057 fi
4058
4059   
4060   ac_ext=C
4061 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4062 ac_cpp='$CXXCPP $CPPFLAGS'
4063 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4064 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4065 cross_compiling=$ac_cv_prog_cxx_cross
4066
4067
4068   echo $ac_n "checking for enabled long long I/O support""... $ac_c" 1>&6
4069 echo "configure:4070: checking for enabled long long I/O support" >&5
4070   # iostreams require strtoll, strtoull to compile
4071   cat > conftest.$ac_ext <<EOF
4072 #line 4073 "configure"
4073 #include "confdefs.h"
4074 #include <stdlib.h>
4075 int main() {
4076 char* tmp; strtoll("gnu", &tmp, 10);
4077 ; return 0; }
4078 EOF
4079 if { (eval echo configure:4080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4080   :
4081 else
4082   echo "configure: failed program was:" >&5
4083   cat conftest.$ac_ext >&5
4084   rm -rf conftest*
4085   enable_long_long=no
4086 fi
4087 rm -f conftest*
4088   cat > conftest.$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4091 #include <stdlib.h>
4092 int main() {
4093 char* tmp; strtoull("gnu", &tmp, 10);
4094 ; return 0; }
4095 EOF
4096 if { (eval echo configure:4097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4097   :
4098 else
4099   echo "configure: failed program was:" >&5
4100   cat conftest.$ac_ext >&5
4101   rm -rf conftest*
4102   enable_long_long=no
4103 fi
4104 rm -f conftest*
4105
4106   # Option parsed, now set things appropriately
4107   if test x"$enable_long_long" = xyes; then
4108     cat >> confdefs.h <<\EOF
4109 #define _GLIBCPP_USE_LONG_LONG 1
4110 EOF
4111
4112   fi
4113   echo "$ac_t""$enable_long_long" 1>&6
4114
4115   ac_ext=c
4116 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4117 ac_cpp='$CPP $CPPFLAGS'
4118 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4119 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4120 cross_compiling=$ac_cv_prog_cc_cross
4121
4122
4123
4124   echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
4125 echo "configure:4126: checking for thread model used by GCC" >&5
4126   target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4127   echo "$ac_t""$target_thread_file" 1>&6
4128
4129   if test $target_thread_file != single; then
4130     cat >> confdefs.h <<\EOF
4131 #define HAVE_GTHR_DEFAULT 1
4132 EOF
4133
4134     cat >> confdefs.h <<\EOF
4135 #define _GLIBCPP_SUPPORTS_WEAK __GXX_WEAK__
4136 EOF
4137
4138   fi
4139
4140   glibcpp_thread_h=gthr-$target_thread_file.h
4141   
4142
4143
4144   echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
4145 echo "configure:4146: checking for exception model to use" >&5
4146   
4147   ac_ext=C
4148 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4149 ac_cpp='$CXXCPP $CPPFLAGS'
4150 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4151 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4152 cross_compiling=$ac_cv_prog_cxx_cross
4153
4154   # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4155 if test "${enable_sjlj_exceptions+set}" = set; then
4156   enableval="$enable_sjlj_exceptions"
4157   :
4158 else
4159                        cat > conftest.$ac_ext << EOF
4160 #line 4161 "configure"
4161 struct S { ~S(); };
4162 void bar();
4163 void foo()
4164 {
4165   S s;
4166   bar();
4167 }
4168 EOF
4169    old_CXXFLAGS="$CXXFLAGS"
4170    CXXFLAGS=-S
4171    if { (eval echo configure:4172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4172      if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4173        enable_sjlj_exceptions=yes
4174      elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4175        enable_sjlj_exceptions=no
4176      fi
4177    fi
4178    CXXFLAGS="$old_CXXFLAGS"
4179    rm -f conftest*
4180 fi
4181
4182    if test x$enable_sjlj_exceptions = xyes; then
4183      cat >> confdefs.h <<\EOF
4184 #define _GLIBCPP_SJLJ_EXCEPTIONS 1
4185 EOF
4186
4187      ac_exception_model_name=sjlj
4188    elif test x$enable_sjlj_exceptions = xno; then
4189      ac_exception_model_name="call frame"
4190    else
4191      { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
4192    fi
4193    ac_ext=c
4194 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4195 ac_cpp='$CPP $CPPFLAGS'
4196 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4197 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4198 cross_compiling=$ac_cv_prog_cc_cross
4199
4200    echo "$ac_t""$ac_exception_model_name" 1>&6
4201
4202
4203   echo $ac_n "checking for use of libunwind""... $ac_c" 1>&6
4204 echo "configure:4205: checking for use of libunwind" >&5
4205   # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4206 if test "${enable_libunwind_exceptions+set}" = set; then
4207   enableval="$enable_libunwind_exceptions"
4208   use_libunwind_exceptions=$enableval
4209 else
4210   use_libunwind_exceptions=no
4211 fi
4212
4213   echo "$ac_t""$use_libunwind_exceptions" 1>&6
4214     if test x"$use_libunwind_exceptions" = xyes; then
4215     LIBUNWIND_FLAG="-lunwind"
4216   else
4217     LIBUNWIND_FLAG=""
4218   fi
4219   
4220
4221 # Check whether --enable-concept-checks or --disable-concept-checks was given.
4222 if test "${enable_concept_checks+set}" = set; then
4223   enableval="$enable_concept_checks"
4224   case "$enableval" in
4225  yes) enable_concept_checks=yes ;;
4226  no)  enable_concept_checks=no ;;
4227  *)   { echo "configure: error: Unknown argument to enable/disable concept checks" 1>&2; exit 1; } ;;
4228  esac
4229 else
4230   enable_concept_checks=no
4231 fi
4232 if test x"$enable_concept_checks" = xyes; then
4233   cat >> confdefs.h <<\EOF
4234 #define _GLIBCPP_CONCEPT_CHECKS 1
4235 EOF
4236
4237 fi
4238
4239 echo $ac_n "checking for extra compiler flags for building""... $ac_c" 1>&6
4240 echo "configure:4241: checking for extra compiler flags for building" >&5
4241 # Check whether --enable-cxx_flags or --disable-cxx_flags was given.
4242 if test "${enable_cxx_flags+set}" = set; then
4243   enableval="$enable_cxx_flags"
4244   case "x$enable_cxx_flags" in
4245   xyes)
4246     { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
4247   xno | xnone | x)
4248     enable_cxx_flags='' ;;
4249   *)
4250     enable_cxx_flags="$enableval" ;;
4251 esac
4252 else
4253   enable_cxx_flags=
4254 fi
4255
4256
4257 if test -n "$enable_cxx_flags"; then
4258   for f in $enable_cxx_flags; do
4259     case "$f" in
4260       -fhonor-std)  ;;
4261       -*)  ;;
4262       *)   # and we're trying to pass /what/ exactly?
4263            { echo "configure: error: compiler flags start with a -" 1>&2; exit 1; } ;;
4264     esac
4265   done
4266 fi
4267 EXTRA_CXX_FLAGS="$enable_cxx_flags"
4268 echo "$ac_t""$EXTRA_CXX_FLAGS" 1>&6
4269
4270
4271 # Check whether --enable-debug or --disable-debug was given.
4272 if test "${enable_debug+set}" = set; then
4273   enableval="$enable_debug"
4274   case "${enableval}" in
4275  yes) enable_debug=yes ;;
4276  no)  enable_debug=no ;;
4277  *)   { echo "configure: error: Unknown argument to enable/disable extra debugging" 1>&2; exit 1; } ;;
4278  esac
4279 else
4280   enable_debug=no
4281 fi
4282 echo $ac_n "checking for additional debug build""... $ac_c" 1>&6
4283 echo "configure:4284: checking for additional debug build" >&5
4284 echo "$ac_t""$enable_debug" 1>&6
4285
4286
4287 if test "$enable_debug" = yes; then
4288   GLIBCPP_BUILD_DEBUG_TRUE=
4289   GLIBCPP_BUILD_DEBUG_FALSE='#'
4290 else
4291   GLIBCPP_BUILD_DEBUG_TRUE='#'
4292   GLIBCPP_BUILD_DEBUG_FALSE=
4293 fi
4294
4295 # Check whether --enable-debug_flags or --disable-debug_flags was given.
4296 if test "${enable_debug_flags+set}" = set; then
4297   enableval="$enable_debug_flags"
4298   case "${enableval}" in
4299  none)  ;;
4300  -*) enable_debug_flags="${enableval}" ;;
4301  *)   { echo "configure: error: Unknown argument to extra debugging flags" 1>&2; exit 1; } ;;
4302  esac
4303 else
4304   enable_debug_flags=none
4305 fi
4306
4307 case x"$enable_debug" in
4308     xyes)
4309         case "$enable_debug_flags" in
4310           none)
4311             DEBUG_FLAGS="-g3 -O0";;
4312           -*) #valid input
4313             DEBUG_FLAGS="${enableval}"
4314         esac
4315         ;;
4316     xno)
4317         DEBUG_FLAGS=""
4318         ;;
4319 esac
4320
4321
4322 echo $ac_n "checking for debug build flags""... $ac_c" 1>&6
4323 echo "configure:4324: checking for debug build flags" >&5
4324 echo "$ac_t""$DEBUG_FLAGS" 1>&6
4325
4326
4327 # No surprises, no surprises...
4328 if test $ATOMICITYH = cpu/generic ; then
4329   echo "configure: warning: No native atomic operations are provided for this platform." 1>&2
4330   if test $target_thread_file = single; then
4331     echo "configure: warning: They cannot be faked when thread support is disabled." 1>&2
4332     echo "configure: warning: Thread-safety of certain classes is not guaranteed." 1>&2
4333   else
4334     echo "configure: warning: They will be faked using a mutex." 1>&2
4335     echo "configure: warning: Performance of certain classes will degrade as a result." 1>&2
4336   fi
4337 fi
4338
4339
4340 if test x"$build" != x"$host"; then
4341
4342   # We are being configured with some form of cross compiler.
4343   GLIBCPP_IS_CROSS_COMPILING=true
4344
4345   # This lets us hard-code the functionality we know we'll have in the cross
4346   # target environment.  "Let" is a sugar-coated word placed on an especially
4347   # dull and tedious hack, actually.
4348   #
4349   # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros
4350   # that involve linking, can't be used:
4351   #    "cannot open sim-crt0.o"
4352   #    "cannot open crt0.o"
4353   # etc.  All this is because there currently exists no unified, consistent
4354   # way for top level CC information to be passed down to target directories:
4355   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
4356   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
4357   # crosses can be removed.
4358
4359   # If Canadian cross, then don't pick up tools from the build directory.
4360   # Used in GLIBCPP_EXPORT_INCLUDES (and nowhere else?).
4361   if test -n "$with_cross_host" && test x"$build" != x"$with_cross_host" \
4362     && test x"$build" != x"$target"; then
4363     CANADIAN=yes
4364   else
4365     CANADIAN=no
4366   fi
4367
4368   # Construct crosses by hand, eliminating bits that need ld...
4369   # GLIBCPP_CHECK_COMPILER_FEATURES
4370   # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
4371   # GLIBCPP_CHECK_MATH_SUPPORT
4372
4373   case "${host}" in
4374     *-freebsd*)
4375       os_include_dir="os/bsd/freebsd"
4376       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
4377         machine/endian.h machine/param.h sys/machine.h sys/types.h \
4378         fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
4379         sys/time.h unistd.h
4380 do
4381 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4382 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4383 echo "configure:4384: checking for $ac_hdr" >&5
4384 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4385   echo $ac_n "(cached) $ac_c" 1>&6
4386 else
4387   cat > conftest.$ac_ext <<EOF
4388 #line 4389 "configure"
4389 #include "confdefs.h"
4390 #include <$ac_hdr>
4391 EOF
4392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4393 { (eval echo configure:4394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4395 if test -z "$ac_err"; then
4396   rm -rf conftest*
4397   eval "ac_cv_header_$ac_safe=yes"
4398 else
4399   echo "$ac_err" >&5
4400   echo "configure: failed program was:" >&5
4401   cat conftest.$ac_ext >&5
4402   rm -rf conftest*
4403   eval "ac_cv_header_$ac_safe=no"
4404 fi
4405 rm -f conftest*
4406 fi
4407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4408   echo "$ac_t""yes" 1>&6
4409     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4410   cat >> confdefs.h <<EOF
4411 #define $ac_tr_hdr 1
4412 EOF
4413  
4414 else
4415   echo "$ac_t""no" 1>&6
4416 fi
4417 done
4418
4419       SECTION_FLAGS='-ffunction-sections -fdata-sections'
4420        
4421       
4422   # If we're not using GNU ld, then there's no point in even trying these
4423   # tests.  Check for that first.  We should have already tested for gld
4424   # by now (in libtool), but require it now just to be safe...
4425   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
4426   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
4427   
4428
4429   # The name set by libtool depends on the version of libtool.  Shame on us
4430   # for depending on an impl detail, but c'est la vie.  Older versions used
4431   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
4432   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
4433   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
4434   # set (hence we're using an older libtool), then set it.
4435   if test x${with_gnu_ld+set} != xset; then
4436     if test x${ac_cv_prog_gnu_ld+set} != xset; then
4437       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
4438       with_gnu_ld=no
4439     else
4440       with_gnu_ld=$ac_cv_prog_gnu_ld
4441     fi
4442   fi
4443
4444   # Start by getting the version number.  I think the libtool test already
4445   # does some of this, but throws away the result.
4446   
4447   ldver=`$LD --version 2>/dev/null | head -1 | \
4448          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
4449   
4450   glibcpp_gnu_ld_version=`echo $ldver | \
4451          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
4452
4453   # Set --gc-sections.
4454   if test "$with_gnu_ld" = "notbroken"; then
4455     # GNU ld it is!  Joy and bunny rabbits!
4456
4457     # All these tests are for C++; save the language and the compiler flags.
4458     # Need to do this so that g++ won't try to link in libstdc++
4459     ac_test_CFLAGS="${CFLAGS+set}"
4460     ac_save_CFLAGS="$CFLAGS"
4461     CFLAGS='-x c++  -Wl,--gc-sections'
4462
4463     # Check for -Wl,--gc-sections
4464     # XXX This test is broken at the moment, as symbols required for
4465     # linking are now in libsupc++ (not built yet.....). In addition,
4466     # this test has cored on solaris in the past. In addition,
4467     # --gc-sections doesn't really work at the moment (keeps on discarding
4468     # used sections, first .eh_frame and now some of the glibc sections for
4469     # iconv). Bzzzzt. Thanks for playing, maybe next time.
4470     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
4471 echo "configure:4472: checking for ld that supports -Wl,--gc-sections" >&5
4472     if test "$cross_compiling" = yes; then
4473   ac_sectionLDflags=yes
4474 else
4475   cat > conftest.$ac_ext <<EOF
4476 #line 4477 "configure"
4477 #include "confdefs.h"
4478
4479      int main(void)
4480      {
4481        try { throw 1; }
4482        catch (...) { };
4483        return 0;
4484      }
4485     
4486 EOF
4487 if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4488 then
4489   ac_sectionLDflags=yes
4490 else
4491   echo "configure: failed program was:" >&5
4492   cat conftest.$ac_ext >&5
4493   rm -fr conftest*
4494   ac_sectionLDflags=no
4495 fi
4496 rm -fr conftest*
4497 fi
4498
4499     if test "$ac_test_CFLAGS" = set; then
4500       CFLAGS="$ac_save_CFLAGS"
4501     else
4502       # this is the suspicious part
4503       CFLAGS=''
4504     fi
4505     if test "$ac_sectionLDflags" = "yes"; then
4506       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
4507     fi
4508     echo "$ac_t""$ac_sectionLDflags" 1>&6
4509   fi
4510
4511   # Set linker optimization flags.
4512   if test x"$with_gnu_ld" = x"yes"; then
4513     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
4514   fi
4515
4516   
4517   
4518
4519       
4520         echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
4521 echo "configure:4522: checking for main in -lm" >&5
4522 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
4523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4524   echo $ac_n "(cached) $ac_c" 1>&6
4525 else
4526   ac_save_LIBS="$LIBS"
4527 LIBS="-lm  $LIBS"
4528 cat > conftest.$ac_ext <<EOF
4529 #line 4530 "configure"
4530 #include "confdefs.h"
4531
4532 int main() {
4533 main()
4534 ; return 0; }
4535 EOF
4536 if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4537   rm -rf conftest*
4538   eval "ac_cv_lib_$ac_lib_var=yes"
4539 else
4540   echo "configure: failed program was:" >&5
4541   cat conftest.$ac_ext >&5
4542   rm -rf conftest*
4543   eval "ac_cv_lib_$ac_lib_var=no"
4544 fi
4545 rm -f conftest*
4546 LIBS="$ac_save_LIBS"
4547
4548 fi
4549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4550   echo "$ac_t""yes" 1>&6
4551     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4552     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4553   cat >> confdefs.h <<EOF
4554 #define $ac_tr_lib 1
4555 EOF
4556
4557   LIBS="-lm $LIBS"
4558
4559 else
4560   echo "$ac_t""no" 1>&6
4561 fi
4562
4563   for ac_func in nan copysignf
4564 do
4565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4566 echo "configure:4567: checking for $ac_func" >&5
4567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4568   echo $ac_n "(cached) $ac_c" 1>&6
4569 else
4570   cat > conftest.$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4573 /* System header to define __stub macros and hopefully few prototypes,
4574     which can conflict with char $ac_func(); below.  */
4575 #include <assert.h>
4576 /* Override any gcc2 internal prototype to avoid an error.  */
4577 /* We use char because int might match the return type of a gcc2
4578     builtin and then its argument prototype would still apply.  */
4579 char $ac_func();
4580
4581 int main() {
4582
4583 /* The GNU C library defines this for functions which it implements
4584     to always fail with ENOSYS.  Some functions are actually named
4585     something starting with __ and the normal name is an alias.  */
4586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4587 choke me
4588 #else
4589 $ac_func();
4590 #endif
4591
4592 ; return 0; }
4593 EOF
4594 if { (eval echo configure:4595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4595   rm -rf conftest*
4596   eval "ac_cv_func_$ac_func=yes"
4597 else
4598   echo "configure: failed program was:" >&5
4599   cat conftest.$ac_ext >&5
4600   rm -rf conftest*
4601   eval "ac_cv_func_$ac_func=no"
4602 fi
4603 rm -f conftest*
4604 fi
4605
4606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4607   echo "$ac_t""yes" 1>&6
4608     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4609   cat >> confdefs.h <<EOF
4610 #define $ac_tr_func 1
4611 EOF
4612  
4613 else
4614   echo "$ac_t""no" 1>&6
4615 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
4616 fi
4617 done
4618
4619
4620     for ac_func in __signbit
4621 do
4622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4623 echo "configure:4624: checking for $ac_func" >&5
4624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4625   echo $ac_n "(cached) $ac_c" 1>&6
4626 else
4627   cat > conftest.$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4630 /* System header to define __stub macros and hopefully few prototypes,
4631     which can conflict with char $ac_func(); below.  */
4632 #include <assert.h>
4633 /* Override any gcc2 internal prototype to avoid an error.  */
4634 /* We use char because int might match the return type of a gcc2
4635     builtin and then its argument prototype would still apply.  */
4636 char $ac_func();
4637
4638 int main() {
4639
4640 /* The GNU C library defines this for functions which it implements
4641     to always fail with ENOSYS.  Some functions are actually named
4642     something starting with __ and the normal name is an alias.  */
4643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4644 choke me
4645 #else
4646 $ac_func();
4647 #endif
4648
4649 ; return 0; }
4650 EOF
4651 if { (eval echo configure:4652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4652   rm -rf conftest*
4653   eval "ac_cv_func_$ac_func=yes"
4654 else
4655   echo "configure: failed program was:" >&5
4656   cat conftest.$ac_ext >&5
4657   rm -rf conftest*
4658   eval "ac_cv_func_$ac_func=no"
4659 fi
4660 rm -f conftest*
4661 fi
4662
4663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4664   echo "$ac_t""yes" 1>&6
4665     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4666   cat >> confdefs.h <<EOF
4667 #define $ac_tr_func 1
4668 EOF
4669  
4670 else
4671   echo "$ac_t""no" 1>&6
4672 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
4673 fi
4674 done
4675
4676   for ac_func in __signbitf
4677 do
4678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4679 echo "configure:4680: checking for $ac_func" >&5
4680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4681   echo $ac_n "(cached) $ac_c" 1>&6
4682 else
4683   cat > conftest.$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4686 /* System header to define __stub macros and hopefully few prototypes,
4687     which can conflict with char $ac_func(); below.  */
4688 #include <assert.h>
4689 /* Override any gcc2 internal prototype to avoid an error.  */
4690 /* We use char because int might match the return type of a gcc2
4691     builtin and then its argument prototype would still apply.  */
4692 char $ac_func();
4693
4694 int main() {
4695
4696 /* The GNU C library defines this for functions which it implements
4697     to always fail with ENOSYS.  Some functions are actually named
4698     something starting with __ and the normal name is an alias.  */
4699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4700 choke me
4701 #else
4702 $ac_func();
4703 #endif
4704
4705 ; return 0; }
4706 EOF
4707 if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4708   rm -rf conftest*
4709   eval "ac_cv_func_$ac_func=yes"
4710 else
4711   echo "configure: failed program was:" >&5
4712   cat conftest.$ac_ext >&5
4713   rm -rf conftest*
4714   eval "ac_cv_func_$ac_func=no"
4715 fi
4716 rm -f conftest*
4717 fi
4718
4719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4720   echo "$ac_t""yes" 1>&6
4721     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4722   cat >> confdefs.h <<EOF
4723 #define $ac_tr_func 1
4724 EOF
4725  
4726 else
4727   echo "$ac_t""no" 1>&6
4728 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
4729 fi
4730 done
4731
4732
4733           if test x$ac_cv_func_copysignl = x"yes"; then
4734     for ac_func in __signbitl
4735 do
4736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4737 echo "configure:4738: checking for $ac_func" >&5
4738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4739   echo $ac_n "(cached) $ac_c" 1>&6
4740 else
4741   cat > conftest.$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4744 /* System header to define __stub macros and hopefully few prototypes,
4745     which can conflict with char $ac_func(); below.  */
4746 #include <assert.h>
4747 /* Override any gcc2 internal prototype to avoid an error.  */
4748 /* We use char because int might match the return type of a gcc2
4749     builtin and then its argument prototype would still apply.  */
4750 char $ac_func();
4751
4752 int main() {
4753
4754 /* The GNU C library defines this for functions which it implements
4755     to always fail with ENOSYS.  Some functions are actually named
4756     something starting with __ and the normal name is an alias.  */
4757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4758 choke me
4759 #else
4760 $ac_func();
4761 #endif
4762
4763 ; return 0; }
4764 EOF
4765 if { (eval echo configure:4766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4766   rm -rf conftest*
4767   eval "ac_cv_func_$ac_func=yes"
4768 else
4769   echo "configure: failed program was:" >&5
4770   cat conftest.$ac_ext >&5
4771   rm -rf conftest*
4772   eval "ac_cv_func_$ac_func=no"
4773 fi
4774 rm -f conftest*
4775 fi
4776
4777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4778   echo "$ac_t""yes" 1>&6
4779     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4780   cat >> confdefs.h <<EOF
4781 #define $ac_tr_func 1
4782 EOF
4783  
4784 else
4785   echo "$ac_t""no" 1>&6
4786 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
4787 fi
4788 done
4789
4790   fi
4791
4792   if test -n "$LIBMATHOBJS"; then
4793     need_libmath=yes
4794   fi
4795   
4796
4797       
4798   
4799       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
4800 echo "configure:4801: checking for mbstate_t" >&5
4801   cat > conftest.$ac_ext <<EOF
4802 #line 4803 "configure"
4803 #include "confdefs.h"
4804 #include <wchar.h>
4805 int main() {
4806 mbstate_t teststate;
4807 ; return 0; }
4808 EOF
4809 if { (eval echo configure:4810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4810   rm -rf conftest*
4811   have_mbstate_t=yes
4812 else
4813   echo "configure: failed program was:" >&5
4814   cat conftest.$ac_ext >&5
4815   rm -rf conftest*
4816   have_mbstate_t=no
4817 fi
4818 rm -f conftest*
4819   echo "$ac_t""$have_mbstate_t" 1>&6
4820   if test x"$have_mbstate_t" = xyes; then
4821     cat >> confdefs.h <<\EOF
4822 #define HAVE_MBSTATE_T 1
4823 EOF
4824
4825   fi
4826
4827     for ac_hdr in wchar.h
4828 do
4829 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4830 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4831 echo "configure:4832: checking for $ac_hdr" >&5
4832 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4833   echo $ac_n "(cached) $ac_c" 1>&6
4834 else
4835   cat > conftest.$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4838 #include <$ac_hdr>
4839 EOF
4840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4841 { (eval echo configure:4842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4843 if test -z "$ac_err"; then
4844   rm -rf conftest*
4845   eval "ac_cv_header_$ac_safe=yes"
4846 else
4847   echo "$ac_err" >&5
4848   echo "configure: failed program was:" >&5
4849   cat conftest.$ac_ext >&5
4850   rm -rf conftest*
4851   eval "ac_cv_header_$ac_safe=no"
4852 fi
4853 rm -f conftest*
4854 fi
4855 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4856   echo "$ac_t""yes" 1>&6
4857     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4858   cat >> confdefs.h <<EOF
4859 #define $ac_tr_hdr 1
4860 EOF
4861  ac_has_wchar_h=yes
4862 else
4863   echo "$ac_t""no" 1>&6
4864 ac_has_wchar_h=no
4865 fi
4866 done
4867
4868   for ac_hdr in wctype.h
4869 do
4870 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4871 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4872 echo "configure:4873: checking for $ac_hdr" >&5
4873 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4874   echo $ac_n "(cached) $ac_c" 1>&6
4875 else
4876   cat > conftest.$ac_ext <<EOF
4877 #line 4878 "configure"
4878 #include "confdefs.h"
4879 #include <$ac_hdr>
4880 EOF
4881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882 { (eval echo configure:4883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4884 if test -z "$ac_err"; then
4885   rm -rf conftest*
4886   eval "ac_cv_header_$ac_safe=yes"
4887 else
4888   echo "$ac_err" >&5
4889   echo "configure: failed program was:" >&5
4890   cat conftest.$ac_ext >&5
4891   rm -rf conftest*
4892   eval "ac_cv_header_$ac_safe=no"
4893 fi
4894 rm -f conftest*
4895 fi
4896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4897   echo "$ac_t""yes" 1>&6
4898     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4899   cat >> confdefs.h <<EOF
4900 #define $ac_tr_hdr 1
4901 EOF
4902  ac_has_wctype_h=yes
4903 else
4904   echo "$ac_t""no" 1>&6
4905 ac_has_wctype_h=no
4906 fi
4907 done
4908
4909
4910     if test x"$ac_has_wchar_h" = xyes &&
4911      test x"$ac_has_wctype_h" = xyes &&
4912      test x"$enable_c_mbchar" != xno; then
4913
4914             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
4915 echo "configure:4916: checking for WCHAR_MIN and WCHAR_MAX" >&5
4916     cat > conftest.$ac_ext <<EOF
4917 #line 4918 "configure"
4918 #include "confdefs.h"
4919 #include <wchar.h>
4920 int main() {
4921 int i = WCHAR_MIN; int j = WCHAR_MAX;
4922 ; return 0; }
4923 EOF
4924 if { (eval echo configure:4925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4925   rm -rf conftest*
4926   has_wchar_minmax=yes
4927 else
4928   echo "configure: failed program was:" >&5
4929   cat conftest.$ac_ext >&5
4930   rm -rf conftest*
4931   has_wchar_minmax=no
4932 fi
4933 rm -f conftest*
4934     echo "$ac_t""$has_wchar_minmax" 1>&6
4935
4936             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
4937 echo "configure:4938: checking for WEOF" >&5
4938     cat > conftest.$ac_ext <<EOF
4939 #line 4940 "configure"
4940 #include "confdefs.h"
4941
4942       #include <wchar.h>
4943       #include <stddef.h>
4944 int main() {
4945 wint_t i = WEOF;
4946 ; return 0; }
4947 EOF
4948 if { (eval echo configure:4949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4949   rm -rf conftest*
4950   has_weof=yes
4951 else
4952   echo "configure: failed program was:" >&5
4953   cat conftest.$ac_ext >&5
4954   rm -rf conftest*
4955   has_weof=no
4956 fi
4957 rm -f conftest*
4958     echo "$ac_t""$has_weof" 1>&6
4959
4960         ac_wfuncs=yes
4961     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
4962 do
4963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4964 echo "configure:4965: checking for $ac_func" >&5
4965 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
4972     which can conflict with char $ac_func(); below.  */
4973 #include <assert.h>
4974 /* Override any gcc2 internal prototype to avoid an error.  */
4975 /* We use char because int might match the return type of a gcc2
4976     builtin and then its argument prototype would still apply.  */
4977 char $ac_func();
4978
4979 int main() {
4980
4981 /* The GNU C library defines this for functions which it implements
4982     to always fail with ENOSYS.  Some functions are actually named
4983     something starting with __ and the normal name is an alias.  */
4984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4985 choke me
4986 #else
4987 $ac_func();
4988 #endif
4989
4990 ; return 0; }
4991 EOF
4992 if { (eval echo configure:4993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4993   rm -rf conftest*
4994   eval "ac_cv_func_$ac_func=yes"
4995 else
4996   echo "configure: failed program was:" >&5
4997   cat conftest.$ac_ext >&5
4998   rm -rf conftest*
4999   eval "ac_cv_func_$ac_func=no"
5000 fi
5001 rm -f conftest*
5002 fi
5003
5004 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5005   echo "$ac_t""yes" 1>&6
5006     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5007   cat >> confdefs.h <<EOF
5008 #define $ac_tr_func 1
5009 EOF
5010  
5011 else
5012   echo "$ac_t""no" 1>&6
5013 \
5014     ac_wfuncs=no
5015 fi
5016 done
5017
5018
5019         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
5020     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
5021     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
5022     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
5023     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
5024     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
5025 do
5026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5027 echo "configure:5028: checking for $ac_func" >&5
5028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5029   echo $ac_n "(cached) $ac_c" 1>&6
5030 else
5031   cat > conftest.$ac_ext <<EOF
5032 #line 5033 "configure"
5033 #include "confdefs.h"
5034 /* System header to define __stub macros and hopefully few prototypes,
5035     which can conflict with char $ac_func(); below.  */
5036 #include <assert.h>
5037 /* Override any gcc2 internal prototype to avoid an error.  */
5038 /* We use char because int might match the return type of a gcc2
5039     builtin and then its argument prototype would still apply.  */
5040 char $ac_func();
5041
5042 int main() {
5043
5044 /* The GNU C library defines this for functions which it implements
5045     to always fail with ENOSYS.  Some functions are actually named
5046     something starting with __ and the normal name is an alias.  */
5047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5048 choke me
5049 #else
5050 $ac_func();
5051 #endif
5052
5053 ; return 0; }
5054 EOF
5055 if { (eval echo configure:5056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5056   rm -rf conftest*
5057   eval "ac_cv_func_$ac_func=yes"
5058 else
5059   echo "configure: failed program was:" >&5
5060   cat conftest.$ac_ext >&5
5061   rm -rf conftest*
5062   eval "ac_cv_func_$ac_func=no"
5063 fi
5064 rm -f conftest*
5065 fi
5066
5067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5068   echo "$ac_t""yes" 1>&6
5069     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5070   cat >> confdefs.h <<EOF
5071 #define $ac_tr_func 1
5072 EOF
5073  
5074 else
5075   echo "$ac_t""no" 1>&6
5076 \
5077     ac_wfuncs=no
5078 fi
5079 done
5080
5081
5082     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
5083 echo "configure:5084: checking for ISO C99 wchar_t support" >&5
5084     if test x"$has_weof" = xyes &&
5085        test x"$has_wchar_minmax" = xyes &&
5086        test x"$ac_wfuncs" = xyes; then
5087       ac_isoC99_wchar_t=yes
5088     else
5089       ac_isoC99_wchar_t=no
5090     fi
5091     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
5092
5093             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
5094 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
5095 echo "configure:5096: checking for iconv.h" >&5
5096 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5097   echo $ac_n "(cached) $ac_c" 1>&6
5098 else
5099   cat > conftest.$ac_ext <<EOF
5100 #line 5101 "configure"
5101 #include "confdefs.h"
5102 #include <iconv.h>
5103 EOF
5104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5105 { (eval echo configure:5106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5107 if test -z "$ac_err"; then
5108   rm -rf conftest*
5109   eval "ac_cv_header_$ac_safe=yes"
5110 else
5111   echo "$ac_err" >&5
5112   echo "configure: failed program was:" >&5
5113   cat conftest.$ac_ext >&5
5114   rm -rf conftest*
5115   eval "ac_cv_header_$ac_safe=no"
5116 fi
5117 rm -f conftest*
5118 fi
5119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5120   echo "$ac_t""yes" 1>&6
5121   ac_has_iconv_h=yes
5122 else
5123   echo "$ac_t""no" 1>&6
5124 ac_has_iconv_h=no
5125 fi
5126
5127     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
5128 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
5129 echo "configure:5130: checking for langinfo.h" >&5
5130 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5131   echo $ac_n "(cached) $ac_c" 1>&6
5132 else
5133   cat > conftest.$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5136 #include <langinfo.h>
5137 EOF
5138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5139 { (eval echo configure:5140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5141 if test -z "$ac_err"; then
5142   rm -rf conftest*
5143   eval "ac_cv_header_$ac_safe=yes"
5144 else
5145   echo "$ac_err" >&5
5146   echo "configure: failed program was:" >&5
5147   cat conftest.$ac_ext >&5
5148   rm -rf conftest*
5149   eval "ac_cv_header_$ac_safe=no"
5150 fi
5151 rm -f conftest*
5152 fi
5153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5154   echo "$ac_t""yes" 1>&6
5155   ac_has_langinfo_h=yes
5156 else
5157   echo "$ac_t""no" 1>&6
5158 ac_has_langinfo_h=no
5159 fi
5160
5161
5162         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
5163 echo "configure:5164: checking for iconv in -liconv" >&5
5164 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
5165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5166   echo $ac_n "(cached) $ac_c" 1>&6
5167 else
5168   ac_save_LIBS="$LIBS"
5169 LIBS="-liconv  $LIBS"
5170 cat > conftest.$ac_ext <<EOF
5171 #line 5172 "configure"
5172 #include "confdefs.h"
5173 /* Override any gcc2 internal prototype to avoid an error.  */
5174 /* We use char because int might match the return type of a gcc2
5175     builtin and then its argument prototype would still apply.  */
5176 char iconv();
5177
5178 int main() {
5179 iconv()
5180 ; return 0; }
5181 EOF
5182 if { (eval echo configure:5183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5183   rm -rf conftest*
5184   eval "ac_cv_lib_$ac_lib_var=yes"
5185 else
5186   echo "configure: failed program was:" >&5
5187   cat conftest.$ac_ext >&5
5188   rm -rf conftest*
5189   eval "ac_cv_lib_$ac_lib_var=no"
5190 fi
5191 rm -f conftest*
5192 LIBS="$ac_save_LIBS"
5193
5194 fi
5195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5196   echo "$ac_t""yes" 1>&6
5197   libiconv="-liconv"
5198 else
5199   echo "$ac_t""no" 1>&6
5200 fi
5201
5202     ac_save_LIBS="$LIBS"
5203     LIBS="$LIBS $libiconv"
5204
5205     for ac_func in iconv_open iconv_close iconv nl_langinfo
5206 do
5207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5208 echo "configure:5209: checking for $ac_func" >&5
5209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5210   echo $ac_n "(cached) $ac_c" 1>&6
5211 else
5212   cat > conftest.$ac_ext <<EOF
5213 #line 5214 "configure"
5214 #include "confdefs.h"
5215 /* System header to define __stub macros and hopefully few prototypes,
5216     which can conflict with char $ac_func(); below.  */
5217 #include <assert.h>
5218 /* Override any gcc2 internal prototype to avoid an error.  */
5219 /* We use char because int might match the return type of a gcc2
5220     builtin and then its argument prototype would still apply.  */
5221 char $ac_func();
5222
5223 int main() {
5224
5225 /* The GNU C library defines this for functions which it implements
5226     to always fail with ENOSYS.  Some functions are actually named
5227     something starting with __ and the normal name is an alias.  */
5228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5229 choke me
5230 #else
5231 $ac_func();
5232 #endif
5233
5234 ; return 0; }
5235 EOF
5236 if { (eval echo configure:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5237   rm -rf conftest*
5238   eval "ac_cv_func_$ac_func=yes"
5239 else
5240   echo "configure: failed program was:" >&5
5241   cat conftest.$ac_ext >&5
5242   rm -rf conftest*
5243   eval "ac_cv_func_$ac_func=no"
5244 fi
5245 rm -f conftest*
5246 fi
5247
5248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5249   echo "$ac_t""yes" 1>&6
5250     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5251   cat >> confdefs.h <<EOF
5252 #define $ac_tr_func 1
5253 EOF
5254  \
5255     ac_XPG2funcs=yes
5256 else
5257   echo "$ac_t""no" 1>&6
5258 ac_XPG2funcs=no
5259 fi
5260 done
5261
5262
5263     LIBS="$ac_save_LIBS"
5264
5265     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
5266 echo "configure:5267: checking for XPG2 wchar_t support" >&5
5267     if test x"$ac_has_iconv_h" = xyes &&
5268        test x"$ac_has_langinfo_h" = xyes &&
5269        test x"$ac_XPG2funcs" = xyes; then
5270       ac_XPG2_wchar_t=yes
5271     else
5272       ac_XPG2_wchar_t=no
5273     fi
5274     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
5275
5276             if test x"$ac_isoC99_wchar_t" = xyes && 
5277         test x"$ac_XPG2_wchar_t" = xyes; then
5278       cat >> confdefs.h <<\EOF
5279 #define _GLIBCPP_USE_WCHAR_T 1
5280 EOF
5281
5282       enable_wchar_t=yes
5283     fi
5284   fi
5285   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
5286 echo "configure:5287: checking for enabled wchar_t specializations" >&5
5287   echo "$ac_t""$enable_wchar_t" 1>&6    
5288
5289       cat >> confdefs.h <<\EOF
5290 #define HAVE_LC_MESSAGES 1
5291 EOF
5292
5293       cat >> confdefs.h <<\EOF
5294 #define HAVE_DRAND48 1
5295 EOF
5296
5297       cat >> confdefs.h <<\EOF
5298 #define HAVE_GETPAGESIZE 1
5299 EOF
5300
5301       cat >> confdefs.h <<\EOF
5302 #define HAVE_SETENV 1
5303 EOF
5304
5305       cat >> confdefs.h <<\EOF
5306 #define HAVE_SIGSETJMP 1
5307 EOF
5308
5309       cat >> confdefs.h <<\EOF
5310 #define HAVE_COPYSIGN 1
5311 EOF
5312
5313       cat >> confdefs.h <<\EOF
5314 #define HAVE_COPYSIGNF 1
5315 EOF
5316
5317       cat >> confdefs.h <<\EOF
5318 #define HAVE_FINITEF 1
5319 EOF
5320
5321       cat >> confdefs.h <<\EOF
5322 #define HAVE_FINITE 1
5323 EOF
5324
5325       cat >> confdefs.h <<\EOF
5326 #define HAVE_FREXPF 1
5327 EOF
5328
5329       cat >> confdefs.h <<\EOF
5330 #define HAVE_HYPOT 1
5331 EOF
5332
5333       cat >> confdefs.h <<\EOF
5334 #define HAVE_HYPOTF 1
5335 EOF
5336
5337       cat >> confdefs.h <<\EOF
5338 #define HAVE_ISINF 1
5339 EOF
5340
5341       cat >> confdefs.h <<\EOF
5342 #define HAVE_ISNAN 1
5343 EOF
5344
5345       cat >> confdefs.h <<\EOF
5346 #define HAVE_ISNANF 1
5347 EOF
5348
5349
5350       cat >> confdefs.h <<\EOF
5351 #define HAVE_MMAP 1
5352 EOF
5353
5354       cat >> confdefs.h <<\EOF
5355 #define HAVE_ACOSF 1
5356 EOF
5357
5358       cat >> confdefs.h <<\EOF
5359 #define HAVE_ASINF 1
5360 EOF
5361
5362       cat >> confdefs.h <<\EOF
5363 #define HAVE_ATAN2F 1
5364 EOF
5365
5366       cat >> confdefs.h <<\EOF
5367 #define HAVE_ATANF 1
5368 EOF
5369
5370       cat >> confdefs.h <<\EOF
5371 #define HAVE_CEILF 1
5372 EOF
5373
5374       cat >> confdefs.h <<\EOF
5375 #define HAVE_COPYSIGN 1
5376 EOF
5377
5378       cat >> confdefs.h <<\EOF
5379 #define HAVE_COPYSIGNF 1
5380 EOF
5381
5382       cat >> confdefs.h <<\EOF
5383 #define HAVE_COSF 1
5384 EOF
5385
5386       cat >> confdefs.h <<\EOF
5387 #define HAVE_COSHF 1
5388 EOF
5389
5390       cat >> confdefs.h <<\EOF
5391 #define HAVE_EXPF 1
5392 EOF
5393
5394       cat >> confdefs.h <<\EOF
5395 #define HAVE_FABSF 1
5396 EOF
5397
5398       cat >> confdefs.h <<\EOF
5399 #define HAVE_FLOORF 1
5400 EOF
5401
5402       cat >> confdefs.h <<\EOF
5403 #define HAVE_FMODF 1
5404 EOF
5405
5406       cat >> confdefs.h <<\EOF
5407 #define HAVE_FREXPF 1
5408 EOF
5409
5410       cat >> confdefs.h <<\EOF
5411 #define HAVE_LDEXPF 1
5412 EOF
5413
5414       cat >> confdefs.h <<\EOF
5415 #define HAVE_LOG10F 1
5416 EOF
5417
5418       cat >> confdefs.h <<\EOF
5419 #define HAVE_LOGF 1
5420 EOF
5421
5422       cat >> confdefs.h <<\EOF
5423 #define HAVE_MODFF 1
5424 EOF
5425
5426       cat >> confdefs.h <<\EOF
5427 #define HAVE_POWF 1
5428 EOF
5429
5430       cat >> confdefs.h <<\EOF
5431 #define HAVE_SINF 1
5432 EOF
5433
5434       cat >> confdefs.h <<\EOF
5435 #define HAVE_SINHF 1
5436 EOF
5437
5438       cat >> confdefs.h <<\EOF
5439 #define HAVE_SQRTF 1
5440 EOF
5441
5442       cat >> confdefs.h <<\EOF
5443 #define HAVE_TANF 1
5444 EOF
5445
5446       cat >> confdefs.h <<\EOF
5447 #define HAVE_TANHF 1
5448 EOF
5449
5450       if test x"long_double_math_on_this_cpu" = x"yes"; then
5451         cat >> confdefs.h <<\EOF
5452 #define HAVE_FINITEL 1
5453 EOF
5454
5455         cat >> confdefs.h <<\EOF
5456 #define HAVE_ISINFL 1
5457 EOF
5458
5459         cat >> confdefs.h <<\EOF
5460 #define HAVE_ISNANL 1
5461 EOF
5462
5463       fi
5464       ;;
5465     *-hpux*)
5466       os_include_dir="os/hpux"
5467       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
5468         machine/endian.h machine/param.h sys/machine.h sys/types.h \
5469         fp.h locale.h float.h inttypes.h
5470 do
5471 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5473 echo "configure:5474: checking for $ac_hdr" >&5
5474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5475   echo $ac_n "(cached) $ac_c" 1>&6
5476 else
5477   cat > conftest.$ac_ext <<EOF
5478 #line 5479 "configure"
5479 #include "confdefs.h"
5480 #include <$ac_hdr>
5481 EOF
5482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5483 { (eval echo configure:5484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5485 if test -z "$ac_err"; then
5486   rm -rf conftest*
5487   eval "ac_cv_header_$ac_safe=yes"
5488 else
5489   echo "$ac_err" >&5
5490   echo "configure: failed program was:" >&5
5491   cat conftest.$ac_ext >&5
5492   rm -rf conftest*
5493   eval "ac_cv_header_$ac_safe=no"
5494 fi
5495 rm -f conftest*
5496 fi
5497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5498   echo "$ac_t""yes" 1>&6
5499     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5500   cat >> confdefs.h <<EOF
5501 #define $ac_tr_hdr 1
5502 EOF
5503  
5504 else
5505   echo "$ac_t""no" 1>&6
5506 fi
5507 done
5508
5509       SECTION_FLAGS='-ffunction-sections -fdata-sections'
5510       
5511       
5512   # If we're not using GNU ld, then there's no point in even trying these
5513   # tests.  Check for that first.  We should have already tested for gld
5514   # by now (in libtool), but require it now just to be safe...
5515   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
5516   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
5517   
5518
5519   # The name set by libtool depends on the version of libtool.  Shame on us
5520   # for depending on an impl detail, but c'est la vie.  Older versions used
5521   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
5522   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
5523   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
5524   # set (hence we're using an older libtool), then set it.
5525   if test x${with_gnu_ld+set} != xset; then
5526     if test x${ac_cv_prog_gnu_ld+set} != xset; then
5527       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
5528       with_gnu_ld=no
5529     else
5530       with_gnu_ld=$ac_cv_prog_gnu_ld
5531     fi
5532   fi
5533
5534   # Start by getting the version number.  I think the libtool test already
5535   # does some of this, but throws away the result.
5536   
5537   ldver=`$LD --version 2>/dev/null | head -1 | \
5538          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
5539   
5540   glibcpp_gnu_ld_version=`echo $ldver | \
5541          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
5542
5543   # Set --gc-sections.
5544   if test "$with_gnu_ld" = "notbroken"; then
5545     # GNU ld it is!  Joy and bunny rabbits!
5546
5547     # All these tests are for C++; save the language and the compiler flags.
5548     # Need to do this so that g++ won't try to link in libstdc++
5549     ac_test_CFLAGS="${CFLAGS+set}"
5550     ac_save_CFLAGS="$CFLAGS"
5551     CFLAGS='-x c++  -Wl,--gc-sections'
5552
5553     # Check for -Wl,--gc-sections
5554     # XXX This test is broken at the moment, as symbols required for
5555     # linking are now in libsupc++ (not built yet.....). In addition,
5556     # this test has cored on solaris in the past. In addition,
5557     # --gc-sections doesn't really work at the moment (keeps on discarding
5558     # used sections, first .eh_frame and now some of the glibc sections for
5559     # iconv). Bzzzzt. Thanks for playing, maybe next time.
5560     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
5561 echo "configure:5562: checking for ld that supports -Wl,--gc-sections" >&5
5562     if test "$cross_compiling" = yes; then
5563   ac_sectionLDflags=yes
5564 else
5565   cat > conftest.$ac_ext <<EOF
5566 #line 5567 "configure"
5567 #include "confdefs.h"
5568
5569      int main(void)
5570      {
5571        try { throw 1; }
5572        catch (...) { };
5573        return 0;
5574      }
5575     
5576 EOF
5577 if { (eval echo configure:5578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5578 then
5579   ac_sectionLDflags=yes
5580 else
5581   echo "configure: failed program was:" >&5
5582   cat conftest.$ac_ext >&5
5583   rm -fr conftest*
5584   ac_sectionLDflags=no
5585 fi
5586 rm -fr conftest*
5587 fi
5588
5589     if test "$ac_test_CFLAGS" = set; then
5590       CFLAGS="$ac_save_CFLAGS"
5591     else
5592       # this is the suspicious part
5593       CFLAGS=''
5594     fi
5595     if test "$ac_sectionLDflags" = "yes"; then
5596       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
5597     fi
5598     echo "$ac_t""$ac_sectionLDflags" 1>&6
5599   fi
5600
5601   # Set linker optimization flags.
5602   if test x"$with_gnu_ld" = x"yes"; then
5603     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
5604   fi
5605
5606   
5607   
5608
5609       
5610         echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5611 echo "configure:5612: checking for main in -lm" >&5
5612 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5614   echo $ac_n "(cached) $ac_c" 1>&6
5615 else
5616   ac_save_LIBS="$LIBS"
5617 LIBS="-lm  $LIBS"
5618 cat > conftest.$ac_ext <<EOF
5619 #line 5620 "configure"
5620 #include "confdefs.h"
5621
5622 int main() {
5623 main()
5624 ; return 0; }
5625 EOF
5626 if { (eval echo configure:5627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5627   rm -rf conftest*
5628   eval "ac_cv_lib_$ac_lib_var=yes"
5629 else
5630   echo "configure: failed program was:" >&5
5631   cat conftest.$ac_ext >&5
5632   rm -rf conftest*
5633   eval "ac_cv_lib_$ac_lib_var=no"
5634 fi
5635 rm -f conftest*
5636 LIBS="$ac_save_LIBS"
5637
5638 fi
5639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5640   echo "$ac_t""yes" 1>&6
5641     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5642     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5643   cat >> confdefs.h <<EOF
5644 #define $ac_tr_lib 1
5645 EOF
5646
5647   LIBS="-lm $LIBS"
5648
5649 else
5650   echo "$ac_t""no" 1>&6
5651 fi
5652
5653   for ac_func in nan copysignf
5654 do
5655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5656 echo "configure:5657: checking for $ac_func" >&5
5657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5658   echo $ac_n "(cached) $ac_c" 1>&6
5659 else
5660   cat > conftest.$ac_ext <<EOF
5661 #line 5662 "configure"
5662 #include "confdefs.h"
5663 /* System header to define __stub macros and hopefully few prototypes,
5664     which can conflict with char $ac_func(); below.  */
5665 #include <assert.h>
5666 /* Override any gcc2 internal prototype to avoid an error.  */
5667 /* We use char because int might match the return type of a gcc2
5668     builtin and then its argument prototype would still apply.  */
5669 char $ac_func();
5670
5671 int main() {
5672
5673 /* The GNU C library defines this for functions which it implements
5674     to always fail with ENOSYS.  Some functions are actually named
5675     something starting with __ and the normal name is an alias.  */
5676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5677 choke me
5678 #else
5679 $ac_func();
5680 #endif
5681
5682 ; return 0; }
5683 EOF
5684 if { (eval echo configure:5685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5685   rm -rf conftest*
5686   eval "ac_cv_func_$ac_func=yes"
5687 else
5688   echo "configure: failed program was:" >&5
5689   cat conftest.$ac_ext >&5
5690   rm -rf conftest*
5691   eval "ac_cv_func_$ac_func=no"
5692 fi
5693 rm -f conftest*
5694 fi
5695
5696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5697   echo "$ac_t""yes" 1>&6
5698     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5699   cat >> confdefs.h <<EOF
5700 #define $ac_tr_func 1
5701 EOF
5702  
5703 else
5704   echo "$ac_t""no" 1>&6
5705 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
5706 fi
5707 done
5708
5709
5710     for ac_func in __signbit
5711 do
5712 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5713 echo "configure:5714: checking for $ac_func" >&5
5714 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5715   echo $ac_n "(cached) $ac_c" 1>&6
5716 else
5717   cat > conftest.$ac_ext <<EOF
5718 #line 5719 "configure"
5719 #include "confdefs.h"
5720 /* System header to define __stub macros and hopefully few prototypes,
5721     which can conflict with char $ac_func(); below.  */
5722 #include <assert.h>
5723 /* Override any gcc2 internal prototype to avoid an error.  */
5724 /* We use char because int might match the return type of a gcc2
5725     builtin and then its argument prototype would still apply.  */
5726 char $ac_func();
5727
5728 int main() {
5729
5730 /* The GNU C library defines this for functions which it implements
5731     to always fail with ENOSYS.  Some functions are actually named
5732     something starting with __ and the normal name is an alias.  */
5733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5734 choke me
5735 #else
5736 $ac_func();
5737 #endif
5738
5739 ; return 0; }
5740 EOF
5741 if { (eval echo configure:5742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5742   rm -rf conftest*
5743   eval "ac_cv_func_$ac_func=yes"
5744 else
5745   echo "configure: failed program was:" >&5
5746   cat conftest.$ac_ext >&5
5747   rm -rf conftest*
5748   eval "ac_cv_func_$ac_func=no"
5749 fi
5750 rm -f conftest*
5751 fi
5752
5753 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5754   echo "$ac_t""yes" 1>&6
5755     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5756   cat >> confdefs.h <<EOF
5757 #define $ac_tr_func 1
5758 EOF
5759  
5760 else
5761   echo "$ac_t""no" 1>&6
5762 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
5763 fi
5764 done
5765
5766   for ac_func in __signbitf
5767 do
5768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5769 echo "configure:5770: checking for $ac_func" >&5
5770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5771   echo $ac_n "(cached) $ac_c" 1>&6
5772 else
5773   cat > conftest.$ac_ext <<EOF
5774 #line 5775 "configure"
5775 #include "confdefs.h"
5776 /* System header to define __stub macros and hopefully few prototypes,
5777     which can conflict with char $ac_func(); below.  */
5778 #include <assert.h>
5779 /* Override any gcc2 internal prototype to avoid an error.  */
5780 /* We use char because int might match the return type of a gcc2
5781     builtin and then its argument prototype would still apply.  */
5782 char $ac_func();
5783
5784 int main() {
5785
5786 /* The GNU C library defines this for functions which it implements
5787     to always fail with ENOSYS.  Some functions are actually named
5788     something starting with __ and the normal name is an alias.  */
5789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5790 choke me
5791 #else
5792 $ac_func();
5793 #endif
5794
5795 ; return 0; }
5796 EOF
5797 if { (eval echo configure:5798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5798   rm -rf conftest*
5799   eval "ac_cv_func_$ac_func=yes"
5800 else
5801   echo "configure: failed program was:" >&5
5802   cat conftest.$ac_ext >&5
5803   rm -rf conftest*
5804   eval "ac_cv_func_$ac_func=no"
5805 fi
5806 rm -f conftest*
5807 fi
5808
5809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5810   echo "$ac_t""yes" 1>&6
5811     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5812   cat >> confdefs.h <<EOF
5813 #define $ac_tr_func 1
5814 EOF
5815  
5816 else
5817   echo "$ac_t""no" 1>&6
5818 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
5819 fi
5820 done
5821
5822
5823           if test x$ac_cv_func_copysignl = x"yes"; then
5824     for ac_func in __signbitl
5825 do
5826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5827 echo "configure:5828: checking for $ac_func" >&5
5828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5829   echo $ac_n "(cached) $ac_c" 1>&6
5830 else
5831   cat > conftest.$ac_ext <<EOF
5832 #line 5833 "configure"
5833 #include "confdefs.h"
5834 /* System header to define __stub macros and hopefully few prototypes,
5835     which can conflict with char $ac_func(); below.  */
5836 #include <assert.h>
5837 /* Override any gcc2 internal prototype to avoid an error.  */
5838 /* We use char because int might match the return type of a gcc2
5839     builtin and then its argument prototype would still apply.  */
5840 char $ac_func();
5841
5842 int main() {
5843
5844 /* The GNU C library defines this for functions which it implements
5845     to always fail with ENOSYS.  Some functions are actually named
5846     something starting with __ and the normal name is an alias.  */
5847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5848 choke me
5849 #else
5850 $ac_func();
5851 #endif
5852
5853 ; return 0; }
5854 EOF
5855 if { (eval echo configure:5856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5856   rm -rf conftest*
5857   eval "ac_cv_func_$ac_func=yes"
5858 else
5859   echo "configure: failed program was:" >&5
5860   cat conftest.$ac_ext >&5
5861   rm -rf conftest*
5862   eval "ac_cv_func_$ac_func=no"
5863 fi
5864 rm -f conftest*
5865 fi
5866
5867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5868   echo "$ac_t""yes" 1>&6
5869     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5870   cat >> confdefs.h <<EOF
5871 #define $ac_tr_func 1
5872 EOF
5873  
5874 else
5875   echo "$ac_t""no" 1>&6
5876 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
5877 fi
5878 done
5879
5880   fi
5881
5882   if test -n "$LIBMATHOBJS"; then
5883     need_libmath=yes
5884   fi
5885   
5886
5887       
5888   
5889       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
5890 echo "configure:5891: checking for mbstate_t" >&5
5891   cat > conftest.$ac_ext <<EOF
5892 #line 5893 "configure"
5893 #include "confdefs.h"
5894 #include <wchar.h>
5895 int main() {
5896 mbstate_t teststate;
5897 ; return 0; }
5898 EOF
5899 if { (eval echo configure:5900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5900   rm -rf conftest*
5901   have_mbstate_t=yes
5902 else
5903   echo "configure: failed program was:" >&5
5904   cat conftest.$ac_ext >&5
5905   rm -rf conftest*
5906   have_mbstate_t=no
5907 fi
5908 rm -f conftest*
5909   echo "$ac_t""$have_mbstate_t" 1>&6
5910   if test x"$have_mbstate_t" = xyes; then
5911     cat >> confdefs.h <<\EOF
5912 #define HAVE_MBSTATE_T 1
5913 EOF
5914
5915   fi
5916
5917     for ac_hdr in wchar.h
5918 do
5919 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5920 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5921 echo "configure:5922: checking for $ac_hdr" >&5
5922 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5923   echo $ac_n "(cached) $ac_c" 1>&6
5924 else
5925   cat > conftest.$ac_ext <<EOF
5926 #line 5927 "configure"
5927 #include "confdefs.h"
5928 #include <$ac_hdr>
5929 EOF
5930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5931 { (eval echo configure:5932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5933 if test -z "$ac_err"; then
5934   rm -rf conftest*
5935   eval "ac_cv_header_$ac_safe=yes"
5936 else
5937   echo "$ac_err" >&5
5938   echo "configure: failed program was:" >&5
5939   cat conftest.$ac_ext >&5
5940   rm -rf conftest*
5941   eval "ac_cv_header_$ac_safe=no"
5942 fi
5943 rm -f conftest*
5944 fi
5945 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5946   echo "$ac_t""yes" 1>&6
5947     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5948   cat >> confdefs.h <<EOF
5949 #define $ac_tr_hdr 1
5950 EOF
5951  ac_has_wchar_h=yes
5952 else
5953   echo "$ac_t""no" 1>&6
5954 ac_has_wchar_h=no
5955 fi
5956 done
5957
5958   for ac_hdr in wctype.h
5959 do
5960 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5962 echo "configure:5963: checking for $ac_hdr" >&5
5963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5964   echo $ac_n "(cached) $ac_c" 1>&6
5965 else
5966   cat > conftest.$ac_ext <<EOF
5967 #line 5968 "configure"
5968 #include "confdefs.h"
5969 #include <$ac_hdr>
5970 EOF
5971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5972 { (eval echo configure:5973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5974 if test -z "$ac_err"; then
5975   rm -rf conftest*
5976   eval "ac_cv_header_$ac_safe=yes"
5977 else
5978   echo "$ac_err" >&5
5979   echo "configure: failed program was:" >&5
5980   cat conftest.$ac_ext >&5
5981   rm -rf conftest*
5982   eval "ac_cv_header_$ac_safe=no"
5983 fi
5984 rm -f conftest*
5985 fi
5986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5987   echo "$ac_t""yes" 1>&6
5988     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5989   cat >> confdefs.h <<EOF
5990 #define $ac_tr_hdr 1
5991 EOF
5992  ac_has_wctype_h=yes
5993 else
5994   echo "$ac_t""no" 1>&6
5995 ac_has_wctype_h=no
5996 fi
5997 done
5998
5999
6000     if test x"$ac_has_wchar_h" = xyes &&
6001      test x"$ac_has_wctype_h" = xyes &&
6002      test x"$enable_c_mbchar" != xno; then
6003
6004             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6005 echo "configure:6006: checking for WCHAR_MIN and WCHAR_MAX" >&5
6006     cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6009 #include <wchar.h>
6010 int main() {
6011 int i = WCHAR_MIN; int j = WCHAR_MAX;
6012 ; return 0; }
6013 EOF
6014 if { (eval echo configure:6015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6015   rm -rf conftest*
6016   has_wchar_minmax=yes
6017 else
6018   echo "configure: failed program was:" >&5
6019   cat conftest.$ac_ext >&5
6020   rm -rf conftest*
6021   has_wchar_minmax=no
6022 fi
6023 rm -f conftest*
6024     echo "$ac_t""$has_wchar_minmax" 1>&6
6025
6026             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6027 echo "configure:6028: checking for WEOF" >&5
6028     cat > conftest.$ac_ext <<EOF
6029 #line 6030 "configure"
6030 #include "confdefs.h"
6031
6032       #include <wchar.h>
6033       #include <stddef.h>
6034 int main() {
6035 wint_t i = WEOF;
6036 ; return 0; }
6037 EOF
6038 if { (eval echo configure:6039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6039   rm -rf conftest*
6040   has_weof=yes
6041 else
6042   echo "configure: failed program was:" >&5
6043   cat conftest.$ac_ext >&5
6044   rm -rf conftest*
6045   has_weof=no
6046 fi
6047 rm -f conftest*
6048     echo "$ac_t""$has_weof" 1>&6
6049
6050         ac_wfuncs=yes
6051     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
6052 do
6053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054 echo "configure:6055: checking for $ac_func" >&5
6055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6056   echo $ac_n "(cached) $ac_c" 1>&6
6057 else
6058   cat > conftest.$ac_ext <<EOF
6059 #line 6060 "configure"
6060 #include "confdefs.h"
6061 /* System header to define __stub macros and hopefully few prototypes,
6062     which can conflict with char $ac_func(); below.  */
6063 #include <assert.h>
6064 /* Override any gcc2 internal prototype to avoid an error.  */
6065 /* We use char because int might match the return type of a gcc2
6066     builtin and then its argument prototype would still apply.  */
6067 char $ac_func();
6068
6069 int main() {
6070
6071 /* The GNU C library defines this for functions which it implements
6072     to always fail with ENOSYS.  Some functions are actually named
6073     something starting with __ and the normal name is an alias.  */
6074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6075 choke me
6076 #else
6077 $ac_func();
6078 #endif
6079
6080 ; return 0; }
6081 EOF
6082 if { (eval echo configure:6083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6083   rm -rf conftest*
6084   eval "ac_cv_func_$ac_func=yes"
6085 else
6086   echo "configure: failed program was:" >&5
6087   cat conftest.$ac_ext >&5
6088   rm -rf conftest*
6089   eval "ac_cv_func_$ac_func=no"
6090 fi
6091 rm -f conftest*
6092 fi
6093
6094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6095   echo "$ac_t""yes" 1>&6
6096     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6097   cat >> confdefs.h <<EOF
6098 #define $ac_tr_func 1
6099 EOF
6100  
6101 else
6102   echo "$ac_t""no" 1>&6
6103 \
6104     ac_wfuncs=no
6105 fi
6106 done
6107
6108
6109         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
6110     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
6111     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
6112     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
6113     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
6114     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
6115 do
6116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6117 echo "configure:6118: checking for $ac_func" >&5
6118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6119   echo $ac_n "(cached) $ac_c" 1>&6
6120 else
6121   cat > conftest.$ac_ext <<EOF
6122 #line 6123 "configure"
6123 #include "confdefs.h"
6124 /* System header to define __stub macros and hopefully few prototypes,
6125     which can conflict with char $ac_func(); below.  */
6126 #include <assert.h>
6127 /* Override any gcc2 internal prototype to avoid an error.  */
6128 /* We use char because int might match the return type of a gcc2
6129     builtin and then its argument prototype would still apply.  */
6130 char $ac_func();
6131
6132 int main() {
6133
6134 /* The GNU C library defines this for functions which it implements
6135     to always fail with ENOSYS.  Some functions are actually named
6136     something starting with __ and the normal name is an alias.  */
6137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6138 choke me
6139 #else
6140 $ac_func();
6141 #endif
6142
6143 ; return 0; }
6144 EOF
6145 if { (eval echo configure:6146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6146   rm -rf conftest*
6147   eval "ac_cv_func_$ac_func=yes"
6148 else
6149   echo "configure: failed program was:" >&5
6150   cat conftest.$ac_ext >&5
6151   rm -rf conftest*
6152   eval "ac_cv_func_$ac_func=no"
6153 fi
6154 rm -f conftest*
6155 fi
6156
6157 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6158   echo "$ac_t""yes" 1>&6
6159     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6160   cat >> confdefs.h <<EOF
6161 #define $ac_tr_func 1
6162 EOF
6163  
6164 else
6165   echo "$ac_t""no" 1>&6
6166 \
6167     ac_wfuncs=no
6168 fi
6169 done
6170
6171
6172     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
6173 echo "configure:6174: checking for ISO C99 wchar_t support" >&5
6174     if test x"$has_weof" = xyes &&
6175        test x"$has_wchar_minmax" = xyes &&
6176        test x"$ac_wfuncs" = xyes; then
6177       ac_isoC99_wchar_t=yes
6178     else
6179       ac_isoC99_wchar_t=no
6180     fi
6181     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
6182
6183             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
6184 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
6185 echo "configure:6186: checking for iconv.h" >&5
6186 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6187   echo $ac_n "(cached) $ac_c" 1>&6
6188 else
6189   cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6192 #include <iconv.h>
6193 EOF
6194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6195 { (eval echo configure:6196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6197 if test -z "$ac_err"; then
6198   rm -rf conftest*
6199   eval "ac_cv_header_$ac_safe=yes"
6200 else
6201   echo "$ac_err" >&5
6202   echo "configure: failed program was:" >&5
6203   cat conftest.$ac_ext >&5
6204   rm -rf conftest*
6205   eval "ac_cv_header_$ac_safe=no"
6206 fi
6207 rm -f conftest*
6208 fi
6209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6210   echo "$ac_t""yes" 1>&6
6211   ac_has_iconv_h=yes
6212 else
6213   echo "$ac_t""no" 1>&6
6214 ac_has_iconv_h=no
6215 fi
6216
6217     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
6218 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
6219 echo "configure:6220: checking for langinfo.h" >&5
6220 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6221   echo $ac_n "(cached) $ac_c" 1>&6
6222 else
6223   cat > conftest.$ac_ext <<EOF
6224 #line 6225 "configure"
6225 #include "confdefs.h"
6226 #include <langinfo.h>
6227 EOF
6228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6229 { (eval echo configure:6230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6231 if test -z "$ac_err"; then
6232   rm -rf conftest*
6233   eval "ac_cv_header_$ac_safe=yes"
6234 else
6235   echo "$ac_err" >&5
6236   echo "configure: failed program was:" >&5
6237   cat conftest.$ac_ext >&5
6238   rm -rf conftest*
6239   eval "ac_cv_header_$ac_safe=no"
6240 fi
6241 rm -f conftest*
6242 fi
6243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6244   echo "$ac_t""yes" 1>&6
6245   ac_has_langinfo_h=yes
6246 else
6247   echo "$ac_t""no" 1>&6
6248 ac_has_langinfo_h=no
6249 fi
6250
6251
6252         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6253 echo "configure:6254: checking for iconv in -liconv" >&5
6254 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6256   echo $ac_n "(cached) $ac_c" 1>&6
6257 else
6258   ac_save_LIBS="$LIBS"
6259 LIBS="-liconv  $LIBS"
6260 cat > conftest.$ac_ext <<EOF
6261 #line 6262 "configure"
6262 #include "confdefs.h"
6263 /* Override any gcc2 internal prototype to avoid an error.  */
6264 /* We use char because int might match the return type of a gcc2
6265     builtin and then its argument prototype would still apply.  */
6266 char iconv();
6267
6268 int main() {
6269 iconv()
6270 ; return 0; }
6271 EOF
6272 if { (eval echo configure:6273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6273   rm -rf conftest*
6274   eval "ac_cv_lib_$ac_lib_var=yes"
6275 else
6276   echo "configure: failed program was:" >&5
6277   cat conftest.$ac_ext >&5
6278   rm -rf conftest*
6279   eval "ac_cv_lib_$ac_lib_var=no"
6280 fi
6281 rm -f conftest*
6282 LIBS="$ac_save_LIBS"
6283
6284 fi
6285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6286   echo "$ac_t""yes" 1>&6
6287   libiconv="-liconv"
6288 else
6289   echo "$ac_t""no" 1>&6
6290 fi
6291
6292     ac_save_LIBS="$LIBS"
6293     LIBS="$LIBS $libiconv"
6294
6295     for ac_func in iconv_open iconv_close iconv nl_langinfo
6296 do
6297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6298 echo "configure:6299: checking for $ac_func" >&5
6299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6300   echo $ac_n "(cached) $ac_c" 1>&6
6301 else
6302   cat > conftest.$ac_ext <<EOF
6303 #line 6304 "configure"
6304 #include "confdefs.h"
6305 /* System header to define __stub macros and hopefully few prototypes,
6306     which can conflict with char $ac_func(); below.  */
6307 #include <assert.h>
6308 /* Override any gcc2 internal prototype to avoid an error.  */
6309 /* We use char because int might match the return type of a gcc2
6310     builtin and then its argument prototype would still apply.  */
6311 char $ac_func();
6312
6313 int main() {
6314
6315 /* The GNU C library defines this for functions which it implements
6316     to always fail with ENOSYS.  Some functions are actually named
6317     something starting with __ and the normal name is an alias.  */
6318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6319 choke me
6320 #else
6321 $ac_func();
6322 #endif
6323
6324 ; return 0; }
6325 EOF
6326 if { (eval echo configure:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6327   rm -rf conftest*
6328   eval "ac_cv_func_$ac_func=yes"
6329 else
6330   echo "configure: failed program was:" >&5
6331   cat conftest.$ac_ext >&5
6332   rm -rf conftest*
6333   eval "ac_cv_func_$ac_func=no"
6334 fi
6335 rm -f conftest*
6336 fi
6337
6338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6339   echo "$ac_t""yes" 1>&6
6340     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6341   cat >> confdefs.h <<EOF
6342 #define $ac_tr_func 1
6343 EOF
6344  \
6345     ac_XPG2funcs=yes
6346 else
6347   echo "$ac_t""no" 1>&6
6348 ac_XPG2funcs=no
6349 fi
6350 done
6351
6352
6353     LIBS="$ac_save_LIBS"
6354
6355     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
6356 echo "configure:6357: checking for XPG2 wchar_t support" >&5
6357     if test x"$ac_has_iconv_h" = xyes &&
6358        test x"$ac_has_langinfo_h" = xyes &&
6359        test x"$ac_XPG2funcs" = xyes; then
6360       ac_XPG2_wchar_t=yes
6361     else
6362       ac_XPG2_wchar_t=no
6363     fi
6364     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
6365
6366             if test x"$ac_isoC99_wchar_t" = xyes && 
6367         test x"$ac_XPG2_wchar_t" = xyes; then
6368       cat >> confdefs.h <<\EOF
6369 #define _GLIBCPP_USE_WCHAR_T 1
6370 EOF
6371
6372       enable_wchar_t=yes
6373     fi
6374   fi
6375   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
6376 echo "configure:6377: checking for enabled wchar_t specializations" >&5
6377   echo "$ac_t""$enable_wchar_t" 1>&6    
6378
6379       cat >> confdefs.h <<\EOF
6380 #define HAVE_COPYSIGN 1
6381 EOF
6382
6383       cat >> confdefs.h <<\EOF
6384 #define HAVE_COPYSIGNF 1
6385 EOF
6386
6387       cat >> confdefs.h <<\EOF
6388 #define HAVE_FREXPF 1
6389 EOF
6390
6391       cat >> confdefs.h <<\EOF
6392 #define HAVE_HYPOT 1
6393 EOF
6394
6395       case "$target" in
6396         *-hpux10*)
6397           cat >> confdefs.h <<\EOF
6398 #define HAVE_FINITE 1
6399 EOF
6400
6401           cat >> confdefs.h <<\EOF
6402 #define HAVE_FINITEF 1
6403 EOF
6404
6405           cat >> confdefs.h <<\EOF
6406 #define HAVE_ISINF 1
6407 EOF
6408
6409           cat >> confdefs.h <<\EOF
6410 #define HAVE_ISINFF 1
6411 EOF
6412
6413           cat >> confdefs.h <<\EOF
6414 #define HAVE_ISNAN 1
6415 EOF
6416
6417           cat >> confdefs.h <<\EOF
6418 #define HAVE_ISNANF 1
6419 EOF
6420
6421           ;;
6422       esac
6423       ;;
6424     *-linux*)
6425       os_include_dir="os/gnu-linux"
6426       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
6427         machine/endian.h machine/param.h sys/machine.h sys/types.h \
6428         fp.h locale.h float.h inttypes.h
6429 do
6430 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6431 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6432 echo "configure:6433: checking for $ac_hdr" >&5
6433 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6434   echo $ac_n "(cached) $ac_c" 1>&6
6435 else
6436   cat > conftest.$ac_ext <<EOF
6437 #line 6438 "configure"
6438 #include "confdefs.h"
6439 #include <$ac_hdr>
6440 EOF
6441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6442 { (eval echo configure:6443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6444 if test -z "$ac_err"; then
6445   rm -rf conftest*
6446   eval "ac_cv_header_$ac_safe=yes"
6447 else
6448   echo "$ac_err" >&5
6449   echo "configure: failed program was:" >&5
6450   cat conftest.$ac_ext >&5
6451   rm -rf conftest*
6452   eval "ac_cv_header_$ac_safe=no"
6453 fi
6454 rm -f conftest*
6455 fi
6456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6457   echo "$ac_t""yes" 1>&6
6458     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6459   cat >> confdefs.h <<EOF
6460 #define $ac_tr_hdr 1
6461 EOF
6462  
6463 else
6464   echo "$ac_t""no" 1>&6
6465 fi
6466 done
6467
6468       SECTION_FLAGS='-ffunction-sections -fdata-sections'
6469       
6470       
6471   # If we're not using GNU ld, then there's no point in even trying these
6472   # tests.  Check for that first.  We should have already tested for gld
6473   # by now (in libtool), but require it now just to be safe...
6474   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
6475   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
6476   
6477
6478   # The name set by libtool depends on the version of libtool.  Shame on us
6479   # for depending on an impl detail, but c'est la vie.  Older versions used
6480   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
6481   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
6482   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
6483   # set (hence we're using an older libtool), then set it.
6484   if test x${with_gnu_ld+set} != xset; then
6485     if test x${ac_cv_prog_gnu_ld+set} != xset; then
6486       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
6487       with_gnu_ld=no
6488     else
6489       with_gnu_ld=$ac_cv_prog_gnu_ld
6490     fi
6491   fi
6492
6493   # Start by getting the version number.  I think the libtool test already
6494   # does some of this, but throws away the result.
6495   
6496   ldver=`$LD --version 2>/dev/null | head -1 | \
6497          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
6498   
6499   glibcpp_gnu_ld_version=`echo $ldver | \
6500          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
6501
6502   # Set --gc-sections.
6503   if test "$with_gnu_ld" = "notbroken"; then
6504     # GNU ld it is!  Joy and bunny rabbits!
6505
6506     # All these tests are for C++; save the language and the compiler flags.
6507     # Need to do this so that g++ won't try to link in libstdc++
6508     ac_test_CFLAGS="${CFLAGS+set}"
6509     ac_save_CFLAGS="$CFLAGS"
6510     CFLAGS='-x c++  -Wl,--gc-sections'
6511
6512     # Check for -Wl,--gc-sections
6513     # XXX This test is broken at the moment, as symbols required for
6514     # linking are now in libsupc++ (not built yet.....). In addition,
6515     # this test has cored on solaris in the past. In addition,
6516     # --gc-sections doesn't really work at the moment (keeps on discarding
6517     # used sections, first .eh_frame and now some of the glibc sections for
6518     # iconv). Bzzzzt. Thanks for playing, maybe next time.
6519     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
6520 echo "configure:6521: checking for ld that supports -Wl,--gc-sections" >&5
6521     if test "$cross_compiling" = yes; then
6522   ac_sectionLDflags=yes
6523 else
6524   cat > conftest.$ac_ext <<EOF
6525 #line 6526 "configure"
6526 #include "confdefs.h"
6527
6528      int main(void)
6529      {
6530        try { throw 1; }
6531        catch (...) { };
6532        return 0;
6533      }
6534     
6535 EOF
6536 if { (eval echo configure:6537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6537 then
6538   ac_sectionLDflags=yes
6539 else
6540   echo "configure: failed program was:" >&5
6541   cat conftest.$ac_ext >&5
6542   rm -fr conftest*
6543   ac_sectionLDflags=no
6544 fi
6545 rm -fr conftest*
6546 fi
6547
6548     if test "$ac_test_CFLAGS" = set; then
6549       CFLAGS="$ac_save_CFLAGS"
6550     else
6551       # this is the suspicious part
6552       CFLAGS=''
6553     fi
6554     if test "$ac_sectionLDflags" = "yes"; then
6555       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
6556     fi
6557     echo "$ac_t""$ac_sectionLDflags" 1>&6
6558   fi
6559
6560   # Set linker optimization flags.
6561   if test x"$with_gnu_ld" = x"yes"; then
6562     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
6563   fi
6564
6565   
6566   
6567
6568       
6569         echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
6570 echo "configure:6571: checking for main in -lm" >&5
6571 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
6572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6573   echo $ac_n "(cached) $ac_c" 1>&6
6574 else
6575   ac_save_LIBS="$LIBS"
6576 LIBS="-lm  $LIBS"
6577 cat > conftest.$ac_ext <<EOF
6578 #line 6579 "configure"
6579 #include "confdefs.h"
6580
6581 int main() {
6582 main()
6583 ; return 0; }
6584 EOF
6585 if { (eval echo configure:6586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6586   rm -rf conftest*
6587   eval "ac_cv_lib_$ac_lib_var=yes"
6588 else
6589   echo "configure: failed program was:" >&5
6590   cat conftest.$ac_ext >&5
6591   rm -rf conftest*
6592   eval "ac_cv_lib_$ac_lib_var=no"
6593 fi
6594 rm -f conftest*
6595 LIBS="$ac_save_LIBS"
6596
6597 fi
6598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6599   echo "$ac_t""yes" 1>&6
6600     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6601     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6602   cat >> confdefs.h <<EOF
6603 #define $ac_tr_lib 1
6604 EOF
6605
6606   LIBS="-lm $LIBS"
6607
6608 else
6609   echo "$ac_t""no" 1>&6
6610 fi
6611
6612   for ac_func in nan copysignf
6613 do
6614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6615 echo "configure:6616: checking for $ac_func" >&5
6616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6617   echo $ac_n "(cached) $ac_c" 1>&6
6618 else
6619   cat > conftest.$ac_ext <<EOF
6620 #line 6621 "configure"
6621 #include "confdefs.h"
6622 /* System header to define __stub macros and hopefully few prototypes,
6623     which can conflict with char $ac_func(); below.  */
6624 #include <assert.h>
6625 /* Override any gcc2 internal prototype to avoid an error.  */
6626 /* We use char because int might match the return type of a gcc2
6627     builtin and then its argument prototype would still apply.  */
6628 char $ac_func();
6629
6630 int main() {
6631
6632 /* The GNU C library defines this for functions which it implements
6633     to always fail with ENOSYS.  Some functions are actually named
6634     something starting with __ and the normal name is an alias.  */
6635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6636 choke me
6637 #else
6638 $ac_func();
6639 #endif
6640
6641 ; return 0; }
6642 EOF
6643 if { (eval echo configure:6644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6644   rm -rf conftest*
6645   eval "ac_cv_func_$ac_func=yes"
6646 else
6647   echo "configure: failed program was:" >&5
6648   cat conftest.$ac_ext >&5
6649   rm -rf conftest*
6650   eval "ac_cv_func_$ac_func=no"
6651 fi
6652 rm -f conftest*
6653 fi
6654
6655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6656   echo "$ac_t""yes" 1>&6
6657     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6658   cat >> confdefs.h <<EOF
6659 #define $ac_tr_func 1
6660 EOF
6661  
6662 else
6663   echo "$ac_t""no" 1>&6
6664 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
6665 fi
6666 done
6667
6668
6669     for ac_func in __signbit
6670 do
6671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6672 echo "configure:6673: checking for $ac_func" >&5
6673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6674   echo $ac_n "(cached) $ac_c" 1>&6
6675 else
6676   cat > conftest.$ac_ext <<EOF
6677 #line 6678 "configure"
6678 #include "confdefs.h"
6679 /* System header to define __stub macros and hopefully few prototypes,
6680     which can conflict with char $ac_func(); below.  */
6681 #include <assert.h>
6682 /* Override any gcc2 internal prototype to avoid an error.  */
6683 /* We use char because int might match the return type of a gcc2
6684     builtin and then its argument prototype would still apply.  */
6685 char $ac_func();
6686
6687 int main() {
6688
6689 /* The GNU C library defines this for functions which it implements
6690     to always fail with ENOSYS.  Some functions are actually named
6691     something starting with __ and the normal name is an alias.  */
6692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6693 choke me
6694 #else
6695 $ac_func();
6696 #endif
6697
6698 ; return 0; }
6699 EOF
6700 if { (eval echo configure:6701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6701   rm -rf conftest*
6702   eval "ac_cv_func_$ac_func=yes"
6703 else
6704   echo "configure: failed program was:" >&5
6705   cat conftest.$ac_ext >&5
6706   rm -rf conftest*
6707   eval "ac_cv_func_$ac_func=no"
6708 fi
6709 rm -f conftest*
6710 fi
6711
6712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6713   echo "$ac_t""yes" 1>&6
6714     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6715   cat >> confdefs.h <<EOF
6716 #define $ac_tr_func 1
6717 EOF
6718  
6719 else
6720   echo "$ac_t""no" 1>&6
6721 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
6722 fi
6723 done
6724
6725   for ac_func in __signbitf
6726 do
6727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6728 echo "configure:6729: checking for $ac_func" >&5
6729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6730   echo $ac_n "(cached) $ac_c" 1>&6
6731 else
6732   cat > conftest.$ac_ext <<EOF
6733 #line 6734 "configure"
6734 #include "confdefs.h"
6735 /* System header to define __stub macros and hopefully few prototypes,
6736     which can conflict with char $ac_func(); below.  */
6737 #include <assert.h>
6738 /* Override any gcc2 internal prototype to avoid an error.  */
6739 /* We use char because int might match the return type of a gcc2
6740     builtin and then its argument prototype would still apply.  */
6741 char $ac_func();
6742
6743 int main() {
6744
6745 /* The GNU C library defines this for functions which it implements
6746     to always fail with ENOSYS.  Some functions are actually named
6747     something starting with __ and the normal name is an alias.  */
6748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6749 choke me
6750 #else
6751 $ac_func();
6752 #endif
6753
6754 ; return 0; }
6755 EOF
6756 if { (eval echo configure:6757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6757   rm -rf conftest*
6758   eval "ac_cv_func_$ac_func=yes"
6759 else
6760   echo "configure: failed program was:" >&5
6761   cat conftest.$ac_ext >&5
6762   rm -rf conftest*
6763   eval "ac_cv_func_$ac_func=no"
6764 fi
6765 rm -f conftest*
6766 fi
6767
6768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6769   echo "$ac_t""yes" 1>&6
6770     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6771   cat >> confdefs.h <<EOF
6772 #define $ac_tr_func 1
6773 EOF
6774  
6775 else
6776   echo "$ac_t""no" 1>&6
6777 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
6778 fi
6779 done
6780
6781
6782           if test x$ac_cv_func_copysignl = x"yes"; then
6783     for ac_func in __signbitl
6784 do
6785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6786 echo "configure:6787: checking for $ac_func" >&5
6787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6788   echo $ac_n "(cached) $ac_c" 1>&6
6789 else
6790   cat > conftest.$ac_ext <<EOF
6791 #line 6792 "configure"
6792 #include "confdefs.h"
6793 /* System header to define __stub macros and hopefully few prototypes,
6794     which can conflict with char $ac_func(); below.  */
6795 #include <assert.h>
6796 /* Override any gcc2 internal prototype to avoid an error.  */
6797 /* We use char because int might match the return type of a gcc2
6798     builtin and then its argument prototype would still apply.  */
6799 char $ac_func();
6800
6801 int main() {
6802
6803 /* The GNU C library defines this for functions which it implements
6804     to always fail with ENOSYS.  Some functions are actually named
6805     something starting with __ and the normal name is an alias.  */
6806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6807 choke me
6808 #else
6809 $ac_func();
6810 #endif
6811
6812 ; return 0; }
6813 EOF
6814 if { (eval echo configure:6815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6815   rm -rf conftest*
6816   eval "ac_cv_func_$ac_func=yes"
6817 else
6818   echo "configure: failed program was:" >&5
6819   cat conftest.$ac_ext >&5
6820   rm -rf conftest*
6821   eval "ac_cv_func_$ac_func=no"
6822 fi
6823 rm -f conftest*
6824 fi
6825
6826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6827   echo "$ac_t""yes" 1>&6
6828     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6829   cat >> confdefs.h <<EOF
6830 #define $ac_tr_func 1
6831 EOF
6832  
6833 else
6834   echo "$ac_t""no" 1>&6
6835 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
6836 fi
6837 done
6838
6839   fi
6840
6841   if test -n "$LIBMATHOBJS"; then
6842     need_libmath=yes
6843   fi
6844   
6845
6846       
6847   
6848       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
6849 echo "configure:6850: checking for mbstate_t" >&5
6850   cat > conftest.$ac_ext <<EOF
6851 #line 6852 "configure"
6852 #include "confdefs.h"
6853 #include <wchar.h>
6854 int main() {
6855 mbstate_t teststate;
6856 ; return 0; }
6857 EOF
6858 if { (eval echo configure:6859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6859   rm -rf conftest*
6860   have_mbstate_t=yes
6861 else
6862   echo "configure: failed program was:" >&5
6863   cat conftest.$ac_ext >&5
6864   rm -rf conftest*
6865   have_mbstate_t=no
6866 fi
6867 rm -f conftest*
6868   echo "$ac_t""$have_mbstate_t" 1>&6
6869   if test x"$have_mbstate_t" = xyes; then
6870     cat >> confdefs.h <<\EOF
6871 #define HAVE_MBSTATE_T 1
6872 EOF
6873
6874   fi
6875
6876     for ac_hdr in wchar.h
6877 do
6878 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6879 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6880 echo "configure:6881: checking for $ac_hdr" >&5
6881 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6882   echo $ac_n "(cached) $ac_c" 1>&6
6883 else
6884   cat > conftest.$ac_ext <<EOF
6885 #line 6886 "configure"
6886 #include "confdefs.h"
6887 #include <$ac_hdr>
6888 EOF
6889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6890 { (eval echo configure:6891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6892 if test -z "$ac_err"; then
6893   rm -rf conftest*
6894   eval "ac_cv_header_$ac_safe=yes"
6895 else
6896   echo "$ac_err" >&5
6897   echo "configure: failed program was:" >&5
6898   cat conftest.$ac_ext >&5
6899   rm -rf conftest*
6900   eval "ac_cv_header_$ac_safe=no"
6901 fi
6902 rm -f conftest*
6903 fi
6904 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6905   echo "$ac_t""yes" 1>&6
6906     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6907   cat >> confdefs.h <<EOF
6908 #define $ac_tr_hdr 1
6909 EOF
6910  ac_has_wchar_h=yes
6911 else
6912   echo "$ac_t""no" 1>&6
6913 ac_has_wchar_h=no
6914 fi
6915 done
6916
6917   for ac_hdr in wctype.h
6918 do
6919 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6920 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6921 echo "configure:6922: checking for $ac_hdr" >&5
6922 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6923   echo $ac_n "(cached) $ac_c" 1>&6
6924 else
6925   cat > conftest.$ac_ext <<EOF
6926 #line 6927 "configure"
6927 #include "confdefs.h"
6928 #include <$ac_hdr>
6929 EOF
6930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6931 { (eval echo configure:6932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6933 if test -z "$ac_err"; then
6934   rm -rf conftest*
6935   eval "ac_cv_header_$ac_safe=yes"
6936 else
6937   echo "$ac_err" >&5
6938   echo "configure: failed program was:" >&5
6939   cat conftest.$ac_ext >&5
6940   rm -rf conftest*
6941   eval "ac_cv_header_$ac_safe=no"
6942 fi
6943 rm -f conftest*
6944 fi
6945 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6946   echo "$ac_t""yes" 1>&6
6947     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6948   cat >> confdefs.h <<EOF
6949 #define $ac_tr_hdr 1
6950 EOF
6951  ac_has_wctype_h=yes
6952 else
6953   echo "$ac_t""no" 1>&6
6954 ac_has_wctype_h=no
6955 fi
6956 done
6957
6958
6959     if test x"$ac_has_wchar_h" = xyes &&
6960      test x"$ac_has_wctype_h" = xyes &&
6961      test x"$enable_c_mbchar" != xno; then
6962
6963             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
6964 echo "configure:6965: checking for WCHAR_MIN and WCHAR_MAX" >&5
6965     cat > conftest.$ac_ext <<EOF
6966 #line 6967 "configure"
6967 #include "confdefs.h"
6968 #include <wchar.h>
6969 int main() {
6970 int i = WCHAR_MIN; int j = WCHAR_MAX;
6971 ; return 0; }
6972 EOF
6973 if { (eval echo configure:6974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6974   rm -rf conftest*
6975   has_wchar_minmax=yes
6976 else
6977   echo "configure: failed program was:" >&5
6978   cat conftest.$ac_ext >&5
6979   rm -rf conftest*
6980   has_wchar_minmax=no
6981 fi
6982 rm -f conftest*
6983     echo "$ac_t""$has_wchar_minmax" 1>&6
6984
6985             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
6986 echo "configure:6987: checking for WEOF" >&5
6987     cat > conftest.$ac_ext <<EOF
6988 #line 6989 "configure"
6989 #include "confdefs.h"
6990
6991       #include <wchar.h>
6992       #include <stddef.h>
6993 int main() {
6994 wint_t i = WEOF;
6995 ; return 0; }
6996 EOF
6997 if { (eval echo configure:6998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6998   rm -rf conftest*
6999   has_weof=yes
7000 else
7001   echo "configure: failed program was:" >&5
7002   cat conftest.$ac_ext >&5
7003   rm -rf conftest*
7004   has_weof=no
7005 fi
7006 rm -f conftest*
7007     echo "$ac_t""$has_weof" 1>&6
7008
7009         ac_wfuncs=yes
7010     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7011 do
7012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7013 echo "configure:7014: checking for $ac_func" >&5
7014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7015   echo $ac_n "(cached) $ac_c" 1>&6
7016 else
7017   cat > conftest.$ac_ext <<EOF
7018 #line 7019 "configure"
7019 #include "confdefs.h"
7020 /* System header to define __stub macros and hopefully few prototypes,
7021     which can conflict with char $ac_func(); below.  */
7022 #include <assert.h>
7023 /* Override any gcc2 internal prototype to avoid an error.  */
7024 /* We use char because int might match the return type of a gcc2
7025     builtin and then its argument prototype would still apply.  */
7026 char $ac_func();
7027
7028 int main() {
7029
7030 /* The GNU C library defines this for functions which it implements
7031     to always fail with ENOSYS.  Some functions are actually named
7032     something starting with __ and the normal name is an alias.  */
7033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7034 choke me
7035 #else
7036 $ac_func();
7037 #endif
7038
7039 ; return 0; }
7040 EOF
7041 if { (eval echo configure:7042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7042   rm -rf conftest*
7043   eval "ac_cv_func_$ac_func=yes"
7044 else
7045   echo "configure: failed program was:" >&5
7046   cat conftest.$ac_ext >&5
7047   rm -rf conftest*
7048   eval "ac_cv_func_$ac_func=no"
7049 fi
7050 rm -f conftest*
7051 fi
7052
7053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7054   echo "$ac_t""yes" 1>&6
7055     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7056   cat >> confdefs.h <<EOF
7057 #define $ac_tr_func 1
7058 EOF
7059  
7060 else
7061   echo "$ac_t""no" 1>&6
7062 \
7063     ac_wfuncs=no
7064 fi
7065 done
7066
7067
7068         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
7069     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
7070     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
7071     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
7072     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
7073     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
7074 do
7075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7076 echo "configure:7077: checking for $ac_func" >&5
7077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7078   echo $ac_n "(cached) $ac_c" 1>&6
7079 else
7080   cat > conftest.$ac_ext <<EOF
7081 #line 7082 "configure"
7082 #include "confdefs.h"
7083 /* System header to define __stub macros and hopefully few prototypes,
7084     which can conflict with char $ac_func(); below.  */
7085 #include <assert.h>
7086 /* Override any gcc2 internal prototype to avoid an error.  */
7087 /* We use char because int might match the return type of a gcc2
7088     builtin and then its argument prototype would still apply.  */
7089 char $ac_func();
7090
7091 int main() {
7092
7093 /* The GNU C library defines this for functions which it implements
7094     to always fail with ENOSYS.  Some functions are actually named
7095     something starting with __ and the normal name is an alias.  */
7096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7097 choke me
7098 #else
7099 $ac_func();
7100 #endif
7101
7102 ; return 0; }
7103 EOF
7104 if { (eval echo configure:7105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7105   rm -rf conftest*
7106   eval "ac_cv_func_$ac_func=yes"
7107 else
7108   echo "configure: failed program was:" >&5
7109   cat conftest.$ac_ext >&5
7110   rm -rf conftest*
7111   eval "ac_cv_func_$ac_func=no"
7112 fi
7113 rm -f conftest*
7114 fi
7115
7116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7117   echo "$ac_t""yes" 1>&6
7118     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7119   cat >> confdefs.h <<EOF
7120 #define $ac_tr_func 1
7121 EOF
7122  
7123 else
7124   echo "$ac_t""no" 1>&6
7125 \
7126     ac_wfuncs=no
7127 fi
7128 done
7129
7130
7131     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
7132 echo "configure:7133: checking for ISO C99 wchar_t support" >&5
7133     if test x"$has_weof" = xyes &&
7134        test x"$has_wchar_minmax" = xyes &&
7135        test x"$ac_wfuncs" = xyes; then
7136       ac_isoC99_wchar_t=yes
7137     else
7138       ac_isoC99_wchar_t=no
7139     fi
7140     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
7141
7142             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7143 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7144 echo "configure:7145: checking for iconv.h" >&5
7145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7146   echo $ac_n "(cached) $ac_c" 1>&6
7147 else
7148   cat > conftest.$ac_ext <<EOF
7149 #line 7150 "configure"
7150 #include "confdefs.h"
7151 #include <iconv.h>
7152 EOF
7153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7154 { (eval echo configure:7155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7155 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7156 if test -z "$ac_err"; then
7157   rm -rf conftest*
7158   eval "ac_cv_header_$ac_safe=yes"
7159 else
7160   echo "$ac_err" >&5
7161   echo "configure: failed program was:" >&5
7162   cat conftest.$ac_ext >&5
7163   rm -rf conftest*
7164   eval "ac_cv_header_$ac_safe=no"
7165 fi
7166 rm -f conftest*
7167 fi
7168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7169   echo "$ac_t""yes" 1>&6
7170   ac_has_iconv_h=yes
7171 else
7172   echo "$ac_t""no" 1>&6
7173 ac_has_iconv_h=no
7174 fi
7175
7176     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
7177 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
7178 echo "configure:7179: checking for langinfo.h" >&5
7179 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7180   echo $ac_n "(cached) $ac_c" 1>&6
7181 else
7182   cat > conftest.$ac_ext <<EOF
7183 #line 7184 "configure"
7184 #include "confdefs.h"
7185 #include <langinfo.h>
7186 EOF
7187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7188 { (eval echo configure:7189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7190 if test -z "$ac_err"; then
7191   rm -rf conftest*
7192   eval "ac_cv_header_$ac_safe=yes"
7193 else
7194   echo "$ac_err" >&5
7195   echo "configure: failed program was:" >&5
7196   cat conftest.$ac_ext >&5
7197   rm -rf conftest*
7198   eval "ac_cv_header_$ac_safe=no"
7199 fi
7200 rm -f conftest*
7201 fi
7202 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7203   echo "$ac_t""yes" 1>&6
7204   ac_has_langinfo_h=yes
7205 else
7206   echo "$ac_t""no" 1>&6
7207 ac_has_langinfo_h=no
7208 fi
7209
7210
7211         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7212 echo "configure:7213: checking for iconv in -liconv" >&5
7213 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
7214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7215   echo $ac_n "(cached) $ac_c" 1>&6
7216 else
7217   ac_save_LIBS="$LIBS"
7218 LIBS="-liconv  $LIBS"
7219 cat > conftest.$ac_ext <<EOF
7220 #line 7221 "configure"
7221 #include "confdefs.h"
7222 /* Override any gcc2 internal prototype to avoid an error.  */
7223 /* We use char because int might match the return type of a gcc2
7224     builtin and then its argument prototype would still apply.  */
7225 char iconv();
7226
7227 int main() {
7228 iconv()
7229 ; return 0; }
7230 EOF
7231 if { (eval echo configure:7232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7232   rm -rf conftest*
7233   eval "ac_cv_lib_$ac_lib_var=yes"
7234 else
7235   echo "configure: failed program was:" >&5
7236   cat conftest.$ac_ext >&5
7237   rm -rf conftest*
7238   eval "ac_cv_lib_$ac_lib_var=no"
7239 fi
7240 rm -f conftest*
7241 LIBS="$ac_save_LIBS"
7242
7243 fi
7244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7245   echo "$ac_t""yes" 1>&6
7246   libiconv="-liconv"
7247 else
7248   echo "$ac_t""no" 1>&6
7249 fi
7250
7251     ac_save_LIBS="$LIBS"
7252     LIBS="$LIBS $libiconv"
7253
7254     for ac_func in iconv_open iconv_close iconv nl_langinfo
7255 do
7256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7257 echo "configure:7258: checking for $ac_func" >&5
7258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7259   echo $ac_n "(cached) $ac_c" 1>&6
7260 else
7261   cat > conftest.$ac_ext <<EOF
7262 #line 7263 "configure"
7263 #include "confdefs.h"
7264 /* System header to define __stub macros and hopefully few prototypes,
7265     which can conflict with char $ac_func(); below.  */
7266 #include <assert.h>
7267 /* Override any gcc2 internal prototype to avoid an error.  */
7268 /* We use char because int might match the return type of a gcc2
7269     builtin and then its argument prototype would still apply.  */
7270 char $ac_func();
7271
7272 int main() {
7273
7274 /* The GNU C library defines this for functions which it implements
7275     to always fail with ENOSYS.  Some functions are actually named
7276     something starting with __ and the normal name is an alias.  */
7277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7278 choke me
7279 #else
7280 $ac_func();
7281 #endif
7282
7283 ; return 0; }
7284 EOF
7285 if { (eval echo configure:7286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7286   rm -rf conftest*
7287   eval "ac_cv_func_$ac_func=yes"
7288 else
7289   echo "configure: failed program was:" >&5
7290   cat conftest.$ac_ext >&5
7291   rm -rf conftest*
7292   eval "ac_cv_func_$ac_func=no"
7293 fi
7294 rm -f conftest*
7295 fi
7296
7297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7298   echo "$ac_t""yes" 1>&6
7299     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7300   cat >> confdefs.h <<EOF
7301 #define $ac_tr_func 1
7302 EOF
7303  \
7304     ac_XPG2funcs=yes
7305 else
7306   echo "$ac_t""no" 1>&6
7307 ac_XPG2funcs=no
7308 fi
7309 done
7310
7311
7312     LIBS="$ac_save_LIBS"
7313
7314     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
7315 echo "configure:7316: checking for XPG2 wchar_t support" >&5
7316     if test x"$ac_has_iconv_h" = xyes &&
7317        test x"$ac_has_langinfo_h" = xyes &&
7318        test x"$ac_XPG2funcs" = xyes; then
7319       ac_XPG2_wchar_t=yes
7320     else
7321       ac_XPG2_wchar_t=no
7322     fi
7323     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
7324
7325             if test x"$ac_isoC99_wchar_t" = xyes && 
7326         test x"$ac_XPG2_wchar_t" = xyes; then
7327       cat >> confdefs.h <<\EOF
7328 #define _GLIBCPP_USE_WCHAR_T 1
7329 EOF
7330
7331       enable_wchar_t=yes
7332     fi
7333   fi
7334   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
7335 echo "configure:7336: checking for enabled wchar_t specializations" >&5
7336   echo "$ac_t""$enable_wchar_t" 1>&6    
7337
7338       cat >> confdefs.h <<\EOF
7339 #define HAVE_COPYSIGN 1
7340 EOF
7341
7342       cat >> confdefs.h <<\EOF
7343 #define HAVE_COPYSIGNF 1
7344 EOF
7345
7346       cat >> confdefs.h <<\EOF
7347 #define HAVE_FINITE 1
7348 EOF
7349
7350       cat >> confdefs.h <<\EOF
7351 #define HAVE_FINITEF 1
7352 EOF
7353
7354       cat >> confdefs.h <<\EOF
7355 #define HAVE_FREXPF 1
7356 EOF
7357
7358       cat >> confdefs.h <<\EOF
7359 #define HAVE_HYPOTF 1
7360 EOF
7361
7362       cat >> confdefs.h <<\EOF
7363 #define HAVE_ISINF 1
7364 EOF
7365
7366       cat >> confdefs.h <<\EOF
7367 #define HAVE_ISINFF 1
7368 EOF
7369
7370       cat >> confdefs.h <<\EOF
7371 #define HAVE_ISNAN 1
7372 EOF
7373
7374       cat >> confdefs.h <<\EOF
7375 #define HAVE_ISNANF 1
7376 EOF
7377
7378       cat >> confdefs.h <<\EOF
7379 #define HAVE_SINCOS 1
7380 EOF
7381
7382       cat >> confdefs.h <<\EOF
7383 #define HAVE_SINCOSF 1
7384 EOF
7385
7386       if test x"long_double_math_on_this_cpu" = x"yes"; then
7387         cat >> confdefs.h <<\EOF
7388 #define HAVE_FINITEL 1
7389 EOF
7390
7391         cat >> confdefs.h <<\EOF
7392 #define HAVE_HYPOTL 1
7393 EOF
7394
7395         cat >> confdefs.h <<\EOF
7396 #define HAVE_ISINFL 1
7397 EOF
7398
7399         cat >> confdefs.h <<\EOF
7400 #define HAVE_ISNANL 1
7401 EOF
7402
7403       fi
7404       ;;
7405     *-mingw32*)
7406       os_include_dir="os/mingw32"
7407       for ac_hdr in sys/types.h locale.h float.h
7408 do
7409 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7410 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7411 echo "configure:7412: checking for $ac_hdr" >&5
7412 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7413   echo $ac_n "(cached) $ac_c" 1>&6
7414 else
7415   cat > conftest.$ac_ext <<EOF
7416 #line 7417 "configure"
7417 #include "confdefs.h"
7418 #include <$ac_hdr>
7419 EOF
7420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7421 { (eval echo configure:7422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7423 if test -z "$ac_err"; then
7424   rm -rf conftest*
7425   eval "ac_cv_header_$ac_safe=yes"
7426 else
7427   echo "$ac_err" >&5
7428   echo "configure: failed program was:" >&5
7429   cat conftest.$ac_ext >&5
7430   rm -rf conftest*
7431   eval "ac_cv_header_$ac_safe=no"
7432 fi
7433 rm -f conftest*
7434 fi
7435 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7436   echo "$ac_t""yes" 1>&6
7437     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7438   cat >> confdefs.h <<EOF
7439 #define $ac_tr_hdr 1
7440 EOF
7441  
7442 else
7443   echo "$ac_t""no" 1>&6
7444 fi
7445 done
7446
7447       
7448   # If we're not using GNU ld, then there's no point in even trying these
7449   # tests.  Check for that first.  We should have already tested for gld
7450   # by now (in libtool), but require it now just to be safe...
7451   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7452   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7453   
7454
7455   # The name set by libtool depends on the version of libtool.  Shame on us
7456   # for depending on an impl detail, but c'est la vie.  Older versions used
7457   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7458   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7459   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7460   # set (hence we're using an older libtool), then set it.
7461   if test x${with_gnu_ld+set} != xset; then
7462     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7463       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7464       with_gnu_ld=no
7465     else
7466       with_gnu_ld=$ac_cv_prog_gnu_ld
7467     fi
7468   fi
7469
7470   # Start by getting the version number.  I think the libtool test already
7471   # does some of this, but throws away the result.
7472   
7473   ldver=`$LD --version 2>/dev/null | head -1 | \
7474          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7475   
7476   glibcpp_gnu_ld_version=`echo $ldver | \
7477          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7478
7479   # Set --gc-sections.
7480   if test "$with_gnu_ld" = "notbroken"; then
7481     # GNU ld it is!  Joy and bunny rabbits!
7482
7483     # All these tests are for C++; save the language and the compiler flags.
7484     # Need to do this so that g++ won't try to link in libstdc++
7485     ac_test_CFLAGS="${CFLAGS+set}"
7486     ac_save_CFLAGS="$CFLAGS"
7487     CFLAGS='-x c++  -Wl,--gc-sections'
7488
7489     # Check for -Wl,--gc-sections
7490     # XXX This test is broken at the moment, as symbols required for
7491     # linking are now in libsupc++ (not built yet.....). In addition,
7492     # this test has cored on solaris in the past. In addition,
7493     # --gc-sections doesn't really work at the moment (keeps on discarding
7494     # used sections, first .eh_frame and now some of the glibc sections for
7495     # iconv). Bzzzzt. Thanks for playing, maybe next time.
7496     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
7497 echo "configure:7498: checking for ld that supports -Wl,--gc-sections" >&5
7498     if test "$cross_compiling" = yes; then
7499   ac_sectionLDflags=yes
7500 else
7501   cat > conftest.$ac_ext <<EOF
7502 #line 7503 "configure"
7503 #include "confdefs.h"
7504
7505      int main(void)
7506      {
7507        try { throw 1; }
7508        catch (...) { };
7509        return 0;
7510      }
7511     
7512 EOF
7513 if { (eval echo configure:7514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7514 then
7515   ac_sectionLDflags=yes
7516 else
7517   echo "configure: failed program was:" >&5
7518   cat conftest.$ac_ext >&5
7519   rm -fr conftest*
7520   ac_sectionLDflags=no
7521 fi
7522 rm -fr conftest*
7523 fi
7524
7525     if test "$ac_test_CFLAGS" = set; then
7526       CFLAGS="$ac_save_CFLAGS"
7527     else
7528       # this is the suspicious part
7529       CFLAGS=''
7530     fi
7531     if test "$ac_sectionLDflags" = "yes"; then
7532       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7533     fi
7534     echo "$ac_t""$ac_sectionLDflags" 1>&6
7535   fi
7536
7537   # Set linker optimization flags.
7538   if test x"$with_gnu_ld" = x"yes"; then
7539     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7540   fi
7541
7542   
7543   
7544
7545       
7546         echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
7547 echo "configure:7548: checking for main in -lm" >&5
7548 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
7549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7550   echo $ac_n "(cached) $ac_c" 1>&6
7551 else
7552   ac_save_LIBS="$LIBS"
7553 LIBS="-lm  $LIBS"
7554 cat > conftest.$ac_ext <<EOF
7555 #line 7556 "configure"
7556 #include "confdefs.h"
7557
7558 int main() {
7559 main()
7560 ; return 0; }
7561 EOF
7562 if { (eval echo configure:7563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7563   rm -rf conftest*
7564   eval "ac_cv_lib_$ac_lib_var=yes"
7565 else
7566   echo "configure: failed program was:" >&5
7567   cat conftest.$ac_ext >&5
7568   rm -rf conftest*
7569   eval "ac_cv_lib_$ac_lib_var=no"
7570 fi
7571 rm -f conftest*
7572 LIBS="$ac_save_LIBS"
7573
7574 fi
7575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7576   echo "$ac_t""yes" 1>&6
7577     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7578     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7579   cat >> confdefs.h <<EOF
7580 #define $ac_tr_lib 1
7581 EOF
7582
7583   LIBS="-lm $LIBS"
7584
7585 else
7586   echo "$ac_t""no" 1>&6
7587 fi
7588
7589   for ac_func in nan copysignf
7590 do
7591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7592 echo "configure:7593: checking for $ac_func" >&5
7593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7594   echo $ac_n "(cached) $ac_c" 1>&6
7595 else
7596   cat > conftest.$ac_ext <<EOF
7597 #line 7598 "configure"
7598 #include "confdefs.h"
7599 /* System header to define __stub macros and hopefully few prototypes,
7600     which can conflict with char $ac_func(); below.  */
7601 #include <assert.h>
7602 /* Override any gcc2 internal prototype to avoid an error.  */
7603 /* We use char because int might match the return type of a gcc2
7604     builtin and then its argument prototype would still apply.  */
7605 char $ac_func();
7606
7607 int main() {
7608
7609 /* The GNU C library defines this for functions which it implements
7610     to always fail with ENOSYS.  Some functions are actually named
7611     something starting with __ and the normal name is an alias.  */
7612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7613 choke me
7614 #else
7615 $ac_func();
7616 #endif
7617
7618 ; return 0; }
7619 EOF
7620 if { (eval echo configure:7621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7621   rm -rf conftest*
7622   eval "ac_cv_func_$ac_func=yes"
7623 else
7624   echo "configure: failed program was:" >&5
7625   cat conftest.$ac_ext >&5
7626   rm -rf conftest*
7627   eval "ac_cv_func_$ac_func=no"
7628 fi
7629 rm -f conftest*
7630 fi
7631
7632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7633   echo "$ac_t""yes" 1>&6
7634     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7635   cat >> confdefs.h <<EOF
7636 #define $ac_tr_func 1
7637 EOF
7638  
7639 else
7640   echo "$ac_t""no" 1>&6
7641 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
7642 fi
7643 done
7644
7645
7646     for ac_func in __signbit
7647 do
7648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7649 echo "configure:7650: checking for $ac_func" >&5
7650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7651   echo $ac_n "(cached) $ac_c" 1>&6
7652 else
7653   cat > conftest.$ac_ext <<EOF
7654 #line 7655 "configure"
7655 #include "confdefs.h"
7656 /* System header to define __stub macros and hopefully few prototypes,
7657     which can conflict with char $ac_func(); below.  */
7658 #include <assert.h>
7659 /* Override any gcc2 internal prototype to avoid an error.  */
7660 /* We use char because int might match the return type of a gcc2
7661     builtin and then its argument prototype would still apply.  */
7662 char $ac_func();
7663
7664 int main() {
7665
7666 /* The GNU C library defines this for functions which it implements
7667     to always fail with ENOSYS.  Some functions are actually named
7668     something starting with __ and the normal name is an alias.  */
7669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7670 choke me
7671 #else
7672 $ac_func();
7673 #endif
7674
7675 ; return 0; }
7676 EOF
7677 if { (eval echo configure:7678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7678   rm -rf conftest*
7679   eval "ac_cv_func_$ac_func=yes"
7680 else
7681   echo "configure: failed program was:" >&5
7682   cat conftest.$ac_ext >&5
7683   rm -rf conftest*
7684   eval "ac_cv_func_$ac_func=no"
7685 fi
7686 rm -f conftest*
7687 fi
7688
7689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7690   echo "$ac_t""yes" 1>&6
7691     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7692   cat >> confdefs.h <<EOF
7693 #define $ac_tr_func 1
7694 EOF
7695  
7696 else
7697   echo "$ac_t""no" 1>&6
7698 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
7699 fi
7700 done
7701
7702   for ac_func in __signbitf
7703 do
7704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7705 echo "configure:7706: checking for $ac_func" >&5
7706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7707   echo $ac_n "(cached) $ac_c" 1>&6
7708 else
7709   cat > conftest.$ac_ext <<EOF
7710 #line 7711 "configure"
7711 #include "confdefs.h"
7712 /* System header to define __stub macros and hopefully few prototypes,
7713     which can conflict with char $ac_func(); below.  */
7714 #include <assert.h>
7715 /* Override any gcc2 internal prototype to avoid an error.  */
7716 /* We use char because int might match the return type of a gcc2
7717     builtin and then its argument prototype would still apply.  */
7718 char $ac_func();
7719
7720 int main() {
7721
7722 /* The GNU C library defines this for functions which it implements
7723     to always fail with ENOSYS.  Some functions are actually named
7724     something starting with __ and the normal name is an alias.  */
7725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7726 choke me
7727 #else
7728 $ac_func();
7729 #endif
7730
7731 ; return 0; }
7732 EOF
7733 if { (eval echo configure:7734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7734   rm -rf conftest*
7735   eval "ac_cv_func_$ac_func=yes"
7736 else
7737   echo "configure: failed program was:" >&5
7738   cat conftest.$ac_ext >&5
7739   rm -rf conftest*
7740   eval "ac_cv_func_$ac_func=no"
7741 fi
7742 rm -f conftest*
7743 fi
7744
7745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7746   echo "$ac_t""yes" 1>&6
7747     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7748   cat >> confdefs.h <<EOF
7749 #define $ac_tr_func 1
7750 EOF
7751  
7752 else
7753   echo "$ac_t""no" 1>&6
7754 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
7755 fi
7756 done
7757
7758
7759           if test x$ac_cv_func_copysignl = x"yes"; then
7760     for ac_func in __signbitl
7761 do
7762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7763 echo "configure:7764: checking for $ac_func" >&5
7764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7765   echo $ac_n "(cached) $ac_c" 1>&6
7766 else
7767   cat > conftest.$ac_ext <<EOF
7768 #line 7769 "configure"
7769 #include "confdefs.h"
7770 /* System header to define __stub macros and hopefully few prototypes,
7771     which can conflict with char $ac_func(); below.  */
7772 #include <assert.h>
7773 /* Override any gcc2 internal prototype to avoid an error.  */
7774 /* We use char because int might match the return type of a gcc2
7775     builtin and then its argument prototype would still apply.  */
7776 char $ac_func();
7777
7778 int main() {
7779
7780 /* The GNU C library defines this for functions which it implements
7781     to always fail with ENOSYS.  Some functions are actually named
7782     something starting with __ and the normal name is an alias.  */
7783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7784 choke me
7785 #else
7786 $ac_func();
7787 #endif
7788
7789 ; return 0; }
7790 EOF
7791 if { (eval echo configure:7792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7792   rm -rf conftest*
7793   eval "ac_cv_func_$ac_func=yes"
7794 else
7795   echo "configure: failed program was:" >&5
7796   cat conftest.$ac_ext >&5
7797   rm -rf conftest*
7798   eval "ac_cv_func_$ac_func=no"
7799 fi
7800 rm -f conftest*
7801 fi
7802
7803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7804   echo "$ac_t""yes" 1>&6
7805     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7806   cat >> confdefs.h <<EOF
7807 #define $ac_tr_func 1
7808 EOF
7809  
7810 else
7811   echo "$ac_t""no" 1>&6
7812 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
7813 fi
7814 done
7815
7816   fi
7817
7818   if test -n "$LIBMATHOBJS"; then
7819     need_libmath=yes
7820   fi
7821   
7822
7823       
7824   
7825       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
7826 echo "configure:7827: checking for mbstate_t" >&5
7827   cat > conftest.$ac_ext <<EOF
7828 #line 7829 "configure"
7829 #include "confdefs.h"
7830 #include <wchar.h>
7831 int main() {
7832 mbstate_t teststate;
7833 ; return 0; }
7834 EOF
7835 if { (eval echo configure:7836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7836   rm -rf conftest*
7837   have_mbstate_t=yes
7838 else
7839   echo "configure: failed program was:" >&5
7840   cat conftest.$ac_ext >&5
7841   rm -rf conftest*
7842   have_mbstate_t=no
7843 fi
7844 rm -f conftest*
7845   echo "$ac_t""$have_mbstate_t" 1>&6
7846   if test x"$have_mbstate_t" = xyes; then
7847     cat >> confdefs.h <<\EOF
7848 #define HAVE_MBSTATE_T 1
7849 EOF
7850
7851   fi
7852
7853     for ac_hdr in wchar.h
7854 do
7855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7857 echo "configure:7858: checking for $ac_hdr" >&5
7858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7859   echo $ac_n "(cached) $ac_c" 1>&6
7860 else
7861   cat > conftest.$ac_ext <<EOF
7862 #line 7863 "configure"
7863 #include "confdefs.h"
7864 #include <$ac_hdr>
7865 EOF
7866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7867 { (eval echo configure:7868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7869 if test -z "$ac_err"; then
7870   rm -rf conftest*
7871   eval "ac_cv_header_$ac_safe=yes"
7872 else
7873   echo "$ac_err" >&5
7874   echo "configure: failed program was:" >&5
7875   cat conftest.$ac_ext >&5
7876   rm -rf conftest*
7877   eval "ac_cv_header_$ac_safe=no"
7878 fi
7879 rm -f conftest*
7880 fi
7881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7882   echo "$ac_t""yes" 1>&6
7883     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7884   cat >> confdefs.h <<EOF
7885 #define $ac_tr_hdr 1
7886 EOF
7887  ac_has_wchar_h=yes
7888 else
7889   echo "$ac_t""no" 1>&6
7890 ac_has_wchar_h=no
7891 fi
7892 done
7893
7894   for ac_hdr in wctype.h
7895 do
7896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7898 echo "configure:7899: checking for $ac_hdr" >&5
7899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7900   echo $ac_n "(cached) $ac_c" 1>&6
7901 else
7902   cat > conftest.$ac_ext <<EOF
7903 #line 7904 "configure"
7904 #include "confdefs.h"
7905 #include <$ac_hdr>
7906 EOF
7907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7908 { (eval echo configure:7909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7910 if test -z "$ac_err"; then
7911   rm -rf conftest*
7912   eval "ac_cv_header_$ac_safe=yes"
7913 else
7914   echo "$ac_err" >&5
7915   echo "configure: failed program was:" >&5
7916   cat conftest.$ac_ext >&5
7917   rm -rf conftest*
7918   eval "ac_cv_header_$ac_safe=no"
7919 fi
7920 rm -f conftest*
7921 fi
7922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7923   echo "$ac_t""yes" 1>&6
7924     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7925   cat >> confdefs.h <<EOF
7926 #define $ac_tr_hdr 1
7927 EOF
7928  ac_has_wctype_h=yes
7929 else
7930   echo "$ac_t""no" 1>&6
7931 ac_has_wctype_h=no
7932 fi
7933 done
7934
7935
7936     if test x"$ac_has_wchar_h" = xyes &&
7937      test x"$ac_has_wctype_h" = xyes &&
7938      test x"$enable_c_mbchar" != xno; then
7939
7940             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
7941 echo "configure:7942: checking for WCHAR_MIN and WCHAR_MAX" >&5
7942     cat > conftest.$ac_ext <<EOF
7943 #line 7944 "configure"
7944 #include "confdefs.h"
7945 #include <wchar.h>
7946 int main() {
7947 int i = WCHAR_MIN; int j = WCHAR_MAX;
7948 ; return 0; }
7949 EOF
7950 if { (eval echo configure:7951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7951   rm -rf conftest*
7952   has_wchar_minmax=yes
7953 else
7954   echo "configure: failed program was:" >&5
7955   cat conftest.$ac_ext >&5
7956   rm -rf conftest*
7957   has_wchar_minmax=no
7958 fi
7959 rm -f conftest*
7960     echo "$ac_t""$has_wchar_minmax" 1>&6
7961
7962             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
7963 echo "configure:7964: checking for WEOF" >&5
7964     cat > conftest.$ac_ext <<EOF
7965 #line 7966 "configure"
7966 #include "confdefs.h"
7967
7968       #include <wchar.h>
7969       #include <stddef.h>
7970 int main() {
7971 wint_t i = WEOF;
7972 ; return 0; }
7973 EOF
7974 if { (eval echo configure:7975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7975   rm -rf conftest*
7976   has_weof=yes
7977 else
7978   echo "configure: failed program was:" >&5
7979   cat conftest.$ac_ext >&5
7980   rm -rf conftest*
7981   has_weof=no
7982 fi
7983 rm -f conftest*
7984     echo "$ac_t""$has_weof" 1>&6
7985
7986         ac_wfuncs=yes
7987     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
7988 do
7989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7990 echo "configure:7991: checking for $ac_func" >&5
7991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7992   echo $ac_n "(cached) $ac_c" 1>&6
7993 else
7994   cat > conftest.$ac_ext <<EOF
7995 #line 7996 "configure"
7996 #include "confdefs.h"
7997 /* System header to define __stub macros and hopefully few prototypes,
7998     which can conflict with char $ac_func(); below.  */
7999 #include <assert.h>
8000 /* Override any gcc2 internal prototype to avoid an error.  */
8001 /* We use char because int might match the return type of a gcc2
8002     builtin and then its argument prototype would still apply.  */
8003 char $ac_func();
8004
8005 int main() {
8006
8007 /* The GNU C library defines this for functions which it implements
8008     to always fail with ENOSYS.  Some functions are actually named
8009     something starting with __ and the normal name is an alias.  */
8010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8011 choke me
8012 #else
8013 $ac_func();
8014 #endif
8015
8016 ; return 0; }
8017 EOF
8018 if { (eval echo configure:8019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8019   rm -rf conftest*
8020   eval "ac_cv_func_$ac_func=yes"
8021 else
8022   echo "configure: failed program was:" >&5
8023   cat conftest.$ac_ext >&5
8024   rm -rf conftest*
8025   eval "ac_cv_func_$ac_func=no"
8026 fi
8027 rm -f conftest*
8028 fi
8029
8030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8031   echo "$ac_t""yes" 1>&6
8032     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8033   cat >> confdefs.h <<EOF
8034 #define $ac_tr_func 1
8035 EOF
8036  
8037 else
8038   echo "$ac_t""no" 1>&6
8039 \
8040     ac_wfuncs=no
8041 fi
8042 done
8043
8044
8045         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8046     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8047     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8048     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8049     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8050     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8051 do
8052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8053 echo "configure:8054: checking for $ac_func" >&5
8054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8055   echo $ac_n "(cached) $ac_c" 1>&6
8056 else
8057   cat > conftest.$ac_ext <<EOF
8058 #line 8059 "configure"
8059 #include "confdefs.h"
8060 /* System header to define __stub macros and hopefully few prototypes,
8061     which can conflict with char $ac_func(); below.  */
8062 #include <assert.h>
8063 /* Override any gcc2 internal prototype to avoid an error.  */
8064 /* We use char because int might match the return type of a gcc2
8065     builtin and then its argument prototype would still apply.  */
8066 char $ac_func();
8067
8068 int main() {
8069
8070 /* The GNU C library defines this for functions which it implements
8071     to always fail with ENOSYS.  Some functions are actually named
8072     something starting with __ and the normal name is an alias.  */
8073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8074 choke me
8075 #else
8076 $ac_func();
8077 #endif
8078
8079 ; return 0; }
8080 EOF
8081 if { (eval echo configure:8082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8082   rm -rf conftest*
8083   eval "ac_cv_func_$ac_func=yes"
8084 else
8085   echo "configure: failed program was:" >&5
8086   cat conftest.$ac_ext >&5
8087   rm -rf conftest*
8088   eval "ac_cv_func_$ac_func=no"
8089 fi
8090 rm -f conftest*
8091 fi
8092
8093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8094   echo "$ac_t""yes" 1>&6
8095     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8096   cat >> confdefs.h <<EOF
8097 #define $ac_tr_func 1
8098 EOF
8099  
8100 else
8101   echo "$ac_t""no" 1>&6
8102 \
8103     ac_wfuncs=no
8104 fi
8105 done
8106
8107
8108     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
8109 echo "configure:8110: checking for ISO C99 wchar_t support" >&5
8110     if test x"$has_weof" = xyes &&
8111        test x"$has_wchar_minmax" = xyes &&
8112        test x"$ac_wfuncs" = xyes; then
8113       ac_isoC99_wchar_t=yes
8114     else
8115       ac_isoC99_wchar_t=no
8116     fi
8117     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
8118
8119             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
8120 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
8121 echo "configure:8122: checking for iconv.h" >&5
8122 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8123   echo $ac_n "(cached) $ac_c" 1>&6
8124 else
8125   cat > conftest.$ac_ext <<EOF
8126 #line 8127 "configure"
8127 #include "confdefs.h"
8128 #include <iconv.h>
8129 EOF
8130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8131 { (eval echo configure:8132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8133 if test -z "$ac_err"; then
8134   rm -rf conftest*
8135   eval "ac_cv_header_$ac_safe=yes"
8136 else
8137   echo "$ac_err" >&5
8138   echo "configure: failed program was:" >&5
8139   cat conftest.$ac_ext >&5
8140   rm -rf conftest*
8141   eval "ac_cv_header_$ac_safe=no"
8142 fi
8143 rm -f conftest*
8144 fi
8145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8146   echo "$ac_t""yes" 1>&6
8147   ac_has_iconv_h=yes
8148 else
8149   echo "$ac_t""no" 1>&6
8150 ac_has_iconv_h=no
8151 fi
8152
8153     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
8154 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
8155 echo "configure:8156: checking for langinfo.h" >&5
8156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8157   echo $ac_n "(cached) $ac_c" 1>&6
8158 else
8159   cat > conftest.$ac_ext <<EOF
8160 #line 8161 "configure"
8161 #include "confdefs.h"
8162 #include <langinfo.h>
8163 EOF
8164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8165 { (eval echo configure:8166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8167 if test -z "$ac_err"; then
8168   rm -rf conftest*
8169   eval "ac_cv_header_$ac_safe=yes"
8170 else
8171   echo "$ac_err" >&5
8172   echo "configure: failed program was:" >&5
8173   cat conftest.$ac_ext >&5
8174   rm -rf conftest*
8175   eval "ac_cv_header_$ac_safe=no"
8176 fi
8177 rm -f conftest*
8178 fi
8179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8180   echo "$ac_t""yes" 1>&6
8181   ac_has_langinfo_h=yes
8182 else
8183   echo "$ac_t""no" 1>&6
8184 ac_has_langinfo_h=no
8185 fi
8186
8187
8188         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
8189 echo "configure:8190: checking for iconv in -liconv" >&5
8190 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
8191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8192   echo $ac_n "(cached) $ac_c" 1>&6
8193 else
8194   ac_save_LIBS="$LIBS"
8195 LIBS="-liconv  $LIBS"
8196 cat > conftest.$ac_ext <<EOF
8197 #line 8198 "configure"
8198 #include "confdefs.h"
8199 /* Override any gcc2 internal prototype to avoid an error.  */
8200 /* We use char because int might match the return type of a gcc2
8201     builtin and then its argument prototype would still apply.  */
8202 char iconv();
8203
8204 int main() {
8205 iconv()
8206 ; return 0; }
8207 EOF
8208 if { (eval echo configure:8209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8209   rm -rf conftest*
8210   eval "ac_cv_lib_$ac_lib_var=yes"
8211 else
8212   echo "configure: failed program was:" >&5
8213   cat conftest.$ac_ext >&5
8214   rm -rf conftest*
8215   eval "ac_cv_lib_$ac_lib_var=no"
8216 fi
8217 rm -f conftest*
8218 LIBS="$ac_save_LIBS"
8219
8220 fi
8221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8222   echo "$ac_t""yes" 1>&6
8223   libiconv="-liconv"
8224 else
8225   echo "$ac_t""no" 1>&6
8226 fi
8227
8228     ac_save_LIBS="$LIBS"
8229     LIBS="$LIBS $libiconv"
8230
8231     for ac_func in iconv_open iconv_close iconv nl_langinfo
8232 do
8233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8234 echo "configure:8235: checking for $ac_func" >&5
8235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8236   echo $ac_n "(cached) $ac_c" 1>&6
8237 else
8238   cat > conftest.$ac_ext <<EOF
8239 #line 8240 "configure"
8240 #include "confdefs.h"
8241 /* System header to define __stub macros and hopefully few prototypes,
8242     which can conflict with char $ac_func(); below.  */
8243 #include <assert.h>
8244 /* Override any gcc2 internal prototype to avoid an error.  */
8245 /* We use char because int might match the return type of a gcc2
8246     builtin and then its argument prototype would still apply.  */
8247 char $ac_func();
8248
8249 int main() {
8250
8251 /* The GNU C library defines this for functions which it implements
8252     to always fail with ENOSYS.  Some functions are actually named
8253     something starting with __ and the normal name is an alias.  */
8254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8255 choke me
8256 #else
8257 $ac_func();
8258 #endif
8259
8260 ; return 0; }
8261 EOF
8262 if { (eval echo configure:8263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8263   rm -rf conftest*
8264   eval "ac_cv_func_$ac_func=yes"
8265 else
8266   echo "configure: failed program was:" >&5
8267   cat conftest.$ac_ext >&5
8268   rm -rf conftest*
8269   eval "ac_cv_func_$ac_func=no"
8270 fi
8271 rm -f conftest*
8272 fi
8273
8274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8275   echo "$ac_t""yes" 1>&6
8276     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8277   cat >> confdefs.h <<EOF
8278 #define $ac_tr_func 1
8279 EOF
8280  \
8281     ac_XPG2funcs=yes
8282 else
8283   echo "$ac_t""no" 1>&6
8284 ac_XPG2funcs=no
8285 fi
8286 done
8287
8288
8289     LIBS="$ac_save_LIBS"
8290
8291     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
8292 echo "configure:8293: checking for XPG2 wchar_t support" >&5
8293     if test x"$ac_has_iconv_h" = xyes &&
8294        test x"$ac_has_langinfo_h" = xyes &&
8295        test x"$ac_XPG2funcs" = xyes; then
8296       ac_XPG2_wchar_t=yes
8297     else
8298       ac_XPG2_wchar_t=no
8299     fi
8300     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
8301
8302             if test x"$ac_isoC99_wchar_t" = xyes && 
8303         test x"$ac_XPG2_wchar_t" = xyes; then
8304       cat >> confdefs.h <<\EOF
8305 #define _GLIBCPP_USE_WCHAR_T 1
8306 EOF
8307
8308       enable_wchar_t=yes
8309     fi
8310   fi
8311   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
8312 echo "configure:8313: checking for enabled wchar_t specializations" >&5
8313   echo "$ac_t""$enable_wchar_t" 1>&6    
8314
8315       ;;
8316     *-netbsd*)
8317       os_include_dir="os/bsd/netbsd"
8318       for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
8319         machine/endian.h machine/param.h sys/machine.h sys/types.h \
8320         fp.h locale.h float.h inttypes.h
8321 do
8322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8324 echo "configure:8325: checking for $ac_hdr" >&5
8325 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8326   echo $ac_n "(cached) $ac_c" 1>&6
8327 else
8328   cat > conftest.$ac_ext <<EOF
8329 #line 8330 "configure"
8330 #include "confdefs.h"
8331 #include <$ac_hdr>
8332 EOF
8333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8334 { (eval echo configure:8335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8336 if test -z "$ac_err"; then
8337   rm -rf conftest*
8338   eval "ac_cv_header_$ac_safe=yes"
8339 else
8340   echo "$ac_err" >&5
8341   echo "configure: failed program was:" >&5
8342   cat conftest.$ac_ext >&5
8343   rm -rf conftest*
8344   eval "ac_cv_header_$ac_safe=no"
8345 fi
8346 rm -f conftest*
8347 fi
8348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8349   echo "$ac_t""yes" 1>&6
8350     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8351   cat >> confdefs.h <<EOF
8352 #define $ac_tr_hdr 1
8353 EOF
8354  
8355 else
8356   echo "$ac_t""no" 1>&6
8357 fi
8358 done
8359
8360       SECTION_FLAGS='-ffunction-sections -fdata-sections'
8361        
8362       
8363   # If we're not using GNU ld, then there's no point in even trying these
8364   # tests.  Check for that first.  We should have already tested for gld
8365   # by now (in libtool), but require it now just to be safe...
8366   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8367   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8368   
8369
8370   # The name set by libtool depends on the version of libtool.  Shame on us
8371   # for depending on an impl detail, but c'est la vie.  Older versions used
8372   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8373   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8374   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8375   # set (hence we're using an older libtool), then set it.
8376   if test x${with_gnu_ld+set} != xset; then
8377     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8378       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8379       with_gnu_ld=no
8380     else
8381       with_gnu_ld=$ac_cv_prog_gnu_ld
8382     fi
8383   fi
8384
8385   # Start by getting the version number.  I think the libtool test already
8386   # does some of this, but throws away the result.
8387   
8388   ldver=`$LD --version 2>/dev/null | head -1 | \
8389          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8390   
8391   glibcpp_gnu_ld_version=`echo $ldver | \
8392          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8393
8394   # Set --gc-sections.
8395   if test "$with_gnu_ld" = "notbroken"; then
8396     # GNU ld it is!  Joy and bunny rabbits!
8397
8398     # All these tests are for C++; save the language and the compiler flags.
8399     # Need to do this so that g++ won't try to link in libstdc++
8400     ac_test_CFLAGS="${CFLAGS+set}"
8401     ac_save_CFLAGS="$CFLAGS"
8402     CFLAGS='-x c++  -Wl,--gc-sections'
8403
8404     # Check for -Wl,--gc-sections
8405     # XXX This test is broken at the moment, as symbols required for
8406     # linking are now in libsupc++ (not built yet.....). In addition,
8407     # this test has cored on solaris in the past. In addition,
8408     # --gc-sections doesn't really work at the moment (keeps on discarding
8409     # used sections, first .eh_frame and now some of the glibc sections for
8410     # iconv). Bzzzzt. Thanks for playing, maybe next time.
8411     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
8412 echo "configure:8413: checking for ld that supports -Wl,--gc-sections" >&5
8413     if test "$cross_compiling" = yes; then
8414   ac_sectionLDflags=yes
8415 else
8416   cat > conftest.$ac_ext <<EOF
8417 #line 8418 "configure"
8418 #include "confdefs.h"
8419
8420      int main(void)
8421      {
8422        try { throw 1; }
8423        catch (...) { };
8424        return 0;
8425      }
8426     
8427 EOF
8428 if { (eval echo configure:8429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8429 then
8430   ac_sectionLDflags=yes
8431 else
8432   echo "configure: failed program was:" >&5
8433   cat conftest.$ac_ext >&5
8434   rm -fr conftest*
8435   ac_sectionLDflags=no
8436 fi
8437 rm -fr conftest*
8438 fi
8439
8440     if test "$ac_test_CFLAGS" = set; then
8441       CFLAGS="$ac_save_CFLAGS"
8442     else
8443       # this is the suspicious part
8444       CFLAGS=''
8445     fi
8446     if test "$ac_sectionLDflags" = "yes"; then
8447       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8448     fi
8449     echo "$ac_t""$ac_sectionLDflags" 1>&6
8450   fi
8451
8452   # Set linker optimization flags.
8453   if test x"$with_gnu_ld" = x"yes"; then
8454     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8455   fi
8456
8457   
8458   
8459
8460       
8461         echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
8462 echo "configure:8463: checking for main in -lm" >&5
8463 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
8464 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8465   echo $ac_n "(cached) $ac_c" 1>&6
8466 else
8467   ac_save_LIBS="$LIBS"
8468 LIBS="-lm  $LIBS"
8469 cat > conftest.$ac_ext <<EOF
8470 #line 8471 "configure"
8471 #include "confdefs.h"
8472
8473 int main() {
8474 main()
8475 ; return 0; }
8476 EOF
8477 if { (eval echo configure:8478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8478   rm -rf conftest*
8479   eval "ac_cv_lib_$ac_lib_var=yes"
8480 else
8481   echo "configure: failed program was:" >&5
8482   cat conftest.$ac_ext >&5
8483   rm -rf conftest*
8484   eval "ac_cv_lib_$ac_lib_var=no"
8485 fi
8486 rm -f conftest*
8487 LIBS="$ac_save_LIBS"
8488
8489 fi
8490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8491   echo "$ac_t""yes" 1>&6
8492     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8493     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8494   cat >> confdefs.h <<EOF
8495 #define $ac_tr_lib 1
8496 EOF
8497
8498   LIBS="-lm $LIBS"
8499
8500 else
8501   echo "$ac_t""no" 1>&6
8502 fi
8503
8504   for ac_func in nan copysignf
8505 do
8506 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8507 echo "configure:8508: checking for $ac_func" >&5
8508 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8509   echo $ac_n "(cached) $ac_c" 1>&6
8510 else
8511   cat > conftest.$ac_ext <<EOF
8512 #line 8513 "configure"
8513 #include "confdefs.h"
8514 /* System header to define __stub macros and hopefully few prototypes,
8515     which can conflict with char $ac_func(); below.  */
8516 #include <assert.h>
8517 /* Override any gcc2 internal prototype to avoid an error.  */
8518 /* We use char because int might match the return type of a gcc2
8519     builtin and then its argument prototype would still apply.  */
8520 char $ac_func();
8521
8522 int main() {
8523
8524 /* The GNU C library defines this for functions which it implements
8525     to always fail with ENOSYS.  Some functions are actually named
8526     something starting with __ and the normal name is an alias.  */
8527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8528 choke me
8529 #else
8530 $ac_func();
8531 #endif
8532
8533 ; return 0; }
8534 EOF
8535 if { (eval echo configure:8536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8536   rm -rf conftest*
8537   eval "ac_cv_func_$ac_func=yes"
8538 else
8539   echo "configure: failed program was:" >&5
8540   cat conftest.$ac_ext >&5
8541   rm -rf conftest*
8542   eval "ac_cv_func_$ac_func=no"
8543 fi
8544 rm -f conftest*
8545 fi
8546
8547 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8548   echo "$ac_t""yes" 1>&6
8549     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8550   cat >> confdefs.h <<EOF
8551 #define $ac_tr_func 1
8552 EOF
8553  
8554 else
8555   echo "$ac_t""no" 1>&6
8556 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
8557 fi
8558 done
8559
8560
8561     for ac_func in __signbit
8562 do
8563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8564 echo "configure:8565: checking for $ac_func" >&5
8565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8566   echo $ac_n "(cached) $ac_c" 1>&6
8567 else
8568   cat > conftest.$ac_ext <<EOF
8569 #line 8570 "configure"
8570 #include "confdefs.h"
8571 /* System header to define __stub macros and hopefully few prototypes,
8572     which can conflict with char $ac_func(); below.  */
8573 #include <assert.h>
8574 /* Override any gcc2 internal prototype to avoid an error.  */
8575 /* We use char because int might match the return type of a gcc2
8576     builtin and then its argument prototype would still apply.  */
8577 char $ac_func();
8578
8579 int main() {
8580
8581 /* The GNU C library defines this for functions which it implements
8582     to always fail with ENOSYS.  Some functions are actually named
8583     something starting with __ and the normal name is an alias.  */
8584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8585 choke me
8586 #else
8587 $ac_func();
8588 #endif
8589
8590 ; return 0; }
8591 EOF
8592 if { (eval echo configure:8593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8593   rm -rf conftest*
8594   eval "ac_cv_func_$ac_func=yes"
8595 else
8596   echo "configure: failed program was:" >&5
8597   cat conftest.$ac_ext >&5
8598   rm -rf conftest*
8599   eval "ac_cv_func_$ac_func=no"
8600 fi
8601 rm -f conftest*
8602 fi
8603
8604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8605   echo "$ac_t""yes" 1>&6
8606     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8607   cat >> confdefs.h <<EOF
8608 #define $ac_tr_func 1
8609 EOF
8610  
8611 else
8612   echo "$ac_t""no" 1>&6
8613 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
8614 fi
8615 done
8616
8617   for ac_func in __signbitf
8618 do
8619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8620 echo "configure:8621: checking for $ac_func" >&5
8621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8622   echo $ac_n "(cached) $ac_c" 1>&6
8623 else
8624   cat > conftest.$ac_ext <<EOF
8625 #line 8626 "configure"
8626 #include "confdefs.h"
8627 /* System header to define __stub macros and hopefully few prototypes,
8628     which can conflict with char $ac_func(); below.  */
8629 #include <assert.h>
8630 /* Override any gcc2 internal prototype to avoid an error.  */
8631 /* We use char because int might match the return type of a gcc2
8632     builtin and then its argument prototype would still apply.  */
8633 char $ac_func();
8634
8635 int main() {
8636
8637 /* The GNU C library defines this for functions which it implements
8638     to always fail with ENOSYS.  Some functions are actually named
8639     something starting with __ and the normal name is an alias.  */
8640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8641 choke me
8642 #else
8643 $ac_func();
8644 #endif
8645
8646 ; return 0; }
8647 EOF
8648 if { (eval echo configure:8649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8649   rm -rf conftest*
8650   eval "ac_cv_func_$ac_func=yes"
8651 else
8652   echo "configure: failed program was:" >&5
8653   cat conftest.$ac_ext >&5
8654   rm -rf conftest*
8655   eval "ac_cv_func_$ac_func=no"
8656 fi
8657 rm -f conftest*
8658 fi
8659
8660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8661   echo "$ac_t""yes" 1>&6
8662     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8663   cat >> confdefs.h <<EOF
8664 #define $ac_tr_func 1
8665 EOF
8666  
8667 else
8668   echo "$ac_t""no" 1>&6
8669 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
8670 fi
8671 done
8672
8673
8674           if test x$ac_cv_func_copysignl = x"yes"; then
8675     for ac_func in __signbitl
8676 do
8677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8678 echo "configure:8679: checking for $ac_func" >&5
8679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8680   echo $ac_n "(cached) $ac_c" 1>&6
8681 else
8682   cat > conftest.$ac_ext <<EOF
8683 #line 8684 "configure"
8684 #include "confdefs.h"
8685 /* System header to define __stub macros and hopefully few prototypes,
8686     which can conflict with char $ac_func(); below.  */
8687 #include <assert.h>
8688 /* Override any gcc2 internal prototype to avoid an error.  */
8689 /* We use char because int might match the return type of a gcc2
8690     builtin and then its argument prototype would still apply.  */
8691 char $ac_func();
8692
8693 int main() {
8694
8695 /* The GNU C library defines this for functions which it implements
8696     to always fail with ENOSYS.  Some functions are actually named
8697     something starting with __ and the normal name is an alias.  */
8698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8699 choke me
8700 #else
8701 $ac_func();
8702 #endif
8703
8704 ; return 0; }
8705 EOF
8706 if { (eval echo configure:8707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8707   rm -rf conftest*
8708   eval "ac_cv_func_$ac_func=yes"
8709 else
8710   echo "configure: failed program was:" >&5
8711   cat conftest.$ac_ext >&5
8712   rm -rf conftest*
8713   eval "ac_cv_func_$ac_func=no"
8714 fi
8715 rm -f conftest*
8716 fi
8717
8718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8719   echo "$ac_t""yes" 1>&6
8720     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8721   cat >> confdefs.h <<EOF
8722 #define $ac_tr_func 1
8723 EOF
8724  
8725 else
8726   echo "$ac_t""no" 1>&6
8727 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
8728 fi
8729 done
8730
8731   fi
8732
8733   if test -n "$LIBMATHOBJS"; then
8734     need_libmath=yes
8735   fi
8736   
8737
8738       
8739   
8740       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8741 echo "configure:8742: checking for mbstate_t" >&5
8742   cat > conftest.$ac_ext <<EOF
8743 #line 8744 "configure"
8744 #include "confdefs.h"
8745 #include <wchar.h>
8746 int main() {
8747 mbstate_t teststate;
8748 ; return 0; }
8749 EOF
8750 if { (eval echo configure:8751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8751   rm -rf conftest*
8752   have_mbstate_t=yes
8753 else
8754   echo "configure: failed program was:" >&5
8755   cat conftest.$ac_ext >&5
8756   rm -rf conftest*
8757   have_mbstate_t=no
8758 fi
8759 rm -f conftest*
8760   echo "$ac_t""$have_mbstate_t" 1>&6
8761   if test x"$have_mbstate_t" = xyes; then
8762     cat >> confdefs.h <<\EOF
8763 #define HAVE_MBSTATE_T 1
8764 EOF
8765
8766   fi
8767
8768     for ac_hdr in wchar.h
8769 do
8770 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8772 echo "configure:8773: checking for $ac_hdr" >&5
8773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8774   echo $ac_n "(cached) $ac_c" 1>&6
8775 else
8776   cat > conftest.$ac_ext <<EOF
8777 #line 8778 "configure"
8778 #include "confdefs.h"
8779 #include <$ac_hdr>
8780 EOF
8781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8782 { (eval echo configure:8783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8784 if test -z "$ac_err"; then
8785   rm -rf conftest*
8786   eval "ac_cv_header_$ac_safe=yes"
8787 else
8788   echo "$ac_err" >&5
8789   echo "configure: failed program was:" >&5
8790   cat conftest.$ac_ext >&5
8791   rm -rf conftest*
8792   eval "ac_cv_header_$ac_safe=no"
8793 fi
8794 rm -f conftest*
8795 fi
8796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8797   echo "$ac_t""yes" 1>&6
8798     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8799   cat >> confdefs.h <<EOF
8800 #define $ac_tr_hdr 1
8801 EOF
8802  ac_has_wchar_h=yes
8803 else
8804   echo "$ac_t""no" 1>&6
8805 ac_has_wchar_h=no
8806 fi
8807 done
8808
8809   for ac_hdr in wctype.h
8810 do
8811 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8813 echo "configure:8814: checking for $ac_hdr" >&5
8814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8815   echo $ac_n "(cached) $ac_c" 1>&6
8816 else
8817   cat > conftest.$ac_ext <<EOF
8818 #line 8819 "configure"
8819 #include "confdefs.h"
8820 #include <$ac_hdr>
8821 EOF
8822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8823 { (eval echo configure:8824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8825 if test -z "$ac_err"; then
8826   rm -rf conftest*
8827   eval "ac_cv_header_$ac_safe=yes"
8828 else
8829   echo "$ac_err" >&5
8830   echo "configure: failed program was:" >&5
8831   cat conftest.$ac_ext >&5
8832   rm -rf conftest*
8833   eval "ac_cv_header_$ac_safe=no"
8834 fi
8835 rm -f conftest*
8836 fi
8837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8838   echo "$ac_t""yes" 1>&6
8839     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8840   cat >> confdefs.h <<EOF
8841 #define $ac_tr_hdr 1
8842 EOF
8843  ac_has_wctype_h=yes
8844 else
8845   echo "$ac_t""no" 1>&6
8846 ac_has_wctype_h=no
8847 fi
8848 done
8849
8850
8851     if test x"$ac_has_wchar_h" = xyes &&
8852      test x"$ac_has_wctype_h" = xyes &&
8853      test x"$enable_c_mbchar" != xno; then
8854
8855             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
8856 echo "configure:8857: checking for WCHAR_MIN and WCHAR_MAX" >&5
8857     cat > conftest.$ac_ext <<EOF
8858 #line 8859 "configure"
8859 #include "confdefs.h"
8860 #include <wchar.h>
8861 int main() {
8862 int i = WCHAR_MIN; int j = WCHAR_MAX;
8863 ; return 0; }
8864 EOF
8865 if { (eval echo configure:8866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8866   rm -rf conftest*
8867   has_wchar_minmax=yes
8868 else
8869   echo "configure: failed program was:" >&5
8870   cat conftest.$ac_ext >&5
8871   rm -rf conftest*
8872   has_wchar_minmax=no
8873 fi
8874 rm -f conftest*
8875     echo "$ac_t""$has_wchar_minmax" 1>&6
8876
8877             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
8878 echo "configure:8879: checking for WEOF" >&5
8879     cat > conftest.$ac_ext <<EOF
8880 #line 8881 "configure"
8881 #include "confdefs.h"
8882
8883       #include <wchar.h>
8884       #include <stddef.h>
8885 int main() {
8886 wint_t i = WEOF;
8887 ; return 0; }
8888 EOF
8889 if { (eval echo configure:8890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8890   rm -rf conftest*
8891   has_weof=yes
8892 else
8893   echo "configure: failed program was:" >&5
8894   cat conftest.$ac_ext >&5
8895   rm -rf conftest*
8896   has_weof=no
8897 fi
8898 rm -f conftest*
8899     echo "$ac_t""$has_weof" 1>&6
8900
8901         ac_wfuncs=yes
8902     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
8903 do
8904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8905 echo "configure:8906: checking for $ac_func" >&5
8906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8907   echo $ac_n "(cached) $ac_c" 1>&6
8908 else
8909   cat > conftest.$ac_ext <<EOF
8910 #line 8911 "configure"
8911 #include "confdefs.h"
8912 /* System header to define __stub macros and hopefully few prototypes,
8913     which can conflict with char $ac_func(); below.  */
8914 #include <assert.h>
8915 /* Override any gcc2 internal prototype to avoid an error.  */
8916 /* We use char because int might match the return type of a gcc2
8917     builtin and then its argument prototype would still apply.  */
8918 char $ac_func();
8919
8920 int main() {
8921
8922 /* The GNU C library defines this for functions which it implements
8923     to always fail with ENOSYS.  Some functions are actually named
8924     something starting with __ and the normal name is an alias.  */
8925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8926 choke me
8927 #else
8928 $ac_func();
8929 #endif
8930
8931 ; return 0; }
8932 EOF
8933 if { (eval echo configure:8934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8934   rm -rf conftest*
8935   eval "ac_cv_func_$ac_func=yes"
8936 else
8937   echo "configure: failed program was:" >&5
8938   cat conftest.$ac_ext >&5
8939   rm -rf conftest*
8940   eval "ac_cv_func_$ac_func=no"
8941 fi
8942 rm -f conftest*
8943 fi
8944
8945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8946   echo "$ac_t""yes" 1>&6
8947     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8948   cat >> confdefs.h <<EOF
8949 #define $ac_tr_func 1
8950 EOF
8951  
8952 else
8953   echo "$ac_t""no" 1>&6
8954 \
8955     ac_wfuncs=no
8956 fi
8957 done
8958
8959
8960         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
8961     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
8962     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
8963     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
8964     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
8965     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
8966 do
8967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8968 echo "configure:8969: checking for $ac_func" >&5
8969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8970   echo $ac_n "(cached) $ac_c" 1>&6
8971 else
8972   cat > conftest.$ac_ext <<EOF
8973 #line 8974 "configure"
8974 #include "confdefs.h"
8975 /* System header to define __stub macros and hopefully few prototypes,
8976     which can conflict with char $ac_func(); below.  */
8977 #include <assert.h>
8978 /* Override any gcc2 internal prototype to avoid an error.  */
8979 /* We use char because int might match the return type of a gcc2
8980     builtin and then its argument prototype would still apply.  */
8981 char $ac_func();
8982
8983 int main() {
8984
8985 /* The GNU C library defines this for functions which it implements
8986     to always fail with ENOSYS.  Some functions are actually named
8987     something starting with __ and the normal name is an alias.  */
8988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8989 choke me
8990 #else
8991 $ac_func();
8992 #endif
8993
8994 ; return 0; }
8995 EOF
8996 if { (eval echo configure:8997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8997   rm -rf conftest*
8998   eval "ac_cv_func_$ac_func=yes"
8999 else
9000   echo "configure: failed program was:" >&5
9001   cat conftest.$ac_ext >&5
9002   rm -rf conftest*
9003   eval "ac_cv_func_$ac_func=no"
9004 fi
9005 rm -f conftest*
9006 fi
9007
9008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9009   echo "$ac_t""yes" 1>&6
9010     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9011   cat >> confdefs.h <<EOF
9012 #define $ac_tr_func 1
9013 EOF
9014  
9015 else
9016   echo "$ac_t""no" 1>&6
9017 \
9018     ac_wfuncs=no
9019 fi
9020 done
9021
9022
9023     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9024 echo "configure:9025: checking for ISO C99 wchar_t support" >&5
9025     if test x"$has_weof" = xyes &&
9026        test x"$has_wchar_minmax" = xyes &&
9027        test x"$ac_wfuncs" = xyes; then
9028       ac_isoC99_wchar_t=yes
9029     else
9030       ac_isoC99_wchar_t=no
9031     fi
9032     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9033
9034             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9035 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9036 echo "configure:9037: checking for iconv.h" >&5
9037 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9038   echo $ac_n "(cached) $ac_c" 1>&6
9039 else
9040   cat > conftest.$ac_ext <<EOF
9041 #line 9042 "configure"
9042 #include "confdefs.h"
9043 #include <iconv.h>
9044 EOF
9045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9046 { (eval echo configure:9047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9048 if test -z "$ac_err"; then
9049   rm -rf conftest*
9050   eval "ac_cv_header_$ac_safe=yes"
9051 else
9052   echo "$ac_err" >&5
9053   echo "configure: failed program was:" >&5
9054   cat conftest.$ac_ext >&5
9055   rm -rf conftest*
9056   eval "ac_cv_header_$ac_safe=no"
9057 fi
9058 rm -f conftest*
9059 fi
9060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9061   echo "$ac_t""yes" 1>&6
9062   ac_has_iconv_h=yes
9063 else
9064   echo "$ac_t""no" 1>&6
9065 ac_has_iconv_h=no
9066 fi
9067
9068     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9069 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9070 echo "configure:9071: checking for langinfo.h" >&5
9071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9072   echo $ac_n "(cached) $ac_c" 1>&6
9073 else
9074   cat > conftest.$ac_ext <<EOF
9075 #line 9076 "configure"
9076 #include "confdefs.h"
9077 #include <langinfo.h>
9078 EOF
9079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9080 { (eval echo configure:9081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9082 if test -z "$ac_err"; then
9083   rm -rf conftest*
9084   eval "ac_cv_header_$ac_safe=yes"
9085 else
9086   echo "$ac_err" >&5
9087   echo "configure: failed program was:" >&5
9088   cat conftest.$ac_ext >&5
9089   rm -rf conftest*
9090   eval "ac_cv_header_$ac_safe=no"
9091 fi
9092 rm -f conftest*
9093 fi
9094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9095   echo "$ac_t""yes" 1>&6
9096   ac_has_langinfo_h=yes
9097 else
9098   echo "$ac_t""no" 1>&6
9099 ac_has_langinfo_h=no
9100 fi
9101
9102
9103         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
9104 echo "configure:9105: checking for iconv in -liconv" >&5
9105 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
9106 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9107   echo $ac_n "(cached) $ac_c" 1>&6
9108 else
9109   ac_save_LIBS="$LIBS"
9110 LIBS="-liconv  $LIBS"
9111 cat > conftest.$ac_ext <<EOF
9112 #line 9113 "configure"
9113 #include "confdefs.h"
9114 /* Override any gcc2 internal prototype to avoid an error.  */
9115 /* We use char because int might match the return type of a gcc2
9116     builtin and then its argument prototype would still apply.  */
9117 char iconv();
9118
9119 int main() {
9120 iconv()
9121 ; return 0; }
9122 EOF
9123 if { (eval echo configure:9124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9124   rm -rf conftest*
9125   eval "ac_cv_lib_$ac_lib_var=yes"
9126 else
9127   echo "configure: failed program was:" >&5
9128   cat conftest.$ac_ext >&5
9129   rm -rf conftest*
9130   eval "ac_cv_lib_$ac_lib_var=no"
9131 fi
9132 rm -f conftest*
9133 LIBS="$ac_save_LIBS"
9134
9135 fi
9136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9137   echo "$ac_t""yes" 1>&6
9138   libiconv="-liconv"
9139 else
9140   echo "$ac_t""no" 1>&6
9141 fi
9142
9143     ac_save_LIBS="$LIBS"
9144     LIBS="$LIBS $libiconv"
9145
9146     for ac_func in iconv_open iconv_close iconv nl_langinfo
9147 do
9148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9149 echo "configure:9150: checking for $ac_func" >&5
9150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9151   echo $ac_n "(cached) $ac_c" 1>&6
9152 else
9153   cat > conftest.$ac_ext <<EOF
9154 #line 9155 "configure"
9155 #include "confdefs.h"
9156 /* System header to define __stub macros and hopefully few prototypes,
9157     which can conflict with char $ac_func(); below.  */
9158 #include <assert.h>
9159 /* Override any gcc2 internal prototype to avoid an error.  */
9160 /* We use char because int might match the return type of a gcc2
9161     builtin and then its argument prototype would still apply.  */
9162 char $ac_func();
9163
9164 int main() {
9165
9166 /* The GNU C library defines this for functions which it implements
9167     to always fail with ENOSYS.  Some functions are actually named
9168     something starting with __ and the normal name is an alias.  */
9169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9170 choke me
9171 #else
9172 $ac_func();
9173 #endif
9174
9175 ; return 0; }
9176 EOF
9177 if { (eval echo configure:9178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9178   rm -rf conftest*
9179   eval "ac_cv_func_$ac_func=yes"
9180 else
9181   echo "configure: failed program was:" >&5
9182   cat conftest.$ac_ext >&5
9183   rm -rf conftest*
9184   eval "ac_cv_func_$ac_func=no"
9185 fi
9186 rm -f conftest*
9187 fi
9188
9189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9190   echo "$ac_t""yes" 1>&6
9191     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9192   cat >> confdefs.h <<EOF
9193 #define $ac_tr_func 1
9194 EOF
9195  \
9196     ac_XPG2funcs=yes
9197 else
9198   echo "$ac_t""no" 1>&6
9199 ac_XPG2funcs=no
9200 fi
9201 done
9202
9203
9204     LIBS="$ac_save_LIBS"
9205
9206     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
9207 echo "configure:9208: checking for XPG2 wchar_t support" >&5
9208     if test x"$ac_has_iconv_h" = xyes &&
9209        test x"$ac_has_langinfo_h" = xyes &&
9210        test x"$ac_XPG2funcs" = xyes; then
9211       ac_XPG2_wchar_t=yes
9212     else
9213       ac_XPG2_wchar_t=no
9214     fi
9215     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
9216
9217             if test x"$ac_isoC99_wchar_t" = xyes && 
9218         test x"$ac_XPG2_wchar_t" = xyes; then
9219       cat >> confdefs.h <<\EOF
9220 #define _GLIBCPP_USE_WCHAR_T 1
9221 EOF
9222
9223       enable_wchar_t=yes
9224     fi
9225   fi
9226   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
9227 echo "configure:9228: checking for enabled wchar_t specializations" >&5
9228   echo "$ac_t""$enable_wchar_t" 1>&6    
9229
9230       cat >> confdefs.h <<\EOF
9231 #define HAVE_COPYSIGN 1
9232 EOF
9233
9234       cat >> confdefs.h <<\EOF
9235 #define HAVE_COPYSIGNF 1
9236 EOF
9237
9238       cat >> confdefs.h <<\EOF
9239 #define HAVE_FINITEF 1
9240 EOF
9241
9242       cat >> confdefs.h <<\EOF
9243 #define HAVE_FINITE 1
9244 EOF
9245
9246       cat >> confdefs.h <<\EOF
9247 #define HAVE_FREXPF 1
9248 EOF
9249
9250       cat >> confdefs.h <<\EOF
9251 #define HAVE_HYPOTF 1
9252 EOF
9253
9254       cat >> confdefs.h <<\EOF
9255 #define HAVE_ISINF 1
9256 EOF
9257
9258       cat >> confdefs.h <<\EOF
9259 #define HAVE_ISINFF 1
9260 EOF
9261
9262       cat >> confdefs.h <<\EOF
9263 #define HAVE_ISNAN 1
9264 EOF
9265
9266       cat >> confdefs.h <<\EOF
9267 #define HAVE_ISNANF 1
9268 EOF
9269
9270       if test x"long_double_math_on_this_cpu" = x"yes"; then
9271         cat >> confdefs.h <<\EOF
9272 #define HAVE_FINITEL 1
9273 EOF
9274
9275         cat >> confdefs.h <<\EOF
9276 #define HAVE_ISINFL 1
9277 EOF
9278
9279         cat >> confdefs.h <<\EOF
9280 #define HAVE_ISNANL 1
9281 EOF
9282
9283       fi
9284       ;;
9285     *-qnx6.1* | *-qnx6.2*)
9286       os_include_dir="os/qnx/qnx6.1"
9287       SECTION_FLAGS='-ffunction-sections -fdata-sections'
9288        
9289       
9290   # If we're not using GNU ld, then there's no point in even trying these
9291   # tests.  Check for that first.  We should have already tested for gld
9292   # by now (in libtool), but require it now just to be safe...
9293   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9294   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9295   
9296
9297   # The name set by libtool depends on the version of libtool.  Shame on us
9298   # for depending on an impl detail, but c'est la vie.  Older versions used
9299   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9300   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9301   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9302   # set (hence we're using an older libtool), then set it.
9303   if test x${with_gnu_ld+set} != xset; then
9304     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9305       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9306       with_gnu_ld=no
9307     else
9308       with_gnu_ld=$ac_cv_prog_gnu_ld
9309     fi
9310   fi
9311
9312   # Start by getting the version number.  I think the libtool test already
9313   # does some of this, but throws away the result.
9314   
9315   ldver=`$LD --version 2>/dev/null | head -1 | \
9316          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9317   
9318   glibcpp_gnu_ld_version=`echo $ldver | \
9319          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9320
9321   # Set --gc-sections.
9322   if test "$with_gnu_ld" = "notbroken"; then
9323     # GNU ld it is!  Joy and bunny rabbits!
9324
9325     # All these tests are for C++; save the language and the compiler flags.
9326     # Need to do this so that g++ won't try to link in libstdc++
9327     ac_test_CFLAGS="${CFLAGS+set}"
9328     ac_save_CFLAGS="$CFLAGS"
9329     CFLAGS='-x c++  -Wl,--gc-sections'
9330
9331     # Check for -Wl,--gc-sections
9332     # XXX This test is broken at the moment, as symbols required for
9333     # linking are now in libsupc++ (not built yet.....). In addition,
9334     # this test has cored on solaris in the past. In addition,
9335     # --gc-sections doesn't really work at the moment (keeps on discarding
9336     # used sections, first .eh_frame and now some of the glibc sections for
9337     # iconv). Bzzzzt. Thanks for playing, maybe next time.
9338     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
9339 echo "configure:9340: checking for ld that supports -Wl,--gc-sections" >&5
9340     if test "$cross_compiling" = yes; then
9341   ac_sectionLDflags=yes
9342 else
9343   cat > conftest.$ac_ext <<EOF
9344 #line 9345 "configure"
9345 #include "confdefs.h"
9346
9347      int main(void)
9348      {
9349        try { throw 1; }
9350        catch (...) { };
9351        return 0;
9352      }
9353     
9354 EOF
9355 if { (eval echo configure:9356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9356 then
9357   ac_sectionLDflags=yes
9358 else
9359   echo "configure: failed program was:" >&5
9360   cat conftest.$ac_ext >&5
9361   rm -fr conftest*
9362   ac_sectionLDflags=no
9363 fi
9364 rm -fr conftest*
9365 fi
9366
9367     if test "$ac_test_CFLAGS" = set; then
9368       CFLAGS="$ac_save_CFLAGS"
9369     else
9370       # this is the suspicious part
9371       CFLAGS=''
9372     fi
9373     if test "$ac_sectionLDflags" = "yes"; then
9374       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9375     fi
9376     echo "$ac_t""$ac_sectionLDflags" 1>&6
9377   fi
9378
9379   # Set linker optimization flags.
9380   if test x"$with_gnu_ld" = x"yes"; then
9381     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9382   fi
9383
9384   
9385   
9386
9387       
9388         echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
9389 echo "configure:9390: checking for main in -lm" >&5
9390 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
9391 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9392   echo $ac_n "(cached) $ac_c" 1>&6
9393 else
9394   ac_save_LIBS="$LIBS"
9395 LIBS="-lm  $LIBS"
9396 cat > conftest.$ac_ext <<EOF
9397 #line 9398 "configure"
9398 #include "confdefs.h"
9399
9400 int main() {
9401 main()
9402 ; return 0; }
9403 EOF
9404 if { (eval echo configure:9405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9405   rm -rf conftest*
9406   eval "ac_cv_lib_$ac_lib_var=yes"
9407 else
9408   echo "configure: failed program was:" >&5
9409   cat conftest.$ac_ext >&5
9410   rm -rf conftest*
9411   eval "ac_cv_lib_$ac_lib_var=no"
9412 fi
9413 rm -f conftest*
9414 LIBS="$ac_save_LIBS"
9415
9416 fi
9417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9418   echo "$ac_t""yes" 1>&6
9419     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9420     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9421   cat >> confdefs.h <<EOF
9422 #define $ac_tr_lib 1
9423 EOF
9424
9425   LIBS="-lm $LIBS"
9426
9427 else
9428   echo "$ac_t""no" 1>&6
9429 fi
9430
9431   for ac_func in nan copysignf
9432 do
9433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9434 echo "configure:9435: checking for $ac_func" >&5
9435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9436   echo $ac_n "(cached) $ac_c" 1>&6
9437 else
9438   cat > conftest.$ac_ext <<EOF
9439 #line 9440 "configure"
9440 #include "confdefs.h"
9441 /* System header to define __stub macros and hopefully few prototypes,
9442     which can conflict with char $ac_func(); below.  */
9443 #include <assert.h>
9444 /* Override any gcc2 internal prototype to avoid an error.  */
9445 /* We use char because int might match the return type of a gcc2
9446     builtin and then its argument prototype would still apply.  */
9447 char $ac_func();
9448
9449 int main() {
9450
9451 /* The GNU C library defines this for functions which it implements
9452     to always fail with ENOSYS.  Some functions are actually named
9453     something starting with __ and the normal name is an alias.  */
9454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9455 choke me
9456 #else
9457 $ac_func();
9458 #endif
9459
9460 ; return 0; }
9461 EOF
9462 if { (eval echo configure:9463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9463   rm -rf conftest*
9464   eval "ac_cv_func_$ac_func=yes"
9465 else
9466   echo "configure: failed program was:" >&5
9467   cat conftest.$ac_ext >&5
9468   rm -rf conftest*
9469   eval "ac_cv_func_$ac_func=no"
9470 fi
9471 rm -f conftest*
9472 fi
9473
9474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9475   echo "$ac_t""yes" 1>&6
9476     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9477   cat >> confdefs.h <<EOF
9478 #define $ac_tr_func 1
9479 EOF
9480  
9481 else
9482   echo "$ac_t""no" 1>&6
9483 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
9484 fi
9485 done
9486
9487
9488     for ac_func in __signbit
9489 do
9490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9491 echo "configure:9492: checking for $ac_func" >&5
9492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9493   echo $ac_n "(cached) $ac_c" 1>&6
9494 else
9495   cat > conftest.$ac_ext <<EOF
9496 #line 9497 "configure"
9497 #include "confdefs.h"
9498 /* System header to define __stub macros and hopefully few prototypes,
9499     which can conflict with char $ac_func(); below.  */
9500 #include <assert.h>
9501 /* Override any gcc2 internal prototype to avoid an error.  */
9502 /* We use char because int might match the return type of a gcc2
9503     builtin and then its argument prototype would still apply.  */
9504 char $ac_func();
9505
9506 int main() {
9507
9508 /* The GNU C library defines this for functions which it implements
9509     to always fail with ENOSYS.  Some functions are actually named
9510     something starting with __ and the normal name is an alias.  */
9511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9512 choke me
9513 #else
9514 $ac_func();
9515 #endif
9516
9517 ; return 0; }
9518 EOF
9519 if { (eval echo configure:9520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9520   rm -rf conftest*
9521   eval "ac_cv_func_$ac_func=yes"
9522 else
9523   echo "configure: failed program was:" >&5
9524   cat conftest.$ac_ext >&5
9525   rm -rf conftest*
9526   eval "ac_cv_func_$ac_func=no"
9527 fi
9528 rm -f conftest*
9529 fi
9530
9531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9532   echo "$ac_t""yes" 1>&6
9533     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9534   cat >> confdefs.h <<EOF
9535 #define $ac_tr_func 1
9536 EOF
9537  
9538 else
9539   echo "$ac_t""no" 1>&6
9540 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
9541 fi
9542 done
9543
9544   for ac_func in __signbitf
9545 do
9546 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9547 echo "configure:9548: checking for $ac_func" >&5
9548 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9549   echo $ac_n "(cached) $ac_c" 1>&6
9550 else
9551   cat > conftest.$ac_ext <<EOF
9552 #line 9553 "configure"
9553 #include "confdefs.h"
9554 /* System header to define __stub macros and hopefully few prototypes,
9555     which can conflict with char $ac_func(); below.  */
9556 #include <assert.h>
9557 /* Override any gcc2 internal prototype to avoid an error.  */
9558 /* We use char because int might match the return type of a gcc2
9559     builtin and then its argument prototype would still apply.  */
9560 char $ac_func();
9561
9562 int main() {
9563
9564 /* The GNU C library defines this for functions which it implements
9565     to always fail with ENOSYS.  Some functions are actually named
9566     something starting with __ and the normal name is an alias.  */
9567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9568 choke me
9569 #else
9570 $ac_func();
9571 #endif
9572
9573 ; return 0; }
9574 EOF
9575 if { (eval echo configure:9576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9576   rm -rf conftest*
9577   eval "ac_cv_func_$ac_func=yes"
9578 else
9579   echo "configure: failed program was:" >&5
9580   cat conftest.$ac_ext >&5
9581   rm -rf conftest*
9582   eval "ac_cv_func_$ac_func=no"
9583 fi
9584 rm -f conftest*
9585 fi
9586
9587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9588   echo "$ac_t""yes" 1>&6
9589     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9590   cat >> confdefs.h <<EOF
9591 #define $ac_tr_func 1
9592 EOF
9593  
9594 else
9595   echo "$ac_t""no" 1>&6
9596 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
9597 fi
9598 done
9599
9600
9601           if test x$ac_cv_func_copysignl = x"yes"; then
9602     for ac_func in __signbitl
9603 do
9604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9605 echo "configure:9606: checking for $ac_func" >&5
9606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9607   echo $ac_n "(cached) $ac_c" 1>&6
9608 else
9609   cat > conftest.$ac_ext <<EOF
9610 #line 9611 "configure"
9611 #include "confdefs.h"
9612 /* System header to define __stub macros and hopefully few prototypes,
9613     which can conflict with char $ac_func(); below.  */
9614 #include <assert.h>
9615 /* Override any gcc2 internal prototype to avoid an error.  */
9616 /* We use char because int might match the return type of a gcc2
9617     builtin and then its argument prototype would still apply.  */
9618 char $ac_func();
9619
9620 int main() {
9621
9622 /* The GNU C library defines this for functions which it implements
9623     to always fail with ENOSYS.  Some functions are actually named
9624     something starting with __ and the normal name is an alias.  */
9625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9626 choke me
9627 #else
9628 $ac_func();
9629 #endif
9630
9631 ; return 0; }
9632 EOF
9633 if { (eval echo configure:9634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9634   rm -rf conftest*
9635   eval "ac_cv_func_$ac_func=yes"
9636 else
9637   echo "configure: failed program was:" >&5
9638   cat conftest.$ac_ext >&5
9639   rm -rf conftest*
9640   eval "ac_cv_func_$ac_func=no"
9641 fi
9642 rm -f conftest*
9643 fi
9644
9645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9646   echo "$ac_t""yes" 1>&6
9647     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9648   cat >> confdefs.h <<EOF
9649 #define $ac_tr_func 1
9650 EOF
9651  
9652 else
9653   echo "$ac_t""no" 1>&6
9654 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
9655 fi
9656 done
9657
9658   fi
9659
9660   if test -n "$LIBMATHOBJS"; then
9661     need_libmath=yes
9662   fi
9663   
9664
9665       
9666   
9667       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
9668 echo "configure:9669: checking for mbstate_t" >&5
9669   cat > conftest.$ac_ext <<EOF
9670 #line 9671 "configure"
9671 #include "confdefs.h"
9672 #include <wchar.h>
9673 int main() {
9674 mbstate_t teststate;
9675 ; return 0; }
9676 EOF
9677 if { (eval echo configure:9678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9678   rm -rf conftest*
9679   have_mbstate_t=yes
9680 else
9681   echo "configure: failed program was:" >&5
9682   cat conftest.$ac_ext >&5
9683   rm -rf conftest*
9684   have_mbstate_t=no
9685 fi
9686 rm -f conftest*
9687   echo "$ac_t""$have_mbstate_t" 1>&6
9688   if test x"$have_mbstate_t" = xyes; then
9689     cat >> confdefs.h <<\EOF
9690 #define HAVE_MBSTATE_T 1
9691 EOF
9692
9693   fi
9694
9695     for ac_hdr in wchar.h
9696 do
9697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9699 echo "configure:9700: checking for $ac_hdr" >&5
9700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9701   echo $ac_n "(cached) $ac_c" 1>&6
9702 else
9703   cat > conftest.$ac_ext <<EOF
9704 #line 9705 "configure"
9705 #include "confdefs.h"
9706 #include <$ac_hdr>
9707 EOF
9708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9709 { (eval echo configure:9710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9711 if test -z "$ac_err"; then
9712   rm -rf conftest*
9713   eval "ac_cv_header_$ac_safe=yes"
9714 else
9715   echo "$ac_err" >&5
9716   echo "configure: failed program was:" >&5
9717   cat conftest.$ac_ext >&5
9718   rm -rf conftest*
9719   eval "ac_cv_header_$ac_safe=no"
9720 fi
9721 rm -f conftest*
9722 fi
9723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9724   echo "$ac_t""yes" 1>&6
9725     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9726   cat >> confdefs.h <<EOF
9727 #define $ac_tr_hdr 1
9728 EOF
9729  ac_has_wchar_h=yes
9730 else
9731   echo "$ac_t""no" 1>&6
9732 ac_has_wchar_h=no
9733 fi
9734 done
9735
9736   for ac_hdr in wctype.h
9737 do
9738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9740 echo "configure:9741: checking for $ac_hdr" >&5
9741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9742   echo $ac_n "(cached) $ac_c" 1>&6
9743 else
9744   cat > conftest.$ac_ext <<EOF
9745 #line 9746 "configure"
9746 #include "confdefs.h"
9747 #include <$ac_hdr>
9748 EOF
9749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9750 { (eval echo configure:9751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9752 if test -z "$ac_err"; then
9753   rm -rf conftest*
9754   eval "ac_cv_header_$ac_safe=yes"
9755 else
9756   echo "$ac_err" >&5
9757   echo "configure: failed program was:" >&5
9758   cat conftest.$ac_ext >&5
9759   rm -rf conftest*
9760   eval "ac_cv_header_$ac_safe=no"
9761 fi
9762 rm -f conftest*
9763 fi
9764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9765   echo "$ac_t""yes" 1>&6
9766     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9767   cat >> confdefs.h <<EOF
9768 #define $ac_tr_hdr 1
9769 EOF
9770  ac_has_wctype_h=yes
9771 else
9772   echo "$ac_t""no" 1>&6
9773 ac_has_wctype_h=no
9774 fi
9775 done
9776
9777
9778     if test x"$ac_has_wchar_h" = xyes &&
9779      test x"$ac_has_wctype_h" = xyes &&
9780      test x"$enable_c_mbchar" != xno; then
9781
9782             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
9783 echo "configure:9784: checking for WCHAR_MIN and WCHAR_MAX" >&5
9784     cat > conftest.$ac_ext <<EOF
9785 #line 9786 "configure"
9786 #include "confdefs.h"
9787 #include <wchar.h>
9788 int main() {
9789 int i = WCHAR_MIN; int j = WCHAR_MAX;
9790 ; return 0; }
9791 EOF
9792 if { (eval echo configure:9793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9793   rm -rf conftest*
9794   has_wchar_minmax=yes
9795 else
9796   echo "configure: failed program was:" >&5
9797   cat conftest.$ac_ext >&5
9798   rm -rf conftest*
9799   has_wchar_minmax=no
9800 fi
9801 rm -f conftest*
9802     echo "$ac_t""$has_wchar_minmax" 1>&6
9803
9804             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
9805 echo "configure:9806: checking for WEOF" >&5
9806     cat > conftest.$ac_ext <<EOF
9807 #line 9808 "configure"
9808 #include "confdefs.h"
9809
9810       #include <wchar.h>
9811       #include <stddef.h>
9812 int main() {
9813 wint_t i = WEOF;
9814 ; return 0; }
9815 EOF
9816 if { (eval echo configure:9817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9817   rm -rf conftest*
9818   has_weof=yes
9819 else
9820   echo "configure: failed program was:" >&5
9821   cat conftest.$ac_ext >&5
9822   rm -rf conftest*
9823   has_weof=no
9824 fi
9825 rm -f conftest*
9826     echo "$ac_t""$has_weof" 1>&6
9827
9828         ac_wfuncs=yes
9829     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
9830 do
9831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9832 echo "configure:9833: checking for $ac_func" >&5
9833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9834   echo $ac_n "(cached) $ac_c" 1>&6
9835 else
9836   cat > conftest.$ac_ext <<EOF
9837 #line 9838 "configure"
9838 #include "confdefs.h"
9839 /* System header to define __stub macros and hopefully few prototypes,
9840     which can conflict with char $ac_func(); below.  */
9841 #include <assert.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 $ac_func();
9846
9847 int main() {
9848
9849 /* The GNU C library defines this for functions which it implements
9850     to always fail with ENOSYS.  Some functions are actually named
9851     something starting with __ and the normal name is an alias.  */
9852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9853 choke me
9854 #else
9855 $ac_func();
9856 #endif
9857
9858 ; return 0; }
9859 EOF
9860 if { (eval echo configure:9861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9861   rm -rf conftest*
9862   eval "ac_cv_func_$ac_func=yes"
9863 else
9864   echo "configure: failed program was:" >&5
9865   cat conftest.$ac_ext >&5
9866   rm -rf conftest*
9867   eval "ac_cv_func_$ac_func=no"
9868 fi
9869 rm -f conftest*
9870 fi
9871
9872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9873   echo "$ac_t""yes" 1>&6
9874     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9875   cat >> confdefs.h <<EOF
9876 #define $ac_tr_func 1
9877 EOF
9878  
9879 else
9880   echo "$ac_t""no" 1>&6
9881 \
9882     ac_wfuncs=no
9883 fi
9884 done
9885
9886
9887         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
9888     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
9889     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
9890     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
9891     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
9892     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
9893 do
9894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9895 echo "configure:9896: checking for $ac_func" >&5
9896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9897   echo $ac_n "(cached) $ac_c" 1>&6
9898 else
9899   cat > conftest.$ac_ext <<EOF
9900 #line 9901 "configure"
9901 #include "confdefs.h"
9902 /* System header to define __stub macros and hopefully few prototypes,
9903     which can conflict with char $ac_func(); below.  */
9904 #include <assert.h>
9905 /* Override any gcc2 internal prototype to avoid an error.  */
9906 /* We use char because int might match the return type of a gcc2
9907     builtin and then its argument prototype would still apply.  */
9908 char $ac_func();
9909
9910 int main() {
9911
9912 /* The GNU C library defines this for functions which it implements
9913     to always fail with ENOSYS.  Some functions are actually named
9914     something starting with __ and the normal name is an alias.  */
9915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9916 choke me
9917 #else
9918 $ac_func();
9919 #endif
9920
9921 ; return 0; }
9922 EOF
9923 if { (eval echo configure:9924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9924   rm -rf conftest*
9925   eval "ac_cv_func_$ac_func=yes"
9926 else
9927   echo "configure: failed program was:" >&5
9928   cat conftest.$ac_ext >&5
9929   rm -rf conftest*
9930   eval "ac_cv_func_$ac_func=no"
9931 fi
9932 rm -f conftest*
9933 fi
9934
9935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9936   echo "$ac_t""yes" 1>&6
9937     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9938   cat >> confdefs.h <<EOF
9939 #define $ac_tr_func 1
9940 EOF
9941  
9942 else
9943   echo "$ac_t""no" 1>&6
9944 \
9945     ac_wfuncs=no
9946 fi
9947 done
9948
9949
9950     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
9951 echo "configure:9952: checking for ISO C99 wchar_t support" >&5
9952     if test x"$has_weof" = xyes &&
9953        test x"$has_wchar_minmax" = xyes &&
9954        test x"$ac_wfuncs" = xyes; then
9955       ac_isoC99_wchar_t=yes
9956     else
9957       ac_isoC99_wchar_t=no
9958     fi
9959     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
9960
9961             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
9962 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
9963 echo "configure:9964: checking for iconv.h" >&5
9964 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9965   echo $ac_n "(cached) $ac_c" 1>&6
9966 else
9967   cat > conftest.$ac_ext <<EOF
9968 #line 9969 "configure"
9969 #include "confdefs.h"
9970 #include <iconv.h>
9971 EOF
9972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9973 { (eval echo configure:9974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9975 if test -z "$ac_err"; then
9976   rm -rf conftest*
9977   eval "ac_cv_header_$ac_safe=yes"
9978 else
9979   echo "$ac_err" >&5
9980   echo "configure: failed program was:" >&5
9981   cat conftest.$ac_ext >&5
9982   rm -rf conftest*
9983   eval "ac_cv_header_$ac_safe=no"
9984 fi
9985 rm -f conftest*
9986 fi
9987 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9988   echo "$ac_t""yes" 1>&6
9989   ac_has_iconv_h=yes
9990 else
9991   echo "$ac_t""no" 1>&6
9992 ac_has_iconv_h=no
9993 fi
9994
9995     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
9996 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
9997 echo "configure:9998: checking for langinfo.h" >&5
9998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9999   echo $ac_n "(cached) $ac_c" 1>&6
10000 else
10001   cat > conftest.$ac_ext <<EOF
10002 #line 10003 "configure"
10003 #include "confdefs.h"
10004 #include <langinfo.h>
10005 EOF
10006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10007 { (eval echo configure:10008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10009 if test -z "$ac_err"; then
10010   rm -rf conftest*
10011   eval "ac_cv_header_$ac_safe=yes"
10012 else
10013   echo "$ac_err" >&5
10014   echo "configure: failed program was:" >&5
10015   cat conftest.$ac_ext >&5
10016   rm -rf conftest*
10017   eval "ac_cv_header_$ac_safe=no"
10018 fi
10019 rm -f conftest*
10020 fi
10021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10022   echo "$ac_t""yes" 1>&6
10023   ac_has_langinfo_h=yes
10024 else
10025   echo "$ac_t""no" 1>&6
10026 ac_has_langinfo_h=no
10027 fi
10028
10029
10030         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
10031 echo "configure:10032: checking for iconv in -liconv" >&5
10032 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
10033 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10034   echo $ac_n "(cached) $ac_c" 1>&6
10035 else
10036   ac_save_LIBS="$LIBS"
10037 LIBS="-liconv  $LIBS"
10038 cat > conftest.$ac_ext <<EOF
10039 #line 10040 "configure"
10040 #include "confdefs.h"
10041 /* Override any gcc2 internal prototype to avoid an error.  */
10042 /* We use char because int might match the return type of a gcc2
10043     builtin and then its argument prototype would still apply.  */
10044 char iconv();
10045
10046 int main() {
10047 iconv()
10048 ; return 0; }
10049 EOF
10050 if { (eval echo configure:10051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10051   rm -rf conftest*
10052   eval "ac_cv_lib_$ac_lib_var=yes"
10053 else
10054   echo "configure: failed program was:" >&5
10055   cat conftest.$ac_ext >&5
10056   rm -rf conftest*
10057   eval "ac_cv_lib_$ac_lib_var=no"
10058 fi
10059 rm -f conftest*
10060 LIBS="$ac_save_LIBS"
10061
10062 fi
10063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10064   echo "$ac_t""yes" 1>&6
10065   libiconv="-liconv"
10066 else
10067   echo "$ac_t""no" 1>&6
10068 fi
10069
10070     ac_save_LIBS="$LIBS"
10071     LIBS="$LIBS $libiconv"
10072
10073     for ac_func in iconv_open iconv_close iconv nl_langinfo
10074 do
10075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10076 echo "configure:10077: checking for $ac_func" >&5
10077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10078   echo $ac_n "(cached) $ac_c" 1>&6
10079 else
10080   cat > conftest.$ac_ext <<EOF
10081 #line 10082 "configure"
10082 #include "confdefs.h"
10083 /* System header to define __stub macros and hopefully few prototypes,
10084     which can conflict with char $ac_func(); below.  */
10085 #include <assert.h>
10086 /* Override any gcc2 internal prototype to avoid an error.  */
10087 /* We use char because int might match the return type of a gcc2
10088     builtin and then its argument prototype would still apply.  */
10089 char $ac_func();
10090
10091 int main() {
10092
10093 /* The GNU C library defines this for functions which it implements
10094     to always fail with ENOSYS.  Some functions are actually named
10095     something starting with __ and the normal name is an alias.  */
10096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10097 choke me
10098 #else
10099 $ac_func();
10100 #endif
10101
10102 ; return 0; }
10103 EOF
10104 if { (eval echo configure:10105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10105   rm -rf conftest*
10106   eval "ac_cv_func_$ac_func=yes"
10107 else
10108   echo "configure: failed program was:" >&5
10109   cat conftest.$ac_ext >&5
10110   rm -rf conftest*
10111   eval "ac_cv_func_$ac_func=no"
10112 fi
10113 rm -f conftest*
10114 fi
10115
10116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10117   echo "$ac_t""yes" 1>&6
10118     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10119   cat >> confdefs.h <<EOF
10120 #define $ac_tr_func 1
10121 EOF
10122  \
10123     ac_XPG2funcs=yes
10124 else
10125   echo "$ac_t""no" 1>&6
10126 ac_XPG2funcs=no
10127 fi
10128 done
10129
10130
10131     LIBS="$ac_save_LIBS"
10132
10133     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
10134 echo "configure:10135: checking for XPG2 wchar_t support" >&5
10135     if test x"$ac_has_iconv_h" = xyes &&
10136        test x"$ac_has_langinfo_h" = xyes &&
10137        test x"$ac_XPG2funcs" = xyes; then
10138       ac_XPG2_wchar_t=yes
10139     else
10140       ac_XPG2_wchar_t=no
10141     fi
10142     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
10143
10144             if test x"$ac_isoC99_wchar_t" = xyes && 
10145         test x"$ac_XPG2_wchar_t" = xyes; then
10146       cat >> confdefs.h <<\EOF
10147 #define _GLIBCPP_USE_WCHAR_T 1
10148 EOF
10149
10150       enable_wchar_t=yes
10151     fi
10152   fi
10153   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
10154 echo "configure:10155: checking for enabled wchar_t specializations" >&5
10155   echo "$ac_t""$enable_wchar_t" 1>&6    
10156
10157       cat >> confdefs.h <<\EOF
10158 #define HAVE_COSF 1
10159 EOF
10160
10161       cat >> confdefs.h <<\EOF
10162 #define HAVE_COSL 1
10163 EOF
10164
10165       cat >> confdefs.h <<\EOF
10166 #define HAVE_COSHF 1
10167 EOF
10168
10169       cat >> confdefs.h <<\EOF
10170 #define HAVE_COSHL 1
10171 EOF
10172
10173       cat >> confdefs.h <<\EOF
10174 #define HAVE_LOGF 1
10175 EOF
10176
10177       cat >> confdefs.h <<\EOF
10178 #define HAVE_LOGL 1
10179 EOF
10180
10181       cat >> confdefs.h <<\EOF
10182 #define HAVE_LOG10F 1
10183 EOF
10184
10185       cat >> confdefs.h <<\EOF
10186 #define HAVE_LOG10L 1
10187 EOF
10188
10189       cat >> confdefs.h <<\EOF
10190 #define HAVE_SINF 1
10191 EOF
10192
10193       cat >> confdefs.h <<\EOF
10194 #define HAVE_SINL 1
10195 EOF
10196
10197       cat >> confdefs.h <<\EOF
10198 #define HAVE_SINHF 1
10199 EOF
10200
10201       cat >> confdefs.h <<\EOF
10202 #define HAVE_SINHL 1
10203 EOF
10204
10205       ;;
10206     *-solaris*)
10207       case "$target" in
10208         *-solaris2.5)
10209           os_include_dir="os/solaris/solaris2.5"
10210           ;;
10211         *-solaris2.6)
10212           os_include_dir="os/solaris/solaris2.6"
10213           ;;
10214         *-solaris2.7 | *-solaris2.8 | *-solaris2.9)
10215           os_include_dir="os/solaris/solaris2.7"
10216           ;;
10217       esac
10218       cat >> confdefs.h <<\EOF
10219 #define HAVE_STRTOF 1
10220 EOF
10221
10222       cat >> confdefs.h <<\EOF
10223 #define HAVE_STRTOLD 1
10224 EOF
10225
10226       cat >> confdefs.h <<\EOF
10227 #define HAVE_MMAP 1
10228 EOF
10229  
10230       cat >> confdefs.h <<\EOF
10231 #define HAVE_COPYSIGN 1
10232 EOF
10233
10234       cat >> confdefs.h <<\EOF
10235 #define HAVE_ISNAN 1
10236 EOF
10237
10238       cat >> confdefs.h <<\EOF
10239 #define HAVE_ISNANF 1
10240 EOF
10241
10242       cat >> confdefs.h <<\EOF
10243 #define HAVE_MODFF 1
10244 EOF
10245
10246       cat >> confdefs.h <<\EOF
10247 #define HAVE_HYPOT 1
10248 EOF
10249
10250       ;;
10251     *-windiss*)
10252       os_include_dir="os/windiss"
10253       cat >> confdefs.h <<\EOF
10254 #define HAVE_ACOSF 1
10255 EOF
10256
10257       cat >> confdefs.h <<\EOF
10258 #define HAVE_ASINF 1
10259 EOF
10260
10261       cat >> confdefs.h <<\EOF
10262 #define HAVE_ATAN2F 1
10263 EOF
10264
10265       cat >> confdefs.h <<\EOF
10266 #define HAVE_ATANF 1
10267 EOF
10268
10269       cat >> confdefs.h <<\EOF
10270 #define HAVE_CEILF 1
10271 EOF
10272
10273       cat >> confdefs.h <<\EOF
10274 #define HAVE_COPYSIGN 1
10275 EOF
10276
10277       cat >> confdefs.h <<\EOF
10278 #define HAVE_COPYSIGNF 1
10279 EOF
10280
10281       cat >> confdefs.h <<\EOF
10282 #define HAVE_COSF 1
10283 EOF
10284
10285       cat >> confdefs.h <<\EOF
10286 #define HAVE_COSHF 1
10287 EOF
10288
10289       cat >> confdefs.h <<\EOF
10290 #define HAVE_EXPF 1
10291 EOF
10292
10293       cat >> confdefs.h <<\EOF
10294 #define HAVE_FABSF 1
10295 EOF
10296
10297       cat >> confdefs.h <<\EOF
10298 #define HAVE_FLOORF 1
10299 EOF
10300
10301       cat >> confdefs.h <<\EOF
10302 #define HAVE_FMODF 1
10303 EOF
10304
10305       cat >> confdefs.h <<\EOF
10306 #define HAVE_FREXPF 1
10307 EOF
10308
10309       cat >> confdefs.h <<\EOF
10310 #define HAVE_LDEXPF 1
10311 EOF
10312
10313       cat >> confdefs.h <<\EOF
10314 #define HAVE_LOG10F 1
10315 EOF
10316
10317       cat >> confdefs.h <<\EOF
10318 #define HAVE_LOGF 1
10319 EOF
10320
10321       cat >> confdefs.h <<\EOF
10322 #define HAVE_MODFF 1
10323 EOF
10324
10325       cat >> confdefs.h <<\EOF
10326 #define HAVE_POWF 1
10327 EOF
10328
10329       cat >> confdefs.h <<\EOF
10330 #define HAVE_SINF 1
10331 EOF
10332
10333       cat >> confdefs.h <<\EOF
10334 #define HAVE_SINHF 1
10335 EOF
10336
10337       cat >> confdefs.h <<\EOF
10338 #define HAVE_SQRTF 1
10339 EOF
10340
10341       cat >> confdefs.h <<\EOF
10342 #define HAVE_TANF 1
10343 EOF
10344
10345       cat >> confdefs.h <<\EOF
10346 #define HAVE_TANHF 1
10347 EOF
10348
10349       ;;
10350     *)
10351       if test "x${with_newlib}" = "xyes"; then
10352         os_include_dir="os/newlib"
10353         cat >> confdefs.h <<\EOF
10354 #define HAVE_HYPOT 1
10355 EOF
10356
10357
10358         # GLIBCPP_CHECK_STDLIB_SUPPORT
10359         cat >> confdefs.h <<\EOF
10360 #define HAVE_STRTOF 1
10361 EOF
10362         
10363         cat >> confdefs.h <<\EOF
10364 #define HAVE_STRTOLD 1
10365 EOF
10366         
10367         # AC_FUNC_MMAP
10368         cat >> confdefs.h <<\EOF
10369 #define HAVE_MMAP 1
10370 EOF
10371
10372
10373         cat >> confdefs.h <<\EOF
10374 #define HAVE_ACOSF 1
10375 EOF
10376
10377         cat >> confdefs.h <<\EOF
10378 #define HAVE_ASINF 1
10379 EOF
10380
10381         cat >> confdefs.h <<\EOF
10382 #define HAVE_ATAN2F 1
10383 EOF
10384
10385         cat >> confdefs.h <<\EOF
10386 #define HAVE_ATANF 1
10387 EOF
10388
10389         cat >> confdefs.h <<\EOF
10390 #define HAVE_CEILF 1
10391 EOF
10392
10393         cat >> confdefs.h <<\EOF
10394 #define HAVE_COPYSIGN 1
10395 EOF
10396
10397         cat >> confdefs.h <<\EOF
10398 #define HAVE_COPYSIGNF 1
10399 EOF
10400
10401         cat >> confdefs.h <<\EOF
10402 #define HAVE_COSF 1
10403 EOF
10404
10405         cat >> confdefs.h <<\EOF
10406 #define HAVE_COSHF 1
10407 EOF
10408
10409         cat >> confdefs.h <<\EOF
10410 #define HAVE_EXPF 1
10411 EOF
10412
10413         cat >> confdefs.h <<\EOF
10414 #define HAVE_FABSF 1
10415 EOF
10416
10417         cat >> confdefs.h <<\EOF
10418 #define HAVE_FLOORF 1
10419 EOF
10420
10421         cat >> confdefs.h <<\EOF
10422 #define HAVE_FMODF 1
10423 EOF
10424
10425         cat >> confdefs.h <<\EOF
10426 #define HAVE_FREXPF 1
10427 EOF
10428
10429         cat >> confdefs.h <<\EOF
10430 #define HAVE_LDEXPF 1
10431 EOF
10432
10433         cat >> confdefs.h <<\EOF
10434 #define HAVE_LOG10F 1
10435 EOF
10436
10437         cat >> confdefs.h <<\EOF
10438 #define HAVE_LOGF 1
10439 EOF
10440
10441         cat >> confdefs.h <<\EOF
10442 #define HAVE_MODFF 1
10443 EOF
10444
10445         cat >> confdefs.h <<\EOF
10446 #define HAVE_POWF 1
10447 EOF
10448
10449         cat >> confdefs.h <<\EOF
10450 #define HAVE_SINF 1
10451 EOF
10452
10453         cat >> confdefs.h <<\EOF
10454 #define HAVE_SINHF 1
10455 EOF
10456
10457         cat >> confdefs.h <<\EOF
10458 #define HAVE_SQRTF 1
10459 EOF
10460
10461         cat >> confdefs.h <<\EOF
10462 #define HAVE_TANF 1
10463 EOF
10464
10465         cat >> confdefs.h <<\EOF
10466 #define HAVE_TANHF 1
10467 EOF
10468
10469       else
10470         { echo "configure: error: No support for this host/target combination." 1>&2; exit 1; }
10471       fi 
10472      ;;
10473   esac
10474
10475   # At some point, we should differentiate between architectures
10476   # like x86, which have long double versions, and alpha/powerpc/etc.,
10477   # which don't. For the time being, punt.
10478   if test x"long_double_math_on_this_cpu" = x"yes"; then
10479     cat >> confdefs.h <<\EOF
10480 #define HAVE_ACOSL 1
10481 EOF
10482
10483     cat >> confdefs.h <<\EOF
10484 #define HAVE_ASINL 1
10485 EOF
10486
10487     cat >> confdefs.h <<\EOF
10488 #define HAVE_ATAN2L 1
10489 EOF
10490
10491     cat >> confdefs.h <<\EOF
10492 #define HAVE_ATANL 1
10493 EOF
10494
10495     cat >> confdefs.h <<\EOF
10496 #define HAVE_CEILL 1
10497 EOF
10498
10499     cat >> confdefs.h <<\EOF
10500 #define HAVE_COPYSIGNL 1
10501 EOF
10502
10503     cat >> confdefs.h <<\EOF
10504 #define HAVE_COSL 1
10505 EOF
10506
10507     cat >> confdefs.h <<\EOF
10508 #define HAVE_COSHL 1
10509 EOF
10510
10511     cat >> confdefs.h <<\EOF
10512 #define HAVE_EXPL 1
10513 EOF
10514
10515     cat >> confdefs.h <<\EOF
10516 #define HAVE_FABSL 1
10517 EOF
10518
10519     cat >> confdefs.h <<\EOF
10520 #define HAVE_FLOORL 1
10521 EOF
10522
10523     cat >> confdefs.h <<\EOF
10524 #define HAVE_FMODL 1
10525 EOF
10526
10527     cat >> confdefs.h <<\EOF
10528 #define HAVE_FREXPL 1
10529 EOF
10530
10531     cat >> confdefs.h <<\EOF
10532 #define HAVE_LDEXPL 1
10533 EOF
10534
10535     cat >> confdefs.h <<\EOF
10536 #define HAVE_LOG10L 1
10537 EOF
10538
10539     cat >> confdefs.h <<\EOF
10540 #define HAVE_LOGL 1
10541 EOF
10542
10543     cat >> confdefs.h <<\EOF
10544 #define HAVE_MODFL 1
10545 EOF
10546
10547     cat >> confdefs.h <<\EOF
10548 #define HAVE_POWL 1
10549 EOF
10550
10551     cat >> confdefs.h <<\EOF
10552 #define HAVE_SINCOSL 1
10553 EOF
10554
10555     cat >> confdefs.h <<\EOF
10556 #define HAVE_SINL 1
10557 EOF
10558
10559     cat >> confdefs.h <<\EOF
10560 #define HAVE_SINHL 1
10561 EOF
10562
10563     cat >> confdefs.h <<\EOF
10564 #define HAVE_SQRTL 1
10565 EOF
10566
10567     cat >> confdefs.h <<\EOF
10568 #define HAVE_TANL 1
10569 EOF
10570
10571     cat >> confdefs.h <<\EOF
10572 #define HAVE_TANHL 1
10573 EOF
10574
10575   fi
10576
10577 else
10578
10579   # We are being configured natively. We can do more elaborate tests
10580   # that include AC_TRY_COMPILE now, as the linker is assumed to be
10581   # working.
10582   GLIBCPP_IS_CROSS_COMPILING=false
10583   CANADIAN=no
10584
10585   # Check for available headers.
10586   for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
10587   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
10588   sys/types.h
10589 do
10590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10592 echo "configure:10593: checking for $ac_hdr" >&5
10593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10594   echo $ac_n "(cached) $ac_c" 1>&6
10595 else
10596   cat > conftest.$ac_ext <<EOF
10597 #line 10598 "configure"
10598 #include "confdefs.h"
10599 #include <$ac_hdr>
10600 EOF
10601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10602 { (eval echo configure:10603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10604 if test -z "$ac_err"; then
10605   rm -rf conftest*
10606   eval "ac_cv_header_$ac_safe=yes"
10607 else
10608   echo "$ac_err" >&5
10609   echo "configure: failed program was:" >&5
10610   cat conftest.$ac_ext >&5
10611   rm -rf conftest*
10612   eval "ac_cv_header_$ac_safe=no"
10613 fi
10614 rm -f conftest*
10615 fi
10616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10617   echo "$ac_t""yes" 1>&6
10618     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10619   cat >> confdefs.h <<EOF
10620 #define $ac_tr_hdr 1
10621 EOF
10622  
10623 else
10624   echo "$ac_t""no" 1>&6
10625 fi
10626 done
10627
10628
10629   
10630   # All these tests are for C++; save the language and the compiler flags.
10631   # The CXXFLAGS thing is suspicious, but based on similar bits previously
10632   # found in GLIBCPP_CONFIGURE.
10633   
10634   ac_ext=C
10635 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10636 ac_cpp='$CXXCPP $CPPFLAGS'
10637 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10638 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10639 cross_compiling=$ac_cv_prog_cxx_cross
10640
10641   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10642   ac_save_CXXFLAGS="$CXXFLAGS"
10643
10644   # Check for maintainer-mode bits.
10645   if test x"$USE_MAINTAINER_MODE" = xno; then
10646     WERROR=''
10647   else
10648     WERROR='-Werror'
10649   fi
10650
10651   # Check for -ffunction-sections -fdata-sections
10652   echo $ac_n "checking for g++ that supports -ffunction-sections -fdata-sections""... $ac_c" 1>&6
10653 echo "configure:10654: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
10654   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
10655   cat > conftest.$ac_ext <<EOF
10656 #line 10657 "configure"
10657 #include "confdefs.h"
10658
10659 int main() {
10660 int foo;
10661   
10662 ; return 0; }
10663 EOF
10664 if { (eval echo configure:10665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10665   rm -rf conftest*
10666   ac_fdsections=yes
10667 else
10668   echo "configure: failed program was:" >&5
10669   cat conftest.$ac_ext >&5
10670   rm -rf conftest*
10671   ac_fdsections=no
10672 fi
10673 rm -f conftest*
10674   if test "$ac_test_CXXFLAGS" = set; then
10675     CXXFLAGS="$ac_save_CXXFLAGS"
10676   else
10677     # this is the suspicious part
10678     CXXFLAGS=''
10679   fi
10680   if test x"$ac_fdsections" = x"yes"; then
10681     SECTION_FLAGS='-ffunction-sections -fdata-sections'
10682   fi
10683   echo "$ac_t""$ac_fdsections" 1>&6
10684
10685   ac_ext=c
10686 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10687 ac_cpp='$CPP $CPPFLAGS'
10688 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10689 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10690 cross_compiling=$ac_cv_prog_cc_cross
10691
10692   
10693   
10694
10695   
10696   # If we're not using GNU ld, then there's no point in even trying these
10697   # tests.  Check for that first.  We should have already tested for gld
10698   # by now (in libtool), but require it now just to be safe...
10699   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
10700   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
10701   
10702
10703   # The name set by libtool depends on the version of libtool.  Shame on us
10704   # for depending on an impl detail, but c'est la vie.  Older versions used
10705   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
10706   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
10707   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
10708   # set (hence we're using an older libtool), then set it.
10709   if test x${with_gnu_ld+set} != xset; then
10710     if test x${ac_cv_prog_gnu_ld+set} != xset; then
10711       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
10712       with_gnu_ld=no
10713     else
10714       with_gnu_ld=$ac_cv_prog_gnu_ld
10715     fi
10716   fi
10717
10718   # Start by getting the version number.  I think the libtool test already
10719   # does some of this, but throws away the result.
10720   
10721   ldver=`$LD --version 2>/dev/null | head -1 | \
10722          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
10723   
10724   glibcpp_gnu_ld_version=`echo $ldver | \
10725          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
10726
10727   # Set --gc-sections.
10728   if test "$with_gnu_ld" = "notbroken"; then
10729     # GNU ld it is!  Joy and bunny rabbits!
10730
10731     # All these tests are for C++; save the language and the compiler flags.
10732     # Need to do this so that g++ won't try to link in libstdc++
10733     ac_test_CFLAGS="${CFLAGS+set}"
10734     ac_save_CFLAGS="$CFLAGS"
10735     CFLAGS='-x c++  -Wl,--gc-sections'
10736
10737     # Check for -Wl,--gc-sections
10738     # XXX This test is broken at the moment, as symbols required for
10739     # linking are now in libsupc++ (not built yet.....). In addition,
10740     # this test has cored on solaris in the past. In addition,
10741     # --gc-sections doesn't really work at the moment (keeps on discarding
10742     # used sections, first .eh_frame and now some of the glibc sections for
10743     # iconv). Bzzzzt. Thanks for playing, maybe next time.
10744     echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
10745 echo "configure:10746: checking for ld that supports -Wl,--gc-sections" >&5
10746     if test "$cross_compiling" = yes; then
10747   ac_sectionLDflags=yes
10748 else
10749   cat > conftest.$ac_ext <<EOF
10750 #line 10751 "configure"
10751 #include "confdefs.h"
10752
10753      int main(void)
10754      {
10755        try { throw 1; }
10756        catch (...) { };
10757        return 0;
10758      }
10759     
10760 EOF
10761 if { (eval echo configure:10762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10762 then
10763   ac_sectionLDflags=yes
10764 else
10765   echo "configure: failed program was:" >&5
10766   cat conftest.$ac_ext >&5
10767   rm -fr conftest*
10768   ac_sectionLDflags=no
10769 fi
10770 rm -fr conftest*
10771 fi
10772
10773     if test "$ac_test_CFLAGS" = set; then
10774       CFLAGS="$ac_save_CFLAGS"
10775     else
10776       # this is the suspicious part
10777       CFLAGS=''
10778     fi
10779     if test "$ac_sectionLDflags" = "yes"; then
10780       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
10781     fi
10782     echo "$ac_t""$ac_sectionLDflags" 1>&6
10783   fi
10784
10785   # Set linker optimization flags.
10786   if test x"$with_gnu_ld" = x"yes"; then
10787     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
10788   fi
10789
10790   
10791   
10792
10793   
10794   ac_test_CXXFLAGS="${CXXFLAGS+set}"
10795   ac_save_CXXFLAGS="$CXXFLAGS"
10796   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
10797
10798     echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
10799 echo "configure:10800: checking for sin in -lm" >&5
10800 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
10801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10802   echo $ac_n "(cached) $ac_c" 1>&6
10803 else
10804   ac_save_LIBS="$LIBS"
10805 LIBS="-lm  $LIBS"
10806 cat > conftest.$ac_ext <<EOF
10807 #line 10808 "configure"
10808 #include "confdefs.h"
10809 /* Override any gcc2 internal prototype to avoid an error.  */
10810 /* We use char because int might match the return type of a gcc2
10811     builtin and then its argument prototype would still apply.  */
10812 char sin();
10813
10814 int main() {
10815 sin()
10816 ; return 0; }
10817 EOF
10818 if { (eval echo configure:10819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10819   rm -rf conftest*
10820   eval "ac_cv_lib_$ac_lib_var=yes"
10821 else
10822   echo "configure: failed program was:" >&5
10823   cat conftest.$ac_ext >&5
10824   rm -rf conftest*
10825   eval "ac_cv_lib_$ac_lib_var=no"
10826 fi
10827 rm -f conftest*
10828 LIBS="$ac_save_LIBS"
10829
10830 fi
10831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10832   echo "$ac_t""yes" 1>&6
10833   libm="-lm"
10834 else
10835   echo "$ac_t""no" 1>&6
10836 fi
10837
10838   ac_save_LIBS="$LIBS"
10839   LIBS="$LIBS $libm"
10840
10841     
10842   
10843   echo $ac_n "checking for isinf declaration""... $ac_c" 1>&6
10844 echo "configure:10845: checking for isinf declaration" >&5
10845   if test x${glibcpp_cv_func_isinf_use+set} != xset; then
10846     if eval "test \"`echo '$''{'glibcpp_cv_func_isinf_use'+set}'`\" = set"; then
10847   echo $ac_n "(cached) $ac_c" 1>&6
10848 else
10849   
10850       
10851       ac_ext=C
10852 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10853 ac_cpp='$CXXCPP $CPPFLAGS'
10854 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10855 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10856 cross_compiling=$ac_cv_prog_cxx_cross
10857
10858       cat > conftest.$ac_ext <<EOF
10859 #line 10860 "configure"
10860 #include "confdefs.h"
10861 #include <math.h>
10862                       #ifdef HAVE_IEEEFP_H
10863                       #include <ieeefp.h>
10864                       #endif
10865                      
10866 int main() {
10867  isinf(0);
10868 ; return 0; }
10869 EOF
10870 if { (eval echo configure:10871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10871   rm -rf conftest*
10872   glibcpp_cv_func_isinf_use=yes
10873 else
10874   echo "configure: failed program was:" >&5
10875   cat conftest.$ac_ext >&5
10876   rm -rf conftest*
10877   glibcpp_cv_func_isinf_use=no
10878 fi
10879 rm -f conftest*
10880       ac_ext=c
10881 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10882 ac_cpp='$CPP $CPPFLAGS'
10883 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10884 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10885 cross_compiling=$ac_cv_prog_cc_cross
10886
10887     
10888 fi
10889
10890   fi
10891   echo "$ac_t""$glibcpp_cv_func_isinf_use" 1>&6
10892
10893   if test x$glibcpp_cv_func_isinf_use = x"yes"; then
10894     for ac_func in isinf
10895 do
10896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10897 echo "configure:10898: checking for $ac_func" >&5
10898 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10899   echo $ac_n "(cached) $ac_c" 1>&6
10900 else
10901   cat > conftest.$ac_ext <<EOF
10902 #line 10903 "configure"
10903 #include "confdefs.h"
10904 /* System header to define __stub macros and hopefully few prototypes,
10905     which can conflict with char $ac_func(); below.  */
10906 #include <assert.h>
10907 /* Override any gcc2 internal prototype to avoid an error.  */
10908 /* We use char because int might match the return type of a gcc2
10909     builtin and then its argument prototype would still apply.  */
10910 char $ac_func();
10911
10912 int main() {
10913
10914 /* The GNU C library defines this for functions which it implements
10915     to always fail with ENOSYS.  Some functions are actually named
10916     something starting with __ and the normal name is an alias.  */
10917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10918 choke me
10919 #else
10920 $ac_func();
10921 #endif
10922
10923 ; return 0; }
10924 EOF
10925 if { (eval echo configure:10926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10926   rm -rf conftest*
10927   eval "ac_cv_func_$ac_func=yes"
10928 else
10929   echo "configure: failed program was:" >&5
10930   cat conftest.$ac_ext >&5
10931   rm -rf conftest*
10932   eval "ac_cv_func_$ac_func=no"
10933 fi
10934 rm -f conftest*
10935 fi
10936
10937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10938   echo "$ac_t""yes" 1>&6
10939     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10940   cat >> confdefs.h <<EOF
10941 #define $ac_tr_func 1
10942 EOF
10943  
10944 else
10945   echo "$ac_t""no" 1>&6
10946 fi
10947 done
10948
10949   else
10950     
10951   echo $ac_n "checking for _isinf declaration""... $ac_c" 1>&6
10952 echo "configure:10953: checking for _isinf declaration" >&5
10953   if test x${glibcpp_cv_func__isinf_use+set} != xset; then
10954     if eval "test \"`echo '$''{'glibcpp_cv_func__isinf_use'+set}'`\" = set"; then
10955   echo $ac_n "(cached) $ac_c" 1>&6
10956 else
10957   
10958       
10959       ac_ext=C
10960 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10961 ac_cpp='$CXXCPP $CPPFLAGS'
10962 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10963 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10964 cross_compiling=$ac_cv_prog_cxx_cross
10965
10966       cat > conftest.$ac_ext <<EOF
10967 #line 10968 "configure"
10968 #include "confdefs.h"
10969 #include <math.h>
10970                       #ifdef HAVE_IEEEFP_H
10971                       #include <ieeefp.h>
10972                       #endif
10973                      
10974 int main() {
10975  _isinf(0);
10976 ; return 0; }
10977 EOF
10978 if { (eval echo configure:10979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10979   rm -rf conftest*
10980   glibcpp_cv_func__isinf_use=yes
10981 else
10982   echo "configure: failed program was:" >&5
10983   cat conftest.$ac_ext >&5
10984   rm -rf conftest*
10985   glibcpp_cv_func__isinf_use=no
10986 fi
10987 rm -f conftest*
10988       ac_ext=c
10989 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10990 ac_cpp='$CPP $CPPFLAGS'
10991 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10992 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10993 cross_compiling=$ac_cv_prog_cc_cross
10994
10995     
10996 fi
10997
10998   fi
10999   echo "$ac_t""$glibcpp_cv_func__isinf_use" 1>&6
11000
11001     if test x$glibcpp_cv_func__isinf_use = x"yes"; then
11002       for ac_func in _isinf
11003 do
11004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11005 echo "configure:11006: checking for $ac_func" >&5
11006 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11007   echo $ac_n "(cached) $ac_c" 1>&6
11008 else
11009   cat > conftest.$ac_ext <<EOF
11010 #line 11011 "configure"
11011 #include "confdefs.h"
11012 /* System header to define __stub macros and hopefully few prototypes,
11013     which can conflict with char $ac_func(); below.  */
11014 #include <assert.h>
11015 /* Override any gcc2 internal prototype to avoid an error.  */
11016 /* We use char because int might match the return type of a gcc2
11017     builtin and then its argument prototype would still apply.  */
11018 char $ac_func();
11019
11020 int main() {
11021
11022 /* The GNU C library defines this for functions which it implements
11023     to always fail with ENOSYS.  Some functions are actually named
11024     something starting with __ and the normal name is an alias.  */
11025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11026 choke me
11027 #else
11028 $ac_func();
11029 #endif
11030
11031 ; return 0; }
11032 EOF
11033 if { (eval echo configure:11034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11034   rm -rf conftest*
11035   eval "ac_cv_func_$ac_func=yes"
11036 else
11037   echo "configure: failed program was:" >&5
11038   cat conftest.$ac_ext >&5
11039   rm -rf conftest*
11040   eval "ac_cv_func_$ac_func=no"
11041 fi
11042 rm -f conftest*
11043 fi
11044
11045 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11046   echo "$ac_t""yes" 1>&6
11047     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11048   cat >> confdefs.h <<EOF
11049 #define $ac_tr_func 1
11050 EOF
11051  
11052 else
11053   echo "$ac_t""no" 1>&6
11054 fi
11055 done
11056
11057     fi
11058   fi
11059
11060   
11061   
11062   echo $ac_n "checking for isnan declaration""... $ac_c" 1>&6
11063 echo "configure:11064: checking for isnan declaration" >&5
11064   if test x${glibcpp_cv_func_isnan_use+set} != xset; then
11065     if eval "test \"`echo '$''{'glibcpp_cv_func_isnan_use'+set}'`\" = set"; then
11066   echo $ac_n "(cached) $ac_c" 1>&6
11067 else
11068   
11069       
11070       ac_ext=C
11071 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11072 ac_cpp='$CXXCPP $CPPFLAGS'
11073 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11074 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11075 cross_compiling=$ac_cv_prog_cxx_cross
11076
11077       cat > conftest.$ac_ext <<EOF
11078 #line 11079 "configure"
11079 #include "confdefs.h"
11080 #include <math.h>
11081                       #ifdef HAVE_IEEEFP_H
11082                       #include <ieeefp.h>
11083                       #endif
11084                      
11085 int main() {
11086  isnan(0);
11087 ; return 0; }
11088 EOF
11089 if { (eval echo configure:11090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11090   rm -rf conftest*
11091   glibcpp_cv_func_isnan_use=yes
11092 else
11093   echo "configure: failed program was:" >&5
11094   cat conftest.$ac_ext >&5
11095   rm -rf conftest*
11096   glibcpp_cv_func_isnan_use=no
11097 fi
11098 rm -f conftest*
11099       ac_ext=c
11100 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11101 ac_cpp='$CPP $CPPFLAGS'
11102 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11103 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11104 cross_compiling=$ac_cv_prog_cc_cross
11105
11106     
11107 fi
11108
11109   fi
11110   echo "$ac_t""$glibcpp_cv_func_isnan_use" 1>&6
11111
11112   if test x$glibcpp_cv_func_isnan_use = x"yes"; then
11113     for ac_func in isnan
11114 do
11115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11116 echo "configure:11117: checking for $ac_func" >&5
11117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11118   echo $ac_n "(cached) $ac_c" 1>&6
11119 else
11120   cat > conftest.$ac_ext <<EOF
11121 #line 11122 "configure"
11122 #include "confdefs.h"
11123 /* System header to define __stub macros and hopefully few prototypes,
11124     which can conflict with char $ac_func(); below.  */
11125 #include <assert.h>
11126 /* Override any gcc2 internal prototype to avoid an error.  */
11127 /* We use char because int might match the return type of a gcc2
11128     builtin and then its argument prototype would still apply.  */
11129 char $ac_func();
11130
11131 int main() {
11132
11133 /* The GNU C library defines this for functions which it implements
11134     to always fail with ENOSYS.  Some functions are actually named
11135     something starting with __ and the normal name is an alias.  */
11136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11137 choke me
11138 #else
11139 $ac_func();
11140 #endif
11141
11142 ; return 0; }
11143 EOF
11144 if { (eval echo configure:11145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11145   rm -rf conftest*
11146   eval "ac_cv_func_$ac_func=yes"
11147 else
11148   echo "configure: failed program was:" >&5
11149   cat conftest.$ac_ext >&5
11150   rm -rf conftest*
11151   eval "ac_cv_func_$ac_func=no"
11152 fi
11153 rm -f conftest*
11154 fi
11155
11156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11157   echo "$ac_t""yes" 1>&6
11158     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11159   cat >> confdefs.h <<EOF
11160 #define $ac_tr_func 1
11161 EOF
11162  
11163 else
11164   echo "$ac_t""no" 1>&6
11165 fi
11166 done
11167
11168   else
11169     
11170   echo $ac_n "checking for _isnan declaration""... $ac_c" 1>&6
11171 echo "configure:11172: checking for _isnan declaration" >&5
11172   if test x${glibcpp_cv_func__isnan_use+set} != xset; then
11173     if eval "test \"`echo '$''{'glibcpp_cv_func__isnan_use'+set}'`\" = set"; then
11174   echo $ac_n "(cached) $ac_c" 1>&6
11175 else
11176   
11177       
11178       ac_ext=C
11179 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11180 ac_cpp='$CXXCPP $CPPFLAGS'
11181 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11182 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11183 cross_compiling=$ac_cv_prog_cxx_cross
11184
11185       cat > conftest.$ac_ext <<EOF
11186 #line 11187 "configure"
11187 #include "confdefs.h"
11188 #include <math.h>
11189                       #ifdef HAVE_IEEEFP_H
11190                       #include <ieeefp.h>
11191                       #endif
11192                      
11193 int main() {
11194  _isnan(0);
11195 ; return 0; }
11196 EOF
11197 if { (eval echo configure:11198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11198   rm -rf conftest*
11199   glibcpp_cv_func__isnan_use=yes
11200 else
11201   echo "configure: failed program was:" >&5
11202   cat conftest.$ac_ext >&5
11203   rm -rf conftest*
11204   glibcpp_cv_func__isnan_use=no
11205 fi
11206 rm -f conftest*
11207       ac_ext=c
11208 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11209 ac_cpp='$CPP $CPPFLAGS'
11210 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11211 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11212 cross_compiling=$ac_cv_prog_cc_cross
11213
11214     
11215 fi
11216
11217   fi
11218   echo "$ac_t""$glibcpp_cv_func__isnan_use" 1>&6
11219
11220     if test x$glibcpp_cv_func__isnan_use = x"yes"; then
11221       for ac_func in _isnan
11222 do
11223 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11224 echo "configure:11225: checking for $ac_func" >&5
11225 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11226   echo $ac_n "(cached) $ac_c" 1>&6
11227 else
11228   cat > conftest.$ac_ext <<EOF
11229 #line 11230 "configure"
11230 #include "confdefs.h"
11231 /* System header to define __stub macros and hopefully few prototypes,
11232     which can conflict with char $ac_func(); below.  */
11233 #include <assert.h>
11234 /* Override any gcc2 internal prototype to avoid an error.  */
11235 /* We use char because int might match the return type of a gcc2
11236     builtin and then its argument prototype would still apply.  */
11237 char $ac_func();
11238
11239 int main() {
11240
11241 /* The GNU C library defines this for functions which it implements
11242     to always fail with ENOSYS.  Some functions are actually named
11243     something starting with __ and the normal name is an alias.  */
11244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11245 choke me
11246 #else
11247 $ac_func();
11248 #endif
11249
11250 ; return 0; }
11251 EOF
11252 if { (eval echo configure:11253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11253   rm -rf conftest*
11254   eval "ac_cv_func_$ac_func=yes"
11255 else
11256   echo "configure: failed program was:" >&5
11257   cat conftest.$ac_ext >&5
11258   rm -rf conftest*
11259   eval "ac_cv_func_$ac_func=no"
11260 fi
11261 rm -f conftest*
11262 fi
11263
11264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11265   echo "$ac_t""yes" 1>&6
11266     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11267   cat >> confdefs.h <<EOF
11268 #define $ac_tr_func 1
11269 EOF
11270  
11271 else
11272   echo "$ac_t""no" 1>&6
11273 fi
11274 done
11275
11276     fi
11277   fi
11278
11279   
11280   
11281   echo $ac_n "checking for finite declaration""... $ac_c" 1>&6
11282 echo "configure:11283: checking for finite declaration" >&5
11283   if test x${glibcpp_cv_func_finite_use+set} != xset; then
11284     if eval "test \"`echo '$''{'glibcpp_cv_func_finite_use'+set}'`\" = set"; then
11285   echo $ac_n "(cached) $ac_c" 1>&6
11286 else
11287   
11288       
11289       ac_ext=C
11290 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11291 ac_cpp='$CXXCPP $CPPFLAGS'
11292 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11293 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11294 cross_compiling=$ac_cv_prog_cxx_cross
11295
11296       cat > conftest.$ac_ext <<EOF
11297 #line 11298 "configure"
11298 #include "confdefs.h"
11299 #include <math.h>
11300                       #ifdef HAVE_IEEEFP_H
11301                       #include <ieeefp.h>
11302                       #endif
11303                      
11304 int main() {
11305  finite(0);
11306 ; return 0; }
11307 EOF
11308 if { (eval echo configure:11309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11309   rm -rf conftest*
11310   glibcpp_cv_func_finite_use=yes
11311 else
11312   echo "configure: failed program was:" >&5
11313   cat conftest.$ac_ext >&5
11314   rm -rf conftest*
11315   glibcpp_cv_func_finite_use=no
11316 fi
11317 rm -f conftest*
11318       ac_ext=c
11319 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11320 ac_cpp='$CPP $CPPFLAGS'
11321 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11322 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11323 cross_compiling=$ac_cv_prog_cc_cross
11324
11325     
11326 fi
11327
11328   fi
11329   echo "$ac_t""$glibcpp_cv_func_finite_use" 1>&6
11330
11331   if test x$glibcpp_cv_func_finite_use = x"yes"; then
11332     for ac_func in finite
11333 do
11334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11335 echo "configure:11336: checking for $ac_func" >&5
11336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11337   echo $ac_n "(cached) $ac_c" 1>&6
11338 else
11339   cat > conftest.$ac_ext <<EOF
11340 #line 11341 "configure"
11341 #include "confdefs.h"
11342 /* System header to define __stub macros and hopefully few prototypes,
11343     which can conflict with char $ac_func(); below.  */
11344 #include <assert.h>
11345 /* Override any gcc2 internal prototype to avoid an error.  */
11346 /* We use char because int might match the return type of a gcc2
11347     builtin and then its argument prototype would still apply.  */
11348 char $ac_func();
11349
11350 int main() {
11351
11352 /* The GNU C library defines this for functions which it implements
11353     to always fail with ENOSYS.  Some functions are actually named
11354     something starting with __ and the normal name is an alias.  */
11355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11356 choke me
11357 #else
11358 $ac_func();
11359 #endif
11360
11361 ; return 0; }
11362 EOF
11363 if { (eval echo configure:11364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11364   rm -rf conftest*
11365   eval "ac_cv_func_$ac_func=yes"
11366 else
11367   echo "configure: failed program was:" >&5
11368   cat conftest.$ac_ext >&5
11369   rm -rf conftest*
11370   eval "ac_cv_func_$ac_func=no"
11371 fi
11372 rm -f conftest*
11373 fi
11374
11375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11376   echo "$ac_t""yes" 1>&6
11377     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11378   cat >> confdefs.h <<EOF
11379 #define $ac_tr_func 1
11380 EOF
11381  
11382 else
11383   echo "$ac_t""no" 1>&6
11384 fi
11385 done
11386
11387   else
11388     
11389   echo $ac_n "checking for _finite declaration""... $ac_c" 1>&6
11390 echo "configure:11391: checking for _finite declaration" >&5
11391   if test x${glibcpp_cv_func__finite_use+set} != xset; then
11392     if eval "test \"`echo '$''{'glibcpp_cv_func__finite_use'+set}'`\" = set"; then
11393   echo $ac_n "(cached) $ac_c" 1>&6
11394 else
11395   
11396       
11397       ac_ext=C
11398 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11399 ac_cpp='$CXXCPP $CPPFLAGS'
11400 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11401 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11402 cross_compiling=$ac_cv_prog_cxx_cross
11403
11404       cat > conftest.$ac_ext <<EOF
11405 #line 11406 "configure"
11406 #include "confdefs.h"
11407 #include <math.h>
11408                       #ifdef HAVE_IEEEFP_H
11409                       #include <ieeefp.h>
11410                       #endif
11411                      
11412 int main() {
11413  _finite(0);
11414 ; return 0; }
11415 EOF
11416 if { (eval echo configure:11417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11417   rm -rf conftest*
11418   glibcpp_cv_func__finite_use=yes
11419 else
11420   echo "configure: failed program was:" >&5
11421   cat conftest.$ac_ext >&5
11422   rm -rf conftest*
11423   glibcpp_cv_func__finite_use=no
11424 fi
11425 rm -f conftest*
11426       ac_ext=c
11427 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11428 ac_cpp='$CPP $CPPFLAGS'
11429 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11430 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11431 cross_compiling=$ac_cv_prog_cc_cross
11432
11433     
11434 fi
11435
11436   fi
11437   echo "$ac_t""$glibcpp_cv_func__finite_use" 1>&6
11438
11439     if test x$glibcpp_cv_func__finite_use = x"yes"; then
11440       for ac_func in _finite
11441 do
11442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11443 echo "configure:11444: checking for $ac_func" >&5
11444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11445   echo $ac_n "(cached) $ac_c" 1>&6
11446 else
11447   cat > conftest.$ac_ext <<EOF
11448 #line 11449 "configure"
11449 #include "confdefs.h"
11450 /* System header to define __stub macros and hopefully few prototypes,
11451     which can conflict with char $ac_func(); below.  */
11452 #include <assert.h>
11453 /* Override any gcc2 internal prototype to avoid an error.  */
11454 /* We use char because int might match the return type of a gcc2
11455     builtin and then its argument prototype would still apply.  */
11456 char $ac_func();
11457
11458 int main() {
11459
11460 /* The GNU C library defines this for functions which it implements
11461     to always fail with ENOSYS.  Some functions are actually named
11462     something starting with __ and the normal name is an alias.  */
11463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11464 choke me
11465 #else
11466 $ac_func();
11467 #endif
11468
11469 ; return 0; }
11470 EOF
11471 if { (eval echo configure:11472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11472   rm -rf conftest*
11473   eval "ac_cv_func_$ac_func=yes"
11474 else
11475   echo "configure: failed program was:" >&5
11476   cat conftest.$ac_ext >&5
11477   rm -rf conftest*
11478   eval "ac_cv_func_$ac_func=no"
11479 fi
11480 rm -f conftest*
11481 fi
11482
11483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11484   echo "$ac_t""yes" 1>&6
11485     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11486   cat >> confdefs.h <<EOF
11487 #define $ac_tr_func 1
11488 EOF
11489  
11490 else
11491   echo "$ac_t""no" 1>&6
11492 fi
11493 done
11494
11495     fi
11496   fi
11497
11498   
11499   
11500   echo $ac_n "checking for copysign declaration""... $ac_c" 1>&6
11501 echo "configure:11502: checking for copysign declaration" >&5
11502   if test x${glibcpp_cv_func_copysign_use+set} != xset; then
11503     if eval "test \"`echo '$''{'glibcpp_cv_func_copysign_use'+set}'`\" = set"; then
11504   echo $ac_n "(cached) $ac_c" 1>&6
11505 else
11506   
11507       
11508       ac_ext=C
11509 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11510 ac_cpp='$CXXCPP $CPPFLAGS'
11511 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11512 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11513 cross_compiling=$ac_cv_prog_cxx_cross
11514
11515       cat > conftest.$ac_ext <<EOF
11516 #line 11517 "configure"
11517 #include "confdefs.h"
11518 #include <math.h>
11519 int main() {
11520  copysign(0, 0);
11521 ; return 0; }
11522 EOF
11523 if { (eval echo configure:11524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11524   rm -rf conftest*
11525   glibcpp_cv_func_copysign_use=yes
11526 else
11527   echo "configure: failed program was:" >&5
11528   cat conftest.$ac_ext >&5
11529   rm -rf conftest*
11530   glibcpp_cv_func_copysign_use=no
11531 fi
11532 rm -f conftest*
11533       ac_ext=c
11534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11535 ac_cpp='$CPP $CPPFLAGS'
11536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11538 cross_compiling=$ac_cv_prog_cc_cross
11539
11540     
11541 fi
11542
11543   fi
11544   echo "$ac_t""$glibcpp_cv_func_copysign_use" 1>&6
11545
11546   if test x$glibcpp_cv_func_copysign_use = x"yes"; then
11547     for ac_func in copysign
11548 do
11549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11550 echo "configure:11551: checking for $ac_func" >&5
11551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11552   echo $ac_n "(cached) $ac_c" 1>&6
11553 else
11554   cat > conftest.$ac_ext <<EOF
11555 #line 11556 "configure"
11556 #include "confdefs.h"
11557 /* System header to define __stub macros and hopefully few prototypes,
11558     which can conflict with char $ac_func(); below.  */
11559 #include <assert.h>
11560 /* Override any gcc2 internal prototype to avoid an error.  */
11561 /* We use char because int might match the return type of a gcc2
11562     builtin and then its argument prototype would still apply.  */
11563 char $ac_func();
11564
11565 int main() {
11566
11567 /* The GNU C library defines this for functions which it implements
11568     to always fail with ENOSYS.  Some functions are actually named
11569     something starting with __ and the normal name is an alias.  */
11570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11571 choke me
11572 #else
11573 $ac_func();
11574 #endif
11575
11576 ; return 0; }
11577 EOF
11578 if { (eval echo configure:11579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11579   rm -rf conftest*
11580   eval "ac_cv_func_$ac_func=yes"
11581 else
11582   echo "configure: failed program was:" >&5
11583   cat conftest.$ac_ext >&5
11584   rm -rf conftest*
11585   eval "ac_cv_func_$ac_func=no"
11586 fi
11587 rm -f conftest*
11588 fi
11589
11590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11591   echo "$ac_t""yes" 1>&6
11592     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11593   cat >> confdefs.h <<EOF
11594 #define $ac_tr_func 1
11595 EOF
11596  
11597 else
11598   echo "$ac_t""no" 1>&6
11599 fi
11600 done
11601
11602   else
11603     
11604   echo $ac_n "checking for _copysign declaration""... $ac_c" 1>&6
11605 echo "configure:11606: checking for _copysign declaration" >&5
11606   if test x${glibcpp_cv_func__copysign_use+set} != xset; then
11607     if eval "test \"`echo '$''{'glibcpp_cv_func__copysign_use'+set}'`\" = set"; then
11608   echo $ac_n "(cached) $ac_c" 1>&6
11609 else
11610   
11611       
11612       ac_ext=C
11613 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11614 ac_cpp='$CXXCPP $CPPFLAGS'
11615 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11616 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11617 cross_compiling=$ac_cv_prog_cxx_cross
11618
11619       cat > conftest.$ac_ext <<EOF
11620 #line 11621 "configure"
11621 #include "confdefs.h"
11622 #include <math.h>
11623 int main() {
11624  _copysign(0, 0);
11625 ; return 0; }
11626 EOF
11627 if { (eval echo configure:11628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11628   rm -rf conftest*
11629   glibcpp_cv_func__copysign_use=yes
11630 else
11631   echo "configure: failed program was:" >&5
11632   cat conftest.$ac_ext >&5
11633   rm -rf conftest*
11634   glibcpp_cv_func__copysign_use=no
11635 fi
11636 rm -f conftest*
11637       ac_ext=c
11638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11639 ac_cpp='$CPP $CPPFLAGS'
11640 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11641 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11642 cross_compiling=$ac_cv_prog_cc_cross
11643
11644     
11645 fi
11646
11647   fi
11648   echo "$ac_t""$glibcpp_cv_func__copysign_use" 1>&6
11649
11650     if test x$glibcpp_cv_func__copysign_use = x"yes"; then
11651       for ac_func in _copysign
11652 do
11653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11654 echo "configure:11655: checking for $ac_func" >&5
11655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11656   echo $ac_n "(cached) $ac_c" 1>&6
11657 else
11658   cat > conftest.$ac_ext <<EOF
11659 #line 11660 "configure"
11660 #include "confdefs.h"
11661 /* System header to define __stub macros and hopefully few prototypes,
11662     which can conflict with char $ac_func(); below.  */
11663 #include <assert.h>
11664 /* Override any gcc2 internal prototype to avoid an error.  */
11665 /* We use char because int might match the return type of a gcc2
11666     builtin and then its argument prototype would still apply.  */
11667 char $ac_func();
11668
11669 int main() {
11670
11671 /* The GNU C library defines this for functions which it implements
11672     to always fail with ENOSYS.  Some functions are actually named
11673     something starting with __ and the normal name is an alias.  */
11674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11675 choke me
11676 #else
11677 $ac_func();
11678 #endif
11679
11680 ; return 0; }
11681 EOF
11682 if { (eval echo configure:11683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11683   rm -rf conftest*
11684   eval "ac_cv_func_$ac_func=yes"
11685 else
11686   echo "configure: failed program was:" >&5
11687   cat conftest.$ac_ext >&5
11688   rm -rf conftest*
11689   eval "ac_cv_func_$ac_func=no"
11690 fi
11691 rm -f conftest*
11692 fi
11693
11694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11695   echo "$ac_t""yes" 1>&6
11696     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11697   cat >> confdefs.h <<EOF
11698 #define $ac_tr_func 1
11699 EOF
11700  
11701 else
11702   echo "$ac_t""no" 1>&6
11703 fi
11704 done
11705
11706     fi
11707   fi
11708
11709   
11710   
11711   echo $ac_n "checking for sincos declaration""... $ac_c" 1>&6
11712 echo "configure:11713: checking for sincos declaration" >&5
11713   if test x${glibcpp_cv_func_sincos_use+set} != xset; then
11714     if eval "test \"`echo '$''{'glibcpp_cv_func_sincos_use'+set}'`\" = set"; then
11715   echo $ac_n "(cached) $ac_c" 1>&6
11716 else
11717   
11718       
11719       ac_ext=C
11720 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11721 ac_cpp='$CXXCPP $CPPFLAGS'
11722 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11723 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11724 cross_compiling=$ac_cv_prog_cxx_cross
11725
11726       cat > conftest.$ac_ext <<EOF
11727 #line 11728 "configure"
11728 #include "confdefs.h"
11729 #include <math.h>
11730 int main() {
11731  sincos(0, 0, 0);
11732 ; return 0; }
11733 EOF
11734 if { (eval echo configure:11735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11735   rm -rf conftest*
11736   glibcpp_cv_func_sincos_use=yes
11737 else
11738   echo "configure: failed program was:" >&5
11739   cat conftest.$ac_ext >&5
11740   rm -rf conftest*
11741   glibcpp_cv_func_sincos_use=no
11742 fi
11743 rm -f conftest*
11744       ac_ext=c
11745 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11746 ac_cpp='$CPP $CPPFLAGS'
11747 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11748 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11749 cross_compiling=$ac_cv_prog_cc_cross
11750
11751     
11752 fi
11753
11754   fi
11755   echo "$ac_t""$glibcpp_cv_func_sincos_use" 1>&6
11756
11757   if test x$glibcpp_cv_func_sincos_use = x"yes"; then
11758     for ac_func in sincos
11759 do
11760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11761 echo "configure:11762: checking for $ac_func" >&5
11762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11763   echo $ac_n "(cached) $ac_c" 1>&6
11764 else
11765   cat > conftest.$ac_ext <<EOF
11766 #line 11767 "configure"
11767 #include "confdefs.h"
11768 /* System header to define __stub macros and hopefully few prototypes,
11769     which can conflict with char $ac_func(); below.  */
11770 #include <assert.h>
11771 /* Override any gcc2 internal prototype to avoid an error.  */
11772 /* We use char because int might match the return type of a gcc2
11773     builtin and then its argument prototype would still apply.  */
11774 char $ac_func();
11775
11776 int main() {
11777
11778 /* The GNU C library defines this for functions which it implements
11779     to always fail with ENOSYS.  Some functions are actually named
11780     something starting with __ and the normal name is an alias.  */
11781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11782 choke me
11783 #else
11784 $ac_func();
11785 #endif
11786
11787 ; return 0; }
11788 EOF
11789 if { (eval echo configure:11790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11790   rm -rf conftest*
11791   eval "ac_cv_func_$ac_func=yes"
11792 else
11793   echo "configure: failed program was:" >&5
11794   cat conftest.$ac_ext >&5
11795   rm -rf conftest*
11796   eval "ac_cv_func_$ac_func=no"
11797 fi
11798 rm -f conftest*
11799 fi
11800
11801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11802   echo "$ac_t""yes" 1>&6
11803     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11804   cat >> confdefs.h <<EOF
11805 #define $ac_tr_func 1
11806 EOF
11807  
11808 else
11809   echo "$ac_t""no" 1>&6
11810 fi
11811 done
11812
11813   else
11814     
11815   echo $ac_n "checking for _sincos declaration""... $ac_c" 1>&6
11816 echo "configure:11817: checking for _sincos declaration" >&5
11817   if test x${glibcpp_cv_func__sincos_use+set} != xset; then
11818     if eval "test \"`echo '$''{'glibcpp_cv_func__sincos_use'+set}'`\" = set"; then
11819   echo $ac_n "(cached) $ac_c" 1>&6
11820 else
11821   
11822       
11823       ac_ext=C
11824 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11825 ac_cpp='$CXXCPP $CPPFLAGS'
11826 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11827 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11828 cross_compiling=$ac_cv_prog_cxx_cross
11829
11830       cat > conftest.$ac_ext <<EOF
11831 #line 11832 "configure"
11832 #include "confdefs.h"
11833 #include <math.h>
11834 int main() {
11835  _sincos(0, 0, 0);
11836 ; return 0; }
11837 EOF
11838 if { (eval echo configure:11839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11839   rm -rf conftest*
11840   glibcpp_cv_func__sincos_use=yes
11841 else
11842   echo "configure: failed program was:" >&5
11843   cat conftest.$ac_ext >&5
11844   rm -rf conftest*
11845   glibcpp_cv_func__sincos_use=no
11846 fi
11847 rm -f conftest*
11848       ac_ext=c
11849 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11850 ac_cpp='$CPP $CPPFLAGS'
11851 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11852 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11853 cross_compiling=$ac_cv_prog_cc_cross
11854
11855     
11856 fi
11857
11858   fi
11859   echo "$ac_t""$glibcpp_cv_func__sincos_use" 1>&6
11860
11861     if test x$glibcpp_cv_func__sincos_use = x"yes"; then
11862       for ac_func in _sincos
11863 do
11864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11865 echo "configure:11866: checking for $ac_func" >&5
11866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11867   echo $ac_n "(cached) $ac_c" 1>&6
11868 else
11869   cat > conftest.$ac_ext <<EOF
11870 #line 11871 "configure"
11871 #include "confdefs.h"
11872 /* System header to define __stub macros and hopefully few prototypes,
11873     which can conflict with char $ac_func(); below.  */
11874 #include <assert.h>
11875 /* Override any gcc2 internal prototype to avoid an error.  */
11876 /* We use char because int might match the return type of a gcc2
11877     builtin and then its argument prototype would still apply.  */
11878 char $ac_func();
11879
11880 int main() {
11881
11882 /* The GNU C library defines this for functions which it implements
11883     to always fail with ENOSYS.  Some functions are actually named
11884     something starting with __ and the normal name is an alias.  */
11885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11886 choke me
11887 #else
11888 $ac_func();
11889 #endif
11890
11891 ; return 0; }
11892 EOF
11893 if { (eval echo configure:11894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11894   rm -rf conftest*
11895   eval "ac_cv_func_$ac_func=yes"
11896 else
11897   echo "configure: failed program was:" >&5
11898   cat conftest.$ac_ext >&5
11899   rm -rf conftest*
11900   eval "ac_cv_func_$ac_func=no"
11901 fi
11902 rm -f conftest*
11903 fi
11904
11905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11906   echo "$ac_t""yes" 1>&6
11907     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11908   cat >> confdefs.h <<EOF
11909 #define $ac_tr_func 1
11910 EOF
11911  
11912 else
11913   echo "$ac_t""no" 1>&6
11914 fi
11915 done
11916
11917     fi
11918   fi
11919
11920   
11921   
11922   echo $ac_n "checking for fpclass declaration""... $ac_c" 1>&6
11923 echo "configure:11924: checking for fpclass declaration" >&5
11924   if test x${glibcpp_cv_func_fpclass_use+set} != xset; then
11925     if eval "test \"`echo '$''{'glibcpp_cv_func_fpclass_use'+set}'`\" = set"; then
11926   echo $ac_n "(cached) $ac_c" 1>&6
11927 else
11928   
11929       
11930       ac_ext=C
11931 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11932 ac_cpp='$CXXCPP $CPPFLAGS'
11933 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11934 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11935 cross_compiling=$ac_cv_prog_cxx_cross
11936
11937       cat > conftest.$ac_ext <<EOF
11938 #line 11939 "configure"
11939 #include "confdefs.h"
11940 #include <math.h>
11941                       #ifdef HAVE_IEEEFP_H
11942                       #include <ieeefp.h>
11943                       #endif
11944                      
11945 int main() {
11946  fpclass(0);
11947 ; return 0; }
11948 EOF
11949 if { (eval echo configure:11950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11950   rm -rf conftest*
11951   glibcpp_cv_func_fpclass_use=yes
11952 else
11953   echo "configure: failed program was:" >&5
11954   cat conftest.$ac_ext >&5
11955   rm -rf conftest*
11956   glibcpp_cv_func_fpclass_use=no
11957 fi
11958 rm -f conftest*
11959       ac_ext=c
11960 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11961 ac_cpp='$CPP $CPPFLAGS'
11962 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11963 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11964 cross_compiling=$ac_cv_prog_cc_cross
11965
11966     
11967 fi
11968
11969   fi
11970   echo "$ac_t""$glibcpp_cv_func_fpclass_use" 1>&6
11971
11972   if test x$glibcpp_cv_func_fpclass_use = x"yes"; then
11973     for ac_func in fpclass
11974 do
11975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11976 echo "configure:11977: checking for $ac_func" >&5
11977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11978   echo $ac_n "(cached) $ac_c" 1>&6
11979 else
11980   cat > conftest.$ac_ext <<EOF
11981 #line 11982 "configure"
11982 #include "confdefs.h"
11983 /* System header to define __stub macros and hopefully few prototypes,
11984     which can conflict with char $ac_func(); below.  */
11985 #include <assert.h>
11986 /* Override any gcc2 internal prototype to avoid an error.  */
11987 /* We use char because int might match the return type of a gcc2
11988     builtin and then its argument prototype would still apply.  */
11989 char $ac_func();
11990
11991 int main() {
11992
11993 /* The GNU C library defines this for functions which it implements
11994     to always fail with ENOSYS.  Some functions are actually named
11995     something starting with __ and the normal name is an alias.  */
11996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11997 choke me
11998 #else
11999 $ac_func();
12000 #endif
12001
12002 ; return 0; }
12003 EOF
12004 if { (eval echo configure:12005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12005   rm -rf conftest*
12006   eval "ac_cv_func_$ac_func=yes"
12007 else
12008   echo "configure: failed program was:" >&5
12009   cat conftest.$ac_ext >&5
12010   rm -rf conftest*
12011   eval "ac_cv_func_$ac_func=no"
12012 fi
12013 rm -f conftest*
12014 fi
12015
12016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12017   echo "$ac_t""yes" 1>&6
12018     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12019   cat >> confdefs.h <<EOF
12020 #define $ac_tr_func 1
12021 EOF
12022  
12023 else
12024   echo "$ac_t""no" 1>&6
12025 fi
12026 done
12027
12028   else
12029     
12030   echo $ac_n "checking for _fpclass declaration""... $ac_c" 1>&6
12031 echo "configure:12032: checking for _fpclass declaration" >&5
12032   if test x${glibcpp_cv_func__fpclass_use+set} != xset; then
12033     if eval "test \"`echo '$''{'glibcpp_cv_func__fpclass_use'+set}'`\" = set"; then
12034   echo $ac_n "(cached) $ac_c" 1>&6
12035 else
12036   
12037       
12038       ac_ext=C
12039 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12040 ac_cpp='$CXXCPP $CPPFLAGS'
12041 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12042 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12043 cross_compiling=$ac_cv_prog_cxx_cross
12044
12045       cat > conftest.$ac_ext <<EOF
12046 #line 12047 "configure"
12047 #include "confdefs.h"
12048 #include <math.h>
12049                       #ifdef HAVE_IEEEFP_H
12050                       #include <ieeefp.h>
12051                       #endif
12052                      
12053 int main() {
12054  _fpclass(0);
12055 ; return 0; }
12056 EOF
12057 if { (eval echo configure:12058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12058   rm -rf conftest*
12059   glibcpp_cv_func__fpclass_use=yes
12060 else
12061   echo "configure: failed program was:" >&5
12062   cat conftest.$ac_ext >&5
12063   rm -rf conftest*
12064   glibcpp_cv_func__fpclass_use=no
12065 fi
12066 rm -f conftest*
12067       ac_ext=c
12068 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12069 ac_cpp='$CPP $CPPFLAGS'
12070 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12071 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12072 cross_compiling=$ac_cv_prog_cc_cross
12073
12074     
12075 fi
12076
12077   fi
12078   echo "$ac_t""$glibcpp_cv_func__fpclass_use" 1>&6
12079
12080     if test x$glibcpp_cv_func__fpclass_use = x"yes"; then
12081       for ac_func in _fpclass
12082 do
12083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12084 echo "configure:12085: checking for $ac_func" >&5
12085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12086   echo $ac_n "(cached) $ac_c" 1>&6
12087 else
12088   cat > conftest.$ac_ext <<EOF
12089 #line 12090 "configure"
12090 #include "confdefs.h"
12091 /* System header to define __stub macros and hopefully few prototypes,
12092     which can conflict with char $ac_func(); below.  */
12093 #include <assert.h>
12094 /* Override any gcc2 internal prototype to avoid an error.  */
12095 /* We use char because int might match the return type of a gcc2
12096     builtin and then its argument prototype would still apply.  */
12097 char $ac_func();
12098
12099 int main() {
12100
12101 /* The GNU C library defines this for functions which it implements
12102     to always fail with ENOSYS.  Some functions are actually named
12103     something starting with __ and the normal name is an alias.  */
12104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12105 choke me
12106 #else
12107 $ac_func();
12108 #endif
12109
12110 ; return 0; }
12111 EOF
12112 if { (eval echo configure:12113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12113   rm -rf conftest*
12114   eval "ac_cv_func_$ac_func=yes"
12115 else
12116   echo "configure: failed program was:" >&5
12117   cat conftest.$ac_ext >&5
12118   rm -rf conftest*
12119   eval "ac_cv_func_$ac_func=no"
12120 fi
12121 rm -f conftest*
12122 fi
12123
12124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12125   echo "$ac_t""yes" 1>&6
12126     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12127   cat >> confdefs.h <<EOF
12128 #define $ac_tr_func 1
12129 EOF
12130  
12131 else
12132   echo "$ac_t""no" 1>&6
12133 fi
12134 done
12135
12136     fi
12137   fi
12138
12139   
12140   
12141   echo $ac_n "checking for qfpclass declaration""... $ac_c" 1>&6
12142 echo "configure:12143: checking for qfpclass declaration" >&5
12143   if test x${glibcpp_cv_func_qfpclass_use+set} != xset; then
12144     if eval "test \"`echo '$''{'glibcpp_cv_func_qfpclass_use'+set}'`\" = set"; then
12145   echo $ac_n "(cached) $ac_c" 1>&6
12146 else
12147   
12148       
12149       ac_ext=C
12150 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12151 ac_cpp='$CXXCPP $CPPFLAGS'
12152 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12153 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12154 cross_compiling=$ac_cv_prog_cxx_cross
12155
12156       cat > conftest.$ac_ext <<EOF
12157 #line 12158 "configure"
12158 #include "confdefs.h"
12159 #include <math.h>
12160                       #ifdef HAVE_IEEEFP_H
12161                       #include <ieeefp.h>
12162                       #endif
12163                      
12164 int main() {
12165  qfpclass(0);
12166 ; return 0; }
12167 EOF
12168 if { (eval echo configure:12169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12169   rm -rf conftest*
12170   glibcpp_cv_func_qfpclass_use=yes
12171 else
12172   echo "configure: failed program was:" >&5
12173   cat conftest.$ac_ext >&5
12174   rm -rf conftest*
12175   glibcpp_cv_func_qfpclass_use=no
12176 fi
12177 rm -f conftest*
12178       ac_ext=c
12179 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12180 ac_cpp='$CPP $CPPFLAGS'
12181 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12182 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12183 cross_compiling=$ac_cv_prog_cc_cross
12184
12185     
12186 fi
12187
12188   fi
12189   echo "$ac_t""$glibcpp_cv_func_qfpclass_use" 1>&6
12190
12191   if test x$glibcpp_cv_func_qfpclass_use = x"yes"; then
12192     for ac_func in qfpclass
12193 do
12194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12195 echo "configure:12196: checking for $ac_func" >&5
12196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12197   echo $ac_n "(cached) $ac_c" 1>&6
12198 else
12199   cat > conftest.$ac_ext <<EOF
12200 #line 12201 "configure"
12201 #include "confdefs.h"
12202 /* System header to define __stub macros and hopefully few prototypes,
12203     which can conflict with char $ac_func(); below.  */
12204 #include <assert.h>
12205 /* Override any gcc2 internal prototype to avoid an error.  */
12206 /* We use char because int might match the return type of a gcc2
12207     builtin and then its argument prototype would still apply.  */
12208 char $ac_func();
12209
12210 int main() {
12211
12212 /* The GNU C library defines this for functions which it implements
12213     to always fail with ENOSYS.  Some functions are actually named
12214     something starting with __ and the normal name is an alias.  */
12215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12216 choke me
12217 #else
12218 $ac_func();
12219 #endif
12220
12221 ; return 0; }
12222 EOF
12223 if { (eval echo configure:12224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12224   rm -rf conftest*
12225   eval "ac_cv_func_$ac_func=yes"
12226 else
12227   echo "configure: failed program was:" >&5
12228   cat conftest.$ac_ext >&5
12229   rm -rf conftest*
12230   eval "ac_cv_func_$ac_func=no"
12231 fi
12232 rm -f conftest*
12233 fi
12234
12235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12236   echo "$ac_t""yes" 1>&6
12237     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12238   cat >> confdefs.h <<EOF
12239 #define $ac_tr_func 1
12240 EOF
12241  
12242 else
12243   echo "$ac_t""no" 1>&6
12244 fi
12245 done
12246
12247   else
12248     
12249   echo $ac_n "checking for _qfpclass declaration""... $ac_c" 1>&6
12250 echo "configure:12251: checking for _qfpclass declaration" >&5
12251   if test x${glibcpp_cv_func__qfpclass_use+set} != xset; then
12252     if eval "test \"`echo '$''{'glibcpp_cv_func__qfpclass_use'+set}'`\" = set"; then
12253   echo $ac_n "(cached) $ac_c" 1>&6
12254 else
12255   
12256       
12257       ac_ext=C
12258 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12259 ac_cpp='$CXXCPP $CPPFLAGS'
12260 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12261 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12262 cross_compiling=$ac_cv_prog_cxx_cross
12263
12264       cat > conftest.$ac_ext <<EOF
12265 #line 12266 "configure"
12266 #include "confdefs.h"
12267 #include <math.h>
12268                       #ifdef HAVE_IEEEFP_H
12269                       #include <ieeefp.h>
12270                       #endif
12271                      
12272 int main() {
12273  _qfpclass(0);
12274 ; return 0; }
12275 EOF
12276 if { (eval echo configure:12277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12277   rm -rf conftest*
12278   glibcpp_cv_func__qfpclass_use=yes
12279 else
12280   echo "configure: failed program was:" >&5
12281   cat conftest.$ac_ext >&5
12282   rm -rf conftest*
12283   glibcpp_cv_func__qfpclass_use=no
12284 fi
12285 rm -f conftest*
12286       ac_ext=c
12287 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12288 ac_cpp='$CPP $CPPFLAGS'
12289 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12290 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12291 cross_compiling=$ac_cv_prog_cc_cross
12292
12293     
12294 fi
12295
12296   fi
12297   echo "$ac_t""$glibcpp_cv_func__qfpclass_use" 1>&6
12298
12299     if test x$glibcpp_cv_func__qfpclass_use = x"yes"; then
12300       for ac_func in _qfpclass
12301 do
12302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12303 echo "configure:12304: checking for $ac_func" >&5
12304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12305   echo $ac_n "(cached) $ac_c" 1>&6
12306 else
12307   cat > conftest.$ac_ext <<EOF
12308 #line 12309 "configure"
12309 #include "confdefs.h"
12310 /* System header to define __stub macros and hopefully few prototypes,
12311     which can conflict with char $ac_func(); below.  */
12312 #include <assert.h>
12313 /* Override any gcc2 internal prototype to avoid an error.  */
12314 /* We use char because int might match the return type of a gcc2
12315     builtin and then its argument prototype would still apply.  */
12316 char $ac_func();
12317
12318 int main() {
12319
12320 /* The GNU C library defines this for functions which it implements
12321     to always fail with ENOSYS.  Some functions are actually named
12322     something starting with __ and the normal name is an alias.  */
12323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12324 choke me
12325 #else
12326 $ac_func();
12327 #endif
12328
12329 ; return 0; }
12330 EOF
12331 if { (eval echo configure:12332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12332   rm -rf conftest*
12333   eval "ac_cv_func_$ac_func=yes"
12334 else
12335   echo "configure: failed program was:" >&5
12336   cat conftest.$ac_ext >&5
12337   rm -rf conftest*
12338   eval "ac_cv_func_$ac_func=no"
12339 fi
12340 rm -f conftest*
12341 fi
12342
12343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12344   echo "$ac_t""yes" 1>&6
12345     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12346   cat >> confdefs.h <<EOF
12347 #define $ac_tr_func 1
12348 EOF
12349  
12350 else
12351   echo "$ac_t""no" 1>&6
12352 fi
12353 done
12354
12355     fi
12356   fi
12357
12358   
12359   
12360   echo $ac_n "checking for hypot declaration""... $ac_c" 1>&6
12361 echo "configure:12362: checking for hypot declaration" >&5
12362   if test x${glibcpp_cv_func_hypot_use+set} != xset; then
12363     if eval "test \"`echo '$''{'glibcpp_cv_func_hypot_use'+set}'`\" = set"; then
12364   echo $ac_n "(cached) $ac_c" 1>&6
12365 else
12366   
12367       
12368       ac_ext=C
12369 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12370 ac_cpp='$CXXCPP $CPPFLAGS'
12371 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12372 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12373 cross_compiling=$ac_cv_prog_cxx_cross
12374
12375       cat > conftest.$ac_ext <<EOF
12376 #line 12377 "configure"
12377 #include "confdefs.h"
12378 #include <math.h>
12379 int main() {
12380  hypot(0, 0);
12381 ; return 0; }
12382 EOF
12383 if { (eval echo configure:12384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12384   rm -rf conftest*
12385   glibcpp_cv_func_hypot_use=yes
12386 else
12387   echo "configure: failed program was:" >&5
12388   cat conftest.$ac_ext >&5
12389   rm -rf conftest*
12390   glibcpp_cv_func_hypot_use=no
12391 fi
12392 rm -f conftest*
12393       ac_ext=c
12394 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12395 ac_cpp='$CPP $CPPFLAGS'
12396 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12397 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12398 cross_compiling=$ac_cv_prog_cc_cross
12399
12400     
12401 fi
12402
12403   fi
12404   echo "$ac_t""$glibcpp_cv_func_hypot_use" 1>&6
12405
12406   if test x$glibcpp_cv_func_hypot_use = x"yes"; then
12407     for ac_func in hypot
12408 do
12409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12410 echo "configure:12411: checking for $ac_func" >&5
12411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12412   echo $ac_n "(cached) $ac_c" 1>&6
12413 else
12414   cat > conftest.$ac_ext <<EOF
12415 #line 12416 "configure"
12416 #include "confdefs.h"
12417 /* System header to define __stub macros and hopefully few prototypes,
12418     which can conflict with char $ac_func(); below.  */
12419 #include <assert.h>
12420 /* Override any gcc2 internal prototype to avoid an error.  */
12421 /* We use char because int might match the return type of a gcc2
12422     builtin and then its argument prototype would still apply.  */
12423 char $ac_func();
12424
12425 int main() {
12426
12427 /* The GNU C library defines this for functions which it implements
12428     to always fail with ENOSYS.  Some functions are actually named
12429     something starting with __ and the normal name is an alias.  */
12430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12431 choke me
12432 #else
12433 $ac_func();
12434 #endif
12435
12436 ; return 0; }
12437 EOF
12438 if { (eval echo configure:12439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12439   rm -rf conftest*
12440   eval "ac_cv_func_$ac_func=yes"
12441 else
12442   echo "configure: failed program was:" >&5
12443   cat conftest.$ac_ext >&5
12444   rm -rf conftest*
12445   eval "ac_cv_func_$ac_func=no"
12446 fi
12447 rm -f conftest*
12448 fi
12449
12450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12451   echo "$ac_t""yes" 1>&6
12452     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12453   cat >> confdefs.h <<EOF
12454 #define $ac_tr_func 1
12455 EOF
12456  
12457 else
12458   echo "$ac_t""no" 1>&6
12459 fi
12460 done
12461
12462   else
12463     
12464   echo $ac_n "checking for _hypot declaration""... $ac_c" 1>&6
12465 echo "configure:12466: checking for _hypot declaration" >&5
12466   if test x${glibcpp_cv_func__hypot_use+set} != xset; then
12467     if eval "test \"`echo '$''{'glibcpp_cv_func__hypot_use'+set}'`\" = set"; then
12468   echo $ac_n "(cached) $ac_c" 1>&6
12469 else
12470   
12471       
12472       ac_ext=C
12473 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12474 ac_cpp='$CXXCPP $CPPFLAGS'
12475 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12476 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12477 cross_compiling=$ac_cv_prog_cxx_cross
12478
12479       cat > conftest.$ac_ext <<EOF
12480 #line 12481 "configure"
12481 #include "confdefs.h"
12482 #include <math.h>
12483 int main() {
12484  _hypot(0, 0);
12485 ; return 0; }
12486 EOF
12487 if { (eval echo configure:12488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12488   rm -rf conftest*
12489   glibcpp_cv_func__hypot_use=yes
12490 else
12491   echo "configure: failed program was:" >&5
12492   cat conftest.$ac_ext >&5
12493   rm -rf conftest*
12494   glibcpp_cv_func__hypot_use=no
12495 fi
12496 rm -f conftest*
12497       ac_ext=c
12498 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12499 ac_cpp='$CPP $CPPFLAGS'
12500 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12501 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12502 cross_compiling=$ac_cv_prog_cc_cross
12503
12504     
12505 fi
12506
12507   fi
12508   echo "$ac_t""$glibcpp_cv_func__hypot_use" 1>&6
12509
12510     if test x$glibcpp_cv_func__hypot_use = x"yes"; then
12511       for ac_func in _hypot
12512 do
12513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12514 echo "configure:12515: checking for $ac_func" >&5
12515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12516   echo $ac_n "(cached) $ac_c" 1>&6
12517 else
12518   cat > conftest.$ac_ext <<EOF
12519 #line 12520 "configure"
12520 #include "confdefs.h"
12521 /* System header to define __stub macros and hopefully few prototypes,
12522     which can conflict with char $ac_func(); below.  */
12523 #include <assert.h>
12524 /* Override any gcc2 internal prototype to avoid an error.  */
12525 /* We use char because int might match the return type of a gcc2
12526     builtin and then its argument prototype would still apply.  */
12527 char $ac_func();
12528
12529 int main() {
12530
12531 /* The GNU C library defines this for functions which it implements
12532     to always fail with ENOSYS.  Some functions are actually named
12533     something starting with __ and the normal name is an alias.  */
12534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12535 choke me
12536 #else
12537 $ac_func();
12538 #endif
12539
12540 ; return 0; }
12541 EOF
12542 if { (eval echo configure:12543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12543   rm -rf conftest*
12544   eval "ac_cv_func_$ac_func=yes"
12545 else
12546   echo "configure: failed program was:" >&5
12547   cat conftest.$ac_ext >&5
12548   rm -rf conftest*
12549   eval "ac_cv_func_$ac_func=no"
12550 fi
12551 rm -f conftest*
12552 fi
12553
12554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12555   echo "$ac_t""yes" 1>&6
12556     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12557   cat >> confdefs.h <<EOF
12558 #define $ac_tr_func 1
12559 EOF
12560  
12561 else
12562   echo "$ac_t""no" 1>&6
12563 fi
12564 done
12565
12566     fi
12567   fi
12568
12569
12570     
12571   echo $ac_n "checking for float trig functions""... $ac_c" 1>&6
12572 echo "configure:12573: checking for float trig functions" >&5
12573   if eval "test \"`echo '$''{'glibcpp_cv_func_float_trig_use'+set}'`\" = set"; then
12574   echo $ac_n "(cached) $ac_c" 1>&6
12575 else
12576   
12577     
12578     ac_ext=C
12579 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12580 ac_cpp='$CXXCPP $CPPFLAGS'
12581 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12582 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12583 cross_compiling=$ac_cv_prog_cxx_cross
12584
12585     cat > conftest.$ac_ext <<EOF
12586 #line 12587 "configure"
12587 #include "confdefs.h"
12588 #include <math.h>
12589 int main() {
12590  `for x in acosf asinf atanf \
12591                                           cosf sinf tanf \
12592                                           coshf sinhf tanhf; do echo "$x (0);"; done` 
12593 ; return 0; }
12594 EOF
12595 if { (eval echo configure:12596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12596   rm -rf conftest*
12597   glibcpp_cv_func_float_trig_use=yes
12598 else
12599   echo "configure: failed program was:" >&5
12600   cat conftest.$ac_ext >&5
12601   rm -rf conftest*
12602   glibcpp_cv_func_float_trig_use=no
12603 fi
12604 rm -f conftest*
12605     ac_ext=c
12606 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12607 ac_cpp='$CPP $CPPFLAGS'
12608 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12609 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12610 cross_compiling=$ac_cv_prog_cc_cross
12611
12612 fi
12613
12614   echo "$ac_t""$glibcpp_cv_func_float_trig_use" 1>&6
12615   if test x$glibcpp_cv_func_float_trig_use = x"yes"; then
12616     for ac_func in acosf asinf atanf \
12617                                           cosf sinf tanf \
12618                                           coshf sinhf tanhf
12619 do
12620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12621 echo "configure:12622: checking for $ac_func" >&5
12622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12623   echo $ac_n "(cached) $ac_c" 1>&6
12624 else
12625   cat > conftest.$ac_ext <<EOF
12626 #line 12627 "configure"
12627 #include "confdefs.h"
12628 /* System header to define __stub macros and hopefully few prototypes,
12629     which can conflict with char $ac_func(); below.  */
12630 #include <assert.h>
12631 /* Override any gcc2 internal prototype to avoid an error.  */
12632 /* We use char because int might match the return type of a gcc2
12633     builtin and then its argument prototype would still apply.  */
12634 char $ac_func();
12635
12636 int main() {
12637
12638 /* The GNU C library defines this for functions which it implements
12639     to always fail with ENOSYS.  Some functions are actually named
12640     something starting with __ and the normal name is an alias.  */
12641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12642 choke me
12643 #else
12644 $ac_func();
12645 #endif
12646
12647 ; return 0; }
12648 EOF
12649 if { (eval echo configure:12650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12650   rm -rf conftest*
12651   eval "ac_cv_func_$ac_func=yes"
12652 else
12653   echo "configure: failed program was:" >&5
12654   cat conftest.$ac_ext >&5
12655   rm -rf conftest*
12656   eval "ac_cv_func_$ac_func=no"
12657 fi
12658 rm -f conftest*
12659 fi
12660
12661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12662   echo "$ac_t""yes" 1>&6
12663     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12664   cat >> confdefs.h <<EOF
12665 #define $ac_tr_func 1
12666 EOF
12667  
12668 else
12669   echo "$ac_t""no" 1>&6
12670 fi
12671 done
12672
12673   fi
12674
12675   
12676   echo $ac_n "checking for float round functions""... $ac_c" 1>&6
12677 echo "configure:12678: checking for float round functions" >&5
12678   if eval "test \"`echo '$''{'glibcpp_cv_func_float_round_use'+set}'`\" = set"; then
12679   echo $ac_n "(cached) $ac_c" 1>&6
12680 else
12681   
12682     
12683     ac_ext=C
12684 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12685 ac_cpp='$CXXCPP $CPPFLAGS'
12686 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12687 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12688 cross_compiling=$ac_cv_prog_cxx_cross
12689
12690     cat > conftest.$ac_ext <<EOF
12691 #line 12692 "configure"
12692 #include "confdefs.h"
12693 #include <math.h>
12694 int main() {
12695  `for x in ceilf floorf; do echo "$x (0);"; done` 
12696 ; return 0; }
12697 EOF
12698 if { (eval echo configure:12699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12699   rm -rf conftest*
12700   glibcpp_cv_func_float_round_use=yes
12701 else
12702   echo "configure: failed program was:" >&5
12703   cat conftest.$ac_ext >&5
12704   rm -rf conftest*
12705   glibcpp_cv_func_float_round_use=no
12706 fi
12707 rm -f conftest*
12708     ac_ext=c
12709 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12710 ac_cpp='$CPP $CPPFLAGS'
12711 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12712 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12713 cross_compiling=$ac_cv_prog_cc_cross
12714
12715 fi
12716
12717   echo "$ac_t""$glibcpp_cv_func_float_round_use" 1>&6
12718   if test x$glibcpp_cv_func_float_round_use = x"yes"; then
12719     for ac_func in ceilf floorf
12720 do
12721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12722 echo "configure:12723: checking for $ac_func" >&5
12723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12724   echo $ac_n "(cached) $ac_c" 1>&6
12725 else
12726   cat > conftest.$ac_ext <<EOF
12727 #line 12728 "configure"
12728 #include "confdefs.h"
12729 /* System header to define __stub macros and hopefully few prototypes,
12730     which can conflict with char $ac_func(); below.  */
12731 #include <assert.h>
12732 /* Override any gcc2 internal prototype to avoid an error.  */
12733 /* We use char because int might match the return type of a gcc2
12734     builtin and then its argument prototype would still apply.  */
12735 char $ac_func();
12736
12737 int main() {
12738
12739 /* The GNU C library defines this for functions which it implements
12740     to always fail with ENOSYS.  Some functions are actually named
12741     something starting with __ and the normal name is an alias.  */
12742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12743 choke me
12744 #else
12745 $ac_func();
12746 #endif
12747
12748 ; return 0; }
12749 EOF
12750 if { (eval echo configure:12751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12751   rm -rf conftest*
12752   eval "ac_cv_func_$ac_func=yes"
12753 else
12754   echo "configure: failed program was:" >&5
12755   cat conftest.$ac_ext >&5
12756   rm -rf conftest*
12757   eval "ac_cv_func_$ac_func=no"
12758 fi
12759 rm -f conftest*
12760 fi
12761
12762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12763   echo "$ac_t""yes" 1>&6
12764     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12765   cat >> confdefs.h <<EOF
12766 #define $ac_tr_func 1
12767 EOF
12768  
12769 else
12770   echo "$ac_t""no" 1>&6
12771 fi
12772 done
12773
12774   fi
12775
12776   
12777   
12778   echo $ac_n "checking for expf declaration""... $ac_c" 1>&6
12779 echo "configure:12780: checking for expf declaration" >&5
12780   if test x${glibcpp_cv_func_expf_use+set} != xset; then
12781     if eval "test \"`echo '$''{'glibcpp_cv_func_expf_use'+set}'`\" = set"; then
12782   echo $ac_n "(cached) $ac_c" 1>&6
12783 else
12784   
12785       
12786       ac_ext=C
12787 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12788 ac_cpp='$CXXCPP $CPPFLAGS'
12789 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12790 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12791 cross_compiling=$ac_cv_prog_cxx_cross
12792
12793       cat > conftest.$ac_ext <<EOF
12794 #line 12795 "configure"
12795 #include "confdefs.h"
12796 #include <math.h>
12797                       #ifdef HAVE_IEEEFP_H
12798                       #include <ieeefp.h>
12799                       #endif
12800                      
12801 int main() {
12802  expf(0);
12803 ; return 0; }
12804 EOF
12805 if { (eval echo configure:12806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12806   rm -rf conftest*
12807   glibcpp_cv_func_expf_use=yes
12808 else
12809   echo "configure: failed program was:" >&5
12810   cat conftest.$ac_ext >&5
12811   rm -rf conftest*
12812   glibcpp_cv_func_expf_use=no
12813 fi
12814 rm -f conftest*
12815       ac_ext=c
12816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12817 ac_cpp='$CPP $CPPFLAGS'
12818 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12819 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12820 cross_compiling=$ac_cv_prog_cc_cross
12821
12822     
12823 fi
12824
12825   fi
12826   echo "$ac_t""$glibcpp_cv_func_expf_use" 1>&6
12827
12828   if test x$glibcpp_cv_func_expf_use = x"yes"; then
12829     for ac_func in expf
12830 do
12831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12832 echo "configure:12833: checking for $ac_func" >&5
12833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12834   echo $ac_n "(cached) $ac_c" 1>&6
12835 else
12836   cat > conftest.$ac_ext <<EOF
12837 #line 12838 "configure"
12838 #include "confdefs.h"
12839 /* System header to define __stub macros and hopefully few prototypes,
12840     which can conflict with char $ac_func(); below.  */
12841 #include <assert.h>
12842 /* Override any gcc2 internal prototype to avoid an error.  */
12843 /* We use char because int might match the return type of a gcc2
12844     builtin and then its argument prototype would still apply.  */
12845 char $ac_func();
12846
12847 int main() {
12848
12849 /* The GNU C library defines this for functions which it implements
12850     to always fail with ENOSYS.  Some functions are actually named
12851     something starting with __ and the normal name is an alias.  */
12852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12853 choke me
12854 #else
12855 $ac_func();
12856 #endif
12857
12858 ; return 0; }
12859 EOF
12860 if { (eval echo configure:12861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12861   rm -rf conftest*
12862   eval "ac_cv_func_$ac_func=yes"
12863 else
12864   echo "configure: failed program was:" >&5
12865   cat conftest.$ac_ext >&5
12866   rm -rf conftest*
12867   eval "ac_cv_func_$ac_func=no"
12868 fi
12869 rm -f conftest*
12870 fi
12871
12872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12873   echo "$ac_t""yes" 1>&6
12874     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12875   cat >> confdefs.h <<EOF
12876 #define $ac_tr_func 1
12877 EOF
12878  
12879 else
12880   echo "$ac_t""no" 1>&6
12881 fi
12882 done
12883
12884   else
12885     
12886   echo $ac_n "checking for _expf declaration""... $ac_c" 1>&6
12887 echo "configure:12888: checking for _expf declaration" >&5
12888   if test x${glibcpp_cv_func__expf_use+set} != xset; then
12889     if eval "test \"`echo '$''{'glibcpp_cv_func__expf_use'+set}'`\" = set"; then
12890   echo $ac_n "(cached) $ac_c" 1>&6
12891 else
12892   
12893       
12894       ac_ext=C
12895 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12896 ac_cpp='$CXXCPP $CPPFLAGS'
12897 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12898 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12899 cross_compiling=$ac_cv_prog_cxx_cross
12900
12901       cat > conftest.$ac_ext <<EOF
12902 #line 12903 "configure"
12903 #include "confdefs.h"
12904 #include <math.h>
12905                       #ifdef HAVE_IEEEFP_H
12906                       #include <ieeefp.h>
12907                       #endif
12908                      
12909 int main() {
12910  _expf(0);
12911 ; return 0; }
12912 EOF
12913 if { (eval echo configure:12914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12914   rm -rf conftest*
12915   glibcpp_cv_func__expf_use=yes
12916 else
12917   echo "configure: failed program was:" >&5
12918   cat conftest.$ac_ext >&5
12919   rm -rf conftest*
12920   glibcpp_cv_func__expf_use=no
12921 fi
12922 rm -f conftest*
12923       ac_ext=c
12924 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12925 ac_cpp='$CPP $CPPFLAGS'
12926 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12927 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12928 cross_compiling=$ac_cv_prog_cc_cross
12929
12930     
12931 fi
12932
12933   fi
12934   echo "$ac_t""$glibcpp_cv_func__expf_use" 1>&6
12935
12936     if test x$glibcpp_cv_func__expf_use = x"yes"; then
12937       for ac_func in _expf
12938 do
12939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12940 echo "configure:12941: checking for $ac_func" >&5
12941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12942   echo $ac_n "(cached) $ac_c" 1>&6
12943 else
12944   cat > conftest.$ac_ext <<EOF
12945 #line 12946 "configure"
12946 #include "confdefs.h"
12947 /* System header to define __stub macros and hopefully few prototypes,
12948     which can conflict with char $ac_func(); below.  */
12949 #include <assert.h>
12950 /* Override any gcc2 internal prototype to avoid an error.  */
12951 /* We use char because int might match the return type of a gcc2
12952     builtin and then its argument prototype would still apply.  */
12953 char $ac_func();
12954
12955 int main() {
12956
12957 /* The GNU C library defines this for functions which it implements
12958     to always fail with ENOSYS.  Some functions are actually named
12959     something starting with __ and the normal name is an alias.  */
12960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12961 choke me
12962 #else
12963 $ac_func();
12964 #endif
12965
12966 ; return 0; }
12967 EOF
12968 if { (eval echo configure:12969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12969   rm -rf conftest*
12970   eval "ac_cv_func_$ac_func=yes"
12971 else
12972   echo "configure: failed program was:" >&5
12973   cat conftest.$ac_ext >&5
12974   rm -rf conftest*
12975   eval "ac_cv_func_$ac_func=no"
12976 fi
12977 rm -f conftest*
12978 fi
12979
12980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12981   echo "$ac_t""yes" 1>&6
12982     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12983   cat >> confdefs.h <<EOF
12984 #define $ac_tr_func 1
12985 EOF
12986  
12987 else
12988   echo "$ac_t""no" 1>&6
12989 fi
12990 done
12991
12992     fi
12993   fi
12994
12995   
12996   
12997   echo $ac_n "checking for isnanf declaration""... $ac_c" 1>&6
12998 echo "configure:12999: checking for isnanf declaration" >&5
12999   if test x${glibcpp_cv_func_isnanf_use+set} != xset; then
13000     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanf_use'+set}'`\" = set"; then
13001   echo $ac_n "(cached) $ac_c" 1>&6
13002 else
13003   
13004       
13005       ac_ext=C
13006 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13007 ac_cpp='$CXXCPP $CPPFLAGS'
13008 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13009 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13010 cross_compiling=$ac_cv_prog_cxx_cross
13011
13012       cat > conftest.$ac_ext <<EOF
13013 #line 13014 "configure"
13014 #include "confdefs.h"
13015 #include <math.h>
13016                       #ifdef HAVE_IEEEFP_H
13017                       #include <ieeefp.h>
13018                       #endif
13019                      
13020 int main() {
13021  isnanf(0);
13022 ; return 0; }
13023 EOF
13024 if { (eval echo configure:13025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13025   rm -rf conftest*
13026   glibcpp_cv_func_isnanf_use=yes
13027 else
13028   echo "configure: failed program was:" >&5
13029   cat conftest.$ac_ext >&5
13030   rm -rf conftest*
13031   glibcpp_cv_func_isnanf_use=no
13032 fi
13033 rm -f conftest*
13034       ac_ext=c
13035 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13036 ac_cpp='$CPP $CPPFLAGS'
13037 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13038 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13039 cross_compiling=$ac_cv_prog_cc_cross
13040
13041     
13042 fi
13043
13044   fi
13045   echo "$ac_t""$glibcpp_cv_func_isnanf_use" 1>&6
13046
13047   if test x$glibcpp_cv_func_isnanf_use = x"yes"; then
13048     for ac_func in isnanf
13049 do
13050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13051 echo "configure:13052: checking for $ac_func" >&5
13052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13053   echo $ac_n "(cached) $ac_c" 1>&6
13054 else
13055   cat > conftest.$ac_ext <<EOF
13056 #line 13057 "configure"
13057 #include "confdefs.h"
13058 /* System header to define __stub macros and hopefully few prototypes,
13059     which can conflict with char $ac_func(); below.  */
13060 #include <assert.h>
13061 /* Override any gcc2 internal prototype to avoid an error.  */
13062 /* We use char because int might match the return type of a gcc2
13063     builtin and then its argument prototype would still apply.  */
13064 char $ac_func();
13065
13066 int main() {
13067
13068 /* The GNU C library defines this for functions which it implements
13069     to always fail with ENOSYS.  Some functions are actually named
13070     something starting with __ and the normal name is an alias.  */
13071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13072 choke me
13073 #else
13074 $ac_func();
13075 #endif
13076
13077 ; return 0; }
13078 EOF
13079 if { (eval echo configure:13080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13080   rm -rf conftest*
13081   eval "ac_cv_func_$ac_func=yes"
13082 else
13083   echo "configure: failed program was:" >&5
13084   cat conftest.$ac_ext >&5
13085   rm -rf conftest*
13086   eval "ac_cv_func_$ac_func=no"
13087 fi
13088 rm -f conftest*
13089 fi
13090
13091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13092   echo "$ac_t""yes" 1>&6
13093     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13094   cat >> confdefs.h <<EOF
13095 #define $ac_tr_func 1
13096 EOF
13097  
13098 else
13099   echo "$ac_t""no" 1>&6
13100 fi
13101 done
13102
13103   else
13104     
13105   echo $ac_n "checking for _isnanf declaration""... $ac_c" 1>&6
13106 echo "configure:13107: checking for _isnanf declaration" >&5
13107   if test x${glibcpp_cv_func__isnanf_use+set} != xset; then
13108     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanf_use'+set}'`\" = set"; then
13109   echo $ac_n "(cached) $ac_c" 1>&6
13110 else
13111   
13112       
13113       ac_ext=C
13114 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13115 ac_cpp='$CXXCPP $CPPFLAGS'
13116 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13117 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13118 cross_compiling=$ac_cv_prog_cxx_cross
13119
13120       cat > conftest.$ac_ext <<EOF
13121 #line 13122 "configure"
13122 #include "confdefs.h"
13123 #include <math.h>
13124                       #ifdef HAVE_IEEEFP_H
13125                       #include <ieeefp.h>
13126                       #endif
13127                      
13128 int main() {
13129  _isnanf(0);
13130 ; return 0; }
13131 EOF
13132 if { (eval echo configure:13133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13133   rm -rf conftest*
13134   glibcpp_cv_func__isnanf_use=yes
13135 else
13136   echo "configure: failed program was:" >&5
13137   cat conftest.$ac_ext >&5
13138   rm -rf conftest*
13139   glibcpp_cv_func__isnanf_use=no
13140 fi
13141 rm -f conftest*
13142       ac_ext=c
13143 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13144 ac_cpp='$CPP $CPPFLAGS'
13145 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13146 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13147 cross_compiling=$ac_cv_prog_cc_cross
13148
13149     
13150 fi
13151
13152   fi
13153   echo "$ac_t""$glibcpp_cv_func__isnanf_use" 1>&6
13154
13155     if test x$glibcpp_cv_func__isnanf_use = x"yes"; then
13156       for ac_func in _isnanf
13157 do
13158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13159 echo "configure:13160: checking for $ac_func" >&5
13160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13161   echo $ac_n "(cached) $ac_c" 1>&6
13162 else
13163   cat > conftest.$ac_ext <<EOF
13164 #line 13165 "configure"
13165 #include "confdefs.h"
13166 /* System header to define __stub macros and hopefully few prototypes,
13167     which can conflict with char $ac_func(); below.  */
13168 #include <assert.h>
13169 /* Override any gcc2 internal prototype to avoid an error.  */
13170 /* We use char because int might match the return type of a gcc2
13171     builtin and then its argument prototype would still apply.  */
13172 char $ac_func();
13173
13174 int main() {
13175
13176 /* The GNU C library defines this for functions which it implements
13177     to always fail with ENOSYS.  Some functions are actually named
13178     something starting with __ and the normal name is an alias.  */
13179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13180 choke me
13181 #else
13182 $ac_func();
13183 #endif
13184
13185 ; return 0; }
13186 EOF
13187 if { (eval echo configure:13188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13188   rm -rf conftest*
13189   eval "ac_cv_func_$ac_func=yes"
13190 else
13191   echo "configure: failed program was:" >&5
13192   cat conftest.$ac_ext >&5
13193   rm -rf conftest*
13194   eval "ac_cv_func_$ac_func=no"
13195 fi
13196 rm -f conftest*
13197 fi
13198
13199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13200   echo "$ac_t""yes" 1>&6
13201     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13202   cat >> confdefs.h <<EOF
13203 #define $ac_tr_func 1
13204 EOF
13205  
13206 else
13207   echo "$ac_t""no" 1>&6
13208 fi
13209 done
13210
13211     fi
13212   fi
13213
13214   
13215   
13216   echo $ac_n "checking for isinff declaration""... $ac_c" 1>&6
13217 echo "configure:13218: checking for isinff declaration" >&5
13218   if test x${glibcpp_cv_func_isinff_use+set} != xset; then
13219     if eval "test \"`echo '$''{'glibcpp_cv_func_isinff_use'+set}'`\" = set"; then
13220   echo $ac_n "(cached) $ac_c" 1>&6
13221 else
13222   
13223       
13224       ac_ext=C
13225 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13226 ac_cpp='$CXXCPP $CPPFLAGS'
13227 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13228 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13229 cross_compiling=$ac_cv_prog_cxx_cross
13230
13231       cat > conftest.$ac_ext <<EOF
13232 #line 13233 "configure"
13233 #include "confdefs.h"
13234 #include <math.h>
13235                       #ifdef HAVE_IEEEFP_H
13236                       #include <ieeefp.h>
13237                       #endif
13238                      
13239 int main() {
13240  isinff(0);
13241 ; return 0; }
13242 EOF
13243 if { (eval echo configure:13244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13244   rm -rf conftest*
13245   glibcpp_cv_func_isinff_use=yes
13246 else
13247   echo "configure: failed program was:" >&5
13248   cat conftest.$ac_ext >&5
13249   rm -rf conftest*
13250   glibcpp_cv_func_isinff_use=no
13251 fi
13252 rm -f conftest*
13253       ac_ext=c
13254 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13255 ac_cpp='$CPP $CPPFLAGS'
13256 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13257 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13258 cross_compiling=$ac_cv_prog_cc_cross
13259
13260     
13261 fi
13262
13263   fi
13264   echo "$ac_t""$glibcpp_cv_func_isinff_use" 1>&6
13265
13266   if test x$glibcpp_cv_func_isinff_use = x"yes"; then
13267     for ac_func in isinff
13268 do
13269 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13270 echo "configure:13271: checking for $ac_func" >&5
13271 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13272   echo $ac_n "(cached) $ac_c" 1>&6
13273 else
13274   cat > conftest.$ac_ext <<EOF
13275 #line 13276 "configure"
13276 #include "confdefs.h"
13277 /* System header to define __stub macros and hopefully few prototypes,
13278     which can conflict with char $ac_func(); below.  */
13279 #include <assert.h>
13280 /* Override any gcc2 internal prototype to avoid an error.  */
13281 /* We use char because int might match the return type of a gcc2
13282     builtin and then its argument prototype would still apply.  */
13283 char $ac_func();
13284
13285 int main() {
13286
13287 /* The GNU C library defines this for functions which it implements
13288     to always fail with ENOSYS.  Some functions are actually named
13289     something starting with __ and the normal name is an alias.  */
13290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13291 choke me
13292 #else
13293 $ac_func();
13294 #endif
13295
13296 ; return 0; }
13297 EOF
13298 if { (eval echo configure:13299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13299   rm -rf conftest*
13300   eval "ac_cv_func_$ac_func=yes"
13301 else
13302   echo "configure: failed program was:" >&5
13303   cat conftest.$ac_ext >&5
13304   rm -rf conftest*
13305   eval "ac_cv_func_$ac_func=no"
13306 fi
13307 rm -f conftest*
13308 fi
13309
13310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13311   echo "$ac_t""yes" 1>&6
13312     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13313   cat >> confdefs.h <<EOF
13314 #define $ac_tr_func 1
13315 EOF
13316  
13317 else
13318   echo "$ac_t""no" 1>&6
13319 fi
13320 done
13321
13322   else
13323     
13324   echo $ac_n "checking for _isinff declaration""... $ac_c" 1>&6
13325 echo "configure:13326: checking for _isinff declaration" >&5
13326   if test x${glibcpp_cv_func__isinff_use+set} != xset; then
13327     if eval "test \"`echo '$''{'glibcpp_cv_func__isinff_use'+set}'`\" = set"; then
13328   echo $ac_n "(cached) $ac_c" 1>&6
13329 else
13330   
13331       
13332       ac_ext=C
13333 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13334 ac_cpp='$CXXCPP $CPPFLAGS'
13335 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13336 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13337 cross_compiling=$ac_cv_prog_cxx_cross
13338
13339       cat > conftest.$ac_ext <<EOF
13340 #line 13341 "configure"
13341 #include "confdefs.h"
13342 #include <math.h>
13343                       #ifdef HAVE_IEEEFP_H
13344                       #include <ieeefp.h>
13345                       #endif
13346                      
13347 int main() {
13348  _isinff(0);
13349 ; return 0; }
13350 EOF
13351 if { (eval echo configure:13352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13352   rm -rf conftest*
13353   glibcpp_cv_func__isinff_use=yes
13354 else
13355   echo "configure: failed program was:" >&5
13356   cat conftest.$ac_ext >&5
13357   rm -rf conftest*
13358   glibcpp_cv_func__isinff_use=no
13359 fi
13360 rm -f conftest*
13361       ac_ext=c
13362 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13363 ac_cpp='$CPP $CPPFLAGS'
13364 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13365 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13366 cross_compiling=$ac_cv_prog_cc_cross
13367
13368     
13369 fi
13370
13371   fi
13372   echo "$ac_t""$glibcpp_cv_func__isinff_use" 1>&6
13373
13374     if test x$glibcpp_cv_func__isinff_use = x"yes"; then
13375       for ac_func in _isinff
13376 do
13377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13378 echo "configure:13379: checking for $ac_func" >&5
13379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13380   echo $ac_n "(cached) $ac_c" 1>&6
13381 else
13382   cat > conftest.$ac_ext <<EOF
13383 #line 13384 "configure"
13384 #include "confdefs.h"
13385 /* System header to define __stub macros and hopefully few prototypes,
13386     which can conflict with char $ac_func(); below.  */
13387 #include <assert.h>
13388 /* Override any gcc2 internal prototype to avoid an error.  */
13389 /* We use char because int might match the return type of a gcc2
13390     builtin and then its argument prototype would still apply.  */
13391 char $ac_func();
13392
13393 int main() {
13394
13395 /* The GNU C library defines this for functions which it implements
13396     to always fail with ENOSYS.  Some functions are actually named
13397     something starting with __ and the normal name is an alias.  */
13398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13399 choke me
13400 #else
13401 $ac_func();
13402 #endif
13403
13404 ; return 0; }
13405 EOF
13406 if { (eval echo configure:13407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13407   rm -rf conftest*
13408   eval "ac_cv_func_$ac_func=yes"
13409 else
13410   echo "configure: failed program was:" >&5
13411   cat conftest.$ac_ext >&5
13412   rm -rf conftest*
13413   eval "ac_cv_func_$ac_func=no"
13414 fi
13415 rm -f conftest*
13416 fi
13417
13418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13419   echo "$ac_t""yes" 1>&6
13420     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13421   cat >> confdefs.h <<EOF
13422 #define $ac_tr_func 1
13423 EOF
13424  
13425 else
13426   echo "$ac_t""no" 1>&6
13427 fi
13428 done
13429
13430     fi
13431   fi
13432
13433   
13434   
13435   echo $ac_n "checking for atan2f declaration""... $ac_c" 1>&6
13436 echo "configure:13437: checking for atan2f declaration" >&5
13437   if test x${glibcpp_cv_func_atan2f_use+set} != xset; then
13438     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2f_use'+set}'`\" = set"; then
13439   echo $ac_n "(cached) $ac_c" 1>&6
13440 else
13441   
13442       
13443       ac_ext=C
13444 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13445 ac_cpp='$CXXCPP $CPPFLAGS'
13446 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13447 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13448 cross_compiling=$ac_cv_prog_cxx_cross
13449
13450       cat > conftest.$ac_ext <<EOF
13451 #line 13452 "configure"
13452 #include "confdefs.h"
13453 #include <math.h>
13454 int main() {
13455  atan2f(0, 0);
13456 ; return 0; }
13457 EOF
13458 if { (eval echo configure:13459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13459   rm -rf conftest*
13460   glibcpp_cv_func_atan2f_use=yes
13461 else
13462   echo "configure: failed program was:" >&5
13463   cat conftest.$ac_ext >&5
13464   rm -rf conftest*
13465   glibcpp_cv_func_atan2f_use=no
13466 fi
13467 rm -f conftest*
13468       ac_ext=c
13469 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13470 ac_cpp='$CPP $CPPFLAGS'
13471 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13472 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13473 cross_compiling=$ac_cv_prog_cc_cross
13474
13475     
13476 fi
13477
13478   fi
13479   echo "$ac_t""$glibcpp_cv_func_atan2f_use" 1>&6
13480
13481   if test x$glibcpp_cv_func_atan2f_use = x"yes"; then
13482     for ac_func in atan2f
13483 do
13484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13485 echo "configure:13486: checking for $ac_func" >&5
13486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13487   echo $ac_n "(cached) $ac_c" 1>&6
13488 else
13489   cat > conftest.$ac_ext <<EOF
13490 #line 13491 "configure"
13491 #include "confdefs.h"
13492 /* System header to define __stub macros and hopefully few prototypes,
13493     which can conflict with char $ac_func(); below.  */
13494 #include <assert.h>
13495 /* Override any gcc2 internal prototype to avoid an error.  */
13496 /* We use char because int might match the return type of a gcc2
13497     builtin and then its argument prototype would still apply.  */
13498 char $ac_func();
13499
13500 int main() {
13501
13502 /* The GNU C library defines this for functions which it implements
13503     to always fail with ENOSYS.  Some functions are actually named
13504     something starting with __ and the normal name is an alias.  */
13505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13506 choke me
13507 #else
13508 $ac_func();
13509 #endif
13510
13511 ; return 0; }
13512 EOF
13513 if { (eval echo configure:13514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13514   rm -rf conftest*
13515   eval "ac_cv_func_$ac_func=yes"
13516 else
13517   echo "configure: failed program was:" >&5
13518   cat conftest.$ac_ext >&5
13519   rm -rf conftest*
13520   eval "ac_cv_func_$ac_func=no"
13521 fi
13522 rm -f conftest*
13523 fi
13524
13525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13526   echo "$ac_t""yes" 1>&6
13527     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13528   cat >> confdefs.h <<EOF
13529 #define $ac_tr_func 1
13530 EOF
13531  
13532 else
13533   echo "$ac_t""no" 1>&6
13534 fi
13535 done
13536
13537   else
13538     
13539   echo $ac_n "checking for _atan2f declaration""... $ac_c" 1>&6
13540 echo "configure:13541: checking for _atan2f declaration" >&5
13541   if test x${glibcpp_cv_func__atan2f_use+set} != xset; then
13542     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2f_use'+set}'`\" = set"; then
13543   echo $ac_n "(cached) $ac_c" 1>&6
13544 else
13545   
13546       
13547       ac_ext=C
13548 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13549 ac_cpp='$CXXCPP $CPPFLAGS'
13550 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13551 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13552 cross_compiling=$ac_cv_prog_cxx_cross
13553
13554       cat > conftest.$ac_ext <<EOF
13555 #line 13556 "configure"
13556 #include "confdefs.h"
13557 #include <math.h>
13558 int main() {
13559  _atan2f(0, 0);
13560 ; return 0; }
13561 EOF
13562 if { (eval echo configure:13563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13563   rm -rf conftest*
13564   glibcpp_cv_func__atan2f_use=yes
13565 else
13566   echo "configure: failed program was:" >&5
13567   cat conftest.$ac_ext >&5
13568   rm -rf conftest*
13569   glibcpp_cv_func__atan2f_use=no
13570 fi
13571 rm -f conftest*
13572       ac_ext=c
13573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13574 ac_cpp='$CPP $CPPFLAGS'
13575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13576 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13577 cross_compiling=$ac_cv_prog_cc_cross
13578
13579     
13580 fi
13581
13582   fi
13583   echo "$ac_t""$glibcpp_cv_func__atan2f_use" 1>&6
13584
13585     if test x$glibcpp_cv_func__atan2f_use = x"yes"; then
13586       for ac_func in _atan2f
13587 do
13588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13589 echo "configure:13590: checking for $ac_func" >&5
13590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13591   echo $ac_n "(cached) $ac_c" 1>&6
13592 else
13593   cat > conftest.$ac_ext <<EOF
13594 #line 13595 "configure"
13595 #include "confdefs.h"
13596 /* System header to define __stub macros and hopefully few prototypes,
13597     which can conflict with char $ac_func(); below.  */
13598 #include <assert.h>
13599 /* Override any gcc2 internal prototype to avoid an error.  */
13600 /* We use char because int might match the return type of a gcc2
13601     builtin and then its argument prototype would still apply.  */
13602 char $ac_func();
13603
13604 int main() {
13605
13606 /* The GNU C library defines this for functions which it implements
13607     to always fail with ENOSYS.  Some functions are actually named
13608     something starting with __ and the normal name is an alias.  */
13609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13610 choke me
13611 #else
13612 $ac_func();
13613 #endif
13614
13615 ; return 0; }
13616 EOF
13617 if { (eval echo configure:13618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13618   rm -rf conftest*
13619   eval "ac_cv_func_$ac_func=yes"
13620 else
13621   echo "configure: failed program was:" >&5
13622   cat conftest.$ac_ext >&5
13623   rm -rf conftest*
13624   eval "ac_cv_func_$ac_func=no"
13625 fi
13626 rm -f conftest*
13627 fi
13628
13629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13630   echo "$ac_t""yes" 1>&6
13631     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13632   cat >> confdefs.h <<EOF
13633 #define $ac_tr_func 1
13634 EOF
13635  
13636 else
13637   echo "$ac_t""no" 1>&6
13638 fi
13639 done
13640
13641     fi
13642   fi
13643
13644   
13645   
13646   echo $ac_n "checking for fabsf declaration""... $ac_c" 1>&6
13647 echo "configure:13648: checking for fabsf declaration" >&5
13648   if test x${glibcpp_cv_func_fabsf_use+set} != xset; then
13649     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsf_use'+set}'`\" = set"; then
13650   echo $ac_n "(cached) $ac_c" 1>&6
13651 else
13652   
13653       
13654       ac_ext=C
13655 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13656 ac_cpp='$CXXCPP $CPPFLAGS'
13657 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13658 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13659 cross_compiling=$ac_cv_prog_cxx_cross
13660
13661       cat > conftest.$ac_ext <<EOF
13662 #line 13663 "configure"
13663 #include "confdefs.h"
13664 #include <math.h>
13665                       #ifdef HAVE_IEEEFP_H
13666                       #include <ieeefp.h>
13667                       #endif
13668                      
13669 int main() {
13670  fabsf(0);
13671 ; return 0; }
13672 EOF
13673 if { (eval echo configure:13674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13674   rm -rf conftest*
13675   glibcpp_cv_func_fabsf_use=yes
13676 else
13677   echo "configure: failed program was:" >&5
13678   cat conftest.$ac_ext >&5
13679   rm -rf conftest*
13680   glibcpp_cv_func_fabsf_use=no
13681 fi
13682 rm -f conftest*
13683       ac_ext=c
13684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13685 ac_cpp='$CPP $CPPFLAGS'
13686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13688 cross_compiling=$ac_cv_prog_cc_cross
13689
13690     
13691 fi
13692
13693   fi
13694   echo "$ac_t""$glibcpp_cv_func_fabsf_use" 1>&6
13695
13696   if test x$glibcpp_cv_func_fabsf_use = x"yes"; then
13697     for ac_func in fabsf
13698 do
13699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13700 echo "configure:13701: checking for $ac_func" >&5
13701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13702   echo $ac_n "(cached) $ac_c" 1>&6
13703 else
13704   cat > conftest.$ac_ext <<EOF
13705 #line 13706 "configure"
13706 #include "confdefs.h"
13707 /* System header to define __stub macros and hopefully few prototypes,
13708     which can conflict with char $ac_func(); below.  */
13709 #include <assert.h>
13710 /* Override any gcc2 internal prototype to avoid an error.  */
13711 /* We use char because int might match the return type of a gcc2
13712     builtin and then its argument prototype would still apply.  */
13713 char $ac_func();
13714
13715 int main() {
13716
13717 /* The GNU C library defines this for functions which it implements
13718     to always fail with ENOSYS.  Some functions are actually named
13719     something starting with __ and the normal name is an alias.  */
13720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13721 choke me
13722 #else
13723 $ac_func();
13724 #endif
13725
13726 ; return 0; }
13727 EOF
13728 if { (eval echo configure:13729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13729   rm -rf conftest*
13730   eval "ac_cv_func_$ac_func=yes"
13731 else
13732   echo "configure: failed program was:" >&5
13733   cat conftest.$ac_ext >&5
13734   rm -rf conftest*
13735   eval "ac_cv_func_$ac_func=no"
13736 fi
13737 rm -f conftest*
13738 fi
13739
13740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13741   echo "$ac_t""yes" 1>&6
13742     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13743   cat >> confdefs.h <<EOF
13744 #define $ac_tr_func 1
13745 EOF
13746  
13747 else
13748   echo "$ac_t""no" 1>&6
13749 fi
13750 done
13751
13752   else
13753     
13754   echo $ac_n "checking for _fabsf declaration""... $ac_c" 1>&6
13755 echo "configure:13756: checking for _fabsf declaration" >&5
13756   if test x${glibcpp_cv_func__fabsf_use+set} != xset; then
13757     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsf_use'+set}'`\" = set"; then
13758   echo $ac_n "(cached) $ac_c" 1>&6
13759 else
13760   
13761       
13762       ac_ext=C
13763 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13764 ac_cpp='$CXXCPP $CPPFLAGS'
13765 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13766 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13767 cross_compiling=$ac_cv_prog_cxx_cross
13768
13769       cat > conftest.$ac_ext <<EOF
13770 #line 13771 "configure"
13771 #include "confdefs.h"
13772 #include <math.h>
13773                       #ifdef HAVE_IEEEFP_H
13774                       #include <ieeefp.h>
13775                       #endif
13776                      
13777 int main() {
13778  _fabsf(0);
13779 ; return 0; }
13780 EOF
13781 if { (eval echo configure:13782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13782   rm -rf conftest*
13783   glibcpp_cv_func__fabsf_use=yes
13784 else
13785   echo "configure: failed program was:" >&5
13786   cat conftest.$ac_ext >&5
13787   rm -rf conftest*
13788   glibcpp_cv_func__fabsf_use=no
13789 fi
13790 rm -f conftest*
13791       ac_ext=c
13792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13793 ac_cpp='$CPP $CPPFLAGS'
13794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13796 cross_compiling=$ac_cv_prog_cc_cross
13797
13798     
13799 fi
13800
13801   fi
13802   echo "$ac_t""$glibcpp_cv_func__fabsf_use" 1>&6
13803
13804     if test x$glibcpp_cv_func__fabsf_use = x"yes"; then
13805       for ac_func in _fabsf
13806 do
13807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13808 echo "configure:13809: checking for $ac_func" >&5
13809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13810   echo $ac_n "(cached) $ac_c" 1>&6
13811 else
13812   cat > conftest.$ac_ext <<EOF
13813 #line 13814 "configure"
13814 #include "confdefs.h"
13815 /* System header to define __stub macros and hopefully few prototypes,
13816     which can conflict with char $ac_func(); below.  */
13817 #include <assert.h>
13818 /* Override any gcc2 internal prototype to avoid an error.  */
13819 /* We use char because int might match the return type of a gcc2
13820     builtin and then its argument prototype would still apply.  */
13821 char $ac_func();
13822
13823 int main() {
13824
13825 /* The GNU C library defines this for functions which it implements
13826     to always fail with ENOSYS.  Some functions are actually named
13827     something starting with __ and the normal name is an alias.  */
13828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13829 choke me
13830 #else
13831 $ac_func();
13832 #endif
13833
13834 ; return 0; }
13835 EOF
13836 if { (eval echo configure:13837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13837   rm -rf conftest*
13838   eval "ac_cv_func_$ac_func=yes"
13839 else
13840   echo "configure: failed program was:" >&5
13841   cat conftest.$ac_ext >&5
13842   rm -rf conftest*
13843   eval "ac_cv_func_$ac_func=no"
13844 fi
13845 rm -f conftest*
13846 fi
13847
13848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13849   echo "$ac_t""yes" 1>&6
13850     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13851   cat >> confdefs.h <<EOF
13852 #define $ac_tr_func 1
13853 EOF
13854  
13855 else
13856   echo "$ac_t""no" 1>&6
13857 fi
13858 done
13859
13860     fi
13861   fi
13862
13863   
13864   
13865   echo $ac_n "checking for fmodf declaration""... $ac_c" 1>&6
13866 echo "configure:13867: checking for fmodf declaration" >&5
13867   if test x${glibcpp_cv_func_fmodf_use+set} != xset; then
13868     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodf_use'+set}'`\" = set"; then
13869   echo $ac_n "(cached) $ac_c" 1>&6
13870 else
13871   
13872       
13873       ac_ext=C
13874 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13875 ac_cpp='$CXXCPP $CPPFLAGS'
13876 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13877 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13878 cross_compiling=$ac_cv_prog_cxx_cross
13879
13880       cat > conftest.$ac_ext <<EOF
13881 #line 13882 "configure"
13882 #include "confdefs.h"
13883 #include <math.h>
13884 int main() {
13885  fmodf(0, 0);
13886 ; return 0; }
13887 EOF
13888 if { (eval echo configure:13889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13889   rm -rf conftest*
13890   glibcpp_cv_func_fmodf_use=yes
13891 else
13892   echo "configure: failed program was:" >&5
13893   cat conftest.$ac_ext >&5
13894   rm -rf conftest*
13895   glibcpp_cv_func_fmodf_use=no
13896 fi
13897 rm -f conftest*
13898       ac_ext=c
13899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13900 ac_cpp='$CPP $CPPFLAGS'
13901 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13902 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13903 cross_compiling=$ac_cv_prog_cc_cross
13904
13905     
13906 fi
13907
13908   fi
13909   echo "$ac_t""$glibcpp_cv_func_fmodf_use" 1>&6
13910
13911   if test x$glibcpp_cv_func_fmodf_use = x"yes"; then
13912     for ac_func in fmodf
13913 do
13914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13915 echo "configure:13916: checking for $ac_func" >&5
13916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13917   echo $ac_n "(cached) $ac_c" 1>&6
13918 else
13919   cat > conftest.$ac_ext <<EOF
13920 #line 13921 "configure"
13921 #include "confdefs.h"
13922 /* System header to define __stub macros and hopefully few prototypes,
13923     which can conflict with char $ac_func(); below.  */
13924 #include <assert.h>
13925 /* Override any gcc2 internal prototype to avoid an error.  */
13926 /* We use char because int might match the return type of a gcc2
13927     builtin and then its argument prototype would still apply.  */
13928 char $ac_func();
13929
13930 int main() {
13931
13932 /* The GNU C library defines this for functions which it implements
13933     to always fail with ENOSYS.  Some functions are actually named
13934     something starting with __ and the normal name is an alias.  */
13935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13936 choke me
13937 #else
13938 $ac_func();
13939 #endif
13940
13941 ; return 0; }
13942 EOF
13943 if { (eval echo configure:13944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13944   rm -rf conftest*
13945   eval "ac_cv_func_$ac_func=yes"
13946 else
13947   echo "configure: failed program was:" >&5
13948   cat conftest.$ac_ext >&5
13949   rm -rf conftest*
13950   eval "ac_cv_func_$ac_func=no"
13951 fi
13952 rm -f conftest*
13953 fi
13954
13955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13956   echo "$ac_t""yes" 1>&6
13957     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13958   cat >> confdefs.h <<EOF
13959 #define $ac_tr_func 1
13960 EOF
13961  
13962 else
13963   echo "$ac_t""no" 1>&6
13964 fi
13965 done
13966
13967   else
13968     
13969   echo $ac_n "checking for _fmodf declaration""... $ac_c" 1>&6
13970 echo "configure:13971: checking for _fmodf declaration" >&5
13971   if test x${glibcpp_cv_func__fmodf_use+set} != xset; then
13972     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodf_use'+set}'`\" = set"; then
13973   echo $ac_n "(cached) $ac_c" 1>&6
13974 else
13975   
13976       
13977       ac_ext=C
13978 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13979 ac_cpp='$CXXCPP $CPPFLAGS'
13980 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13981 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13982 cross_compiling=$ac_cv_prog_cxx_cross
13983
13984       cat > conftest.$ac_ext <<EOF
13985 #line 13986 "configure"
13986 #include "confdefs.h"
13987 #include <math.h>
13988 int main() {
13989  _fmodf(0, 0);
13990 ; return 0; }
13991 EOF
13992 if { (eval echo configure:13993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13993   rm -rf conftest*
13994   glibcpp_cv_func__fmodf_use=yes
13995 else
13996   echo "configure: failed program was:" >&5
13997   cat conftest.$ac_ext >&5
13998   rm -rf conftest*
13999   glibcpp_cv_func__fmodf_use=no
14000 fi
14001 rm -f conftest*
14002       ac_ext=c
14003 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14004 ac_cpp='$CPP $CPPFLAGS'
14005 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14006 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14007 cross_compiling=$ac_cv_prog_cc_cross
14008
14009     
14010 fi
14011
14012   fi
14013   echo "$ac_t""$glibcpp_cv_func__fmodf_use" 1>&6
14014
14015     if test x$glibcpp_cv_func__fmodf_use = x"yes"; then
14016       for ac_func in _fmodf
14017 do
14018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14019 echo "configure:14020: checking for $ac_func" >&5
14020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14021   echo $ac_n "(cached) $ac_c" 1>&6
14022 else
14023   cat > conftest.$ac_ext <<EOF
14024 #line 14025 "configure"
14025 #include "confdefs.h"
14026 /* System header to define __stub macros and hopefully few prototypes,
14027     which can conflict with char $ac_func(); below.  */
14028 #include <assert.h>
14029 /* Override any gcc2 internal prototype to avoid an error.  */
14030 /* We use char because int might match the return type of a gcc2
14031     builtin and then its argument prototype would still apply.  */
14032 char $ac_func();
14033
14034 int main() {
14035
14036 /* The GNU C library defines this for functions which it implements
14037     to always fail with ENOSYS.  Some functions are actually named
14038     something starting with __ and the normal name is an alias.  */
14039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14040 choke me
14041 #else
14042 $ac_func();
14043 #endif
14044
14045 ; return 0; }
14046 EOF
14047 if { (eval echo configure:14048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14048   rm -rf conftest*
14049   eval "ac_cv_func_$ac_func=yes"
14050 else
14051   echo "configure: failed program was:" >&5
14052   cat conftest.$ac_ext >&5
14053   rm -rf conftest*
14054   eval "ac_cv_func_$ac_func=no"
14055 fi
14056 rm -f conftest*
14057 fi
14058
14059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14060   echo "$ac_t""yes" 1>&6
14061     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14062   cat >> confdefs.h <<EOF
14063 #define $ac_tr_func 1
14064 EOF
14065  
14066 else
14067   echo "$ac_t""no" 1>&6
14068 fi
14069 done
14070
14071     fi
14072   fi
14073
14074   
14075   
14076   echo $ac_n "checking for frexpf declaration""... $ac_c" 1>&6
14077 echo "configure:14078: checking for frexpf declaration" >&5
14078   if test x${glibcpp_cv_func_frexpf_use+set} != xset; then
14079     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpf_use'+set}'`\" = set"; then
14080   echo $ac_n "(cached) $ac_c" 1>&6
14081 else
14082   
14083       
14084       ac_ext=C
14085 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14086 ac_cpp='$CXXCPP $CPPFLAGS'
14087 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14088 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14089 cross_compiling=$ac_cv_prog_cxx_cross
14090
14091       cat > conftest.$ac_ext <<EOF
14092 #line 14093 "configure"
14093 #include "confdefs.h"
14094 #include <math.h>
14095 int main() {
14096  frexpf(0, 0);
14097 ; return 0; }
14098 EOF
14099 if { (eval echo configure:14100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14100   rm -rf conftest*
14101   glibcpp_cv_func_frexpf_use=yes
14102 else
14103   echo "configure: failed program was:" >&5
14104   cat conftest.$ac_ext >&5
14105   rm -rf conftest*
14106   glibcpp_cv_func_frexpf_use=no
14107 fi
14108 rm -f conftest*
14109       ac_ext=c
14110 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14111 ac_cpp='$CPP $CPPFLAGS'
14112 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14113 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14114 cross_compiling=$ac_cv_prog_cc_cross
14115
14116     
14117 fi
14118
14119   fi
14120   echo "$ac_t""$glibcpp_cv_func_frexpf_use" 1>&6
14121
14122   if test x$glibcpp_cv_func_frexpf_use = x"yes"; then
14123     for ac_func in frexpf
14124 do
14125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14126 echo "configure:14127: checking for $ac_func" >&5
14127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14128   echo $ac_n "(cached) $ac_c" 1>&6
14129 else
14130   cat > conftest.$ac_ext <<EOF
14131 #line 14132 "configure"
14132 #include "confdefs.h"
14133 /* System header to define __stub macros and hopefully few prototypes,
14134     which can conflict with char $ac_func(); below.  */
14135 #include <assert.h>
14136 /* Override any gcc2 internal prototype to avoid an error.  */
14137 /* We use char because int might match the return type of a gcc2
14138     builtin and then its argument prototype would still apply.  */
14139 char $ac_func();
14140
14141 int main() {
14142
14143 /* The GNU C library defines this for functions which it implements
14144     to always fail with ENOSYS.  Some functions are actually named
14145     something starting with __ and the normal name is an alias.  */
14146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14147 choke me
14148 #else
14149 $ac_func();
14150 #endif
14151
14152 ; return 0; }
14153 EOF
14154 if { (eval echo configure:14155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14155   rm -rf conftest*
14156   eval "ac_cv_func_$ac_func=yes"
14157 else
14158   echo "configure: failed program was:" >&5
14159   cat conftest.$ac_ext >&5
14160   rm -rf conftest*
14161   eval "ac_cv_func_$ac_func=no"
14162 fi
14163 rm -f conftest*
14164 fi
14165
14166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14167   echo "$ac_t""yes" 1>&6
14168     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14169   cat >> confdefs.h <<EOF
14170 #define $ac_tr_func 1
14171 EOF
14172  
14173 else
14174   echo "$ac_t""no" 1>&6
14175 fi
14176 done
14177
14178   else
14179     
14180   echo $ac_n "checking for _frexpf declaration""... $ac_c" 1>&6
14181 echo "configure:14182: checking for _frexpf declaration" >&5
14182   if test x${glibcpp_cv_func__frexpf_use+set} != xset; then
14183     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpf_use'+set}'`\" = set"; then
14184   echo $ac_n "(cached) $ac_c" 1>&6
14185 else
14186   
14187       
14188       ac_ext=C
14189 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14190 ac_cpp='$CXXCPP $CPPFLAGS'
14191 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14192 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14193 cross_compiling=$ac_cv_prog_cxx_cross
14194
14195       cat > conftest.$ac_ext <<EOF
14196 #line 14197 "configure"
14197 #include "confdefs.h"
14198 #include <math.h>
14199 int main() {
14200  _frexpf(0, 0);
14201 ; return 0; }
14202 EOF
14203 if { (eval echo configure:14204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14204   rm -rf conftest*
14205   glibcpp_cv_func__frexpf_use=yes
14206 else
14207   echo "configure: failed program was:" >&5
14208   cat conftest.$ac_ext >&5
14209   rm -rf conftest*
14210   glibcpp_cv_func__frexpf_use=no
14211 fi
14212 rm -f conftest*
14213       ac_ext=c
14214 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14215 ac_cpp='$CPP $CPPFLAGS'
14216 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14217 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14218 cross_compiling=$ac_cv_prog_cc_cross
14219
14220     
14221 fi
14222
14223   fi
14224   echo "$ac_t""$glibcpp_cv_func__frexpf_use" 1>&6
14225
14226     if test x$glibcpp_cv_func__frexpf_use = x"yes"; then
14227       for ac_func in _frexpf
14228 do
14229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14230 echo "configure:14231: checking for $ac_func" >&5
14231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14232   echo $ac_n "(cached) $ac_c" 1>&6
14233 else
14234   cat > conftest.$ac_ext <<EOF
14235 #line 14236 "configure"
14236 #include "confdefs.h"
14237 /* System header to define __stub macros and hopefully few prototypes,
14238     which can conflict with char $ac_func(); below.  */
14239 #include <assert.h>
14240 /* Override any gcc2 internal prototype to avoid an error.  */
14241 /* We use char because int might match the return type of a gcc2
14242     builtin and then its argument prototype would still apply.  */
14243 char $ac_func();
14244
14245 int main() {
14246
14247 /* The GNU C library defines this for functions which it implements
14248     to always fail with ENOSYS.  Some functions are actually named
14249     something starting with __ and the normal name is an alias.  */
14250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14251 choke me
14252 #else
14253 $ac_func();
14254 #endif
14255
14256 ; return 0; }
14257 EOF
14258 if { (eval echo configure:14259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14259   rm -rf conftest*
14260   eval "ac_cv_func_$ac_func=yes"
14261 else
14262   echo "configure: failed program was:" >&5
14263   cat conftest.$ac_ext >&5
14264   rm -rf conftest*
14265   eval "ac_cv_func_$ac_func=no"
14266 fi
14267 rm -f conftest*
14268 fi
14269
14270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14271   echo "$ac_t""yes" 1>&6
14272     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14273   cat >> confdefs.h <<EOF
14274 #define $ac_tr_func 1
14275 EOF
14276  
14277 else
14278   echo "$ac_t""no" 1>&6
14279 fi
14280 done
14281
14282     fi
14283   fi
14284
14285   
14286   
14287   echo $ac_n "checking for hypotf declaration""... $ac_c" 1>&6
14288 echo "configure:14289: checking for hypotf declaration" >&5
14289   if test x${glibcpp_cv_func_hypotf_use+set} != xset; then
14290     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotf_use'+set}'`\" = set"; then
14291   echo $ac_n "(cached) $ac_c" 1>&6
14292 else
14293   
14294       
14295       ac_ext=C
14296 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14297 ac_cpp='$CXXCPP $CPPFLAGS'
14298 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14299 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14300 cross_compiling=$ac_cv_prog_cxx_cross
14301
14302       cat > conftest.$ac_ext <<EOF
14303 #line 14304 "configure"
14304 #include "confdefs.h"
14305 #include <math.h>
14306 int main() {
14307  hypotf(0, 0);
14308 ; return 0; }
14309 EOF
14310 if { (eval echo configure:14311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14311   rm -rf conftest*
14312   glibcpp_cv_func_hypotf_use=yes
14313 else
14314   echo "configure: failed program was:" >&5
14315   cat conftest.$ac_ext >&5
14316   rm -rf conftest*
14317   glibcpp_cv_func_hypotf_use=no
14318 fi
14319 rm -f conftest*
14320       ac_ext=c
14321 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14322 ac_cpp='$CPP $CPPFLAGS'
14323 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14324 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14325 cross_compiling=$ac_cv_prog_cc_cross
14326
14327     
14328 fi
14329
14330   fi
14331   echo "$ac_t""$glibcpp_cv_func_hypotf_use" 1>&6
14332
14333   if test x$glibcpp_cv_func_hypotf_use = x"yes"; then
14334     for ac_func in hypotf
14335 do
14336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14337 echo "configure:14338: checking for $ac_func" >&5
14338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14339   echo $ac_n "(cached) $ac_c" 1>&6
14340 else
14341   cat > conftest.$ac_ext <<EOF
14342 #line 14343 "configure"
14343 #include "confdefs.h"
14344 /* System header to define __stub macros and hopefully few prototypes,
14345     which can conflict with char $ac_func(); below.  */
14346 #include <assert.h>
14347 /* Override any gcc2 internal prototype to avoid an error.  */
14348 /* We use char because int might match the return type of a gcc2
14349     builtin and then its argument prototype would still apply.  */
14350 char $ac_func();
14351
14352 int main() {
14353
14354 /* The GNU C library defines this for functions which it implements
14355     to always fail with ENOSYS.  Some functions are actually named
14356     something starting with __ and the normal name is an alias.  */
14357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14358 choke me
14359 #else
14360 $ac_func();
14361 #endif
14362
14363 ; return 0; }
14364 EOF
14365 if { (eval echo configure:14366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14366   rm -rf conftest*
14367   eval "ac_cv_func_$ac_func=yes"
14368 else
14369   echo "configure: failed program was:" >&5
14370   cat conftest.$ac_ext >&5
14371   rm -rf conftest*
14372   eval "ac_cv_func_$ac_func=no"
14373 fi
14374 rm -f conftest*
14375 fi
14376
14377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14378   echo "$ac_t""yes" 1>&6
14379     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14380   cat >> confdefs.h <<EOF
14381 #define $ac_tr_func 1
14382 EOF
14383  
14384 else
14385   echo "$ac_t""no" 1>&6
14386 fi
14387 done
14388
14389   else
14390     
14391   echo $ac_n "checking for _hypotf declaration""... $ac_c" 1>&6
14392 echo "configure:14393: checking for _hypotf declaration" >&5
14393   if test x${glibcpp_cv_func__hypotf_use+set} != xset; then
14394     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotf_use'+set}'`\" = set"; then
14395   echo $ac_n "(cached) $ac_c" 1>&6
14396 else
14397   
14398       
14399       ac_ext=C
14400 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14401 ac_cpp='$CXXCPP $CPPFLAGS'
14402 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14403 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14404 cross_compiling=$ac_cv_prog_cxx_cross
14405
14406       cat > conftest.$ac_ext <<EOF
14407 #line 14408 "configure"
14408 #include "confdefs.h"
14409 #include <math.h>
14410 int main() {
14411  _hypotf(0, 0);
14412 ; return 0; }
14413 EOF
14414 if { (eval echo configure:14415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14415   rm -rf conftest*
14416   glibcpp_cv_func__hypotf_use=yes
14417 else
14418   echo "configure: failed program was:" >&5
14419   cat conftest.$ac_ext >&5
14420   rm -rf conftest*
14421   glibcpp_cv_func__hypotf_use=no
14422 fi
14423 rm -f conftest*
14424       ac_ext=c
14425 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14426 ac_cpp='$CPP $CPPFLAGS'
14427 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14428 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14429 cross_compiling=$ac_cv_prog_cc_cross
14430
14431     
14432 fi
14433
14434   fi
14435   echo "$ac_t""$glibcpp_cv_func__hypotf_use" 1>&6
14436
14437     if test x$glibcpp_cv_func__hypotf_use = x"yes"; then
14438       for ac_func in _hypotf
14439 do
14440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14441 echo "configure:14442: checking for $ac_func" >&5
14442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14443   echo $ac_n "(cached) $ac_c" 1>&6
14444 else
14445   cat > conftest.$ac_ext <<EOF
14446 #line 14447 "configure"
14447 #include "confdefs.h"
14448 /* System header to define __stub macros and hopefully few prototypes,
14449     which can conflict with char $ac_func(); below.  */
14450 #include <assert.h>
14451 /* Override any gcc2 internal prototype to avoid an error.  */
14452 /* We use char because int might match the return type of a gcc2
14453     builtin and then its argument prototype would still apply.  */
14454 char $ac_func();
14455
14456 int main() {
14457
14458 /* The GNU C library defines this for functions which it implements
14459     to always fail with ENOSYS.  Some functions are actually named
14460     something starting with __ and the normal name is an alias.  */
14461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14462 choke me
14463 #else
14464 $ac_func();
14465 #endif
14466
14467 ; return 0; }
14468 EOF
14469 if { (eval echo configure:14470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14470   rm -rf conftest*
14471   eval "ac_cv_func_$ac_func=yes"
14472 else
14473   echo "configure: failed program was:" >&5
14474   cat conftest.$ac_ext >&5
14475   rm -rf conftest*
14476   eval "ac_cv_func_$ac_func=no"
14477 fi
14478 rm -f conftest*
14479 fi
14480
14481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14482   echo "$ac_t""yes" 1>&6
14483     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14484   cat >> confdefs.h <<EOF
14485 #define $ac_tr_func 1
14486 EOF
14487  
14488 else
14489   echo "$ac_t""no" 1>&6
14490 fi
14491 done
14492
14493     fi
14494   fi
14495
14496   
14497   
14498   echo $ac_n "checking for ldexpf declaration""... $ac_c" 1>&6
14499 echo "configure:14500: checking for ldexpf declaration" >&5
14500   if test x${glibcpp_cv_func_ldexpf_use+set} != xset; then
14501     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpf_use'+set}'`\" = set"; then
14502   echo $ac_n "(cached) $ac_c" 1>&6
14503 else
14504   
14505       
14506       ac_ext=C
14507 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14508 ac_cpp='$CXXCPP $CPPFLAGS'
14509 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14510 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14511 cross_compiling=$ac_cv_prog_cxx_cross
14512
14513       cat > conftest.$ac_ext <<EOF
14514 #line 14515 "configure"
14515 #include "confdefs.h"
14516 #include <math.h>
14517 int main() {
14518  ldexpf(0, 0);
14519 ; return 0; }
14520 EOF
14521 if { (eval echo configure:14522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14522   rm -rf conftest*
14523   glibcpp_cv_func_ldexpf_use=yes
14524 else
14525   echo "configure: failed program was:" >&5
14526   cat conftest.$ac_ext >&5
14527   rm -rf conftest*
14528   glibcpp_cv_func_ldexpf_use=no
14529 fi
14530 rm -f conftest*
14531       ac_ext=c
14532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14533 ac_cpp='$CPP $CPPFLAGS'
14534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14536 cross_compiling=$ac_cv_prog_cc_cross
14537
14538     
14539 fi
14540
14541   fi
14542   echo "$ac_t""$glibcpp_cv_func_ldexpf_use" 1>&6
14543
14544   if test x$glibcpp_cv_func_ldexpf_use = x"yes"; then
14545     for ac_func in ldexpf
14546 do
14547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14548 echo "configure:14549: checking for $ac_func" >&5
14549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14550   echo $ac_n "(cached) $ac_c" 1>&6
14551 else
14552   cat > conftest.$ac_ext <<EOF
14553 #line 14554 "configure"
14554 #include "confdefs.h"
14555 /* System header to define __stub macros and hopefully few prototypes,
14556     which can conflict with char $ac_func(); below.  */
14557 #include <assert.h>
14558 /* Override any gcc2 internal prototype to avoid an error.  */
14559 /* We use char because int might match the return type of a gcc2
14560     builtin and then its argument prototype would still apply.  */
14561 char $ac_func();
14562
14563 int main() {
14564
14565 /* The GNU C library defines this for functions which it implements
14566     to always fail with ENOSYS.  Some functions are actually named
14567     something starting with __ and the normal name is an alias.  */
14568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14569 choke me
14570 #else
14571 $ac_func();
14572 #endif
14573
14574 ; return 0; }
14575 EOF
14576 if { (eval echo configure:14577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14577   rm -rf conftest*
14578   eval "ac_cv_func_$ac_func=yes"
14579 else
14580   echo "configure: failed program was:" >&5
14581   cat conftest.$ac_ext >&5
14582   rm -rf conftest*
14583   eval "ac_cv_func_$ac_func=no"
14584 fi
14585 rm -f conftest*
14586 fi
14587
14588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14589   echo "$ac_t""yes" 1>&6
14590     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14591   cat >> confdefs.h <<EOF
14592 #define $ac_tr_func 1
14593 EOF
14594  
14595 else
14596   echo "$ac_t""no" 1>&6
14597 fi
14598 done
14599
14600   else
14601     
14602   echo $ac_n "checking for _ldexpf declaration""... $ac_c" 1>&6
14603 echo "configure:14604: checking for _ldexpf declaration" >&5
14604   if test x${glibcpp_cv_func__ldexpf_use+set} != xset; then
14605     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpf_use'+set}'`\" = set"; then
14606   echo $ac_n "(cached) $ac_c" 1>&6
14607 else
14608   
14609       
14610       ac_ext=C
14611 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14612 ac_cpp='$CXXCPP $CPPFLAGS'
14613 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14614 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14615 cross_compiling=$ac_cv_prog_cxx_cross
14616
14617       cat > conftest.$ac_ext <<EOF
14618 #line 14619 "configure"
14619 #include "confdefs.h"
14620 #include <math.h>
14621 int main() {
14622  _ldexpf(0, 0);
14623 ; return 0; }
14624 EOF
14625 if { (eval echo configure:14626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14626   rm -rf conftest*
14627   glibcpp_cv_func__ldexpf_use=yes
14628 else
14629   echo "configure: failed program was:" >&5
14630   cat conftest.$ac_ext >&5
14631   rm -rf conftest*
14632   glibcpp_cv_func__ldexpf_use=no
14633 fi
14634 rm -f conftest*
14635       ac_ext=c
14636 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14637 ac_cpp='$CPP $CPPFLAGS'
14638 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14639 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14640 cross_compiling=$ac_cv_prog_cc_cross
14641
14642     
14643 fi
14644
14645   fi
14646   echo "$ac_t""$glibcpp_cv_func__ldexpf_use" 1>&6
14647
14648     if test x$glibcpp_cv_func__ldexpf_use = x"yes"; then
14649       for ac_func in _ldexpf
14650 do
14651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14652 echo "configure:14653: checking for $ac_func" >&5
14653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14654   echo $ac_n "(cached) $ac_c" 1>&6
14655 else
14656   cat > conftest.$ac_ext <<EOF
14657 #line 14658 "configure"
14658 #include "confdefs.h"
14659 /* System header to define __stub macros and hopefully few prototypes,
14660     which can conflict with char $ac_func(); below.  */
14661 #include <assert.h>
14662 /* Override any gcc2 internal prototype to avoid an error.  */
14663 /* We use char because int might match the return type of a gcc2
14664     builtin and then its argument prototype would still apply.  */
14665 char $ac_func();
14666
14667 int main() {
14668
14669 /* The GNU C library defines this for functions which it implements
14670     to always fail with ENOSYS.  Some functions are actually named
14671     something starting with __ and the normal name is an alias.  */
14672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14673 choke me
14674 #else
14675 $ac_func();
14676 #endif
14677
14678 ; return 0; }
14679 EOF
14680 if { (eval echo configure:14681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14681   rm -rf conftest*
14682   eval "ac_cv_func_$ac_func=yes"
14683 else
14684   echo "configure: failed program was:" >&5
14685   cat conftest.$ac_ext >&5
14686   rm -rf conftest*
14687   eval "ac_cv_func_$ac_func=no"
14688 fi
14689 rm -f conftest*
14690 fi
14691
14692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14693   echo "$ac_t""yes" 1>&6
14694     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14695   cat >> confdefs.h <<EOF
14696 #define $ac_tr_func 1
14697 EOF
14698  
14699 else
14700   echo "$ac_t""no" 1>&6
14701 fi
14702 done
14703
14704     fi
14705   fi
14706
14707   
14708   
14709   echo $ac_n "checking for logf declaration""... $ac_c" 1>&6
14710 echo "configure:14711: checking for logf declaration" >&5
14711   if test x${glibcpp_cv_func_logf_use+set} != xset; then
14712     if eval "test \"`echo '$''{'glibcpp_cv_func_logf_use'+set}'`\" = set"; then
14713   echo $ac_n "(cached) $ac_c" 1>&6
14714 else
14715   
14716       
14717       ac_ext=C
14718 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14719 ac_cpp='$CXXCPP $CPPFLAGS'
14720 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14721 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14722 cross_compiling=$ac_cv_prog_cxx_cross
14723
14724       cat > conftest.$ac_ext <<EOF
14725 #line 14726 "configure"
14726 #include "confdefs.h"
14727 #include <math.h>
14728                       #ifdef HAVE_IEEEFP_H
14729                       #include <ieeefp.h>
14730                       #endif
14731                      
14732 int main() {
14733  logf(0);
14734 ; return 0; }
14735 EOF
14736 if { (eval echo configure:14737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14737   rm -rf conftest*
14738   glibcpp_cv_func_logf_use=yes
14739 else
14740   echo "configure: failed program was:" >&5
14741   cat conftest.$ac_ext >&5
14742   rm -rf conftest*
14743   glibcpp_cv_func_logf_use=no
14744 fi
14745 rm -f conftest*
14746       ac_ext=c
14747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14748 ac_cpp='$CPP $CPPFLAGS'
14749 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14750 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14751 cross_compiling=$ac_cv_prog_cc_cross
14752
14753     
14754 fi
14755
14756   fi
14757   echo "$ac_t""$glibcpp_cv_func_logf_use" 1>&6
14758
14759   if test x$glibcpp_cv_func_logf_use = x"yes"; then
14760     for ac_func in logf
14761 do
14762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14763 echo "configure:14764: checking for $ac_func" >&5
14764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14765   echo $ac_n "(cached) $ac_c" 1>&6
14766 else
14767   cat > conftest.$ac_ext <<EOF
14768 #line 14769 "configure"
14769 #include "confdefs.h"
14770 /* System header to define __stub macros and hopefully few prototypes,
14771     which can conflict with char $ac_func(); below.  */
14772 #include <assert.h>
14773 /* Override any gcc2 internal prototype to avoid an error.  */
14774 /* We use char because int might match the return type of a gcc2
14775     builtin and then its argument prototype would still apply.  */
14776 char $ac_func();
14777
14778 int main() {
14779
14780 /* The GNU C library defines this for functions which it implements
14781     to always fail with ENOSYS.  Some functions are actually named
14782     something starting with __ and the normal name is an alias.  */
14783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14784 choke me
14785 #else
14786 $ac_func();
14787 #endif
14788
14789 ; return 0; }
14790 EOF
14791 if { (eval echo configure:14792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14792   rm -rf conftest*
14793   eval "ac_cv_func_$ac_func=yes"
14794 else
14795   echo "configure: failed program was:" >&5
14796   cat conftest.$ac_ext >&5
14797   rm -rf conftest*
14798   eval "ac_cv_func_$ac_func=no"
14799 fi
14800 rm -f conftest*
14801 fi
14802
14803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14804   echo "$ac_t""yes" 1>&6
14805     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14806   cat >> confdefs.h <<EOF
14807 #define $ac_tr_func 1
14808 EOF
14809  
14810 else
14811   echo "$ac_t""no" 1>&6
14812 fi
14813 done
14814
14815   else
14816     
14817   echo $ac_n "checking for _logf declaration""... $ac_c" 1>&6
14818 echo "configure:14819: checking for _logf declaration" >&5
14819   if test x${glibcpp_cv_func__logf_use+set} != xset; then
14820     if eval "test \"`echo '$''{'glibcpp_cv_func__logf_use'+set}'`\" = set"; then
14821   echo $ac_n "(cached) $ac_c" 1>&6
14822 else
14823   
14824       
14825       ac_ext=C
14826 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14827 ac_cpp='$CXXCPP $CPPFLAGS'
14828 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14829 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14830 cross_compiling=$ac_cv_prog_cxx_cross
14831
14832       cat > conftest.$ac_ext <<EOF
14833 #line 14834 "configure"
14834 #include "confdefs.h"
14835 #include <math.h>
14836                       #ifdef HAVE_IEEEFP_H
14837                       #include <ieeefp.h>
14838                       #endif
14839                      
14840 int main() {
14841  _logf(0);
14842 ; return 0; }
14843 EOF
14844 if { (eval echo configure:14845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14845   rm -rf conftest*
14846   glibcpp_cv_func__logf_use=yes
14847 else
14848   echo "configure: failed program was:" >&5
14849   cat conftest.$ac_ext >&5
14850   rm -rf conftest*
14851   glibcpp_cv_func__logf_use=no
14852 fi
14853 rm -f conftest*
14854       ac_ext=c
14855 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14856 ac_cpp='$CPP $CPPFLAGS'
14857 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14858 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14859 cross_compiling=$ac_cv_prog_cc_cross
14860
14861     
14862 fi
14863
14864   fi
14865   echo "$ac_t""$glibcpp_cv_func__logf_use" 1>&6
14866
14867     if test x$glibcpp_cv_func__logf_use = x"yes"; then
14868       for ac_func in _logf
14869 do
14870 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14871 echo "configure:14872: checking for $ac_func" >&5
14872 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14873   echo $ac_n "(cached) $ac_c" 1>&6
14874 else
14875   cat > conftest.$ac_ext <<EOF
14876 #line 14877 "configure"
14877 #include "confdefs.h"
14878 /* System header to define __stub macros and hopefully few prototypes,
14879     which can conflict with char $ac_func(); below.  */
14880 #include <assert.h>
14881 /* Override any gcc2 internal prototype to avoid an error.  */
14882 /* We use char because int might match the return type of a gcc2
14883     builtin and then its argument prototype would still apply.  */
14884 char $ac_func();
14885
14886 int main() {
14887
14888 /* The GNU C library defines this for functions which it implements
14889     to always fail with ENOSYS.  Some functions are actually named
14890     something starting with __ and the normal name is an alias.  */
14891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14892 choke me
14893 #else
14894 $ac_func();
14895 #endif
14896
14897 ; return 0; }
14898 EOF
14899 if { (eval echo configure:14900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14900   rm -rf conftest*
14901   eval "ac_cv_func_$ac_func=yes"
14902 else
14903   echo "configure: failed program was:" >&5
14904   cat conftest.$ac_ext >&5
14905   rm -rf conftest*
14906   eval "ac_cv_func_$ac_func=no"
14907 fi
14908 rm -f conftest*
14909 fi
14910
14911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14912   echo "$ac_t""yes" 1>&6
14913     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14914   cat >> confdefs.h <<EOF
14915 #define $ac_tr_func 1
14916 EOF
14917  
14918 else
14919   echo "$ac_t""no" 1>&6
14920 fi
14921 done
14922
14923     fi
14924   fi
14925
14926   
14927   
14928   echo $ac_n "checking for log10f declaration""... $ac_c" 1>&6
14929 echo "configure:14930: checking for log10f declaration" >&5
14930   if test x${glibcpp_cv_func_log10f_use+set} != xset; then
14931     if eval "test \"`echo '$''{'glibcpp_cv_func_log10f_use'+set}'`\" = set"; then
14932   echo $ac_n "(cached) $ac_c" 1>&6
14933 else
14934   
14935       
14936       ac_ext=C
14937 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14938 ac_cpp='$CXXCPP $CPPFLAGS'
14939 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14940 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14941 cross_compiling=$ac_cv_prog_cxx_cross
14942
14943       cat > conftest.$ac_ext <<EOF
14944 #line 14945 "configure"
14945 #include "confdefs.h"
14946 #include <math.h>
14947                       #ifdef HAVE_IEEEFP_H
14948                       #include <ieeefp.h>
14949                       #endif
14950                      
14951 int main() {
14952  log10f(0);
14953 ; return 0; }
14954 EOF
14955 if { (eval echo configure:14956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14956   rm -rf conftest*
14957   glibcpp_cv_func_log10f_use=yes
14958 else
14959   echo "configure: failed program was:" >&5
14960   cat conftest.$ac_ext >&5
14961   rm -rf conftest*
14962   glibcpp_cv_func_log10f_use=no
14963 fi
14964 rm -f conftest*
14965       ac_ext=c
14966 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14967 ac_cpp='$CPP $CPPFLAGS'
14968 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14969 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14970 cross_compiling=$ac_cv_prog_cc_cross
14971
14972     
14973 fi
14974
14975   fi
14976   echo "$ac_t""$glibcpp_cv_func_log10f_use" 1>&6
14977
14978   if test x$glibcpp_cv_func_log10f_use = x"yes"; then
14979     for ac_func in log10f
14980 do
14981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14982 echo "configure:14983: checking for $ac_func" >&5
14983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14984   echo $ac_n "(cached) $ac_c" 1>&6
14985 else
14986   cat > conftest.$ac_ext <<EOF
14987 #line 14988 "configure"
14988 #include "confdefs.h"
14989 /* System header to define __stub macros and hopefully few prototypes,
14990     which can conflict with char $ac_func(); below.  */
14991 #include <assert.h>
14992 /* Override any gcc2 internal prototype to avoid an error.  */
14993 /* We use char because int might match the return type of a gcc2
14994     builtin and then its argument prototype would still apply.  */
14995 char $ac_func();
14996
14997 int main() {
14998
14999 /* The GNU C library defines this for functions which it implements
15000     to always fail with ENOSYS.  Some functions are actually named
15001     something starting with __ and the normal name is an alias.  */
15002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15003 choke me
15004 #else
15005 $ac_func();
15006 #endif
15007
15008 ; return 0; }
15009 EOF
15010 if { (eval echo configure:15011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15011   rm -rf conftest*
15012   eval "ac_cv_func_$ac_func=yes"
15013 else
15014   echo "configure: failed program was:" >&5
15015   cat conftest.$ac_ext >&5
15016   rm -rf conftest*
15017   eval "ac_cv_func_$ac_func=no"
15018 fi
15019 rm -f conftest*
15020 fi
15021
15022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15023   echo "$ac_t""yes" 1>&6
15024     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15025   cat >> confdefs.h <<EOF
15026 #define $ac_tr_func 1
15027 EOF
15028  
15029 else
15030   echo "$ac_t""no" 1>&6
15031 fi
15032 done
15033
15034   else
15035     
15036   echo $ac_n "checking for _log10f declaration""... $ac_c" 1>&6
15037 echo "configure:15038: checking for _log10f declaration" >&5
15038   if test x${glibcpp_cv_func__log10f_use+set} != xset; then
15039     if eval "test \"`echo '$''{'glibcpp_cv_func__log10f_use'+set}'`\" = set"; then
15040   echo $ac_n "(cached) $ac_c" 1>&6
15041 else
15042   
15043       
15044       ac_ext=C
15045 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15046 ac_cpp='$CXXCPP $CPPFLAGS'
15047 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15048 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15049 cross_compiling=$ac_cv_prog_cxx_cross
15050
15051       cat > conftest.$ac_ext <<EOF
15052 #line 15053 "configure"
15053 #include "confdefs.h"
15054 #include <math.h>
15055                       #ifdef HAVE_IEEEFP_H
15056                       #include <ieeefp.h>
15057                       #endif
15058                      
15059 int main() {
15060  _log10f(0);
15061 ; return 0; }
15062 EOF
15063 if { (eval echo configure:15064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15064   rm -rf conftest*
15065   glibcpp_cv_func__log10f_use=yes
15066 else
15067   echo "configure: failed program was:" >&5
15068   cat conftest.$ac_ext >&5
15069   rm -rf conftest*
15070   glibcpp_cv_func__log10f_use=no
15071 fi
15072 rm -f conftest*
15073       ac_ext=c
15074 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15075 ac_cpp='$CPP $CPPFLAGS'
15076 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15077 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15078 cross_compiling=$ac_cv_prog_cc_cross
15079
15080     
15081 fi
15082
15083   fi
15084   echo "$ac_t""$glibcpp_cv_func__log10f_use" 1>&6
15085
15086     if test x$glibcpp_cv_func__log10f_use = x"yes"; then
15087       for ac_func in _log10f
15088 do
15089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15090 echo "configure:15091: checking for $ac_func" >&5
15091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15092   echo $ac_n "(cached) $ac_c" 1>&6
15093 else
15094   cat > conftest.$ac_ext <<EOF
15095 #line 15096 "configure"
15096 #include "confdefs.h"
15097 /* System header to define __stub macros and hopefully few prototypes,
15098     which can conflict with char $ac_func(); below.  */
15099 #include <assert.h>
15100 /* Override any gcc2 internal prototype to avoid an error.  */
15101 /* We use char because int might match the return type of a gcc2
15102     builtin and then its argument prototype would still apply.  */
15103 char $ac_func();
15104
15105 int main() {
15106
15107 /* The GNU C library defines this for functions which it implements
15108     to always fail with ENOSYS.  Some functions are actually named
15109     something starting with __ and the normal name is an alias.  */
15110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15111 choke me
15112 #else
15113 $ac_func();
15114 #endif
15115
15116 ; return 0; }
15117 EOF
15118 if { (eval echo configure:15119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15119   rm -rf conftest*
15120   eval "ac_cv_func_$ac_func=yes"
15121 else
15122   echo "configure: failed program was:" >&5
15123   cat conftest.$ac_ext >&5
15124   rm -rf conftest*
15125   eval "ac_cv_func_$ac_func=no"
15126 fi
15127 rm -f conftest*
15128 fi
15129
15130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15131   echo "$ac_t""yes" 1>&6
15132     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15133   cat >> confdefs.h <<EOF
15134 #define $ac_tr_func 1
15135 EOF
15136  
15137 else
15138   echo "$ac_t""no" 1>&6
15139 fi
15140 done
15141
15142     fi
15143   fi
15144
15145   
15146   
15147   echo $ac_n "checking for modff declaration""... $ac_c" 1>&6
15148 echo "configure:15149: checking for modff declaration" >&5
15149   if test x${glibcpp_cv_func_modff_use+set} != xset; then
15150     if eval "test \"`echo '$''{'glibcpp_cv_func_modff_use'+set}'`\" = set"; then
15151   echo $ac_n "(cached) $ac_c" 1>&6
15152 else
15153   
15154       
15155       ac_ext=C
15156 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15157 ac_cpp='$CXXCPP $CPPFLAGS'
15158 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15159 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15160 cross_compiling=$ac_cv_prog_cxx_cross
15161
15162       cat > conftest.$ac_ext <<EOF
15163 #line 15164 "configure"
15164 #include "confdefs.h"
15165 #include <math.h>
15166 int main() {
15167  modff(0, 0);
15168 ; return 0; }
15169 EOF
15170 if { (eval echo configure:15171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15171   rm -rf conftest*
15172   glibcpp_cv_func_modff_use=yes
15173 else
15174   echo "configure: failed program was:" >&5
15175   cat conftest.$ac_ext >&5
15176   rm -rf conftest*
15177   glibcpp_cv_func_modff_use=no
15178 fi
15179 rm -f conftest*
15180       ac_ext=c
15181 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15182 ac_cpp='$CPP $CPPFLAGS'
15183 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15184 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15185 cross_compiling=$ac_cv_prog_cc_cross
15186
15187     
15188 fi
15189
15190   fi
15191   echo "$ac_t""$glibcpp_cv_func_modff_use" 1>&6
15192
15193   if test x$glibcpp_cv_func_modff_use = x"yes"; then
15194     for ac_func in modff
15195 do
15196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15197 echo "configure:15198: checking for $ac_func" >&5
15198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15199   echo $ac_n "(cached) $ac_c" 1>&6
15200 else
15201   cat > conftest.$ac_ext <<EOF
15202 #line 15203 "configure"
15203 #include "confdefs.h"
15204 /* System header to define __stub macros and hopefully few prototypes,
15205     which can conflict with char $ac_func(); below.  */
15206 #include <assert.h>
15207 /* Override any gcc2 internal prototype to avoid an error.  */
15208 /* We use char because int might match the return type of a gcc2
15209     builtin and then its argument prototype would still apply.  */
15210 char $ac_func();
15211
15212 int main() {
15213
15214 /* The GNU C library defines this for functions which it implements
15215     to always fail with ENOSYS.  Some functions are actually named
15216     something starting with __ and the normal name is an alias.  */
15217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15218 choke me
15219 #else
15220 $ac_func();
15221 #endif
15222
15223 ; return 0; }
15224 EOF
15225 if { (eval echo configure:15226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15226   rm -rf conftest*
15227   eval "ac_cv_func_$ac_func=yes"
15228 else
15229   echo "configure: failed program was:" >&5
15230   cat conftest.$ac_ext >&5
15231   rm -rf conftest*
15232   eval "ac_cv_func_$ac_func=no"
15233 fi
15234 rm -f conftest*
15235 fi
15236
15237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15238   echo "$ac_t""yes" 1>&6
15239     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15240   cat >> confdefs.h <<EOF
15241 #define $ac_tr_func 1
15242 EOF
15243  
15244 else
15245   echo "$ac_t""no" 1>&6
15246 fi
15247 done
15248
15249   else
15250     
15251   echo $ac_n "checking for _modff declaration""... $ac_c" 1>&6
15252 echo "configure:15253: checking for _modff declaration" >&5
15253   if test x${glibcpp_cv_func__modff_use+set} != xset; then
15254     if eval "test \"`echo '$''{'glibcpp_cv_func__modff_use'+set}'`\" = set"; then
15255   echo $ac_n "(cached) $ac_c" 1>&6
15256 else
15257   
15258       
15259       ac_ext=C
15260 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15261 ac_cpp='$CXXCPP $CPPFLAGS'
15262 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15263 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15264 cross_compiling=$ac_cv_prog_cxx_cross
15265
15266       cat > conftest.$ac_ext <<EOF
15267 #line 15268 "configure"
15268 #include "confdefs.h"
15269 #include <math.h>
15270 int main() {
15271  _modff(0, 0);
15272 ; return 0; }
15273 EOF
15274 if { (eval echo configure:15275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15275   rm -rf conftest*
15276   glibcpp_cv_func__modff_use=yes
15277 else
15278   echo "configure: failed program was:" >&5
15279   cat conftest.$ac_ext >&5
15280   rm -rf conftest*
15281   glibcpp_cv_func__modff_use=no
15282 fi
15283 rm -f conftest*
15284       ac_ext=c
15285 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15286 ac_cpp='$CPP $CPPFLAGS'
15287 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15288 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15289 cross_compiling=$ac_cv_prog_cc_cross
15290
15291     
15292 fi
15293
15294   fi
15295   echo "$ac_t""$glibcpp_cv_func__modff_use" 1>&6
15296
15297     if test x$glibcpp_cv_func__modff_use = x"yes"; then
15298       for ac_func in _modff
15299 do
15300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15301 echo "configure:15302: checking for $ac_func" >&5
15302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15303   echo $ac_n "(cached) $ac_c" 1>&6
15304 else
15305   cat > conftest.$ac_ext <<EOF
15306 #line 15307 "configure"
15307 #include "confdefs.h"
15308 /* System header to define __stub macros and hopefully few prototypes,
15309     which can conflict with char $ac_func(); below.  */
15310 #include <assert.h>
15311 /* Override any gcc2 internal prototype to avoid an error.  */
15312 /* We use char because int might match the return type of a gcc2
15313     builtin and then its argument prototype would still apply.  */
15314 char $ac_func();
15315
15316 int main() {
15317
15318 /* The GNU C library defines this for functions which it implements
15319     to always fail with ENOSYS.  Some functions are actually named
15320     something starting with __ and the normal name is an alias.  */
15321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15322 choke me
15323 #else
15324 $ac_func();
15325 #endif
15326
15327 ; return 0; }
15328 EOF
15329 if { (eval echo configure:15330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15330   rm -rf conftest*
15331   eval "ac_cv_func_$ac_func=yes"
15332 else
15333   echo "configure: failed program was:" >&5
15334   cat conftest.$ac_ext >&5
15335   rm -rf conftest*
15336   eval "ac_cv_func_$ac_func=no"
15337 fi
15338 rm -f conftest*
15339 fi
15340
15341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15342   echo "$ac_t""yes" 1>&6
15343     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15344   cat >> confdefs.h <<EOF
15345 #define $ac_tr_func 1
15346 EOF
15347  
15348 else
15349   echo "$ac_t""no" 1>&6
15350 fi
15351 done
15352
15353     fi
15354   fi
15355
15356   
15357   
15358   echo $ac_n "checking for powf declaration""... $ac_c" 1>&6
15359 echo "configure:15360: checking for powf declaration" >&5
15360   if test x${glibcpp_cv_func_powf_use+set} != xset; then
15361     if eval "test \"`echo '$''{'glibcpp_cv_func_powf_use'+set}'`\" = set"; then
15362   echo $ac_n "(cached) $ac_c" 1>&6
15363 else
15364   
15365       
15366       ac_ext=C
15367 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15368 ac_cpp='$CXXCPP $CPPFLAGS'
15369 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15370 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15371 cross_compiling=$ac_cv_prog_cxx_cross
15372
15373       cat > conftest.$ac_ext <<EOF
15374 #line 15375 "configure"
15375 #include "confdefs.h"
15376 #include <math.h>
15377 int main() {
15378  powf(0, 0);
15379 ; return 0; }
15380 EOF
15381 if { (eval echo configure:15382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15382   rm -rf conftest*
15383   glibcpp_cv_func_powf_use=yes
15384 else
15385   echo "configure: failed program was:" >&5
15386   cat conftest.$ac_ext >&5
15387   rm -rf conftest*
15388   glibcpp_cv_func_powf_use=no
15389 fi
15390 rm -f conftest*
15391       ac_ext=c
15392 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15393 ac_cpp='$CPP $CPPFLAGS'
15394 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15395 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15396 cross_compiling=$ac_cv_prog_cc_cross
15397
15398     
15399 fi
15400
15401   fi
15402   echo "$ac_t""$glibcpp_cv_func_powf_use" 1>&6
15403
15404   if test x$glibcpp_cv_func_powf_use = x"yes"; then
15405     for ac_func in powf
15406 do
15407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15408 echo "configure:15409: checking for $ac_func" >&5
15409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15410   echo $ac_n "(cached) $ac_c" 1>&6
15411 else
15412   cat > conftest.$ac_ext <<EOF
15413 #line 15414 "configure"
15414 #include "confdefs.h"
15415 /* System header to define __stub macros and hopefully few prototypes,
15416     which can conflict with char $ac_func(); below.  */
15417 #include <assert.h>
15418 /* Override any gcc2 internal prototype to avoid an error.  */
15419 /* We use char because int might match the return type of a gcc2
15420     builtin and then its argument prototype would still apply.  */
15421 char $ac_func();
15422
15423 int main() {
15424
15425 /* The GNU C library defines this for functions which it implements
15426     to always fail with ENOSYS.  Some functions are actually named
15427     something starting with __ and the normal name is an alias.  */
15428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15429 choke me
15430 #else
15431 $ac_func();
15432 #endif
15433
15434 ; return 0; }
15435 EOF
15436 if { (eval echo configure:15437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15437   rm -rf conftest*
15438   eval "ac_cv_func_$ac_func=yes"
15439 else
15440   echo "configure: failed program was:" >&5
15441   cat conftest.$ac_ext >&5
15442   rm -rf conftest*
15443   eval "ac_cv_func_$ac_func=no"
15444 fi
15445 rm -f conftest*
15446 fi
15447
15448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15449   echo "$ac_t""yes" 1>&6
15450     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15451   cat >> confdefs.h <<EOF
15452 #define $ac_tr_func 1
15453 EOF
15454  
15455 else
15456   echo "$ac_t""no" 1>&6
15457 fi
15458 done
15459
15460   else
15461     
15462   echo $ac_n "checking for _powf declaration""... $ac_c" 1>&6
15463 echo "configure:15464: checking for _powf declaration" >&5
15464   if test x${glibcpp_cv_func__powf_use+set} != xset; then
15465     if eval "test \"`echo '$''{'glibcpp_cv_func__powf_use'+set}'`\" = set"; then
15466   echo $ac_n "(cached) $ac_c" 1>&6
15467 else
15468   
15469       
15470       ac_ext=C
15471 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15472 ac_cpp='$CXXCPP $CPPFLAGS'
15473 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15474 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15475 cross_compiling=$ac_cv_prog_cxx_cross
15476
15477       cat > conftest.$ac_ext <<EOF
15478 #line 15479 "configure"
15479 #include "confdefs.h"
15480 #include <math.h>
15481 int main() {
15482  _powf(0, 0);
15483 ; return 0; }
15484 EOF
15485 if { (eval echo configure:15486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15486   rm -rf conftest*
15487   glibcpp_cv_func__powf_use=yes
15488 else
15489   echo "configure: failed program was:" >&5
15490   cat conftest.$ac_ext >&5
15491   rm -rf conftest*
15492   glibcpp_cv_func__powf_use=no
15493 fi
15494 rm -f conftest*
15495       ac_ext=c
15496 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15497 ac_cpp='$CPP $CPPFLAGS'
15498 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15499 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15500 cross_compiling=$ac_cv_prog_cc_cross
15501
15502     
15503 fi
15504
15505   fi
15506   echo "$ac_t""$glibcpp_cv_func__powf_use" 1>&6
15507
15508     if test x$glibcpp_cv_func__powf_use = x"yes"; then
15509       for ac_func in _powf
15510 do
15511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15512 echo "configure:15513: checking for $ac_func" >&5
15513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15514   echo $ac_n "(cached) $ac_c" 1>&6
15515 else
15516   cat > conftest.$ac_ext <<EOF
15517 #line 15518 "configure"
15518 #include "confdefs.h"
15519 /* System header to define __stub macros and hopefully few prototypes,
15520     which can conflict with char $ac_func(); below.  */
15521 #include <assert.h>
15522 /* Override any gcc2 internal prototype to avoid an error.  */
15523 /* We use char because int might match the return type of a gcc2
15524     builtin and then its argument prototype would still apply.  */
15525 char $ac_func();
15526
15527 int main() {
15528
15529 /* The GNU C library defines this for functions which it implements
15530     to always fail with ENOSYS.  Some functions are actually named
15531     something starting with __ and the normal name is an alias.  */
15532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15533 choke me
15534 #else
15535 $ac_func();
15536 #endif
15537
15538 ; return 0; }
15539 EOF
15540 if { (eval echo configure:15541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15541   rm -rf conftest*
15542   eval "ac_cv_func_$ac_func=yes"
15543 else
15544   echo "configure: failed program was:" >&5
15545   cat conftest.$ac_ext >&5
15546   rm -rf conftest*
15547   eval "ac_cv_func_$ac_func=no"
15548 fi
15549 rm -f conftest*
15550 fi
15551
15552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15553   echo "$ac_t""yes" 1>&6
15554     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15555   cat >> confdefs.h <<EOF
15556 #define $ac_tr_func 1
15557 EOF
15558  
15559 else
15560   echo "$ac_t""no" 1>&6
15561 fi
15562 done
15563
15564     fi
15565   fi
15566
15567   
15568   
15569   echo $ac_n "checking for sqrtf declaration""... $ac_c" 1>&6
15570 echo "configure:15571: checking for sqrtf declaration" >&5
15571   if test x${glibcpp_cv_func_sqrtf_use+set} != xset; then
15572     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtf_use'+set}'`\" = set"; then
15573   echo $ac_n "(cached) $ac_c" 1>&6
15574 else
15575   
15576       
15577       ac_ext=C
15578 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15579 ac_cpp='$CXXCPP $CPPFLAGS'
15580 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15581 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15582 cross_compiling=$ac_cv_prog_cxx_cross
15583
15584       cat > conftest.$ac_ext <<EOF
15585 #line 15586 "configure"
15586 #include "confdefs.h"
15587 #include <math.h>
15588                       #ifdef HAVE_IEEEFP_H
15589                       #include <ieeefp.h>
15590                       #endif
15591                      
15592 int main() {
15593  sqrtf(0);
15594 ; return 0; }
15595 EOF
15596 if { (eval echo configure:15597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15597   rm -rf conftest*
15598   glibcpp_cv_func_sqrtf_use=yes
15599 else
15600   echo "configure: failed program was:" >&5
15601   cat conftest.$ac_ext >&5
15602   rm -rf conftest*
15603   glibcpp_cv_func_sqrtf_use=no
15604 fi
15605 rm -f conftest*
15606       ac_ext=c
15607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15608 ac_cpp='$CPP $CPPFLAGS'
15609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15610 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15611 cross_compiling=$ac_cv_prog_cc_cross
15612
15613     
15614 fi
15615
15616   fi
15617   echo "$ac_t""$glibcpp_cv_func_sqrtf_use" 1>&6
15618
15619   if test x$glibcpp_cv_func_sqrtf_use = x"yes"; then
15620     for ac_func in sqrtf
15621 do
15622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15623 echo "configure:15624: checking for $ac_func" >&5
15624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15625   echo $ac_n "(cached) $ac_c" 1>&6
15626 else
15627   cat > conftest.$ac_ext <<EOF
15628 #line 15629 "configure"
15629 #include "confdefs.h"
15630 /* System header to define __stub macros and hopefully few prototypes,
15631     which can conflict with char $ac_func(); below.  */
15632 #include <assert.h>
15633 /* Override any gcc2 internal prototype to avoid an error.  */
15634 /* We use char because int might match the return type of a gcc2
15635     builtin and then its argument prototype would still apply.  */
15636 char $ac_func();
15637
15638 int main() {
15639
15640 /* The GNU C library defines this for functions which it implements
15641     to always fail with ENOSYS.  Some functions are actually named
15642     something starting with __ and the normal name is an alias.  */
15643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15644 choke me
15645 #else
15646 $ac_func();
15647 #endif
15648
15649 ; return 0; }
15650 EOF
15651 if { (eval echo configure:15652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15652   rm -rf conftest*
15653   eval "ac_cv_func_$ac_func=yes"
15654 else
15655   echo "configure: failed program was:" >&5
15656   cat conftest.$ac_ext >&5
15657   rm -rf conftest*
15658   eval "ac_cv_func_$ac_func=no"
15659 fi
15660 rm -f conftest*
15661 fi
15662
15663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15664   echo "$ac_t""yes" 1>&6
15665     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15666   cat >> confdefs.h <<EOF
15667 #define $ac_tr_func 1
15668 EOF
15669  
15670 else
15671   echo "$ac_t""no" 1>&6
15672 fi
15673 done
15674
15675   else
15676     
15677   echo $ac_n "checking for _sqrtf declaration""... $ac_c" 1>&6
15678 echo "configure:15679: checking for _sqrtf declaration" >&5
15679   if test x${glibcpp_cv_func__sqrtf_use+set} != xset; then
15680     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtf_use'+set}'`\" = set"; then
15681   echo $ac_n "(cached) $ac_c" 1>&6
15682 else
15683   
15684       
15685       ac_ext=C
15686 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15687 ac_cpp='$CXXCPP $CPPFLAGS'
15688 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15689 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15690 cross_compiling=$ac_cv_prog_cxx_cross
15691
15692       cat > conftest.$ac_ext <<EOF
15693 #line 15694 "configure"
15694 #include "confdefs.h"
15695 #include <math.h>
15696                       #ifdef HAVE_IEEEFP_H
15697                       #include <ieeefp.h>
15698                       #endif
15699                      
15700 int main() {
15701  _sqrtf(0);
15702 ; return 0; }
15703 EOF
15704 if { (eval echo configure:15705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15705   rm -rf conftest*
15706   glibcpp_cv_func__sqrtf_use=yes
15707 else
15708   echo "configure: failed program was:" >&5
15709   cat conftest.$ac_ext >&5
15710   rm -rf conftest*
15711   glibcpp_cv_func__sqrtf_use=no
15712 fi
15713 rm -f conftest*
15714       ac_ext=c
15715 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15716 ac_cpp='$CPP $CPPFLAGS'
15717 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15718 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15719 cross_compiling=$ac_cv_prog_cc_cross
15720
15721     
15722 fi
15723
15724   fi
15725   echo "$ac_t""$glibcpp_cv_func__sqrtf_use" 1>&6
15726
15727     if test x$glibcpp_cv_func__sqrtf_use = x"yes"; then
15728       for ac_func in _sqrtf
15729 do
15730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15731 echo "configure:15732: checking for $ac_func" >&5
15732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15733   echo $ac_n "(cached) $ac_c" 1>&6
15734 else
15735   cat > conftest.$ac_ext <<EOF
15736 #line 15737 "configure"
15737 #include "confdefs.h"
15738 /* System header to define __stub macros and hopefully few prototypes,
15739     which can conflict with char $ac_func(); below.  */
15740 #include <assert.h>
15741 /* Override any gcc2 internal prototype to avoid an error.  */
15742 /* We use char because int might match the return type of a gcc2
15743     builtin and then its argument prototype would still apply.  */
15744 char $ac_func();
15745
15746 int main() {
15747
15748 /* The GNU C library defines this for functions which it implements
15749     to always fail with ENOSYS.  Some functions are actually named
15750     something starting with __ and the normal name is an alias.  */
15751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15752 choke me
15753 #else
15754 $ac_func();
15755 #endif
15756
15757 ; return 0; }
15758 EOF
15759 if { (eval echo configure:15760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15760   rm -rf conftest*
15761   eval "ac_cv_func_$ac_func=yes"
15762 else
15763   echo "configure: failed program was:" >&5
15764   cat conftest.$ac_ext >&5
15765   rm -rf conftest*
15766   eval "ac_cv_func_$ac_func=no"
15767 fi
15768 rm -f conftest*
15769 fi
15770
15771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15772   echo "$ac_t""yes" 1>&6
15773     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15774   cat >> confdefs.h <<EOF
15775 #define $ac_tr_func 1
15776 EOF
15777  
15778 else
15779   echo "$ac_t""no" 1>&6
15780 fi
15781 done
15782
15783     fi
15784   fi
15785
15786   
15787   
15788   echo $ac_n "checking for sincosf declaration""... $ac_c" 1>&6
15789 echo "configure:15790: checking for sincosf declaration" >&5
15790   if test x${glibcpp_cv_func_sincosf_use+set} != xset; then
15791     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosf_use'+set}'`\" = set"; then
15792   echo $ac_n "(cached) $ac_c" 1>&6
15793 else
15794   
15795       
15796       ac_ext=C
15797 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15798 ac_cpp='$CXXCPP $CPPFLAGS'
15799 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15800 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15801 cross_compiling=$ac_cv_prog_cxx_cross
15802
15803       cat > conftest.$ac_ext <<EOF
15804 #line 15805 "configure"
15805 #include "confdefs.h"
15806 #include <math.h>
15807 int main() {
15808  sincosf(0, 0, 0);
15809 ; return 0; }
15810 EOF
15811 if { (eval echo configure:15812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15812   rm -rf conftest*
15813   glibcpp_cv_func_sincosf_use=yes
15814 else
15815   echo "configure: failed program was:" >&5
15816   cat conftest.$ac_ext >&5
15817   rm -rf conftest*
15818   glibcpp_cv_func_sincosf_use=no
15819 fi
15820 rm -f conftest*
15821       ac_ext=c
15822 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15823 ac_cpp='$CPP $CPPFLAGS'
15824 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15825 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15826 cross_compiling=$ac_cv_prog_cc_cross
15827
15828     
15829 fi
15830
15831   fi
15832   echo "$ac_t""$glibcpp_cv_func_sincosf_use" 1>&6
15833
15834   if test x$glibcpp_cv_func_sincosf_use = x"yes"; then
15835     for ac_func in sincosf
15836 do
15837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15838 echo "configure:15839: checking for $ac_func" >&5
15839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15840   echo $ac_n "(cached) $ac_c" 1>&6
15841 else
15842   cat > conftest.$ac_ext <<EOF
15843 #line 15844 "configure"
15844 #include "confdefs.h"
15845 /* System header to define __stub macros and hopefully few prototypes,
15846     which can conflict with char $ac_func(); below.  */
15847 #include <assert.h>
15848 /* Override any gcc2 internal prototype to avoid an error.  */
15849 /* We use char because int might match the return type of a gcc2
15850     builtin and then its argument prototype would still apply.  */
15851 char $ac_func();
15852
15853 int main() {
15854
15855 /* The GNU C library defines this for functions which it implements
15856     to always fail with ENOSYS.  Some functions are actually named
15857     something starting with __ and the normal name is an alias.  */
15858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15859 choke me
15860 #else
15861 $ac_func();
15862 #endif
15863
15864 ; return 0; }
15865 EOF
15866 if { (eval echo configure:15867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15867   rm -rf conftest*
15868   eval "ac_cv_func_$ac_func=yes"
15869 else
15870   echo "configure: failed program was:" >&5
15871   cat conftest.$ac_ext >&5
15872   rm -rf conftest*
15873   eval "ac_cv_func_$ac_func=no"
15874 fi
15875 rm -f conftest*
15876 fi
15877
15878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15879   echo "$ac_t""yes" 1>&6
15880     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15881   cat >> confdefs.h <<EOF
15882 #define $ac_tr_func 1
15883 EOF
15884  
15885 else
15886   echo "$ac_t""no" 1>&6
15887 fi
15888 done
15889
15890   else
15891     
15892   echo $ac_n "checking for _sincosf declaration""... $ac_c" 1>&6
15893 echo "configure:15894: checking for _sincosf declaration" >&5
15894   if test x${glibcpp_cv_func__sincosf_use+set} != xset; then
15895     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosf_use'+set}'`\" = set"; then
15896   echo $ac_n "(cached) $ac_c" 1>&6
15897 else
15898   
15899       
15900       ac_ext=C
15901 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15902 ac_cpp='$CXXCPP $CPPFLAGS'
15903 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15904 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15905 cross_compiling=$ac_cv_prog_cxx_cross
15906
15907       cat > conftest.$ac_ext <<EOF
15908 #line 15909 "configure"
15909 #include "confdefs.h"
15910 #include <math.h>
15911 int main() {
15912  _sincosf(0, 0, 0);
15913 ; return 0; }
15914 EOF
15915 if { (eval echo configure:15916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15916   rm -rf conftest*
15917   glibcpp_cv_func__sincosf_use=yes
15918 else
15919   echo "configure: failed program was:" >&5
15920   cat conftest.$ac_ext >&5
15921   rm -rf conftest*
15922   glibcpp_cv_func__sincosf_use=no
15923 fi
15924 rm -f conftest*
15925       ac_ext=c
15926 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15927 ac_cpp='$CPP $CPPFLAGS'
15928 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15929 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15930 cross_compiling=$ac_cv_prog_cc_cross
15931
15932     
15933 fi
15934
15935   fi
15936   echo "$ac_t""$glibcpp_cv_func__sincosf_use" 1>&6
15937
15938     if test x$glibcpp_cv_func__sincosf_use = x"yes"; then
15939       for ac_func in _sincosf
15940 do
15941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15942 echo "configure:15943: checking for $ac_func" >&5
15943 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15944   echo $ac_n "(cached) $ac_c" 1>&6
15945 else
15946   cat > conftest.$ac_ext <<EOF
15947 #line 15948 "configure"
15948 #include "confdefs.h"
15949 /* System header to define __stub macros and hopefully few prototypes,
15950     which can conflict with char $ac_func(); below.  */
15951 #include <assert.h>
15952 /* Override any gcc2 internal prototype to avoid an error.  */
15953 /* We use char because int might match the return type of a gcc2
15954     builtin and then its argument prototype would still apply.  */
15955 char $ac_func();
15956
15957 int main() {
15958
15959 /* The GNU C library defines this for functions which it implements
15960     to always fail with ENOSYS.  Some functions are actually named
15961     something starting with __ and the normal name is an alias.  */
15962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15963 choke me
15964 #else
15965 $ac_func();
15966 #endif
15967
15968 ; return 0; }
15969 EOF
15970 if { (eval echo configure:15971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15971   rm -rf conftest*
15972   eval "ac_cv_func_$ac_func=yes"
15973 else
15974   echo "configure: failed program was:" >&5
15975   cat conftest.$ac_ext >&5
15976   rm -rf conftest*
15977   eval "ac_cv_func_$ac_func=no"
15978 fi
15979 rm -f conftest*
15980 fi
15981
15982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15983   echo "$ac_t""yes" 1>&6
15984     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15985   cat >> confdefs.h <<EOF
15986 #define $ac_tr_func 1
15987 EOF
15988  
15989 else
15990   echo "$ac_t""no" 1>&6
15991 fi
15992 done
15993
15994     fi
15995   fi
15996
15997   
15998   
15999   echo $ac_n "checking for finitef declaration""... $ac_c" 1>&6
16000 echo "configure:16001: checking for finitef declaration" >&5
16001   if test x${glibcpp_cv_func_finitef_use+set} != xset; then
16002     if eval "test \"`echo '$''{'glibcpp_cv_func_finitef_use'+set}'`\" = set"; then
16003   echo $ac_n "(cached) $ac_c" 1>&6
16004 else
16005   
16006       
16007       ac_ext=C
16008 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16009 ac_cpp='$CXXCPP $CPPFLAGS'
16010 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16011 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16012 cross_compiling=$ac_cv_prog_cxx_cross
16013
16014       cat > conftest.$ac_ext <<EOF
16015 #line 16016 "configure"
16016 #include "confdefs.h"
16017 #include <math.h>
16018                       #ifdef HAVE_IEEEFP_H
16019                       #include <ieeefp.h>
16020                       #endif
16021                      
16022 int main() {
16023  finitef(0);
16024 ; return 0; }
16025 EOF
16026 if { (eval echo configure:16027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16027   rm -rf conftest*
16028   glibcpp_cv_func_finitef_use=yes
16029 else
16030   echo "configure: failed program was:" >&5
16031   cat conftest.$ac_ext >&5
16032   rm -rf conftest*
16033   glibcpp_cv_func_finitef_use=no
16034 fi
16035 rm -f conftest*
16036       ac_ext=c
16037 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16038 ac_cpp='$CPP $CPPFLAGS'
16039 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16040 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16041 cross_compiling=$ac_cv_prog_cc_cross
16042
16043     
16044 fi
16045
16046   fi
16047   echo "$ac_t""$glibcpp_cv_func_finitef_use" 1>&6
16048
16049   if test x$glibcpp_cv_func_finitef_use = x"yes"; then
16050     for ac_func in finitef
16051 do
16052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16053 echo "configure:16054: checking for $ac_func" >&5
16054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16055   echo $ac_n "(cached) $ac_c" 1>&6
16056 else
16057   cat > conftest.$ac_ext <<EOF
16058 #line 16059 "configure"
16059 #include "confdefs.h"
16060 /* System header to define __stub macros and hopefully few prototypes,
16061     which can conflict with char $ac_func(); below.  */
16062 #include <assert.h>
16063 /* Override any gcc2 internal prototype to avoid an error.  */
16064 /* We use char because int might match the return type of a gcc2
16065     builtin and then its argument prototype would still apply.  */
16066 char $ac_func();
16067
16068 int main() {
16069
16070 /* The GNU C library defines this for functions which it implements
16071     to always fail with ENOSYS.  Some functions are actually named
16072     something starting with __ and the normal name is an alias.  */
16073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16074 choke me
16075 #else
16076 $ac_func();
16077 #endif
16078
16079 ; return 0; }
16080 EOF
16081 if { (eval echo configure:16082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16082   rm -rf conftest*
16083   eval "ac_cv_func_$ac_func=yes"
16084 else
16085   echo "configure: failed program was:" >&5
16086   cat conftest.$ac_ext >&5
16087   rm -rf conftest*
16088   eval "ac_cv_func_$ac_func=no"
16089 fi
16090 rm -f conftest*
16091 fi
16092
16093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16094   echo "$ac_t""yes" 1>&6
16095     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16096   cat >> confdefs.h <<EOF
16097 #define $ac_tr_func 1
16098 EOF
16099  
16100 else
16101   echo "$ac_t""no" 1>&6
16102 fi
16103 done
16104
16105   else
16106     
16107   echo $ac_n "checking for _finitef declaration""... $ac_c" 1>&6
16108 echo "configure:16109: checking for _finitef declaration" >&5
16109   if test x${glibcpp_cv_func__finitef_use+set} != xset; then
16110     if eval "test \"`echo '$''{'glibcpp_cv_func__finitef_use'+set}'`\" = set"; then
16111   echo $ac_n "(cached) $ac_c" 1>&6
16112 else
16113   
16114       
16115       ac_ext=C
16116 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16117 ac_cpp='$CXXCPP $CPPFLAGS'
16118 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16119 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16120 cross_compiling=$ac_cv_prog_cxx_cross
16121
16122       cat > conftest.$ac_ext <<EOF
16123 #line 16124 "configure"
16124 #include "confdefs.h"
16125 #include <math.h>
16126                       #ifdef HAVE_IEEEFP_H
16127                       #include <ieeefp.h>
16128                       #endif
16129                      
16130 int main() {
16131  _finitef(0);
16132 ; return 0; }
16133 EOF
16134 if { (eval echo configure:16135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16135   rm -rf conftest*
16136   glibcpp_cv_func__finitef_use=yes
16137 else
16138   echo "configure: failed program was:" >&5
16139   cat conftest.$ac_ext >&5
16140   rm -rf conftest*
16141   glibcpp_cv_func__finitef_use=no
16142 fi
16143 rm -f conftest*
16144       ac_ext=c
16145 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16146 ac_cpp='$CPP $CPPFLAGS'
16147 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16148 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16149 cross_compiling=$ac_cv_prog_cc_cross
16150
16151     
16152 fi
16153
16154   fi
16155   echo "$ac_t""$glibcpp_cv_func__finitef_use" 1>&6
16156
16157     if test x$glibcpp_cv_func__finitef_use = x"yes"; then
16158       for ac_func in _finitef
16159 do
16160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16161 echo "configure:16162: checking for $ac_func" >&5
16162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16163   echo $ac_n "(cached) $ac_c" 1>&6
16164 else
16165   cat > conftest.$ac_ext <<EOF
16166 #line 16167 "configure"
16167 #include "confdefs.h"
16168 /* System header to define __stub macros and hopefully few prototypes,
16169     which can conflict with char $ac_func(); below.  */
16170 #include <assert.h>
16171 /* Override any gcc2 internal prototype to avoid an error.  */
16172 /* We use char because int might match the return type of a gcc2
16173     builtin and then its argument prototype would still apply.  */
16174 char $ac_func();
16175
16176 int main() {
16177
16178 /* The GNU C library defines this for functions which it implements
16179     to always fail with ENOSYS.  Some functions are actually named
16180     something starting with __ and the normal name is an alias.  */
16181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16182 choke me
16183 #else
16184 $ac_func();
16185 #endif
16186
16187 ; return 0; }
16188 EOF
16189 if { (eval echo configure:16190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16190   rm -rf conftest*
16191   eval "ac_cv_func_$ac_func=yes"
16192 else
16193   echo "configure: failed program was:" >&5
16194   cat conftest.$ac_ext >&5
16195   rm -rf conftest*
16196   eval "ac_cv_func_$ac_func=no"
16197 fi
16198 rm -f conftest*
16199 fi
16200
16201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16202   echo "$ac_t""yes" 1>&6
16203     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16204   cat >> confdefs.h <<EOF
16205 #define $ac_tr_func 1
16206 EOF
16207  
16208 else
16209   echo "$ac_t""no" 1>&6
16210 fi
16211 done
16212
16213     fi
16214   fi
16215
16216
16217     
16218   echo $ac_n "checking for long double trig functions""... $ac_c" 1>&6
16219 echo "configure:16220: checking for long double trig functions" >&5
16220   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_trig_use'+set}'`\" = set"; then
16221   echo $ac_n "(cached) $ac_c" 1>&6
16222 else
16223   
16224     
16225     ac_ext=C
16226 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16227 ac_cpp='$CXXCPP $CPPFLAGS'
16228 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16229 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16230 cross_compiling=$ac_cv_prog_cxx_cross
16231
16232     cat > conftest.$ac_ext <<EOF
16233 #line 16234 "configure"
16234 #include "confdefs.h"
16235 #include <math.h>
16236 int main() {
16237  `for x in acosl asinl atanl \
16238                                           cosl sinl tanl \
16239                                           coshl sinhl tanhl; do echo "$x (0);"; done` 
16240 ; return 0; }
16241 EOF
16242 if { (eval echo configure:16243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16243   rm -rf conftest*
16244   glibcpp_cv_func_long_double_trig_use=yes
16245 else
16246   echo "configure: failed program was:" >&5
16247   cat conftest.$ac_ext >&5
16248   rm -rf conftest*
16249   glibcpp_cv_func_long_double_trig_use=no
16250 fi
16251 rm -f conftest*
16252     ac_ext=c
16253 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16254 ac_cpp='$CPP $CPPFLAGS'
16255 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16256 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16257 cross_compiling=$ac_cv_prog_cc_cross
16258
16259 fi
16260
16261   echo "$ac_t""$glibcpp_cv_func_long_double_trig_use" 1>&6
16262   if test x$glibcpp_cv_func_long_double_trig_use = x"yes"; then
16263     for ac_func in acosl asinl atanl \
16264                                           cosl sinl tanl \
16265                                           coshl sinhl tanhl
16266 do
16267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16268 echo "configure:16269: checking for $ac_func" >&5
16269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16270   echo $ac_n "(cached) $ac_c" 1>&6
16271 else
16272   cat > conftest.$ac_ext <<EOF
16273 #line 16274 "configure"
16274 #include "confdefs.h"
16275 /* System header to define __stub macros and hopefully few prototypes,
16276     which can conflict with char $ac_func(); below.  */
16277 #include <assert.h>
16278 /* Override any gcc2 internal prototype to avoid an error.  */
16279 /* We use char because int might match the return type of a gcc2
16280     builtin and then its argument prototype would still apply.  */
16281 char $ac_func();
16282
16283 int main() {
16284
16285 /* The GNU C library defines this for functions which it implements
16286     to always fail with ENOSYS.  Some functions are actually named
16287     something starting with __ and the normal name is an alias.  */
16288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16289 choke me
16290 #else
16291 $ac_func();
16292 #endif
16293
16294 ; return 0; }
16295 EOF
16296 if { (eval echo configure:16297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16297   rm -rf conftest*
16298   eval "ac_cv_func_$ac_func=yes"
16299 else
16300   echo "configure: failed program was:" >&5
16301   cat conftest.$ac_ext >&5
16302   rm -rf conftest*
16303   eval "ac_cv_func_$ac_func=no"
16304 fi
16305 rm -f conftest*
16306 fi
16307
16308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16309   echo "$ac_t""yes" 1>&6
16310     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16311   cat >> confdefs.h <<EOF
16312 #define $ac_tr_func 1
16313 EOF
16314  
16315 else
16316   echo "$ac_t""no" 1>&6
16317 fi
16318 done
16319
16320   fi
16321
16322   
16323   echo $ac_n "checking for long double round functions""... $ac_c" 1>&6
16324 echo "configure:16325: checking for long double round functions" >&5
16325   if eval "test \"`echo '$''{'glibcpp_cv_func_long_double_round_use'+set}'`\" = set"; then
16326   echo $ac_n "(cached) $ac_c" 1>&6
16327 else
16328   
16329     
16330     ac_ext=C
16331 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16332 ac_cpp='$CXXCPP $CPPFLAGS'
16333 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16334 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16335 cross_compiling=$ac_cv_prog_cxx_cross
16336
16337     cat > conftest.$ac_ext <<EOF
16338 #line 16339 "configure"
16339 #include "confdefs.h"
16340 #include <math.h>
16341 int main() {
16342  `for x in ceill floorl; do echo "$x (0);"; done` 
16343 ; return 0; }
16344 EOF
16345 if { (eval echo configure:16346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16346   rm -rf conftest*
16347   glibcpp_cv_func_long_double_round_use=yes
16348 else
16349   echo "configure: failed program was:" >&5
16350   cat conftest.$ac_ext >&5
16351   rm -rf conftest*
16352   glibcpp_cv_func_long_double_round_use=no
16353 fi
16354 rm -f conftest*
16355     ac_ext=c
16356 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16357 ac_cpp='$CPP $CPPFLAGS'
16358 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16359 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16360 cross_compiling=$ac_cv_prog_cc_cross
16361
16362 fi
16363
16364   echo "$ac_t""$glibcpp_cv_func_long_double_round_use" 1>&6
16365   if test x$glibcpp_cv_func_long_double_round_use = x"yes"; then
16366     for ac_func in ceill floorl
16367 do
16368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16369 echo "configure:16370: checking for $ac_func" >&5
16370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16371   echo $ac_n "(cached) $ac_c" 1>&6
16372 else
16373   cat > conftest.$ac_ext <<EOF
16374 #line 16375 "configure"
16375 #include "confdefs.h"
16376 /* System header to define __stub macros and hopefully few prototypes,
16377     which can conflict with char $ac_func(); below.  */
16378 #include <assert.h>
16379 /* Override any gcc2 internal prototype to avoid an error.  */
16380 /* We use char because int might match the return type of a gcc2
16381     builtin and then its argument prototype would still apply.  */
16382 char $ac_func();
16383
16384 int main() {
16385
16386 /* The GNU C library defines this for functions which it implements
16387     to always fail with ENOSYS.  Some functions are actually named
16388     something starting with __ and the normal name is an alias.  */
16389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16390 choke me
16391 #else
16392 $ac_func();
16393 #endif
16394
16395 ; return 0; }
16396 EOF
16397 if { (eval echo configure:16398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16398   rm -rf conftest*
16399   eval "ac_cv_func_$ac_func=yes"
16400 else
16401   echo "configure: failed program was:" >&5
16402   cat conftest.$ac_ext >&5
16403   rm -rf conftest*
16404   eval "ac_cv_func_$ac_func=no"
16405 fi
16406 rm -f conftest*
16407 fi
16408
16409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16410   echo "$ac_t""yes" 1>&6
16411     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16412   cat >> confdefs.h <<EOF
16413 #define $ac_tr_func 1
16414 EOF
16415  
16416 else
16417   echo "$ac_t""no" 1>&6
16418 fi
16419 done
16420
16421   fi
16422
16423   
16424   
16425   echo $ac_n "checking for isnanl declaration""... $ac_c" 1>&6
16426 echo "configure:16427: checking for isnanl declaration" >&5
16427   if test x${glibcpp_cv_func_isnanl_use+set} != xset; then
16428     if eval "test \"`echo '$''{'glibcpp_cv_func_isnanl_use'+set}'`\" = set"; then
16429   echo $ac_n "(cached) $ac_c" 1>&6
16430 else
16431   
16432       
16433       ac_ext=C
16434 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16435 ac_cpp='$CXXCPP $CPPFLAGS'
16436 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16437 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16438 cross_compiling=$ac_cv_prog_cxx_cross
16439
16440       cat > conftest.$ac_ext <<EOF
16441 #line 16442 "configure"
16442 #include "confdefs.h"
16443 #include <math.h>
16444                       #ifdef HAVE_IEEEFP_H
16445                       #include <ieeefp.h>
16446                       #endif
16447                      
16448 int main() {
16449  isnanl(0);
16450 ; return 0; }
16451 EOF
16452 if { (eval echo configure:16453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16453   rm -rf conftest*
16454   glibcpp_cv_func_isnanl_use=yes
16455 else
16456   echo "configure: failed program was:" >&5
16457   cat conftest.$ac_ext >&5
16458   rm -rf conftest*
16459   glibcpp_cv_func_isnanl_use=no
16460 fi
16461 rm -f conftest*
16462       ac_ext=c
16463 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16464 ac_cpp='$CPP $CPPFLAGS'
16465 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16466 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16467 cross_compiling=$ac_cv_prog_cc_cross
16468
16469     
16470 fi
16471
16472   fi
16473   echo "$ac_t""$glibcpp_cv_func_isnanl_use" 1>&6
16474
16475   if test x$glibcpp_cv_func_isnanl_use = x"yes"; then
16476     for ac_func in isnanl
16477 do
16478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16479 echo "configure:16480: checking for $ac_func" >&5
16480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16481   echo $ac_n "(cached) $ac_c" 1>&6
16482 else
16483   cat > conftest.$ac_ext <<EOF
16484 #line 16485 "configure"
16485 #include "confdefs.h"
16486 /* System header to define __stub macros and hopefully few prototypes,
16487     which can conflict with char $ac_func(); below.  */
16488 #include <assert.h>
16489 /* Override any gcc2 internal prototype to avoid an error.  */
16490 /* We use char because int might match the return type of a gcc2
16491     builtin and then its argument prototype would still apply.  */
16492 char $ac_func();
16493
16494 int main() {
16495
16496 /* The GNU C library defines this for functions which it implements
16497     to always fail with ENOSYS.  Some functions are actually named
16498     something starting with __ and the normal name is an alias.  */
16499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16500 choke me
16501 #else
16502 $ac_func();
16503 #endif
16504
16505 ; return 0; }
16506 EOF
16507 if { (eval echo configure:16508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16508   rm -rf conftest*
16509   eval "ac_cv_func_$ac_func=yes"
16510 else
16511   echo "configure: failed program was:" >&5
16512   cat conftest.$ac_ext >&5
16513   rm -rf conftest*
16514   eval "ac_cv_func_$ac_func=no"
16515 fi
16516 rm -f conftest*
16517 fi
16518
16519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16520   echo "$ac_t""yes" 1>&6
16521     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16522   cat >> confdefs.h <<EOF
16523 #define $ac_tr_func 1
16524 EOF
16525  
16526 else
16527   echo "$ac_t""no" 1>&6
16528 fi
16529 done
16530
16531   else
16532     
16533   echo $ac_n "checking for _isnanl declaration""... $ac_c" 1>&6
16534 echo "configure:16535: checking for _isnanl declaration" >&5
16535   if test x${glibcpp_cv_func__isnanl_use+set} != xset; then
16536     if eval "test \"`echo '$''{'glibcpp_cv_func__isnanl_use'+set}'`\" = set"; then
16537   echo $ac_n "(cached) $ac_c" 1>&6
16538 else
16539   
16540       
16541       ac_ext=C
16542 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16543 ac_cpp='$CXXCPP $CPPFLAGS'
16544 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16545 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16546 cross_compiling=$ac_cv_prog_cxx_cross
16547
16548       cat > conftest.$ac_ext <<EOF
16549 #line 16550 "configure"
16550 #include "confdefs.h"
16551 #include <math.h>
16552                       #ifdef HAVE_IEEEFP_H
16553                       #include <ieeefp.h>
16554                       #endif
16555                      
16556 int main() {
16557  _isnanl(0);
16558 ; return 0; }
16559 EOF
16560 if { (eval echo configure:16561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16561   rm -rf conftest*
16562   glibcpp_cv_func__isnanl_use=yes
16563 else
16564   echo "configure: failed program was:" >&5
16565   cat conftest.$ac_ext >&5
16566   rm -rf conftest*
16567   glibcpp_cv_func__isnanl_use=no
16568 fi
16569 rm -f conftest*
16570       ac_ext=c
16571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16572 ac_cpp='$CPP $CPPFLAGS'
16573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16574 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16575 cross_compiling=$ac_cv_prog_cc_cross
16576
16577     
16578 fi
16579
16580   fi
16581   echo "$ac_t""$glibcpp_cv_func__isnanl_use" 1>&6
16582
16583     if test x$glibcpp_cv_func__isnanl_use = x"yes"; then
16584       for ac_func in _isnanl
16585 do
16586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16587 echo "configure:16588: checking for $ac_func" >&5
16588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16589   echo $ac_n "(cached) $ac_c" 1>&6
16590 else
16591   cat > conftest.$ac_ext <<EOF
16592 #line 16593 "configure"
16593 #include "confdefs.h"
16594 /* System header to define __stub macros and hopefully few prototypes,
16595     which can conflict with char $ac_func(); below.  */
16596 #include <assert.h>
16597 /* Override any gcc2 internal prototype to avoid an error.  */
16598 /* We use char because int might match the return type of a gcc2
16599     builtin and then its argument prototype would still apply.  */
16600 char $ac_func();
16601
16602 int main() {
16603
16604 /* The GNU C library defines this for functions which it implements
16605     to always fail with ENOSYS.  Some functions are actually named
16606     something starting with __ and the normal name is an alias.  */
16607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16608 choke me
16609 #else
16610 $ac_func();
16611 #endif
16612
16613 ; return 0; }
16614 EOF
16615 if { (eval echo configure:16616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16616   rm -rf conftest*
16617   eval "ac_cv_func_$ac_func=yes"
16618 else
16619   echo "configure: failed program was:" >&5
16620   cat conftest.$ac_ext >&5
16621   rm -rf conftest*
16622   eval "ac_cv_func_$ac_func=no"
16623 fi
16624 rm -f conftest*
16625 fi
16626
16627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16628   echo "$ac_t""yes" 1>&6
16629     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16630   cat >> confdefs.h <<EOF
16631 #define $ac_tr_func 1
16632 EOF
16633  
16634 else
16635   echo "$ac_t""no" 1>&6
16636 fi
16637 done
16638
16639     fi
16640   fi
16641
16642   
16643   
16644   echo $ac_n "checking for isinfl declaration""... $ac_c" 1>&6
16645 echo "configure:16646: checking for isinfl declaration" >&5
16646   if test x${glibcpp_cv_func_isinfl_use+set} != xset; then
16647     if eval "test \"`echo '$''{'glibcpp_cv_func_isinfl_use'+set}'`\" = set"; then
16648   echo $ac_n "(cached) $ac_c" 1>&6
16649 else
16650   
16651       
16652       ac_ext=C
16653 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16654 ac_cpp='$CXXCPP $CPPFLAGS'
16655 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16656 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16657 cross_compiling=$ac_cv_prog_cxx_cross
16658
16659       cat > conftest.$ac_ext <<EOF
16660 #line 16661 "configure"
16661 #include "confdefs.h"
16662 #include <math.h>
16663                       #ifdef HAVE_IEEEFP_H
16664                       #include <ieeefp.h>
16665                       #endif
16666                      
16667 int main() {
16668  isinfl(0);
16669 ; return 0; }
16670 EOF
16671 if { (eval echo configure:16672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16672   rm -rf conftest*
16673   glibcpp_cv_func_isinfl_use=yes
16674 else
16675   echo "configure: failed program was:" >&5
16676   cat conftest.$ac_ext >&5
16677   rm -rf conftest*
16678   glibcpp_cv_func_isinfl_use=no
16679 fi
16680 rm -f conftest*
16681       ac_ext=c
16682 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16683 ac_cpp='$CPP $CPPFLAGS'
16684 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16685 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16686 cross_compiling=$ac_cv_prog_cc_cross
16687
16688     
16689 fi
16690
16691   fi
16692   echo "$ac_t""$glibcpp_cv_func_isinfl_use" 1>&6
16693
16694   if test x$glibcpp_cv_func_isinfl_use = x"yes"; then
16695     for ac_func in isinfl
16696 do
16697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16698 echo "configure:16699: checking for $ac_func" >&5
16699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16700   echo $ac_n "(cached) $ac_c" 1>&6
16701 else
16702   cat > conftest.$ac_ext <<EOF
16703 #line 16704 "configure"
16704 #include "confdefs.h"
16705 /* System header to define __stub macros and hopefully few prototypes,
16706     which can conflict with char $ac_func(); below.  */
16707 #include <assert.h>
16708 /* Override any gcc2 internal prototype to avoid an error.  */
16709 /* We use char because int might match the return type of a gcc2
16710     builtin and then its argument prototype would still apply.  */
16711 char $ac_func();
16712
16713 int main() {
16714
16715 /* The GNU C library defines this for functions which it implements
16716     to always fail with ENOSYS.  Some functions are actually named
16717     something starting with __ and the normal name is an alias.  */
16718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16719 choke me
16720 #else
16721 $ac_func();
16722 #endif
16723
16724 ; return 0; }
16725 EOF
16726 if { (eval echo configure:16727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16727   rm -rf conftest*
16728   eval "ac_cv_func_$ac_func=yes"
16729 else
16730   echo "configure: failed program was:" >&5
16731   cat conftest.$ac_ext >&5
16732   rm -rf conftest*
16733   eval "ac_cv_func_$ac_func=no"
16734 fi
16735 rm -f conftest*
16736 fi
16737
16738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16739   echo "$ac_t""yes" 1>&6
16740     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16741   cat >> confdefs.h <<EOF
16742 #define $ac_tr_func 1
16743 EOF
16744  
16745 else
16746   echo "$ac_t""no" 1>&6
16747 fi
16748 done
16749
16750   else
16751     
16752   echo $ac_n "checking for _isinfl declaration""... $ac_c" 1>&6
16753 echo "configure:16754: checking for _isinfl declaration" >&5
16754   if test x${glibcpp_cv_func__isinfl_use+set} != xset; then
16755     if eval "test \"`echo '$''{'glibcpp_cv_func__isinfl_use'+set}'`\" = set"; then
16756   echo $ac_n "(cached) $ac_c" 1>&6
16757 else
16758   
16759       
16760       ac_ext=C
16761 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16762 ac_cpp='$CXXCPP $CPPFLAGS'
16763 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16764 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16765 cross_compiling=$ac_cv_prog_cxx_cross
16766
16767       cat > conftest.$ac_ext <<EOF
16768 #line 16769 "configure"
16769 #include "confdefs.h"
16770 #include <math.h>
16771                       #ifdef HAVE_IEEEFP_H
16772                       #include <ieeefp.h>
16773                       #endif
16774                      
16775 int main() {
16776  _isinfl(0);
16777 ; return 0; }
16778 EOF
16779 if { (eval echo configure:16780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16780   rm -rf conftest*
16781   glibcpp_cv_func__isinfl_use=yes
16782 else
16783   echo "configure: failed program was:" >&5
16784   cat conftest.$ac_ext >&5
16785   rm -rf conftest*
16786   glibcpp_cv_func__isinfl_use=no
16787 fi
16788 rm -f conftest*
16789       ac_ext=c
16790 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16791 ac_cpp='$CPP $CPPFLAGS'
16792 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16793 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16794 cross_compiling=$ac_cv_prog_cc_cross
16795
16796     
16797 fi
16798
16799   fi
16800   echo "$ac_t""$glibcpp_cv_func__isinfl_use" 1>&6
16801
16802     if test x$glibcpp_cv_func__isinfl_use = x"yes"; then
16803       for ac_func in _isinfl
16804 do
16805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16806 echo "configure:16807: checking for $ac_func" >&5
16807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16808   echo $ac_n "(cached) $ac_c" 1>&6
16809 else
16810   cat > conftest.$ac_ext <<EOF
16811 #line 16812 "configure"
16812 #include "confdefs.h"
16813 /* System header to define __stub macros and hopefully few prototypes,
16814     which can conflict with char $ac_func(); below.  */
16815 #include <assert.h>
16816 /* Override any gcc2 internal prototype to avoid an error.  */
16817 /* We use char because int might match the return type of a gcc2
16818     builtin and then its argument prototype would still apply.  */
16819 char $ac_func();
16820
16821 int main() {
16822
16823 /* The GNU C library defines this for functions which it implements
16824     to always fail with ENOSYS.  Some functions are actually named
16825     something starting with __ and the normal name is an alias.  */
16826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16827 choke me
16828 #else
16829 $ac_func();
16830 #endif
16831
16832 ; return 0; }
16833 EOF
16834 if { (eval echo configure:16835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16835   rm -rf conftest*
16836   eval "ac_cv_func_$ac_func=yes"
16837 else
16838   echo "configure: failed program was:" >&5
16839   cat conftest.$ac_ext >&5
16840   rm -rf conftest*
16841   eval "ac_cv_func_$ac_func=no"
16842 fi
16843 rm -f conftest*
16844 fi
16845
16846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16847   echo "$ac_t""yes" 1>&6
16848     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16849   cat >> confdefs.h <<EOF
16850 #define $ac_tr_func 1
16851 EOF
16852  
16853 else
16854   echo "$ac_t""no" 1>&6
16855 fi
16856 done
16857
16858     fi
16859   fi
16860
16861   
16862   
16863   echo $ac_n "checking for copysignl declaration""... $ac_c" 1>&6
16864 echo "configure:16865: checking for copysignl declaration" >&5
16865   if test x${glibcpp_cv_func_copysignl_use+set} != xset; then
16866     if eval "test \"`echo '$''{'glibcpp_cv_func_copysignl_use'+set}'`\" = set"; then
16867   echo $ac_n "(cached) $ac_c" 1>&6
16868 else
16869   
16870       
16871       ac_ext=C
16872 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16873 ac_cpp='$CXXCPP $CPPFLAGS'
16874 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16875 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16876 cross_compiling=$ac_cv_prog_cxx_cross
16877
16878       cat > conftest.$ac_ext <<EOF
16879 #line 16880 "configure"
16880 #include "confdefs.h"
16881 #include <math.h>
16882 int main() {
16883  copysignl(0, 0);
16884 ; return 0; }
16885 EOF
16886 if { (eval echo configure:16887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16887   rm -rf conftest*
16888   glibcpp_cv_func_copysignl_use=yes
16889 else
16890   echo "configure: failed program was:" >&5
16891   cat conftest.$ac_ext >&5
16892   rm -rf conftest*
16893   glibcpp_cv_func_copysignl_use=no
16894 fi
16895 rm -f conftest*
16896       ac_ext=c
16897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16898 ac_cpp='$CPP $CPPFLAGS'
16899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16901 cross_compiling=$ac_cv_prog_cc_cross
16902
16903     
16904 fi
16905
16906   fi
16907   echo "$ac_t""$glibcpp_cv_func_copysignl_use" 1>&6
16908
16909   if test x$glibcpp_cv_func_copysignl_use = x"yes"; then
16910     for ac_func in copysignl
16911 do
16912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16913 echo "configure:16914: checking for $ac_func" >&5
16914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16915   echo $ac_n "(cached) $ac_c" 1>&6
16916 else
16917   cat > conftest.$ac_ext <<EOF
16918 #line 16919 "configure"
16919 #include "confdefs.h"
16920 /* System header to define __stub macros and hopefully few prototypes,
16921     which can conflict with char $ac_func(); below.  */
16922 #include <assert.h>
16923 /* Override any gcc2 internal prototype to avoid an error.  */
16924 /* We use char because int might match the return type of a gcc2
16925     builtin and then its argument prototype would still apply.  */
16926 char $ac_func();
16927
16928 int main() {
16929
16930 /* The GNU C library defines this for functions which it implements
16931     to always fail with ENOSYS.  Some functions are actually named
16932     something starting with __ and the normal name is an alias.  */
16933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16934 choke me
16935 #else
16936 $ac_func();
16937 #endif
16938
16939 ; return 0; }
16940 EOF
16941 if { (eval echo configure:16942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16942   rm -rf conftest*
16943   eval "ac_cv_func_$ac_func=yes"
16944 else
16945   echo "configure: failed program was:" >&5
16946   cat conftest.$ac_ext >&5
16947   rm -rf conftest*
16948   eval "ac_cv_func_$ac_func=no"
16949 fi
16950 rm -f conftest*
16951 fi
16952
16953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16954   echo "$ac_t""yes" 1>&6
16955     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16956   cat >> confdefs.h <<EOF
16957 #define $ac_tr_func 1
16958 EOF
16959  
16960 else
16961   echo "$ac_t""no" 1>&6
16962 fi
16963 done
16964
16965   else
16966     
16967   echo $ac_n "checking for _copysignl declaration""... $ac_c" 1>&6
16968 echo "configure:16969: checking for _copysignl declaration" >&5
16969   if test x${glibcpp_cv_func__copysignl_use+set} != xset; then
16970     if eval "test \"`echo '$''{'glibcpp_cv_func__copysignl_use'+set}'`\" = set"; then
16971   echo $ac_n "(cached) $ac_c" 1>&6
16972 else
16973   
16974       
16975       ac_ext=C
16976 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16977 ac_cpp='$CXXCPP $CPPFLAGS'
16978 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16979 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16980 cross_compiling=$ac_cv_prog_cxx_cross
16981
16982       cat > conftest.$ac_ext <<EOF
16983 #line 16984 "configure"
16984 #include "confdefs.h"
16985 #include <math.h>
16986 int main() {
16987  _copysignl(0, 0);
16988 ; return 0; }
16989 EOF
16990 if { (eval echo configure:16991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16991   rm -rf conftest*
16992   glibcpp_cv_func__copysignl_use=yes
16993 else
16994   echo "configure: failed program was:" >&5
16995   cat conftest.$ac_ext >&5
16996   rm -rf conftest*
16997   glibcpp_cv_func__copysignl_use=no
16998 fi
16999 rm -f conftest*
17000       ac_ext=c
17001 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17002 ac_cpp='$CPP $CPPFLAGS'
17003 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17004 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17005 cross_compiling=$ac_cv_prog_cc_cross
17006
17007     
17008 fi
17009
17010   fi
17011   echo "$ac_t""$glibcpp_cv_func__copysignl_use" 1>&6
17012
17013     if test x$glibcpp_cv_func__copysignl_use = x"yes"; then
17014       for ac_func in _copysignl
17015 do
17016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17017 echo "configure:17018: checking for $ac_func" >&5
17018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17019   echo $ac_n "(cached) $ac_c" 1>&6
17020 else
17021   cat > conftest.$ac_ext <<EOF
17022 #line 17023 "configure"
17023 #include "confdefs.h"
17024 /* System header to define __stub macros and hopefully few prototypes,
17025     which can conflict with char $ac_func(); below.  */
17026 #include <assert.h>
17027 /* Override any gcc2 internal prototype to avoid an error.  */
17028 /* We use char because int might match the return type of a gcc2
17029     builtin and then its argument prototype would still apply.  */
17030 char $ac_func();
17031
17032 int main() {
17033
17034 /* The GNU C library defines this for functions which it implements
17035     to always fail with ENOSYS.  Some functions are actually named
17036     something starting with __ and the normal name is an alias.  */
17037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17038 choke me
17039 #else
17040 $ac_func();
17041 #endif
17042
17043 ; return 0; }
17044 EOF
17045 if { (eval echo configure:17046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17046   rm -rf conftest*
17047   eval "ac_cv_func_$ac_func=yes"
17048 else
17049   echo "configure: failed program was:" >&5
17050   cat conftest.$ac_ext >&5
17051   rm -rf conftest*
17052   eval "ac_cv_func_$ac_func=no"
17053 fi
17054 rm -f conftest*
17055 fi
17056
17057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17058   echo "$ac_t""yes" 1>&6
17059     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17060   cat >> confdefs.h <<EOF
17061 #define $ac_tr_func 1
17062 EOF
17063  
17064 else
17065   echo "$ac_t""no" 1>&6
17066 fi
17067 done
17068
17069     fi
17070   fi
17071
17072   
17073   
17074   echo $ac_n "checking for atan2l declaration""... $ac_c" 1>&6
17075 echo "configure:17076: checking for atan2l declaration" >&5
17076   if test x${glibcpp_cv_func_atan2l_use+set} != xset; then
17077     if eval "test \"`echo '$''{'glibcpp_cv_func_atan2l_use'+set}'`\" = set"; then
17078   echo $ac_n "(cached) $ac_c" 1>&6
17079 else
17080   
17081       
17082       ac_ext=C
17083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17084 ac_cpp='$CXXCPP $CPPFLAGS'
17085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17087 cross_compiling=$ac_cv_prog_cxx_cross
17088
17089       cat > conftest.$ac_ext <<EOF
17090 #line 17091 "configure"
17091 #include "confdefs.h"
17092 #include <math.h>
17093 int main() {
17094  atan2l(0, 0);
17095 ; return 0; }
17096 EOF
17097 if { (eval echo configure:17098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17098   rm -rf conftest*
17099   glibcpp_cv_func_atan2l_use=yes
17100 else
17101   echo "configure: failed program was:" >&5
17102   cat conftest.$ac_ext >&5
17103   rm -rf conftest*
17104   glibcpp_cv_func_atan2l_use=no
17105 fi
17106 rm -f conftest*
17107       ac_ext=c
17108 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17109 ac_cpp='$CPP $CPPFLAGS'
17110 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17111 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17112 cross_compiling=$ac_cv_prog_cc_cross
17113
17114     
17115 fi
17116
17117   fi
17118   echo "$ac_t""$glibcpp_cv_func_atan2l_use" 1>&6
17119
17120   if test x$glibcpp_cv_func_atan2l_use = x"yes"; then
17121     for ac_func in atan2l
17122 do
17123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17124 echo "configure:17125: checking for $ac_func" >&5
17125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17126   echo $ac_n "(cached) $ac_c" 1>&6
17127 else
17128   cat > conftest.$ac_ext <<EOF
17129 #line 17130 "configure"
17130 #include "confdefs.h"
17131 /* System header to define __stub macros and hopefully few prototypes,
17132     which can conflict with char $ac_func(); below.  */
17133 #include <assert.h>
17134 /* Override any gcc2 internal prototype to avoid an error.  */
17135 /* We use char because int might match the return type of a gcc2
17136     builtin and then its argument prototype would still apply.  */
17137 char $ac_func();
17138
17139 int main() {
17140
17141 /* The GNU C library defines this for functions which it implements
17142     to always fail with ENOSYS.  Some functions are actually named
17143     something starting with __ and the normal name is an alias.  */
17144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17145 choke me
17146 #else
17147 $ac_func();
17148 #endif
17149
17150 ; return 0; }
17151 EOF
17152 if { (eval echo configure:17153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17153   rm -rf conftest*
17154   eval "ac_cv_func_$ac_func=yes"
17155 else
17156   echo "configure: failed program was:" >&5
17157   cat conftest.$ac_ext >&5
17158   rm -rf conftest*
17159   eval "ac_cv_func_$ac_func=no"
17160 fi
17161 rm -f conftest*
17162 fi
17163
17164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17165   echo "$ac_t""yes" 1>&6
17166     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17167   cat >> confdefs.h <<EOF
17168 #define $ac_tr_func 1
17169 EOF
17170  
17171 else
17172   echo "$ac_t""no" 1>&6
17173 fi
17174 done
17175
17176   else
17177     
17178   echo $ac_n "checking for _atan2l declaration""... $ac_c" 1>&6
17179 echo "configure:17180: checking for _atan2l declaration" >&5
17180   if test x${glibcpp_cv_func__atan2l_use+set} != xset; then
17181     if eval "test \"`echo '$''{'glibcpp_cv_func__atan2l_use'+set}'`\" = set"; then
17182   echo $ac_n "(cached) $ac_c" 1>&6
17183 else
17184   
17185       
17186       ac_ext=C
17187 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17188 ac_cpp='$CXXCPP $CPPFLAGS'
17189 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17190 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17191 cross_compiling=$ac_cv_prog_cxx_cross
17192
17193       cat > conftest.$ac_ext <<EOF
17194 #line 17195 "configure"
17195 #include "confdefs.h"
17196 #include <math.h>
17197 int main() {
17198  _atan2l(0, 0);
17199 ; return 0; }
17200 EOF
17201 if { (eval echo configure:17202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17202   rm -rf conftest*
17203   glibcpp_cv_func__atan2l_use=yes
17204 else
17205   echo "configure: failed program was:" >&5
17206   cat conftest.$ac_ext >&5
17207   rm -rf conftest*
17208   glibcpp_cv_func__atan2l_use=no
17209 fi
17210 rm -f conftest*
17211       ac_ext=c
17212 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17213 ac_cpp='$CPP $CPPFLAGS'
17214 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17215 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17216 cross_compiling=$ac_cv_prog_cc_cross
17217
17218     
17219 fi
17220
17221   fi
17222   echo "$ac_t""$glibcpp_cv_func__atan2l_use" 1>&6
17223
17224     if test x$glibcpp_cv_func__atan2l_use = x"yes"; then
17225       for ac_func in _atan2l
17226 do
17227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17228 echo "configure:17229: checking for $ac_func" >&5
17229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17230   echo $ac_n "(cached) $ac_c" 1>&6
17231 else
17232   cat > conftest.$ac_ext <<EOF
17233 #line 17234 "configure"
17234 #include "confdefs.h"
17235 /* System header to define __stub macros and hopefully few prototypes,
17236     which can conflict with char $ac_func(); below.  */
17237 #include <assert.h>
17238 /* Override any gcc2 internal prototype to avoid an error.  */
17239 /* We use char because int might match the return type of a gcc2
17240     builtin and then its argument prototype would still apply.  */
17241 char $ac_func();
17242
17243 int main() {
17244
17245 /* The GNU C library defines this for functions which it implements
17246     to always fail with ENOSYS.  Some functions are actually named
17247     something starting with __ and the normal name is an alias.  */
17248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17249 choke me
17250 #else
17251 $ac_func();
17252 #endif
17253
17254 ; return 0; }
17255 EOF
17256 if { (eval echo configure:17257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17257   rm -rf conftest*
17258   eval "ac_cv_func_$ac_func=yes"
17259 else
17260   echo "configure: failed program was:" >&5
17261   cat conftest.$ac_ext >&5
17262   rm -rf conftest*
17263   eval "ac_cv_func_$ac_func=no"
17264 fi
17265 rm -f conftest*
17266 fi
17267
17268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17269   echo "$ac_t""yes" 1>&6
17270     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17271   cat >> confdefs.h <<EOF
17272 #define $ac_tr_func 1
17273 EOF
17274  
17275 else
17276   echo "$ac_t""no" 1>&6
17277 fi
17278 done
17279
17280     fi
17281   fi
17282
17283   
17284   
17285   echo $ac_n "checking for expl declaration""... $ac_c" 1>&6
17286 echo "configure:17287: checking for expl declaration" >&5
17287   if test x${glibcpp_cv_func_expl_use+set} != xset; then
17288     if eval "test \"`echo '$''{'glibcpp_cv_func_expl_use'+set}'`\" = set"; then
17289   echo $ac_n "(cached) $ac_c" 1>&6
17290 else
17291   
17292       
17293       ac_ext=C
17294 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17295 ac_cpp='$CXXCPP $CPPFLAGS'
17296 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17297 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17298 cross_compiling=$ac_cv_prog_cxx_cross
17299
17300       cat > conftest.$ac_ext <<EOF
17301 #line 17302 "configure"
17302 #include "confdefs.h"
17303 #include <math.h>
17304                       #ifdef HAVE_IEEEFP_H
17305                       #include <ieeefp.h>
17306                       #endif
17307                      
17308 int main() {
17309  expl(0);
17310 ; return 0; }
17311 EOF
17312 if { (eval echo configure:17313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17313   rm -rf conftest*
17314   glibcpp_cv_func_expl_use=yes
17315 else
17316   echo "configure: failed program was:" >&5
17317   cat conftest.$ac_ext >&5
17318   rm -rf conftest*
17319   glibcpp_cv_func_expl_use=no
17320 fi
17321 rm -f conftest*
17322       ac_ext=c
17323 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17324 ac_cpp='$CPP $CPPFLAGS'
17325 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17326 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17327 cross_compiling=$ac_cv_prog_cc_cross
17328
17329     
17330 fi
17331
17332   fi
17333   echo "$ac_t""$glibcpp_cv_func_expl_use" 1>&6
17334
17335   if test x$glibcpp_cv_func_expl_use = x"yes"; then
17336     for ac_func in expl
17337 do
17338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17339 echo "configure:17340: checking for $ac_func" >&5
17340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17341   echo $ac_n "(cached) $ac_c" 1>&6
17342 else
17343   cat > conftest.$ac_ext <<EOF
17344 #line 17345 "configure"
17345 #include "confdefs.h"
17346 /* System header to define __stub macros and hopefully few prototypes,
17347     which can conflict with char $ac_func(); below.  */
17348 #include <assert.h>
17349 /* Override any gcc2 internal prototype to avoid an error.  */
17350 /* We use char because int might match the return type of a gcc2
17351     builtin and then its argument prototype would still apply.  */
17352 char $ac_func();
17353
17354 int main() {
17355
17356 /* The GNU C library defines this for functions which it implements
17357     to always fail with ENOSYS.  Some functions are actually named
17358     something starting with __ and the normal name is an alias.  */
17359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17360 choke me
17361 #else
17362 $ac_func();
17363 #endif
17364
17365 ; return 0; }
17366 EOF
17367 if { (eval echo configure:17368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17368   rm -rf conftest*
17369   eval "ac_cv_func_$ac_func=yes"
17370 else
17371   echo "configure: failed program was:" >&5
17372   cat conftest.$ac_ext >&5
17373   rm -rf conftest*
17374   eval "ac_cv_func_$ac_func=no"
17375 fi
17376 rm -f conftest*
17377 fi
17378
17379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17380   echo "$ac_t""yes" 1>&6
17381     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17382   cat >> confdefs.h <<EOF
17383 #define $ac_tr_func 1
17384 EOF
17385  
17386 else
17387   echo "$ac_t""no" 1>&6
17388 fi
17389 done
17390
17391   else
17392     
17393   echo $ac_n "checking for _expl declaration""... $ac_c" 1>&6
17394 echo "configure:17395: checking for _expl declaration" >&5
17395   if test x${glibcpp_cv_func__expl_use+set} != xset; then
17396     if eval "test \"`echo '$''{'glibcpp_cv_func__expl_use'+set}'`\" = set"; then
17397   echo $ac_n "(cached) $ac_c" 1>&6
17398 else
17399   
17400       
17401       ac_ext=C
17402 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17403 ac_cpp='$CXXCPP $CPPFLAGS'
17404 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17405 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17406 cross_compiling=$ac_cv_prog_cxx_cross
17407
17408       cat > conftest.$ac_ext <<EOF
17409 #line 17410 "configure"
17410 #include "confdefs.h"
17411 #include <math.h>
17412                       #ifdef HAVE_IEEEFP_H
17413                       #include <ieeefp.h>
17414                       #endif
17415                      
17416 int main() {
17417  _expl(0);
17418 ; return 0; }
17419 EOF
17420 if { (eval echo configure:17421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17421   rm -rf conftest*
17422   glibcpp_cv_func__expl_use=yes
17423 else
17424   echo "configure: failed program was:" >&5
17425   cat conftest.$ac_ext >&5
17426   rm -rf conftest*
17427   glibcpp_cv_func__expl_use=no
17428 fi
17429 rm -f conftest*
17430       ac_ext=c
17431 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17432 ac_cpp='$CPP $CPPFLAGS'
17433 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17434 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17435 cross_compiling=$ac_cv_prog_cc_cross
17436
17437     
17438 fi
17439
17440   fi
17441   echo "$ac_t""$glibcpp_cv_func__expl_use" 1>&6
17442
17443     if test x$glibcpp_cv_func__expl_use = x"yes"; then
17444       for ac_func in _expl
17445 do
17446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17447 echo "configure:17448: checking for $ac_func" >&5
17448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17449   echo $ac_n "(cached) $ac_c" 1>&6
17450 else
17451   cat > conftest.$ac_ext <<EOF
17452 #line 17453 "configure"
17453 #include "confdefs.h"
17454 /* System header to define __stub macros and hopefully few prototypes,
17455     which can conflict with char $ac_func(); below.  */
17456 #include <assert.h>
17457 /* Override any gcc2 internal prototype to avoid an error.  */
17458 /* We use char because int might match the return type of a gcc2
17459     builtin and then its argument prototype would still apply.  */
17460 char $ac_func();
17461
17462 int main() {
17463
17464 /* The GNU C library defines this for functions which it implements
17465     to always fail with ENOSYS.  Some functions are actually named
17466     something starting with __ and the normal name is an alias.  */
17467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17468 choke me
17469 #else
17470 $ac_func();
17471 #endif
17472
17473 ; return 0; }
17474 EOF
17475 if { (eval echo configure:17476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17476   rm -rf conftest*
17477   eval "ac_cv_func_$ac_func=yes"
17478 else
17479   echo "configure: failed program was:" >&5
17480   cat conftest.$ac_ext >&5
17481   rm -rf conftest*
17482   eval "ac_cv_func_$ac_func=no"
17483 fi
17484 rm -f conftest*
17485 fi
17486
17487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17488   echo "$ac_t""yes" 1>&6
17489     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17490   cat >> confdefs.h <<EOF
17491 #define $ac_tr_func 1
17492 EOF
17493  
17494 else
17495   echo "$ac_t""no" 1>&6
17496 fi
17497 done
17498
17499     fi
17500   fi
17501
17502   
17503   
17504   echo $ac_n "checking for fabsl declaration""... $ac_c" 1>&6
17505 echo "configure:17506: checking for fabsl declaration" >&5
17506   if test x${glibcpp_cv_func_fabsl_use+set} != xset; then
17507     if eval "test \"`echo '$''{'glibcpp_cv_func_fabsl_use'+set}'`\" = set"; then
17508   echo $ac_n "(cached) $ac_c" 1>&6
17509 else
17510   
17511       
17512       ac_ext=C
17513 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17514 ac_cpp='$CXXCPP $CPPFLAGS'
17515 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17516 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17517 cross_compiling=$ac_cv_prog_cxx_cross
17518
17519       cat > conftest.$ac_ext <<EOF
17520 #line 17521 "configure"
17521 #include "confdefs.h"
17522 #include <math.h>
17523                       #ifdef HAVE_IEEEFP_H
17524                       #include <ieeefp.h>
17525                       #endif
17526                      
17527 int main() {
17528  fabsl(0);
17529 ; return 0; }
17530 EOF
17531 if { (eval echo configure:17532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17532   rm -rf conftest*
17533   glibcpp_cv_func_fabsl_use=yes
17534 else
17535   echo "configure: failed program was:" >&5
17536   cat conftest.$ac_ext >&5
17537   rm -rf conftest*
17538   glibcpp_cv_func_fabsl_use=no
17539 fi
17540 rm -f conftest*
17541       ac_ext=c
17542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17543 ac_cpp='$CPP $CPPFLAGS'
17544 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17545 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17546 cross_compiling=$ac_cv_prog_cc_cross
17547
17548     
17549 fi
17550
17551   fi
17552   echo "$ac_t""$glibcpp_cv_func_fabsl_use" 1>&6
17553
17554   if test x$glibcpp_cv_func_fabsl_use = x"yes"; then
17555     for ac_func in fabsl
17556 do
17557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17558 echo "configure:17559: checking for $ac_func" >&5
17559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17560   echo $ac_n "(cached) $ac_c" 1>&6
17561 else
17562   cat > conftest.$ac_ext <<EOF
17563 #line 17564 "configure"
17564 #include "confdefs.h"
17565 /* System header to define __stub macros and hopefully few prototypes,
17566     which can conflict with char $ac_func(); below.  */
17567 #include <assert.h>
17568 /* Override any gcc2 internal prototype to avoid an error.  */
17569 /* We use char because int might match the return type of a gcc2
17570     builtin and then its argument prototype would still apply.  */
17571 char $ac_func();
17572
17573 int main() {
17574
17575 /* The GNU C library defines this for functions which it implements
17576     to always fail with ENOSYS.  Some functions are actually named
17577     something starting with __ and the normal name is an alias.  */
17578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17579 choke me
17580 #else
17581 $ac_func();
17582 #endif
17583
17584 ; return 0; }
17585 EOF
17586 if { (eval echo configure:17587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17587   rm -rf conftest*
17588   eval "ac_cv_func_$ac_func=yes"
17589 else
17590   echo "configure: failed program was:" >&5
17591   cat conftest.$ac_ext >&5
17592   rm -rf conftest*
17593   eval "ac_cv_func_$ac_func=no"
17594 fi
17595 rm -f conftest*
17596 fi
17597
17598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17599   echo "$ac_t""yes" 1>&6
17600     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17601   cat >> confdefs.h <<EOF
17602 #define $ac_tr_func 1
17603 EOF
17604  
17605 else
17606   echo "$ac_t""no" 1>&6
17607 fi
17608 done
17609
17610   else
17611     
17612   echo $ac_n "checking for _fabsl declaration""... $ac_c" 1>&6
17613 echo "configure:17614: checking for _fabsl declaration" >&5
17614   if test x${glibcpp_cv_func__fabsl_use+set} != xset; then
17615     if eval "test \"`echo '$''{'glibcpp_cv_func__fabsl_use'+set}'`\" = set"; then
17616   echo $ac_n "(cached) $ac_c" 1>&6
17617 else
17618   
17619       
17620       ac_ext=C
17621 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17622 ac_cpp='$CXXCPP $CPPFLAGS'
17623 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17624 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17625 cross_compiling=$ac_cv_prog_cxx_cross
17626
17627       cat > conftest.$ac_ext <<EOF
17628 #line 17629 "configure"
17629 #include "confdefs.h"
17630 #include <math.h>
17631                       #ifdef HAVE_IEEEFP_H
17632                       #include <ieeefp.h>
17633                       #endif
17634                      
17635 int main() {
17636  _fabsl(0);
17637 ; return 0; }
17638 EOF
17639 if { (eval echo configure:17640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17640   rm -rf conftest*
17641   glibcpp_cv_func__fabsl_use=yes
17642 else
17643   echo "configure: failed program was:" >&5
17644   cat conftest.$ac_ext >&5
17645   rm -rf conftest*
17646   glibcpp_cv_func__fabsl_use=no
17647 fi
17648 rm -f conftest*
17649       ac_ext=c
17650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17651 ac_cpp='$CPP $CPPFLAGS'
17652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17654 cross_compiling=$ac_cv_prog_cc_cross
17655
17656     
17657 fi
17658
17659   fi
17660   echo "$ac_t""$glibcpp_cv_func__fabsl_use" 1>&6
17661
17662     if test x$glibcpp_cv_func__fabsl_use = x"yes"; then
17663       for ac_func in _fabsl
17664 do
17665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17666 echo "configure:17667: checking for $ac_func" >&5
17667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17668   echo $ac_n "(cached) $ac_c" 1>&6
17669 else
17670   cat > conftest.$ac_ext <<EOF
17671 #line 17672 "configure"
17672 #include "confdefs.h"
17673 /* System header to define __stub macros and hopefully few prototypes,
17674     which can conflict with char $ac_func(); below.  */
17675 #include <assert.h>
17676 /* Override any gcc2 internal prototype to avoid an error.  */
17677 /* We use char because int might match the return type of a gcc2
17678     builtin and then its argument prototype would still apply.  */
17679 char $ac_func();
17680
17681 int main() {
17682
17683 /* The GNU C library defines this for functions which it implements
17684     to always fail with ENOSYS.  Some functions are actually named
17685     something starting with __ and the normal name is an alias.  */
17686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17687 choke me
17688 #else
17689 $ac_func();
17690 #endif
17691
17692 ; return 0; }
17693 EOF
17694 if { (eval echo configure:17695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17695   rm -rf conftest*
17696   eval "ac_cv_func_$ac_func=yes"
17697 else
17698   echo "configure: failed program was:" >&5
17699   cat conftest.$ac_ext >&5
17700   rm -rf conftest*
17701   eval "ac_cv_func_$ac_func=no"
17702 fi
17703 rm -f conftest*
17704 fi
17705
17706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17707   echo "$ac_t""yes" 1>&6
17708     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17709   cat >> confdefs.h <<EOF
17710 #define $ac_tr_func 1
17711 EOF
17712  
17713 else
17714   echo "$ac_t""no" 1>&6
17715 fi
17716 done
17717
17718     fi
17719   fi
17720
17721   
17722   
17723   echo $ac_n "checking for fmodl declaration""... $ac_c" 1>&6
17724 echo "configure:17725: checking for fmodl declaration" >&5
17725   if test x${glibcpp_cv_func_fmodl_use+set} != xset; then
17726     if eval "test \"`echo '$''{'glibcpp_cv_func_fmodl_use'+set}'`\" = set"; then
17727   echo $ac_n "(cached) $ac_c" 1>&6
17728 else
17729   
17730       
17731       ac_ext=C
17732 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17733 ac_cpp='$CXXCPP $CPPFLAGS'
17734 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17735 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17736 cross_compiling=$ac_cv_prog_cxx_cross
17737
17738       cat > conftest.$ac_ext <<EOF
17739 #line 17740 "configure"
17740 #include "confdefs.h"
17741 #include <math.h>
17742 int main() {
17743  fmodl(0, 0);
17744 ; return 0; }
17745 EOF
17746 if { (eval echo configure:17747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17747   rm -rf conftest*
17748   glibcpp_cv_func_fmodl_use=yes
17749 else
17750   echo "configure: failed program was:" >&5
17751   cat conftest.$ac_ext >&5
17752   rm -rf conftest*
17753   glibcpp_cv_func_fmodl_use=no
17754 fi
17755 rm -f conftest*
17756       ac_ext=c
17757 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17758 ac_cpp='$CPP $CPPFLAGS'
17759 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17760 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17761 cross_compiling=$ac_cv_prog_cc_cross
17762
17763     
17764 fi
17765
17766   fi
17767   echo "$ac_t""$glibcpp_cv_func_fmodl_use" 1>&6
17768
17769   if test x$glibcpp_cv_func_fmodl_use = x"yes"; then
17770     for ac_func in fmodl
17771 do
17772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17773 echo "configure:17774: checking for $ac_func" >&5
17774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17775   echo $ac_n "(cached) $ac_c" 1>&6
17776 else
17777   cat > conftest.$ac_ext <<EOF
17778 #line 17779 "configure"
17779 #include "confdefs.h"
17780 /* System header to define __stub macros and hopefully few prototypes,
17781     which can conflict with char $ac_func(); below.  */
17782 #include <assert.h>
17783 /* Override any gcc2 internal prototype to avoid an error.  */
17784 /* We use char because int might match the return type of a gcc2
17785     builtin and then its argument prototype would still apply.  */
17786 char $ac_func();
17787
17788 int main() {
17789
17790 /* The GNU C library defines this for functions which it implements
17791     to always fail with ENOSYS.  Some functions are actually named
17792     something starting with __ and the normal name is an alias.  */
17793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17794 choke me
17795 #else
17796 $ac_func();
17797 #endif
17798
17799 ; return 0; }
17800 EOF
17801 if { (eval echo configure:17802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17802   rm -rf conftest*
17803   eval "ac_cv_func_$ac_func=yes"
17804 else
17805   echo "configure: failed program was:" >&5
17806   cat conftest.$ac_ext >&5
17807   rm -rf conftest*
17808   eval "ac_cv_func_$ac_func=no"
17809 fi
17810 rm -f conftest*
17811 fi
17812
17813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17814   echo "$ac_t""yes" 1>&6
17815     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17816   cat >> confdefs.h <<EOF
17817 #define $ac_tr_func 1
17818 EOF
17819  
17820 else
17821   echo "$ac_t""no" 1>&6
17822 fi
17823 done
17824
17825   else
17826     
17827   echo $ac_n "checking for _fmodl declaration""... $ac_c" 1>&6
17828 echo "configure:17829: checking for _fmodl declaration" >&5
17829   if test x${glibcpp_cv_func__fmodl_use+set} != xset; then
17830     if eval "test \"`echo '$''{'glibcpp_cv_func__fmodl_use'+set}'`\" = set"; then
17831   echo $ac_n "(cached) $ac_c" 1>&6
17832 else
17833   
17834       
17835       ac_ext=C
17836 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17837 ac_cpp='$CXXCPP $CPPFLAGS'
17838 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17839 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17840 cross_compiling=$ac_cv_prog_cxx_cross
17841
17842       cat > conftest.$ac_ext <<EOF
17843 #line 17844 "configure"
17844 #include "confdefs.h"
17845 #include <math.h>
17846 int main() {
17847  _fmodl(0, 0);
17848 ; return 0; }
17849 EOF
17850 if { (eval echo configure:17851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17851   rm -rf conftest*
17852   glibcpp_cv_func__fmodl_use=yes
17853 else
17854   echo "configure: failed program was:" >&5
17855   cat conftest.$ac_ext >&5
17856   rm -rf conftest*
17857   glibcpp_cv_func__fmodl_use=no
17858 fi
17859 rm -f conftest*
17860       ac_ext=c
17861 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17862 ac_cpp='$CPP $CPPFLAGS'
17863 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17864 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17865 cross_compiling=$ac_cv_prog_cc_cross
17866
17867     
17868 fi
17869
17870   fi
17871   echo "$ac_t""$glibcpp_cv_func__fmodl_use" 1>&6
17872
17873     if test x$glibcpp_cv_func__fmodl_use = x"yes"; then
17874       for ac_func in _fmodl
17875 do
17876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17877 echo "configure:17878: checking for $ac_func" >&5
17878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17879   echo $ac_n "(cached) $ac_c" 1>&6
17880 else
17881   cat > conftest.$ac_ext <<EOF
17882 #line 17883 "configure"
17883 #include "confdefs.h"
17884 /* System header to define __stub macros and hopefully few prototypes,
17885     which can conflict with char $ac_func(); below.  */
17886 #include <assert.h>
17887 /* Override any gcc2 internal prototype to avoid an error.  */
17888 /* We use char because int might match the return type of a gcc2
17889     builtin and then its argument prototype would still apply.  */
17890 char $ac_func();
17891
17892 int main() {
17893
17894 /* The GNU C library defines this for functions which it implements
17895     to always fail with ENOSYS.  Some functions are actually named
17896     something starting with __ and the normal name is an alias.  */
17897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17898 choke me
17899 #else
17900 $ac_func();
17901 #endif
17902
17903 ; return 0; }
17904 EOF
17905 if { (eval echo configure:17906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17906   rm -rf conftest*
17907   eval "ac_cv_func_$ac_func=yes"
17908 else
17909   echo "configure: failed program was:" >&5
17910   cat conftest.$ac_ext >&5
17911   rm -rf conftest*
17912   eval "ac_cv_func_$ac_func=no"
17913 fi
17914 rm -f conftest*
17915 fi
17916
17917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17918   echo "$ac_t""yes" 1>&6
17919     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17920   cat >> confdefs.h <<EOF
17921 #define $ac_tr_func 1
17922 EOF
17923  
17924 else
17925   echo "$ac_t""no" 1>&6
17926 fi
17927 done
17928
17929     fi
17930   fi
17931
17932   
17933   
17934   echo $ac_n "checking for frexpl declaration""... $ac_c" 1>&6
17935 echo "configure:17936: checking for frexpl declaration" >&5
17936   if test x${glibcpp_cv_func_frexpl_use+set} != xset; then
17937     if eval "test \"`echo '$''{'glibcpp_cv_func_frexpl_use'+set}'`\" = set"; then
17938   echo $ac_n "(cached) $ac_c" 1>&6
17939 else
17940   
17941       
17942       ac_ext=C
17943 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17944 ac_cpp='$CXXCPP $CPPFLAGS'
17945 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17946 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17947 cross_compiling=$ac_cv_prog_cxx_cross
17948
17949       cat > conftest.$ac_ext <<EOF
17950 #line 17951 "configure"
17951 #include "confdefs.h"
17952 #include <math.h>
17953 int main() {
17954  frexpl(0, 0);
17955 ; return 0; }
17956 EOF
17957 if { (eval echo configure:17958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17958   rm -rf conftest*
17959   glibcpp_cv_func_frexpl_use=yes
17960 else
17961   echo "configure: failed program was:" >&5
17962   cat conftest.$ac_ext >&5
17963   rm -rf conftest*
17964   glibcpp_cv_func_frexpl_use=no
17965 fi
17966 rm -f conftest*
17967       ac_ext=c
17968 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17969 ac_cpp='$CPP $CPPFLAGS'
17970 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17971 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17972 cross_compiling=$ac_cv_prog_cc_cross
17973
17974     
17975 fi
17976
17977   fi
17978   echo "$ac_t""$glibcpp_cv_func_frexpl_use" 1>&6
17979
17980   if test x$glibcpp_cv_func_frexpl_use = x"yes"; then
17981     for ac_func in frexpl
17982 do
17983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17984 echo "configure:17985: checking for $ac_func" >&5
17985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17986   echo $ac_n "(cached) $ac_c" 1>&6
17987 else
17988   cat > conftest.$ac_ext <<EOF
17989 #line 17990 "configure"
17990 #include "confdefs.h"
17991 /* System header to define __stub macros and hopefully few prototypes,
17992     which can conflict with char $ac_func(); below.  */
17993 #include <assert.h>
17994 /* Override any gcc2 internal prototype to avoid an error.  */
17995 /* We use char because int might match the return type of a gcc2
17996     builtin and then its argument prototype would still apply.  */
17997 char $ac_func();
17998
17999 int main() {
18000
18001 /* The GNU C library defines this for functions which it implements
18002     to always fail with ENOSYS.  Some functions are actually named
18003     something starting with __ and the normal name is an alias.  */
18004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18005 choke me
18006 #else
18007 $ac_func();
18008 #endif
18009
18010 ; return 0; }
18011 EOF
18012 if { (eval echo configure:18013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18013   rm -rf conftest*
18014   eval "ac_cv_func_$ac_func=yes"
18015 else
18016   echo "configure: failed program was:" >&5
18017   cat conftest.$ac_ext >&5
18018   rm -rf conftest*
18019   eval "ac_cv_func_$ac_func=no"
18020 fi
18021 rm -f conftest*
18022 fi
18023
18024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18025   echo "$ac_t""yes" 1>&6
18026     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18027   cat >> confdefs.h <<EOF
18028 #define $ac_tr_func 1
18029 EOF
18030  
18031 else
18032   echo "$ac_t""no" 1>&6
18033 fi
18034 done
18035
18036   else
18037     
18038   echo $ac_n "checking for _frexpl declaration""... $ac_c" 1>&6
18039 echo "configure:18040: checking for _frexpl declaration" >&5
18040   if test x${glibcpp_cv_func__frexpl_use+set} != xset; then
18041     if eval "test \"`echo '$''{'glibcpp_cv_func__frexpl_use'+set}'`\" = set"; then
18042   echo $ac_n "(cached) $ac_c" 1>&6
18043 else
18044   
18045       
18046       ac_ext=C
18047 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18048 ac_cpp='$CXXCPP $CPPFLAGS'
18049 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18050 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18051 cross_compiling=$ac_cv_prog_cxx_cross
18052
18053       cat > conftest.$ac_ext <<EOF
18054 #line 18055 "configure"
18055 #include "confdefs.h"
18056 #include <math.h>
18057 int main() {
18058  _frexpl(0, 0);
18059 ; return 0; }
18060 EOF
18061 if { (eval echo configure:18062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18062   rm -rf conftest*
18063   glibcpp_cv_func__frexpl_use=yes
18064 else
18065   echo "configure: failed program was:" >&5
18066   cat conftest.$ac_ext >&5
18067   rm -rf conftest*
18068   glibcpp_cv_func__frexpl_use=no
18069 fi
18070 rm -f conftest*
18071       ac_ext=c
18072 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18073 ac_cpp='$CPP $CPPFLAGS'
18074 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18075 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18076 cross_compiling=$ac_cv_prog_cc_cross
18077
18078     
18079 fi
18080
18081   fi
18082   echo "$ac_t""$glibcpp_cv_func__frexpl_use" 1>&6
18083
18084     if test x$glibcpp_cv_func__frexpl_use = x"yes"; then
18085       for ac_func in _frexpl
18086 do
18087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18088 echo "configure:18089: checking for $ac_func" >&5
18089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18090   echo $ac_n "(cached) $ac_c" 1>&6
18091 else
18092   cat > conftest.$ac_ext <<EOF
18093 #line 18094 "configure"
18094 #include "confdefs.h"
18095 /* System header to define __stub macros and hopefully few prototypes,
18096     which can conflict with char $ac_func(); below.  */
18097 #include <assert.h>
18098 /* Override any gcc2 internal prototype to avoid an error.  */
18099 /* We use char because int might match the return type of a gcc2
18100     builtin and then its argument prototype would still apply.  */
18101 char $ac_func();
18102
18103 int main() {
18104
18105 /* The GNU C library defines this for functions which it implements
18106     to always fail with ENOSYS.  Some functions are actually named
18107     something starting with __ and the normal name is an alias.  */
18108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18109 choke me
18110 #else
18111 $ac_func();
18112 #endif
18113
18114 ; return 0; }
18115 EOF
18116 if { (eval echo configure:18117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18117   rm -rf conftest*
18118   eval "ac_cv_func_$ac_func=yes"
18119 else
18120   echo "configure: failed program was:" >&5
18121   cat conftest.$ac_ext >&5
18122   rm -rf conftest*
18123   eval "ac_cv_func_$ac_func=no"
18124 fi
18125 rm -f conftest*
18126 fi
18127
18128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18129   echo "$ac_t""yes" 1>&6
18130     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18131   cat >> confdefs.h <<EOF
18132 #define $ac_tr_func 1
18133 EOF
18134  
18135 else
18136   echo "$ac_t""no" 1>&6
18137 fi
18138 done
18139
18140     fi
18141   fi
18142
18143   
18144   
18145   echo $ac_n "checking for hypotl declaration""... $ac_c" 1>&6
18146 echo "configure:18147: checking for hypotl declaration" >&5
18147   if test x${glibcpp_cv_func_hypotl_use+set} != xset; then
18148     if eval "test \"`echo '$''{'glibcpp_cv_func_hypotl_use'+set}'`\" = set"; then
18149   echo $ac_n "(cached) $ac_c" 1>&6
18150 else
18151   
18152       
18153       ac_ext=C
18154 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18155 ac_cpp='$CXXCPP $CPPFLAGS'
18156 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18157 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18158 cross_compiling=$ac_cv_prog_cxx_cross
18159
18160       cat > conftest.$ac_ext <<EOF
18161 #line 18162 "configure"
18162 #include "confdefs.h"
18163 #include <math.h>
18164 int main() {
18165  hypotl(0, 0);
18166 ; return 0; }
18167 EOF
18168 if { (eval echo configure:18169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18169   rm -rf conftest*
18170   glibcpp_cv_func_hypotl_use=yes
18171 else
18172   echo "configure: failed program was:" >&5
18173   cat conftest.$ac_ext >&5
18174   rm -rf conftest*
18175   glibcpp_cv_func_hypotl_use=no
18176 fi
18177 rm -f conftest*
18178       ac_ext=c
18179 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18180 ac_cpp='$CPP $CPPFLAGS'
18181 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18182 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18183 cross_compiling=$ac_cv_prog_cc_cross
18184
18185     
18186 fi
18187
18188   fi
18189   echo "$ac_t""$glibcpp_cv_func_hypotl_use" 1>&6
18190
18191   if test x$glibcpp_cv_func_hypotl_use = x"yes"; then
18192     for ac_func in hypotl
18193 do
18194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18195 echo "configure:18196: checking for $ac_func" >&5
18196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18197   echo $ac_n "(cached) $ac_c" 1>&6
18198 else
18199   cat > conftest.$ac_ext <<EOF
18200 #line 18201 "configure"
18201 #include "confdefs.h"
18202 /* System header to define __stub macros and hopefully few prototypes,
18203     which can conflict with char $ac_func(); below.  */
18204 #include <assert.h>
18205 /* Override any gcc2 internal prototype to avoid an error.  */
18206 /* We use char because int might match the return type of a gcc2
18207     builtin and then its argument prototype would still apply.  */
18208 char $ac_func();
18209
18210 int main() {
18211
18212 /* The GNU C library defines this for functions which it implements
18213     to always fail with ENOSYS.  Some functions are actually named
18214     something starting with __ and the normal name is an alias.  */
18215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18216 choke me
18217 #else
18218 $ac_func();
18219 #endif
18220
18221 ; return 0; }
18222 EOF
18223 if { (eval echo configure:18224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18224   rm -rf conftest*
18225   eval "ac_cv_func_$ac_func=yes"
18226 else
18227   echo "configure: failed program was:" >&5
18228   cat conftest.$ac_ext >&5
18229   rm -rf conftest*
18230   eval "ac_cv_func_$ac_func=no"
18231 fi
18232 rm -f conftest*
18233 fi
18234
18235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18236   echo "$ac_t""yes" 1>&6
18237     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18238   cat >> confdefs.h <<EOF
18239 #define $ac_tr_func 1
18240 EOF
18241  
18242 else
18243   echo "$ac_t""no" 1>&6
18244 fi
18245 done
18246
18247   else
18248     
18249   echo $ac_n "checking for _hypotl declaration""... $ac_c" 1>&6
18250 echo "configure:18251: checking for _hypotl declaration" >&5
18251   if test x${glibcpp_cv_func__hypotl_use+set} != xset; then
18252     if eval "test \"`echo '$''{'glibcpp_cv_func__hypotl_use'+set}'`\" = set"; then
18253   echo $ac_n "(cached) $ac_c" 1>&6
18254 else
18255   
18256       
18257       ac_ext=C
18258 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18259 ac_cpp='$CXXCPP $CPPFLAGS'
18260 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18261 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18262 cross_compiling=$ac_cv_prog_cxx_cross
18263
18264       cat > conftest.$ac_ext <<EOF
18265 #line 18266 "configure"
18266 #include "confdefs.h"
18267 #include <math.h>
18268 int main() {
18269  _hypotl(0, 0);
18270 ; return 0; }
18271 EOF
18272 if { (eval echo configure:18273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18273   rm -rf conftest*
18274   glibcpp_cv_func__hypotl_use=yes
18275 else
18276   echo "configure: failed program was:" >&5
18277   cat conftest.$ac_ext >&5
18278   rm -rf conftest*
18279   glibcpp_cv_func__hypotl_use=no
18280 fi
18281 rm -f conftest*
18282       ac_ext=c
18283 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18284 ac_cpp='$CPP $CPPFLAGS'
18285 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18286 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18287 cross_compiling=$ac_cv_prog_cc_cross
18288
18289     
18290 fi
18291
18292   fi
18293   echo "$ac_t""$glibcpp_cv_func__hypotl_use" 1>&6
18294
18295     if test x$glibcpp_cv_func__hypotl_use = x"yes"; then
18296       for ac_func in _hypotl
18297 do
18298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18299 echo "configure:18300: checking for $ac_func" >&5
18300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18301   echo $ac_n "(cached) $ac_c" 1>&6
18302 else
18303   cat > conftest.$ac_ext <<EOF
18304 #line 18305 "configure"
18305 #include "confdefs.h"
18306 /* System header to define __stub macros and hopefully few prototypes,
18307     which can conflict with char $ac_func(); below.  */
18308 #include <assert.h>
18309 /* Override any gcc2 internal prototype to avoid an error.  */
18310 /* We use char because int might match the return type of a gcc2
18311     builtin and then its argument prototype would still apply.  */
18312 char $ac_func();
18313
18314 int main() {
18315
18316 /* The GNU C library defines this for functions which it implements
18317     to always fail with ENOSYS.  Some functions are actually named
18318     something starting with __ and the normal name is an alias.  */
18319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18320 choke me
18321 #else
18322 $ac_func();
18323 #endif
18324
18325 ; return 0; }
18326 EOF
18327 if { (eval echo configure:18328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18328   rm -rf conftest*
18329   eval "ac_cv_func_$ac_func=yes"
18330 else
18331   echo "configure: failed program was:" >&5
18332   cat conftest.$ac_ext >&5
18333   rm -rf conftest*
18334   eval "ac_cv_func_$ac_func=no"
18335 fi
18336 rm -f conftest*
18337 fi
18338
18339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18340   echo "$ac_t""yes" 1>&6
18341     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18342   cat >> confdefs.h <<EOF
18343 #define $ac_tr_func 1
18344 EOF
18345  
18346 else
18347   echo "$ac_t""no" 1>&6
18348 fi
18349 done
18350
18351     fi
18352   fi
18353
18354   
18355   
18356   echo $ac_n "checking for ldexpl declaration""... $ac_c" 1>&6
18357 echo "configure:18358: checking for ldexpl declaration" >&5
18358   if test x${glibcpp_cv_func_ldexpl_use+set} != xset; then
18359     if eval "test \"`echo '$''{'glibcpp_cv_func_ldexpl_use'+set}'`\" = set"; then
18360   echo $ac_n "(cached) $ac_c" 1>&6
18361 else
18362   
18363       
18364       ac_ext=C
18365 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18366 ac_cpp='$CXXCPP $CPPFLAGS'
18367 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18368 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18369 cross_compiling=$ac_cv_prog_cxx_cross
18370
18371       cat > conftest.$ac_ext <<EOF
18372 #line 18373 "configure"
18373 #include "confdefs.h"
18374 #include <math.h>
18375 int main() {
18376  ldexpl(0, 0);
18377 ; return 0; }
18378 EOF
18379 if { (eval echo configure:18380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18380   rm -rf conftest*
18381   glibcpp_cv_func_ldexpl_use=yes
18382 else
18383   echo "configure: failed program was:" >&5
18384   cat conftest.$ac_ext >&5
18385   rm -rf conftest*
18386   glibcpp_cv_func_ldexpl_use=no
18387 fi
18388 rm -f conftest*
18389       ac_ext=c
18390 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18391 ac_cpp='$CPP $CPPFLAGS'
18392 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18393 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18394 cross_compiling=$ac_cv_prog_cc_cross
18395
18396     
18397 fi
18398
18399   fi
18400   echo "$ac_t""$glibcpp_cv_func_ldexpl_use" 1>&6
18401
18402   if test x$glibcpp_cv_func_ldexpl_use = x"yes"; then
18403     for ac_func in ldexpl
18404 do
18405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18406 echo "configure:18407: checking for $ac_func" >&5
18407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18408   echo $ac_n "(cached) $ac_c" 1>&6
18409 else
18410   cat > conftest.$ac_ext <<EOF
18411 #line 18412 "configure"
18412 #include "confdefs.h"
18413 /* System header to define __stub macros and hopefully few prototypes,
18414     which can conflict with char $ac_func(); below.  */
18415 #include <assert.h>
18416 /* Override any gcc2 internal prototype to avoid an error.  */
18417 /* We use char because int might match the return type of a gcc2
18418     builtin and then its argument prototype would still apply.  */
18419 char $ac_func();
18420
18421 int main() {
18422
18423 /* The GNU C library defines this for functions which it implements
18424     to always fail with ENOSYS.  Some functions are actually named
18425     something starting with __ and the normal name is an alias.  */
18426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18427 choke me
18428 #else
18429 $ac_func();
18430 #endif
18431
18432 ; return 0; }
18433 EOF
18434 if { (eval echo configure:18435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18435   rm -rf conftest*
18436   eval "ac_cv_func_$ac_func=yes"
18437 else
18438   echo "configure: failed program was:" >&5
18439   cat conftest.$ac_ext >&5
18440   rm -rf conftest*
18441   eval "ac_cv_func_$ac_func=no"
18442 fi
18443 rm -f conftest*
18444 fi
18445
18446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18447   echo "$ac_t""yes" 1>&6
18448     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18449   cat >> confdefs.h <<EOF
18450 #define $ac_tr_func 1
18451 EOF
18452  
18453 else
18454   echo "$ac_t""no" 1>&6
18455 fi
18456 done
18457
18458   else
18459     
18460   echo $ac_n "checking for _ldexpl declaration""... $ac_c" 1>&6
18461 echo "configure:18462: checking for _ldexpl declaration" >&5
18462   if test x${glibcpp_cv_func__ldexpl_use+set} != xset; then
18463     if eval "test \"`echo '$''{'glibcpp_cv_func__ldexpl_use'+set}'`\" = set"; then
18464   echo $ac_n "(cached) $ac_c" 1>&6
18465 else
18466   
18467       
18468       ac_ext=C
18469 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18470 ac_cpp='$CXXCPP $CPPFLAGS'
18471 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18472 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18473 cross_compiling=$ac_cv_prog_cxx_cross
18474
18475       cat > conftest.$ac_ext <<EOF
18476 #line 18477 "configure"
18477 #include "confdefs.h"
18478 #include <math.h>
18479 int main() {
18480  _ldexpl(0, 0);
18481 ; return 0; }
18482 EOF
18483 if { (eval echo configure:18484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18484   rm -rf conftest*
18485   glibcpp_cv_func__ldexpl_use=yes
18486 else
18487   echo "configure: failed program was:" >&5
18488   cat conftest.$ac_ext >&5
18489   rm -rf conftest*
18490   glibcpp_cv_func__ldexpl_use=no
18491 fi
18492 rm -f conftest*
18493       ac_ext=c
18494 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18495 ac_cpp='$CPP $CPPFLAGS'
18496 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18497 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18498 cross_compiling=$ac_cv_prog_cc_cross
18499
18500     
18501 fi
18502
18503   fi
18504   echo "$ac_t""$glibcpp_cv_func__ldexpl_use" 1>&6
18505
18506     if test x$glibcpp_cv_func__ldexpl_use = x"yes"; then
18507       for ac_func in _ldexpl
18508 do
18509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18510 echo "configure:18511: checking for $ac_func" >&5
18511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18512   echo $ac_n "(cached) $ac_c" 1>&6
18513 else
18514   cat > conftest.$ac_ext <<EOF
18515 #line 18516 "configure"
18516 #include "confdefs.h"
18517 /* System header to define __stub macros and hopefully few prototypes,
18518     which can conflict with char $ac_func(); below.  */
18519 #include <assert.h>
18520 /* Override any gcc2 internal prototype to avoid an error.  */
18521 /* We use char because int might match the return type of a gcc2
18522     builtin and then its argument prototype would still apply.  */
18523 char $ac_func();
18524
18525 int main() {
18526
18527 /* The GNU C library defines this for functions which it implements
18528     to always fail with ENOSYS.  Some functions are actually named
18529     something starting with __ and the normal name is an alias.  */
18530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18531 choke me
18532 #else
18533 $ac_func();
18534 #endif
18535
18536 ; return 0; }
18537 EOF
18538 if { (eval echo configure:18539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18539   rm -rf conftest*
18540   eval "ac_cv_func_$ac_func=yes"
18541 else
18542   echo "configure: failed program was:" >&5
18543   cat conftest.$ac_ext >&5
18544   rm -rf conftest*
18545   eval "ac_cv_func_$ac_func=no"
18546 fi
18547 rm -f conftest*
18548 fi
18549
18550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18551   echo "$ac_t""yes" 1>&6
18552     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18553   cat >> confdefs.h <<EOF
18554 #define $ac_tr_func 1
18555 EOF
18556  
18557 else
18558   echo "$ac_t""no" 1>&6
18559 fi
18560 done
18561
18562     fi
18563   fi
18564
18565   
18566   
18567   echo $ac_n "checking for logl declaration""... $ac_c" 1>&6
18568 echo "configure:18569: checking for logl declaration" >&5
18569   if test x${glibcpp_cv_func_logl_use+set} != xset; then
18570     if eval "test \"`echo '$''{'glibcpp_cv_func_logl_use'+set}'`\" = set"; then
18571   echo $ac_n "(cached) $ac_c" 1>&6
18572 else
18573   
18574       
18575       ac_ext=C
18576 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18577 ac_cpp='$CXXCPP $CPPFLAGS'
18578 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18579 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18580 cross_compiling=$ac_cv_prog_cxx_cross
18581
18582       cat > conftest.$ac_ext <<EOF
18583 #line 18584 "configure"
18584 #include "confdefs.h"
18585 #include <math.h>
18586                       #ifdef HAVE_IEEEFP_H
18587                       #include <ieeefp.h>
18588                       #endif
18589                      
18590 int main() {
18591  logl(0);
18592 ; return 0; }
18593 EOF
18594 if { (eval echo configure:18595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18595   rm -rf conftest*
18596   glibcpp_cv_func_logl_use=yes
18597 else
18598   echo "configure: failed program was:" >&5
18599   cat conftest.$ac_ext >&5
18600   rm -rf conftest*
18601   glibcpp_cv_func_logl_use=no
18602 fi
18603 rm -f conftest*
18604       ac_ext=c
18605 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18606 ac_cpp='$CPP $CPPFLAGS'
18607 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18608 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18609 cross_compiling=$ac_cv_prog_cc_cross
18610
18611     
18612 fi
18613
18614   fi
18615   echo "$ac_t""$glibcpp_cv_func_logl_use" 1>&6
18616
18617   if test x$glibcpp_cv_func_logl_use = x"yes"; then
18618     for ac_func in logl
18619 do
18620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18621 echo "configure:18622: checking for $ac_func" >&5
18622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18623   echo $ac_n "(cached) $ac_c" 1>&6
18624 else
18625   cat > conftest.$ac_ext <<EOF
18626 #line 18627 "configure"
18627 #include "confdefs.h"
18628 /* System header to define __stub macros and hopefully few prototypes,
18629     which can conflict with char $ac_func(); below.  */
18630 #include <assert.h>
18631 /* Override any gcc2 internal prototype to avoid an error.  */
18632 /* We use char because int might match the return type of a gcc2
18633     builtin and then its argument prototype would still apply.  */
18634 char $ac_func();
18635
18636 int main() {
18637
18638 /* The GNU C library defines this for functions which it implements
18639     to always fail with ENOSYS.  Some functions are actually named
18640     something starting with __ and the normal name is an alias.  */
18641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18642 choke me
18643 #else
18644 $ac_func();
18645 #endif
18646
18647 ; return 0; }
18648 EOF
18649 if { (eval echo configure:18650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18650   rm -rf conftest*
18651   eval "ac_cv_func_$ac_func=yes"
18652 else
18653   echo "configure: failed program was:" >&5
18654   cat conftest.$ac_ext >&5
18655   rm -rf conftest*
18656   eval "ac_cv_func_$ac_func=no"
18657 fi
18658 rm -f conftest*
18659 fi
18660
18661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18662   echo "$ac_t""yes" 1>&6
18663     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18664   cat >> confdefs.h <<EOF
18665 #define $ac_tr_func 1
18666 EOF
18667  
18668 else
18669   echo "$ac_t""no" 1>&6
18670 fi
18671 done
18672
18673   else
18674     
18675   echo $ac_n "checking for _logl declaration""... $ac_c" 1>&6
18676 echo "configure:18677: checking for _logl declaration" >&5
18677   if test x${glibcpp_cv_func__logl_use+set} != xset; then
18678     if eval "test \"`echo '$''{'glibcpp_cv_func__logl_use'+set}'`\" = set"; then
18679   echo $ac_n "(cached) $ac_c" 1>&6
18680 else
18681   
18682       
18683       ac_ext=C
18684 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18685 ac_cpp='$CXXCPP $CPPFLAGS'
18686 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18687 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18688 cross_compiling=$ac_cv_prog_cxx_cross
18689
18690       cat > conftest.$ac_ext <<EOF
18691 #line 18692 "configure"
18692 #include "confdefs.h"
18693 #include <math.h>
18694                       #ifdef HAVE_IEEEFP_H
18695                       #include <ieeefp.h>
18696                       #endif
18697                      
18698 int main() {
18699  _logl(0);
18700 ; return 0; }
18701 EOF
18702 if { (eval echo configure:18703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18703   rm -rf conftest*
18704   glibcpp_cv_func__logl_use=yes
18705 else
18706   echo "configure: failed program was:" >&5
18707   cat conftest.$ac_ext >&5
18708   rm -rf conftest*
18709   glibcpp_cv_func__logl_use=no
18710 fi
18711 rm -f conftest*
18712       ac_ext=c
18713 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18714 ac_cpp='$CPP $CPPFLAGS'
18715 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18716 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18717 cross_compiling=$ac_cv_prog_cc_cross
18718
18719     
18720 fi
18721
18722   fi
18723   echo "$ac_t""$glibcpp_cv_func__logl_use" 1>&6
18724
18725     if test x$glibcpp_cv_func__logl_use = x"yes"; then
18726       for ac_func in _logl
18727 do
18728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18729 echo "configure:18730: checking for $ac_func" >&5
18730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18731   echo $ac_n "(cached) $ac_c" 1>&6
18732 else
18733   cat > conftest.$ac_ext <<EOF
18734 #line 18735 "configure"
18735 #include "confdefs.h"
18736 /* System header to define __stub macros and hopefully few prototypes,
18737     which can conflict with char $ac_func(); below.  */
18738 #include <assert.h>
18739 /* Override any gcc2 internal prototype to avoid an error.  */
18740 /* We use char because int might match the return type of a gcc2
18741     builtin and then its argument prototype would still apply.  */
18742 char $ac_func();
18743
18744 int main() {
18745
18746 /* The GNU C library defines this for functions which it implements
18747     to always fail with ENOSYS.  Some functions are actually named
18748     something starting with __ and the normal name is an alias.  */
18749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18750 choke me
18751 #else
18752 $ac_func();
18753 #endif
18754
18755 ; return 0; }
18756 EOF
18757 if { (eval echo configure:18758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18758   rm -rf conftest*
18759   eval "ac_cv_func_$ac_func=yes"
18760 else
18761   echo "configure: failed program was:" >&5
18762   cat conftest.$ac_ext >&5
18763   rm -rf conftest*
18764   eval "ac_cv_func_$ac_func=no"
18765 fi
18766 rm -f conftest*
18767 fi
18768
18769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18770   echo "$ac_t""yes" 1>&6
18771     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18772   cat >> confdefs.h <<EOF
18773 #define $ac_tr_func 1
18774 EOF
18775  
18776 else
18777   echo "$ac_t""no" 1>&6
18778 fi
18779 done
18780
18781     fi
18782   fi
18783
18784   
18785   
18786   echo $ac_n "checking for log10l declaration""... $ac_c" 1>&6
18787 echo "configure:18788: checking for log10l declaration" >&5
18788   if test x${glibcpp_cv_func_log10l_use+set} != xset; then
18789     if eval "test \"`echo '$''{'glibcpp_cv_func_log10l_use'+set}'`\" = set"; then
18790   echo $ac_n "(cached) $ac_c" 1>&6
18791 else
18792   
18793       
18794       ac_ext=C
18795 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18796 ac_cpp='$CXXCPP $CPPFLAGS'
18797 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18798 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18799 cross_compiling=$ac_cv_prog_cxx_cross
18800
18801       cat > conftest.$ac_ext <<EOF
18802 #line 18803 "configure"
18803 #include "confdefs.h"
18804 #include <math.h>
18805                       #ifdef HAVE_IEEEFP_H
18806                       #include <ieeefp.h>
18807                       #endif
18808                      
18809 int main() {
18810  log10l(0);
18811 ; return 0; }
18812 EOF
18813 if { (eval echo configure:18814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18814   rm -rf conftest*
18815   glibcpp_cv_func_log10l_use=yes
18816 else
18817   echo "configure: failed program was:" >&5
18818   cat conftest.$ac_ext >&5
18819   rm -rf conftest*
18820   glibcpp_cv_func_log10l_use=no
18821 fi
18822 rm -f conftest*
18823       ac_ext=c
18824 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18825 ac_cpp='$CPP $CPPFLAGS'
18826 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18827 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18828 cross_compiling=$ac_cv_prog_cc_cross
18829
18830     
18831 fi
18832
18833   fi
18834   echo "$ac_t""$glibcpp_cv_func_log10l_use" 1>&6
18835
18836   if test x$glibcpp_cv_func_log10l_use = x"yes"; then
18837     for ac_func in log10l
18838 do
18839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18840 echo "configure:18841: checking for $ac_func" >&5
18841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18842   echo $ac_n "(cached) $ac_c" 1>&6
18843 else
18844   cat > conftest.$ac_ext <<EOF
18845 #line 18846 "configure"
18846 #include "confdefs.h"
18847 /* System header to define __stub macros and hopefully few prototypes,
18848     which can conflict with char $ac_func(); below.  */
18849 #include <assert.h>
18850 /* Override any gcc2 internal prototype to avoid an error.  */
18851 /* We use char because int might match the return type of a gcc2
18852     builtin and then its argument prototype would still apply.  */
18853 char $ac_func();
18854
18855 int main() {
18856
18857 /* The GNU C library defines this for functions which it implements
18858     to always fail with ENOSYS.  Some functions are actually named
18859     something starting with __ and the normal name is an alias.  */
18860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18861 choke me
18862 #else
18863 $ac_func();
18864 #endif
18865
18866 ; return 0; }
18867 EOF
18868 if { (eval echo configure:18869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18869   rm -rf conftest*
18870   eval "ac_cv_func_$ac_func=yes"
18871 else
18872   echo "configure: failed program was:" >&5
18873   cat conftest.$ac_ext >&5
18874   rm -rf conftest*
18875   eval "ac_cv_func_$ac_func=no"
18876 fi
18877 rm -f conftest*
18878 fi
18879
18880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18881   echo "$ac_t""yes" 1>&6
18882     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18883   cat >> confdefs.h <<EOF
18884 #define $ac_tr_func 1
18885 EOF
18886  
18887 else
18888   echo "$ac_t""no" 1>&6
18889 fi
18890 done
18891
18892   else
18893     
18894   echo $ac_n "checking for _log10l declaration""... $ac_c" 1>&6
18895 echo "configure:18896: checking for _log10l declaration" >&5
18896   if test x${glibcpp_cv_func__log10l_use+set} != xset; then
18897     if eval "test \"`echo '$''{'glibcpp_cv_func__log10l_use'+set}'`\" = set"; then
18898   echo $ac_n "(cached) $ac_c" 1>&6
18899 else
18900   
18901       
18902       ac_ext=C
18903 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18904 ac_cpp='$CXXCPP $CPPFLAGS'
18905 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18906 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18907 cross_compiling=$ac_cv_prog_cxx_cross
18908
18909       cat > conftest.$ac_ext <<EOF
18910 #line 18911 "configure"
18911 #include "confdefs.h"
18912 #include <math.h>
18913                       #ifdef HAVE_IEEEFP_H
18914                       #include <ieeefp.h>
18915                       #endif
18916                      
18917 int main() {
18918  _log10l(0);
18919 ; return 0; }
18920 EOF
18921 if { (eval echo configure:18922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18922   rm -rf conftest*
18923   glibcpp_cv_func__log10l_use=yes
18924 else
18925   echo "configure: failed program was:" >&5
18926   cat conftest.$ac_ext >&5
18927   rm -rf conftest*
18928   glibcpp_cv_func__log10l_use=no
18929 fi
18930 rm -f conftest*
18931       ac_ext=c
18932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18933 ac_cpp='$CPP $CPPFLAGS'
18934 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18935 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18936 cross_compiling=$ac_cv_prog_cc_cross
18937
18938     
18939 fi
18940
18941   fi
18942   echo "$ac_t""$glibcpp_cv_func__log10l_use" 1>&6
18943
18944     if test x$glibcpp_cv_func__log10l_use = x"yes"; then
18945       for ac_func in _log10l
18946 do
18947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18948 echo "configure:18949: checking for $ac_func" >&5
18949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18950   echo $ac_n "(cached) $ac_c" 1>&6
18951 else
18952   cat > conftest.$ac_ext <<EOF
18953 #line 18954 "configure"
18954 #include "confdefs.h"
18955 /* System header to define __stub macros and hopefully few prototypes,
18956     which can conflict with char $ac_func(); below.  */
18957 #include <assert.h>
18958 /* Override any gcc2 internal prototype to avoid an error.  */
18959 /* We use char because int might match the return type of a gcc2
18960     builtin and then its argument prototype would still apply.  */
18961 char $ac_func();
18962
18963 int main() {
18964
18965 /* The GNU C library defines this for functions which it implements
18966     to always fail with ENOSYS.  Some functions are actually named
18967     something starting with __ and the normal name is an alias.  */
18968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18969 choke me
18970 #else
18971 $ac_func();
18972 #endif
18973
18974 ; return 0; }
18975 EOF
18976 if { (eval echo configure:18977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18977   rm -rf conftest*
18978   eval "ac_cv_func_$ac_func=yes"
18979 else
18980   echo "configure: failed program was:" >&5
18981   cat conftest.$ac_ext >&5
18982   rm -rf conftest*
18983   eval "ac_cv_func_$ac_func=no"
18984 fi
18985 rm -f conftest*
18986 fi
18987
18988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18989   echo "$ac_t""yes" 1>&6
18990     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18991   cat >> confdefs.h <<EOF
18992 #define $ac_tr_func 1
18993 EOF
18994  
18995 else
18996   echo "$ac_t""no" 1>&6
18997 fi
18998 done
18999
19000     fi
19001   fi
19002
19003   
19004   
19005   echo $ac_n "checking for modfl declaration""... $ac_c" 1>&6
19006 echo "configure:19007: checking for modfl declaration" >&5
19007   if test x${glibcpp_cv_func_modfl_use+set} != xset; then
19008     if eval "test \"`echo '$''{'glibcpp_cv_func_modfl_use'+set}'`\" = set"; then
19009   echo $ac_n "(cached) $ac_c" 1>&6
19010 else
19011   
19012       
19013       ac_ext=C
19014 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19015 ac_cpp='$CXXCPP $CPPFLAGS'
19016 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19017 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19018 cross_compiling=$ac_cv_prog_cxx_cross
19019
19020       cat > conftest.$ac_ext <<EOF
19021 #line 19022 "configure"
19022 #include "confdefs.h"
19023 #include <math.h>
19024 int main() {
19025  modfl(0, 0);
19026 ; return 0; }
19027 EOF
19028 if { (eval echo configure:19029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19029   rm -rf conftest*
19030   glibcpp_cv_func_modfl_use=yes
19031 else
19032   echo "configure: failed program was:" >&5
19033   cat conftest.$ac_ext >&5
19034   rm -rf conftest*
19035   glibcpp_cv_func_modfl_use=no
19036 fi
19037 rm -f conftest*
19038       ac_ext=c
19039 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19040 ac_cpp='$CPP $CPPFLAGS'
19041 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19042 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19043 cross_compiling=$ac_cv_prog_cc_cross
19044
19045     
19046 fi
19047
19048   fi
19049   echo "$ac_t""$glibcpp_cv_func_modfl_use" 1>&6
19050
19051   if test x$glibcpp_cv_func_modfl_use = x"yes"; then
19052     for ac_func in modfl
19053 do
19054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19055 echo "configure:19056: checking for $ac_func" >&5
19056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19057   echo $ac_n "(cached) $ac_c" 1>&6
19058 else
19059   cat > conftest.$ac_ext <<EOF
19060 #line 19061 "configure"
19061 #include "confdefs.h"
19062 /* System header to define __stub macros and hopefully few prototypes,
19063     which can conflict with char $ac_func(); below.  */
19064 #include <assert.h>
19065 /* Override any gcc2 internal prototype to avoid an error.  */
19066 /* We use char because int might match the return type of a gcc2
19067     builtin and then its argument prototype would still apply.  */
19068 char $ac_func();
19069
19070 int main() {
19071
19072 /* The GNU C library defines this for functions which it implements
19073     to always fail with ENOSYS.  Some functions are actually named
19074     something starting with __ and the normal name is an alias.  */
19075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19076 choke me
19077 #else
19078 $ac_func();
19079 #endif
19080
19081 ; return 0; }
19082 EOF
19083 if { (eval echo configure:19084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19084   rm -rf conftest*
19085   eval "ac_cv_func_$ac_func=yes"
19086 else
19087   echo "configure: failed program was:" >&5
19088   cat conftest.$ac_ext >&5
19089   rm -rf conftest*
19090   eval "ac_cv_func_$ac_func=no"
19091 fi
19092 rm -f conftest*
19093 fi
19094
19095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19096   echo "$ac_t""yes" 1>&6
19097     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19098   cat >> confdefs.h <<EOF
19099 #define $ac_tr_func 1
19100 EOF
19101  
19102 else
19103   echo "$ac_t""no" 1>&6
19104 fi
19105 done
19106
19107   else
19108     
19109   echo $ac_n "checking for _modfl declaration""... $ac_c" 1>&6
19110 echo "configure:19111: checking for _modfl declaration" >&5
19111   if test x${glibcpp_cv_func__modfl_use+set} != xset; then
19112     if eval "test \"`echo '$''{'glibcpp_cv_func__modfl_use'+set}'`\" = set"; then
19113   echo $ac_n "(cached) $ac_c" 1>&6
19114 else
19115   
19116       
19117       ac_ext=C
19118 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19119 ac_cpp='$CXXCPP $CPPFLAGS'
19120 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19121 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19122 cross_compiling=$ac_cv_prog_cxx_cross
19123
19124       cat > conftest.$ac_ext <<EOF
19125 #line 19126 "configure"
19126 #include "confdefs.h"
19127 #include <math.h>
19128 int main() {
19129  _modfl(0, 0);
19130 ; return 0; }
19131 EOF
19132 if { (eval echo configure:19133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19133   rm -rf conftest*
19134   glibcpp_cv_func__modfl_use=yes
19135 else
19136   echo "configure: failed program was:" >&5
19137   cat conftest.$ac_ext >&5
19138   rm -rf conftest*
19139   glibcpp_cv_func__modfl_use=no
19140 fi
19141 rm -f conftest*
19142       ac_ext=c
19143 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19144 ac_cpp='$CPP $CPPFLAGS'
19145 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19146 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19147 cross_compiling=$ac_cv_prog_cc_cross
19148
19149     
19150 fi
19151
19152   fi
19153   echo "$ac_t""$glibcpp_cv_func__modfl_use" 1>&6
19154
19155     if test x$glibcpp_cv_func__modfl_use = x"yes"; then
19156       for ac_func in _modfl
19157 do
19158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19159 echo "configure:19160: checking for $ac_func" >&5
19160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19161   echo $ac_n "(cached) $ac_c" 1>&6
19162 else
19163   cat > conftest.$ac_ext <<EOF
19164 #line 19165 "configure"
19165 #include "confdefs.h"
19166 /* System header to define __stub macros and hopefully few prototypes,
19167     which can conflict with char $ac_func(); below.  */
19168 #include <assert.h>
19169 /* Override any gcc2 internal prototype to avoid an error.  */
19170 /* We use char because int might match the return type of a gcc2
19171     builtin and then its argument prototype would still apply.  */
19172 char $ac_func();
19173
19174 int main() {
19175
19176 /* The GNU C library defines this for functions which it implements
19177     to always fail with ENOSYS.  Some functions are actually named
19178     something starting with __ and the normal name is an alias.  */
19179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19180 choke me
19181 #else
19182 $ac_func();
19183 #endif
19184
19185 ; return 0; }
19186 EOF
19187 if { (eval echo configure:19188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19188   rm -rf conftest*
19189   eval "ac_cv_func_$ac_func=yes"
19190 else
19191   echo "configure: failed program was:" >&5
19192   cat conftest.$ac_ext >&5
19193   rm -rf conftest*
19194   eval "ac_cv_func_$ac_func=no"
19195 fi
19196 rm -f conftest*
19197 fi
19198
19199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19200   echo "$ac_t""yes" 1>&6
19201     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19202   cat >> confdefs.h <<EOF
19203 #define $ac_tr_func 1
19204 EOF
19205  
19206 else
19207   echo "$ac_t""no" 1>&6
19208 fi
19209 done
19210
19211     fi
19212   fi
19213
19214   
19215   
19216   echo $ac_n "checking for powl declaration""... $ac_c" 1>&6
19217 echo "configure:19218: checking for powl declaration" >&5
19218   if test x${glibcpp_cv_func_powl_use+set} != xset; then
19219     if eval "test \"`echo '$''{'glibcpp_cv_func_powl_use'+set}'`\" = set"; then
19220   echo $ac_n "(cached) $ac_c" 1>&6
19221 else
19222   
19223       
19224       ac_ext=C
19225 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19226 ac_cpp='$CXXCPP $CPPFLAGS'
19227 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19228 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19229 cross_compiling=$ac_cv_prog_cxx_cross
19230
19231       cat > conftest.$ac_ext <<EOF
19232 #line 19233 "configure"
19233 #include "confdefs.h"
19234 #include <math.h>
19235 int main() {
19236  powl(0, 0);
19237 ; return 0; }
19238 EOF
19239 if { (eval echo configure:19240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19240   rm -rf conftest*
19241   glibcpp_cv_func_powl_use=yes
19242 else
19243   echo "configure: failed program was:" >&5
19244   cat conftest.$ac_ext >&5
19245   rm -rf conftest*
19246   glibcpp_cv_func_powl_use=no
19247 fi
19248 rm -f conftest*
19249       ac_ext=c
19250 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19251 ac_cpp='$CPP $CPPFLAGS'
19252 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19253 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19254 cross_compiling=$ac_cv_prog_cc_cross
19255
19256     
19257 fi
19258
19259   fi
19260   echo "$ac_t""$glibcpp_cv_func_powl_use" 1>&6
19261
19262   if test x$glibcpp_cv_func_powl_use = x"yes"; then
19263     for ac_func in powl
19264 do
19265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19266 echo "configure:19267: checking for $ac_func" >&5
19267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19268   echo $ac_n "(cached) $ac_c" 1>&6
19269 else
19270   cat > conftest.$ac_ext <<EOF
19271 #line 19272 "configure"
19272 #include "confdefs.h"
19273 /* System header to define __stub macros and hopefully few prototypes,
19274     which can conflict with char $ac_func(); below.  */
19275 #include <assert.h>
19276 /* Override any gcc2 internal prototype to avoid an error.  */
19277 /* We use char because int might match the return type of a gcc2
19278     builtin and then its argument prototype would still apply.  */
19279 char $ac_func();
19280
19281 int main() {
19282
19283 /* The GNU C library defines this for functions which it implements
19284     to always fail with ENOSYS.  Some functions are actually named
19285     something starting with __ and the normal name is an alias.  */
19286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19287 choke me
19288 #else
19289 $ac_func();
19290 #endif
19291
19292 ; return 0; }
19293 EOF
19294 if { (eval echo configure:19295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19295   rm -rf conftest*
19296   eval "ac_cv_func_$ac_func=yes"
19297 else
19298   echo "configure: failed program was:" >&5
19299   cat conftest.$ac_ext >&5
19300   rm -rf conftest*
19301   eval "ac_cv_func_$ac_func=no"
19302 fi
19303 rm -f conftest*
19304 fi
19305
19306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19307   echo "$ac_t""yes" 1>&6
19308     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19309   cat >> confdefs.h <<EOF
19310 #define $ac_tr_func 1
19311 EOF
19312  
19313 else
19314   echo "$ac_t""no" 1>&6
19315 fi
19316 done
19317
19318   else
19319     
19320   echo $ac_n "checking for _powl declaration""... $ac_c" 1>&6
19321 echo "configure:19322: checking for _powl declaration" >&5
19322   if test x${glibcpp_cv_func__powl_use+set} != xset; then
19323     if eval "test \"`echo '$''{'glibcpp_cv_func__powl_use'+set}'`\" = set"; then
19324   echo $ac_n "(cached) $ac_c" 1>&6
19325 else
19326   
19327       
19328       ac_ext=C
19329 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19330 ac_cpp='$CXXCPP $CPPFLAGS'
19331 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19332 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19333 cross_compiling=$ac_cv_prog_cxx_cross
19334
19335       cat > conftest.$ac_ext <<EOF
19336 #line 19337 "configure"
19337 #include "confdefs.h"
19338 #include <math.h>
19339 int main() {
19340  _powl(0, 0);
19341 ; return 0; }
19342 EOF
19343 if { (eval echo configure:19344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19344   rm -rf conftest*
19345   glibcpp_cv_func__powl_use=yes
19346 else
19347   echo "configure: failed program was:" >&5
19348   cat conftest.$ac_ext >&5
19349   rm -rf conftest*
19350   glibcpp_cv_func__powl_use=no
19351 fi
19352 rm -f conftest*
19353       ac_ext=c
19354 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19355 ac_cpp='$CPP $CPPFLAGS'
19356 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19357 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19358 cross_compiling=$ac_cv_prog_cc_cross
19359
19360     
19361 fi
19362
19363   fi
19364   echo "$ac_t""$glibcpp_cv_func__powl_use" 1>&6
19365
19366     if test x$glibcpp_cv_func__powl_use = x"yes"; then
19367       for ac_func in _powl
19368 do
19369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19370 echo "configure:19371: checking for $ac_func" >&5
19371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19372   echo $ac_n "(cached) $ac_c" 1>&6
19373 else
19374   cat > conftest.$ac_ext <<EOF
19375 #line 19376 "configure"
19376 #include "confdefs.h"
19377 /* System header to define __stub macros and hopefully few prototypes,
19378     which can conflict with char $ac_func(); below.  */
19379 #include <assert.h>
19380 /* Override any gcc2 internal prototype to avoid an error.  */
19381 /* We use char because int might match the return type of a gcc2
19382     builtin and then its argument prototype would still apply.  */
19383 char $ac_func();
19384
19385 int main() {
19386
19387 /* The GNU C library defines this for functions which it implements
19388     to always fail with ENOSYS.  Some functions are actually named
19389     something starting with __ and the normal name is an alias.  */
19390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19391 choke me
19392 #else
19393 $ac_func();
19394 #endif
19395
19396 ; return 0; }
19397 EOF
19398 if { (eval echo configure:19399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19399   rm -rf conftest*
19400   eval "ac_cv_func_$ac_func=yes"
19401 else
19402   echo "configure: failed program was:" >&5
19403   cat conftest.$ac_ext >&5
19404   rm -rf conftest*
19405   eval "ac_cv_func_$ac_func=no"
19406 fi
19407 rm -f conftest*
19408 fi
19409
19410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19411   echo "$ac_t""yes" 1>&6
19412     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19413   cat >> confdefs.h <<EOF
19414 #define $ac_tr_func 1
19415 EOF
19416  
19417 else
19418   echo "$ac_t""no" 1>&6
19419 fi
19420 done
19421
19422     fi
19423   fi
19424
19425   
19426   
19427   echo $ac_n "checking for sqrtl declaration""... $ac_c" 1>&6
19428 echo "configure:19429: checking for sqrtl declaration" >&5
19429   if test x${glibcpp_cv_func_sqrtl_use+set} != xset; then
19430     if eval "test \"`echo '$''{'glibcpp_cv_func_sqrtl_use'+set}'`\" = set"; then
19431   echo $ac_n "(cached) $ac_c" 1>&6
19432 else
19433   
19434       
19435       ac_ext=C
19436 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19437 ac_cpp='$CXXCPP $CPPFLAGS'
19438 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19439 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19440 cross_compiling=$ac_cv_prog_cxx_cross
19441
19442       cat > conftest.$ac_ext <<EOF
19443 #line 19444 "configure"
19444 #include "confdefs.h"
19445 #include <math.h>
19446                       #ifdef HAVE_IEEEFP_H
19447                       #include <ieeefp.h>
19448                       #endif
19449                      
19450 int main() {
19451  sqrtl(0);
19452 ; return 0; }
19453 EOF
19454 if { (eval echo configure:19455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19455   rm -rf conftest*
19456   glibcpp_cv_func_sqrtl_use=yes
19457 else
19458   echo "configure: failed program was:" >&5
19459   cat conftest.$ac_ext >&5
19460   rm -rf conftest*
19461   glibcpp_cv_func_sqrtl_use=no
19462 fi
19463 rm -f conftest*
19464       ac_ext=c
19465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19466 ac_cpp='$CPP $CPPFLAGS'
19467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19469 cross_compiling=$ac_cv_prog_cc_cross
19470
19471     
19472 fi
19473
19474   fi
19475   echo "$ac_t""$glibcpp_cv_func_sqrtl_use" 1>&6
19476
19477   if test x$glibcpp_cv_func_sqrtl_use = x"yes"; then
19478     for ac_func in sqrtl
19479 do
19480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19481 echo "configure:19482: checking for $ac_func" >&5
19482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19483   echo $ac_n "(cached) $ac_c" 1>&6
19484 else
19485   cat > conftest.$ac_ext <<EOF
19486 #line 19487 "configure"
19487 #include "confdefs.h"
19488 /* System header to define __stub macros and hopefully few prototypes,
19489     which can conflict with char $ac_func(); below.  */
19490 #include <assert.h>
19491 /* Override any gcc2 internal prototype to avoid an error.  */
19492 /* We use char because int might match the return type of a gcc2
19493     builtin and then its argument prototype would still apply.  */
19494 char $ac_func();
19495
19496 int main() {
19497
19498 /* The GNU C library defines this for functions which it implements
19499     to always fail with ENOSYS.  Some functions are actually named
19500     something starting with __ and the normal name is an alias.  */
19501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19502 choke me
19503 #else
19504 $ac_func();
19505 #endif
19506
19507 ; return 0; }
19508 EOF
19509 if { (eval echo configure:19510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19510   rm -rf conftest*
19511   eval "ac_cv_func_$ac_func=yes"
19512 else
19513   echo "configure: failed program was:" >&5
19514   cat conftest.$ac_ext >&5
19515   rm -rf conftest*
19516   eval "ac_cv_func_$ac_func=no"
19517 fi
19518 rm -f conftest*
19519 fi
19520
19521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19522   echo "$ac_t""yes" 1>&6
19523     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19524   cat >> confdefs.h <<EOF
19525 #define $ac_tr_func 1
19526 EOF
19527  
19528 else
19529   echo "$ac_t""no" 1>&6
19530 fi
19531 done
19532
19533   else
19534     
19535   echo $ac_n "checking for _sqrtl declaration""... $ac_c" 1>&6
19536 echo "configure:19537: checking for _sqrtl declaration" >&5
19537   if test x${glibcpp_cv_func__sqrtl_use+set} != xset; then
19538     if eval "test \"`echo '$''{'glibcpp_cv_func__sqrtl_use'+set}'`\" = set"; then
19539   echo $ac_n "(cached) $ac_c" 1>&6
19540 else
19541   
19542       
19543       ac_ext=C
19544 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19545 ac_cpp='$CXXCPP $CPPFLAGS'
19546 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19547 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19548 cross_compiling=$ac_cv_prog_cxx_cross
19549
19550       cat > conftest.$ac_ext <<EOF
19551 #line 19552 "configure"
19552 #include "confdefs.h"
19553 #include <math.h>
19554                       #ifdef HAVE_IEEEFP_H
19555                       #include <ieeefp.h>
19556                       #endif
19557                      
19558 int main() {
19559  _sqrtl(0);
19560 ; return 0; }
19561 EOF
19562 if { (eval echo configure:19563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19563   rm -rf conftest*
19564   glibcpp_cv_func__sqrtl_use=yes
19565 else
19566   echo "configure: failed program was:" >&5
19567   cat conftest.$ac_ext >&5
19568   rm -rf conftest*
19569   glibcpp_cv_func__sqrtl_use=no
19570 fi
19571 rm -f conftest*
19572       ac_ext=c
19573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19574 ac_cpp='$CPP $CPPFLAGS'
19575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19576 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19577 cross_compiling=$ac_cv_prog_cc_cross
19578
19579     
19580 fi
19581
19582   fi
19583   echo "$ac_t""$glibcpp_cv_func__sqrtl_use" 1>&6
19584
19585     if test x$glibcpp_cv_func__sqrtl_use = x"yes"; then
19586       for ac_func in _sqrtl
19587 do
19588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19589 echo "configure:19590: checking for $ac_func" >&5
19590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19591   echo $ac_n "(cached) $ac_c" 1>&6
19592 else
19593   cat > conftest.$ac_ext <<EOF
19594 #line 19595 "configure"
19595 #include "confdefs.h"
19596 /* System header to define __stub macros and hopefully few prototypes,
19597     which can conflict with char $ac_func(); below.  */
19598 #include <assert.h>
19599 /* Override any gcc2 internal prototype to avoid an error.  */
19600 /* We use char because int might match the return type of a gcc2
19601     builtin and then its argument prototype would still apply.  */
19602 char $ac_func();
19603
19604 int main() {
19605
19606 /* The GNU C library defines this for functions which it implements
19607     to always fail with ENOSYS.  Some functions are actually named
19608     something starting with __ and the normal name is an alias.  */
19609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19610 choke me
19611 #else
19612 $ac_func();
19613 #endif
19614
19615 ; return 0; }
19616 EOF
19617 if { (eval echo configure:19618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19618   rm -rf conftest*
19619   eval "ac_cv_func_$ac_func=yes"
19620 else
19621   echo "configure: failed program was:" >&5
19622   cat conftest.$ac_ext >&5
19623   rm -rf conftest*
19624   eval "ac_cv_func_$ac_func=no"
19625 fi
19626 rm -f conftest*
19627 fi
19628
19629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19630   echo "$ac_t""yes" 1>&6
19631     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19632   cat >> confdefs.h <<EOF
19633 #define $ac_tr_func 1
19634 EOF
19635  
19636 else
19637   echo "$ac_t""no" 1>&6
19638 fi
19639 done
19640
19641     fi
19642   fi
19643
19644   
19645   
19646   echo $ac_n "checking for sincosl declaration""... $ac_c" 1>&6
19647 echo "configure:19648: checking for sincosl declaration" >&5
19648   if test x${glibcpp_cv_func_sincosl_use+set} != xset; then
19649     if eval "test \"`echo '$''{'glibcpp_cv_func_sincosl_use'+set}'`\" = set"; then
19650   echo $ac_n "(cached) $ac_c" 1>&6
19651 else
19652   
19653       
19654       ac_ext=C
19655 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19656 ac_cpp='$CXXCPP $CPPFLAGS'
19657 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19658 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19659 cross_compiling=$ac_cv_prog_cxx_cross
19660
19661       cat > conftest.$ac_ext <<EOF
19662 #line 19663 "configure"
19663 #include "confdefs.h"
19664 #include <math.h>
19665 int main() {
19666  sincosl(0, 0, 0);
19667 ; return 0; }
19668 EOF
19669 if { (eval echo configure:19670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19670   rm -rf conftest*
19671   glibcpp_cv_func_sincosl_use=yes
19672 else
19673   echo "configure: failed program was:" >&5
19674   cat conftest.$ac_ext >&5
19675   rm -rf conftest*
19676   glibcpp_cv_func_sincosl_use=no
19677 fi
19678 rm -f conftest*
19679       ac_ext=c
19680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19681 ac_cpp='$CPP $CPPFLAGS'
19682 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19683 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19684 cross_compiling=$ac_cv_prog_cc_cross
19685
19686     
19687 fi
19688
19689   fi
19690   echo "$ac_t""$glibcpp_cv_func_sincosl_use" 1>&6
19691
19692   if test x$glibcpp_cv_func_sincosl_use = x"yes"; then
19693     for ac_func in sincosl
19694 do
19695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19696 echo "configure:19697: checking for $ac_func" >&5
19697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19698   echo $ac_n "(cached) $ac_c" 1>&6
19699 else
19700   cat > conftest.$ac_ext <<EOF
19701 #line 19702 "configure"
19702 #include "confdefs.h"
19703 /* System header to define __stub macros and hopefully few prototypes,
19704     which can conflict with char $ac_func(); below.  */
19705 #include <assert.h>
19706 /* Override any gcc2 internal prototype to avoid an error.  */
19707 /* We use char because int might match the return type of a gcc2
19708     builtin and then its argument prototype would still apply.  */
19709 char $ac_func();
19710
19711 int main() {
19712
19713 /* The GNU C library defines this for functions which it implements
19714     to always fail with ENOSYS.  Some functions are actually named
19715     something starting with __ and the normal name is an alias.  */
19716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19717 choke me
19718 #else
19719 $ac_func();
19720 #endif
19721
19722 ; return 0; }
19723 EOF
19724 if { (eval echo configure:19725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19725   rm -rf conftest*
19726   eval "ac_cv_func_$ac_func=yes"
19727 else
19728   echo "configure: failed program was:" >&5
19729   cat conftest.$ac_ext >&5
19730   rm -rf conftest*
19731   eval "ac_cv_func_$ac_func=no"
19732 fi
19733 rm -f conftest*
19734 fi
19735
19736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19737   echo "$ac_t""yes" 1>&6
19738     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19739   cat >> confdefs.h <<EOF
19740 #define $ac_tr_func 1
19741 EOF
19742  
19743 else
19744   echo "$ac_t""no" 1>&6
19745 fi
19746 done
19747
19748   else
19749     
19750   echo $ac_n "checking for _sincosl declaration""... $ac_c" 1>&6
19751 echo "configure:19752: checking for _sincosl declaration" >&5
19752   if test x${glibcpp_cv_func__sincosl_use+set} != xset; then
19753     if eval "test \"`echo '$''{'glibcpp_cv_func__sincosl_use'+set}'`\" = set"; then
19754   echo $ac_n "(cached) $ac_c" 1>&6
19755 else
19756   
19757       
19758       ac_ext=C
19759 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19760 ac_cpp='$CXXCPP $CPPFLAGS'
19761 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19762 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19763 cross_compiling=$ac_cv_prog_cxx_cross
19764
19765       cat > conftest.$ac_ext <<EOF
19766 #line 19767 "configure"
19767 #include "confdefs.h"
19768 #include <math.h>
19769 int main() {
19770  _sincosl(0, 0, 0);
19771 ; return 0; }
19772 EOF
19773 if { (eval echo configure:19774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19774   rm -rf conftest*
19775   glibcpp_cv_func__sincosl_use=yes
19776 else
19777   echo "configure: failed program was:" >&5
19778   cat conftest.$ac_ext >&5
19779   rm -rf conftest*
19780   glibcpp_cv_func__sincosl_use=no
19781 fi
19782 rm -f conftest*
19783       ac_ext=c
19784 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19785 ac_cpp='$CPP $CPPFLAGS'
19786 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19787 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19788 cross_compiling=$ac_cv_prog_cc_cross
19789
19790     
19791 fi
19792
19793   fi
19794   echo "$ac_t""$glibcpp_cv_func__sincosl_use" 1>&6
19795
19796     if test x$glibcpp_cv_func__sincosl_use = x"yes"; then
19797       for ac_func in _sincosl
19798 do
19799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19800 echo "configure:19801: checking for $ac_func" >&5
19801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19802   echo $ac_n "(cached) $ac_c" 1>&6
19803 else
19804   cat > conftest.$ac_ext <<EOF
19805 #line 19806 "configure"
19806 #include "confdefs.h"
19807 /* System header to define __stub macros and hopefully few prototypes,
19808     which can conflict with char $ac_func(); below.  */
19809 #include <assert.h>
19810 /* Override any gcc2 internal prototype to avoid an error.  */
19811 /* We use char because int might match the return type of a gcc2
19812     builtin and then its argument prototype would still apply.  */
19813 char $ac_func();
19814
19815 int main() {
19816
19817 /* The GNU C library defines this for functions which it implements
19818     to always fail with ENOSYS.  Some functions are actually named
19819     something starting with __ and the normal name is an alias.  */
19820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19821 choke me
19822 #else
19823 $ac_func();
19824 #endif
19825
19826 ; return 0; }
19827 EOF
19828 if { (eval echo configure:19829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19829   rm -rf conftest*
19830   eval "ac_cv_func_$ac_func=yes"
19831 else
19832   echo "configure: failed program was:" >&5
19833   cat conftest.$ac_ext >&5
19834   rm -rf conftest*
19835   eval "ac_cv_func_$ac_func=no"
19836 fi
19837 rm -f conftest*
19838 fi
19839
19840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19841   echo "$ac_t""yes" 1>&6
19842     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19843   cat >> confdefs.h <<EOF
19844 #define $ac_tr_func 1
19845 EOF
19846  
19847 else
19848   echo "$ac_t""no" 1>&6
19849 fi
19850 done
19851
19852     fi
19853   fi
19854
19855   
19856   
19857   echo $ac_n "checking for finitel declaration""... $ac_c" 1>&6
19858 echo "configure:19859: checking for finitel declaration" >&5
19859   if test x${glibcpp_cv_func_finitel_use+set} != xset; then
19860     if eval "test \"`echo '$''{'glibcpp_cv_func_finitel_use'+set}'`\" = set"; then
19861   echo $ac_n "(cached) $ac_c" 1>&6
19862 else
19863   
19864       
19865       ac_ext=C
19866 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19867 ac_cpp='$CXXCPP $CPPFLAGS'
19868 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19869 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19870 cross_compiling=$ac_cv_prog_cxx_cross
19871
19872       cat > conftest.$ac_ext <<EOF
19873 #line 19874 "configure"
19874 #include "confdefs.h"
19875 #include <math.h>
19876                       #ifdef HAVE_IEEEFP_H
19877                       #include <ieeefp.h>
19878                       #endif
19879                      
19880 int main() {
19881  finitel(0);
19882 ; return 0; }
19883 EOF
19884 if { (eval echo configure:19885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19885   rm -rf conftest*
19886   glibcpp_cv_func_finitel_use=yes
19887 else
19888   echo "configure: failed program was:" >&5
19889   cat conftest.$ac_ext >&5
19890   rm -rf conftest*
19891   glibcpp_cv_func_finitel_use=no
19892 fi
19893 rm -f conftest*
19894       ac_ext=c
19895 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19896 ac_cpp='$CPP $CPPFLAGS'
19897 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19898 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19899 cross_compiling=$ac_cv_prog_cc_cross
19900
19901     
19902 fi
19903
19904   fi
19905   echo "$ac_t""$glibcpp_cv_func_finitel_use" 1>&6
19906
19907   if test x$glibcpp_cv_func_finitel_use = x"yes"; then
19908     for ac_func in finitel
19909 do
19910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19911 echo "configure:19912: checking for $ac_func" >&5
19912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19913   echo $ac_n "(cached) $ac_c" 1>&6
19914 else
19915   cat > conftest.$ac_ext <<EOF
19916 #line 19917 "configure"
19917 #include "confdefs.h"
19918 /* System header to define __stub macros and hopefully few prototypes,
19919     which can conflict with char $ac_func(); below.  */
19920 #include <assert.h>
19921 /* Override any gcc2 internal prototype to avoid an error.  */
19922 /* We use char because int might match the return type of a gcc2
19923     builtin and then its argument prototype would still apply.  */
19924 char $ac_func();
19925
19926 int main() {
19927
19928 /* The GNU C library defines this for functions which it implements
19929     to always fail with ENOSYS.  Some functions are actually named
19930     something starting with __ and the normal name is an alias.  */
19931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19932 choke me
19933 #else
19934 $ac_func();
19935 #endif
19936
19937 ; return 0; }
19938 EOF
19939 if { (eval echo configure:19940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19940   rm -rf conftest*
19941   eval "ac_cv_func_$ac_func=yes"
19942 else
19943   echo "configure: failed program was:" >&5
19944   cat conftest.$ac_ext >&5
19945   rm -rf conftest*
19946   eval "ac_cv_func_$ac_func=no"
19947 fi
19948 rm -f conftest*
19949 fi
19950
19951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19952   echo "$ac_t""yes" 1>&6
19953     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19954   cat >> confdefs.h <<EOF
19955 #define $ac_tr_func 1
19956 EOF
19957  
19958 else
19959   echo "$ac_t""no" 1>&6
19960 fi
19961 done
19962
19963   else
19964     
19965   echo $ac_n "checking for _finitel declaration""... $ac_c" 1>&6
19966 echo "configure:19967: checking for _finitel declaration" >&5
19967   if test x${glibcpp_cv_func__finitel_use+set} != xset; then
19968     if eval "test \"`echo '$''{'glibcpp_cv_func__finitel_use'+set}'`\" = set"; then
19969   echo $ac_n "(cached) $ac_c" 1>&6
19970 else
19971   
19972       
19973       ac_ext=C
19974 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19975 ac_cpp='$CXXCPP $CPPFLAGS'
19976 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19977 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19978 cross_compiling=$ac_cv_prog_cxx_cross
19979
19980       cat > conftest.$ac_ext <<EOF
19981 #line 19982 "configure"
19982 #include "confdefs.h"
19983 #include <math.h>
19984                       #ifdef HAVE_IEEEFP_H
19985                       #include <ieeefp.h>
19986                       #endif
19987                      
19988 int main() {
19989  _finitel(0);
19990 ; return 0; }
19991 EOF
19992 if { (eval echo configure:19993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19993   rm -rf conftest*
19994   glibcpp_cv_func__finitel_use=yes
19995 else
19996   echo "configure: failed program was:" >&5
19997   cat conftest.$ac_ext >&5
19998   rm -rf conftest*
19999   glibcpp_cv_func__finitel_use=no
20000 fi
20001 rm -f conftest*
20002       ac_ext=c
20003 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20004 ac_cpp='$CPP $CPPFLAGS'
20005 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20006 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20007 cross_compiling=$ac_cv_prog_cc_cross
20008
20009     
20010 fi
20011
20012   fi
20013   echo "$ac_t""$glibcpp_cv_func__finitel_use" 1>&6
20014
20015     if test x$glibcpp_cv_func__finitel_use = x"yes"; then
20016       for ac_func in _finitel
20017 do
20018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20019 echo "configure:20020: checking for $ac_func" >&5
20020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20021   echo $ac_n "(cached) $ac_c" 1>&6
20022 else
20023   cat > conftest.$ac_ext <<EOF
20024 #line 20025 "configure"
20025 #include "confdefs.h"
20026 /* System header to define __stub macros and hopefully few prototypes,
20027     which can conflict with char $ac_func(); below.  */
20028 #include <assert.h>
20029 /* Override any gcc2 internal prototype to avoid an error.  */
20030 /* We use char because int might match the return type of a gcc2
20031     builtin and then its argument prototype would still apply.  */
20032 char $ac_func();
20033
20034 int main() {
20035
20036 /* The GNU C library defines this for functions which it implements
20037     to always fail with ENOSYS.  Some functions are actually named
20038     something starting with __ and the normal name is an alias.  */
20039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20040 choke me
20041 #else
20042 $ac_func();
20043 #endif
20044
20045 ; return 0; }
20046 EOF
20047 if { (eval echo configure:20048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20048   rm -rf conftest*
20049   eval "ac_cv_func_$ac_func=yes"
20050 else
20051   echo "configure: failed program was:" >&5
20052   cat conftest.$ac_ext >&5
20053   rm -rf conftest*
20054   eval "ac_cv_func_$ac_func=no"
20055 fi
20056 rm -f conftest*
20057 fi
20058
20059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20060   echo "$ac_t""yes" 1>&6
20061     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20062   cat >> confdefs.h <<EOF
20063 #define $ac_tr_func 1
20064 EOF
20065  
20066 else
20067   echo "$ac_t""no" 1>&6
20068 fi
20069 done
20070
20071     fi
20072   fi
20073
20074
20075         
20076     
20077   echo $ac_n "checking for _float trig functions""... $ac_c" 1>&6
20078 echo "configure:20079: checking for _float trig functions" >&5
20079   if eval "test \"`echo '$''{'glibcpp_cv_func__float_trig_use'+set}'`\" = set"; then
20080   echo $ac_n "(cached) $ac_c" 1>&6
20081 else
20082   
20083     
20084     ac_ext=C
20085 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20086 ac_cpp='$CXXCPP $CPPFLAGS'
20087 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20088 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20089 cross_compiling=$ac_cv_prog_cxx_cross
20090
20091     cat > conftest.$ac_ext <<EOF
20092 #line 20093 "configure"
20093 #include "confdefs.h"
20094 #include <math.h>
20095 int main() {
20096  `for x in _acosf _asinf _atanf \
20097                                           _cosf _sinf _tanf \
20098                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done` 
20099 ; return 0; }
20100 EOF
20101 if { (eval echo configure:20102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20102   rm -rf conftest*
20103   glibcpp_cv_func__float_trig_use=yes
20104 else
20105   echo "configure: failed program was:" >&5
20106   cat conftest.$ac_ext >&5
20107   rm -rf conftest*
20108   glibcpp_cv_func__float_trig_use=no
20109 fi
20110 rm -f conftest*
20111     ac_ext=c
20112 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20113 ac_cpp='$CPP $CPPFLAGS'
20114 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20115 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20116 cross_compiling=$ac_cv_prog_cc_cross
20117
20118 fi
20119
20120   echo "$ac_t""$glibcpp_cv_func__float_trig_use" 1>&6
20121   if test x$glibcpp_cv_func__float_trig_use = x"yes"; then
20122     for ac_func in _acosf _asinf _atanf \
20123                                           _cosf _sinf _tanf \
20124                                           _coshf _sinhf _tanhf
20125 do
20126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20127 echo "configure:20128: checking for $ac_func" >&5
20128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20129   echo $ac_n "(cached) $ac_c" 1>&6
20130 else
20131   cat > conftest.$ac_ext <<EOF
20132 #line 20133 "configure"
20133 #include "confdefs.h"
20134 /* System header to define __stub macros and hopefully few prototypes,
20135     which can conflict with char $ac_func(); below.  */
20136 #include <assert.h>
20137 /* Override any gcc2 internal prototype to avoid an error.  */
20138 /* We use char because int might match the return type of a gcc2
20139     builtin and then its argument prototype would still apply.  */
20140 char $ac_func();
20141
20142 int main() {
20143
20144 /* The GNU C library defines this for functions which it implements
20145     to always fail with ENOSYS.  Some functions are actually named
20146     something starting with __ and the normal name is an alias.  */
20147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20148 choke me
20149 #else
20150 $ac_func();
20151 #endif
20152
20153 ; return 0; }
20154 EOF
20155 if { (eval echo configure:20156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20156   rm -rf conftest*
20157   eval "ac_cv_func_$ac_func=yes"
20158 else
20159   echo "configure: failed program was:" >&5
20160   cat conftest.$ac_ext >&5
20161   rm -rf conftest*
20162   eval "ac_cv_func_$ac_func=no"
20163 fi
20164 rm -f conftest*
20165 fi
20166
20167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20168   echo "$ac_t""yes" 1>&6
20169     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20170   cat >> confdefs.h <<EOF
20171 #define $ac_tr_func 1
20172 EOF
20173  
20174 else
20175   echo "$ac_t""no" 1>&6
20176 fi
20177 done
20178
20179   fi
20180
20181   
20182   echo $ac_n "checking for _float round functions""... $ac_c" 1>&6
20183 echo "configure:20184: checking for _float round functions" >&5
20184   if eval "test \"`echo '$''{'glibcpp_cv_func__float_round_use'+set}'`\" = set"; then
20185   echo $ac_n "(cached) $ac_c" 1>&6
20186 else
20187   
20188     
20189     ac_ext=C
20190 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20191 ac_cpp='$CXXCPP $CPPFLAGS'
20192 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20193 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20194 cross_compiling=$ac_cv_prog_cxx_cross
20195
20196     cat > conftest.$ac_ext <<EOF
20197 #line 20198 "configure"
20198 #include "confdefs.h"
20199 #include <math.h>
20200 int main() {
20201  `for x in _ceilf _floorf; do echo "$x (0);"; done` 
20202 ; return 0; }
20203 EOF
20204 if { (eval echo configure:20205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20205   rm -rf conftest*
20206   glibcpp_cv_func__float_round_use=yes
20207 else
20208   echo "configure: failed program was:" >&5
20209   cat conftest.$ac_ext >&5
20210   rm -rf conftest*
20211   glibcpp_cv_func__float_round_use=no
20212 fi
20213 rm -f conftest*
20214     ac_ext=c
20215 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20216 ac_cpp='$CPP $CPPFLAGS'
20217 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20218 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20219 cross_compiling=$ac_cv_prog_cc_cross
20220
20221 fi
20222
20223   echo "$ac_t""$glibcpp_cv_func__float_round_use" 1>&6
20224   if test x$glibcpp_cv_func__float_round_use = x"yes"; then
20225     for ac_func in _ceilf _floorf
20226 do
20227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20228 echo "configure:20229: checking for $ac_func" >&5
20229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20230   echo $ac_n "(cached) $ac_c" 1>&6
20231 else
20232   cat > conftest.$ac_ext <<EOF
20233 #line 20234 "configure"
20234 #include "confdefs.h"
20235 /* System header to define __stub macros and hopefully few prototypes,
20236     which can conflict with char $ac_func(); below.  */
20237 #include <assert.h>
20238 /* Override any gcc2 internal prototype to avoid an error.  */
20239 /* We use char because int might match the return type of a gcc2
20240     builtin and then its argument prototype would still apply.  */
20241 char $ac_func();
20242
20243 int main() {
20244
20245 /* The GNU C library defines this for functions which it implements
20246     to always fail with ENOSYS.  Some functions are actually named
20247     something starting with __ and the normal name is an alias.  */
20248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20249 choke me
20250 #else
20251 $ac_func();
20252 #endif
20253
20254 ; return 0; }
20255 EOF
20256 if { (eval echo configure:20257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20257   rm -rf conftest*
20258   eval "ac_cv_func_$ac_func=yes"
20259 else
20260   echo "configure: failed program was:" >&5
20261   cat conftest.$ac_ext >&5
20262   rm -rf conftest*
20263   eval "ac_cv_func_$ac_func=no"
20264 fi
20265 rm -f conftest*
20266 fi
20267
20268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20269   echo "$ac_t""yes" 1>&6
20270     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20271   cat >> confdefs.h <<EOF
20272 #define $ac_tr_func 1
20273 EOF
20274  
20275 else
20276   echo "$ac_t""no" 1>&6
20277 fi
20278 done
20279
20280   fi
20281
20282
20283     
20284   echo $ac_n "checking for _long double trig functions""... $ac_c" 1>&6
20285 echo "configure:20286: checking for _long double trig functions" >&5
20286   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_trig_use'+set}'`\" = set"; then
20287   echo $ac_n "(cached) $ac_c" 1>&6
20288 else
20289   
20290     
20291     ac_ext=C
20292 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20293 ac_cpp='$CXXCPP $CPPFLAGS'
20294 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20295 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20296 cross_compiling=$ac_cv_prog_cxx_cross
20297
20298     cat > conftest.$ac_ext <<EOF
20299 #line 20300 "configure"
20300 #include "confdefs.h"
20301 #include <math.h>
20302 int main() {
20303  `for x in _acosl _asinl _atanl \
20304                                           _cosl _sinl _tanl \
20305                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done` 
20306 ; return 0; }
20307 EOF
20308 if { (eval echo configure:20309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20309   rm -rf conftest*
20310   glibcpp_cv_func__long_double_trig_use=yes
20311 else
20312   echo "configure: failed program was:" >&5
20313   cat conftest.$ac_ext >&5
20314   rm -rf conftest*
20315   glibcpp_cv_func__long_double_trig_use=no
20316 fi
20317 rm -f conftest*
20318     ac_ext=c
20319 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20320 ac_cpp='$CPP $CPPFLAGS'
20321 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20322 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20323 cross_compiling=$ac_cv_prog_cc_cross
20324
20325 fi
20326
20327   echo "$ac_t""$glibcpp_cv_func__long_double_trig_use" 1>&6
20328   if test x$glibcpp_cv_func__long_double_trig_use = x"yes"; then
20329     for ac_func in _acosl _asinl _atanl \
20330                                           _cosl _sinl _tanl \
20331                                           _coshl _sinhl _tanhl
20332 do
20333 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20334 echo "configure:20335: checking for $ac_func" >&5
20335 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20336   echo $ac_n "(cached) $ac_c" 1>&6
20337 else
20338   cat > conftest.$ac_ext <<EOF
20339 #line 20340 "configure"
20340 #include "confdefs.h"
20341 /* System header to define __stub macros and hopefully few prototypes,
20342     which can conflict with char $ac_func(); below.  */
20343 #include <assert.h>
20344 /* Override any gcc2 internal prototype to avoid an error.  */
20345 /* We use char because int might match the return type of a gcc2
20346     builtin and then its argument prototype would still apply.  */
20347 char $ac_func();
20348
20349 int main() {
20350
20351 /* The GNU C library defines this for functions which it implements
20352     to always fail with ENOSYS.  Some functions are actually named
20353     something starting with __ and the normal name is an alias.  */
20354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20355 choke me
20356 #else
20357 $ac_func();
20358 #endif
20359
20360 ; return 0; }
20361 EOF
20362 if { (eval echo configure:20363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20363   rm -rf conftest*
20364   eval "ac_cv_func_$ac_func=yes"
20365 else
20366   echo "configure: failed program was:" >&5
20367   cat conftest.$ac_ext >&5
20368   rm -rf conftest*
20369   eval "ac_cv_func_$ac_func=no"
20370 fi
20371 rm -f conftest*
20372 fi
20373
20374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20375   echo "$ac_t""yes" 1>&6
20376     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20377   cat >> confdefs.h <<EOF
20378 #define $ac_tr_func 1
20379 EOF
20380  
20381 else
20382   echo "$ac_t""no" 1>&6
20383 fi
20384 done
20385
20386   fi
20387
20388   
20389   echo $ac_n "checking for _long double round functions""... $ac_c" 1>&6
20390 echo "configure:20391: checking for _long double round functions" >&5
20391   if eval "test \"`echo '$''{'glibcpp_cv_func__long_double_round_use'+set}'`\" = set"; then
20392   echo $ac_n "(cached) $ac_c" 1>&6
20393 else
20394   
20395     
20396     ac_ext=C
20397 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20398 ac_cpp='$CXXCPP $CPPFLAGS'
20399 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20400 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20401 cross_compiling=$ac_cv_prog_cxx_cross
20402
20403     cat > conftest.$ac_ext <<EOF
20404 #line 20405 "configure"
20405 #include "confdefs.h"
20406 #include <math.h>
20407 int main() {
20408  `for x in _ceill _floorl; do echo "$x (0);"; done` 
20409 ; return 0; }
20410 EOF
20411 if { (eval echo configure:20412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20412   rm -rf conftest*
20413   glibcpp_cv_func__long_double_round_use=yes
20414 else
20415   echo "configure: failed program was:" >&5
20416   cat conftest.$ac_ext >&5
20417   rm -rf conftest*
20418   glibcpp_cv_func__long_double_round_use=no
20419 fi
20420 rm -f conftest*
20421     ac_ext=c
20422 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20423 ac_cpp='$CPP $CPPFLAGS'
20424 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20425 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20426 cross_compiling=$ac_cv_prog_cc_cross
20427
20428 fi
20429
20430   echo "$ac_t""$glibcpp_cv_func__long_double_round_use" 1>&6
20431   if test x$glibcpp_cv_func__long_double_round_use = x"yes"; then
20432     for ac_func in _ceill _floorl
20433 do
20434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20435 echo "configure:20436: checking for $ac_func" >&5
20436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20437   echo $ac_n "(cached) $ac_c" 1>&6
20438 else
20439   cat > conftest.$ac_ext <<EOF
20440 #line 20441 "configure"
20441 #include "confdefs.h"
20442 /* System header to define __stub macros and hopefully few prototypes,
20443     which can conflict with char $ac_func(); below.  */
20444 #include <assert.h>
20445 /* Override any gcc2 internal prototype to avoid an error.  */
20446 /* We use char because int might match the return type of a gcc2
20447     builtin and then its argument prototype would still apply.  */
20448 char $ac_func();
20449
20450 int main() {
20451
20452 /* The GNU C library defines this for functions which it implements
20453     to always fail with ENOSYS.  Some functions are actually named
20454     something starting with __ and the normal name is an alias.  */
20455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20456 choke me
20457 #else
20458 $ac_func();
20459 #endif
20460
20461 ; return 0; }
20462 EOF
20463 if { (eval echo configure:20464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20464   rm -rf conftest*
20465   eval "ac_cv_func_$ac_func=yes"
20466 else
20467   echo "configure: failed program was:" >&5
20468   cat conftest.$ac_ext >&5
20469   rm -rf conftest*
20470   eval "ac_cv_func_$ac_func=no"
20471 fi
20472 rm -f conftest*
20473 fi
20474
20475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20476   echo "$ac_t""yes" 1>&6
20477     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20478   cat >> confdefs.h <<EOF
20479 #define $ac_tr_func 1
20480 EOF
20481  
20482 else
20483   echo "$ac_t""no" 1>&6
20484 fi
20485 done
20486
20487   fi
20488
20489
20490   LIBS="$ac_save_LIBS"
20491   CXXFLAGS="$ac_save_CXXFLAGS"
20492
20493   
20494       
20495   echo $ac_n "checking for __builtin_abs declaration""... $ac_c" 1>&6
20496 echo "configure:20497: checking for __builtin_abs declaration" >&5
20497   if test x${glibcpp_cv_func___builtin_abs_use+set} != xset; then
20498     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_use'+set}'`\" = set"; then
20499   echo $ac_n "(cached) $ac_c" 1>&6
20500 else
20501   
20502       
20503       ac_ext=C
20504 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20505 ac_cpp='$CXXCPP $CPPFLAGS'
20506 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20507 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20508 cross_compiling=$ac_cv_prog_cxx_cross
20509
20510       cat > conftest.$ac_ext <<EOF
20511 #line 20512 "configure"
20512 #include "confdefs.h"
20513 #include <math.h>
20514 int main() {
20515  __builtin_abs(0);
20516 ; return 0; }
20517 EOF
20518 if { (eval echo configure:20519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20519   rm -rf conftest*
20520   glibcpp_cv_func___builtin_abs_use=yes
20521 else
20522   echo "configure: failed program was:" >&5
20523   cat conftest.$ac_ext >&5
20524   rm -rf conftest*
20525   glibcpp_cv_func___builtin_abs_use=no
20526 fi
20527 rm -f conftest*
20528       ac_ext=c
20529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20530 ac_cpp='$CPP $CPPFLAGS'
20531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20532 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20533 cross_compiling=$ac_cv_prog_cc_cross
20534
20535     
20536 fi
20537
20538   fi
20539   echo "$ac_t""$glibcpp_cv_func___builtin_abs_use" 1>&6
20540   if test x$glibcpp_cv_func___builtin_abs_use = x"yes"; then
20541     echo $ac_n "checking for __builtin_abs linkage""... $ac_c" 1>&6
20542 echo "configure:20543: checking for __builtin_abs linkage" >&5
20543     if test x${glibcpp_cv_func___builtin_abs_link+set} != xset; then
20544       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_abs_link'+set}'`\" = set"; then
20545   echo $ac_n "(cached) $ac_c" 1>&6
20546 else
20547   
20548         cat > conftest.$ac_ext <<EOF
20549 #line 20550 "configure"
20550 #include "confdefs.h"
20551 #include <math.h>
20552 int main() {
20553  __builtin_abs(0);
20554 ; return 0; }
20555 EOF
20556 if { (eval echo configure:20557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20557   rm -rf conftest*
20558   glibcpp_cv_func___builtin_abs_link=yes
20559 else
20560   echo "configure: failed program was:" >&5
20561   cat conftest.$ac_ext >&5
20562   rm -rf conftest*
20563   glibcpp_cv_func___builtin_abs_link=no
20564 fi
20565 rm -f conftest*
20566       
20567 fi
20568
20569     fi
20570     echo "$ac_t""$glibcpp_cv_func___builtin_abs_link" 1>&6
20571     if test x$glibcpp_cv_func___builtin_abs_link = x"yes"; then
20572       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20573       cat >> confdefs.h <<EOF
20574 #define ${ac_tr_func} 1
20575 EOF
20576
20577     fi
20578   fi
20579
20580   
20581   echo $ac_n "checking for __builtin_fabsf declaration""... $ac_c" 1>&6
20582 echo "configure:20583: checking for __builtin_fabsf declaration" >&5
20583   if test x${glibcpp_cv_func___builtin_fabsf_use+set} != xset; then
20584     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_use'+set}'`\" = set"; then
20585   echo $ac_n "(cached) $ac_c" 1>&6
20586 else
20587   
20588       
20589       ac_ext=C
20590 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20591 ac_cpp='$CXXCPP $CPPFLAGS'
20592 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20593 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20594 cross_compiling=$ac_cv_prog_cxx_cross
20595
20596       cat > conftest.$ac_ext <<EOF
20597 #line 20598 "configure"
20598 #include "confdefs.h"
20599 #include <math.h>
20600 int main() {
20601  __builtin_fabsf(0);
20602 ; return 0; }
20603 EOF
20604 if { (eval echo configure:20605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20605   rm -rf conftest*
20606   glibcpp_cv_func___builtin_fabsf_use=yes
20607 else
20608   echo "configure: failed program was:" >&5
20609   cat conftest.$ac_ext >&5
20610   rm -rf conftest*
20611   glibcpp_cv_func___builtin_fabsf_use=no
20612 fi
20613 rm -f conftest*
20614       ac_ext=c
20615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20616 ac_cpp='$CPP $CPPFLAGS'
20617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20618 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20619 cross_compiling=$ac_cv_prog_cc_cross
20620
20621     
20622 fi
20623
20624   fi
20625   echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_use" 1>&6
20626   if test x$glibcpp_cv_func___builtin_fabsf_use = x"yes"; then
20627     echo $ac_n "checking for __builtin_fabsf linkage""... $ac_c" 1>&6
20628 echo "configure:20629: checking for __builtin_fabsf linkage" >&5
20629     if test x${glibcpp_cv_func___builtin_fabsf_link+set} != xset; then
20630       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsf_link'+set}'`\" = set"; then
20631   echo $ac_n "(cached) $ac_c" 1>&6
20632 else
20633   
20634         cat > conftest.$ac_ext <<EOF
20635 #line 20636 "configure"
20636 #include "confdefs.h"
20637 #include <math.h>
20638 int main() {
20639  __builtin_fabsf(0);
20640 ; return 0; }
20641 EOF
20642 if { (eval echo configure:20643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20643   rm -rf conftest*
20644   glibcpp_cv_func___builtin_fabsf_link=yes
20645 else
20646   echo "configure: failed program was:" >&5
20647   cat conftest.$ac_ext >&5
20648   rm -rf conftest*
20649   glibcpp_cv_func___builtin_fabsf_link=no
20650 fi
20651 rm -f conftest*
20652       
20653 fi
20654
20655     fi
20656     echo "$ac_t""$glibcpp_cv_func___builtin_fabsf_link" 1>&6
20657     if test x$glibcpp_cv_func___builtin_fabsf_link = x"yes"; then
20658       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20659       cat >> confdefs.h <<EOF
20660 #define ${ac_tr_func} 1
20661 EOF
20662
20663     fi
20664   fi
20665
20666   
20667   echo $ac_n "checking for __builtin_fabs declaration""... $ac_c" 1>&6
20668 echo "configure:20669: checking for __builtin_fabs declaration" >&5
20669   if test x${glibcpp_cv_func___builtin_fabs_use+set} != xset; then
20670     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_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 int main() {
20687  __builtin_fabs(0);
20688 ; return 0; }
20689 EOF
20690 if { (eval echo configure:20691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20691   rm -rf conftest*
20692   glibcpp_cv_func___builtin_fabs_use=yes
20693 else
20694   echo "configure: failed program was:" >&5
20695   cat conftest.$ac_ext >&5
20696   rm -rf conftest*
20697   glibcpp_cv_func___builtin_fabs_use=no
20698 fi
20699 rm -f conftest*
20700       ac_ext=c
20701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20702 ac_cpp='$CPP $CPPFLAGS'
20703 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20704 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20705 cross_compiling=$ac_cv_prog_cc_cross
20706
20707     
20708 fi
20709
20710   fi
20711   echo "$ac_t""$glibcpp_cv_func___builtin_fabs_use" 1>&6
20712   if test x$glibcpp_cv_func___builtin_fabs_use = x"yes"; then
20713     echo $ac_n "checking for __builtin_fabs linkage""... $ac_c" 1>&6
20714 echo "configure:20715: checking for __builtin_fabs linkage" >&5
20715     if test x${glibcpp_cv_func___builtin_fabs_link+set} != xset; then
20716       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabs_link'+set}'`\" = set"; then
20717   echo $ac_n "(cached) $ac_c" 1>&6
20718 else
20719   
20720         cat > conftest.$ac_ext <<EOF
20721 #line 20722 "configure"
20722 #include "confdefs.h"
20723 #include <math.h>
20724 int main() {
20725  __builtin_fabs(0);
20726 ; return 0; }
20727 EOF
20728 if { (eval echo configure:20729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20729   rm -rf conftest*
20730   glibcpp_cv_func___builtin_fabs_link=yes
20731 else
20732   echo "configure: failed program was:" >&5
20733   cat conftest.$ac_ext >&5
20734   rm -rf conftest*
20735   glibcpp_cv_func___builtin_fabs_link=no
20736 fi
20737 rm -f conftest*
20738       
20739 fi
20740
20741     fi
20742     echo "$ac_t""$glibcpp_cv_func___builtin_fabs_link" 1>&6
20743     if test x$glibcpp_cv_func___builtin_fabs_link = x"yes"; then
20744       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20745       cat >> confdefs.h <<EOF
20746 #define ${ac_tr_func} 1
20747 EOF
20748
20749     fi
20750   fi
20751
20752   
20753   echo $ac_n "checking for __builtin_fabsl declaration""... $ac_c" 1>&6
20754 echo "configure:20755: checking for __builtin_fabsl declaration" >&5
20755   if test x${glibcpp_cv_func___builtin_fabsl_use+set} != xset; then
20756     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_use'+set}'`\" = set"; then
20757   echo $ac_n "(cached) $ac_c" 1>&6
20758 else
20759   
20760       
20761       ac_ext=C
20762 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20763 ac_cpp='$CXXCPP $CPPFLAGS'
20764 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20765 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20766 cross_compiling=$ac_cv_prog_cxx_cross
20767
20768       cat > conftest.$ac_ext <<EOF
20769 #line 20770 "configure"
20770 #include "confdefs.h"
20771 #include <math.h>
20772 int main() {
20773  __builtin_fabsl(0);
20774 ; return 0; }
20775 EOF
20776 if { (eval echo configure:20777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20777   rm -rf conftest*
20778   glibcpp_cv_func___builtin_fabsl_use=yes
20779 else
20780   echo "configure: failed program was:" >&5
20781   cat conftest.$ac_ext >&5
20782   rm -rf conftest*
20783   glibcpp_cv_func___builtin_fabsl_use=no
20784 fi
20785 rm -f conftest*
20786       ac_ext=c
20787 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20788 ac_cpp='$CPP $CPPFLAGS'
20789 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20790 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20791 cross_compiling=$ac_cv_prog_cc_cross
20792
20793     
20794 fi
20795
20796   fi
20797   echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_use" 1>&6
20798   if test x$glibcpp_cv_func___builtin_fabsl_use = x"yes"; then
20799     echo $ac_n "checking for __builtin_fabsl linkage""... $ac_c" 1>&6
20800 echo "configure:20801: checking for __builtin_fabsl linkage" >&5
20801     if test x${glibcpp_cv_func___builtin_fabsl_link+set} != xset; then
20802       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_fabsl_link'+set}'`\" = set"; then
20803   echo $ac_n "(cached) $ac_c" 1>&6
20804 else
20805   
20806         cat > conftest.$ac_ext <<EOF
20807 #line 20808 "configure"
20808 #include "confdefs.h"
20809 #include <math.h>
20810 int main() {
20811  __builtin_fabsl(0);
20812 ; return 0; }
20813 EOF
20814 if { (eval echo configure:20815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20815   rm -rf conftest*
20816   glibcpp_cv_func___builtin_fabsl_link=yes
20817 else
20818   echo "configure: failed program was:" >&5
20819   cat conftest.$ac_ext >&5
20820   rm -rf conftest*
20821   glibcpp_cv_func___builtin_fabsl_link=no
20822 fi
20823 rm -f conftest*
20824       
20825 fi
20826
20827     fi
20828     echo "$ac_t""$glibcpp_cv_func___builtin_fabsl_link" 1>&6
20829     if test x$glibcpp_cv_func___builtin_fabsl_link = x"yes"; then
20830       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20831       cat >> confdefs.h <<EOF
20832 #define ${ac_tr_func} 1
20833 EOF
20834
20835     fi
20836   fi
20837
20838   
20839   echo $ac_n "checking for __builtin_labs declaration""... $ac_c" 1>&6
20840 echo "configure:20841: checking for __builtin_labs declaration" >&5
20841   if test x${glibcpp_cv_func___builtin_labs_use+set} != xset; then
20842     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_use'+set}'`\" = set"; then
20843   echo $ac_n "(cached) $ac_c" 1>&6
20844 else
20845   
20846       
20847       ac_ext=C
20848 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20849 ac_cpp='$CXXCPP $CPPFLAGS'
20850 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20851 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20852 cross_compiling=$ac_cv_prog_cxx_cross
20853
20854       cat > conftest.$ac_ext <<EOF
20855 #line 20856 "configure"
20856 #include "confdefs.h"
20857 #include <math.h>
20858 int main() {
20859  __builtin_labs(0);
20860 ; return 0; }
20861 EOF
20862 if { (eval echo configure:20863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20863   rm -rf conftest*
20864   glibcpp_cv_func___builtin_labs_use=yes
20865 else
20866   echo "configure: failed program was:" >&5
20867   cat conftest.$ac_ext >&5
20868   rm -rf conftest*
20869   glibcpp_cv_func___builtin_labs_use=no
20870 fi
20871 rm -f conftest*
20872       ac_ext=c
20873 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20874 ac_cpp='$CPP $CPPFLAGS'
20875 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20876 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20877 cross_compiling=$ac_cv_prog_cc_cross
20878
20879     
20880 fi
20881
20882   fi
20883   echo "$ac_t""$glibcpp_cv_func___builtin_labs_use" 1>&6
20884   if test x$glibcpp_cv_func___builtin_labs_use = x"yes"; then
20885     echo $ac_n "checking for __builtin_labs linkage""... $ac_c" 1>&6
20886 echo "configure:20887: checking for __builtin_labs linkage" >&5
20887     if test x${glibcpp_cv_func___builtin_labs_link+set} != xset; then
20888       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_labs_link'+set}'`\" = set"; then
20889   echo $ac_n "(cached) $ac_c" 1>&6
20890 else
20891   
20892         cat > conftest.$ac_ext <<EOF
20893 #line 20894 "configure"
20894 #include "confdefs.h"
20895 #include <math.h>
20896 int main() {
20897  __builtin_labs(0);
20898 ; return 0; }
20899 EOF
20900 if { (eval echo configure:20901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20901   rm -rf conftest*
20902   glibcpp_cv_func___builtin_labs_link=yes
20903 else
20904   echo "configure: failed program was:" >&5
20905   cat conftest.$ac_ext >&5
20906   rm -rf conftest*
20907   glibcpp_cv_func___builtin_labs_link=no
20908 fi
20909 rm -f conftest*
20910       
20911 fi
20912
20913     fi
20914     echo "$ac_t""$glibcpp_cv_func___builtin_labs_link" 1>&6
20915     if test x$glibcpp_cv_func___builtin_labs_link = x"yes"; then
20916       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20917       cat >> confdefs.h <<EOF
20918 #define ${ac_tr_func} 1
20919 EOF
20920
20921     fi
20922   fi
20923
20924
20925   
20926   echo $ac_n "checking for __builtin_sqrtf declaration""... $ac_c" 1>&6
20927 echo "configure:20928: checking for __builtin_sqrtf declaration" >&5
20928   if test x${glibcpp_cv_func___builtin_sqrtf_use+set} != xset; then
20929     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_use'+set}'`\" = set"; then
20930   echo $ac_n "(cached) $ac_c" 1>&6
20931 else
20932   
20933       
20934       ac_ext=C
20935 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20936 ac_cpp='$CXXCPP $CPPFLAGS'
20937 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20938 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20939 cross_compiling=$ac_cv_prog_cxx_cross
20940
20941       cat > conftest.$ac_ext <<EOF
20942 #line 20943 "configure"
20943 #include "confdefs.h"
20944 #include <math.h>
20945 int main() {
20946  __builtin_sqrtf(0);
20947 ; return 0; }
20948 EOF
20949 if { (eval echo configure:20950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20950   rm -rf conftest*
20951   glibcpp_cv_func___builtin_sqrtf_use=yes
20952 else
20953   echo "configure: failed program was:" >&5
20954   cat conftest.$ac_ext >&5
20955   rm -rf conftest*
20956   glibcpp_cv_func___builtin_sqrtf_use=no
20957 fi
20958 rm -f conftest*
20959       ac_ext=c
20960 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20961 ac_cpp='$CPP $CPPFLAGS'
20962 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20963 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20964 cross_compiling=$ac_cv_prog_cc_cross
20965
20966     
20967 fi
20968
20969   fi
20970   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_use" 1>&6
20971   if test x$glibcpp_cv_func___builtin_sqrtf_use = x"yes"; then
20972     echo $ac_n "checking for __builtin_sqrtf linkage""... $ac_c" 1>&6
20973 echo "configure:20974: checking for __builtin_sqrtf linkage" >&5
20974     if test x${glibcpp_cv_func___builtin_sqrtf_link+set} != xset; then
20975       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtf_link'+set}'`\" = set"; then
20976   echo $ac_n "(cached) $ac_c" 1>&6
20977 else
20978   
20979         cat > conftest.$ac_ext <<EOF
20980 #line 20981 "configure"
20981 #include "confdefs.h"
20982 #include <math.h>
20983 int main() {
20984  __builtin_sqrtf(0);
20985 ; return 0; }
20986 EOF
20987 if { (eval echo configure:20988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20988   rm -rf conftest*
20989   glibcpp_cv_func___builtin_sqrtf_link=yes
20990 else
20991   echo "configure: failed program was:" >&5
20992   cat conftest.$ac_ext >&5
20993   rm -rf conftest*
20994   glibcpp_cv_func___builtin_sqrtf_link=no
20995 fi
20996 rm -f conftest*
20997       
20998 fi
20999
21000     fi
21001     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtf_link" 1>&6
21002     if test x$glibcpp_cv_func___builtin_sqrtf_link = x"yes"; then
21003       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21004       cat >> confdefs.h <<EOF
21005 #define ${ac_tr_func} 1
21006 EOF
21007
21008     fi
21009   fi
21010
21011   
21012   echo $ac_n "checking for __builtin_sqrt declaration""... $ac_c" 1>&6
21013 echo "configure:21014: checking for __builtin_sqrt declaration" >&5
21014   if test x${glibcpp_cv_func___builtin_sqrt_use+set} != xset; then
21015     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_use'+set}'`\" = set"; then
21016   echo $ac_n "(cached) $ac_c" 1>&6
21017 else
21018   
21019       
21020       ac_ext=C
21021 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21022 ac_cpp='$CXXCPP $CPPFLAGS'
21023 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21024 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21025 cross_compiling=$ac_cv_prog_cxx_cross
21026
21027       cat > conftest.$ac_ext <<EOF
21028 #line 21029 "configure"
21029 #include "confdefs.h"
21030 #include <math.h>
21031 int main() {
21032  __builtin_sqrt(0);
21033 ; return 0; }
21034 EOF
21035 if { (eval echo configure:21036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21036   rm -rf conftest*
21037   glibcpp_cv_func___builtin_sqrt_use=yes
21038 else
21039   echo "configure: failed program was:" >&5
21040   cat conftest.$ac_ext >&5
21041   rm -rf conftest*
21042   glibcpp_cv_func___builtin_sqrt_use=no
21043 fi
21044 rm -f conftest*
21045       ac_ext=c
21046 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21047 ac_cpp='$CPP $CPPFLAGS'
21048 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21049 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21050 cross_compiling=$ac_cv_prog_cc_cross
21051
21052     
21053 fi
21054
21055   fi
21056   echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_use" 1>&6
21057   if test x$glibcpp_cv_func___builtin_sqrt_use = x"yes"; then
21058     echo $ac_n "checking for __builtin_sqrt linkage""... $ac_c" 1>&6
21059 echo "configure:21060: checking for __builtin_sqrt linkage" >&5
21060     if test x${glibcpp_cv_func___builtin_sqrt_link+set} != xset; then
21061       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrt_link'+set}'`\" = set"; then
21062   echo $ac_n "(cached) $ac_c" 1>&6
21063 else
21064   
21065         cat > conftest.$ac_ext <<EOF
21066 #line 21067 "configure"
21067 #include "confdefs.h"
21068 #include <math.h>
21069 int main() {
21070  __builtin_sqrt(0);
21071 ; return 0; }
21072 EOF
21073 if { (eval echo configure:21074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21074   rm -rf conftest*
21075   glibcpp_cv_func___builtin_sqrt_link=yes
21076 else
21077   echo "configure: failed program was:" >&5
21078   cat conftest.$ac_ext >&5
21079   rm -rf conftest*
21080   glibcpp_cv_func___builtin_sqrt_link=no
21081 fi
21082 rm -f conftest*
21083       
21084 fi
21085
21086     fi
21087     echo "$ac_t""$glibcpp_cv_func___builtin_sqrt_link" 1>&6
21088     if test x$glibcpp_cv_func___builtin_sqrt_link = x"yes"; then
21089       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21090       cat >> confdefs.h <<EOF
21091 #define ${ac_tr_func} 1
21092 EOF
21093
21094     fi
21095   fi
21096
21097   
21098   echo $ac_n "checking for __builtin_sqrtl declaration""... $ac_c" 1>&6
21099 echo "configure:21100: checking for __builtin_sqrtl declaration" >&5
21100   if test x${glibcpp_cv_func___builtin_sqrtl_use+set} != xset; then
21101     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_use'+set}'`\" = set"; then
21102   echo $ac_n "(cached) $ac_c" 1>&6
21103 else
21104   
21105       
21106       ac_ext=C
21107 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21108 ac_cpp='$CXXCPP $CPPFLAGS'
21109 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21110 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21111 cross_compiling=$ac_cv_prog_cxx_cross
21112
21113       cat > conftest.$ac_ext <<EOF
21114 #line 21115 "configure"
21115 #include "confdefs.h"
21116 #include <math.h>
21117 int main() {
21118  __builtin_sqrtl(0);
21119 ; return 0; }
21120 EOF
21121 if { (eval echo configure:21122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21122   rm -rf conftest*
21123   glibcpp_cv_func___builtin_sqrtl_use=yes
21124 else
21125   echo "configure: failed program was:" >&5
21126   cat conftest.$ac_ext >&5
21127   rm -rf conftest*
21128   glibcpp_cv_func___builtin_sqrtl_use=no
21129 fi
21130 rm -f conftest*
21131       ac_ext=c
21132 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21133 ac_cpp='$CPP $CPPFLAGS'
21134 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21135 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21136 cross_compiling=$ac_cv_prog_cc_cross
21137
21138     
21139 fi
21140
21141   fi
21142   echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_use" 1>&6
21143   if test x$glibcpp_cv_func___builtin_sqrtl_use = x"yes"; then
21144     echo $ac_n "checking for __builtin_sqrtl linkage""... $ac_c" 1>&6
21145 echo "configure:21146: checking for __builtin_sqrtl linkage" >&5
21146     if test x${glibcpp_cv_func___builtin_sqrtl_link+set} != xset; then
21147       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sqrtl_link'+set}'`\" = set"; then
21148   echo $ac_n "(cached) $ac_c" 1>&6
21149 else
21150   
21151         cat > conftest.$ac_ext <<EOF
21152 #line 21153 "configure"
21153 #include "confdefs.h"
21154 #include <math.h>
21155 int main() {
21156  __builtin_sqrtl(0);
21157 ; return 0; }
21158 EOF
21159 if { (eval echo configure:21160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21160   rm -rf conftest*
21161   glibcpp_cv_func___builtin_sqrtl_link=yes
21162 else
21163   echo "configure: failed program was:" >&5
21164   cat conftest.$ac_ext >&5
21165   rm -rf conftest*
21166   glibcpp_cv_func___builtin_sqrtl_link=no
21167 fi
21168 rm -f conftest*
21169       
21170 fi
21171
21172     fi
21173     echo "$ac_t""$glibcpp_cv_func___builtin_sqrtl_link" 1>&6
21174     if test x$glibcpp_cv_func___builtin_sqrtl_link = x"yes"; then
21175       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21176       cat >> confdefs.h <<EOF
21177 #define ${ac_tr_func} 1
21178 EOF
21179
21180     fi
21181   fi
21182
21183
21184   
21185   echo $ac_n "checking for __builtin_sinf declaration""... $ac_c" 1>&6
21186 echo "configure:21187: checking for __builtin_sinf declaration" >&5
21187   if test x${glibcpp_cv_func___builtin_sinf_use+set} != xset; then
21188     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_use'+set}'`\" = set"; then
21189   echo $ac_n "(cached) $ac_c" 1>&6
21190 else
21191   
21192       
21193       ac_ext=C
21194 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21195 ac_cpp='$CXXCPP $CPPFLAGS'
21196 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21197 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21198 cross_compiling=$ac_cv_prog_cxx_cross
21199
21200       cat > conftest.$ac_ext <<EOF
21201 #line 21202 "configure"
21202 #include "confdefs.h"
21203 #include <math.h>
21204 int main() {
21205  __builtin_sinf(0);
21206 ; return 0; }
21207 EOF
21208 if { (eval echo configure:21209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21209   rm -rf conftest*
21210   glibcpp_cv_func___builtin_sinf_use=yes
21211 else
21212   echo "configure: failed program was:" >&5
21213   cat conftest.$ac_ext >&5
21214   rm -rf conftest*
21215   glibcpp_cv_func___builtin_sinf_use=no
21216 fi
21217 rm -f conftest*
21218       ac_ext=c
21219 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21220 ac_cpp='$CPP $CPPFLAGS'
21221 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21222 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21223 cross_compiling=$ac_cv_prog_cc_cross
21224
21225     
21226 fi
21227
21228   fi
21229   echo "$ac_t""$glibcpp_cv_func___builtin_sinf_use" 1>&6
21230   if test x$glibcpp_cv_func___builtin_sinf_use = x"yes"; then
21231     echo $ac_n "checking for __builtin_sinf linkage""... $ac_c" 1>&6
21232 echo "configure:21233: checking for __builtin_sinf linkage" >&5
21233     if test x${glibcpp_cv_func___builtin_sinf_link+set} != xset; then
21234       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinf_link'+set}'`\" = set"; then
21235   echo $ac_n "(cached) $ac_c" 1>&6
21236 else
21237   
21238         cat > conftest.$ac_ext <<EOF
21239 #line 21240 "configure"
21240 #include "confdefs.h"
21241 #include <math.h>
21242 int main() {
21243  __builtin_sinf(0);
21244 ; return 0; }
21245 EOF
21246 if { (eval echo configure:21247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21247   rm -rf conftest*
21248   glibcpp_cv_func___builtin_sinf_link=yes
21249 else
21250   echo "configure: failed program was:" >&5
21251   cat conftest.$ac_ext >&5
21252   rm -rf conftest*
21253   glibcpp_cv_func___builtin_sinf_link=no
21254 fi
21255 rm -f conftest*
21256       
21257 fi
21258
21259     fi
21260     echo "$ac_t""$glibcpp_cv_func___builtin_sinf_link" 1>&6
21261     if test x$glibcpp_cv_func___builtin_sinf_link = x"yes"; then
21262       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21263       cat >> confdefs.h <<EOF
21264 #define ${ac_tr_func} 1
21265 EOF
21266
21267     fi
21268   fi
21269
21270   
21271   echo $ac_n "checking for __builtin_sin declaration""... $ac_c" 1>&6
21272 echo "configure:21273: checking for __builtin_sin declaration" >&5
21273   if test x${glibcpp_cv_func___builtin_sin_use+set} != xset; then
21274     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_use'+set}'`\" = set"; then
21275   echo $ac_n "(cached) $ac_c" 1>&6
21276 else
21277   
21278       
21279       ac_ext=C
21280 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21281 ac_cpp='$CXXCPP $CPPFLAGS'
21282 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21283 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21284 cross_compiling=$ac_cv_prog_cxx_cross
21285
21286       cat > conftest.$ac_ext <<EOF
21287 #line 21288 "configure"
21288 #include "confdefs.h"
21289 #include <math.h>
21290 int main() {
21291  __builtin_sin(0);
21292 ; return 0; }
21293 EOF
21294 if { (eval echo configure:21295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21295   rm -rf conftest*
21296   glibcpp_cv_func___builtin_sin_use=yes
21297 else
21298   echo "configure: failed program was:" >&5
21299   cat conftest.$ac_ext >&5
21300   rm -rf conftest*
21301   glibcpp_cv_func___builtin_sin_use=no
21302 fi
21303 rm -f conftest*
21304       ac_ext=c
21305 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21306 ac_cpp='$CPP $CPPFLAGS'
21307 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21308 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21309 cross_compiling=$ac_cv_prog_cc_cross
21310
21311     
21312 fi
21313
21314   fi
21315   echo "$ac_t""$glibcpp_cv_func___builtin_sin_use" 1>&6
21316   if test x$glibcpp_cv_func___builtin_sin_use = x"yes"; then
21317     echo $ac_n "checking for __builtin_sin linkage""... $ac_c" 1>&6
21318 echo "configure:21319: checking for __builtin_sin linkage" >&5
21319     if test x${glibcpp_cv_func___builtin_sin_link+set} != xset; then
21320       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sin_link'+set}'`\" = set"; then
21321   echo $ac_n "(cached) $ac_c" 1>&6
21322 else
21323   
21324         cat > conftest.$ac_ext <<EOF
21325 #line 21326 "configure"
21326 #include "confdefs.h"
21327 #include <math.h>
21328 int main() {
21329  __builtin_sin(0);
21330 ; return 0; }
21331 EOF
21332 if { (eval echo configure:21333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21333   rm -rf conftest*
21334   glibcpp_cv_func___builtin_sin_link=yes
21335 else
21336   echo "configure: failed program was:" >&5
21337   cat conftest.$ac_ext >&5
21338   rm -rf conftest*
21339   glibcpp_cv_func___builtin_sin_link=no
21340 fi
21341 rm -f conftest*
21342       
21343 fi
21344
21345     fi
21346     echo "$ac_t""$glibcpp_cv_func___builtin_sin_link" 1>&6
21347     if test x$glibcpp_cv_func___builtin_sin_link = x"yes"; then
21348       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21349       cat >> confdefs.h <<EOF
21350 #define ${ac_tr_func} 1
21351 EOF
21352
21353     fi
21354   fi
21355
21356   
21357   echo $ac_n "checking for __builtin_sinl declaration""... $ac_c" 1>&6
21358 echo "configure:21359: checking for __builtin_sinl declaration" >&5
21359   if test x${glibcpp_cv_func___builtin_sinl_use+set} != xset; then
21360     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_use'+set}'`\" = set"; then
21361   echo $ac_n "(cached) $ac_c" 1>&6
21362 else
21363   
21364       
21365       ac_ext=C
21366 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21367 ac_cpp='$CXXCPP $CPPFLAGS'
21368 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21369 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21370 cross_compiling=$ac_cv_prog_cxx_cross
21371
21372       cat > conftest.$ac_ext <<EOF
21373 #line 21374 "configure"
21374 #include "confdefs.h"
21375 #include <math.h>
21376 int main() {
21377  __builtin_sinl(0);
21378 ; return 0; }
21379 EOF
21380 if { (eval echo configure:21381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21381   rm -rf conftest*
21382   glibcpp_cv_func___builtin_sinl_use=yes
21383 else
21384   echo "configure: failed program was:" >&5
21385   cat conftest.$ac_ext >&5
21386   rm -rf conftest*
21387   glibcpp_cv_func___builtin_sinl_use=no
21388 fi
21389 rm -f conftest*
21390       ac_ext=c
21391 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21392 ac_cpp='$CPP $CPPFLAGS'
21393 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21394 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21395 cross_compiling=$ac_cv_prog_cc_cross
21396
21397     
21398 fi
21399
21400   fi
21401   echo "$ac_t""$glibcpp_cv_func___builtin_sinl_use" 1>&6
21402   if test x$glibcpp_cv_func___builtin_sinl_use = x"yes"; then
21403     echo $ac_n "checking for __builtin_sinl linkage""... $ac_c" 1>&6
21404 echo "configure:21405: checking for __builtin_sinl linkage" >&5
21405     if test x${glibcpp_cv_func___builtin_sinl_link+set} != xset; then
21406       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_sinl_link'+set}'`\" = set"; then
21407   echo $ac_n "(cached) $ac_c" 1>&6
21408 else
21409   
21410         cat > conftest.$ac_ext <<EOF
21411 #line 21412 "configure"
21412 #include "confdefs.h"
21413 #include <math.h>
21414 int main() {
21415  __builtin_sinl(0);
21416 ; return 0; }
21417 EOF
21418 if { (eval echo configure:21419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21419   rm -rf conftest*
21420   glibcpp_cv_func___builtin_sinl_link=yes
21421 else
21422   echo "configure: failed program was:" >&5
21423   cat conftest.$ac_ext >&5
21424   rm -rf conftest*
21425   glibcpp_cv_func___builtin_sinl_link=no
21426 fi
21427 rm -f conftest*
21428       
21429 fi
21430
21431     fi
21432     echo "$ac_t""$glibcpp_cv_func___builtin_sinl_link" 1>&6
21433     if test x$glibcpp_cv_func___builtin_sinl_link = x"yes"; then
21434       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21435       cat >> confdefs.h <<EOF
21436 #define ${ac_tr_func} 1
21437 EOF
21438
21439     fi
21440   fi
21441
21442
21443   
21444   echo $ac_n "checking for __builtin_cosf declaration""... $ac_c" 1>&6
21445 echo "configure:21446: checking for __builtin_cosf declaration" >&5
21446   if test x${glibcpp_cv_func___builtin_cosf_use+set} != xset; then
21447     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_use'+set}'`\" = set"; then
21448   echo $ac_n "(cached) $ac_c" 1>&6
21449 else
21450   
21451       
21452       ac_ext=C
21453 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21454 ac_cpp='$CXXCPP $CPPFLAGS'
21455 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21456 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21457 cross_compiling=$ac_cv_prog_cxx_cross
21458
21459       cat > conftest.$ac_ext <<EOF
21460 #line 21461 "configure"
21461 #include "confdefs.h"
21462 #include <math.h>
21463 int main() {
21464  __builtin_cosf(0);
21465 ; return 0; }
21466 EOF
21467 if { (eval echo configure:21468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21468   rm -rf conftest*
21469   glibcpp_cv_func___builtin_cosf_use=yes
21470 else
21471   echo "configure: failed program was:" >&5
21472   cat conftest.$ac_ext >&5
21473   rm -rf conftest*
21474   glibcpp_cv_func___builtin_cosf_use=no
21475 fi
21476 rm -f conftest*
21477       ac_ext=c
21478 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21479 ac_cpp='$CPP $CPPFLAGS'
21480 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21481 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21482 cross_compiling=$ac_cv_prog_cc_cross
21483
21484     
21485 fi
21486
21487   fi
21488   echo "$ac_t""$glibcpp_cv_func___builtin_cosf_use" 1>&6
21489   if test x$glibcpp_cv_func___builtin_cosf_use = x"yes"; then
21490     echo $ac_n "checking for __builtin_cosf linkage""... $ac_c" 1>&6
21491 echo "configure:21492: checking for __builtin_cosf linkage" >&5
21492     if test x${glibcpp_cv_func___builtin_cosf_link+set} != xset; then
21493       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosf_link'+set}'`\" = set"; then
21494   echo $ac_n "(cached) $ac_c" 1>&6
21495 else
21496   
21497         cat > conftest.$ac_ext <<EOF
21498 #line 21499 "configure"
21499 #include "confdefs.h"
21500 #include <math.h>
21501 int main() {
21502  __builtin_cosf(0);
21503 ; return 0; }
21504 EOF
21505 if { (eval echo configure:21506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21506   rm -rf conftest*
21507   glibcpp_cv_func___builtin_cosf_link=yes
21508 else
21509   echo "configure: failed program was:" >&5
21510   cat conftest.$ac_ext >&5
21511   rm -rf conftest*
21512   glibcpp_cv_func___builtin_cosf_link=no
21513 fi
21514 rm -f conftest*
21515       
21516 fi
21517
21518     fi
21519     echo "$ac_t""$glibcpp_cv_func___builtin_cosf_link" 1>&6
21520     if test x$glibcpp_cv_func___builtin_cosf_link = x"yes"; then
21521       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21522       cat >> confdefs.h <<EOF
21523 #define ${ac_tr_func} 1
21524 EOF
21525
21526     fi
21527   fi
21528
21529   
21530   echo $ac_n "checking for __builtin_cos declaration""... $ac_c" 1>&6
21531 echo "configure:21532: checking for __builtin_cos declaration" >&5
21532   if test x${glibcpp_cv_func___builtin_cos_use+set} != xset; then
21533     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_use'+set}'`\" = set"; then
21534   echo $ac_n "(cached) $ac_c" 1>&6
21535 else
21536   
21537       
21538       ac_ext=C
21539 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21540 ac_cpp='$CXXCPP $CPPFLAGS'
21541 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21542 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21543 cross_compiling=$ac_cv_prog_cxx_cross
21544
21545       cat > conftest.$ac_ext <<EOF
21546 #line 21547 "configure"
21547 #include "confdefs.h"
21548 #include <math.h>
21549 int main() {
21550  __builtin_cos(0);
21551 ; return 0; }
21552 EOF
21553 if { (eval echo configure:21554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21554   rm -rf conftest*
21555   glibcpp_cv_func___builtin_cos_use=yes
21556 else
21557   echo "configure: failed program was:" >&5
21558   cat conftest.$ac_ext >&5
21559   rm -rf conftest*
21560   glibcpp_cv_func___builtin_cos_use=no
21561 fi
21562 rm -f conftest*
21563       ac_ext=c
21564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21565 ac_cpp='$CPP $CPPFLAGS'
21566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21568 cross_compiling=$ac_cv_prog_cc_cross
21569
21570     
21571 fi
21572
21573   fi
21574   echo "$ac_t""$glibcpp_cv_func___builtin_cos_use" 1>&6
21575   if test x$glibcpp_cv_func___builtin_cos_use = x"yes"; then
21576     echo $ac_n "checking for __builtin_cos linkage""... $ac_c" 1>&6
21577 echo "configure:21578: checking for __builtin_cos linkage" >&5
21578     if test x${glibcpp_cv_func___builtin_cos_link+set} != xset; then
21579       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cos_link'+set}'`\" = set"; then
21580   echo $ac_n "(cached) $ac_c" 1>&6
21581 else
21582   
21583         cat > conftest.$ac_ext <<EOF
21584 #line 21585 "configure"
21585 #include "confdefs.h"
21586 #include <math.h>
21587 int main() {
21588  __builtin_cos(0);
21589 ; return 0; }
21590 EOF
21591 if { (eval echo configure:21592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21592   rm -rf conftest*
21593   glibcpp_cv_func___builtin_cos_link=yes
21594 else
21595   echo "configure: failed program was:" >&5
21596   cat conftest.$ac_ext >&5
21597   rm -rf conftest*
21598   glibcpp_cv_func___builtin_cos_link=no
21599 fi
21600 rm -f conftest*
21601       
21602 fi
21603
21604     fi
21605     echo "$ac_t""$glibcpp_cv_func___builtin_cos_link" 1>&6
21606     if test x$glibcpp_cv_func___builtin_cos_link = x"yes"; then
21607       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21608       cat >> confdefs.h <<EOF
21609 #define ${ac_tr_func} 1
21610 EOF
21611
21612     fi
21613   fi
21614
21615   
21616   echo $ac_n "checking for __builtin_cosl declaration""... $ac_c" 1>&6
21617 echo "configure:21618: checking for __builtin_cosl declaration" >&5
21618   if test x${glibcpp_cv_func___builtin_cosl_use+set} != xset; then
21619     if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_use'+set}'`\" = set"; then
21620   echo $ac_n "(cached) $ac_c" 1>&6
21621 else
21622   
21623       
21624       ac_ext=C
21625 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21626 ac_cpp='$CXXCPP $CPPFLAGS'
21627 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21628 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21629 cross_compiling=$ac_cv_prog_cxx_cross
21630
21631       cat > conftest.$ac_ext <<EOF
21632 #line 21633 "configure"
21633 #include "confdefs.h"
21634 #include <math.h>
21635 int main() {
21636  __builtin_cosl(0);
21637 ; return 0; }
21638 EOF
21639 if { (eval echo configure:21640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21640   rm -rf conftest*
21641   glibcpp_cv_func___builtin_cosl_use=yes
21642 else
21643   echo "configure: failed program was:" >&5
21644   cat conftest.$ac_ext >&5
21645   rm -rf conftest*
21646   glibcpp_cv_func___builtin_cosl_use=no
21647 fi
21648 rm -f conftest*
21649       ac_ext=c
21650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21651 ac_cpp='$CPP $CPPFLAGS'
21652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21654 cross_compiling=$ac_cv_prog_cc_cross
21655
21656     
21657 fi
21658
21659   fi
21660   echo "$ac_t""$glibcpp_cv_func___builtin_cosl_use" 1>&6
21661   if test x$glibcpp_cv_func___builtin_cosl_use = x"yes"; then
21662     echo $ac_n "checking for __builtin_cosl linkage""... $ac_c" 1>&6
21663 echo "configure:21664: checking for __builtin_cosl linkage" >&5
21664     if test x${glibcpp_cv_func___builtin_cosl_link+set} != xset; then
21665       if eval "test \"`echo '$''{'glibcpp_cv_func___builtin_cosl_link'+set}'`\" = set"; then
21666   echo $ac_n "(cached) $ac_c" 1>&6
21667 else
21668   
21669         cat > conftest.$ac_ext <<EOF
21670 #line 21671 "configure"
21671 #include "confdefs.h"
21672 #include <math.h>
21673 int main() {
21674  __builtin_cosl(0);
21675 ; return 0; }
21676 EOF
21677 if { (eval echo configure:21678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21678   rm -rf conftest*
21679   glibcpp_cv_func___builtin_cosl_link=yes
21680 else
21681   echo "configure: failed program was:" >&5
21682   cat conftest.$ac_ext >&5
21683   rm -rf conftest*
21684   glibcpp_cv_func___builtin_cosl_link=no
21685 fi
21686 rm -f conftest*
21687       
21688 fi
21689
21690     fi
21691     echo "$ac_t""$glibcpp_cv_func___builtin_cosl_link" 1>&6
21692     if test x$glibcpp_cv_func___builtin_cosl_link = x"yes"; then
21693       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21694       cat >> confdefs.h <<EOF
21695 #define ${ac_tr_func} 1
21696 EOF
21697
21698     fi
21699   fi
21700
21701
21702               dummyvar=no
21703   if test x$dummyvar = x"yes"; then
21704     cat >> confdefs.h <<\EOF
21705 #define HAVE___BUILTIN_ABS 1
21706 EOF
21707
21708     cat >> confdefs.h <<\EOF
21709 #define HAVE___BUILTIN_LABS 1
21710 EOF
21711
21712     cat >> confdefs.h <<\EOF
21713 #define HAVE___BUILTIN_COS 1
21714 EOF
21715
21716     cat >> confdefs.h <<\EOF
21717 #define HAVE___BUILTIN_COSF 1
21718 EOF
21719
21720     cat >> confdefs.h <<\EOF
21721 #define HAVE___BUILTIN_COSL 1
21722 EOF
21723
21724     cat >> confdefs.h <<\EOF
21725 #define HAVE___BUILTIN_FABS 1
21726 EOF
21727
21728     cat >> confdefs.h <<\EOF
21729 #define HAVE___BUILTIN_FABSF 1
21730 EOF
21731
21732     cat >> confdefs.h <<\EOF
21733 #define HAVE___BUILTIN_FABSL 1
21734 EOF
21735
21736     cat >> confdefs.h <<\EOF
21737 #define HAVE___BUILTIN_SIN 1
21738 EOF
21739
21740     cat >> confdefs.h <<\EOF
21741 #define HAVE___BUILTIN_SINF 1
21742 EOF
21743
21744     cat >> confdefs.h <<\EOF
21745 #define HAVE___BUILTIN_SINL 1
21746 EOF
21747
21748     cat >> confdefs.h <<\EOF
21749 #define HAVE___BUILTIN_SQRT 1
21750 EOF
21751
21752     cat >> confdefs.h <<\EOF
21753 #define HAVE___BUILTIN_SQRTF 1
21754 EOF
21755
21756     cat >> confdefs.h <<\EOF
21757 #define HAVE___BUILTIN_SQRTL 1
21758 EOF
21759
21760   fi
21761
21762   
21763         echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
21764 echo "configure:21765: checking for main in -lm" >&5
21765 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
21766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21767   echo $ac_n "(cached) $ac_c" 1>&6
21768 else
21769   ac_save_LIBS="$LIBS"
21770 LIBS="-lm  $LIBS"
21771 cat > conftest.$ac_ext <<EOF
21772 #line 21773 "configure"
21773 #include "confdefs.h"
21774
21775 int main() {
21776 main()
21777 ; return 0; }
21778 EOF
21779 if { (eval echo configure:21780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21780   rm -rf conftest*
21781   eval "ac_cv_lib_$ac_lib_var=yes"
21782 else
21783   echo "configure: failed program was:" >&5
21784   cat conftest.$ac_ext >&5
21785   rm -rf conftest*
21786   eval "ac_cv_lib_$ac_lib_var=no"
21787 fi
21788 rm -f conftest*
21789 LIBS="$ac_save_LIBS"
21790
21791 fi
21792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21793   echo "$ac_t""yes" 1>&6
21794     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
21795     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
21796   cat >> confdefs.h <<EOF
21797 #define $ac_tr_lib 1
21798 EOF
21799
21800   LIBS="-lm $LIBS"
21801
21802 else
21803   echo "$ac_t""no" 1>&6
21804 fi
21805
21806   for ac_func in nan copysignf
21807 do
21808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21809 echo "configure:21810: checking for $ac_func" >&5
21810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21811   echo $ac_n "(cached) $ac_c" 1>&6
21812 else
21813   cat > conftest.$ac_ext <<EOF
21814 #line 21815 "configure"
21815 #include "confdefs.h"
21816 /* System header to define __stub macros and hopefully few prototypes,
21817     which can conflict with char $ac_func(); below.  */
21818 #include <assert.h>
21819 /* Override any gcc2 internal prototype to avoid an error.  */
21820 /* We use char because int might match the return type of a gcc2
21821     builtin and then its argument prototype would still apply.  */
21822 char $ac_func();
21823
21824 int main() {
21825
21826 /* The GNU C library defines this for functions which it implements
21827     to always fail with ENOSYS.  Some functions are actually named
21828     something starting with __ and the normal name is an alias.  */
21829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21830 choke me
21831 #else
21832 $ac_func();
21833 #endif
21834
21835 ; return 0; }
21836 EOF
21837 if { (eval echo configure:21838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21838   rm -rf conftest*
21839   eval "ac_cv_func_$ac_func=yes"
21840 else
21841   echo "configure: failed program was:" >&5
21842   cat conftest.$ac_ext >&5
21843   rm -rf conftest*
21844   eval "ac_cv_func_$ac_func=no"
21845 fi
21846 rm -f conftest*
21847 fi
21848
21849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21850   echo "$ac_t""yes" 1>&6
21851     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21852   cat >> confdefs.h <<EOF
21853 #define $ac_tr_func 1
21854 EOF
21855  
21856 else
21857   echo "$ac_t""no" 1>&6
21858 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
21859 fi
21860 done
21861
21862
21863     for ac_func in __signbit
21864 do
21865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21866 echo "configure:21867: checking for $ac_func" >&5
21867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21868   echo $ac_n "(cached) $ac_c" 1>&6
21869 else
21870   cat > conftest.$ac_ext <<EOF
21871 #line 21872 "configure"
21872 #include "confdefs.h"
21873 /* System header to define __stub macros and hopefully few prototypes,
21874     which can conflict with char $ac_func(); below.  */
21875 #include <assert.h>
21876 /* Override any gcc2 internal prototype to avoid an error.  */
21877 /* We use char because int might match the return type of a gcc2
21878     builtin and then its argument prototype would still apply.  */
21879 char $ac_func();
21880
21881 int main() {
21882
21883 /* The GNU C library defines this for functions which it implements
21884     to always fail with ENOSYS.  Some functions are actually named
21885     something starting with __ and the normal name is an alias.  */
21886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21887 choke me
21888 #else
21889 $ac_func();
21890 #endif
21891
21892 ; return 0; }
21893 EOF
21894 if { (eval echo configure:21895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21895   rm -rf conftest*
21896   eval "ac_cv_func_$ac_func=yes"
21897 else
21898   echo "configure: failed program was:" >&5
21899   cat conftest.$ac_ext >&5
21900   rm -rf conftest*
21901   eval "ac_cv_func_$ac_func=no"
21902 fi
21903 rm -f conftest*
21904 fi
21905
21906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21907   echo "$ac_t""yes" 1>&6
21908     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21909   cat >> confdefs.h <<EOF
21910 #define $ac_tr_func 1
21911 EOF
21912  
21913 else
21914   echo "$ac_t""no" 1>&6
21915 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
21916 fi
21917 done
21918
21919   for ac_func in __signbitf
21920 do
21921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21922 echo "configure:21923: checking for $ac_func" >&5
21923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21924   echo $ac_n "(cached) $ac_c" 1>&6
21925 else
21926   cat > conftest.$ac_ext <<EOF
21927 #line 21928 "configure"
21928 #include "confdefs.h"
21929 /* System header to define __stub macros and hopefully few prototypes,
21930     which can conflict with char $ac_func(); below.  */
21931 #include <assert.h>
21932 /* Override any gcc2 internal prototype to avoid an error.  */
21933 /* We use char because int might match the return type of a gcc2
21934     builtin and then its argument prototype would still apply.  */
21935 char $ac_func();
21936
21937 int main() {
21938
21939 /* The GNU C library defines this for functions which it implements
21940     to always fail with ENOSYS.  Some functions are actually named
21941     something starting with __ and the normal name is an alias.  */
21942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21943 choke me
21944 #else
21945 $ac_func();
21946 #endif
21947
21948 ; return 0; }
21949 EOF
21950 if { (eval echo configure:21951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21951   rm -rf conftest*
21952   eval "ac_cv_func_$ac_func=yes"
21953 else
21954   echo "configure: failed program was:" >&5
21955   cat conftest.$ac_ext >&5
21956   rm -rf conftest*
21957   eval "ac_cv_func_$ac_func=no"
21958 fi
21959 rm -f conftest*
21960 fi
21961
21962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21963   echo "$ac_t""yes" 1>&6
21964     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21965   cat >> confdefs.h <<EOF
21966 #define $ac_tr_func 1
21967 EOF
21968  
21969 else
21970   echo "$ac_t""no" 1>&6
21971 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
21972 fi
21973 done
21974
21975
21976           if test x$ac_cv_func_copysignl = x"yes"; then
21977     for ac_func in __signbitl
21978 do
21979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21980 echo "configure:21981: checking for $ac_func" >&5
21981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21982   echo $ac_n "(cached) $ac_c" 1>&6
21983 else
21984   cat > conftest.$ac_ext <<EOF
21985 #line 21986 "configure"
21986 #include "confdefs.h"
21987 /* System header to define __stub macros and hopefully few prototypes,
21988     which can conflict with char $ac_func(); below.  */
21989 #include <assert.h>
21990 /* Override any gcc2 internal prototype to avoid an error.  */
21991 /* We use char because int might match the return type of a gcc2
21992     builtin and then its argument prototype would still apply.  */
21993 char $ac_func();
21994
21995 int main() {
21996
21997 /* The GNU C library defines this for functions which it implements
21998     to always fail with ENOSYS.  Some functions are actually named
21999     something starting with __ and the normal name is an alias.  */
22000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22001 choke me
22002 #else
22003 $ac_func();
22004 #endif
22005
22006 ; return 0; }
22007 EOF
22008 if { (eval echo configure:22009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22009   rm -rf conftest*
22010   eval "ac_cv_func_$ac_func=yes"
22011 else
22012   echo "configure: failed program was:" >&5
22013   cat conftest.$ac_ext >&5
22014   rm -rf conftest*
22015   eval "ac_cv_func_$ac_func=no"
22016 fi
22017 rm -f conftest*
22018 fi
22019
22020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22021   echo "$ac_t""yes" 1>&6
22022     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22023   cat >> confdefs.h <<EOF
22024 #define $ac_tr_func 1
22025 EOF
22026  
22027 else
22028   echo "$ac_t""no" 1>&6
22029 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
22030 fi
22031 done
22032
22033   fi
22034
22035   if test -n "$LIBMATHOBJS"; then
22036     need_libmath=yes
22037   fi
22038   
22039
22040   
22041   
22042       echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
22043 echo "configure:22044: checking for mbstate_t" >&5
22044   cat > conftest.$ac_ext <<EOF
22045 #line 22046 "configure"
22046 #include "confdefs.h"
22047 #include <wchar.h>
22048 int main() {
22049 mbstate_t teststate;
22050 ; return 0; }
22051 EOF
22052 if { (eval echo configure:22053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22053   rm -rf conftest*
22054   have_mbstate_t=yes
22055 else
22056   echo "configure: failed program was:" >&5
22057   cat conftest.$ac_ext >&5
22058   rm -rf conftest*
22059   have_mbstate_t=no
22060 fi
22061 rm -f conftest*
22062   echo "$ac_t""$have_mbstate_t" 1>&6
22063   if test x"$have_mbstate_t" = xyes; then
22064     cat >> confdefs.h <<\EOF
22065 #define HAVE_MBSTATE_T 1
22066 EOF
22067
22068   fi
22069
22070     for ac_hdr in wchar.h
22071 do
22072 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22073 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22074 echo "configure:22075: checking for $ac_hdr" >&5
22075 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22076   echo $ac_n "(cached) $ac_c" 1>&6
22077 else
22078   cat > conftest.$ac_ext <<EOF
22079 #line 22080 "configure"
22080 #include "confdefs.h"
22081 #include <$ac_hdr>
22082 EOF
22083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22084 { (eval echo configure:22085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22085 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22086 if test -z "$ac_err"; then
22087   rm -rf conftest*
22088   eval "ac_cv_header_$ac_safe=yes"
22089 else
22090   echo "$ac_err" >&5
22091   echo "configure: failed program was:" >&5
22092   cat conftest.$ac_ext >&5
22093   rm -rf conftest*
22094   eval "ac_cv_header_$ac_safe=no"
22095 fi
22096 rm -f conftest*
22097 fi
22098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22099   echo "$ac_t""yes" 1>&6
22100     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22101   cat >> confdefs.h <<EOF
22102 #define $ac_tr_hdr 1
22103 EOF
22104  ac_has_wchar_h=yes
22105 else
22106   echo "$ac_t""no" 1>&6
22107 ac_has_wchar_h=no
22108 fi
22109 done
22110
22111   for ac_hdr in wctype.h
22112 do
22113 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22114 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22115 echo "configure:22116: checking for $ac_hdr" >&5
22116 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22117   echo $ac_n "(cached) $ac_c" 1>&6
22118 else
22119   cat > conftest.$ac_ext <<EOF
22120 #line 22121 "configure"
22121 #include "confdefs.h"
22122 #include <$ac_hdr>
22123 EOF
22124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22125 { (eval echo configure:22126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22127 if test -z "$ac_err"; then
22128   rm -rf conftest*
22129   eval "ac_cv_header_$ac_safe=yes"
22130 else
22131   echo "$ac_err" >&5
22132   echo "configure: failed program was:" >&5
22133   cat conftest.$ac_ext >&5
22134   rm -rf conftest*
22135   eval "ac_cv_header_$ac_safe=no"
22136 fi
22137 rm -f conftest*
22138 fi
22139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22140   echo "$ac_t""yes" 1>&6
22141     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22142   cat >> confdefs.h <<EOF
22143 #define $ac_tr_hdr 1
22144 EOF
22145  ac_has_wctype_h=yes
22146 else
22147   echo "$ac_t""no" 1>&6
22148 ac_has_wctype_h=no
22149 fi
22150 done
22151
22152
22153     if test x"$ac_has_wchar_h" = xyes &&
22154      test x"$ac_has_wctype_h" = xyes &&
22155      test x"$enable_c_mbchar" != xno; then
22156
22157             echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
22158 echo "configure:22159: checking for WCHAR_MIN and WCHAR_MAX" >&5
22159     cat > conftest.$ac_ext <<EOF
22160 #line 22161 "configure"
22161 #include "confdefs.h"
22162 #include <wchar.h>
22163 int main() {
22164 int i = WCHAR_MIN; int j = WCHAR_MAX;
22165 ; return 0; }
22166 EOF
22167 if { (eval echo configure:22168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22168   rm -rf conftest*
22169   has_wchar_minmax=yes
22170 else
22171   echo "configure: failed program was:" >&5
22172   cat conftest.$ac_ext >&5
22173   rm -rf conftest*
22174   has_wchar_minmax=no
22175 fi
22176 rm -f conftest*
22177     echo "$ac_t""$has_wchar_minmax" 1>&6
22178
22179             echo $ac_n "checking for WEOF""... $ac_c" 1>&6
22180 echo "configure:22181: checking for WEOF" >&5
22181     cat > conftest.$ac_ext <<EOF
22182 #line 22183 "configure"
22183 #include "confdefs.h"
22184
22185       #include <wchar.h>
22186       #include <stddef.h>
22187 int main() {
22188 wint_t i = WEOF;
22189 ; return 0; }
22190 EOF
22191 if { (eval echo configure:22192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22192   rm -rf conftest*
22193   has_weof=yes
22194 else
22195   echo "configure: failed program was:" >&5
22196   cat conftest.$ac_ext >&5
22197   rm -rf conftest*
22198   has_weof=no
22199 fi
22200 rm -f conftest*
22201     echo "$ac_t""$has_weof" 1>&6
22202
22203         ac_wfuncs=yes
22204     for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
22205 do
22206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22207 echo "configure:22208: checking for $ac_func" >&5
22208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22209   echo $ac_n "(cached) $ac_c" 1>&6
22210 else
22211   cat > conftest.$ac_ext <<EOF
22212 #line 22213 "configure"
22213 #include "confdefs.h"
22214 /* System header to define __stub macros and hopefully few prototypes,
22215     which can conflict with char $ac_func(); below.  */
22216 #include <assert.h>
22217 /* Override any gcc2 internal prototype to avoid an error.  */
22218 /* We use char because int might match the return type of a gcc2
22219     builtin and then its argument prototype would still apply.  */
22220 char $ac_func();
22221
22222 int main() {
22223
22224 /* The GNU C library defines this for functions which it implements
22225     to always fail with ENOSYS.  Some functions are actually named
22226     something starting with __ and the normal name is an alias.  */
22227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22228 choke me
22229 #else
22230 $ac_func();
22231 #endif
22232
22233 ; return 0; }
22234 EOF
22235 if { (eval echo configure:22236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22236   rm -rf conftest*
22237   eval "ac_cv_func_$ac_func=yes"
22238 else
22239   echo "configure: failed program was:" >&5
22240   cat conftest.$ac_ext >&5
22241   rm -rf conftest*
22242   eval "ac_cv_func_$ac_func=no"
22243 fi
22244 rm -f conftest*
22245 fi
22246
22247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22248   echo "$ac_t""yes" 1>&6
22249     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22250   cat >> confdefs.h <<EOF
22251 #define $ac_tr_func 1
22252 EOF
22253  
22254 else
22255   echo "$ac_t""no" 1>&6
22256 \
22257     ac_wfuncs=no
22258 fi
22259 done
22260
22261
22262         for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
22263     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
22264     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
22265     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
22266     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
22267     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
22268 do
22269 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22270 echo "configure:22271: checking for $ac_func" >&5
22271 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22272   echo $ac_n "(cached) $ac_c" 1>&6
22273 else
22274   cat > conftest.$ac_ext <<EOF
22275 #line 22276 "configure"
22276 #include "confdefs.h"
22277 /* System header to define __stub macros and hopefully few prototypes,
22278     which can conflict with char $ac_func(); below.  */
22279 #include <assert.h>
22280 /* Override any gcc2 internal prototype to avoid an error.  */
22281 /* We use char because int might match the return type of a gcc2
22282     builtin and then its argument prototype would still apply.  */
22283 char $ac_func();
22284
22285 int main() {
22286
22287 /* The GNU C library defines this for functions which it implements
22288     to always fail with ENOSYS.  Some functions are actually named
22289     something starting with __ and the normal name is an alias.  */
22290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22291 choke me
22292 #else
22293 $ac_func();
22294 #endif
22295
22296 ; return 0; }
22297 EOF
22298 if { (eval echo configure:22299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22299   rm -rf conftest*
22300   eval "ac_cv_func_$ac_func=yes"
22301 else
22302   echo "configure: failed program was:" >&5
22303   cat conftest.$ac_ext >&5
22304   rm -rf conftest*
22305   eval "ac_cv_func_$ac_func=no"
22306 fi
22307 rm -f conftest*
22308 fi
22309
22310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22311   echo "$ac_t""yes" 1>&6
22312     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22313   cat >> confdefs.h <<EOF
22314 #define $ac_tr_func 1
22315 EOF
22316  
22317 else
22318   echo "$ac_t""no" 1>&6
22319 \
22320     ac_wfuncs=no
22321 fi
22322 done
22323
22324
22325     echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
22326 echo "configure:22327: checking for ISO C99 wchar_t support" >&5
22327     if test x"$has_weof" = xyes &&
22328        test x"$has_wchar_minmax" = xyes &&
22329        test x"$ac_wfuncs" = xyes; then
22330       ac_isoC99_wchar_t=yes
22331     else
22332       ac_isoC99_wchar_t=no
22333     fi
22334     echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
22335
22336             ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
22337 echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
22338 echo "configure:22339: checking for iconv.h" >&5
22339 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22340   echo $ac_n "(cached) $ac_c" 1>&6
22341 else
22342   cat > conftest.$ac_ext <<EOF
22343 #line 22344 "configure"
22344 #include "confdefs.h"
22345 #include <iconv.h>
22346 EOF
22347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22348 { (eval echo configure:22349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22350 if test -z "$ac_err"; then
22351   rm -rf conftest*
22352   eval "ac_cv_header_$ac_safe=yes"
22353 else
22354   echo "$ac_err" >&5
22355   echo "configure: failed program was:" >&5
22356   cat conftest.$ac_ext >&5
22357   rm -rf conftest*
22358   eval "ac_cv_header_$ac_safe=no"
22359 fi
22360 rm -f conftest*
22361 fi
22362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22363   echo "$ac_t""yes" 1>&6
22364   ac_has_iconv_h=yes
22365 else
22366   echo "$ac_t""no" 1>&6
22367 ac_has_iconv_h=no
22368 fi
22369
22370     ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
22371 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
22372 echo "configure:22373: checking for langinfo.h" >&5
22373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22374   echo $ac_n "(cached) $ac_c" 1>&6
22375 else
22376   cat > conftest.$ac_ext <<EOF
22377 #line 22378 "configure"
22378 #include "confdefs.h"
22379 #include <langinfo.h>
22380 EOF
22381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22382 { (eval echo configure:22383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22384 if test -z "$ac_err"; then
22385   rm -rf conftest*
22386   eval "ac_cv_header_$ac_safe=yes"
22387 else
22388   echo "$ac_err" >&5
22389   echo "configure: failed program was:" >&5
22390   cat conftest.$ac_ext >&5
22391   rm -rf conftest*
22392   eval "ac_cv_header_$ac_safe=no"
22393 fi
22394 rm -f conftest*
22395 fi
22396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22397   echo "$ac_t""yes" 1>&6
22398   ac_has_langinfo_h=yes
22399 else
22400   echo "$ac_t""no" 1>&6
22401 ac_has_langinfo_h=no
22402 fi
22403
22404
22405         echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
22406 echo "configure:22407: checking for iconv in -liconv" >&5
22407 ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
22408 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
22409   echo $ac_n "(cached) $ac_c" 1>&6
22410 else
22411   ac_save_LIBS="$LIBS"
22412 LIBS="-liconv  $LIBS"
22413 cat > conftest.$ac_ext <<EOF
22414 #line 22415 "configure"
22415 #include "confdefs.h"
22416 /* Override any gcc2 internal prototype to avoid an error.  */
22417 /* We use char because int might match the return type of a gcc2
22418     builtin and then its argument prototype would still apply.  */
22419 char iconv();
22420
22421 int main() {
22422 iconv()
22423 ; return 0; }
22424 EOF
22425 if { (eval echo configure:22426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22426   rm -rf conftest*
22427   eval "ac_cv_lib_$ac_lib_var=yes"
22428 else
22429   echo "configure: failed program was:" >&5
22430   cat conftest.$ac_ext >&5
22431   rm -rf conftest*
22432   eval "ac_cv_lib_$ac_lib_var=no"
22433 fi
22434 rm -f conftest*
22435 LIBS="$ac_save_LIBS"
22436
22437 fi
22438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22439   echo "$ac_t""yes" 1>&6
22440   libiconv="-liconv"
22441 else
22442   echo "$ac_t""no" 1>&6
22443 fi
22444
22445     ac_save_LIBS="$LIBS"
22446     LIBS="$LIBS $libiconv"
22447
22448     for ac_func in iconv_open iconv_close iconv nl_langinfo
22449 do
22450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22451 echo "configure:22452: checking for $ac_func" >&5
22452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22453   echo $ac_n "(cached) $ac_c" 1>&6
22454 else
22455   cat > conftest.$ac_ext <<EOF
22456 #line 22457 "configure"
22457 #include "confdefs.h"
22458 /* System header to define __stub macros and hopefully few prototypes,
22459     which can conflict with char $ac_func(); below.  */
22460 #include <assert.h>
22461 /* Override any gcc2 internal prototype to avoid an error.  */
22462 /* We use char because int might match the return type of a gcc2
22463     builtin and then its argument prototype would still apply.  */
22464 char $ac_func();
22465
22466 int main() {
22467
22468 /* The GNU C library defines this for functions which it implements
22469     to always fail with ENOSYS.  Some functions are actually named
22470     something starting with __ and the normal name is an alias.  */
22471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22472 choke me
22473 #else
22474 $ac_func();
22475 #endif
22476
22477 ; return 0; }
22478 EOF
22479 if { (eval echo configure:22480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22480   rm -rf conftest*
22481   eval "ac_cv_func_$ac_func=yes"
22482 else
22483   echo "configure: failed program was:" >&5
22484   cat conftest.$ac_ext >&5
22485   rm -rf conftest*
22486   eval "ac_cv_func_$ac_func=no"
22487 fi
22488 rm -f conftest*
22489 fi
22490
22491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22492   echo "$ac_t""yes" 1>&6
22493     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22494   cat >> confdefs.h <<EOF
22495 #define $ac_tr_func 1
22496 EOF
22497  \
22498     ac_XPG2funcs=yes
22499 else
22500   echo "$ac_t""no" 1>&6
22501 ac_XPG2funcs=no
22502 fi
22503 done
22504
22505
22506     LIBS="$ac_save_LIBS"
22507
22508     echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
22509 echo "configure:22510: checking for XPG2 wchar_t support" >&5
22510     if test x"$ac_has_iconv_h" = xyes &&
22511        test x"$ac_has_langinfo_h" = xyes &&
22512        test x"$ac_XPG2funcs" = xyes; then
22513       ac_XPG2_wchar_t=yes
22514     else
22515       ac_XPG2_wchar_t=no
22516     fi
22517     echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
22518
22519             if test x"$ac_isoC99_wchar_t" = xyes && 
22520         test x"$ac_XPG2_wchar_t" = xyes; then
22521       cat >> confdefs.h <<\EOF
22522 #define _GLIBCPP_USE_WCHAR_T 1
22523 EOF
22524
22525       enable_wchar_t=yes
22526     fi
22527   fi
22528   echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
22529 echo "configure:22530: checking for enabled wchar_t specializations" >&5
22530   echo "$ac_t""$enable_wchar_t" 1>&6    
22531
22532   
22533   ac_test_CXXFLAGS="${CXXFLAGS+set}"
22534   ac_save_CXXFLAGS="$CXXFLAGS"
22535   CXXFLAGS='-fno-builtins -D_GNU_SOURCE'
22536
22537   
22538   echo $ac_n "checking for strtold declaration""... $ac_c" 1>&6
22539 echo "configure:22540: checking for strtold declaration" >&5
22540   if test x${glibcpp_cv_func_strtold_use+set} != xset; then
22541     if eval "test \"`echo '$''{'glibcpp_cv_func_strtold_use'+set}'`\" = set"; then
22542   echo $ac_n "(cached) $ac_c" 1>&6
22543 else
22544   
22545       
22546       ac_ext=C
22547 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22548 ac_cpp='$CXXCPP $CPPFLAGS'
22549 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22550 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22551 cross_compiling=$ac_cv_prog_cxx_cross
22552
22553       cat > conftest.$ac_ext <<EOF
22554 #line 22555 "configure"
22555 #include "confdefs.h"
22556 #include <stdlib.h>
22557 int main() {
22558  strtold(0, 0);
22559 ; return 0; }
22560 EOF
22561 if { (eval echo configure:22562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22562   rm -rf conftest*
22563   glibcpp_cv_func_strtold_use=yes
22564 else
22565   echo "configure: failed program was:" >&5
22566   cat conftest.$ac_ext >&5
22567   rm -rf conftest*
22568   glibcpp_cv_func_strtold_use=no
22569 fi
22570 rm -f conftest*
22571       ac_ext=c
22572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22573 ac_cpp='$CPP $CPPFLAGS'
22574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22575 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22576 cross_compiling=$ac_cv_prog_cc_cross
22577
22578     
22579 fi
22580
22581   fi
22582   echo "$ac_t""$glibcpp_cv_func_strtold_use" 1>&6
22583   if test x$glibcpp_cv_func_strtold_use = x"yes"; then
22584     for ac_func in strtold
22585 do
22586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22587 echo "configure:22588: checking for $ac_func" >&5
22588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22589   echo $ac_n "(cached) $ac_c" 1>&6
22590 else
22591   cat > conftest.$ac_ext <<EOF
22592 #line 22593 "configure"
22593 #include "confdefs.h"
22594 /* System header to define __stub macros and hopefully few prototypes,
22595     which can conflict with char $ac_func(); below.  */
22596 #include <assert.h>
22597 /* Override any gcc2 internal prototype to avoid an error.  */
22598 /* We use char because int might match the return type of a gcc2
22599     builtin and then its argument prototype would still apply.  */
22600 char $ac_func();
22601
22602 int main() {
22603
22604 /* The GNU C library defines this for functions which it implements
22605     to always fail with ENOSYS.  Some functions are actually named
22606     something starting with __ and the normal name is an alias.  */
22607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22608 choke me
22609 #else
22610 $ac_func();
22611 #endif
22612
22613 ; return 0; }
22614 EOF
22615 if { (eval echo configure:22616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22616   rm -rf conftest*
22617   eval "ac_cv_func_$ac_func=yes"
22618 else
22619   echo "configure: failed program was:" >&5
22620   cat conftest.$ac_ext >&5
22621   rm -rf conftest*
22622   eval "ac_cv_func_$ac_func=no"
22623 fi
22624 rm -f conftest*
22625 fi
22626
22627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22628   echo "$ac_t""yes" 1>&6
22629     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22630   cat >> confdefs.h <<EOF
22631 #define $ac_tr_func 1
22632 EOF
22633  
22634 else
22635   echo "$ac_t""no" 1>&6
22636 fi
22637 done
22638
22639   fi
22640
22641   
22642   echo $ac_n "checking for strtof declaration""... $ac_c" 1>&6
22643 echo "configure:22644: checking for strtof declaration" >&5
22644   if test x${glibcpp_cv_func_strtof_use+set} != xset; then
22645     if eval "test \"`echo '$''{'glibcpp_cv_func_strtof_use'+set}'`\" = set"; then
22646   echo $ac_n "(cached) $ac_c" 1>&6
22647 else
22648   
22649       
22650       ac_ext=C
22651 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22652 ac_cpp='$CXXCPP $CPPFLAGS'
22653 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22654 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22655 cross_compiling=$ac_cv_prog_cxx_cross
22656
22657       cat > conftest.$ac_ext <<EOF
22658 #line 22659 "configure"
22659 #include "confdefs.h"
22660 #include <stdlib.h>
22661 int main() {
22662  strtof(0, 0);
22663 ; return 0; }
22664 EOF
22665 if { (eval echo configure:22666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22666   rm -rf conftest*
22667   glibcpp_cv_func_strtof_use=yes
22668 else
22669   echo "configure: failed program was:" >&5
22670   cat conftest.$ac_ext >&5
22671   rm -rf conftest*
22672   glibcpp_cv_func_strtof_use=no
22673 fi
22674 rm -f conftest*
22675       ac_ext=c
22676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
22677 ac_cpp='$CPP $CPPFLAGS'
22678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
22679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22680 cross_compiling=$ac_cv_prog_cc_cross
22681
22682     
22683 fi
22684
22685   fi
22686   echo "$ac_t""$glibcpp_cv_func_strtof_use" 1>&6
22687   if test x$glibcpp_cv_func_strtof_use = x"yes"; then
22688     for ac_func in strtof
22689 do
22690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22691 echo "configure:22692: checking for $ac_func" >&5
22692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22693   echo $ac_n "(cached) $ac_c" 1>&6
22694 else
22695   cat > conftest.$ac_ext <<EOF
22696 #line 22697 "configure"
22697 #include "confdefs.h"
22698 /* System header to define __stub macros and hopefully few prototypes,
22699     which can conflict with char $ac_func(); below.  */
22700 #include <assert.h>
22701 /* Override any gcc2 internal prototype to avoid an error.  */
22702 /* We use char because int might match the return type of a gcc2
22703     builtin and then its argument prototype would still apply.  */
22704 char $ac_func();
22705
22706 int main() {
22707
22708 /* The GNU C library defines this for functions which it implements
22709     to always fail with ENOSYS.  Some functions are actually named
22710     something starting with __ and the normal name is an alias.  */
22711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22712 choke me
22713 #else
22714 $ac_func();
22715 #endif
22716
22717 ; return 0; }
22718 EOF
22719 if { (eval echo configure:22720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22720   rm -rf conftest*
22721   eval "ac_cv_func_$ac_func=yes"
22722 else
22723   echo "configure: failed program was:" >&5
22724   cat conftest.$ac_ext >&5
22725   rm -rf conftest*
22726   eval "ac_cv_func_$ac_func=no"
22727 fi
22728 rm -f conftest*
22729 fi
22730
22731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22732   echo "$ac_t""yes" 1>&6
22733     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22734   cat >> confdefs.h <<EOF
22735 #define $ac_tr_func 1
22736 EOF
22737  
22738 else
22739   echo "$ac_t""no" 1>&6
22740 fi
22741 done
22742
22743   fi
22744
22745   for ac_func in drand48
22746 do
22747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22748 echo "configure:22749: checking for $ac_func" >&5
22749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22750   echo $ac_n "(cached) $ac_c" 1>&6
22751 else
22752   cat > conftest.$ac_ext <<EOF
22753 #line 22754 "configure"
22754 #include "confdefs.h"
22755 /* System header to define __stub macros and hopefully few prototypes,
22756     which can conflict with char $ac_func(); below.  */
22757 #include <assert.h>
22758 /* Override any gcc2 internal prototype to avoid an error.  */
22759 /* We use char because int might match the return type of a gcc2
22760     builtin and then its argument prototype would still apply.  */
22761 char $ac_func();
22762
22763 int main() {
22764
22765 /* The GNU C library defines this for functions which it implements
22766     to always fail with ENOSYS.  Some functions are actually named
22767     something starting with __ and the normal name is an alias.  */
22768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22769 choke me
22770 #else
22771 $ac_func();
22772 #endif
22773
22774 ; return 0; }
22775 EOF
22776 if { (eval echo configure:22777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22777   rm -rf conftest*
22778   eval "ac_cv_func_$ac_func=yes"
22779 else
22780   echo "configure: failed program was:" >&5
22781   cat conftest.$ac_ext >&5
22782   rm -rf conftest*
22783   eval "ac_cv_func_$ac_func=no"
22784 fi
22785 rm -f conftest*
22786 fi
22787
22788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22789   echo "$ac_t""yes" 1>&6
22790     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22791   cat >> confdefs.h <<EOF
22792 #define $ac_tr_func 1
22793 EOF
22794  
22795 else
22796   echo "$ac_t""no" 1>&6
22797 fi
22798 done
22799
22800
22801   CXXFLAGS="$ac_save_CXXFLAGS"
22802
22803
22804   # For showmanyc_helper().
22805   for ac_hdr in sys/ioctl.h sys/filio.h
22806 do
22807 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22809 echo "configure:22810: checking for $ac_hdr" >&5
22810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22811   echo $ac_n "(cached) $ac_c" 1>&6
22812 else
22813   cat > conftest.$ac_ext <<EOF
22814 #line 22815 "configure"
22815 #include "confdefs.h"
22816 #include <$ac_hdr>
22817 EOF
22818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22819 { (eval echo configure:22820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22821 if test -z "$ac_err"; then
22822   rm -rf conftest*
22823   eval "ac_cv_header_$ac_safe=yes"
22824 else
22825   echo "$ac_err" >&5
22826   echo "configure: failed program was:" >&5
22827   cat conftest.$ac_ext >&5
22828   rm -rf conftest*
22829   eval "ac_cv_header_$ac_safe=no"
22830 fi
22831 rm -f conftest*
22832 fi
22833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22834   echo "$ac_t""yes" 1>&6
22835     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22836   cat >> confdefs.h <<EOF
22837 #define $ac_tr_hdr 1
22838 EOF
22839  
22840 else
22841   echo "$ac_t""no" 1>&6
22842 fi
22843 done
22844
22845   
22846   if eval "test \"`echo '$''{'glibcpp_cv_POLL'+set}'`\" = set"; then
22847   echo $ac_n "(cached) $ac_c" 1>&6
22848 else
22849   
22850     cat > conftest.$ac_ext <<EOF
22851 #line 22852 "configure"
22852 #include "confdefs.h"
22853 #include <poll.h>
22854 int main() {
22855 struct pollfd pfd[1]; pfd[0].events = POLLIN; poll(pfd, 1, 0); 
22856 ; return 0; }
22857 EOF
22858 if { (eval echo configure:22859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22859   rm -rf conftest*
22860   glibcpp_cv_POLL=yes
22861 else
22862   echo "configure: failed program was:" >&5
22863   cat conftest.$ac_ext >&5
22864   rm -rf conftest*
22865   glibcpp_cv_POLL=no
22866 fi
22867 rm -f conftest*
22868   
22869 fi
22870
22871   if test x$glibcpp_cv_POLL = xyes; then
22872     cat >> confdefs.h <<\EOF
22873 #define HAVE_POLL 1
22874 EOF
22875
22876   fi
22877
22878   
22879   if eval "test \"`echo '$''{'glibcpp_cv_S_ISREG'+set}'`\" = set"; then
22880   echo $ac_n "(cached) $ac_c" 1>&6
22881 else
22882   
22883     cat > conftest.$ac_ext <<EOF
22884 #line 22885 "configure"
22885 #include "confdefs.h"
22886 #include <sys/stat.h>
22887 int main() {
22888 struct stat buffer; fstat(0, &buffer); S_ISREG(buffer.st_mode); 
22889 ; return 0; }
22890 EOF
22891 if { (eval echo configure:22892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22892   rm -rf conftest*
22893   glibcpp_cv_S_ISREG=yes
22894 else
22895   echo "configure: failed program was:" >&5
22896   cat conftest.$ac_ext >&5
22897   rm -rf conftest*
22898   glibcpp_cv_S_ISREG=no
22899 fi
22900 rm -f conftest*
22901   
22902 fi
22903
22904   if eval "test \"`echo '$''{'glibcpp_cv_S_IFREG'+set}'`\" = set"; then
22905   echo $ac_n "(cached) $ac_c" 1>&6
22906 else
22907   
22908     cat > conftest.$ac_ext <<EOF
22909 #line 22910 "configure"
22910 #include "confdefs.h"
22911 #include <sys/stat.h>
22912 int main() {
22913 struct stat buffer; fstat(0, &buffer); S_IFREG & buffer.st_mode; 
22914 ; return 0; }
22915 EOF
22916 if { (eval echo configure:22917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22917   rm -rf conftest*
22918   glibcpp_cv_S_IFREG=yes
22919 else
22920   echo "configure: failed program was:" >&5
22921   cat conftest.$ac_ext >&5
22922   rm -rf conftest*
22923   glibcpp_cv_S_IFREG=no
22924 fi
22925 rm -f conftest*
22926   
22927 fi
22928
22929   if test x$glibcpp_cv_S_ISREG = xyes; then
22930     cat >> confdefs.h <<\EOF
22931 #define HAVE_S_ISREG 1
22932 EOF
22933
22934   elif test x$glibcpp_cv_S_IFREG = xyes; then
22935     cat >> confdefs.h <<\EOF
22936 #define HAVE_S_IFREG 1
22937 EOF
22938
22939   fi
22940
22941
22942   
22943   ac_safe=`echo "locale.h" | sed 'y%./+-%__p_%'`
22944 echo $ac_n "checking for locale.h""... $ac_c" 1>&6
22945 echo "configure:22946: checking for locale.h" >&5
22946 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22947   echo $ac_n "(cached) $ac_c" 1>&6
22948 else
22949   cat > conftest.$ac_ext <<EOF
22950 #line 22951 "configure"
22951 #include "confdefs.h"
22952 #include <locale.h>
22953 EOF
22954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22955 { (eval echo configure:22956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22957 if test -z "$ac_err"; then
22958   rm -rf conftest*
22959   eval "ac_cv_header_$ac_safe=yes"
22960 else
22961   echo "$ac_err" >&5
22962   echo "configure: failed program was:" >&5
22963   cat conftest.$ac_ext >&5
22964   rm -rf conftest*
22965   eval "ac_cv_header_$ac_safe=no"
22966 fi
22967 rm -f conftest*
22968 fi
22969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22970   echo "$ac_t""yes" 1>&6
22971   
22972     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
22973 echo "configure:22974: checking for LC_MESSAGES" >&5
22974 if eval "test \"`echo '$''{'ac_cv_val_LC_MESSAGES'+set}'`\" = set"; then
22975   echo $ac_n "(cached) $ac_c" 1>&6
22976 else
22977   cat > conftest.$ac_ext <<EOF
22978 #line 22979 "configure"
22979 #include "confdefs.h"
22980 #include <locale.h>
22981 int main() {
22982 return LC_MESSAGES
22983 ; return 0; }
22984 EOF
22985 if { (eval echo configure:22986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22986   rm -rf conftest*
22987   ac_cv_val_LC_MESSAGES=yes
22988 else
22989   echo "configure: failed program was:" >&5
22990   cat conftest.$ac_ext >&5
22991   rm -rf conftest*
22992   ac_cv_val_LC_MESSAGES=no
22993 fi
22994 rm -f conftest*
22995 fi
22996
22997 echo "$ac_t""$ac_cv_val_LC_MESSAGES" 1>&6
22998     if test $ac_cv_val_LC_MESSAGES = yes; then
22999       cat >> confdefs.h <<\EOF
23000 #define HAVE_LC_MESSAGES 1
23001 EOF
23002
23003     fi
23004   
23005 else
23006   echo "$ac_t""no" 1>&6
23007 fi
23008
23009
23010
23011   cat > conftest.$ac_ext <<EOF
23012 #line 23013 "configure"
23013 #include "confdefs.h"
23014
23015   #include <setjmp.h>
23016   
23017 int main() {
23018 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
23019 ; return 0; }
23020 EOF
23021 if { (eval echo configure:23022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23022   rm -rf conftest*
23023   cat >> confdefs.h <<\EOF
23024 #define HAVE_SIGSETJMP 1
23025 EOF
23026
23027   
23028 else
23029   echo "configure: failed program was:" >&5
23030   cat conftest.$ac_ext >&5
23031 fi
23032 rm -f conftest*
23033
23034   for ac_hdr in unistd.h
23035 do
23036 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23037 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23038 echo "configure:23039: checking for $ac_hdr" >&5
23039 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23040   echo $ac_n "(cached) $ac_c" 1>&6
23041 else
23042   cat > conftest.$ac_ext <<EOF
23043 #line 23044 "configure"
23044 #include "confdefs.h"
23045 #include <$ac_hdr>
23046 EOF
23047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23048 { (eval echo configure:23049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23050 if test -z "$ac_err"; then
23051   rm -rf conftest*
23052   eval "ac_cv_header_$ac_safe=yes"
23053 else
23054   echo "$ac_err" >&5
23055   echo "configure: failed program was:" >&5
23056   cat conftest.$ac_ext >&5
23057   rm -rf conftest*
23058   eval "ac_cv_header_$ac_safe=no"
23059 fi
23060 rm -f conftest*
23061 fi
23062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23063   echo "$ac_t""yes" 1>&6
23064     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23065   cat >> confdefs.h <<EOF
23066 #define $ac_tr_hdr 1
23067 EOF
23068  
23069 else
23070   echo "$ac_t""no" 1>&6
23071 fi
23072 done
23073
23074 for ac_func in getpagesize
23075 do
23076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23077 echo "configure:23078: checking for $ac_func" >&5
23078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23079   echo $ac_n "(cached) $ac_c" 1>&6
23080 else
23081   cat > conftest.$ac_ext <<EOF
23082 #line 23083 "configure"
23083 #include "confdefs.h"
23084 /* System header to define __stub macros and hopefully few prototypes,
23085     which can conflict with char $ac_func(); below.  */
23086 #include <assert.h>
23087 /* Override any gcc2 internal prototype to avoid an error.  */
23088 /* We use char because int might match the return type of a gcc2
23089     builtin and then its argument prototype would still apply.  */
23090 char $ac_func();
23091
23092 int main() {
23093
23094 /* The GNU C library defines this for functions which it implements
23095     to always fail with ENOSYS.  Some functions are actually named
23096     something starting with __ and the normal name is an alias.  */
23097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23098 choke me
23099 #else
23100 $ac_func();
23101 #endif
23102
23103 ; return 0; }
23104 EOF
23105 if { (eval echo configure:23106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23106   rm -rf conftest*
23107   eval "ac_cv_func_$ac_func=yes"
23108 else
23109   echo "configure: failed program was:" >&5
23110   cat conftest.$ac_ext >&5
23111   rm -rf conftest*
23112   eval "ac_cv_func_$ac_func=no"
23113 fi
23114 rm -f conftest*
23115 fi
23116
23117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23118   echo "$ac_t""yes" 1>&6
23119     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23120   cat >> confdefs.h <<EOF
23121 #define $ac_tr_func 1
23122 EOF
23123  
23124 else
23125   echo "$ac_t""no" 1>&6
23126 fi
23127 done
23128
23129 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
23130 echo "configure:23131: checking for working mmap" >&5
23131 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23132   echo $ac_n "(cached) $ac_c" 1>&6
23133 else
23134   if test "$cross_compiling" = yes; then
23135   ac_cv_func_mmap_fixed_mapped=no
23136 else
23137   cat > conftest.$ac_ext <<EOF
23138 #line 23139 "configure"
23139 #include "confdefs.h"
23140
23141 /* Thanks to Mike Haertel and Jim Avera for this test.
23142    Here is a matrix of mmap possibilities:
23143         mmap private not fixed
23144         mmap private fixed at somewhere currently unmapped
23145         mmap private fixed at somewhere already mapped
23146         mmap shared not fixed
23147         mmap shared fixed at somewhere currently unmapped
23148         mmap shared fixed at somewhere already mapped
23149    For private mappings, we should verify that changes cannot be read()
23150    back from the file, nor mmap's back from the file at a different
23151    address.  (There have been systems where private was not correctly
23152    implemented like the infamous i386 svr4.0, and systems where the
23153    VM page cache was not coherent with the filesystem buffer cache
23154    like early versions of FreeBSD and possibly contemporary NetBSD.)
23155    For shared mappings, we should conversely verify that changes get
23156    propogated back to all the places they're supposed to be.
23157
23158    Grep wants private fixed already mapped.
23159    The main things grep needs to know about mmap are:
23160    * does it exist and is it safe to write into the mmap'd area
23161    * how to use it (BSD variants)  */
23162 #include <sys/types.h>
23163 #include <fcntl.h>
23164 #include <sys/mman.h>
23165
23166 /* This mess was copied from the GNU getpagesize.h.  */
23167 #ifndef HAVE_GETPAGESIZE
23168 # ifdef HAVE_UNISTD_H
23169 #  include <unistd.h>
23170 # endif
23171
23172 /* Assume that all systems that can run configure have sys/param.h.  */
23173 # ifndef HAVE_SYS_PARAM_H
23174 #  define HAVE_SYS_PARAM_H 1
23175 # endif
23176
23177 # ifdef _SC_PAGESIZE
23178 #  define getpagesize() sysconf(_SC_PAGESIZE)
23179 # else /* no _SC_PAGESIZE */
23180 #  ifdef HAVE_SYS_PARAM_H
23181 #   include <sys/param.h>
23182 #   ifdef EXEC_PAGESIZE
23183 #    define getpagesize() EXEC_PAGESIZE
23184 #   else /* no EXEC_PAGESIZE */
23185 #    ifdef NBPG
23186 #     define getpagesize() NBPG * CLSIZE
23187 #     ifndef CLSIZE
23188 #      define CLSIZE 1
23189 #     endif /* no CLSIZE */
23190 #    else /* no NBPG */
23191 #     ifdef NBPC
23192 #      define getpagesize() NBPC
23193 #     else /* no NBPC */
23194 #      ifdef PAGESIZE
23195 #       define getpagesize() PAGESIZE
23196 #      endif /* PAGESIZE */
23197 #     endif /* no NBPC */
23198 #    endif /* no NBPG */
23199 #   endif /* no EXEC_PAGESIZE */
23200 #  else /* no HAVE_SYS_PARAM_H */
23201 #   define getpagesize() 8192   /* punt totally */
23202 #  endif /* no HAVE_SYS_PARAM_H */
23203 # endif /* no _SC_PAGESIZE */
23204
23205 #endif /* no HAVE_GETPAGESIZE */
23206
23207 #ifdef __cplusplus
23208 extern "C" { void *malloc(unsigned); }
23209 #else
23210 char *malloc();
23211 #endif
23212
23213 int
23214 main()
23215 {
23216         char *data, *data2, *data3;
23217         int i, pagesize;
23218         int fd;
23219
23220         pagesize = getpagesize();
23221
23222         /*
23223          * First, make a file with some known garbage in it.
23224          */
23225         data = malloc(pagesize);
23226         if (!data)
23227                 exit(1);
23228         for (i = 0; i < pagesize; ++i)
23229                 *(data + i) = rand();
23230         umask(0);
23231         fd = creat("conftestmmap", 0600);
23232         if (fd < 0)
23233                 exit(1);
23234         if (write(fd, data, pagesize) != pagesize)
23235                 exit(1);
23236         close(fd);
23237
23238         /*
23239          * Next, try to mmap the file at a fixed address which
23240          * already has something else allocated at it.  If we can,
23241          * also make sure that we see the same garbage.
23242          */
23243         fd = open("conftestmmap", O_RDWR);
23244         if (fd < 0)
23245                 exit(1);
23246         data2 = malloc(2 * pagesize);
23247         if (!data2)
23248                 exit(1);
23249         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
23250         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
23251             MAP_PRIVATE | MAP_FIXED, fd, 0L))
23252                 exit(1);
23253         for (i = 0; i < pagesize; ++i)
23254                 if (*(data + i) != *(data2 + i))
23255                         exit(1);
23256
23257         /*
23258          * Finally, make sure that changes to the mapped area
23259          * do not percolate back to the file as seen by read().
23260          * (This is a bug on some variants of i386 svr4.0.)
23261          */
23262         for (i = 0; i < pagesize; ++i)
23263                 *(data2 + i) = *(data2 + i) + 1;
23264         data3 = malloc(pagesize);
23265         if (!data3)
23266                 exit(1);
23267         if (read(fd, data3, pagesize) != pagesize)
23268                 exit(1);
23269         for (i = 0; i < pagesize; ++i)
23270                 if (*(data + i) != *(data3 + i))
23271                         exit(1);
23272         close(fd);
23273         unlink("conftestmmap");
23274         exit(0);
23275 }
23276
23277 EOF
23278 if { (eval echo configure:23279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23279 then
23280   ac_cv_func_mmap_fixed_mapped=yes
23281 else
23282   echo "configure: failed program was:" >&5
23283   cat conftest.$ac_ext >&5
23284   rm -fr conftest*
23285   ac_cv_func_mmap_fixed_mapped=no
23286 fi
23287 rm -fr conftest*
23288 fi
23289
23290 fi
23291
23292 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
23293 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23294   cat >> confdefs.h <<\EOF
23295 #define HAVE_MMAP 1
23296 EOF
23297
23298 fi
23299
23300
23301   # Establish limits on memory usage during 'make check'
23302   
23303   
23304   setrlimit_have_headers=yes
23305   for ac_hdr in unistd.h sys/time.h sys/resource.h
23306 do
23307 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23308 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23309 echo "configure:23310: checking for $ac_hdr" >&5
23310 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
23311   echo $ac_n "(cached) $ac_c" 1>&6
23312 else
23313   cat > conftest.$ac_ext <<EOF
23314 #line 23315 "configure"
23315 #include "confdefs.h"
23316 #include <$ac_hdr>
23317 EOF
23318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23319 { (eval echo configure:23320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23321 if test -z "$ac_err"; then
23322   rm -rf conftest*
23323   eval "ac_cv_header_$ac_safe=yes"
23324 else
23325   echo "$ac_err" >&5
23326   echo "configure: failed program was:" >&5
23327   cat conftest.$ac_ext >&5
23328   rm -rf conftest*
23329   eval "ac_cv_header_$ac_safe=no"
23330 fi
23331 rm -f conftest*
23332 fi
23333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23334   echo "$ac_t""yes" 1>&6
23335     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23336   cat >> confdefs.h <<EOF
23337 #define $ac_tr_hdr 1
23338 EOF
23339  
23340 else
23341   echo "$ac_t""no" 1>&6
23342 setrlimit_have_headers=no
23343 fi
23344 done
23345
23346   # If don't have the headers, then we can't run the tests now, and we
23347   # won't be seeing any of these during testsuite compilation.
23348   if test $setrlimit_have_headers = yes; then
23349     # Can't do these in a loop, else the resulting syntax is wrong.
23350     
23351   cat > conftest.$ac_ext <<EOF
23352 #line 23353 "configure"
23353 #include "confdefs.h"
23354 #include <unistd.h>
23355                   #include <sys/time.h>
23356                   #include <sys/resource.h>
23357                  
23358 int main() {
23359  int f = RLIMIT_DATA ; 
23360 ; return 0; }
23361 EOF
23362 if { (eval echo configure:23363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23363   rm -rf conftest*
23364   glibcpp_mresult=1
23365 else
23366   echo "configure: failed program was:" >&5
23367   cat conftest.$ac_ext >&5
23368   rm -rf conftest*
23369   glibcpp_mresult=0
23370 fi
23371 rm -f conftest*
23372   cat >> confdefs.h <<EOF
23373 #define HAVE_MEMLIMIT_DATA $glibcpp_mresult
23374 EOF
23375
23376
23377     
23378   cat > conftest.$ac_ext <<EOF
23379 #line 23380 "configure"
23380 #include "confdefs.h"
23381 #include <unistd.h>
23382                   #include <sys/time.h>
23383                   #include <sys/resource.h>
23384                  
23385 int main() {
23386  int f = RLIMIT_RSS ; 
23387 ; return 0; }
23388 EOF
23389 if { (eval echo configure:23390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23390   rm -rf conftest*
23391   glibcpp_mresult=1
23392 else
23393   echo "configure: failed program was:" >&5
23394   cat conftest.$ac_ext >&5
23395   rm -rf conftest*
23396   glibcpp_mresult=0
23397 fi
23398 rm -f conftest*
23399   cat >> confdefs.h <<EOF
23400 #define HAVE_MEMLIMIT_RSS $glibcpp_mresult
23401 EOF
23402
23403
23404     
23405   cat > conftest.$ac_ext <<EOF
23406 #line 23407 "configure"
23407 #include "confdefs.h"
23408 #include <unistd.h>
23409                   #include <sys/time.h>
23410                   #include <sys/resource.h>
23411                  
23412 int main() {
23413  int f = RLIMIT_VMEM ; 
23414 ; return 0; }
23415 EOF
23416 if { (eval echo configure:23417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23417   rm -rf conftest*
23418   glibcpp_mresult=1
23419 else
23420   echo "configure: failed program was:" >&5
23421   cat conftest.$ac_ext >&5
23422   rm -rf conftest*
23423   glibcpp_mresult=0
23424 fi
23425 rm -f conftest*
23426   cat >> confdefs.h <<EOF
23427 #define HAVE_MEMLIMIT_VMEM $glibcpp_mresult
23428 EOF
23429
23430
23431     
23432   cat > conftest.$ac_ext <<EOF
23433 #line 23434 "configure"
23434 #include "confdefs.h"
23435 #include <unistd.h>
23436                   #include <sys/time.h>
23437                   #include <sys/resource.h>
23438                  
23439 int main() {
23440  int f = RLIMIT_AS ; 
23441 ; return 0; }
23442 EOF
23443 if { (eval echo configure:23444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23444   rm -rf conftest*
23445   glibcpp_mresult=1
23446 else
23447   echo "configure: failed program was:" >&5
23448   cat conftest.$ac_ext >&5
23449   rm -rf conftest*
23450   glibcpp_mresult=0
23451 fi
23452 rm -f conftest*
23453   cat >> confdefs.h <<EOF
23454 #define HAVE_MEMLIMIT_AS $glibcpp_mresult
23455 EOF
23456
23457
23458
23459     # Check for rlimit, setrlimit.
23460     if eval "test \"`echo '$''{'ac_setrlimit'+set}'`\" = set"; then
23461   echo $ac_n "(cached) $ac_c" 1>&6
23462 else
23463   
23464       cat > conftest.$ac_ext <<EOF
23465 #line 23466 "configure"
23466 #include "confdefs.h"
23467 #include <unistd.h>
23468                   #include <sys/time.h>
23469                   #include <sys/resource.h>
23470                      
23471 int main() {
23472  struct rlimit r; setrlimit(0, &r);
23473 ; return 0; }
23474 EOF
23475 if { (eval echo configure:23476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23476   rm -rf conftest*
23477   ac_setrlimit=yes
23478 else
23479   echo "configure: failed program was:" >&5
23480   cat conftest.$ac_ext >&5
23481   rm -rf conftest*
23482   ac_setrlimit=no
23483 fi
23484 rm -f conftest*
23485     
23486 fi
23487
23488   fi
23489
23490   echo $ac_n "checking for testsuite memory limit support""... $ac_c" 1>&6
23491 echo "configure:23492: checking for testsuite memory limit support" >&5
23492   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
23493     ac_mem_limits=yes
23494     cat >> confdefs.h <<\EOF
23495 #define _GLIBCPP_MEM_LIMITS 1
23496 EOF
23497
23498   else
23499     ac_mem_limits=no
23500   fi
23501   echo "$ac_t""$ac_mem_limits" 1>&6
23502
23503
23504   # Look for setenv, so that extended locale tests can be performed.
23505   
23506   echo $ac_n "checking for setenv declaration""... $ac_c" 1>&6
23507 echo "configure:23508: checking for setenv declaration" >&5
23508   if test x${glibcpp_cv_func_setenv_use+set} != xset; then
23509     if eval "test \"`echo '$''{'glibcpp_cv_func_setenv_use'+set}'`\" = set"; then
23510   echo $ac_n "(cached) $ac_c" 1>&6
23511 else
23512   
23513       
23514       ac_ext=C
23515 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23516 ac_cpp='$CXXCPP $CPPFLAGS'
23517 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23518 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23519 cross_compiling=$ac_cv_prog_cxx_cross
23520
23521       cat > conftest.$ac_ext <<EOF
23522 #line 23523 "configure"
23523 #include "confdefs.h"
23524 #include <stdlib.h>
23525 int main() {
23526  setenv(0, 0, 0);
23527 ; return 0; }
23528 EOF
23529 if { (eval echo configure:23530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23530   rm -rf conftest*
23531   glibcpp_cv_func_setenv_use=yes
23532 else
23533   echo "configure: failed program was:" >&5
23534   cat conftest.$ac_ext >&5
23535   rm -rf conftest*
23536   glibcpp_cv_func_setenv_use=no
23537 fi
23538 rm -f conftest*
23539       ac_ext=c
23540 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23541 ac_cpp='$CPP $CPPFLAGS'
23542 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23543 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23544 cross_compiling=$ac_cv_prog_cc_cross
23545
23546     
23547 fi
23548
23549   fi
23550   echo "$ac_t""$glibcpp_cv_func_setenv_use" 1>&6
23551   if test x$glibcpp_cv_func_setenv_use = x"yes"; then
23552     for ac_func in setenv
23553 do
23554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23555 echo "configure:23556: checking for $ac_func" >&5
23556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23557   echo $ac_n "(cached) $ac_c" 1>&6
23558 else
23559   cat > conftest.$ac_ext <<EOF
23560 #line 23561 "configure"
23561 #include "confdefs.h"
23562 /* System header to define __stub macros and hopefully few prototypes,
23563     which can conflict with char $ac_func(); below.  */
23564 #include <assert.h>
23565 /* Override any gcc2 internal prototype to avoid an error.  */
23566 /* We use char because int might match the return type of a gcc2
23567     builtin and then its argument prototype would still apply.  */
23568 char $ac_func();
23569
23570 int main() {
23571
23572 /* The GNU C library defines this for functions which it implements
23573     to always fail with ENOSYS.  Some functions are actually named
23574     something starting with __ and the normal name is an alias.  */
23575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23576 choke me
23577 #else
23578 $ac_func();
23579 #endif
23580
23581 ; return 0; }
23582 EOF
23583 if { (eval echo configure:23584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23584   rm -rf conftest*
23585   eval "ac_cv_func_$ac_func=yes"
23586 else
23587   echo "configure: failed program was:" >&5
23588   cat conftest.$ac_ext >&5
23589   rm -rf conftest*
23590   eval "ac_cv_func_$ac_func=no"
23591 fi
23592 rm -f conftest*
23593 fi
23594
23595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23596   echo "$ac_t""yes" 1>&6
23597     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23598   cat >> confdefs.h <<EOF
23599 #define $ac_tr_func 1
23600 EOF
23601  
23602 else
23603   echo "$ac_t""no" 1>&6
23604 fi
23605 done
23606
23607   fi
23608
23609
23610   # Export file names for ABI checking.
23611   baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
23612   
23613
23614     case "$target" in
23615     *-*-cygwin* ) enable_abi_check=no ;;
23616     * ) enable_abi_check=yes ;;
23617   esac
23618
23619 fi
23620
23621 # This depends on the possibly-skipped linker test above.
23622 # Check whether --enable-symvers or --disable-symvers was given.
23623 if test "${enable_symvers+set}" = set; then
23624   enableval="$enable_symvers"
23625   case "$enableval" in
23626  yes) enable_symvers=yes ;;
23627  no)  enable_symvers=no ;;
23628  # other names here, just as sanity checks
23629  #gnu|sun|etcetera) enable_symvers=$enableval ;;
23630  gnu) enable_symvers=$enableval ;;
23631  *)   { echo "configure: error: Unknown argument to enable/disable symvers" 1>&2; exit 1; } ;;
23632  esac
23633 else
23634   enable_symvers=yes
23635 fi
23636
23637 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
23638 # don't know enough about $LD to do tricks...
23639 if test x$enable_shared = xno ||
23640         test "x$LD" = x ||
23641         test x$glibcpp_gnu_ld_version = x; then
23642   enable_symvers=no
23643 fi
23644
23645 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
23646 if test $enable_symvers != no; then
23647   echo $ac_n "checking for shared libgcc""... $ac_c" 1>&6
23648 echo "configure:23649: checking for shared libgcc" >&5
23649   ac_save_CFLAGS="$CFLAGS"
23650   CFLAGS=' -lgcc_s'
23651   cat > conftest.$ac_ext <<EOF
23652 #line 23653 "configure"
23653 #include "confdefs.h"
23654
23655 int main() {
23656 return 0
23657 ; return 0; }
23658 EOF
23659 if { (eval echo configure:23660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23660   rm -rf conftest*
23661   glibcpp_shared_libgcc=yes
23662 else
23663   echo "configure: failed program was:" >&5
23664   cat conftest.$ac_ext >&5
23665   rm -rf conftest*
23666   glibcpp_shared_libgcc=no
23667 fi
23668 rm -f conftest*
23669   CFLAGS="$ac_save_CFLAGS"
23670   echo "$ac_t""$glibcpp_shared_libgcc" 1>&6
23671 fi
23672
23673 # For GNU ld, we need at least this version.  It's 2.12 in the same format
23674 # as the tested-for version.  See GLIBCPP_CHECK_LINKER_FEATURES for more.
23675 glibcpp_min_gnu_ld_version=21200
23676
23677 # Check to see if unspecified "yes" value can win, given results
23678 # above.
23679 if test $enable_symvers = yes ; then
23680   if test $with_gnu_ld = yes &&
23681     test $glibcpp_shared_libgcc = yes ;
23682   then
23683     if test $glibcpp_gnu_ld_version -ge $glibcpp_min_gnu_ld_version ; then
23684         enable_symvers=gnu
23685     else
23686       ac_test_CFLAGS="${CFLAGS+set}"
23687       ac_save_CFLAGS="$CFLAGS"
23688       CFLAGS='-shared -Wl,--version-script,conftest.map'
23689       enable_symvers=no
23690       
23691       echo 'FOO { global: f[a-z]o; local: *; };' > conftest.map
23692       
23693       cat > conftest.$ac_ext <<EOF
23694 #line 23695 "configure"
23695 #include "confdefs.h"
23696 int foo;
23697 int main() {
23698
23699 ; return 0; }
23700 EOF
23701 if { (eval echo configure:23702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23702   rm -rf conftest*
23703   enable_symvers=gnu
23704 else
23705   echo "configure: failed program was:" >&5
23706   cat conftest.$ac_ext >&5
23707 fi
23708 rm -f conftest*
23709       if test "$ac_test_CFLAGS" = set; then
23710         CFLAGS="$ac_save_CFLAGS"
23711       else
23712         # this is the suspicious part
23713         CFLAGS=''
23714       fi
23715       rm -f conftest.map
23716     fi
23717   else
23718     # just fail for now
23719     enable_symvers=no
23720   fi
23721 fi
23722
23723 case $enable_symvers in
23724   no)
23725       SYMVER_MAP=config/linker-map.dummy
23726       ;;
23727   gnu)
23728       SYMVER_MAP=config/linker-map.gnu
23729       cat >> confdefs.h <<\EOF
23730 #define _GLIBCPP_SYMVER 1
23731 EOF
23732
23733       ;;
23734 esac
23735
23736
23737
23738
23739 if test $enable_symvers != no; then
23740   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE=
23741   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE='#'
23742 else
23743   GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE='#'
23744   GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE=
23745 fi
23746 echo $ac_n "checking versioning on shared library symbols""... $ac_c" 1>&6
23747 echo "configure:23748: checking versioning on shared library symbols" >&5
23748 echo "$ac_t""$enable_symvers" 1>&6
23749
23750
23751 # Propagate the target-specific source directories through the build chain.
23752 # (Nothing currently uses cpu_include_dir directly; only ATOMICITYH 
23753 # uses it, and it only gets used in this file.)
23754 OS_INC_SRCDIR=config/${os_include_dir}
23755 ATOMICITY_INC_SRCDIR=config/${ATOMICITYH}
23756
23757
23758
23759 # Set up cross-compile flags and all AM_CONDITIONALs.
23760
23761
23762
23763 if test "$CANADIAN" = yes; then
23764   CANADIAN_TRUE=
23765   CANADIAN_FALSE='#'
23766 else
23767   CANADIAN_TRUE='#'
23768   CANADIAN_FALSE=
23769 fi
23770
23771
23772 if test "$need_libmath" = yes; then
23773   GLIBCPP_BUILD_LIBMATH_TRUE=
23774   GLIBCPP_BUILD_LIBMATH_FALSE='#'
23775 else
23776   GLIBCPP_BUILD_LIBMATH_TRUE='#'
23777   GLIBCPP_BUILD_LIBMATH_FALSE=
23778 fi
23779
23780
23781 if test "$enable_wchar_t" = yes; then
23782   GLIBCPP_TEST_WCHAR_T_TRUE=
23783   GLIBCPP_TEST_WCHAR_T_FALSE='#'
23784 else
23785   GLIBCPP_TEST_WCHAR_T_TRUE='#'
23786   GLIBCPP_TEST_WCHAR_T_FALSE=
23787 fi      
23788 # Don't do ABI checking unless native.
23789
23790
23791 if ${GLIBCPP_IS_CROSS_COMPILING} && test "$enable_abi_check" = yes ; then
23792   GLIBCPP_BUILD_ABI_CHECK_TRUE=
23793   GLIBCPP_BUILD_ABI_CHECK_FALSE='#'
23794 else
23795   GLIBCPP_BUILD_ABI_CHECK_TRUE='#'
23796   GLIBCPP_BUILD_ABI_CHECK_FALSE=
23797 fi
23798  
23799 cat > confcache <<\EOF
23800 # This file is a shell script that caches the results of configure
23801 # tests run on this system so they can be shared between configure
23802 # scripts and configure runs.  It is not useful on other systems.
23803 # If it contains results you don't want to keep, you may remove or edit it.
23804 #
23805 # By default, configure uses ./config.cache as the cache file,
23806 # creating it if it does not exist already.  You can give configure
23807 # the --cache-file=FILE option to use a different cache file; that is
23808 # what configure does when it calls configure scripts in
23809 # subdirectories, so they share the cache.
23810 # Giving --cache-file=/dev/null disables caching, for debugging configure.
23811 # config.status only pays attention to the cache file if you give it the
23812 # --recheck option to rerun configure.
23813 #
23814 EOF
23815 # The following way of writing the cache mishandles newlines in values,
23816 # but we know of no workaround that is simple, portable, and efficient.
23817 # So, don't put newlines in cache variables' values.
23818 # Ultrix sh set writes to stderr and can't be redirected directly,
23819 # and sets the high bit in the cache file unless we assign to the vars.
23820 (set) 2>&1 |
23821   case `(ac_space=' '; set | grep ac_space) 2>&1` in
23822   *ac_space=\ *)
23823     # `set' does not quote correctly, so add quotes (double-quote substitution
23824     # turns \\\\ into \\, and sed turns \\ into \).
23825     sed -n \
23826       -e "s/'/'\\\\''/g" \
23827       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
23828     ;;
23829   *)
23830     # `set' quotes correctly as required by POSIX, so do not add quotes.
23831     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
23832     ;;
23833   esac >> confcache
23834 if cmp -s $cache_file confcache; then
23835   :
23836 else
23837   if test -w $cache_file; then
23838     echo "updating cache $cache_file"
23839     cat confcache > $cache_file
23840   else
23841     echo "not updating unwritable cache $cache_file"
23842   fi
23843 fi
23844 rm -f confcache
23845
23846
23847 if test "${multilib}" = "yes"; then
23848   multilib_arg="--enable-multilib"
23849 else
23850   multilib_arg=
23851 fi
23852
23853 # Export all the install information
23854
23855 # Assumes glibcpp_builddir, glibcpp_srcdir are alreay set up and
23856 # exported correctly in GLIBCPP_CONFIGURE.
23857 glibcpp_toolexecdir=no
23858 glibcpp_toolexeclibdir=no
23859 glibcpp_prefixdir=${prefix}
23860
23861 # Process the option --with-gxx-include-dir=<path to include-files directory>
23862 echo $ac_n "checking for --with-gxx-include-dir""... $ac_c" 1>&6
23863 echo "configure:23864: checking for --with-gxx-include-dir" >&5
23864 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
23865 if test "${with_gxx_include_dir+set}" = set; then
23866   withval="$with_gxx_include_dir"
23867   case "${withval}" in
23868   yes)
23869     { echo "configure: error: Missing directory for --with-gxx-include-dir" 1>&2; exit 1; }
23870     gxx_include_dir=no
23871     ;;
23872   no)
23873     gxx_include_dir=no
23874     ;;
23875   *)
23876     gxx_include_dir=${withval}
23877     ;;
23878 esac
23879 else
23880   gxx_include_dir=no
23881 fi
23882
23883 echo "$ac_t""$gxx_include_dir" 1>&6
23884
23885 # Process the option "--enable-version-specific-runtime-libs"
23886 echo $ac_n "checking for --enable-version-specific-runtime-libs""... $ac_c" 1>&6
23887 echo "configure:23888: checking for --enable-version-specific-runtime-libs" >&5
23888 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23889 if test "${enable_version_specific_runtime_libs+set}" = set; then
23890   enableval="$enable_version_specific_runtime_libs"
23891   case "$enableval" in
23892  yes) version_specific_libs=yes ;;
23893  no)  version_specific_libs=no ;;
23894  *)   { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
23895  esac
23896 else
23897   version_specific_libs=no
23898 fi
23899 # Option set, now we can test it.
23900 echo "$ac_t""$version_specific_libs" 1>&6
23901
23902 # Default case for install directory for include files.
23903 if test $version_specific_libs = no && test $gxx_include_dir = no; then
23904   gxx_include_dir='$(prefix)'/include/c++/${gcc_version}
23905 fi
23906
23907 # Version-specific runtime libs processing.
23908 if test $version_specific_libs = yes; then
23909   # Need the gcc compiler version to know where to install libraries
23910   # and header files if --enable-version-specific-runtime-libs option
23911   # is selected.
23912   if test x"$gxx_include_dir" = x"no"; then
23913     gxx_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include/c++
23914   fi
23915   glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23916   glibcpp_toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
23917 fi
23918
23919 # Calculate glibcpp_toolexecdir, glibcpp_toolexeclibdir
23920 # Install a library built with a cross compiler in tooldir, not libdir.
23921 if test x"$glibcpp_toolexecdir" = x"no"; then
23922   if test -n "$with_cross_host" &&
23923      test x"$with_cross_host" != x"no"; then
23924     glibcpp_toolexecdir='$(exec_prefix)/$(target_alias)'
23925     glibcpp_toolexeclibdir='$(toolexecdir)/lib'
23926   else
23927     glibcpp_toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
23928     glibcpp_toolexeclibdir='$(libdir)'
23929   fi
23930   multi_os_directory=`$CC -print-multi-os-directory`
23931   case $multi_os_directory in
23932   .) ;; # Avoid trailing /.
23933   *) glibcpp_toolexeclibdir=$glibcpp_toolexeclibdir/$multi_os_directory ;;
23934   esac
23935 fi
23936
23937 echo $ac_n "checking for install location""... $ac_c" 1>&6
23938 echo "configure:23939: checking for install location" >&5
23939 echo "$ac_t""$gxx_include_dir" 1>&6
23940
23941
23942
23943
23944
23945
23946
23947 # Export all the include and flag information to Makefiles.
23948
23949   # Root level of the build directory include sources.
23950   GLIBCPP_INCLUDES="-I${glibcpp_builddir}/include/${target_alias} -I${glibcpp_builddir}/include"
23951
23952   # Passed down for canadian crosses.
23953   if test x"$CANADIAN" = xyes; then
23954     TOPLEVEL_INCLUDES='-I$(includedir)'
23955   fi
23956
23957   LIBMATH_INCLUDES='-I$(top_srcdir)/libmath'
23958
23959   LIBSUPCXX_INCLUDES='-I$(top_srcdir)/libsupc++'
23960
23961   if test x"$need_libio" = xyes; then
23962     LIBIO_INCLUDES='-I$(top_builddir)/libio -I$(top_srcdir)/libio'
23963     
23964   fi
23965
23966   # Now, export this to all the little Makefiles....
23967   
23968   
23969   
23970   
23971
23972
23973   # Optimization flags that are probably a good idea for thrill-seekers. Just
23974   # uncomment the lines below and make, everything else is ready to go...
23975   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
23976   OPTIMIZE_CXXFLAGS=
23977   
23978
23979   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings'
23980   
23981
23982
23983 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
23984    grep "enable shared" > /dev/null; then
23985   LIBSUPCXX_PICFLAGS=-prefer-pic
23986 else
23987   LIBSUPCXX_PICFLAGS=
23988 fi
23989
23990
23991 # Generate the various Makefiles, include files, and scripts.
23992 # NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
23993 # and libsupc++/Makefile.am so that multilib installs will end up
23994 # installed in the correct place. To work around this not being passed
23995 # down from config-ml.in -> top_srcdir/Makefile.am ->
23996 # top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
23997 trap '' 1 2 15
23998 cat > confcache <<\EOF
23999 # This file is a shell script that caches the results of configure
24000 # tests run on this system so they can be shared between configure
24001 # scripts and configure runs.  It is not useful on other systems.
24002 # If it contains results you don't want to keep, you may remove or edit it.
24003 #
24004 # By default, configure uses ./config.cache as the cache file,
24005 # creating it if it does not exist already.  You can give configure
24006 # the --cache-file=FILE option to use a different cache file; that is
24007 # what configure does when it calls configure scripts in
24008 # subdirectories, so they share the cache.
24009 # Giving --cache-file=/dev/null disables caching, for debugging configure.
24010 # config.status only pays attention to the cache file if you give it the
24011 # --recheck option to rerun configure.
24012 #
24013 EOF
24014 # The following way of writing the cache mishandles newlines in values,
24015 # but we know of no workaround that is simple, portable, and efficient.
24016 # So, don't put newlines in cache variables' values.
24017 # Ultrix sh set writes to stderr and can't be redirected directly,
24018 # and sets the high bit in the cache file unless we assign to the vars.
24019 (set) 2>&1 |
24020   case `(ac_space=' '; set | grep ac_space) 2>&1` in
24021   *ac_space=\ *)
24022     # `set' does not quote correctly, so add quotes (double-quote substitution
24023     # turns \\\\ into \\, and sed turns \\ into \).
24024     sed -n \
24025       -e "s/'/'\\\\''/g" \
24026       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
24027     ;;
24028   *)
24029     # `set' quotes correctly as required by POSIX, so do not add quotes.
24030     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
24031     ;;
24032   esac >> confcache
24033 if cmp -s $cache_file confcache; then
24034   :
24035 else
24036   if test -w $cache_file; then
24037     echo "updating cache $cache_file"
24038     cat confcache > $cache_file
24039   else
24040     echo "not updating unwritable cache $cache_file"
24041   fi
24042 fi
24043 rm -f confcache
24044
24045 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24046
24047 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24048 # Let make expand exec_prefix.
24049 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24050
24051 # Any assignment to VPATH causes Sun make to only execute
24052 # the first set of double-colon rules, so remove it if not needed.
24053 # If there is a colon in the path, we need to keep it.
24054 if test "x$srcdir" = x.; then
24055   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
24056 fi
24057
24058 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24059
24060 DEFS=-DHAVE_CONFIG_H
24061
24062 # Without the "./", some shells look in PATH for config.status.
24063 : ${CONFIG_STATUS=./config.status}
24064
24065 echo creating $CONFIG_STATUS
24066 rm -f $CONFIG_STATUS
24067 cat > $CONFIG_STATUS <<EOF
24068 #! /bin/sh
24069 # Generated automatically by configure.
24070 # Run this file to recreate the current configuration.
24071 # This directory was configured as follows,
24072 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24073 #
24074 # $0 $ac_configure_args
24075 #
24076 # Compiler output produced by configure, useful for debugging
24077 # configure, is in ./config.log if it exists.
24078
24079 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24080 for ac_option
24081 do
24082   case "\$ac_option" in
24083   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24084     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24085     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24086   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24087     echo "$CONFIG_STATUS generated by autoconf version 2.13"
24088     exit 0 ;;
24089   -help | --help | --hel | --he | --h)
24090     echo "\$ac_cs_usage"; exit 0 ;;
24091   *) echo "\$ac_cs_usage"; exit 1 ;;
24092   esac
24093 done
24094
24095 ac_given_srcdir=$srcdir
24096 ac_given_INSTALL="$INSTALL"
24097
24098 trap 'rm -fr `echo "Makefile \
24099 include/Makefile src/Makefile \
24100 libmath/Makefile libio/Makefile libsupc++/Makefile \
24101 po/Makefile testsuite/Makefile mkcheck testsuite_flags config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24102 EOF
24103 cat >> $CONFIG_STATUS <<EOF
24104
24105 # Protect against being on the right side of a sed subst in config.status.
24106 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24107  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24108 $ac_vpsub
24109 $extrasub
24110 s%@SHELL@%$SHELL%g
24111 s%@CFLAGS@%$CFLAGS%g
24112 s%@CPPFLAGS@%$CPPFLAGS%g
24113 s%@CXXFLAGS@%$CXXFLAGS%g
24114 s%@FFLAGS@%$FFLAGS%g
24115 s%@DEFS@%$DEFS%g
24116 s%@LDFLAGS@%$LDFLAGS%g
24117 s%@LIBS@%$LIBS%g
24118 s%@exec_prefix@%$exec_prefix%g
24119 s%@prefix@%$prefix%g
24120 s%@program_transform_name@%$program_transform_name%g
24121 s%@bindir@%$bindir%g
24122 s%@sbindir@%$sbindir%g
24123 s%@libexecdir@%$libexecdir%g
24124 s%@datadir@%$datadir%g
24125 s%@sysconfdir@%$sysconfdir%g
24126 s%@sharedstatedir@%$sharedstatedir%g
24127 s%@localstatedir@%$localstatedir%g
24128 s%@libdir@%$libdir%g
24129 s%@includedir@%$includedir%g
24130 s%@oldincludedir@%$oldincludedir%g
24131 s%@infodir@%$infodir%g
24132 s%@mandir@%$mandir%g
24133 s%@PACKAGE@%$PACKAGE%g
24134 s%@libtool_VERSION@%$libtool_VERSION%g
24135 s%@toplevel_srcdir@%$toplevel_srcdir%g
24136 s%@host@%$host%g
24137 s%@host_alias@%$host_alias%g
24138 s%@host_cpu@%$host_cpu%g
24139 s%@host_vendor@%$host_vendor%g
24140 s%@host_os@%$host_os%g
24141 s%@target@%$target%g
24142 s%@target_alias@%$target_alias%g
24143 s%@target_cpu@%$target_cpu%g
24144 s%@target_vendor@%$target_vendor%g
24145 s%@target_os@%$target_os%g
24146 s%@build@%$build%g
24147 s%@build_alias@%$build_alias%g
24148 s%@build_cpu@%$build_cpu%g
24149 s%@build_vendor@%$build_vendor%g
24150 s%@build_os@%$build_os%g
24151 s%@glibcpp_builddir@%$glibcpp_builddir%g
24152 s%@glibcpp_srcdir@%$glibcpp_srcdir%g
24153 s%@AWK@%$AWK%g
24154 s%@LN_S@%$LN_S%g
24155 s%@glibcpp_basedir@%$glibcpp_basedir%g
24156 s%@CC@%$CC%g
24157 s%@glibcpp_CXX@%$glibcpp_CXX%g
24158 s%@AS@%$AS%g
24159 s%@AR@%$AR%g
24160 s%@RANLIB@%$RANLIB%g
24161 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24162 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24163 s%@INSTALL_DATA@%$INSTALL_DATA%g
24164 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
24165 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
24166 s%@MAINT@%$MAINT%g
24167 s%@EXEEXT@%$EXEEXT%g
24168 s%@VERSION@%$VERSION%g
24169 s%@ACLOCAL@%$ACLOCAL%g
24170 s%@AUTOCONF@%$AUTOCONF%g
24171 s%@AUTOMAKE@%$AUTOMAKE%g
24172 s%@AUTOHEADER@%$AUTOHEADER%g
24173 s%@MAKEINFO@%$MAKEINFO%g
24174 s%@SET_MAKE@%$SET_MAKE%g
24175 s%@OBJEXT@%$OBJEXT%g
24176 s%@STRIP@%$STRIP%g
24177 s%@LIBTOOL@%$LIBTOOL%g
24178 s%@CXXCPP@%$CXXCPP%g
24179 s%@enable_shared@%$enable_shared%g
24180 s%@enable_static@%$enable_static%g
24181 s%@ifGNUmake@%$ifGNUmake%g
24182 s%@GLIBCPP_BUILD_PCH_TRUE@%$GLIBCPP_BUILD_PCH_TRUE%g
24183 s%@GLIBCPP_BUILD_PCH_FALSE@%$GLIBCPP_BUILD_PCH_FALSE%g
24184 s%@glibcpp_PCHFLAGS@%$glibcpp_PCHFLAGS%g
24185 s%@CPP@%$CPP%g
24186 s%@CSTDIO_H@%$CSTDIO_H%g
24187 s%@BASIC_FILE_H@%$BASIC_FILE_H%g
24188 s%@BASIC_FILE_CC@%$BASIC_FILE_CC%g
24189 s%@CCODECVT_C@%$CCODECVT_C%g
24190 s%@GLIBCPP_BUILD_LIBIO_TRUE@%$GLIBCPP_BUILD_LIBIO_TRUE%g
24191 s%@GLIBCPP_BUILD_LIBIO_FALSE@%$GLIBCPP_BUILD_LIBIO_FALSE%g
24192 s%@GLIBCPP_NEED_LIBIO_TRUE@%$GLIBCPP_NEED_LIBIO_TRUE%g
24193 s%@GLIBCPP_NEED_LIBIO_FALSE@%$GLIBCPP_NEED_LIBIO_FALSE%g
24194 s%@GLIBCPP_NEED_WLIBIO_TRUE@%$GLIBCPP_NEED_WLIBIO_TRUE%g
24195 s%@GLIBCPP_NEED_WLIBIO_FALSE@%$GLIBCPP_NEED_WLIBIO_FALSE%g
24196 s%@libio_la@%$libio_la%g
24197 s%@check_msgfmt@%$check_msgfmt%g
24198 s%@glibcpp_MOFILES@%$glibcpp_MOFILES%g
24199 s%@glibcpp_POFILES@%$glibcpp_POFILES%g
24200 s%@glibcpp_localedir@%$glibcpp_localedir%g
24201 s%@USE_NLS@%$USE_NLS%g
24202 s%@CLOCALE_H@%$CLOCALE_H%g
24203 s%@CCODECVT_H@%$CCODECVT_H%g
24204 s%@CMESSAGES_H@%$CMESSAGES_H%g
24205 s%@CCODECVT_CC@%$CCODECVT_CC%g
24206 s%@CCOLLATE_CC@%$CCOLLATE_CC%g
24207 s%@CCTYPE_CC@%$CCTYPE_CC%g
24208 s%@CMESSAGES_CC@%$CMESSAGES_CC%g
24209 s%@CMONEY_CC@%$CMONEY_CC%g
24210 s%@CNUMERIC_CC@%$CNUMERIC_CC%g
24211 s%@CTIME_H@%$CTIME_H%g
24212 s%@CTIME_CC@%$CTIME_CC%g
24213 s%@CLOCALE_CC@%$CLOCALE_CC%g
24214 s%@CLOCALE_INTERNAL_H@%$CLOCALE_INTERNAL_H%g
24215 s%@C_INCLUDE_DIR@%$C_INCLUDE_DIR%g
24216 s%@GLIBCPP_C_HEADERS_C_TRUE@%$GLIBCPP_C_HEADERS_C_TRUE%g
24217 s%@GLIBCPP_C_HEADERS_C_FALSE@%$GLIBCPP_C_HEADERS_C_FALSE%g
24218 s%@GLIBCPP_C_HEADERS_C_STD_TRUE@%$GLIBCPP_C_HEADERS_C_STD_TRUE%g
24219 s%@GLIBCPP_C_HEADERS_C_STD_FALSE@%$GLIBCPP_C_HEADERS_C_STD_FALSE%g
24220 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_TRUE%g
24221 s%@GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE@%$GLIBCPP_C_HEADERS_COMPATIBILITY_FALSE%g
24222 s%@glibcpp_thread_h@%$glibcpp_thread_h%g
24223 s%@LIBUNWIND_FLAG@%$LIBUNWIND_FLAG%g
24224 s%@EXTRA_CXX_FLAGS@%$EXTRA_CXX_FLAGS%g
24225 s%@GLIBCPP_BUILD_DEBUG_TRUE@%$GLIBCPP_BUILD_DEBUG_TRUE%g
24226 s%@GLIBCPP_BUILD_DEBUG_FALSE@%$GLIBCPP_BUILD_DEBUG_FALSE%g
24227 s%@DEBUG_FLAGS@%$DEBUG_FLAGS%g
24228 s%@SECTION_FLAGS@%$SECTION_FLAGS%g
24229 s%@SECTION_LDFLAGS@%$SECTION_LDFLAGS%g
24230 s%@OPT_LDFLAGS@%$OPT_LDFLAGS%g
24231 s%@LIBMATHOBJS@%$LIBMATHOBJS%g
24232 s%@WERROR@%$WERROR%g
24233 s%@baseline_file@%$baseline_file%g
24234 s%@SYMVER_MAP@%$SYMVER_MAP%g
24235 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_TRUE%g
24236 s%@GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE@%$GLIBCPP_BUILD_VERSIONED_SHLIB_FALSE%g
24237 s%@OS_INC_SRCDIR@%$OS_INC_SRCDIR%g
24238 s%@ATOMICITY_INC_SRCDIR@%$ATOMICITY_INC_SRCDIR%g
24239 s%@GLIBCPP_IS_CROSS_COMPILING@%$GLIBCPP_IS_CROSS_COMPILING%g
24240 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
24241 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
24242 s%@GLIBCPP_BUILD_LIBMATH_TRUE@%$GLIBCPP_BUILD_LIBMATH_TRUE%g
24243 s%@GLIBCPP_BUILD_LIBMATH_FALSE@%$GLIBCPP_BUILD_LIBMATH_FALSE%g
24244 s%@GLIBCPP_TEST_WCHAR_T_TRUE@%$GLIBCPP_TEST_WCHAR_T_TRUE%g
24245 s%@GLIBCPP_TEST_WCHAR_T_FALSE@%$GLIBCPP_TEST_WCHAR_T_FALSE%g
24246 s%@GLIBCPP_BUILD_ABI_CHECK_TRUE@%$GLIBCPP_BUILD_ABI_CHECK_TRUE%g
24247 s%@GLIBCPP_BUILD_ABI_CHECK_FALSE@%$GLIBCPP_BUILD_ABI_CHECK_FALSE%g
24248 s%@glibcpp_prefixdir@%$glibcpp_prefixdir%g
24249 s%@gxx_include_dir@%$gxx_include_dir%g
24250 s%@glibcpp_toolexecdir@%$glibcpp_toolexecdir%g
24251 s%@glibcpp_toolexeclibdir@%$glibcpp_toolexeclibdir%g
24252 s%@LIBIO_INCLUDES@%$LIBIO_INCLUDES%g
24253 s%@GLIBCPP_INCLUDES@%$GLIBCPP_INCLUDES%g
24254 s%@TOPLEVEL_INCLUDES@%$TOPLEVEL_INCLUDES%g
24255 s%@LIBMATH_INCLUDES@%$LIBMATH_INCLUDES%g
24256 s%@LIBSUPCXX_INCLUDES@%$LIBSUPCXX_INCLUDES%g
24257 s%@OPTIMIZE_CXXFLAGS@%$OPTIMIZE_CXXFLAGS%g
24258 s%@WARN_FLAGS@%$WARN_FLAGS%g
24259 s%@LIBSUPCXX_PICFLAGS@%$LIBSUPCXX_PICFLAGS%g
24260
24261 CEOF
24262 EOF
24263
24264 cat >> $CONFIG_STATUS <<\EOF
24265
24266 # Split the substitutions into bite-sized pieces for seds with
24267 # small command number limits, like on Digital OSF/1 and HP-UX.
24268 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24269 ac_file=1 # Number of current file.
24270 ac_beg=1 # First line for current file.
24271 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24272 ac_more_lines=:
24273 ac_sed_cmds=""
24274 while $ac_more_lines; do
24275   if test $ac_beg -gt 1; then
24276     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24277   else
24278     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24279   fi
24280   if test ! -s conftest.s$ac_file; then
24281     ac_more_lines=false
24282     rm -f conftest.s$ac_file
24283   else
24284     if test -z "$ac_sed_cmds"; then
24285       ac_sed_cmds="sed -f conftest.s$ac_file"
24286     else
24287       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24288     fi
24289     ac_file=`expr $ac_file + 1`
24290     ac_beg=$ac_end
24291     ac_end=`expr $ac_end + $ac_max_sed_cmds`
24292   fi
24293 done
24294 if test -z "$ac_sed_cmds"; then
24295   ac_sed_cmds=cat
24296 fi
24297 EOF
24298
24299 cat >> $CONFIG_STATUS <<EOF
24300
24301 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
24302 include/Makefile src/Makefile \
24303 libmath/Makefile libio/Makefile libsupc++/Makefile \
24304 po/Makefile testsuite/Makefile mkcheck testsuite_flags"}
24305 EOF
24306 cat >> $CONFIG_STATUS <<\EOF
24307 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24308   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24309   case "$ac_file" in
24310   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24311        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24312   *) ac_file_in="${ac_file}.in" ;;
24313   esac
24314
24315   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24316
24317   # Remove last slash and all that follows it.  Not all systems have dirname.
24318   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24319   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24320     # The file is in a subdirectory.
24321     test ! -d "$ac_dir" && mkdir "$ac_dir"
24322     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24323     # A "../" for each directory in $ac_dir_suffix.
24324     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24325   else
24326     ac_dir_suffix= ac_dots=
24327   fi
24328
24329   case "$ac_given_srcdir" in
24330   .)  srcdir=.
24331       if test -z "$ac_dots"; then top_srcdir=.
24332       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24333   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24334   *) # Relative path.
24335     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24336     top_srcdir="$ac_dots$ac_given_srcdir" ;;
24337   esac
24338
24339   case "$ac_given_INSTALL" in
24340   [/$]*) INSTALL="$ac_given_INSTALL" ;;
24341   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24342   esac
24343
24344   echo creating "$ac_file"
24345   rm -f "$ac_file"
24346   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24347   case "$ac_file" in
24348   *Makefile*) ac_comsub="1i\\
24349 # $configure_input" ;;
24350   *) ac_comsub= ;;
24351   esac
24352
24353   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24354   sed -e "$ac_comsub
24355 s%@configure_input@%$configure_input%g
24356 s%@srcdir@%$srcdir%g
24357 s%@top_srcdir@%$top_srcdir%g
24358 s%@INSTALL@%$INSTALL%g
24359 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24360 fi; done
24361 rm -f conftest.s*
24362
24363 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24364 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24365 #
24366 # ac_d sets the value in "#define NAME VALUE" lines.
24367 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
24368 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
24369 ac_dC='\3'
24370 ac_dD='%g'
24371 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24372 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24373 ac_uB='\([      ]\)%\1#\2define\3'
24374 ac_uC=' '
24375 ac_uD='\4%g'
24376 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24377 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24378 ac_eB='$%\1#\2define\3'
24379 ac_eC=' '
24380 ac_eD='%g'
24381
24382 if test "${CONFIG_HEADERS+set}" != set; then
24383 EOF
24384 cat >> $CONFIG_STATUS <<EOF
24385   CONFIG_HEADERS="config.h"
24386 EOF
24387 cat >> $CONFIG_STATUS <<\EOF
24388 fi
24389 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24390   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24391   case "$ac_file" in
24392   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24393        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24394   *) ac_file_in="${ac_file}.in" ;;
24395   esac
24396
24397   echo creating $ac_file
24398
24399   rm -f conftest.frag conftest.in conftest.out
24400   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24401   cat $ac_file_inputs > conftest.in
24402
24403 EOF
24404
24405 # Transform confdefs.h into a sed script conftest.vals that substitutes
24406 # the proper values into config.h.in to produce config.h.  And first:
24407 # Protect against being on the right side of a sed subst in config.status.
24408 # Protect against being in an unquoted here document in config.status.
24409 rm -f conftest.vals
24410 cat > conftest.hdr <<\EOF
24411 s/[\\&%]/\\&/g
24412 s%[\\$`]%\\&%g
24413 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24414 s%ac_d%ac_u%gp
24415 s%ac_u%ac_e%gp
24416 EOF
24417 sed -n -f conftest.hdr confdefs.h > conftest.vals
24418 rm -f conftest.hdr
24419
24420 # This sed command replaces #undef with comments.  This is necessary, for
24421 # example, in the case of _POSIX_SOURCE, which is predefined and required
24422 # on some systems where configure will not decide to define it.
24423 cat >> conftest.vals <<\EOF
24424 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24425 EOF
24426
24427 # Break up conftest.vals because some shells have a limit on
24428 # the size of here documents, and old seds have small limits too.
24429
24430 rm -f conftest.tail
24431 while :
24432 do
24433   ac_lines=`grep -c . conftest.vals`
24434   # grep -c gives empty output for an empty file on some AIX systems.
24435   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24436   # Write a limited-size here document to conftest.frag.
24437   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24438   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24439   echo 'CEOF
24440   sed -f conftest.frag conftest.in > conftest.out
24441   rm -f conftest.in
24442   mv conftest.out conftest.in
24443 ' >> $CONFIG_STATUS
24444   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24445   rm -f conftest.vals
24446   mv conftest.tail conftest.vals
24447 done
24448 rm -f conftest.vals
24449
24450 cat >> $CONFIG_STATUS <<\EOF
24451   rm -f conftest.frag conftest.h
24452   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
24453   cat conftest.in >> conftest.h
24454   rm -f conftest.in
24455   if cmp -s $ac_file conftest.h 2>/dev/null; then
24456     echo "$ac_file is unchanged"
24457     rm -f conftest.h
24458   else
24459     # Remove last slash and all that follows it.  Not all systems have dirname.
24460       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24461       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24462       # The file is in a subdirectory.
24463       test ! -d "$ac_dir" && mkdir "$ac_dir"
24464     fi
24465     rm -f $ac_file
24466     mv conftest.h $ac_file
24467   fi
24468 fi; done
24469
24470 EOF
24471 cat >> $CONFIG_STATUS <<EOF
24472
24473 srcdir=${srcdir}
24474 host=${host}
24475 target=${target}
24476 with_target_subdir=${with_target_subdir}
24477 with_build_subdir=${with_build_subdir}
24478 with_multisubdir=${with_multisubdir}
24479 ac_configure_args="${multilib_arg} ${ac_configure_args}"
24480 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
24481 glibcpp_basedir=${glibcpp_basedir}
24482 CC="${CC}"
24483 CXX="${CXX}"
24484 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
24485
24486 EOF
24487 cat >> $CONFIG_STATUS <<\EOF
24488 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24489 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
24490  if test -n "$CONFIG_FILES"; then
24491    if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
24492      LD="${ORIGINAL_LD_FOR_MULTILIBS}"
24493      # Ony modify Makefiles that are just being created.
24494      case " $CONFIG_FILES" in
24495        *" Makefile"*)
24496          ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
24497          ;;
24498      esac
24499      case $CONFIG_FILES in
24500        *src/Makefile*)
24501          grep '^MULTISUBDIR =' Makefile >> src/Makefile
24502          ;;
24503      esac
24504      case $CONFIG_FILES in
24505        *libsupc++/Makefile*)
24506          grep '^MULTISUBDIR =' Makefile >> libsupc++/Makefile
24507          ;;
24508      esac
24509    fi
24510  fi
24511  chmod +x mkcheck
24512  chmod +x testsuite_flags
24513 exit 0
24514 EOF
24515 chmod +x $CONFIG_STATUS
24516 rm -fr confdefs* $ac_clean_files
24517 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
24518
24519
24520
24521 # Sanity checking & User-visible messages.
24522 # Checks down here, otherwise they get scrolled off before
24523 # the user will notice.
24524
24525 # Trying to get more people to read documentation.  Possibly remove
24526 # check and warn all the time. There is no "informational" AC_MSG_
24527 # macro, so these are going to be printed even when --quiet/--silent
24528 # is given.
24529 if test ! -f stamp-sanity-warned; then
24530   touch stamp-sanity-warned
24531   echo ""
24532   echo "Please make certain that you read the installation information here:"
24533   echo "  faster => ${srcdir}/docs/html/install.html"
24534   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/install.html>"
24535   echo ""
24536   echo "and the configuration information here:"
24537   echo "  faster => ${srcdir}/docs/html/configopts.html"
24538   echo "  slower => <URL:http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html>"
24539   echo ""
24540   echo "before proceeding with ${_cv_gnu_make_command}."
24541   echo ""
24542 fi